@ckeditor/ckeditor5-track-changes 48.3.1 → 48.4.0-alpha.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 (156) hide show
  1. package/dist/index-editor.css +9 -8
  2. package/dist/index.css +1 -0
  3. package/dist/index.d.ts +2 -0
  4. package/dist/index.js +4 -4
  5. package/dist/integrations/clipboard.d.ts +30 -0
  6. package/dist/integrations/tablecolumnresize.d.ts +5 -1
  7. package/dist/trackchangesconfig.d.ts +20 -6
  8. package/dist/trackchangesediting.d.ts +2 -1
  9. package/dist/trackchangespreview.d.ts +0 -1
  10. package/dist/translations/af.js +1 -1
  11. package/dist/translations/af.umd.js +1 -1
  12. package/dist/translations/ar.js +1 -1
  13. package/dist/translations/ar.umd.js +1 -1
  14. package/dist/translations/ast.js +1 -1
  15. package/dist/translations/ast.umd.js +1 -1
  16. package/dist/translations/az.js +1 -1
  17. package/dist/translations/az.umd.js +1 -1
  18. package/dist/translations/be.js +1 -1
  19. package/dist/translations/be.umd.js +1 -1
  20. package/dist/translations/bg.js +1 -1
  21. package/dist/translations/bg.umd.js +1 -1
  22. package/dist/translations/bn.js +1 -1
  23. package/dist/translations/bn.umd.js +1 -1
  24. package/dist/translations/bs.js +1 -1
  25. package/dist/translations/bs.umd.js +1 -1
  26. package/dist/translations/ca.js +1 -1
  27. package/dist/translations/ca.umd.js +1 -1
  28. package/dist/translations/cs.js +1 -1
  29. package/dist/translations/cs.umd.js +1 -1
  30. package/dist/translations/da.js +1 -1
  31. package/dist/translations/da.umd.js +1 -1
  32. package/dist/translations/de-ch.js +1 -1
  33. package/dist/translations/de-ch.umd.js +1 -1
  34. package/dist/translations/de.js +1 -1
  35. package/dist/translations/de.umd.js +1 -1
  36. package/dist/translations/el.js +1 -1
  37. package/dist/translations/el.umd.js +1 -1
  38. package/dist/translations/en-au.js +1 -1
  39. package/dist/translations/en-au.umd.js +1 -1
  40. package/dist/translations/en-gb.js +1 -1
  41. package/dist/translations/en-gb.umd.js +1 -1
  42. package/dist/translations/en.js +1 -1
  43. package/dist/translations/en.umd.js +1 -1
  44. package/dist/translations/eo.js +1 -1
  45. package/dist/translations/eo.umd.js +1 -1
  46. package/dist/translations/es-co.js +1 -1
  47. package/dist/translations/es-co.umd.js +1 -1
  48. package/dist/translations/es.js +1 -1
  49. package/dist/translations/es.umd.js +1 -1
  50. package/dist/translations/et.js +1 -1
  51. package/dist/translations/et.umd.js +1 -1
  52. package/dist/translations/eu.js +1 -1
  53. package/dist/translations/eu.umd.js +1 -1
  54. package/dist/translations/fa.js +1 -1
  55. package/dist/translations/fa.umd.js +1 -1
  56. package/dist/translations/fi.js +1 -1
  57. package/dist/translations/fi.umd.js +1 -1
  58. package/dist/translations/fr.js +1 -1
  59. package/dist/translations/fr.umd.js +1 -1
  60. package/dist/translations/gl.js +1 -1
  61. package/dist/translations/gl.umd.js +1 -1
  62. package/dist/translations/gu.js +1 -1
  63. package/dist/translations/gu.umd.js +1 -1
  64. package/dist/translations/he.js +1 -1
  65. package/dist/translations/he.umd.js +1 -1
  66. package/dist/translations/hi.js +1 -1
  67. package/dist/translations/hi.umd.js +1 -1
  68. package/dist/translations/hr.js +1 -1
  69. package/dist/translations/hr.umd.js +1 -1
  70. package/dist/translations/hu.js +1 -1
  71. package/dist/translations/hu.umd.js +1 -1
  72. package/dist/translations/hy.js +1 -1
  73. package/dist/translations/hy.umd.js +1 -1
  74. package/dist/translations/id.js +1 -1
  75. package/dist/translations/id.umd.js +1 -1
  76. package/dist/translations/it.js +1 -1
  77. package/dist/translations/it.umd.js +1 -1
  78. package/dist/translations/ja.js +1 -1
  79. package/dist/translations/ja.umd.js +1 -1
  80. package/dist/translations/jv.js +1 -1
  81. package/dist/translations/jv.umd.js +1 -1
  82. package/dist/translations/kk.js +1 -1
  83. package/dist/translations/kk.umd.js +1 -1
  84. package/dist/translations/km.js +1 -1
  85. package/dist/translations/km.umd.js +1 -1
  86. package/dist/translations/kn.js +1 -1
  87. package/dist/translations/kn.umd.js +1 -1
  88. package/dist/translations/ko.js +1 -1
  89. package/dist/translations/ko.umd.js +1 -1
  90. package/dist/translations/ku.js +1 -1
  91. package/dist/translations/ku.umd.js +1 -1
  92. package/dist/translations/lt.js +1 -1
  93. package/dist/translations/lt.umd.js +1 -1
  94. package/dist/translations/lv.js +1 -1
  95. package/dist/translations/lv.umd.js +1 -1
  96. package/dist/translations/ms.js +1 -1
  97. package/dist/translations/ms.umd.js +1 -1
  98. package/dist/translations/nb.js +1 -1
  99. package/dist/translations/nb.umd.js +1 -1
  100. package/dist/translations/ne.js +1 -1
  101. package/dist/translations/ne.umd.js +1 -1
  102. package/dist/translations/nl.js +1 -1
  103. package/dist/translations/nl.umd.js +1 -1
  104. package/dist/translations/no.js +1 -1
  105. package/dist/translations/no.umd.js +1 -1
  106. package/dist/translations/oc.js +1 -1
  107. package/dist/translations/oc.umd.js +1 -1
  108. package/dist/translations/pl.js +1 -1
  109. package/dist/translations/pl.umd.js +1 -1
  110. package/dist/translations/pt-br.js +1 -1
  111. package/dist/translations/pt-br.umd.js +1 -1
  112. package/dist/translations/pt.js +1 -1
  113. package/dist/translations/pt.umd.js +1 -1
  114. package/dist/translations/ro.js +1 -1
  115. package/dist/translations/ro.umd.js +1 -1
  116. package/dist/translations/ru.js +1 -1
  117. package/dist/translations/ru.umd.js +1 -1
  118. package/dist/translations/si.js +1 -1
  119. package/dist/translations/si.umd.js +1 -1
  120. package/dist/translations/sk.js +1 -1
  121. package/dist/translations/sk.umd.js +1 -1
  122. package/dist/translations/sl.js +1 -1
  123. package/dist/translations/sl.umd.js +1 -1
  124. package/dist/translations/sq.js +1 -1
  125. package/dist/translations/sq.umd.js +1 -1
  126. package/dist/translations/sr-latn.js +1 -1
  127. package/dist/translations/sr-latn.umd.js +1 -1
  128. package/dist/translations/sr.js +1 -1
  129. package/dist/translations/sr.umd.js +1 -1
  130. package/dist/translations/sv.js +1 -1
  131. package/dist/translations/sv.umd.js +1 -1
  132. package/dist/translations/th.js +1 -1
  133. package/dist/translations/th.umd.js +1 -1
  134. package/dist/translations/ti.js +1 -1
  135. package/dist/translations/ti.umd.js +1 -1
  136. package/dist/translations/tk.js +1 -1
  137. package/dist/translations/tk.umd.js +1 -1
  138. package/dist/translations/tr.js +1 -1
  139. package/dist/translations/tr.umd.js +1 -1
  140. package/dist/translations/tt.js +1 -1
  141. package/dist/translations/tt.umd.js +1 -1
  142. package/dist/translations/ug.js +1 -1
  143. package/dist/translations/ug.umd.js +1 -1
  144. package/dist/translations/uk.js +1 -1
  145. package/dist/translations/uk.umd.js +1 -1
  146. package/dist/translations/ur.js +1 -1
  147. package/dist/translations/ur.umd.js +1 -1
  148. package/dist/translations/uz.js +1 -1
  149. package/dist/translations/uz.umd.js +1 -1
  150. package/dist/translations/vi.js +1 -1
  151. package/dist/translations/vi.umd.js +1 -1
  152. package/dist/translations/zh-cn.js +1 -1
  153. package/dist/translations/zh-cn.umd.js +1 -1
  154. package/dist/translations/zh.js +1 -1
  155. package/dist/translations/zh.umd.js +1 -1
  156. package/package.json +25 -25
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x22ac6a,PendingActions as _0x3fa9a4,Plugin as _0x449cd5}from'@ckeditor/ckeditor5-core';import{Annotations as _0x47fdc7,Comments as _0x522ebb,CommentsRepository as _0x29457b,EditorAnnotations as _0x2c98bc}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x403c95,Collection as _0x96fb93,FocusTracker as _0x348918,KeystrokeHandler as _0x164365,ObservableMixin as _0x1c6439,getEnvKeystrokeText as _0x21d341,insertToPriorityArray as _0x2d03de,logWarning as _0x5338e2,priorities as _0x449a53,uid as _0x1c0f04}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x188a57,IconCancel as _0x48ae6f,IconCheck as _0x5bafee,IconSparkle as _0x42dd33,IconTrackChanges as _0x149db9}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x469b4b,Dialog as _0x2857d2,FocusCycler as _0x2b68a6,ListSeparatorView as _0x59f2ec,MenuBarMenuListItemButtonView as _0x107b4c,MenuBarMenuListItemView as _0x252db8,MenuBarMenuListView as _0x1aa70f,MenuBarMenuView as _0x13a0ed,SplitButtonView as _0x4ed210,UIModel as _0x5a9814,View as _0x341170,ViewCollection as _0x2d62a6,addListToDropdown as _0x4106d7,createDropdown as _0x2a87d2,normalizeColorOptions as _0x1df80d}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x453221,CollaborationUserColor as _0x1ac64f,DocumentCompare as _0xa1008,FOCUS_ANNOTATION_KEYSTROKE as _0x210fd5,LateFocusButtonView as _0x5ae44f,PillView as _0x3bac69,SuggestionsConversion as _0x2962ea,User as _0x38c04d,UserView as _0x3ba6de,Users as _0x31fa66,fixElementSuggestionRange as _0x1c310a,getAllMarkersDomElementsSorted as _0x23a1bb,getDateTimeFormatter as _0x487ee3,hashObject as _0x328459,sanitizeEditorConfig as _0x38df16,setupThreadKeyboardNavigation as _0xa5a80f,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{Delete as ht,Input as gt}from'@ckeditor/ckeditor5-typing';import{Enter as ft}from'@ckeditor/ckeditor5-enter';import{ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';var Et=class extends _0x22ac6a{['_enabledCommands'];constructor(_0x10e9f2,_0x1eefc5){super(_0x10e9f2),this['_enabledCommands']=_0x1eefc5,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 _0x230376 of this['editor']['commands']['commands']())_0x230376['affectsData']&&!this['_enabledCommands']['has'](_0x230376)&&_0x230376['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x39139c of this['editor']['commands']['commands']())_0x39139c['affectsData']&&!this['_enabledCommands']['has'](_0x39139c)&&_0x39139c['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x22ac6a{['_suggestions'];constructor(_0xd8c5ad,_0x57b2de){super(_0xd8c5ad),this['_suggestions']=_0x57b2de,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x590a82){const _0x216c32=this['_suggestions']['get'](_0x590a82);if(!_0x216c32)throw new _0x403c95('track-changes-accept-suggestion-not-found',this);const _0x3290ad=_0x216c32['getRanges']();this['editor']['model']['canEditAt'](_0x3290ad)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x216c32);}},_t=class extends _0x22ac6a{['_suggestions'];constructor(_0x59fd10,_0x54a458){super(_0x59fd10),this['_suggestions']=_0x54a458,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x30608b){const _0x27ee9f=this['_suggestions']['get'](_0x30608b);if(!_0x27ee9f)throw new _0x403c95('track-changes-discard-suggestion-not-found',this);const _0x12d906=_0x27ee9f['getRanges']();this['editor']['model']['canEditAt'](_0x12d906)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x27ee9f);}};function pt(_0x1db470,_0x1127df){let _0x414fcb='';return _0x414fcb+=_0x1db470['split']('*')['map']((_0x1e8669,_0x1f2878)=>_0x1f2878%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0x1e8669)+'</span>':Lt(_0x1e8669))['join'](''),_0x1127df&&(_0x414fcb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1127df['value']+'\x22\x20title=\x22'+_0x1127df['title']+'\x22></span>'),_0x414fcb;}function Lt(_0xa2107d){const _0xd3ace4=document['createElement']('span');return _0xd3ace4['innerText']=_0xa2107d,_0xd3ace4['innerHTML'];}function It(_0x21c755){return _0x21c755['sort']((_0x4da73c,_0x9dd7a4)=>'attribute'===_0x4da73c['type']&&'attribute'!==_0x9dd7a4['type']?-0x1:'attribute'!==_0x4da73c['type']&&'attribute'===_0x9dd7a4['type']?0x1:'deletion'==_0x4da73c['type']&&'deletion'!=_0x9dd7a4['type']?-0x1:'deletion'!=_0x4da73c['type']&&'deletion'==_0x9dd7a4['type']?0x1:0x0);}function At(_0x270c19,_0x4dc449){let _0x4eb244,_0x516031=0x0;const _0x174e50=[],_0x5d347b=_0x4dc449['schema'];for(;_0x516031<_0x270c19['length'];){const _0x5c7faa=_0x270c19[_0x516031],_0x2492b9=_0x270c19[_0x516031+0x1];_0x4eb244||(_0x4eb244=_0x4dc449['createPositionBefore'](_0x5c7faa)),bt(_0x4dc449,_0x5c7faa,_0x2492b9)||(_0x174e50['push'](_0x4dc449['createRange'](_0x4eb244,_0x5d347b['isObject'](_0x5c7faa)?_0x4dc449['createPositionAfter'](_0x5c7faa):_0x4dc449['createPositionAt'](_0x5c7faa,'end'))),_0x4eb244=null),_0x516031++;}return _0x174e50;}function bt(_0x49ea7f,_0x134dae,_0x50b97f){if(!_0x50b97f)return!0x1;const _0x5eabba=_0x49ea7f['createPositionAfter'](_0x134dae),_0x24e5b5=_0x49ea7f['createPositionBefore'](_0x50b97f);return _0x5eabba['isTouching'](_0x24e5b5);}function kt(_0x428573,_0x2ef421,_0x3ad7bc){for(;_0x3ad7bc['length'];){const _0xca2d14=_0x3ad7bc['splice'](0x0,0x64);_0x428573['change'](()=>{for(const _0x4646b9 of _0xca2d14)_0x4646b9['isInContent']&&_0x2ef421['execute'](_0x4646b9['id']);});}}var Ct=class extends _0x22ac6a{['_command'];['_suggestions'];constructor(_0x18f53f,_0x167e4e,_0x4302c1){super(_0x18f53f),this['_command']=_0x167e4e,this['_suggestions']=_0x4302c1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36cc99=Array['from'](this['_suggestions']['values']())['some'](_0x11684c=>_0x11684c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x36cc99;}['execute'](){const _0x5cf11d=It(Array['from'](this['_suggestions']['values']()));for(const _0x575bc0 of _0x5cf11d){const _0x1986dd=_0x575bc0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1986dd))return;}kt(this['editor']['model'],this['_command'],_0x5cf11d);}},Rt=class extends _0x22ac6a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a45dc,_0x37f723,_0x9ad61c){super(_0x4a45dc),this['_command']=_0x37f723,this['_suggestions']=_0x9ad61c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5724c3=this['editor']['model']['document']['selection'],_0x36db51=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x184568,_0x2c9a92){const _0x228613=Array['from'](_0x184568['getRanges']()),_0x4ecd8e=new Set();for(const _0x7f3eb of _0x2c9a92)if(_0x7f3eb['isInContent']){for(const _0x11987d of _0x228613)for(const _0x57d9c0 of _0x7f3eb['getRanges']())(_0x11987d['isIntersecting'](_0x57d9c0)||_0x184568['isCollapsed']&&!_0x7f3eb['isMultiRange']&&_0x7f3eb['next']&&_0x57d9c0['end']['isTouching'](_0x11987d['start']))&&_0x4ecd8e['add'](_0x7f3eb);}return _0x4ecd8e;}(_0x5724c3,_0x36db51),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x50fe5d=It(Array['from'](this['_selectedSuggestions']));for(const _0xb050ed of _0x50fe5d){const _0x50bda6=_0xb050ed['getRanges']();if(!this['editor']['model']['canEditAt'](_0x50bda6))return;}kt(this['editor']['model'],this['_command'],_0x50fe5d);}};const Nt=/* #__PURE__ -- @preserve */
24
- _0x1c6439();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4cc1af,_0x4c13c9){super(),this['id']=_0x4c13c9['id'],this['type']=_0x4c13c9['type'],this['subType']=_0x4c13c9['subType']||null,this['author']=_0x4c13c9['author'],this['creator']=_0x4c13c9['creator']||_0x4c13c9['author'],this['data']=null,this['_originalSuggestionId']=_0x4c13c9['originalSuggestionId']||null,this['_model']=_0x4cc1af,this['_onAccept']=_0x4c13c9['onAccept'],this['_onDiscard']=_0x4c13c9['onDiscard'],this['_onAttributesChange']=_0x4c13c9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4c13c9['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['isExternal'](){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x16e58b=this;for(;_0x16e58b['previous'];)_0x16e58b=_0x16e58b['previous'];return _0x16e58b;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1ffdcf){this['_markerNames']['add'](_0x1ffdcf);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44fb2b=>this['_model']['markers']['get'](_0x44fb2b))['filter'](_0x41907f=>_0x41907f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1f6a53=>{for(const _0x782e12 of this['getMarkers']())_0x1f6a53['removeMarker'](_0x782e12);}),this['_markerNames']['clear']();}['removeMarker'](_0xbb1212){this['_model']['change'](_0x58c0af=>{_0x58c0af['removeMarker'](_0xbb1212);}),this['_markerNames']['delete'](_0xbb1212);}['addRange'](_0x502608){const _0x35f93a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x35f93a),this['_model']['change'](_0x16e691=>{_0x16e691['addMarker'](_0x35f93a,{'range':_0x502608,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x46a882){for(const _0x27ac53 of this['getRanges']())if(_0x27ac53['isIntersecting'](_0x46a882))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x498034=>_0x498034['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19ce98,_0x5c6d25)=>[..._0x19ce98,..._0x5c6d25['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x436081=this['getRanges']();if(0x1!=_0x436081['length'])return null;const _0x3aaef2=_0x436081[0x0],_0x379b83=_0x3aaef2['start']['nodeAfter'],_0x10c067=_0x3aaef2['end']['nodeBefore'];return _0x379b83 instanceof it?_0x379b83!=_0x10c067?null:_0x379b83: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 _0x3e2276=[];let _0xdabc6a=this['head'];for(;_0xdabc6a;)_0x3e2276['push'](_0xdabc6a),_0xdabc6a=_0xdabc6a['next'];return _0x3e2276;}['setAttribute'](_0x346cc6,_0xa50964){const _0x420706=at(this['attributes']);ut(_0x420706,_0x346cc6,_0xa50964),ct(_0x420706,this['attributes'])||(this['attributes']=_0x420706,this['_onAttributesChange'](_0x420706));}['removeAttribute'](_0xcbe8cd){const _0x3e3c70=at(this['attributes']);dt(_0x3e3c70,_0xcbe8cd),ct(_0x3e3c70,this['attributes'])||(this['attributes']=_0x3e3c70,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 _0x1c0f04()['substr'](0x1,0x5);}};function St(_0x860279,_0x43a3b1,_0x25a4ea){const _0x31c181=_0x860279['t'],t=_0x860279['t'];switch(_0x43a3b1){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x25a4ea);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x25a4ea);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x25a4ea);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x25a4ea);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x25a4ea);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',_0x25a4ea);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x25a4ea);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x25a4ea);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x25a4ea);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x25a4ea);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x25a4ea);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x25a4ea);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x25a4ea);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x25a4ea);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x25a4ea);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x25a4ea);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x25a4ea);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x25a4ea);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x25a4ea);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x25a4ea);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x25a4ea);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x25a4ea);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x25a4ea);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x25a4ea);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x25a4ea);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x25a4ea);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x25a4ea);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x25a4ea);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x25a4ea);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x25a4ea);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x25a4ea);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x25a4ea);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x25a4ea);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x25a4ea);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x25a4ea);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x25a4ea);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x25a4ea);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x25a4ea);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x25a4ea);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'},_0x25a4ea);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x25a4ea);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x25a4ea);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x25a4ea);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x25a4ea);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x25a4ea);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x25a4ea);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x31c181({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x25a4ea);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x31c181({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x25a4ea);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x25a4ea);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x25a4ea);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x25a4ea);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x25a4ea);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x43a3b1;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b1d65,_0x2e6c0d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b1d65,this['_locale']=_0x2e6c0d;}['getDescriptions'](_0x281a37){const _0x98dceb=[],_0x44aa14=new Set(),_0x4a2d89=new Set();for(let _0x27e615=0x0;_0x27e615<_0x281a37['length'];_0x27e615++){const _0x3bc43f=_0x281a37[_0x27e615];if(!_0x3bc43f['isInContent'])continue;const _0x379c41=this['_handleCustomCallbackDescription'](_0x3bc43f);if(_0x379c41){if(null!=_0x3bc43f['subType']){if(_0x44aa14['has'](_0x3bc43f['subType']))continue;_0x44aa14['add'](_0x3bc43f['subType']);}_0x98dceb['push'](_0x379c41);}else{if('attribute'==_0x3bc43f['type']){const _0x29a484=_0x3bc43f['data']['key'];if(_0x4a2d89['has'](_0x29a484))continue;_0x4a2d89['add'](_0x3bc43f['data']['key']),'$elementName'==_0x29a484?this['_handleRenameSuggestionDescription'](_0x98dceb,_0x3bc43f):this['_handleAttributeSuggestionDescription'](_0x98dceb,_0x3bc43f);continue;}'insertion'!=_0x3bc43f['type']&&'deletion'!=_0x3bc43f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x98dceb,_0x3bc43f,_0x281a37[_0x27e615+0x1]);}}return this['_resolveDescriptionItems'](_0x98dceb);}['registerDescriptionCallback'](_0x2446e5){this['_customCallbacks']['push'](_0x2446e5);}['registerElementLabel'](_0x2f0dab,_0x5110c0,_0x10a859=_0x449a53['normal']){'function'==typeof _0x2f0dab?_0x2d03de(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2f0dab,'label':_0x5110c0,'priority':_0x10a859}):this['_itemLabels']['set'](_0x2f0dab,_0x5110c0);}['registerAttributeLabel'](_0x3bdb17,_0x7f15fe){this['_attributeLabels']['set'](_0x3bdb17,_0x7f15fe);}['getItemLabel'](_0x94a783,_0xa39314=0x1){let _0x34e999;for(const _0x4a1d3e of this['_itemLabelsCallbacks'])if(_0x4a1d3e['matchingCallback'](_0x94a783)){_0x34e999=_0x4a1d3e['label'];break;}return _0x34e999||(_0x34e999=this['_itemLabels']['get'](_0x94a783['name'])),_0x34e999?_0x34e999(_0xa39314):0x1!==_0xa39314?_0xa39314+'\x20'+_0x94a783['name']+'s':''+_0x94a783['name'];}['_addDescriptionItems'](_0x2480c6,_0x4bf985){const _0x3ac5a0=_0x4bf985['getFirstRange']()['getWalker'](),_0xd29527='insertion'==_0x4bf985['type']?'add':'remove';for(const _0x3af41a of _0x3ac5a0){const _0x204d53=_0x3af41a['item'],_0x2c953=_0x2480c6[_0x2480c6['length']-0x1];if(_0x204d53['is']('$textProxy'))_0x2c953&&_0x2c953['type']['indexOf']('Container')>-0x1&&_0x2480c6['pop'](),_0x2c953&&'text'==_0x2c953['type']?_0x2c953[_0xd29527]+=_0x204d53['data']:_0x2480c6['push']({'type':'text','add':'add'==_0xd29527?_0x204d53['data']:'','remove':'remove'==_0xd29527?_0x204d53['data']:''});else{if(this['_schema']['isObject'](_0x204d53)){const _0xb7fe57=_0x204d53;if(_0x2c953&&_0x2c953['type']['indexOf']('Container')>-0x1&&_0x2480c6['pop'](),'elementEnd'==_0x3af41a['type'])continue;_0x2c953&&_0x2c953['type']==_0xd29527+'Object'&&_0x2c953['element']['name']==_0xb7fe57['name']?_0x2c953['quantity']++:_0x2480c6['push']({'type':_0xd29527+'Object','element':_0xb7fe57,'quantity':0x1}),_0x3ac5a0['skip'](_0x543a51=>!('elementEnd'==_0x543a51['type']&&_0x543a51['item']==_0x204d53));}else{if(this['_schema']['checkChild'](_0x204d53,'$text')||_0x204d53['is']('element','softBreak')){const _0x23e7de=_0x204d53;if('add'==_0xd29527&&'elementStart'==_0x3af41a['type']||'remove'==_0xd29527&&'elementEnd'==_0x3af41a['type'])continue;if(_0x2c953&&-0x1==_0x2c953['type']['indexOf']('Container')){'text'==_0x2c953['type']&&(_0x2c953[_0xd29527]+='\x0a');continue;}let _0x3bbb3c;if(_0x3bbb3c='add'==_0xd29527?_0x23e7de['nextSibling']&&!this['_schema']['isObject'](_0x23e7de['nextSibling'])?_0x23e7de['nextSibling']:null:_0x23e7de['previousSibling']&&!this['_schema']['isObject'](_0x23e7de['previousSibling'])?_0x23e7de['previousSibling']:null,_0x23e7de['isEmpty']||_0x3bbb3c&&_0x3bbb3c['isEmpty']){const _0xb225b0=_0x3bbb3c&&_0x3bbb3c['isEmpty']?_0x3bbb3c:_0x23e7de;_0x2c953&&_0x2c953['type']==_0xd29527+'EmptyContainer'&&_0x2c953['element']['name']==_0xb225b0['name']?_0x2c953['quantity']++:_0x2480c6['push']({'type':_0xd29527+'EmptyContainer','element':_0xb225b0,'quantity':0x1});}else _0x2480c6['push']({'type':_0xd29527+'Container','element':_0x23e7de});}}}}}['_resolveDescriptionItems'](_0x48876f){const _0x17c3eb=this['_locale'],_0x1e4499=[],_0x3d72dc=[],_0x536541=[];for(const _0x3cac27 of _0x48876f)switch(_0x3cac27['type']){case'text':if(_0x3cac27['add']=_0x3cac27['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3cac27['remove']=_0x3cac27['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3cac27['add']&&''!=_0x3cac27['remove']){_0x1e4499['push']({'type':'replace','content':St(_0x17c3eb,'REPLACE_TEXT',['\x22'+_0x3cac27['remove']+'\x22','\x22'+_0x3cac27['add']+'\x22'])});continue;}if(null!=_0x3cac27['add']['match'](/^ +$/)){_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Insert:*\x20%0',St(_0x17c3eb,'ELEMENT_SPACE',_0x3cac27['add']['length']))});continue;}if(null!=_0x3cac27['remove']['match'](/^ +$/)){_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Remove:*\x20%0',St(_0x17c3eb,'ELEMENT_SPACE',_0x3cac27['remove']['length']))});continue;}if(''!=_0x3cac27['add']){_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Insert:*\x20%0','\x22'+_0x3cac27['add']+'\x22')});continue;}_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Remove:*\x20%0','\x22'+_0x3cac27['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Insert:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Remove:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'addContainer':_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Split:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'removeContainer':_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Merge:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'addFormat':_0x3d72dc['push'](_0x3cac27['key']);continue;case'removeFormat':_0x536541['push'](_0x3cac27['key']);continue;default:_0x1e4499['push'](_0x3cac27);}if(_0x3d72dc['length']){const _0x469fab=_0x3d72dc['map'](_0x2f5da7=>this['_attributeLabels']['has'](_0x2f5da7)?this['_attributeLabels']['get'](_0x2f5da7):_0x2f5da7)['join'](',\x20');_0x1e4499['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x469fab)});}if(_0x536541['length']){const _0x3412a6=_0x536541['map'](_0x55ecd5=>this['_attributeLabels']['has'](_0x55ecd5)?this['_attributeLabels']['get'](_0x55ecd5):_0x55ecd5)['join'](',\x20');_0x1e4499['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x3412a6)});}return _0x1e4499;}['_handleCustomCallbackDescription'](_0x34062e){for(const _0x569849 of this['_customCallbacks']){const _0x436287=_0x569849(_0x34062e);if(_0x436287&&'type'in _0x436287)return _0x436287;}}['_handleAttributeSuggestionDescription'](_0x1e9277,_0x347a09){const _0xa3d840=_0x347a09['data'],_0x15570b=void 0x0===_0xa3d840['newValue']?'removeFormat':'addFormat';_0x1e9277['push']({'type':_0x15570b,'key':_0xa3d840['key']});}['_handleRenameSuggestionDescription'](_0x544951,_0x695cf3){_0x544951['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x695cf3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xebc61b,_0x2984e5,_0x3d7729){if(this['_addDescriptionItems'](_0xebc61b,_0x2984e5),_0x3d7729&&_0x3d7729['getFirstRange']()&&!_0x2984e5['getFirstRange']()['end']['isEqual'](_0x3d7729['getFirstRange']()['start'])){const _0x4e3dd4=_0xebc61b[_0xebc61b['length']-0x1],_0x227af8='insertion'==_0x2984e5['type']?'add':'remove';_0x4e3dd4&&'text'==_0x4e3dd4['type']&&(_0x4e3dd4[_0x227af8]+='\x0a');}}},Ot=class extends _0x449cd5{['afterInit'](){const _0x381337=this['editor'],_0x59659f=_0x381337['plugins']['get']('TrackChangesEditing');_0x381337['commands']['get']('showAIAssistant')&&_0x59659f['enableCommand']('showAIAssistant');}},wt=class extends _0x449cd5{['afterInit'](){const _0x4b6e5c=this['editor'],_0x356aad=_0x4b6e5c['plugins']['get']('TrackChangesEditing');_0x4b6e5c['commands']['get']('toggleAi')&&_0x356aad['enableCommand']('toggleAi');}},Ft=class extends _0x449cd5{['afterInit'](){const _0x348450=this['editor'],_0xf02f87=_0x348450['plugins']['get']('TrackChangesEditing');_0x348450['commands']['get']('aiQuickAction')&&_0xf02f87['enableCommand']('aiQuickAction');}},Bt=class extends _0x449cd5{['afterInit'](){const _0xd978d8=this['editor'],_0x1778aa=_0xd978d8['locale'];if(!_0xd978d8['plugins']['has']('AlignmentEditing'))return;const _0x47142c=_0xd978d8['plugins']['get']('TrackChangesEditing');_0x47142c['enableDefaultAttributesIntegration']('alignment'),_0x47142c['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x1778aa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbded7d=this['editor'],_0x5077a4=_0xbded7d['locale'];_0xbded7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24709e=>{if('formatBlock'!=_0x24709e['type'])return;const {data:_0x13672b}=_0x24709e;if(_0x13672b&&'alignment'==_0x13672b['commandName']){const _0x452610=_0x13672b['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x5077a4,'*Format:*\x20%0',function(_0x43e82b){switch(_0x43e82b){case'left':return St(_0x5077a4,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x5077a4,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x5077a4,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x5077a4,'FORMAT_JUSTIFY_TEXT');}}(_0x452610))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x449cd5{['afterInit'](){const _0x46036d=this['editor'],_0xbab89=_0x46036d['plugins']['get']('TrackChangesEditing'),_0x378b27=_0x46036d['locale'];for(const _0x172ca9 of vt){if(!_0x46036d['plugins']['has'](_0x172ca9))continue;const _0xa02c78=_0x172ca9['slice'](0x0,-0x7)['toLowerCase'](),_0x5432f3='FORMAT_'+_0xa02c78['toUpperCase']();_0xbab89['enableDefaultAttributesIntegration'](_0xa02c78),_0xbab89['descriptionFactory']['registerAttributeLabel'](_0xa02c78,St(_0x378b27,_0x5432f3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dfaf7=this['editor'],_0x3c2318=_0x5dfaf7['locale'],_0x4676e5=_0x5dfaf7['plugins']['get']('TrackChangesEditing');function _0x3ca264(_0xc8ec42,_0x1cd273){_0x4676e5['descriptionFactory']['registerDescriptionCallback'](_0x3843d4=>{if('formatInline'!=_0x3843d4['type'])return;const {data:_0x373c28}=_0x3843d4;return _0x373c28&&_0x373c28['commandName']===_0xc8ec42?_0x373c28['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x3c2318,'*Format:*\x20%0',_0x1cd273)}:{'type':'format','content':St(_0x3c2318,'*Remove\x20format:*\x20%0',_0x1cd273)}:void 0x0;});}_0x3ca264('bold',St(_0x3c2318,'FORMAT_BOLD')),_0x3ca264('italic',St(_0x3c2318,'FORMAT_ITALIC')),_0x3ca264('underline',St(_0x3c2318,'FORMAT_UNDERLINE')),_0x3ca264('code',St(_0x3c2318,'FORMAT_CODE')),_0x3ca264('strikethrough',St(_0x3c2318,'FORMAT_STRIKETHROUGH')),_0x3ca264('subscript',St(_0x3c2318,'FORMAT_SUBSCRIPT')),_0x3ca264('superscript',St(_0x3c2318,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x449cd5{['afterInit'](){const _0x58329c=this['editor'],_0x48e5da=_0x58329c['locale'];if(!_0x58329c['plugins']['has']('BlockQuoteEditing'))return;const _0x1ac582=_0x58329c['plugins']['get']('TrackChangesEditing'),_0x47c8c9=this['editor']['commands']['get']('blockQuote');_0x1ac582['enableCommand']('blockQuote',(_0x4aa77d,_0x2864fa={})=>{const _0x5021be=this['editor']['model']['document']['selection'],_0x25c731=_0x2864fa&&void 0x0!==_0x2864fa['forceValue']?_0x2864fa['forceValue']:!_0x47c8c9['value'];let _0x4bad52=[];_0x4bad52=At(_0x25c731?Array['from'](_0x5021be['getSelectedBlocks']())['filter'](_0x61ed8b=>Pt(_0x61ed8b)||function(_0x2fe52a,_0x2a7a03){const _0x4cf0b3=_0x2a7a03['createContext'](_0x2fe52a['parent']);return!!_0x2a7a03['checkChild'](_0x4cf0b3,'blockQuote')&&!!_0x2a7a03['checkChild'](_0x4cf0b3['push']('blockQuote'),_0x2fe52a);}(_0x61ed8b,this['editor']['model']['schema'])):Array['from'](_0x5021be['getSelectedBlocks']())['filter'](_0x1b6e36=>Pt(_0x1b6e36)),_0x58329c['model']),_0x58329c['model']['change'](()=>{for(const _0x41064a of _0x4bad52)_0x1ac582['markBlockFormat'](_0x41064a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x25c731}]});});}),_0x1ac582['descriptionFactory']['registerDescriptionCallback'](_0x1fff54=>{const {data:_0x1e18b2}=_0x1fff54;if(_0x1e18b2&&'blockQuote'==_0x1e18b2['commandName']){const _0x1559f3=St(_0x48e5da,'ELEMENT_BLOCK_QUOTE');return _0x1e18b2['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x48e5da,'*Set\x20format:*\x20%0',_0x1559f3)}:{'type':'format','content':St(_0x48e5da,'*Remove\x20format:*\x20%0',_0x1559f3)};}});}};function Pt(_0x57e37c){return'blockQuote'==_0x57e37c['parent']['name'];}var xt=class extends _0x449cd5{['afterInit'](){const _0x5a3fac=this['editor'],_0x307871=_0x5a3fac['locale'],_0x497b4c=_0x5a3fac['plugins']['get']('TrackChangesEditing');_0x5a3fac['plugins']['has']('BookmarkEditing')&&(_0x497b4c['enableCommand']('insertBookmark'),_0x497b4c['enableDefaultAttributesIntegration']('updateBookmark'),_0x497b4c['descriptionFactory']['registerDescriptionCallback'](_0x3bb9db=>{if('insertion'!=_0x3bb9db['type']&&'deletion'!=_0x3bb9db['type']&&'attribute'!=_0x3bb9db['type'])return;const _0x248e81=_0x3bb9db['getContainedElement']();if(null==_0x248e81)return;if(!_0x248e81['is']('element','bookmark'))return;const _0x3d9f09=_0x248e81['getAttribute']('bookmarkId');if('insertion'==_0x3bb9db['type'])return{'type':'insertion','content':St(_0x307871,'*Insert:*\x20%0','\x22'+_0x3d9f09+'\x22\x20'+St(_0x307871,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3bb9db['type'])return{'type':'deletion','content':St(_0x307871,'*Remove:*\x20%0','\x22'+_0x3d9f09+'\x22\x20'+St(_0x307871,'ELEMENT_BOOKMARK'))};const {data:_0x36b73a}=_0x3bb9db;return _0x36b73a&&'bookmarkId'==_0x36b73a['key']?{'type':'format','content':St(_0x307871,'*Set\x20bookmark:*\x20%0','\x22'+_0x36b73a['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x449cd5{['afterInit'](){const _0x41fcd3=this['editor'];_0x41fcd3['plugins']['has']('CaseChange')&&(_0x41fcd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x41fcd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x41fcd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x449cd5{['afterInit'](){const _0x19419f=this['editor'];_0x19419f['commands']['get']('ckbox')&&_0x19419f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x449cd5{['afterInit'](){const _0x4a5835=this['editor'];if(!_0x4a5835['plugins']['has']('CodeBlock'))return;const _0x30eee5=_0x4a5835['plugins']['get']('TrackChangesEditing'),_0x5dda31=_0x4a5835['locale'],_0x19c2ec=_0x4a5835['config']['get']('codeBlock')['languages'],_0x3bc206=_0x4a5835['commands']['get']('codeBlock');_0x30eee5['enableCommand']('indentCodeBlock'),_0x30eee5['enableCommand']('outdentCodeBlock'),_0x30eee5['enableCommand']('codeBlock',(_0x47bb63,_0x88492d={})=>{const _0x4f12b7=_0x4a5835['model'],_0x3e252a=_0x4a5835['model']['document']['selection'],_0x4d1afb=_0x88492d&&void 0x0!==_0x88492d['forceValue']?_0x88492d['forceValue']:!_0x3bc206['value'];let _0x3ce6ae;_0x88492d['language']||(_0x88492d['language']=_0x19c2ec[0x0]['language']),_0x3ce6ae=_0x4d1afb?Array['from'](_0x3e252a['getSelectedBlocks']())['filter'](_0x1787f5=>{return Vt(_0x1787f5)||(_0x52d825=_0x1787f5,_0x2cae1e=_0x4f12b7['schema'],!_0x52d825['is']('rootElement')&&!_0x2cae1e['isLimit'](_0x52d825)&&_0x2cae1e['checkChild'](_0x52d825['parent'],'codeBlock'));var _0x52d825,_0x2cae1e;}):Array['from'](_0x3e252a['getSelectedBlocks']())['filter'](_0x2e36cd=>Vt(_0x2e36cd));const _0x55e9d7=At(_0x3ce6ae,_0x4f12b7);_0x4f12b7['change'](()=>{for(const _0x41dd04 of _0x55e9d7)_0x30eee5['markBlockFormat'](_0x41dd04,{'commandName':'codeBlock','commandParams':[{..._0x88492d,'forceValue':_0x4d1afb}],'formatGroupId':'blockName'});});}),(_0x30eee5['descriptionFactory']['registerElementLabel']('codeBlock',_0x479643=>St(_0x5dda31,'ELEMENT_CODE_BLOCK',_0x479643)),_0x30eee5['descriptionFactory']['registerDescriptionCallback'](_0x5be373=>{if('formatBlock'!=_0x5be373['type'])return;const _0x4092e8=_0x5dda31['t'],{data:_0x8f2bfe}=_0x5be373;if(!_0x8f2bfe||'codeBlock'!=_0x8f2bfe['commandName'])return;const _0x4e82bd=_0x8f2bfe['commandParams'][0x0]['language'],_0x349d30=_0x4092e8(_0x19c2ec['find'](_0x19829e=>_0x19829e['language']===_0x4e82bd)['label'])['toLowerCase']();return _0x8f2bfe['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x5dda31,'*Set\x20format:*\x20%0',St(_0x5dda31,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x349d30+')')}:{'type':'format','content':St(_0x5dda31,'*Remove\x20format:*\x20%0',St(_0x5dda31,'ELEMENT_CODE_BLOCK',0x1))};}));}};function Vt(_0x274d9f){return'codeBlock'==_0x274d9f['name'];}var Wt=class extends _0x449cd5{['afterInit'](){const _0x2d99f1=this['editor'];_0x2d99f1['plugins']['has']('CommentsEditing')&&_0x2d99f1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},jt=class extends _0x449cd5{static get['requires'](){return[ht];}['init'](){const _0x765126=this['editor'],_0x6de2c1=_0x765126['plugins']['get']('TrackChangesEditing');_0x6de2c1['enableCommand']('delete');const _0x356b7c=_0x765126['commands']['get']('deleteForward');_0x6de2c1['enableCommand']('deleteForward',(_0x3b036b,_0x46e021={})=>{const _0xbb4ddb=_0x765126['model']['createSelection'](_0x765126['model']['document']['selection']);_0xbb4ddb['isCollapsed']&&_0x765126['model']['modifySelection'](_0xbb4ddb,{'direction':'forward','unit':_0x46e021['unit']});const _0x4a5602=_0xbb4ddb['getFirstRange'](),_0x400606=rt['fromRange'](_0x4a5602);let _0x197989;_0x3b036b(_0x46e021),_0x197989='$graveyard'==_0x400606['root']['rootName']?_0x765126['model']['createRange'](_0x4a5602['start']):_0x765126['model']['createRange'](_0x400606['start'],_0x400606['end']),_0x400606['detach'](),_0x765126['model']['enqueueChange'](_0x356b7c['buffer']['batch'],_0x282f62=>{_0x356b7c['buffer']['lock'](),_0x282f62['setSelection'](_0x282f62['createRange'](_0x197989['end'])),_0x356b7c['buffer']['unlock']();});});}},Kt=class extends _0x449cd5{['afterInit'](){const _0x1322f9=this['editor'];if(!_0x1322f9['plugins']['has']('ListEditing'))return;const _0x3a09ff=_0x1322f9['locale'],_0x38abc6=_0x1322f9['plugins']['get']('TrackChangesEditing'),_0x16d9fe=_0x1322f9['plugins']['has']('TodoListEditing'),_0x24fe7d=!!_0x1322f9['config']['get']('list.multiBlock');function _0x2e13c3(_0x72064e){return{'type':'format','content':''+St(_0x3a09ff,'*Set\x20format:*\x20%0',_0x72064e)};}function _0xa55ad9(_0x155360){return{'type':'format','content':''+St(_0x3a09ff,'*Remove\x20format:*\x20%0',_0x155360)};}_0x38abc6['enableDefaultAttributesIntegration']('numberedList'),_0x38abc6['enableDefaultAttributesIntegration']('bulletedList'),_0x38abc6['enableDefaultAttributesIntegration']('customNumberedList'),_0x38abc6['enableDefaultAttributesIntegration']('customBulletedList'),_0x38abc6['enableDefaultAttributesIntegration']('indentList'),_0x38abc6['enableDefaultAttributesIntegration']('outdentList'),_0x38abc6['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x38abc6['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x24fe7d&&(_0x38abc6['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x38abc6['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x16d9fe&&(_0x38abc6['enableDefaultAttributesIntegration']('todoList'),_0x38abc6['enableDefaultAttributesIntegration']('checkTodoList'),_0x38abc6['descriptionFactory']['registerDescriptionCallback'](_0x5d9a54=>{const {data:_0x486110}=_0x5d9a54;if(_0x486110&&'todoListChecked'==_0x486110['key'])return{'type':'format','content':_0x486110['newValue']?St(_0x3a09ff,'*Check\x20item*'):St(_0x3a09ff,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x41db88=>{if(_0x41db88['batch']['isUndo'])return!0x1;let _0x970008=!0x1;const _0x5c552f=_0x38abc6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b287e=>'todoListChecked'===_0x38abc6['_getAttributeKey'](_0x4b287e));for(const _0xd7dc6 of _0x5c552f)'todo'!=_0xd7dc6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x38abc6['_findSuggestions'](_0xd7dc6['getFirstRange'](),'attribute')['find'](_0xed2c72=>'listType'===_0x38abc6['_getAttributeKey'](_0xed2c72['suggestion']))||(_0x41db88['removeMarker'](_0xd7dc6['getFirstMarker']()),_0x970008=!0x0));return _0x970008;})),_0x38abc6['descriptionFactory']['registerAttributeLabel']('listIndent',St(_0x3a09ff,'FORMAT_INDENT'));const _0xa18635={'type':'format','content':''};_0x38abc6['descriptionFactory']['registerDescriptionCallback'](_0x2d2855=>{const {data:_0x1c3626}=_0x2d2855;if(!_0x1c3626||'listType'!=_0x1c3626['key'])return;let _0x5bdd73=_0x2d2855['head'];for(;_0x5bdd73;){if(_0x5bdd73['data']&&(('listStyle'==_0x5bdd73['data']['key']||'listMarkerStyle'==_0x5bdd73['data']['key'])&&(_0x5bdd73['data']['newValue']&&'default'!=_0x5bdd73['data']['newValue']||'default'!=_0x5bdd73['data']['oldValue']&&!_0x1c3626['newValue'])||!_0x24fe7d&&'$elementName'==_0x5bdd73['data']['key']))return _0xa18635;_0x5bdd73=_0x5bdd73['next'];}if(null==_0x1c3626['newValue'])switch(_0x1c3626['oldValue']){case'bulleted':return _0xa55ad9(St(_0x3a09ff,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa55ad9(St(_0x3a09ff,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa55ad9(St(_0x3a09ff,'ELEMENT_TODO_LIST'));}switch(_0x1c3626['newValue']){case'bulleted':return _0x2e13c3(St(_0x3a09ff,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e13c3(St(_0x3a09ff,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e13c3(St(_0x3a09ff,'ELEMENT_TODO_LIST'));}}),_0x38abc6['descriptionFactory']['registerDescriptionCallback'](_0x5dca74=>{const {data:_0x1bd438}=_0x5dca74;if(_0x1bd438&&'listIndent'==_0x1bd438['key'])return null==_0x1bd438['newValue']||null==_0x1bd438['oldValue']&&0x0==_0x1bd438['newValue']?_0xa18635:void 0x0;}),_0x38abc6['descriptionFactory']['registerDescriptionCallback'](_0x222493=>{if('attribute'!=_0x222493['type'])return;const {data:_0x46d893}=_0x222493;if(!_0x46d893||'listItemId'!=_0x46d893['key'])return;const _0x160bae=zt(_0x222493);return'newValue'==_0x160bae?{'type':'format','content':St(_0x3a09ff,'*Merge:*\x20list\x20item')}:'oldValue'==_0x160bae?{'type':'format','content':St(_0x3a09ff,'*Split:*\x20list\x20item')}:_0xa18635;}),_0x1322f9['model']['document']['registerPostFixer'](_0x18d447=>this['listItemIdFixer'](_0x18d447)),_0x1322f9['model']['document']['registerPostFixer'](_0x4c59c6=>this['noTrackChangesFixer'](_0x4c59c6)),_0x1322f9['model']['document']['on']('change:data',(_0x362764,_0x428ab4)=>{if(_0x428ab4['isUndo']||!_0x428ab4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1544a7){if(_0x1544a7['batch']['isUndo']||!_0x1544a7['batch']['isLocal'])return!0x1;let _0xbf9933=!0x1;const _0x147c27=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14c73c=>_0x14c73c['data']&&'listItemId'==_0x14c73c['data']['key'])['filter'](_0x25d475=>_0x25d475['data']['newValue']&&_0x25d475['data']['oldValue']);for(const _0x3265a7 of _0x147c27)zt(_0x3265a7)||(_0x1544a7['removeMarker'](_0x3265a7['getFirstMarker']()),_0xbf9933=!0x0);return _0xbf9933;}['noTrackChangesFixer'](_0x2db814){if(_0x2db814['batch']['isUndo']||!_0x2db814['batch']['isLocal'])return!0x1;const _0x3d3a27=this['editor']['model']['document']['differ'],_0x4ea31d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4ea31d['trackChangesCommand']['value'])return!0x1;let _0xd60896=!0x1;const _0x1b151b=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x498f7c=_0x3d3a27['getChanges']()['filter'](_0x466bca=>'attribute'==_0x466bca['type'])['filter'](_0x16fdf8=>_0x1b151b['has'](_0x16fdf8['attributeKey']));if(0x0==_0x498f7c['length'])return _0xd60896;const _0x2630f4=new Set(_0x3d3a27['getMarkersToAdd']()['filter'](_0xf7b351=>{if(!_0xf7b351['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x8ff71a=tt(_0xf7b351['name'])['subType']['split']('|')[0x0];return _0x1b151b['has'](_0x8ff71a);})['map'](_0x4883d7=>tt(_0x4883d7['name'])['id']));for(const _0x398aee of _0x498f7c){const _0x541b02=_0x4ea31d['_findSuggestions'](_0x398aee['range'],'attribute')['filter'](_0x3b6b45=>{if(_0x3b6b45['meta']['isNextTo'])return!0x1;if(_0x2630f4['has'](_0x3b6b45['suggestion']['id']))return!0x1;const _0x517c4c=_0x4ea31d['_getAttributeKey'](_0x3b6b45['suggestion']);return _0x1b151b['has'](_0x517c4c);})['map'](_0x461b9f=>_0x461b9f['suggestion']);if(_0x541b02['length']){for(const _0x47f40a of _0x541b02)_0x2db814['removeMarker'](_0x47f40a['getFirstMarker']());_0xd60896=!0x0;}}return _0xd60896;}['assureChains'](){const _0x548baa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x992ee8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x55e1e8;const _0x5c50ed=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x134246=>{if(_0x134246['data']['oldRange']||!_0x134246['data']['newRange'])return null;if(!_0x134246['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ea3d2}=tt(_0x134246['name']);if(!_0x548baa['hasSuggestion'](_0x1ea3d2))return null;const _0x14259b=_0x548baa['getSuggestion'](_0x1ea3d2);return _0x992ee8['includes'](_0x14259b['data']['key']);})['map'](_0x5ac26d=>{const {id:_0x49274a}=tt(_0x5ac26d['name']),_0x15f09a=_0x548baa['getSuggestion'](_0x49274a);return _0x55e1e8=_0x15f09a['attributes']['groupId'],_0x15f09a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5c50ed['size'])return;const _0x54afc1=_0x548baa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x453903=>'attribute'==_0x453903['type']&&_0x453903['data']&&_0x992ee8['includes'](_0x453903['data']['key'])&&_0x453903['attributes']['groupId']!=_0x55e1e8)['map'](_0x3eec46=>({'listItem':_0x3eec46['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3eec46['attributes']['groupId']})),_0x1209a6=new Set();for(const {groupId:_0x2f2fec,listItem:_0x36da7a}of _0x54afc1)_0x5c50ed['has'](_0x36da7a)&&_0x1209a6['add'](_0x2f2fec);for(const _0x43cfac of _0x548baa['getSuggestions']())_0x1209a6['has'](_0x43cfac['attributes']['groupId'])&&_0x43cfac['setAttribute']('groupId',_0x55e1e8);}['_supportLegacySuggestions'](){const _0x43f2e2=this['editor'],_0x1862d8=_0x43f2e2['locale'],_0x446f24=_0x43f2e2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x446f24['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x30737a,_0x492117){const _0x5e3029=[];for(let _0x1ceabb of _0x30737a)_0x1ceabb['start']['nodeAfter']===_0x1ceabb['end']['parent']&&(_0x1ceabb=_0x43f2e2['model']['createRange'](_0x43f2e2['model']['createPositionAt'](_0x1ceabb['start']['nodeAfter'],0x0))),_0x5e3029['push'](_0x1ceabb);_0x43f2e2['model']['change'](_0x5886f2=>{const _0x51f806=_0x43f2e2['model']['document']['selection'],_0x569f19=Array['from'](_0x51f806['getRanges']())['map'](_0x5f8f52=>rt['fromRange'](_0x5f8f52));_0x5886f2['setSelection'](_0x5e3029),_0x43f2e2['commands']['get'](_0x492117['commandName'])['refresh'](),_0x492117['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x43f2e2['execute'](_0x492117['commandName'],..._0x492117['commandParams']),_0x5886f2['setSelection'](_0x569f19);for(const _0x578f62 of _0x569f19)_0x578f62['detach']();});}),_0x446f24['descriptionFactory']['registerElementLabel'](function(_0x119345){const _0x140929=!_0x43f2e2['model']['schema']['isObject'](_0x119345),_0x16fa62=_0x119345['previousSibling'],_0x237754=_0x119345['nextSibling'],_0x441b25=_0x119345['getAttribute']('listItemId'),_0x2ca4fb=!_0x16fa62||_0x16fa62['getAttribute']('listItemId')!==_0x441b25,_0x146861=!_0x237754||_0x237754['getAttribute']('listItemId')!==_0x441b25;return _0x140929&&Boolean(_0x441b25)&&_0x2ca4fb&&_0x146861;},_0x1efb10=>St(_0x1862d8,'ELEMENT_LIST_ITEM',_0x1efb10));}['_registerLegacyDescription'](){const _0x16145c=this['editor'],_0x35a061=_0x16145c['locale'];function _0x161a21(_0x479cab){const _0x422212=_0x16145c['commands']['get']('bulletedList')['value'],_0x5bb1be=_0x16145c['commands']['get']('numberedList')['value'];return'numberedList'===_0x479cab?_0x422212:_0x5bb1be;}_0x16145c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4572cf){if('formatBlock'!=_0x4572cf['type'])return;const {data:_0x445649}=_0x4572cf;if(!_0x445649)return;let _0x2f67c8,_0x257bde,_0x1a7cca,_0x55316d;switch(_0x445649['commandName']){case'bulletedList':_0x1a7cca=_0x445649['commandParams'][0x0]['forceValue'],_0x55316d=_0x161a21(_0x445649['commandName']),_0x2f67c8=_0x1a7cca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55316d&&_0x16145c['config']['get']('list.multiBlock')||(_0x2f67c8='*Change\x20to:*\x20%0'),_0x257bde={'type':'format','content':St(_0x35a061,_0x2f67c8,St(_0x35a061,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1a7cca=_0x445649['commandParams'][0x0]['forceValue'],_0x55316d=_0x161a21(_0x445649['commandName']),_0x2f67c8=_0x1a7cca?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x55316d&&_0x16145c['config']['get']('list.multiBlock')||(_0x2f67c8='*Change\x20to:*\x20%0'),_0x257bde={'type':'format','content':St(_0x35a061,_0x2f67c8,St(_0x35a061,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2f67c8='*Indent:*\x20%0',_0x257bde={'type':'format','content':St(_0x35a061,_0x2f67c8,St(_0x35a061,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2f67c8=function(_0xc7c221){const _0x2cb493=_0xc7c221['getFirstRange']();let _0x59d4a9=_0x2cb493['start']['nodeAfter'];for(;_0x59d4a9&&_0x2cb493['containsItem'](_0x59d4a9);){if(_0x59d4a9['getAttribute']('listIndent')>0x0)return!0x1;_0x59d4a9=_0x59d4a9['nextSibling'];}return!0x0;}(_0x4572cf)?St(_0x35a061,'*Format:*\x20remove\x20from\x20%0',St(_0x35a061,function(_0x26c39d){return'ELEMENT_'+_0x26c39d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4572cf))):St(_0x35a061,'*Outdent:*\x20%0',St(_0x35a061,'ELEMENT_LIST_ITEM')),_0x257bde={'type':'format','content':_0x2f67c8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x445649['multipleBlocks']&&(_0x2f67c8='*Merge:*\x20%0',_0x257bde={'type':'deletion','content':St(_0x35a061,_0x2f67c8,St(_0x35a061,'ELEMENT_LIST_ITEM'))});}return _0x257bde;});}};function zt(_0x244808){let _0x4fc0c5=_0x244808['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4fc0c5;){const _0x5eb0ea=_0x4fc0c5['getAttribute']('listItemId');if(!_0x5eb0ea)return!0x1;if(_0x5eb0ea==_0x244808['data']['newValue'])return'newValue';if(_0x5eb0ea==_0x244808['data']['oldValue'])return'oldValue';_0x4fc0c5=_0x4fc0c5['previousSibling'];}return!0x1;}var Xt=class extends _0x449cd5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb4594=this['editor']['config']['get']('list.properties'),_0x2293ca=this['editor']['plugins']['get']('TrackChangesEditing');_0xb4594['styles']&&_0x2293ca['enableDefaultAttributesIntegration']('listStyle'),_0xb4594['reversed']&&_0x2293ca['enableDefaultAttributesIntegration']('listReversed'),_0xb4594['startIndex']&&_0x2293ca['enableDefaultAttributesIntegration']('listStart');const _0x5f32fa={'type':'format','content':''};_0x2293ca['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x11b770=this['editor']['locale'];_0x2293ca['descriptionFactory']['registerAttributeLabel']('listReversed',St(_0x11b770,'FORMAT_LIST_REVERSED')),_0x2293ca['descriptionFactory']['registerDescriptionCallback'](_0x1c4b41=>{const {data:_0x33182c}=_0x1c4b41;if(_0x33182c&&'listReversed'==_0x33182c['key'])return null==_0x33182c['newValue']||0x0==_0x33182c['newValue']&&null==_0x33182c['oldValue']?_0x5f32fa:void 0x0;}),_0x2293ca['descriptionFactory']['registerAttributeLabel']('listStart',St(_0x11b770,'FORMAT_LIST_START')),_0x2293ca['descriptionFactory']['registerDescriptionCallback'](_0x796549=>{const {data:_0x35568f}=_0x796549;if(_0x35568f&&'listStart'==_0x35568f['key'])return null==_0x35568f['newValue']||0x1==_0x35568f['newValue']&&null==_0x35568f['oldValue']?_0x5f32fa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5aa0dc=>{if(_0x5aa0dc['batch']['isUndo'])return!0x1;let _0x37c1c9=!0x1;const _0x7abcfe=_0x2293ca['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x80d7a4=>{const _0x16ad90=_0x2293ca['_getAttributeKey'](_0x80d7a4);return'listStart'==_0x16ad90||'listReversed'==_0x16ad90;});for(const _0x14d1e3 of _0x7abcfe){const _0x4a035d=_0x14d1e3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x4a035d&&'customNumbered'!=_0x4a035d&&(_0x2293ca['_findSuggestions'](_0x14d1e3['getFirstRange'](),'attribute')['find'](_0x37c0f8=>'listType'==_0x2293ca['_getAttributeKey'](_0x37c0f8['suggestion']))||(_0x5aa0dc['removeMarker'](_0x14d1e3['getFirstMarker']()),_0x37c1c9=!0x0));}return _0x37c1c9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x32a822){const _0x14b654=this['editor']['locale'],{data:_0x6a1dbb}=_0x32a822,_0x24e150={'type':'format','content':''};if(!_0x6a1dbb||'listStyle'!=_0x6a1dbb['key'])return;if(!_0x6a1dbb['oldValue'])return'default'==_0x6a1dbb['newValue']?_0x24e150:{'type':'format','content':''+St(_0x14b654,'*Set\x20format:*\x20%0',St(_0x14b654,this['_getTranslationKeyForListStyle'](_0x6a1dbb['newValue'])))};if(!_0x6a1dbb['newValue']){if('default'==_0x6a1dbb['oldValue'])return _0x24e150;let _0x44874b=_0x32a822['head'];for(;_0x44874b;){if(_0x44874b['data']&&'listType'==_0x44874b['data']['key']&&_0x44874b['data']['newValue'])return _0x24e150;_0x44874b=_0x44874b['next'];}return{'type':'format','content':''+St(_0x14b654,'*Remove\x20format:*\x20%0',St(_0x14b654,this['_getTranslationKeyForListStyle'](_0x6a1dbb['oldValue'])))};}if('default'!=_0x6a1dbb['newValue'])return{'type':'format','content':''+St(_0x14b654,'*Set\x20format:*\x20%0',St(_0x14b654,this['_getTranslationKeyForListStyle'](_0x6a1dbb['newValue'])))};let _0x172840=_0x32a822['head'];for(;_0x172840;){if(_0x172840['data']&&'listType'==_0x172840['data']['key']&&_0x172840['data']['newValue']&&_0x172840['data']['oldValue'])return _0x24e150;_0x172840=_0x172840['next'];}return{'type':'format','content':St(_0x14b654,'*Set\x20format:*\x20%0',St(_0x14b654,'ELEMENT_'+_0x32a822['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xa3ad04=this['editor'],_0x2b5e50=_0xa3ad04['locale'];_0xa3ad04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8cdae5=>{if('formatBlock'!=_0x8cdae5['type'])return;const {data:_0x432b5d}=_0x8cdae5;if(!_0x432b5d)return;let _0x39a0bc,_0x1efa71;switch(_0x432b5d['commandName']){case'listStyle':_0x39a0bc='*Change\x20to:*\x20%0',_0x1efa71={'type':'format','content':St(_0x2b5e50,_0x39a0bc,St(_0x2b5e50,this['_getTranslationKeyForListStyle'](_0x432b5d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x39a0bc=_0x432b5d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1efa71={'type':'format','content':St(_0x2b5e50,_0x39a0bc)};break;case'listStart':_0x39a0bc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1efa71={'type':'format','content':St(_0x2b5e50,_0x39a0bc,_0x432b5d['commandParams'][0x0]['startIndex'])};}return _0x1efa71;});}['_getTranslationKeyForListStyle'](_0x419e06){return'ELEMENT_'+(_0x2f01b6=_0x419e06,qt['includes'](_0x2f01b6)?'bulleted':Yt['includes'](_0x2f01b6)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x419e06['toUpperCase']()['replace'](/-/g,'_');var _0x2f01b6;}};const qt=['disc','circle','square'],Yt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var Qt=class extends _0x449cd5{['afterInit'](){const _0x44f68d=this['editor'];_0x44f68d['commands']['get']('emoji')&&_0x44f68d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},Zt=class extends _0x449cd5{static get['requires'](){return[ft];}['init'](){const _0x5d66b7=this['editor'],_0x53ffb3=_0x5d66b7['plugins']['get']('TrackChangesEditing'),_0x1578cb=_0x5d66b7['commands']['get']('enter');_0x53ffb3['enableCommand']('enter',()=>{_0x5d66b7['model']['change'](_0x3d4c4c=>{const _0x1d92ec=_0x5d66b7['model']['document']['selection'],_0x52bd52=_0x1d92ec['getFirstPosition'](),_0x45b0e4=rt['fromRange'](_0x1d92ec['getFirstRange']());if(_0x1578cb['enterBlock'](_0x3d4c4c)){const _0x40cbb4=_0x5d66b7['model']['createPositionAt'](_0x52bd52['parent']['nextSibling'],0x0),_0x38d758=_0x3d4c4c['createRange'](_0x52bd52,_0x40cbb4);_0x53ffb3['markInsertion'](_0x38d758);}else _0x3d4c4c['setSelection'](_0x3d4c4c['createRange'](_0x45b0e4['end']));_0x45b0e4['detach'](),_0x1578cb['fire']('afterExecute',{'writer':_0x3d4c4c});});});}},Jt=class extends _0x449cd5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x512cf8=this['editor']['plugins']['get']('TrackChangesEditing');_0x512cf8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x512cf8['enableCommand']('findNext'),_0x512cf8['enableCommand']('findPrevious'),_0x512cf8['enableCommand']('replace'),_0x512cf8['enableCommand']('replaceAll');}['handleFindCommand'](_0x5cbca4,_0x422c4e,_0x3b332f={}){const _0x3b44fa=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5cbca4(_0x8e2318=>{let _0x43d2c7=('string'==typeof _0x422c4e?_0x3b44fa['findByTextCallback'](_0x422c4e,_0x3b332f):_0x422c4e)(_0x8e2318);Array['isArray'](_0x43d2c7)&&(_0x43d2c7={'results':_0x43d2c7,'searchText':'string'==typeof _0x422c4e?_0x422c4e:''});const _0x4db9e4=_0x43d2c7['results']['filter'](_0x7d61ae=>!0x1===this['_isInDeletionRange'](_0x7d61ae,_0x8e2318['item']));return{..._0x43d2c7,'results':_0x4db9e4};},_0x3b332f);}['_isInDeletionRange'](_0x594ed7,_0x29d312){const _0x492a67=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29d312,_0x594ed7['start']),this['editor']['model']['createPositionAt'](_0x29d312,_0x594ed7['end']));for(const _0x4e4348 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x492a67['getIntersection'](_0x4e4348['getRange']()))return!0x0;return!0x1;}};const te=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var ee=class extends _0x449cd5{['afterInit'](){const _0x336c4c=this['editor']['locale'],_0xb5150a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3a4a99,commandName:_0x225e33}of te)this['editor']['plugins']['has'](_0x3a4a99)&&_0xb5150a['enableDefaultAttributesIntegration'](_0x225e33);_0xb5150a['descriptionFactory']['registerAttributeLabel']('fontSize',St(_0x336c4c,'FORMAT_FONT_SIZE')),_0xb5150a['descriptionFactory']['registerAttributeLabel']('fontFamily',St(_0x336c4c,'FORMAT_FONT_FAMILY')),_0xb5150a['descriptionFactory']['registerAttributeLabel']('fontColor',St(_0x336c4c,'FORMAT_FONT_COLOR')),_0xb5150a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',St(_0x336c4c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14b3ec=this['editor'],_0x1e2f53=_0x14b3ec['locale'];_0x14b3ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30dddc=>{const _0x39eae6=_0x1e2f53['t'];if('formatInline'!=_0x30dddc['type'])return;const {data:_0x535ed2}=_0x30dddc;if(null!=_0x535ed2){if('fontSize'==_0x535ed2['commandName']){const _0x47c0b0=_0x535ed2['commandParams'][0x0]['value'];if(_0x47c0b0){const _0x261c02=this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x30f7e3=>_0x30f7e3['model']==_0x47c0b0)['title'];return{'type':'format','content':St(_0x1e2f53,'*Set\x20font\x20size:*\x20%0',_0x39eae6(_0x261c02)['toLowerCase']())};}return{'type':'format','content':St(_0x1e2f53,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x535ed2['commandName']){const _0xbda4ca=_0x535ed2['commandParams'][0x0]['value'];return _0xbda4ca?{'type':'format','content':St(_0x1e2f53,'*Set\x20font\x20family:*\x20%0',_0xbda4ca)}:{'type':'format','content':St(_0x1e2f53,'*Reset\x20font\x20family*')};}if('fontColor'==_0x535ed2['commandName']){const _0x59506c=_0x535ed2['commandParams'][0x0]['value'];if(_0x59506c){const _0x1d3c43=_0x1df80d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x377a93=>_0x377a93['model']==_0x59506c);let _0x463dc5=_0x59506c,_0x105bb6='';return _0x1d3c43&&(_0x463dc5=_0x1d3c43['label'],_0x105bb6=_0x39eae6(_0x463dc5)['toLowerCase']()),{'type':'format','content':St(_0x1e2f53,'*Set\x20font\x20color:*\x20%0',_0x105bb6)['trim'](),'color':{'value':_0x59506c,'title':_0x105bb6||_0x463dc5}};}return{'type':'format','content':St(_0x1e2f53,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x535ed2['commandName']){const _0x1ab0e0=_0x535ed2['commandParams'][0x0]['value'];if(_0x1ab0e0){const _0x327ba8=_0x1df80d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1161ff=>_0x1161ff['model']==_0x1ab0e0);let _0x5bd097=_0x1ab0e0,_0x5adc5e='';return _0x327ba8&&(_0x5bd097=_0x327ba8['label'],_0x5adc5e=_0x39eae6(_0x5bd097)['toLowerCase']()),{'type':'format','content':St(_0x1e2f53,'*Set\x20font\x20background\x20color:*\x20%0',_0x5adc5e)['trim'](),'color':{'value':_0x1ab0e0,'title':_0x5adc5e||_0x5bd097}};}return{'type':'format','content':St(_0x1e2f53,'*Reset\x20font\x20background\x20color*')};}}});}},ne=class extends _0x449cd5{['afterInit'](){const {plugins:_0x3703c5}=this['editor'];_0x3703c5['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x3703c5['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xc7860a,plugins:_0x208238,commands:_0x19bcb0}=this['editor'],_0x5b716b=_0x208238['get']('TrackChangesEditing');_0x19bcb0['get']('footnotesStyle')&&_0x5b716b['enableDefaultAttributesIntegration']('footnotesStyle'),_0x19bcb0['get']('footnotesStart')&&_0x5b716b['enableDefaultAttributesIntegration']('footnotesStart'),_0x5b716b['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',St(_0xc7860a,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x5b716b['descriptionFactory']['registerAttributeLabel']('footnotesListStart',St(_0xc7860a,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x5018c2=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x3459e9,commands:_0x5e6cbe}=this['editor'];_0x5e6cbe['get']('insertFootnote')&&_0x5018c2['enableCommand']('insertFootnote'),_0x5018c2['descriptionFactory']['registerElementLabel']('footnoteRef',_0x548cfa=>St(_0x3459e9,'ELEMENT_FOOTNOTE_REF',_0x548cfa)),_0x5018c2['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x53b005=>St(_0x3459e9,'ELEMENT_FOOTNOTE_DEFINITION',_0x53b005)),_0x5018c2['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4a4c94=>St(_0x3459e9,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4a4c94));}},ie=class extends _0x449cd5{['afterInit'](){const _0x4891ad=this['editor'],_0x2af2fa=_0x4891ad['plugins']['get']('TrackChangesEditing'),_0x30cd75=_0x4891ad['commands']['get']('copyFormat'),_0x1d04e1=_0x4891ad['commands']['get']('pasteFormat');_0x30cd75&&_0x1d04e1&&(_0x2af2fa['enableDefaultAttributesIntegration']('pasteFormat'),_0x2af2fa['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x23a398=this['editor'],_0x4a9708=_0x23a398['locale'];_0x23a398['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44180f=>{if('formatBlock'!=_0x44180f['type']&&'formatInline'!=_0x44180f['type'])return;const {data:_0x5ad0f9}=_0x44180f;if(_0x5ad0f9&&'pasteFormat'===_0x5ad0f9['commandName']){const _0x5e877a=[],_0x5fbff7=_0x5ad0f9['commandParams'][0x0];for(const [_0x52bb2e,_0x2f3af9]of Object['entries'](_0x5fbff7))_0x5e877a['push'](se(_0x23a398,_0x52bb2e,_0x2f3af9));return _0x5e877a['length']?{'type':'format','content':St(_0x4a9708,'*Set\x20format\x20to:*\x20%0',_0x5e877a['join'](',\x20'))}:{'type':'format','content':St(_0x4a9708,'*Remove\x20all\x20formatting*')};}});}};function se(_0x9de3c7,_0xd1bf57,_0x5f2587){const _0x13e602=_0x9de3c7['locale']['t'],_0xc7b1a3=_0xd1bf57['split'](/(?=[A-Z])/)['join']('\x20'),_0x5b3af5=_0x13e602(_0xc7b1a3['charAt'](0x0)['toUpperCase']()+_0xc7b1a3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5f2587)return _0x5b3af5;if('fontColor'===_0xd1bf57||'fontBackgroundColor'===_0xd1bf57){const _0x57e82e=_0x1df80d(_0x9de3c7['config']['get']('fontColor.colors'))['find'](_0x4916d9=>_0x4916d9['model']==_0x5f2587);return _0x5b3af5+'\x20('+(_0x57e82e?_0x13e602(_0x57e82e['label'])['toLowerCase']():_0x5f2587)+')';}if('fontSize'===_0xd1bf57&&isNaN(parseFloat(_0x5f2587))){const _0x2608d8=_0x9de3c7['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x9de3c7['config']['get']('fontSize.options'))['find'](_0x3c9cf8=>_0x3c9cf8['model']==_0x5f2587);return _0x5b3af5+'\x20('+(_0x2608d8?_0x13e602(_0x2608d8['title'])['toLowerCase']():_0x5f2587)+')';}return _0x5b3af5+'\x20('+_0x5f2587+')';}var re=class extends _0x449cd5{['afterInit'](){const _0x14078e=this['editor'];if(!_0x14078e['plugins']['has']('GeneralHtmlSupport')||!_0x14078e['plugins']['has']('DataSchema'))return;const _0x1c4017=_0x14078e['plugins']['get']('TrackChangesEditing'),_0xe8bc2e=_0x14078e['plugins']['get']('GeneralHtmlSupport'),_0x29b93b=_0x14078e['plugins']['get']('DataSchema'),_0x1f05f5=_0x14078e['locale'],_0x443e66=new Set(['htmlContent']);for(const _0x46f71c of _0x29b93b['getDefinitionsForView'](/.*/,!0x1)){const _0x5f26e0=_0x46f71c['view'],_0x38618a=_0xe8bc2e['getGhsAttributeNameForElement'](_0x5f26e0);_0x443e66['add'](_0x38618a),!_0x46f71c['isInline']||_0x46f71c['isObject']||'appliesToBlock'in _0x46f71c&&_0x46f71c['appliesToBlock']||_0x1c4017['descriptionFactory']['registerAttributeLabel'](_0x38618a,_0x5f26e0),_0x46f71c['model']['startsWith']('html')&&_0x1c4017['descriptionFactory']['registerElementLabel'](_0x46f71c['model'],_0x147eea=>St(_0x1f05f5,'ELEMENT_HTML_TAG',[_0x147eea,_0x5f26e0]));}_0x1c4017['descriptionFactory']['registerAttributeLabel']('htmlContent',St(_0x1f05f5,'FORMAT_RAW_HTML_CONTENT')),_0x1c4017['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',St(_0x1f05f5,'FORMAT_HTML_LIST_ITEM')),_0x1c4017['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',St(_0x1f05f5,'FORMAT_HTML_BULLETED_LIST')),_0x1c4017['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',St(_0x1f05f5,'FORMAT_HTML_NUMBERED_LIST')),_0x1c4017['descriptionFactory']['registerDescriptionCallback'](_0x5e881e=>{if('attribute'!==_0x5e881e['type'])return;const _0x163d79=_0x5e881e['data'];if(!_0x163d79||!_0x443e66['has'](_0x163d79['key']))return;if('htmlContent'===_0x163d79['key'])return{'type':'format','content':St(_0x1f05f5,'*Change\x20%0\x20content*',St(_0x1f05f5,'ELEMENT_RAW_HTML'))};const {setItems:_0x15e79f,removeItems:_0x4651e9}=function(_0x355996,_0x26530b,_0x68b51e){const _0x90484d=[],_0x7c47f8=[],_0x327d58=_0x355996['styles']??{},_0x13f91b=_0x26530b['styles']??{};for(const _0x1f2b83 of new Set([...Object['keys'](_0x327d58),...Object['keys'](_0x13f91b)]))_0x327d58[_0x1f2b83]!==_0x13f91b[_0x1f2b83]&&(void 0x0===_0x13f91b[_0x1f2b83]?_0x7c47f8['push'](_0x1f2b83):_0x90484d['push'](_0x1f2b83+'\x20('+_0x13f91b[_0x1f2b83]+')'));const _0xb1036a=St(_0x68b51e,'FORMAT_HTML_CLASS'),_0x53dbd3=new Set(_0x355996['classes']??[]),_0x4ebfc7=new Set(_0x26530b['classes']??[]),_0x3fadcd=[..._0x4ebfc7]['some'](_0x4c3e31=>!_0x53dbd3['has'](_0x4c3e31)),_0x2ae341=[..._0x53dbd3]['some'](_0x924f87=>!_0x4ebfc7['has'](_0x924f87));_0x3fadcd&&_0x90484d['push'](_0xb1036a),_0x2ae341&&_0x7c47f8['push'](_0xb1036a);const _0x261190=St(_0x68b51e,'FORMAT_HTML_ATTRIBUTE'),_0x28d1dd=_0x355996['attributes']??{},_0x5586ff=_0x26530b['attributes']??{};let _0x593cdf=!0x1,_0x536ed0=!0x1;for(const _0x52fde9 of new Set([...Object['keys'](_0x28d1dd),...Object['keys'](_0x5586ff)]))_0x28d1dd[_0x52fde9]!==_0x5586ff[_0x52fde9]&&(void 0x0===_0x5586ff[_0x52fde9]?_0x536ed0=!0x0:_0x593cdf=!0x0);return _0x593cdf&&_0x90484d['push'](_0x261190),_0x536ed0&&_0x7c47f8['push'](_0x261190),{'setItems':_0x90484d,'removeItems':_0x7c47f8};}(_0x163d79['oldValue']??{},_0x163d79['newValue']??{},_0x1f05f5);if(!_0x15e79f['length']&&!_0x4651e9['length'])return;const _0x3a461f=[];return _0x15e79f['length']&&_0x3a461f['push'](St(_0x1f05f5,'*Set\x20format:*\x20%0',_0x15e79f['join'](',\x20'))),_0x4651e9['length']&&_0x3a461f['push'](St(_0x1f05f5,'*Remove\x20format:*\x20%0',_0x4651e9['join'](',\x20'))),{'type':'format','content':_0x3a461f['join']('\x0a')};});}},oe=class extends _0x449cd5{['_headingOptions'];['afterInit'](){const _0x2f0ef2=this['editor'];if(!_0x2f0ef2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2f0ef2['config']['get']('heading.options');const _0x1ec82b=_0x2f0ef2['locale'],_0x2fd1d6=_0x2f0ef2['plugins']['get']('TrackChangesEditing');_0x2fd1d6['enableDefaultAttributesIntegration']('heading');for(const _0x10b440 of this['_headingOptions'])'paragraph'!=_0x10b440['model']&&_0x2fd1d6['descriptionFactory']['registerElementLabel'](_0x10b440['model'],_0x3cda96=>{const _0x2678b2=this['_getHeadingLevel'](_0x10b440['model']);return null!==_0x2678b2?_0x29a045(_0x3cda96,_0x2678b2):_0x5e8166(_0x3cda96,_0x10b440['title']);});function _0x29a045(_0xd33185,_0x342dd2){return St(_0x1ec82b,'ELEMENT_HEADING',[_0xd33185,_0x342dd2]);}function _0x5e8166(_0x54951b,_0x508f1f){return St(_0x1ec82b,'ELEMENT_HEADING_CUSTOM',[_0x54951b,_0x508f1f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7efa9c=this['editor'],_0x502f02=_0x7efa9c['locale'];function _0x3cb3bd(_0x186bea,_0x55e02a){return St(_0x502f02,'ELEMENT_HEADING_CUSTOM',[_0x186bea,_0x55e02a]);}_0x7efa9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x498aac=>{if('formatBlock'!=_0x498aac['type'])return;const {data:_0x3d9ecb}=_0x498aac;if(_0x3d9ecb&&'heading'==_0x3d9ecb['commandName']){const _0x19d40e=_0x3d9ecb['commandParams'][0x0]['value'],_0x1d0b1d=this['_getHeadingLevel'](_0x19d40e);if(null!==_0x1d0b1d)return{'type':'format','content':St(_0x502f02,'*Change\x20to:*\x20%0',(_0x29818c=0x1,_0x52de2c=_0x1d0b1d,St(_0x502f02,'ELEMENT_HEADING',[_0x29818c,_0x52de2c])))};const _0x252dff=this['_headingOptions']['find'](_0x548716=>_0x548716['model']===_0x19d40e)['title'];return{'type':'format','content':St(_0x502f02,'*Change\x20to:*\x20%0',_0x3cb3bd(0x1,_0x252dff))};}var _0x29818c,_0x52de2c;});}['_getHeadingLevel'](_0x27949a){const _0x241334=_0x27949a['match'](/^heading(\d+)/);if(_0x241334)return _0x241334[0x1];const _0x1a5e70=this['_headingOptions']?.['find'](_0x2fd923=>_0x2fd923['model']==_0x27949a);if(_0x1a5e70&&_0x1a5e70['view']){const _0x5aa20d=_0x1a5e70['view'],_0x71349e=(_0x5aa20d['name']??_0x5aa20d)['match'](/^h(\d+)/);if(_0x71349e)return _0x71349e[0x1];}return null;}},ae=class extends _0x449cd5{['afterInit'](){const _0x2795b5=this['editor'];if(!_0x2795b5['plugins']['has']('HighlightEditing'))return;const _0x2b8cca=_0x2795b5['plugins']['get']('TrackChangesEditing'),_0x42ade9=_0x2795b5['locale'];_0x2b8cca['enableDefaultAttributesIntegration']('highlight'),_0x2b8cca['descriptionFactory']['registerAttributeLabel']('highlight',St(_0x42ade9,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5d671c=this['editor'],_0x220ba5=_0x5d671c['locale'];_0x5d671c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28b3c1=>{if('formatInline'!=_0x28b3c1['type'])return;const {data:_0x148fc7}=_0x28b3c1;if(_0x148fc7&&'highlight'==_0x148fc7['commandName']){const _0x5ee10b=_0x220ba5['t'],_0x48b68a=_0x148fc7['commandParams'][0x0]['value'];if(_0x48b68a){const _0x872a1a=_0x5d671c['config']['get']('highlight.options')['find'](_0x68c882=>_0x68c882['model']==_0x48b68a);return{'type':'format','content':St(_0x220ba5,'*Set\x20highlight:*\x20%0',_0x5ee10b(_0x872a1a['title'])['toLowerCase']()),'color':{'value':_0x872a1a['color'],'title':_0x872a1a['title']}};}return{'type':'format','content':St(_0x220ba5,'*Remove\x20highlight*',St(_0x220ba5,'FORMAT_HIGHLIGHT'))};}});}},ce=class extends _0x449cd5{['afterInit'](){const _0x5b7e80=this['editor'];if(!_0x5b7e80['plugins']['has']('HorizontalLineEditing'))return;_0x5b7e80['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4d68ed=_0x5b7e80['plugins']['get']('TrackChangesEditing'),_0x737037=_0x5b7e80['locale'];_0x4d68ed['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5e8590=>St(_0x737037,'ELEMENT_HORIZONTAL_LINE',_0x5e8590));}},le=class extends _0x449cd5{['afterInit'](){const _0x415ade=this['editor'];if(!_0x415ade['plugins']['has']('HtmlEmbed'))return;const _0x10b9a5=_0x415ade['plugins']['get']('TrackChangesEditing'),_0x25f3af=_0x415ade['locale'];_0x10b9a5['descriptionFactory']['registerElementLabel']('rawHtml',_0x1ac0d7=>St(_0x25f3af,'ELEMENT_HTML_EMBED',_0x1ac0d7)),_0x10b9a5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x10b9a5['descriptionFactory']['registerDescriptionCallback'](_0x5492d5=>{if('attribute'!=_0x5492d5['type'])return;const {data:_0x2f6ae3}=_0x5492d5;return _0x2f6ae3&&'value'==_0x2f6ae3['key']&&_0x5492d5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')?{'type':'format','content':St(_0x25f3af,'*Change\x20%0\x20content*',St(_0x25f3af,'ELEMENT_HTML_EMBED'))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x110b50=this['editor'],_0x1fbe0f=_0x110b50['locale'];_0x110b50['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x318271=>{if('formatBlock'!=_0x318271['type'])return;const {data:_0x590596}=_0x318271;return _0x590596&&'htmlEmbed'==_0x590596['commandName']?{'type':'format','content':St(_0x1fbe0f,'*Change\x20%0\x20content*',St(_0x1fbe0f,'ELEMENT_HTML_EMBED'))}:void 0x0;});}},ue=class extends _0x449cd5{['afterInit'](){const _0x4f2dde=this['editor'];if(!_0x4f2dde['plugins']['has']('ImageEditing'))return;const _0x5207fd=_0x4f2dde['plugins']['get']('TrackChangesEditing'),_0x2d1ca5=_0x4f2dde['plugins']['get']('ImageUtils'),_0x130ebb=_0x4f2dde['locale'];_0x5207fd['enableCommand']('insertImage'),_0x5207fd['descriptionFactory']['registerElementLabel']('imageBlock',_0x247877=>St(_0x130ebb,'ELEMENT_IMAGE',_0x247877)),_0x5207fd['descriptionFactory']['registerElementLabel']('imageInline',_0x328537=>St(_0x130ebb,'ELEMENT_INLINE_IMAGE',_0x328537)),_0x5207fd['descriptionFactory']['registerElementLabel']('caption',()=>St(_0x130ebb,'ELEMENT_CAPTION')),_0x4f2dde['plugins']['has']('ImageUploadEditing')&&_0x5207fd['enableCommand']('uploadImage'),_0x4f2dde['plugins']['has']('ImageBlockEditing')&&_0x4f2dde['plugins']['has']('ImageInlineEditing')&&(_0x5207fd['enableCommand']('imageTypeInline',(_0x78caba,_0x4d1d0a)=>{const _0x23b1a0=_0x2d1ca5['getClosestSelectedImageElement'](_0x4f2dde['model']['document']['selection']);_0x4f2dde['model']['change'](()=>{_0x5207fd['markBlockFormat'](_0x23b1a0,{'commandName':'imageTypeInline','commandParams':[_0x4d1d0a]},[],'convertBlockImageToInline');});}),_0x5207fd['enableCommand']('imageTypeBlock',(_0x5e0070,_0x39dd29)=>{_0x4f2dde['model']['change'](_0x1f9bc1=>{let _0x1c4319=_0x2d1ca5['getClosestSelectedImageElement'](_0x4f2dde['model']['document']['selection']),_0x479b8d=_0x1f9bc1['createRangeOn'](_0x1c4319);const _0x7d3a56=st['fromPosition'](_0x479b8d['start'],'toPrevious'),_0x5c1cbc=st['fromPosition'](_0x479b8d['end'],'toNext');_0x5207fd['forceDefaultExecution'](()=>_0x5e0070(_0x39dd29)),_0x1c4319=_0x2d1ca5['getClosestSelectedImageElement'](_0x4f2dde['model']['document']['selection']),_0x479b8d=_0x1f9bc1['createRangeOn'](_0x1c4319);const _0x47c9fa=_0x1f9bc1['createRange'](_0x7d3a56,_0x5c1cbc);_0x7d3a56['detach'](),_0x5c1cbc['detach'](),_0x5207fd['markBlockFormat'](_0x1c4319,{'commandName':'imageTypeInline','commandParams':[_0x39dd29]},[],'convertInlineImageToBlock'),_0x47c9fa['start']['isBefore'](_0x479b8d['start'])&&_0x5207fd['markInsertion'](_0x1f9bc1['createRange'](_0x47c9fa['start'],_0x479b8d['start']),'convertInlineImageToBlock'),_0x479b8d['end']['isBefore'](_0x47c9fa['end'])&&_0x5207fd['markInsertion'](_0x1f9bc1['createRange'](_0x479b8d['end'],_0x47c9fa['end']),'convertInlineImageToBlock');});}),_0x5207fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5207fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5207fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5207fd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5207fd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5207fd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xe63a2e])=>{const _0x5f14de=_0x5207fd['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1288b1=_0xe63a2e['start'],_0x3d3d8f=_0xe63a2e['end'];const _0x5731bc=_0x4f2dde['model']['schema']['getNearestSelectionRange'](_0x1288b1,'backward'),_0x10b28d=_0x4f2dde['model']['schema']['getNearestSelectionRange'](_0x3d3d8f,'forward');_0x5731bc['isCollapsed']&&(_0x1288b1=_0x5731bc['start']),_0x10b28d['isCollapsed']&&(_0x3d3d8f=_0x10b28d['end']),_0x5f14de([_0x4f2dde['model']['createRange'](_0x1288b1,_0x3d3d8f)]);}),_0x5207fd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x19e3ea),_0x5207fd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x19e3ea)),_0x4f2dde['plugins']['has']('ImageCaptionEditing')&&(_0x5207fd['enableCommand']('toggleImageCaption',(_0x5d6ed7,_0x5d33df)=>{const _0xe1a1cd=_0x4f2dde['plugins']['get']('ImageCaptionUtils');let _0x49ea34=_0x2d1ca5['getClosestSelectedImageElement'](_0x4f2dde['model']['document']['selection']),_0x1327e7=_0xe1a1cd['getCaptionFromImageModelElement'](_0x49ea34);_0x4f2dde['model']['change'](()=>{if(_0x1327e7)return void _0x5207fd['markDeletion'](_0x4f2dde['model']['createRangeOn'](_0x1327e7));const _0x482509=_0x2d1ca5['isBlockImage'](_0x49ea34);_0x5d6ed7(_0x5d33df),_0x49ea34=_0x2d1ca5['getClosestSelectedImageElement'](_0x4f2dde['model']['document']['selection']),_0x1327e7=_0xe1a1cd['getCaptionFromImageModelElement'](_0x49ea34),_0x5207fd['markInsertion'](_0x4f2dde['model']['createRangeOn'](_0x1327e7),_0x482509?null:'imageCaption');});}),_0x5207fd['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x19e3ea));const _0x48e660=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x40ba78(_0x54c85e,_0x4fc5a1){const _0x2f65d9=_0x48e660['findIndex'](({type:_0x42822a,subType:_0x3a691a})=>_0x54c85e['type']==_0x42822a&&_0x54c85e['subType']==_0x3a691a),_0x38e397=_0x48e660['findIndex'](({type:_0x566d7b,subType:_0x2199f0})=>_0x4fc5a1['type']==_0x566d7b&&_0x4fc5a1['subType']==_0x2199f0);if(_0x2f65d9<0x0||_0x38e397<0x0)return!0x1;const _0x493365=_0x54c85e['getFirstRange'](),_0x9a5a38=_0x4fc5a1['getFirstRange']();if((0x0==_0x2f65d9||0x1==_0x2f65d9)&&0x2==_0x38e397&&_0x493365['isIntersecting'](_0x9a5a38))return!0x0;if(0x2==_0x2f65d9&&0x3==_0x38e397){const _0x24da99=_0x5207fd['_findSuggestions'](_0x493365,'insertion')['filter'](({suggestion:_0x4e6558,meta:_0x2ab873})=>_0x2ab873['isOwn']&&'convertInlineImageToBlock'==_0x4e6558['subType']);if(_0x24da99['length']>0x1&&_0x9a5a38['end']['isEqual'](_0x493365['start']))return!0x0;if(0x1==_0x24da99['length']&&(_0x493365['start']['isEqual'](_0x9a5a38['end'])||_0x493365['end']['isEqual'](_0x9a5a38['start'])))return!0x0;}if(0x3==_0x2f65d9&&0x3==_0x38e397&&_0x493365['start']['isBefore'](_0x9a5a38['start'])){const _0x1aba7a=_0x493365['end']['nodeAfter'],_0x51c94a=_0x9a5a38['start']['nodeBefore'];return _0x2d1ca5['isBlockImage'](_0x1aba7a)&&_0x1aba7a===_0x51c94a;}return!0x1;}function _0x19e3ea(_0x5ca868,_0x280f94){return _0x40ba78(_0x5ca868,_0x280f94)?[_0x5ca868,_0x280f94]:_0x40ba78(_0x280f94,_0x5ca868)?[_0x280f94,_0x5ca868]:null;}_0x4f2dde['plugins']['has']('ImageResize')&&(_0x5207fd['enableDefaultAttributesIntegration']('resizeImage'),_0x5207fd['descriptionFactory']['registerAttributeLabel']('resizedWidth',St(_0x130ebb,'FORMAT_IMAGE_SIZE'))),_0x4f2dde['plugins']['has']('ImageTextAlternativeEditing')&&_0x5207fd['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4f2dde['plugins']['has']('PictureEditing')&&_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x1f025c=>{if('attribute'!=_0x1f025c['type'])return;const {data:_0x2d7060}=_0x1f025c;return _0x2d7060&&'sources'==_0x2d7060['key']?{'type':'format','content':''}:void 0x0;}),_0x4f2dde['plugins']['has']('ImageSizeAttributes')&&_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x1e0b71=>{if('attribute'!=_0x1e0b71['type'])return;const {data:_0x1fcf5a}=_0x1e0b71;return!_0x1fcf5a||'width'!=_0x1fcf5a['key']&&'height'!=_0x1fcf5a['key']?void 0x0:{'type':'format','content':''};}),_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x2a8393=>{if(_0x48e660['find'](({type:_0x32d059,subType:_0x164f02})=>_0x2a8393['type']==_0x32d059&&_0x2a8393['subType']==_0x164f02))return _0x2a8393['previous']?{}:void 0x0;}),_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x4680ac=>{if('insertion'==_0x4680ac['type']||'deletion'==_0x4680ac['type']){const _0x1a0c3e=_0x4680ac['getContainedElement']();if(_0x1a0c3e&&_0x1a0c3e['is']('element','caption'))return{'type':'insertion'==_0x4680ac['type']?'addObject':'removeObject','element':_0x1a0c3e,'quantity':0x1};}}),_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x1c552a=>'formatBlock'==_0x1c552a['type']&&'convertInlineImageToBlock'==_0x1c552a['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1c552a['type']&&'convertBlockImageToInline'==_0x1c552a['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5207fd['descriptionFactory']['registerDescriptionCallback'](_0x40ea9b=>{if('attribute'!=_0x40ea9b['type'])return;const {data:_0x2de848}=_0x40ea9b;if(!_0x2de848||'alt'!=_0x2de848['key'])return;const _0x428a76=_0x2de848['newValue'];return _0x428a76?{'type':'format','content':St(_0x130ebb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x428a76+'\x22')}:{'type':'format','content':St(_0x130ebb,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21ab2e=this['editor'],_0x49a011=_0x21ab2e['locale'];_0x21ab2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x481a0d=>{if('formatBlock'!=_0x481a0d['type']&&'formatInline'!=_0x481a0d['type'])return;const {data:_0x2c957e}=_0x481a0d;if(_0x2c957e){if('imageTextAlternative'==_0x2c957e['commandName']){const _0x22ec84=_0x2c957e['commandParams'][0x0]['newValue'];return _0x22ec84?{'type':'format','content':St(_0x49a011,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x22ec84+'\x22')}:{'type':'format','content':St(_0x49a011,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2c957e['commandName']){const _0x4535af=_0x2c957e['commandParams'][0x0]['width'];return _0x4535af?{'type':'format','content':St(_0x49a011,'*Set\x20image\x20width:*\x20%0',_0x4535af)}:{'type':'format','content':St(_0x49a011,'*Reset\x20image\x20width*')};}}});}},de=class extends _0x449cd5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4671fa=this['editor']['locale'],_0x19ef8f=this['editor']['plugins']['get']('TrackChangesEditing');_0x19ef8f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x19ef8f['descriptionFactory']['registerDescriptionCallback'](_0x3c0068=>{if('attribute'!=_0x3c0068['type'])return;const {data:_0x2fa3ba}=_0x3c0068;return _0x2fa3ba&&'src'==_0x2fa3ba['key']?_0x2fa3ba['newValue']&&_0x2fa3ba['oldValue']?{'type':'format','content':St(_0x4671fa,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x38ea1c=this['editor']['plugins']['get']('TrackChangesEditing');_0x38ea1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x38ea1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38ea1c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x38ea1c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4032ee=this['editor'],_0x48ca18=_0x4032ee['locale'];_0x4032ee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x554a37=>{if('formatBlock'!=_0x554a37['type']&&'formatInline'!=_0x554a37['type'])return;const {data:_0x4bb6ac}=_0x554a37;return _0x4bb6ac&&'replaceImageSource'==_0x4bb6ac['commandName']?{'type':'format','content':St(_0x48ca18,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},he=class extends _0x449cd5{['afterInit'](){const _0x4b9a9f=this['editor'];if(!_0x4b9a9f['plugins']['has']('ImageStyleEditing'))return;const _0x1115d7=_0x4b9a9f['plugins']['get']('TrackChangesEditing'),_0x56d511=_0x4b9a9f['plugins']['get']('ImageUtils'),_0x1497fa={};_0x1115d7['enableCommand']('imageStyle',(_0xfe153f,_0x506515)=>{const _0x10205a=_0x4b9a9f['plugins']['get']('Users')['me'],_0x2557d9=_0x4b9a9f['commands']['get']('imageStyle');let _0x197ad5=_0x56d511['getClosestSelectedImageElement'](_0x4b9a9f['model']['document']['selection']),_0x2a416f=_0x4b9a9f['model']['createRangeOn'](_0x197ad5),_0x44ed9d=_0x2557d9['value'];if(_0x44ed9d==_0x506515['value'])return;if(_0x506515['value']&&_0x56d511['isInlineImage'](_0x197ad5)&&!_0x2557d9['isStyleEnabled'](_0x506515['value']))return;const _0x3d2c1b={'commandName':'imageStyle','commandParams':[_0x506515],'formatGroupId':_0x1c0f04()};_0x4b9a9f['model']['change'](()=>{if(_0x1115d7['getSuggestions']()['filter'](_0x8d6e23=>_0x8d6e23['isInContent']&&_0x10205a==_0x8d6e23['author']&&('formatBlock'==_0x8d6e23['type']||'formatInline'==_0x8d6e23['type'])&&('imageStylePreApply'==_0x8d6e23['subType']||'imageStylePostApply'==_0x8d6e23['subType'])&&_0x8d6e23['getFirstRange']()['isEqual'](_0x2a416f))['forEach'](_0x3f49f0=>_0x1115d7['discardSuggestion'](_0x3f49f0['head'])),_0x197ad5=_0x56d511['getClosestSelectedImageElement'](_0x4b9a9f['model']['document']['selection']),_0x2a416f=_0x4b9a9f['model']['createRangeOn'](_0x197ad5),_0x2557d9['refresh'](),_0x4b9a9f['commands']['get']('imageTypeInline')['refresh'](),_0x4b9a9f['commands']['get']('imageTypeBlock')['refresh'](),_0x44ed9d=_0x2557d9['value'],_0x44ed9d!=_0x506515['value'])return _0x56d511['isInlineImage'](_0x197ad5)&&_0x2557d9['shouldConvertImageType'](_0x506515['value'],_0x197ad5)?(_0xfe153f({..._0x506515,'setImageSizes':!0x1}),_0x197ad5=_0x56d511['getClosestSelectedImageElement'](_0x4b9a9f['model']['document']['selection']),void _0x1115d7['markBlockFormat'](_0x197ad5,{..._0x3d2c1b,'commandReversedParams':[{'value':_0x44ed9d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x56d511['isBlockImage'](_0x197ad5)?_0x1115d7['markBlockFormat'](_0x197ad5,_0x3d2c1b,[],'imageStylePostApply'):_0x1115d7['markInlineFormat'](_0x2a416f,_0x3d2c1b,'imageStylePostApply'));});});for(const _0x46db99 of _0x4b9a9f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1497fa[_0x46db99['name']]=_0x46db99['title']['toLowerCase']();_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3957d5])=>{_0x56d511['setImageNaturalSizeAttributes'](_0x3957d5['getContainedElement']());}),_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2d5210,_0x31b04e)=>{_0x1115d7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2d5210,{'commandName':_0x31b04e['commandName'],'commandParams':_0x31b04e['commandReversedParams']});}),_0x1115d7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xadffbd,_0x5edd54){return _0xd3a7a5(_0xadffbd,_0x5edd54)?[_0xadffbd,_0x5edd54]:_0xd3a7a5(_0x5edd54,_0xadffbd)?[_0x5edd54,_0xadffbd]:null;});const _0x10b7be=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd3a7a5(_0x3a23d1,_0x50ecaa){const _0x4fe1bf=_0x10b7be['findIndex'](({type:_0x5ce3b4,subType:_0x17f24a})=>_0x3a23d1['type']==_0x5ce3b4&&_0x3a23d1['subType']==_0x17f24a),_0x2afa55=_0x10b7be['findIndex'](({type:_0x7ea3c4,subType:_0x4ef798})=>_0x50ecaa['type']==_0x7ea3c4&&_0x50ecaa['subType']==_0x4ef798);if(_0x4fe1bf<0x0||_0x2afa55<0x0)return!0x1;const _0x1cd8e3=_0x3a23d1['getFirstRange'](),_0x2c1376=_0x50ecaa['getFirstRange']();if((0x0==_0x4fe1bf||0x1==_0x4fe1bf)&&0x2==_0x2afa55&&_0x1cd8e3['isIntersecting'](_0x2c1376))return!0x0;if(0x2==_0x4fe1bf&&0x3==_0x2afa55){const _0x24ecc3=_0x1115d7['_findSuggestions'](_0x1cd8e3,'insertion')['filter'](({suggestion:_0x136e6f,meta:_0x1ede51})=>_0x1ede51['isOwn']&&'convertInlineImageToBlock'==_0x136e6f['subType']);if(_0x24ecc3['length']>0x1&&_0x2c1376['end']['isEqual'](_0x1cd8e3['start']))return!0x0;if(0x1==_0x24ecc3['length']&&(_0x1cd8e3['start']['isEqual'](_0x2c1376['end'])||_0x1cd8e3['end']['isEqual'](_0x2c1376['start'])))return!0x0;}if(0x3==_0x4fe1bf&&0x3==_0x2afa55&&_0x1cd8e3['start']['isBefore'](_0x2c1376['start'])){const _0x3762f0=_0x1cd8e3['end']['nodeAfter'],_0x4fd024=_0x2c1376['start']['nodeBefore'];return _0x56d511['isBlockImage'](_0x3762f0)&&_0x3762f0===_0x4fd024;}return!0x1;}_0x4b9a9f['model']['document']['registerPostFixer'](()=>{let _0x5ef774=!0x1;const _0x4dd280=Array['from'](_0x4b9a9f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a4832,data:_0x56b987}of _0x4dd280){const {group:_0x319b75,type:_0x28e929,subType:_0x1e9a45,id:_0x51dc17}=tt(_0x5a4832);if('suggestion'==_0x319b75&&_0x1115d7['hasSuggestion'](_0x51dc17)){if('formatBlock'==_0x28e929&&('imageStylePreApply'==_0x1e9a45||'imageStylePostApply'==_0x1e9a45)){const _0x342502=_0x1115d7['getSuggestion'](_0x51dc17);if(_0x56b987['newRange']){const _0x22fd02=_0x342502['getFirstRange']()['getContainedElement']();if(_0x56d511['isBlockImage'](_0x22fd02))continue;_0x1115d7['discardSuggestion'](_0x342502),_0x5ef774=!0x0;}}if('insertion'==_0x28e929&&'imageCaption'==_0x1e9a45&&!_0x56b987['newRange']){const _0x2d4627=_0x1115d7['getSuggestion'](_0x51dc17);_0x2d4627['next']&&_0x2d4627['next']['isInContent']&&(_0x1115d7['discardSuggestion'](_0x2d4627['next']),_0x5ef774=!0x0);}}}return _0x5ef774;}),this['_registerLegacyDescription'](_0x1497fa);}['_registerLegacyDescription'](_0x4526ba){const _0x1d0580=this['editor'],_0xe0ce58=_0x1d0580['locale'];_0x1d0580['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a3e28=>{if('formatBlock'!=_0x4a3e28['type']&&'formatInline'!=_0x4a3e28['type'])return;const {data:_0xbe8495}=_0x4a3e28;if(!_0xbe8495||'imageStyle'!=_0xbe8495['commandName'])return;const _0x379604=_0xbe8495['commandParams'][0x0]['value'];return _0x1ffa91('side'===_0x379604?St(_0xe0ce58,'FORMAT_SIDE_IMAGE'):_0x4526ba[_0x379604]||_0x379604);function _0x1ffa91(_0x5e4ccb){return{'type':'format','content':St(_0xe0ce58,'*Format:*\x20%0',_0x5e4ccb)};}});}},ge=class extends _0x449cd5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3985e1){super(_0x3985e1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5c216a=this['editor'],_0xd8835e=_0x5c216a['commands']['get']('importWord'),_0x48313f=_0x5c216a['commands']['get']('trackChanges');_0xd8835e&&(_0xd8835e['on']('execute',(_0x26006c,[,_0x157da6])=>{this['_trackChangesValueDuringImport']=_0x48313f['value'],_0x157da6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd8835e,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd8835e,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x48313f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5c216a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x370f87,_0x13d397){const {suggestions:_0x1f365d}=_0x13d397,_0x413470=this['editor']['commands']['get']('trackChanges'),_0x185ceb=_0x413470['value'];this['_trackChangesValueDuringImport']!==_0x185ceb&&(_0x413470['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f365d&&_0x1f365d['forEach'](({id:_0x421d6f,type:_0x2aa687,author:_0x15952a,created_at:_0x47fd17})=>{const _0x57887b={'id':_0x421d6f,'type':_0x2aa687,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x15952a,'createdAt':_0x47fd17?new Date(_0x47fd17):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x57887b);});}},fe=class extends _0x449cd5{['afterInit'](){const _0x5bba22=this['editor'],_0x5c2203=_0x5bba22['plugins']['get']('TrackChangesEditing');if(_0x5bba22['plugins']['has']('IndentEditing')&&(_0x5c2203['enableCommand']('indent'),_0x5c2203['enableCommand']('outdent')),_0x5bba22['plugins']['has']('IndentBlock')){for(const _0x38c4d0 of['indentBlock','outdentBlock'])_0x5c2203['enableDefaultAttributesIntegration'](_0x38c4d0);if(_0x5bba22['plugins']['has']('ListEditing')){for(const _0x2225cc of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x5c2203['enableDefaultAttributesIntegration'](_0x2225cc);}}const _0x2bee07=_0x5bba22['locale'];_0x5c2203['descriptionFactory']['registerAttributeLabel']('blockIndent',St(_0x2bee07,'FORMAT_INDENT')),_0x5c2203['descriptionFactory']['registerAttributeLabel']('blockIndentList',St(_0x2bee07,'FORMAT_INDENT')),_0x5c2203['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',St(_0x2bee07,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3caca1=this['editor'],_0x405677=_0x3caca1['locale'],_0x31125e=_0x3caca1['plugins']['get']('TrackChangesEditing');_0x31125e['descriptionFactory']['registerDescriptionCallback'](_0x367a67=>{if('formatBlock'!=_0x367a67['type'])return;const {data:_0xb96026}=_0x367a67;if(!_0xb96026)return;if('indentBlock'!=_0xb96026['commandName']&&'outdentBlock'!=_0xb96026['commandName'])return;const _0x3c481c=_0x367a67['getItems']()[0x0],_0x3e542f=_0x31125e['descriptionFactory']['getItemLabel'](_0x3c481c);return'indentBlock'==_0xb96026['commandName']?{'type':'format','content':St(_0x405677,'*Indent:*\x20%0',_0x3e542f)}:'outdentBlock'==_0xb96026['commandName']?{'type':'format','content':St(_0x405677,'*Outdent:*\x20%0',_0x3e542f)}:void 0x0;});}},me=class extends _0x449cd5{static get['requires'](){return[gt];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},Ee=class extends _0x449cd5{['afterInit'](){const _0x47ad50=this['editor'];if(!_0x47ad50['plugins']['has']('LinkEditing'))return;const _0x87f01a=_0x47ad50['plugins']['get']('TrackChangesEditing'),_0x2e1aae=_0x47ad50['commands']['get']('link');_0x87f01a['enableDefaultAttributesIntegration']('link'),_0x87f01a['enableDefaultAttributesIntegration']('unlink');for(const _0x1f0691 of _0x2e1aae['manualDecorators'])_0x87f01a['descriptionFactory']['registerAttributeLabel'](_0x1f0691['id'],'link\x20('+_0x1f0691['label']['toLowerCase']()+')');_0x87f01a['descriptionFactory']['registerDescriptionCallback'](_0x323256=>{if('attribute'!=_0x323256['type'])return;const {data:_0x4db6a6}=_0x323256;if(!_0x4db6a6||'linkHref'!=_0x4db6a6['key'])return;const _0x1355fd=_0x4db6a6['newValue'],_0xb85b00=_0x47ad50['locale'];return{'type':'format','content':null==_0x1355fd?St(_0xb85b00,'*Remove\x20link*'):St(_0xb85b00,'*Set\x20link:*\x20%0','\x22'+_0x1355fd+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x152f63=this['editor'],_0x389d0d=_0x152f63['locale'];_0x152f63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c6fc0=>{if('formatInline'!=_0x3c6fc0['type'])return;const {data:_0x254e21}=_0x3c6fc0;if(_0x254e21){if('link'==_0x254e21['commandName']){const _0x4b679e=_0x254e21['commandParams'][0x0];return{'type':'format','content':St(_0x389d0d,'*Set\x20link:*\x20%0','\x22'+_0x4b679e+'\x22')};}return'unlink'==_0x254e21['commandName']?{'type':'format','content':St(_0x389d0d,'*Remove\x20link*')}:void 0x0;}});}},Te=class extends _0x449cd5{['afterInit'](){const _0x19a49a=this['editor'],_0x501e77=_0x19a49a['locale'];if(!_0x19a49a['plugins']['has']('LegacyListEditing'))return;const _0x21c8b9=_0x19a49a['plugins']['get']('TrackChangesEditing'),_0x5eadc6=_0x19a49a['plugins']['has']('LegacyTodoListEditing');function _0x31742b(_0x5ffeb4){return()=>{const _0x23b4ad=_0x19a49a['model']['document']['selection'],_0x1881f1=_0x19a49a['commands']['get'](_0x5ffeb4);if(_0x1881f1['value'])return void _0x19a49a['execute']('paragraph',{});const _0x3b7588=_0x5ffeb4['slice'](0x0,-0x4),_0x5740bb=function(_0x592b6c,_0x29e373,_0x13a11a){let _0x55347c=Array['from'](_0x592b6c)['filter'](_0x225bed=>function(_0x3bcebe,_0x4ed228){return _0x4ed228['checkChild'](_0x3bcebe['parent'],'listItem')&&!_0x4ed228['isObject'](_0x3bcebe);}(_0x225bed,_0x13a11a));_0x55347c=_0x55347c['filter'](_0x22373a=>!_0x22373a['is']('element','listItem')||_0x22373a['getAttribute']('listType')!=_0x29e373);const _0x5c1c90=new Set();for(const _0x550631 of _0x55347c)_0x550631['is']('element','listItem')?_0x5c1c90['add'](_e(_0x550631)):_0x5c1c90['add'](_0x550631);return Array['from'](_0x5c1c90);}(_0x23b4ad['getSelectedBlocks'](),_0x3b7588,_0x19a49a['model']['schema']);_0x19a49a['model']['change'](()=>{for(const _0x523078 of _0x5740bb)_0x21c8b9['markBlockFormat'](_0x523078,{'commandName':_0x5ffeb4,'commandParams':[{'forceValue':!_0x1881f1['value']}],'formatGroupId':'blockName'},pe(_0x523078));});};}function _0x55648a(_0x27b9a5){return()=>{const _0x5c1342=function(_0x20815e){let _0x1129d4=Array['from'](_0x20815e);const _0x50dff8=_0x1129d4['findIndex'](_0x5520fe=>'listItem'!=_0x5520fe['name']);return _0x50dff8>-0x1&&(_0x1129d4=_0x1129d4['slice'](0x0,_0x50dff8)),_0x1129d4;}(_0x19a49a['model']['document']['selection']['getSelectedBlocks']()),_0x4bfc55=_0x19a49a['model']['createRange'](_0x19a49a['model']['createPositionAt'](_0x5c1342[0x0],'before'),_0x19a49a['model']['createPositionAt'](_0x5c1342[_0x5c1342['length']-0x1],'end'));_0x19a49a['model']['change'](()=>{_0x21c8b9['markBlockFormat'](_0x4bfc55,{'commandName':_0x27b9a5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2839ff){const _0x4a1913=new Set();for(const _0x5cb652 of _0x2839ff){let _0x1d263e=_0x5cb652['nextSibling'];for(;_0x1d263e&&_0x1d263e['getAttribute']('listIndent')>_0x5cb652['getAttribute']('listIndent');)_0x4a1913['add'](_0x1d263e),_0x1d263e=_0x1d263e['nextSibling'];}return Array['from'](_0x4a1913);}(_0x5c1342));});};}_0x21c8b9['enableCommand']('numberedList',_0x31742b('numberedList')),_0x21c8b9['enableCommand']('bulletedList',_0x31742b('bulletedList')),_0x5eadc6&&_0x21c8b9['enableCommand']('todoList',_0x31742b('todoList')),_0x21c8b9['enableCommand']('indentList',_0x55648a('indentList')),_0x21c8b9['enableCommand']('outdentList',_0x55648a('outdentList')),_0x5eadc6&&_0x21c8b9['enableCommand']('checkTodoList',()=>{const _0x47833a=_0x19a49a['commands']['get']('checkTodoList'),_0x17242a=Array['from'](_0x47833a['_selectedElements']);_0x17242a['filter'](_0x354398=>_0x354398['getAttribute']('todoListChecked')!=_0x47833a['value']),_0x19a49a['model']['change'](()=>{for(const _0x312142 of _0x17242a)_0x21c8b9['markBlockFormat'](_0x312142,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47833a['value']}]});});}),_0x21c8b9['descriptionFactory']['registerElementLabel']('listItem',_0x52d225=>St(_0x501e77,'ELEMENT_LIST_ITEM',_0x52d225)),_0x21c8b9['descriptionFactory']['registerDescriptionCallback'](_0x50ff8a=>{if('formatBlock'!=_0x50ff8a['type']&&'formatInline'!=_0x50ff8a['type'])return;const {data:_0x881024}=_0x50ff8a;if(_0x881024){if('numberedList'==_0x881024['commandName']||'bulletedList'==_0x881024['commandName']||'todoList'==_0x881024['commandName'])switch(_0x881024['commandName']['replace']('List','')){case'bulleted':return _0x15a8ea(St(_0x501e77,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15a8ea(St(_0x501e77,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15a8ea(St(_0x501e77,'ELEMENT_TODO_LIST'));}if('indentList'==_0x881024['commandName'])return{'type':'format','content':St(_0x501e77,'*Indent:*\x20%0',St(_0x501e77,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x881024['commandName'])return{'type':'format','content':St(_0x501e77,'*Outdent:*\x20%0',St(_0x501e77,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x881024['commandName'])return _0x881024['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x501e77,'*Check\x20item*')}:{'type':'format','content':St(_0x501e77,'*Uncheck\x20item*')};}function _0x15a8ea(_0x18cf0a){return{'type':'format','content':St(_0x501e77,'*Change\x20to:*\x20%0',_0x18cf0a)};}});}};function _e(_0x348044){const _0x5d5e81=_0x348044['getAttribute']('listIndent');if(0x0==_0x5d5e81)return _0x348044;let _0x2940ed=_0x348044;for(;_0x348044['previousSibling']&&_0x348044['previousSibling']['is']('element','listItem');){const _0x3c54e4=_0x348044['previousSibling']['getAttribute']('listIndent');if(_0x3c54e4==_0x5d5e81)_0x2940ed=_0x348044['previousSibling'];else{if(_0x3c54e4<_0x5d5e81)break;}_0x348044=_0x348044['previousSibling'];}return _0x2940ed;}function pe(_0x227ec3){const _0xc4726e=[];if(_0x227ec3['is']('element','listItem')&&_0x227ec3['getAttribute']('listIndent')>0x0){let _0x19ce77=_0x227ec3['nextSibling'];for(;_0x19ce77&&'listItem'==_0x19ce77['name']&&_0x19ce77['getAttribute']('listIndent')==_0x227ec3['getAttribute']('listIndent');)_0xc4726e['push'](_0x19ce77),_0x19ce77=_0x19ce77['nextSibling'];}return _0xc4726e;}var Le=class extends _0x449cd5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x2c48e7=this['editor']['config']['get']('list.properties'),_0x594115=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c48e7['styles']&&_0x594115['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x2c48e7['reversed']&&_0x594115['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x2c48e7['startIndex']&&_0x594115['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x594115['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3839c3,_0x5066d1={}){const _0x4c32eb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4820f4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4c32eb['markMultiRangeBlockFormat'](_0x4820f4,{'commandName':'listStyle','commandParams':[{'type':_0x5066d1['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4dad67,_0x23d849={}){const _0x51f579=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55b918=this['_getSuggestionBlocks'](_0x1a5faf=>_0x1a5faf['is']('element','listItem')&&'numbered'===_0x1a5faf['getAttribute']('listType'));if(_0x55b918['length']<0x1)return;const _0x287e48=_0x55b918['map'](_0x41a229=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x41a229,'before'),this['editor']['model']['createPositionAt'](_0x41a229,0x0)));this['editor']['model']['change'](()=>{_0x51f579['markMultiRangeBlockFormat'](_0x287e48,{'commandName':'listReversed','commandParams':[{'reversed':_0x23d849['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1bc8f7,_0x5550a3={}){const _0x345afc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3229a0=this['_getSuggestionBlocks'](_0x4cfbce=>_0x4cfbce['is']('element','listItem')&&'numbered'===_0x4cfbce['getAttribute']('listType'));if(_0x3229a0['length']<0x1)return;const _0x5d500b=_0x3229a0['map'](_0x5697a0=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5697a0,'before'),this['editor']['model']['createPositionAt'](_0x5697a0,0x0)));this['editor']['model']['change'](()=>{_0x345afc['markMultiRangeBlockFormat'](_0x5d500b,{'commandName':'listStart','commandParams':[{'startIndex':_0x5550a3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x25636e){if('formatBlock'!=_0x25636e['type']&&'formatInline'!=_0x25636e['type'])return;const _0xa819c2=this['editor']['locale'],{data:_0x265ef0}=_0x25636e;if(!_0x265ef0)return;let _0x2afb7f,_0x6d29ec;switch(_0x265ef0['commandName']){case'listStyle':_0x2afb7f='*Change\x20to:*\x20%0',_0x6d29ec={'type':'format','content':St(_0xa819c2,_0x2afb7f,St(_0xa819c2,this['_getTranslationKeyForListStyle'](_0x265ef0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2afb7f=_0x265ef0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6d29ec={'type':'format','content':St(_0xa819c2,_0x2afb7f)};break;case'listStart':_0x2afb7f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6d29ec={'type':'format','content':St(_0xa819c2,_0x2afb7f,_0x265ef0['commandParams'][0x0]['startIndex'])};}return _0x6d29ec;}['_getSuggestionBlocksForListStyle'](){const _0x598f32=this['editor']['plugins']['get']('LegacyListUtils');let _0x24b530=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x24b530[0x0]?.['is']('element','listItem')&&_0x24b530['unshift'](..._0x598f32['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x24b530[_0x24b530['length']-0x1]?.['is']('element','listItem')&&_0x24b530['push'](..._0x598f32['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x24b530=[...new Set(_0x24b530)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x24b530=_0x24b530['filter'](_0x57501a=>_0x57501a['is']('element','listItem'))),_0x24b530;}['_getSuggestionBlocks'](_0x1998e3){const _0xfcc3b3=this['editor']['plugins']['get']('LegacyListUtils');let _0xf30352=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1998e3)['map'](_0x36816f=>{const _0x4670f5=this['editor']['model']['createPositionAt'](_0x36816f,0x0);return[..._0xfcc3b3['getSiblingNodes'](_0x4670f5,'backward'),..._0xfcc3b3['getSiblingNodes'](_0x4670f5,'forward')];})['flat']();return _0xf30352=[...new Set(_0xf30352)],_0xf30352;}['_getTranslationKeyForListStyle'](_0x14d067){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x14d067)||'default')['toUpperCase']()+'_LIST_'+_0x14d067['toUpperCase']()['replace'](/-/g,'_');}},Ie=class extends _0x449cd5{['afterInit'](){const _0x378b86=this['editor'];if(!_0x378b86['plugins']['has']('MediaEmbedEditing'))return;const _0x38fbdd=_0x378b86['plugins']['get']('TrackChangesEditing'),_0x16760c=_0x378b86['locale'];_0x38fbdd['enableCommand']('mediaEmbed'),_0x38fbdd['descriptionFactory']['registerElementLabel']('media',_0x36d873=>St(_0x16760c,'ELEMENT_MEDIA',_0x36d873)),_0x378b86['plugins']['has']('MediaEmbedResizeEditing')&&(_0x38fbdd['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x38fbdd['descriptionFactory']['registerDescriptionCallback'](_0x49a279=>{if('attribute'!=_0x49a279['type'])return;const {data:_0x3d9b4a}=_0x49a279;if(!_0x3d9b4a||'resizedWidth'!=_0x3d9b4a['key'])return;const _0x21b811=_0x49a279['getContainedElement']();return _0x21b811&&_0x21b811['is']('element','media')?{'type':'format','content':St(_0x16760c,'*Set\x20format:*\x20%0',St(_0x16760c,'FORMAT_MEDIA_SIZE'))}:void 0x0;}));}},Ae=class extends _0x449cd5{['afterInit'](){const _0x4ce5ca=this['editor'];if(!_0x4ce5ca['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x4fabdd=_0x4ce5ca['plugins']['get']('TrackChangesEditing'),_0x4381f3=_0x4ce5ca['locale'],_0x19f816=_0x4ce5ca['plugins']['get']('MediaEmbedStyleEditing'),_0x55175d={};for(const _0x486f08 of _0x19f816['normalizedStyles'])_0x55175d[_0x486f08['name']]=_0x486f08['title']['toLowerCase']();const _0x4099df=_0x19f816['normalizedStyles']['find'](_0x41efb9=>_0x41efb9['isDefault'])?.['name'];_0x4fabdd['enableCommand']('mediaStyle',(_0x564b93,_0x8d8f1f)=>{const _0x4dec12=_0x4ce5ca['plugins']['get']('Users')['me'],_0x35c8e3=_0x4ce5ca['commands']['get']('mediaStyle'),_0x4046fb=function(_0x5f07c0){const _0x816858=_0x5f07c0['model']['document']['selection']['getSelectedElement']();return _0x816858&&_0x816858['is']('element','media')?_0x816858:null;}(_0x4ce5ca);if(!_0x4046fb)return;const _0xa04824=_0x4ce5ca['model']['createRangeOn'](_0x4046fb);let _0x5e1cbd=_0x35c8e3['value'];if(_0x5e1cbd==_0x8d8f1f['value'])return;const _0x152dbd={'commandName':'mediaStyle','commandParams':[_0x8d8f1f],'formatGroupId':_0x1c0f04()};_0x4ce5ca['model']['change'](()=>{_0x4fabdd['getSuggestions']()['filter'](_0x920aef=>_0x920aef['isInContent']&&_0x4dec12==_0x920aef['author']&&'formatBlock'==_0x920aef['type']&&'mediaStylePostApply'==_0x920aef['subType']&&_0x920aef['getFirstRange']()['isEqual'](_0xa04824))['forEach'](_0xe96c14=>_0x4fabdd['discardSuggestion'](_0xe96c14['head'])),_0x35c8e3['refresh'](),_0x5e1cbd=_0x35c8e3['value'],_0x5e1cbd!=_0x8d8f1f['value']&&_0x4fabdd['markBlockFormat'](_0x4046fb,{..._0x152dbd,'commandReversedParams':[{'value':'string'==typeof _0x5e1cbd?_0x5e1cbd:null}]},[],'mediaStylePostApply');});}),_0x4fabdd['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x4fabdd['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x1aeb3e,_0x43a406)=>{_0x4fabdd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1aeb3e,{'commandName':_0x43a406['commandName'],'commandParams':_0x43a406['commandReversedParams']});}),_0x4fabdd['descriptionFactory']['registerDescriptionCallback'](_0xf70454=>{if('formatBlock'!=_0xf70454['type'])return;const {data:_0x576699}=_0xf70454;if(!_0x576699||'mediaStyle'!=_0x576699['commandName'])return;const _0x29aa20=_0x576699['commandParams'][0x0]['value']||_0x4099df;return _0x29aa20?{'type':'format','content':St(_0x4381f3,'*Format:*\x20%0',_0x55175d[_0x29aa20]||_0x29aa20)}:void 0x0;});}},be=class extends _0x449cd5{['afterInit'](){const _0x5ee9b5=this['editor'];_0x5ee9b5['plugins']['has']('MentionEditing')&&_0x5ee9b5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ke=class extends _0x449cd5{['afterInit'](){const _0xe75477=this['editor'];if(!_0xe75477['plugins']['has']('MergeFieldsEditing'))return;const _0x15d3d1=_0xe75477['plugins']['get']('TrackChangesEditing'),_0x4b526b=_0xe75477['locale'];_0x15d3d1['enableCommand']('insertMergeField'),_0x15d3d1['enableCommand']('insertMergeFieldBlock'),_0x15d3d1['enableCommand']('insertMergeFieldImage'),_0x15d3d1['descriptionFactory']['registerElementLabel']('mergeField',_0x8bff1e=>St(_0x4b526b,'ELEMENT_MERGE_FIELD',_0x8bff1e)),_0x15d3d1['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x57c3fa=>St(_0x4b526b,'ELEMENT_MERGE_FIELD',_0x57c3fa)),_0x15d3d1['descriptionFactory']['registerDescriptionCallback'](_0xc6cff3=>{if('insertion'!=_0xc6cff3['type']&&'deletion'!=_0xc6cff3['type'])return;const _0x1ae203=_0xc6cff3['getContainedElement']();if(null==_0x1ae203)return;const _0x908cc=_0xe75477['plugins']['get']('MergeFieldsEditing');let _0x48efd1;switch(_0x908cc['getMergeFieldType'](_0x1ae203)){case null:return;case'image':{const _0x4ccd50=_0x908cc['unwrapAffixes'](_0x1ae203['getAttribute']('src'));_0x48efd1=_0x908cc['getLabel'](_0x4ccd50)||_0x4ccd50;break;}default:{const _0x37af22=_0x1ae203['getAttribute']('id');_0x48efd1=_0x908cc['getLabel'](_0x37af22)||_0x37af22;break;}}return'insertion'==_0xc6cff3['type']?{'type':'insertion','content':St(_0x4b526b,'*Insert:*\x20%0','\x22'+_0x48efd1+'\x22\x20'+St(_0x4b526b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':St(_0x4b526b,'*Remove:*\x20%0','\x22'+_0x48efd1+'\x22\x20'+St(_0x4b526b,'ELEMENT_MERGE_FIELD'))};});}},Ce=class extends _0x449cd5{['afterInit'](){const _0x345ed8=this['editor'],_0x4939b7=_0x345ed8['plugins']['get']('TrackChangesEditing');_0x345ed8['plugins']['has']('MultiLevelList')&&(_0x4939b7['enableDefaultAttributesIntegration']('multiLevelList'),_0x4939b7['descriptionFactory']['registerDescriptionCallback'](_0x1f9d9c=>this['handleDescriptions'](_0x1f9d9c)));}['handleDescriptions'](_0x3e1ece){const _0x2619ea=this['editor']['locale'],{data:_0x46a7fb}=_0x3e1ece,_0x117818={'type':'format','content':''};if(_0x46a7fb&&'listMarkerStyle'==_0x46a7fb['key']){if(!_0x46a7fb['oldValue'])return{'type':'format','content':St(_0x2619ea,'*Set\x20format:*\x20%0',St(_0x2619ea,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46a7fb['newValue']+')'};if(!_0x46a7fb['newValue']){let _0x24de55=_0x3e1ece['head'];for(;_0x24de55;){if(_0x24de55['data']&&'listType'==_0x24de55['data']['key']&&_0x24de55['data']['newValue'])return _0x117818;_0x24de55=_0x24de55['next'];}return{'type':'format','content':St(_0x2619ea,'*Remove\x20format:*\x20%0',St(_0x2619ea,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46a7fb['oldValue']+')'};}}}},Re=class extends _0x449cd5{['afterInit'](){const _0x47838c=this['editor'];if(!_0x47838c['plugins']['has']('PageBreakEditing'))return;_0x47838c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x521fbf=_0x47838c['plugins']['get']('TrackChangesEditing'),_0x72d53=_0x47838c['locale'];_0x521fbf['descriptionFactory']['registerElementLabel']('pageBreak',_0x2f6cb4=>St(_0x72d53,'ELEMENT_PAGE_BREAK',_0x2f6cb4));}},Ne=class extends _0x449cd5{['afterInit'](){const _0x24a872=this['editor'];if(!_0x24a872['plugins']['has']('Paragraph'))return;const _0x5d8d40=_0x24a872['locale'],_0x29f347=_0x24a872['plugins']['get']('TrackChangesEditing');_0x29f347['descriptionFactory']['registerElementLabel']('paragraph',_0x25a27d=>St(_0x5d8d40,'ELEMENT_PARAGRAPH',_0x25a27d)),_0x29f347['enableDefaultAttributesIntegration']('paragraph'),_0x29f347['enableCommand']('insertParagraph');const _0x459007=_0x29f347['descriptionFactory'];_0x459007['registerDescriptionCallback'](_0x2fa020=>{if('insertion'!==_0x2fa020['type'])return;const {start:_0x34d7b4,end:_0x4af19a}=_0x2fa020['getFirstRange']();if(!_0x34d7b4['isTouching'](_0x4af19a)||!_0x34d7b4['nodeAfter'])return;const _0x4f7931=_0x24a872['model']['schema'],_0x5881e1=_0x34d7b4['nodeAfter'];return _0x4f7931['isBlock'](_0x5881e1)&&!_0x4f7931['isLimit'](_0x5881e1)&&_0x4f7931['checkChild'](_0x5881e1,'$text')?{'type':'insertion','content':St(_0x5d8d40,'*Insert:*\x20%0',_0x459007['getItemLabel'](_0x5881e1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23159b=this['editor'],_0x1ffa1c=_0x23159b['locale'];_0x23159b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x203748=>{if('formatBlock'!=_0x203748['type'])return;const {data:_0x396737}=_0x203748;return _0x396737&&'paragraph'==_0x396737['commandName']?{'type':'format','content':St(_0x1ffa1c,'*Change\x20to:*\x20%0',St(_0x1ffa1c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},ye=class extends _0x449cd5{['afterInit'](){const _0x75ea89=this['editor'];_0x75ea89['commands']['get']('replaceSource')&&_0x75ea89['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},Se=class extends _0x449cd5{['afterInit'](){const _0x591fbe=this['editor'];_0x591fbe['plugins']['has']('RemoveFormatEditing')&&(_0x591fbe['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x44f2d8=this['editor'];_0x44f2d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c27a3=>{if('formatBlock'!=_0x2c27a3['type']&&'formatInline'!=_0x2c27a3['type'])return;const {data:_0x25d697}=_0x2c27a3;return _0x25d697&&'removeFormat'==_0x25d697['commandName']?{'type':'format','content':St(_0x44f2d8['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Me=class extends _0x449cd5{['afterInit'](){const _0x27dec1=this['editor'];if(!_0x27dec1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1344af=_0x27dec1['plugins']['get']('TrackChangesEditing');_0x1344af['enableCommand']('goToPreviousRestrictedEditingException'),_0x1344af['enableCommand']('goToNextRestrictedEditingException');const _0x40c997=_0x27dec1['plugins']['get']('RestrictedEditingModeEditing');_0x40c997['enableCommand']('trackChanges'),_0x40c997['enableCommand']('acceptSuggestion'),_0x40c997['enableCommand']('discardSuggestion'),_0x40c997['enableCommand']('acceptAllSuggestions'),_0x40c997['enableCommand']('discardAllSuggestions'),_0x40c997['enableCommand']('acceptSelectedSuggestions'),_0x40c997['enableCommand']('discardSelectedSuggestions');}},Oe=class extends _0x449cd5{['afterInit'](){const _0x1ab944=this['editor'];if(!_0x1ab944['plugins']['has']('ShiftEnter'))return;const _0x270733=_0x1ab944['plugins']['get']('TrackChangesEditing');_0x270733['enableCommand']('shiftEnter'),_0x270733['descriptionFactory']['registerElementLabel']('softBreak',_0xa79dee=>St(_0x1ab944['locale'],'ELEMENT_LINE_BREAK',_0xa79dee));}};function we(_0x3dca06,_0x5d39fd,_0x4aa901){const _0x3a576a=[];for(const _0x50830d of _0x5d39fd['getItems']())_0x50830d['hasAttribute'](_0x3dca06)&&_0x3a576a['push'](_0x4aa901['createRangeOn'](_0x50830d));return _0x3a576a;}var Fe=class extends _0x449cd5{['afterInit'](){const _0x4b97e8=this['editor'],_0xfc5825=_0x4b97e8['plugins']['get']('TrackChangesEditing');_0x4b97e8['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xfc5825['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0xbb4e17=this['editor'],_0x2e4797=_0xbb4e17['model'],_0x25259a=_0xbb4e17['locale'],_0x5dd768=_0xbb4e17['plugins']['get']('TrackChangesEditing'),_0x45fb66='restrictedEditingException',_0x2e2683=_0xbb4e17['commands']['get'](_0x45fb66);_0x5dd768['enableCommand'](_0x45fb66,(_0x2adb79,_0x39c761={})=>{const _0x4ac2ab=_0x2e4797['document']['selection'];if(_0x4ac2ab['isCollapsed'])return void _0x2adb79(_0x39c761);const _0x1ce913=void 0x0!==_0x39c761['forceValue']?_0x39c761['forceValue']:!_0x2e2683['value'];_0x2e4797['change'](()=>{const _0x4ed08e=Array['from'](_0x4ac2ab['getRanges']());for(const _0x1ccce0 of _0x4ed08e){const _0x1752a0=_0x1ce913?[_0x1ccce0]:we(_0x45fb66,_0x1ccce0,_0x2e4797);for(const _0xf80430 of _0x1752a0)_0x5dd768['markInlineFormat'](_0xf80430,{'commandName':_0x45fb66,'commandParams':[{'forceValue':_0x1ce913}]});}});}),_0x5dd768['descriptionFactory']['registerDescriptionCallback'](_0x499461=>{if('formatBlock'!=_0x499461['type']&&'formatInline'!=_0x499461['type'])return;const {data:_0x3402ae}=_0x499461;return _0x3402ae&&_0x3402ae['commandName']==_0x45fb66?_0x3402ae['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x25259a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x25259a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x344252=this['editor'],_0x50225a=_0x344252['locale'],_0xff8904=_0x344252['plugins']['get']('TrackChangesEditing'),_0x269447='restrictedEditingExceptionBlock',_0x15bbbe=this['editor']['commands']['get'](_0x269447);_0xff8904['enableCommand'](_0x269447,(_0x1c9575,_0x522421={})=>{const _0x1a788e=this['editor']['model']['document']['selection'],_0x2d5889=_0x522421&&void 0x0!==_0x522421['forceValue']?_0x522421['forceValue']:!_0x15bbbe['value'];let _0x5b99c2=[];_0x5b99c2=At(_0x2d5889?Array['from'](_0x1a788e['getSelectedBlocks']())['filter'](_0x524463=>function(_0xd329c9){return!!_0xd329c9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x524463)||function(_0x1b1939,_0x2ab2ac){const _0x2219de=_0x2ab2ac['createContext'](_0x1b1939['parent']);return!!_0x2ab2ac['checkChild'](_0x2219de,'restrictedEditingException')&&!!_0x2ab2ac['checkChild'](_0x2219de['push']('restrictedEditingException'),_0x1b1939);}(_0x524463,this['editor']['model']['schema'])):Array['from'](_0x1a788e['getSelectedBlocks']())['map'](_0x3a703b=>function(_0x569e76){let _0xc95292=_0x569e76;for(;_0xc95292['parent'];){if('restrictedEditingException'==_0xc95292['parent']['name'])return _0xc95292;_0xc95292=_0xc95292['parent'];}return null;}(_0x3a703b))['filter'](_0x475029=>!!_0x475029),_0x344252['model']),_0x344252['model']['change'](()=>{for(const _0x1ac56e of _0x5b99c2)_0xff8904['markBlockFormat'](_0x1ac56e,{'commandName':_0x269447,'commandParams':[{'forceValue':_0x2d5889}]});});}),_0xff8904['descriptionFactory']['registerDescriptionCallback'](_0x5cab17=>{const {data:_0x5343f6}=_0x5cab17;if(_0x5343f6&&_0x5343f6['commandName']==_0x269447)return _0x5343f6['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x50225a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':St(_0x50225a,'FORMAT_RESTRICTED_DISABLED')};});}},Be=class extends _0x449cd5{['afterInit'](){const _0xf7a502=this['editor'];_0xf7a502['plugins']['has']('Style')&&_0xf7a502['plugins']['has']('DataSchema')&&(_0xf7a502['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x8528c2=this['editor'],_0x1178ea=_0x8528c2['locale'];_0x8528c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x935e81=>{if('formatBlock'!=_0x935e81['type']&&'formatInline'!=_0x935e81['type'])return;const {data:_0x5148dc}=_0x935e81;return _0x5148dc&&'style'===_0x5148dc['commandName']?_0x5148dc['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x1178ea,'*Set\x20format:*\x20%0',_0x5148dc['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':St(_0x1178ea,'*Remove\x20format:*\x20%0',_0x5148dc['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},ve=class extends _0x449cd5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x26fee9){super(_0x26fee9),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2776d9=this['editor'],_0x4d908b=_0x2776d9['model']['document']['selection'];if(!_0x2776d9['plugins']['has']('TableEditing'))return;const _0xbe5f21=_0x2776d9['locale'],_0x33a160=_0x2776d9['plugins']['get']('TrackChangesEditing'),_0x15d9df=_0x2776d9['plugins']['get']('TableUtils');_0x33a160['descriptionFactory']['registerElementLabel']('table',_0x449c2e=>St(_0xbe5f21,'ELEMENT_TABLE',_0x449c2e)),this['_setupColumnsRowsFixing'](),_0x33a160['enableCommand']('insertTable'),_0x33a160['enableCommand']('selectTableRow'),_0x33a160['enableCommand']('selectTableColumn');for(const _0x1d8113 of['insertTableRowAbove','insertTableRowBelow']){const _0x2a2e3d=_0x2776d9['commands']['get'](_0x1d8113);_0x33a160['enableCommand'](_0x1d8113,_0x2b14d3=>{_0x2776d9['model']['change'](_0x492987=>{_0x2b14d3();const _0x5e4c5d='above'===_0x2a2e3d['order'],_0x57543a=_0x15d9df['getSelectionAffectedTableCells'](_0x4d908b),_0x4e49d5=_0x15d9df['getRowIndexes'](_0x57543a),_0x593459=_0x5e4c5d?_0x4e49d5['first']-0x1:_0x4e49d5['last']+0x1,_0x4d210f=_0x57543a[0x0]['findAncestor']('table'),_0x413ffe=_0x15d9df['createTableWalker'](_0x4d210f,{'startRow':_0x593459,'endRow':_0x593459}),_0x5f5c3a=Array['from'](_0x413ffe)['map'](_0x8e8a72=>_0x492987['createRangeOn'](_0x8e8a72['cell']));_0x33a160['markMultiRangeInsertion'](_0x5f5c3a,'tableRow');});});}for(const _0x3688de of['insertTableColumnLeft','insertTableColumnRight']){const _0x317fb7=_0x2776d9['commands']['get'](_0x3688de);_0x33a160['enableCommand'](_0x3688de,_0x43da70=>{_0x2776d9['model']['change'](_0xe4b5d0=>{_0x43da70();const _0x41e83e='left'===_0x317fb7['order'],_0xb26213=_0x15d9df['getSelectionAffectedTableCells'](_0x4d908b),_0x4e9365=_0x15d9df['getColumnIndexes'](_0xb26213),_0x394c2f=_0x41e83e?_0x4e9365['first']-0x1:_0x4e9365['last']+0x1,_0x26afde=_0xb26213[0x0]['findAncestor']('table'),_0x2f1f19=_0x15d9df['createTableWalker'](_0x26afde,{'startRow':0x0,'column':_0x394c2f,'includeAllSlots':!0x1}),_0x33fe0c=Array['from'](_0x2f1f19)['map'](_0x3ba5a3=>_0xe4b5d0['createRangeOn'](_0x3ba5a3['cell']));_0x33a160['markMultiRangeInsertion'](_0x33fe0c,'tableColumn');});});}for(const _0x5ddc23 of['removeTableRow','removeTableColumn']){const _0x4230ea=_0x5ddc23['substr'](0xb),_0x1f3136=_0x4230ea['toLowerCase'](),_0x1caf00=_0x1f3136['substr'](0x0,0x3)+'span',_0x4ab759='table'+_0x4230ea,_0x503e36='min'+_0x4230ea,_0x184d87='max'+_0x4230ea;_0x33a160['enableCommand'](_0x5ddc23,()=>{_0x2776d9['model']['change'](_0xab5cbe=>{const _0x4caba2=_0x15d9df['getSelectionAffectedTableCells'](_0x4d908b),_0x4935f4=_0x4caba2[0x0]['findAncestor']('table');let _0x2198fc;if('removeTableRow'==_0x5ddc23){const _0x1435ed=_0x15d9df['getRowIndexes'](_0x4caba2);_0x2198fc={'startRow':_0x1435ed['first'],'endRow':_0x1435ed['last'],'includeAllSlots':!0x0};}else{const _0x49373f=_0x15d9df['getColumnIndexes'](_0x4caba2);_0x2198fc={'startColumn':_0x49373f['first'],'endColumn':_0x49373f['last'],'includeAllSlots':!0x0};}const _0x1f3f12=_0x15d9df['createTableWalker'](_0x4935f4,_0x2198fc),_0x3cb793=Array['from'](_0x1f3f12)['map'](({cell:_0xddd733})=>_0xddd733),_0x46231f=De(_0x3cb793['filter'](_0x45c477=>_0x45c477['hasAttribute'](_0x1caf00))),_0x40a626=De(_0x3cb793['filter'](_0x105bc3=>!_0x105bc3['hasAttribute'](_0x1caf00)))['map'](_0x2e4b57=>_0xab5cbe['createRangeOn'](_0x2e4b57)),_0x2c2e55=_0x33a160['markMultiRangeDeletion'](_0x40a626,_0x4ab759);if(_0x2c2e55&&('tableRow'==_0x2c2e55['subType']||'tableColumn'==_0x2c2e55['subType'])){const _0x91952b=this['_getSuggestionCoords'](_0x2c2e55);for(const _0x2eaa26 of _0x46231f){const _0x3f3816=_0xab5cbe['createRangeOn'](_0x2eaa26),_0x576666=_0x15d9df['getCellLocation'](_0x2eaa26),_0x735e04=_0x2eaa26['getAttribute'](_0x1caf00)-0x1,_0x40e26c=_0x91952b[_0x503e36],_0x80dcb9=_0x91952b[_0x184d87];_0x40e26c<=_0x576666[_0x1f3136]&&_0x576666[_0x1f3136]+_0x735e04<=_0x80dcb9&&_0x2c2e55['addRange'](_0x3f3816);}}});});}function _0x3687ae(_0x5d5622){const _0x35e0b5=Array['from'](_0x4d908b['getRanges']())['map'](_0x3aadb8=>rt['fromRange'](_0x3aadb8));_0x2776d9['model']['change'](_0x294df3=>{const _0x2ac81a=_0x294df3['batch'];_0x5d5622=_0x5d5622['filter'](_0x749182=>'$graveyard'!=_0x749182['root']['rootName']),_0x294df3['setSelection'](_0x5d5622),_0x2776d9['commands']['get']('removeTableRow')['refresh'](),_0x2776d9['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2776d9['model']['enqueueChange'](()=>{_0x2776d9['model']['enqueueChange'](_0x2ac81a,_0x5eede1=>{const _0x593133=_0x35e0b5['filter'](_0x3c0dba=>'$graveyard'!=_0x3c0dba['root']['rootName']);_0x593133['length']>0x0&&_0x5eede1['setSelection'](_0x593133);for(const _0x1a417d of _0x35e0b5)_0x1a417d['detach']();});});});}function _0x39e1ba(_0xba93ae){_0x2776d9['model']['change'](_0x1a73e9=>{const _0x16f9dc=Array['from'](_0x4d908b['getRanges']())['map'](_0x429ce3=>rt['fromRange'](_0x429ce3)),_0x557c5d=[];for(const _0xefa6e0 of _0xba93ae)for(const _0x459de5 of _0xefa6e0['getItems']({'shallow':!0x0}))_0x557c5d['push'](_0x459de5);for(const _0x5341b8 of _0x557c5d)'$graveyard'!=_0x5341b8['root']['rootName']&&(_0x1a73e9['setSelection'](_0x1a73e9['createPositionAt'](_0x5341b8,0x0)),_0x2776d9['commands']['get']('removeTableColumn')['refresh'](),_0x2776d9['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x86a4f6=_0x16f9dc['filter'](_0x1e671b=>'$graveyard'!=_0x1e671b['root']['rootName']);_0x86a4f6['length']>0x0&&_0x1a73e9['setSelection'](_0x86a4f6);for(const _0x41f44e of _0x16f9dc)_0x41f44e['detach']();});}function _0x2bcc3f(_0x5a7999,_0x423b29){return _0x423b29['every'](_0x32ec6d=>_0x5a7999['some'](_0xc3f200=>_0xc3f200['end']['isEqual'](_0x32ec6d['start'])||_0x32ec6d['end']['isEqual'](_0xc3f200['start'])));}function _0x1ea14c(_0x299a32,_0x2cb6a3){return!_0x299a32['some'](_0x46f83f=>_0x2cb6a3['some'](_0x1e4539=>_0x46f83f['isIntersecting'](_0x1e4539)))&&_0x299a32['some'](_0x55fce2=>_0x2cb6a3['some'](_0x1464de=>_0x55fce2['end']['isTouching'](_0x1464de['start'])));}_0x33a160['descriptionFactory']['registerDescriptionCallback'](_0x36587f=>{if('insertion'!=_0x36587f['type']&&'deletion'!=_0x36587f['type'])return;const _0x2863e2=_0x36587f['getContainedElement']();if(null!=_0x2863e2&&_0x2863e2['is']('element','table')){if('insertion'==_0x36587f['type']){const _0x4de58a=_0x36587f['getItems']()['filter'](_0x201758=>_0x201758['is']('$textProxy'))['map'](_0x2e2e91=>_0x2e2e91['data']);if(_0x4de58a['length'])return{'type':'insertion','content':St(_0xbe5f21,'*Insert:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4de58a['join']('\x20')+'\x22'))};}if('deletion'==_0x36587f['type']){const _0x25b17f=_0x36587f['getItems']()['filter'](_0x4b3652=>_0x4b3652['is']('$textProxy'))['map'](_0x5c2518=>_0x5c2518['data']);if(_0x25b17f['length'])return{'type':'deletion','content':St(_0xbe5f21,'*Remove:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x25b17f['join']('\x20')+'\x22'))};}}}),_0x33a160['descriptionFactory']['registerDescriptionCallback'](_0x3f0ff6=>{if('tableRow'==_0x3f0ff6['subType']){const _0x4bb28a=_0x3f0ff6['getItems']()['filter'](_0x132e84=>_0x132e84['is']('$textProxy'))['map'](_0x347c40=>_0x347c40['data']),_0x442de7=this['_getSuggestionCoords'](_0x3f0ff6),_0x2e81af=_0x442de7['maxRow']-_0x442de7['minRow']+0x1;if('insertion'==_0x3f0ff6['type'])return _0x4bb28a['length']?{'type':'insertion','content':St(_0xbe5f21,'*Insert:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e81af,'\x22'+_0x4bb28a['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0xbe5f21,'*Insert:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_ROW',_0x2e81af))};if('deletion'==_0x3f0ff6['type'])return _0x4bb28a['length']?{'type':'deletion','content':St(_0xbe5f21,'*Remove:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e81af,'\x22'+_0x4bb28a['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0xbe5f21,'*Remove:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_ROW',_0x2e81af))};}if('tableColumn'==_0x3f0ff6['subType']){const _0x14099d=_0x3f0ff6['getItems']()['filter'](_0x443cec=>_0x443cec['is']('$textProxy'))['map'](_0x5a7cdf=>_0x5a7cdf['data']),_0x184704=this['_getSuggestionCoords'](_0x3f0ff6),_0x5939c3=_0x184704['maxColumn']-_0x184704['minColumn']+0x1;if('insertion'==_0x3f0ff6['type'])return _0x14099d['length']?{'type':'insertion','content':St(_0xbe5f21,'*Insert:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5939c3,'\x22'+_0x14099d['join']('\x20')+'\x22']))}:{'type':'insertion','content':St(_0xbe5f21,'*Insert:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_COLUMN',_0x5939c3))};if('deletion'==_0x3f0ff6['type'])return _0x14099d['length']?{'type':'deletion','content':St(_0xbe5f21,'*Remove:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5939c3,'\x22'+_0x14099d['join']('\x20')+'\x22']))}:{'type':'deletion','content':St(_0xbe5f21,'*Remove:*\x20%0',St(_0xbe5f21,'ELEMENT_TABLE_COLUMN',_0x5939c3))};}}),_0x33a160['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3687ae),_0x33a160['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3687ae),_0x33a160['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x39e1ba),_0x33a160['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x39e1ba),_0x33a160['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2bcc3f),_0x33a160['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2bcc3f),_0x33a160['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1ea14c),_0x33a160['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1ea14c);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3db72b=this['editor'],_0x4f1efe=_0x3db72b['model']['document']['selection'];return(_0x4a9020,_0x5c0df1)=>{_0x3db72b['model']['change'](_0x27d7ce=>{const {commandName:_0x56d40f,commandParams:_0x3c0ee9}=_0x5c0df1;let _0x246283=_0x4a9020[0x0]['end']['nodeBefore'];_0x3c0ee9&&_0x3c0ee9[0x0]&&!0x1===_0x3c0ee9[0x0]['forceValue']&&(_0x246283=_0x4a9020[0x0]['start']['nodeAfter']);const _0x381143=_0x27d7ce['createRangeIn'](_0x246283);if('$graveyard'==_0x381143['root']['rootName'])return;const _0x70147e=Array['from'](_0x4f1efe['getRanges']())['map'](_0x22b216=>rt['fromRange'](_0x22b216));_0x27d7ce['setSelection'](_0x381143),_0x3db72b['commands']['get'](_0x56d40f)['refresh'](),_0x3c0ee9['push']({'forceDefaultExecution':!0x0}),_0x3db72b['execute'](_0x56d40f,..._0x3c0ee9);const _0x3bca1b=_0x70147e['filter'](_0x2be49a=>'$graveyard'!=_0x2be49a['root']['rootName']);_0x3bca1b['length']>0x0&&_0x27d7ce['setSelection'](_0x3bca1b);for(const _0x45e68c of _0x70147e)_0x45e68c['detach']();});};}['_getCoordsForCells'](_0x2b8a64){const _0x324c55=this['editor']['plugins']['get']('TableUtils');let _0x4e2f1d=Number['MAX_SAFE_INTEGER'],_0x1304b9=Number['MIN_SAFE_INTEGER'],_0x29a834=Number['MAX_SAFE_INTEGER'],_0x5d9ccb=Number['MIN_SAFE_INTEGER'];for(const _0x1da83c of _0x2b8a64){if('$graveyard'==_0x1da83c['root']['rootName'])continue;const {row:_0x1759a4,column:_0x31dfaf}=_0x324c55['getCellLocation'](_0x1da83c),_0x39d134=_0x1da83c['hasAttribute']('rowspan')?_0x1da83c['getAttribute']('rowspan')-0x1:0x0,_0x90921=_0x1da83c['hasAttribute']('colspan')?_0x1da83c['getAttribute']('colspan')-0x1:0x0;_0x4e2f1d=_0x1759a4<_0x4e2f1d?_0x1759a4:_0x4e2f1d,_0x1304b9=_0x1759a4+_0x39d134>_0x1304b9?_0x1759a4+_0x39d134:_0x1304b9,_0x29a834=_0x31dfaf<_0x29a834?_0x31dfaf:_0x29a834,_0x5d9ccb=_0x31dfaf+_0x90921>_0x5d9ccb?_0x31dfaf+_0x90921:_0x5d9ccb;}return{'minRow':_0x4e2f1d,'maxRow':_0x1304b9,'minColumn':_0x29a834,'maxColumn':_0x5d9ccb};}['_setupColumnsRowsFixing'](){const _0xfcca36=this['editor'],_0x22fa9e=_0xfcca36['plugins']['get']('TrackChangesEditing'),_0xe891e1=_0xfcca36['plugins']['get']('TableUtils');_0xfcca36['model']['document']['on']('change:data',()=>{const _0x45695c=Array['from'](_0xfcca36['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2225f9,data:_0x4f5a80}of _0x45695c){const {group:_0x2ea0cd,id:_0x5e4a2d,subType:_0x46f8e6}=tt(_0x2225f9);if('suggestion'!=_0x2ea0cd)continue;if(null!=_0x4f5a80['oldRange'])continue;const _0x39e2f9=_0x22fa9e['getSuggestion'](_0x5e4a2d);this['_tablePostFixingSubtypes']['includes'](_0x46f8e6)&&this['_tableSuggestions']['add'](_0x39e2f9);}},{'priority':'low'});const _0x30408f=(_0x4d24ff,_0x1538af)=>{let _0x2215fd=!0x1;const _0x1c1697=_0x1538af['createRangeOn'](_0x4d24ff),_0x4dcb14=_0x4d24ff['findAncestor']('table'),_0x5970c2=_0xe891e1['getCellLocation'](_0x4d24ff);for(const _0x2612b7 of this['_tableSuggestions']){const _0x3454c5=_0x2612b7['subType'],_0x404940=_0x3454c5['startsWith']('tablePaste'),_0x249ad5=_0x3454c5['substr'](_0x404940?0xa:0x5),_0x3addcb=_0x249ad5['toLowerCase'](),_0x3030f1=_0x3addcb['substr'](0x0,0x3)+'span',_0x151a21='min'+_0x249ad5,_0x4ffcdd='max'+_0x249ad5;if(!_0x2612b7['isInContent'])continue;if(_0x4dcb14!=_0x2612b7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2612b7['isIntersectingWithRange'](_0x1c1697))continue;const _0x3a2d29=_0x4d24ff['hasAttribute'](_0x3030f1)?_0x4d24ff['getAttribute'](_0x3030f1)-0x1:0x0,_0x2aa11e=this['_getSuggestionCoords'](_0x2612b7),_0x3c1577=_0x2aa11e[_0x151a21],_0x4deca9=_0x2aa11e[_0x4ffcdd];_0x3c1577<=_0x5970c2[_0x3addcb]&&_0x5970c2[_0x3addcb]+_0x3a2d29<=_0x4deca9&&(_0x2612b7['addRange'](_0x1c1697),_0x2215fd=!0x0);}return _0x2215fd;};_0xfcca36['model']['document']['registerPostFixer'](_0x3c67ab=>{let _0x3d29a5=!0x1;for(const _0x11d1d6 of _0xfcca36['model']['document']['differ']['getChanges']())if('insert'==_0x11d1d6['type']){if('tableRow'==_0x11d1d6['name']){for(const _0x239804 of _0x11d1d6['position']['nodeAfter']['getChildren']())_0x3d29a5=_0x3d29a5||_0x30408f(_0x239804,_0x3c67ab);}else'tableCell'==_0x11d1d6['name']&&(_0x3d29a5=_0x3d29a5||_0x30408f(_0x11d1d6['position']['nodeAfter'],_0x3c67ab));}return _0x3d29a5;});}['_getSuggestionCoords'](_0x49871a){return this['_getCoordsForCells'](_0x49871a['getRanges']()['map'](_0x4ae266=>_0x4ae266['start']['nodeAfter']));}};function De(_0x39c369){return Array['from'](new Set(_0x39c369)['values']());}var Ue=class extends _0x449cd5{static get['requires'](){return[ve];}['afterInit'](){const _0x3c1b39=this['editor'],_0x269c40=_0x3c1b39['model']['document']['selection'],_0xca9122=_0x3c1b39['locale'];if(!_0x3c1b39['plugins']['has']('TableEditing'))return;const _0x4b1b6f=_0x3c1b39['plugins']['get']('TrackChangesEditing'),_0xed73ae=_0x3c1b39['plugins']['get']('TableUtils'),_0x2e882c=_0x3c1b39['plugins']['get'](ve);_0x2e882c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4b1b6f['enableCommand']('mergeTableCells',()=>{const _0x3d65f7=_0xed73ae['getSelectionAffectedTableCells'](_0x3c1b39['model']['document']['selection']);_0x3c1b39['model']['change'](()=>{_0x4b1b6f['markMultiRangeBlockFormat'](_0x3d65f7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3c1b39['commands']['get']('mergeTableCells')['on']('execute',(_0x382cf4,_0x2257cf)=>{_0x3c1b39['commands']['get']('trackChanges')['value']&&(_0x2257cf['length']>0x0&&_0x2257cf[_0x2257cf['length']-0x1]&&_0x2257cf[_0x2257cf['length']-0x1]['forceDefaultExecution']||_0x4b1b6f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x382cf4['stop']());},{'priority':'highest'});for(const _0x66f0e3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5e03f7=_0x3c1b39['commands']['get'](_0x66f0e3);_0x4b1b6f['enableCommand'](_0x66f0e3,()=>{const _0x5b1db0=_0x3c1b39['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x360dcb=>_0x360dcb['is']('element','tableCell')),_0x167570=_0x5e03f7['value'];_0x3c1b39['model']['change'](()=>{_0x4b1b6f['markMultiRangeBlockFormat']([_0x5b1db0,_0x167570],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x37350d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3d198c=_0x3c1b39['commands']['get'](_0x37350d);_0x4b1b6f['enableCommand'](_0x37350d,()=>{const _0x56d20a=_0xed73ae['getSelectionAffectedTableCells'](_0x3c1b39['model']['document']['selection'])[0x0],_0x1903d7=_0x56d20a['findAncestor']('table'),{column:_0x2be461,row:_0x193913}=_0xed73ae['getCellLocation'](_0x56d20a);let _0x25915b=[];if('horizontally'==_0x3d198c['direction']){const _0x1eb798=_0xed73ae['createTableWalker'](_0x1903d7,{'startRow':_0x193913,'endRow':_0x193913,'includeAllSlots':!0x0});_0x25915b=Array['from'](_0x1eb798)['map'](_0x14a23e=>_0x14a23e['cell']);}else{const _0x522bee=_0xed73ae['createTableWalker'](_0x1903d7,{'column':_0x2be461,'includeAllSlots':!0x0});_0x25915b=Array['from'](_0x522bee)['map'](_0x387ad5=>_0x387ad5['cell']);}_0x3c1b39['model']['change'](_0x10c814=>{_0x4b1b6f['markBlockFormat'](_0x10c814['createRangeOn'](_0x56d20a),{'commandName':_0x37350d,'commandParams':[]},_0x25915b,_0x37350d);});});}_0x4b1b6f['descriptionFactory']['registerDescriptionCallback'](_0x1a0f86=>{if('formatBlock'!=_0x1a0f86['type']&&'formatInline'!=_0x1a0f86['type'])return;const {data:_0x37c10b}=_0x1a0f86;return _0x37c10b&&'mergeTableCells'==_0x37c10b['commandName']?{'type':'format','content':St(_0xca9122,'*Merge\x20cells*')}:void 0x0;}),_0x4b1b6f['descriptionFactory']['registerDescriptionCallback'](_0x572f31=>{if('formatBlock'!=_0x572f31['type']&&'formatInline'!=_0x572f31['type'])return;const {data:_0x10f597}=_0x572f31;return _0x10f597?'splitTableCellVertically'==_0x10f597['commandName']?{'type':'format','content':St(_0xca9122,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x10f597['commandName']?{'type':'format','content':St(_0xca9122,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x44a3a0=_0x2e882c['_acceptFormatSuggestionCallbackFactory']();for(const _0x8938d9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4b1b6f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x8938d9,'accept',_0x44a3a0);for(const _0x4962b7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4b1b6f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4962b7,'accept',_0x44a3a0);_0x4b1b6f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x520911=>{_0x3c1b39['model']['change'](_0x1f083f=>{const _0x7f5fc0=Array['from'](_0x269c40['getRanges']())['map'](_0x5e3def=>rt['fromRange'](_0x5e3def));_0x1f083f['setSelection'](_0x520911),_0x3c1b39['commands']['get']('mergeTableCells')['refresh'](),_0x3c1b39['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x26b95d=_0x7f5fc0['filter'](_0x4cf29d=>'$graveyard'!=_0x4cf29d['root']['rootName']);_0x26b95d['length']>0x0&&_0x1f083f['setSelection'](_0x26b95d);for(const _0x2e29e6 of _0x7f5fc0)_0x2e29e6['detach']();});});for(const _0x273fc7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x12d40f=_0x3c1b39['commands']['get'](_0x273fc7);_0x12d40f['on']('set:isEnabled',(_0x37fe52,_0x218539,_0x2082b5)=>{if(_0x2082b5){const _0x19e772=_0x3c1b39['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5059c4=>_0x5059c4['is']('element','tableCell'));this['_areMergableCells'](_0x12d40f['value'],_0x19e772)||(_0x37fe52['return']=!0x1,_0x37fe52['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2760d7=this['editor']['commands']['get']('mergeTableCells'),_0x20038c=this['editor']['plugins']['get']('TableUtils');if(!_0x2760d7['isEnabled'])return!0x1;const _0x3827c2=_0x20038c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5e1204 of _0x3827c2)for(const _0x570871 of _0x3827c2)if(_0x5e1204!=_0x570871&&!this['_areMergableCells'](_0x5e1204,_0x570871))return!0x1;return!0x0;}['_areMergableCells'](_0x3c7cdc,_0x22a31a){const _0x116862=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3deaa2=this['editor']['model']['createRangeOn'](_0x3c7cdc),_0x3a8757=this['editor']['model']['createRangeOn'](_0x22a31a),_0x368e99=new Set(),_0x2ef4c4=new Set();for(const _0x11db37 of _0x116862['getSuggestions']())if(('insertion'==_0x11db37['type']||'deletion'==_0x11db37['type']||'mergeTableCells'==_0x11db37['subType'])&&_0x11db37['isInContent']){for(const _0x54c78f of _0x11db37['getRanges']())_0x54c78f['containsRange'](_0x3deaa2,!0x0)&&_0x368e99['add'](_0x11db37['type']+':'+_0x11db37['author']['id']),_0x54c78f['containsRange'](_0x3a8757,!0x0)&&_0x2ef4c4['add'](_0x11db37['type']+':'+_0x11db37['author']['id']);}if(_0x368e99['size']!=_0x2ef4c4['size'])return!0x1;for(const _0x238f25 of _0x368e99)if(!_0x2ef4c4['has'](_0x238f25))return!0x1;return!0x0;}},Pe=class extends _0x449cd5{static get['requires'](){return[ve];}['afterInit'](){const _0x354fd3=this['editor'];if(!_0x354fd3['plugins']['has']('TableEditing'))return;const _0x2ac1d4=_0x354fd3['locale'],_0x4e702e=_0x354fd3['plugins']['get']('TrackChangesEditing');_0x4e702e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e702e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e702e['descriptionFactory']['registerAttributeLabel']('headingRows',St(_0x2ac1d4,'FORMAT_HEADER_ROW')),_0x4e702e['descriptionFactory']['registerAttributeLabel']('headingColumns',St(_0x2ac1d4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5e63e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18a40b=this['editor']['plugins']['get'](ve)['_acceptFormatSuggestionCallbackFactory']();_0x5e63e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x18a40b),_0x5e63e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x18a40b),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x49dccb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eb6b4=this['editor']['plugins']['get']('TableUtils');function _0xa40b5c({showActiveMarker:_0x5756a1=!0x0,setDataAttribute:_0x392bc2=!0x0}={}){return(_0x1c8c20,_0x35db7c,_0xac8110)=>{const {type:_0x254f32,id:_0x398b85}=tt(_0x35db7c['markerName']);if(!_0x49dccb['hasSuggestion'](_0x398b85))return;const _0x44fb00=_0x49dccb['getSuggestion'](_0x398b85),_0x4ab6bd=_0x44fb00['data'];if('formatBlock'!=_0x44fb00['type']||!_0x4ab6bd||'setTableColumnHeader'!=_0x4ab6bd['commandName'])return;if(_0x35db7c['item'])return void _0x1c8c20['stop']();if(!_0xac8110['consumable']['consume'](_0x35db7c['markerRange'],_0x1c8c20['name']))return;const _0x13338e=_0x35db7c['markerRange']['start']['nodeAfter'],_0x25bf47=_0x35db7c['markerRange']['end']['nodeBefore'],_0x23d2a9=_0x13338e['parent']['parent'],{column:_0x3d8d92}=_0x3eb6b4['getCellLocation'](_0x13338e),{column:_0x1bad9f}=_0x3eb6b4['getCellLocation'](_0x25bf47);for(let _0x5e0c86=_0x3d8d92;_0x5e0c86<=_0x1bad9f;_0x5e0c86++){const _0x12b23d=_0x3eb6b4['createTableWalker'](_0x23d2a9,{'column':_0x5e0c86,'includeAllSlots':!0x1});for(const _0x17bc7b of _0x12b23d){const _0x5a1856=_0x17bc7b['cell'],_0x15dec9=_0xac8110['mapper']['toViewElement'](_0x5a1856);_0xac8110['writer']['addClass']('ck-suggestion-marker-'+_0x254f32,_0x15dec9),_0x392bc2&&_0xac8110['writer']['setAttribute']('data-suggestion',_0x398b85,_0x15dec9),_0xac8110['mapper']['bindElementToMarker'](_0x15dec9,_0x35db7c['markerName']),_0x5756a1&&(_0x49dccb['activeMarkers']['includes'](_0x35db7c['markerName'])?_0xac8110['writer']['addClass']('ck-suggestion-marker--active',_0x15dec9):_0xac8110['writer']['removeClass']('ck-suggestion-marker--active',_0x15dec9));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xa40b5c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1182fe,_0x916e27,_0x212741)=>{_0x212741['options']['showSuggestionHighlights']&&_0xa40b5c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1182fe,_0x916e27,_0x212741);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x41f07f,_0x437971,_0x2f9ad7)=>{const {type:_0x1a0fa5,id:_0x7c387d}=tt(_0x437971['markerName']);if(!_0x49dccb['hasSuggestion'](_0x7c387d))return;const _0x470bc3=_0x49dccb['getSuggestion'](_0x7c387d),_0x5772b9=_0x470bc3['data'];if('formatBlock'!=_0x470bc3['type']||!_0x5772b9||'setTableColumnHeader'!=_0x5772b9['commandName'])return;const _0x9069cc=_0x2f9ad7['mapper']['markerNameToElements'](_0x437971['markerName']);if(_0x9069cc){for(const _0x3fd821 of _0x9069cc)_0x2f9ad7['writer']['removeClass']('ck-suggestion-marker-'+_0x1a0fa5,_0x3fd821),_0x2f9ad7['writer']['removeClass']('ck-suggestion-marker--active',_0x3fd821),_0x2f9ad7['writer']['removeAttribute']('data-suggestion',_0x3fd821),_0x2f9ad7['mapper']['unbindElementFromMarkerName'](_0x3fd821,_0x437971['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5b29cd=this['editor'],_0x2ff85a=_0x5b29cd['locale'];function _0x2ec9ed(_0x5a05e1){return{'type':'format','content':St(_0x2ff85a,'*Format:*\x20%0',_0x5a05e1)};}_0x5b29cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cb705=>{if('formatBlock'!=_0x2cb705['type'])return;const {data:_0x21a59b}=_0x2cb705;return _0x21a59b?'setTableRowHeader'==_0x21a59b['commandName']?_0x21a59b['commandParams'][0x0]['forceValue']?_0x2ec9ed(St(_0x2ff85a,'FORMAT_HEADER_ROW')):_0x2ec9ed(St(_0x2ff85a,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x21a59b['commandName']?_0x21a59b['commandParams'][0x0]['forceValue']?_0x2ec9ed(St(_0x2ff85a,'FORMAT_HEADER_COLUMN')):_0x2ec9ed(St(_0x2ff85a,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},xe=class extends _0x449cd5{static get['requires'](){return[ve];}['afterInit'](){const _0x337cea=this['editor'];if(!_0x337cea['plugins']['has']('TableEditing')||!_0x337cea['config']['get']('table.enableFooters'))return;const _0x529212=_0x337cea['locale'],_0x252fe1=_0x337cea['plugins']['get']('TrackChangesEditing');_0x252fe1['enableDefaultAttributesIntegration']('setTableFooterRow'),_0x252fe1['descriptionFactory']['registerAttributeLabel']('footerRows',St(_0x529212,'FORMAT_FOOTER_ROW'));}},Ge=class extends _0x449cd5{['afterInit'](){const _0x1e984b=this['editor'],_0x88be40=_0x1e984b['locale'],_0x17b0fb=_0x1e984b['plugins']['get']('TrackChangesEditing');function _0x386f48(_0x4453f8){return{'type':'format','content':''+St(_0x88be40,'*Set\x20table\x20type:*\x20%0',_0x4453f8)};}_0x1e984b['plugins']['has']('TableLayout')&&(_0x17b0fb['enableCommand']('insertTableLayout'),_0x17b0fb['enableDefaultAttributesIntegration']('tableType'),_0x17b0fb['descriptionFactory']['registerElementLabel'](_0x2cafc7=>_0x2cafc7['is']('element','table')&&'layout'===_0x2cafc7['getAttribute']('tableType'),_0x398efc=>St(_0x88be40,'ELEMENT_LAYOUT_TABLE',_0x398efc)),_0x17b0fb['descriptionFactory']['registerDescriptionCallback'](_0x439e52=>{const {data:_0x2c7686}=_0x439e52;if(_0x2c7686&&'tableType'==_0x2c7686['key'])switch(_0x2c7686['newValue']){case'layout':return _0x386f48(St(_0x88be40,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x386f48(St(_0x88be40,'ELEMENT_CONTENT_TABLE'));}}));}};const He=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],$e=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](He['map'](_0x5c5253=>[_0x5c5253,null]));var Ve=class extends _0x449cd5{static get['requires'](){return[ve];}['afterInit'](){const _0x33f0a6=this['editor'];if(!_0x33f0a6['plugins']['has']('TableClipboard'))return;const _0x3f3283=_0x33f0a6['plugins']['get']('TrackChangesEditing'),_0x404880=_0x33f0a6['plugins']['get']('TableUtils'),_0xfe5543=_0x33f0a6['plugins']['get'](ve),_0x3f2747=_0x33f0a6['plugins']['get']('TableClipboard'),_0x48db37=_0x33f0a6['plugins']['get']('TableSelection'),_0x594d06=_0x33f0a6['plugins']['get'](mt);_0xfe5543['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x33f0a6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x33f0a6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x31a990=null,_0x7acf8=!0x1;_0x594d06['on']('contentInsertion',(_0x1c504a,_0x31300e)=>{_0x7acf8='paste'===_0x31300e['method'];}),_0x33f0a6['model']['on']('insertContent',(_0x22602d,_0x251612)=>{if(!_0x7acf8&&null===_0x48db37['getSelectedTableCells']())return;const [_0x458076,_0x4934ad]=_0x251612,_0x4dfdfa=_0x251612[_0x251612['length']-0x1];_0x4dfdfa&&_0x4dfdfa['forceDefaultExecution']||_0x3f3283['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x29a073,_0x1e3757,_0x20cde7,_0x935914,_0x2c4987){if(_0x1e3757&&!_0x1e3757['is']('documentSelection'))return!0x1;const _0x3c074f=_0x2c4987['getTableIfOnlyTableInContent'](_0x29a073,_0x20cde7);if(!_0x3c074f||!je(_0x3c074f,void 0x0,_0x935914))return!0x1;const _0x3652f5=_0x935914['getSelectionAffectedTableCells'](_0x20cde7['document']['selection']);if(!_0x3652f5['length'])return!0x1;const _0x215b77=_0x3652f5[0x0]['findAncestor']('table'),_0xcb906=_0x935914['getRowIndexes'](_0x3652f5),_0x4806d8=_0x935914['getColumnIndexes'](_0x3652f5),_0x5d8182={'startRow':_0xcb906['first'],'endRow':_0xcb906['last'],'startColumn':_0x4806d8['first'],'endColumn':_0x4806d8['last']};return 0x1==_0x3652f5['length']&&(_0x5d8182['endRow']+=_0x935914['getRows'](_0x3c074f)-0x1,_0x5d8182['endColumn']+=_0x935914['getColumns'](_0x3c074f)-0x1),je(_0x215b77,_0x5d8182,_0x935914);}(_0x458076,_0x4934ad,_0x33f0a6['model'],_0x404880,_0x3f2747)&&(_0x22602d['stop'](),_0x31a990={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x33f0a6['model']['change'](()=>{_0x33f0a6['model']['insertContent'](_0x251612[0x0],_0x251612[0x1],_0x251612[0x2],{'forceDefaultExecution':!0x0});const _0x490945=_0x1c0f04(),{rowInsertionRanges:_0x3e239a,columnInsertionRanges:_0x4a9d08,insertionRanges:_0x37204a,deletionRanges:_0x527ee8,cells:_0xb9d2ef}=_0x31a990;_0x3e239a['length']&&_0x3f3283['markMultiRangeInsertion'](_0x3e239a,'tablePasteRow',{'tablePasteChainId':_0x490945}),_0x4a9d08['length']&&_0x3f3283['markMultiRangeInsertion'](_0x4a9d08,'tablePasteColumn',{'tablePasteChainId':_0x490945}),_0x37204a['length']&&(_0x3f3283['markMultiRangeInsertion'](_0x37204a,'tablePaste',{'tablePasteChainId':_0x490945,'skipNestingCheck':!0x0}),_0x37204a['forEach'](_0x325981=>_0x325981['detach']?.())),_0x527ee8['length']&&(_0x3f3283['markMultiRangeDeletion'](_0x527ee8,'tablePaste',{'tablePasteChainId':_0x490945,'skipNestingCheck':!0x0}),_0x527ee8['forEach'](_0x3e69dd=>_0x3e69dd['detach']?.()));const _0x14186c=_0x3f3283['markMultiRangeBlockFormat'](_0xb9d2ef['map'](({element:_0x346bc1})=>_0x346bc1),{'formatGroupId':_0x1c0f04()},[],'tablePasteCell',{'tablePasteChainId':_0x490945});if(_0x14186c){const _0xe7c9c4=_0x14186c['getMarkers'](),_0x290aed=[];for(const {element:_0x32c614,attributes:_0x5953ea}of _0xb9d2ef){if(!_0x5953ea)continue;const _0x293d7=_0x33f0a6['model']['createRangeOn'](_0x32c614),_0x4d51fb=_0xe7c9c4['find'](_0x51aee2=>_0x51aee2['getRange']()['isEqual'](_0x293d7));_0x4d51fb&&_0x290aed['push']([_0x4d51fb['name'],_0x5953ea]);}_0x290aed['length']&&_0x14186c['setAttribute']('markerAttributes',Object['fromEntries'](_0x290aed));}_0x31a990=null;}));},{'priority':_0x449a53['high']+0xa}),_0x594d06['on']('contentInsertion',()=>{_0x7acf8=!0x1;},{'priority':'lowest'}),_0x33f0a6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x280843,_0x332a58)=>{const [_0x43df1c,_0x2f1415,,_0x3b18e6]=_0x332a58;if(!_0x31a990)return;_0x280843['stop']();const _0x53ffbc=_0x43df1c['cell'],_0x4dc716=_0x2f1415,_0xe27d2d=We(_0x53ffbc),_0x4172f6=We(_0x4dc716);_0x280843['return']=_0x53ffbc;let _0x540aa1=null,_0x5a27d6=null;if(_0x4172f6||_0xe27d2d){if(_0xe27d2d&&!_0x4172f6){_0x3b18e6['remove'](_0x53ffbc['getChild'](0x0));for(const _0xbd7b48 of Array['from'](_0x4dc716['getChildren']()))_0x3b18e6['insert'](_0xbd7b48,_0x53ffbc,'end');const _0x5364ad=_0x31a990['rowInsertionIndexes']['includes'](_0x43df1c['row']),_0x4169b4=_0x31a990['columnInsertionIndexes']['includes'](_0x43df1c['column']);_0x5364ad||_0x4169b4||(_0x540aa1=rt['fromRange'](_0x3b18e6['createRangeIn'](_0x53ffbc)));}else _0x4172f6&&!_0xe27d2d&&(_0x5a27d6=_0x3b18e6['createRangeIn'](_0x53ffbc));}else{const _0x707c13=_0x3b18e6['createElement']('tableCellSuggestion'),_0x3f652b=_0x3b18e6['createElement']('tableCellSuggestion');_0x3b18e6['wrap'](_0x3b18e6['createRangeIn'](_0x53ffbc),_0x3f652b),_0x3b18e6['insert'](_0x707c13,_0x53ffbc,0x0);for(const _0x22b0d0 of Array['from'](_0x4dc716['getChildren']()))_0x3b18e6['insert'](_0x22b0d0,_0x707c13,'end');_0x540aa1=rt['fromRange'](_0x3b18e6['createRangeOn'](_0x707c13)),_0x5a27d6=rt['fromRange'](_0x3b18e6['createRangeOn'](_0x3f652b));}const _0x56b9cd=Array['from'](_0x4dc716['getAttributes']())['filter'](([_0x4e2255])=>He['includes'](_0x4e2255));_0x31a990['cells']['push']({'element':_0x53ffbc,'attributes':_0x56b9cd['length']?Object['fromEntries'](_0x56b9cd):null}),_0x540aa1&&_0x31a990['insertionRanges']['push'](_0x540aa1),_0x5a27d6&&_0x31a990['deletionRanges']['push'](_0x5a27d6);},{'priority':'high'}),_0x404880['on']('insertColumns',(_0x1ebc83,_0x53a2aa)=>{const [_0x4eed41,_0xdadd1d={}]=_0x53a2aa;if(!_0x31a990)return;const _0x3c31d5=_0xdadd1d['at']||0x0,_0x4e3ba4=_0xdadd1d['columns']||0x1;_0x31a990['columnInsertionIndexes']=new Array(_0x4e3ba4)['fill'](_0x3c31d5)['map']((_0x3f7f25,_0x88956c)=>_0x3f7f25+_0x88956c);for(const {cell:_0xbe837a}of _0x404880['createTableWalker'](_0x4eed41,{'startColumn':_0x3c31d5,'endColumn':_0x3c31d5+_0x4e3ba4-0x1}))_0x31a990['columnInsertionRanges']['push'](_0x33f0a6['model']['createRangeOn'](_0xbe837a));},{'priority':'low'}),_0x404880['on']('insertRows',(_0x5a2e4b,_0x2500a3)=>{const [_0x3241fd,_0x388a1c={}]=_0x2500a3;if(!_0x31a990)return;const _0x3f0062=_0x388a1c['at']||0x0,_0x416e59=_0x388a1c['rows']||0x1;_0x31a990['rowInsertionIndexes']=new Array(_0x416e59)['fill'](_0x3f0062)['map']((_0x380977,_0x4107c5)=>_0x380977+_0x4107c5);for(const {cell:_0x557d71}of _0x404880['createTableWalker'](_0x3241fd,{'startRow':_0x3f0062,'endRow':_0x3f0062+_0x416e59-0x1}))_0x31a990['rowInsertionRanges']['push'](_0x33f0a6['model']['createRangeOn'](_0x557d71));},{'priority':'low'}),_0x3f3283['descriptionFactory']['registerDescriptionCallback'](_0x423d67=>{if(_0x423d67['subType']&&_0x423d67['subType']['startsWith']('tablePaste'))return _0x423d67['previous']?{}:{'type':'insertion','content':St(_0x33f0a6['locale'],'*Replace\x20table\x20cells*')};});const _0x5aa0ce=()=>!0x1;for(const _0x4309e4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f3283['_suggestionFactory']['registerCustomCallback']('insertion',_0x4309e4,'join',_0x5aa0ce),_0x3f3283['_suggestionFactory']['registerCustomCallback']('deletion',_0x4309e4,'join',_0x5aa0ce),_0x3f3283['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4309e4,'join',_0x5aa0ce);_0x3f3283['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5aa0ce),_0x3f3283['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4609f0,_0x10a0eb,_0x2086c7)=>{const _0x501cf7=_0x4609f0['map'](_0x3c92db=>_0x3c92db['getContainedElement']())['filter'](_0x1bdd80=>_0x1bdd80),_0x5b56a9=new Map(_0x501cf7['map'](_0x31ad82=>[_0x31ad82,null]));if(_0x31a990){for(const {element:_0x31fc9f,attributes:_0x1eb1c4}of _0x31a990['cells'])_0x1eb1c4&&_0x5b56a9['set'](_0x31fc9f,_0x1eb1c4);}else{if(_0x2086c7&&_0x2086c7['markerAttributes'])for(const [_0x278e94,_0x16aff2]of Object['entries'](_0x2086c7['markerAttributes'])){const _0x39dab6=_0x33f0a6['model']['markers']['get'](_0x278e94),_0x598ad9=_0x39dab6?_0x39dab6['getRange']()['getContainedElement']():null;_0x598ad9&&_0x5b56a9['set'](_0x598ad9,_0x16aff2);}}_0x33f0a6['model']['change'](_0x376b09=>{for(const [_0xc1ee06,_0x34b237]of _0x5b56a9)_0x376b09['setAttributes']({...$e,..._0x34b237},_0xc1ee06);});});const _0x413572=(_0x76a9b9,_0x468f82)=>{_0x3f3283['_suggestionFactory']['registerCustomCallback'](_0x76a9b9,'tablePaste',_0x468f82,(_0x17dbac,_0x279ca6,_0x3a3ebf)=>{_0x33f0a6['model']['change'](_0x47ad0c=>{const _0x5754c9=[];for(const _0x35545a of _0x17dbac){const _0x4bec7b=_0x35545a['start']['nodeAfter'];_0x4bec7b['is']('element','tableCellSuggestion')&&_0x5754c9['push'](_0x4bec7b);}_0x3f3283['_suggestionFactory']['getSuggestionCallback'](_0x76a9b9,null,_0x468f82)(_0x17dbac,_0x279ca6,_0x3a3ebf);for(const _0x115c29 of _0x5754c9)'$graveyard'!=_0x115c29['root']['rootName']&&_0x47ad0c['unwrap'](_0x115c29);});});};_0x413572('insertion','accept'),_0x413572('insertion','discard'),_0x413572('deletion','accept'),_0x413572('deletion','discard'),_0x3f3283['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x118280=>{const _0x5e77c2=_0x118280['map'](_0x17e874=>_0x17e874['getContainedElement']()),_0x224d2b=_0x5e77c2[0x0]['findAncestor']('table'),{minRow:_0x19a959,maxRow:_0x1f957c}=_0xfe5543['_getCoordsForCells'](_0x5e77c2);_0x404880['removeRows'](_0x224d2b,{'at':_0x19a959,'rows':_0x1f957c-_0x19a959+0x1});}),_0x3f3283['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x10daf5=>{const _0xe69cf2=_0x10daf5['map'](_0x43cc8e=>_0x43cc8e['getContainedElement']()),_0x51204e=_0xe69cf2[0x0]['findAncestor']('table'),{minColumn:_0x168ba4,maxColumn:_0x3433fc}=_0xfe5543['_getCoordsForCells'](_0xe69cf2);_0x404880['removeColumns'](_0x51204e,{'at':_0x168ba4,'columns':_0x3433fc-_0x168ba4+0x1});});const _0x11f7b8=(_0x529c6f,_0x272573)=>{if(!_0x272573['subType']||!_0x272573['subType']['startsWith']('tablePaste'))return;const _0x24c0d7=_0x272573['attributes']['tablePasteChainId'],_0x7bf492=_0x3f3283['getSuggestions']()['filter'](_0xf1cf8c=>_0xf1cf8c['isInContent']&&_0xf1cf8c['attributes']&&_0xf1cf8c['attributes']['tablePasteChainId']==_0x24c0d7);_0x7bf492['length']&&_0x272573['getAllAdjacentSuggestions']()['length']!=_0x7bf492['length']&&_0x7bf492['reduce']((_0x24b955,_0x4fc854)=>(_0x24b955['next']=_0x4fc854,_0x4fc854['previous']=_0x24b955,_0x4fc854));};function _0x1a599d(_0x1dd336,_0xfa3092=!0x0){const {id:_0x38ae51,authorId:_0x41ff72}=tt(_0x1dd336['markerName']),_0x441e8f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x611405=_0x3f3283['activeMarkers']['includes'](_0x1dd336['markerName']);return _0x611405&&_0x441e8f['push']('ck-suggestion-marker--active'),{'classes':_0x441e8f,'attributes':{'data-suggestion':_0x38ae51,'data-author-id':_0x41ff72},'priority':_0x611405&&_0xfa3092?0xbc2:0xbb8};}_0x3f3283['on']('suggestionLoaded',_0x11f7b8,{'priority':'high'}),_0x3f3283['on']('suggestionUnloaded',_0x11f7b8,{'priority':'high'}),_0x33f0a6['model']['document']['registerPostFixer'](()=>{let _0x371d90=!0x1;const _0x5718a2=Array['from'](_0x33f0a6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x294f41,data:_0x552ed5}of _0x5718a2){const {group:_0x5836ba,type:_0x57d727,id:_0x57d11e}=tt(_0x294f41);if('suggestion'!=_0x5836ba||'deletion'!=_0x57d727||_0x552ed5['oldRange'])continue;if(!_0x3f3283['hasSuggestion'](_0x57d11e))continue;const _0x7588d1=_0x3f3283['getSuggestion'](_0x57d11e)['getRanges'](),_0x2cdd41=_0x33f0a6['plugins']['get']('Users')['me'];for(const _0x57f1d6 of _0x3f3283['getSuggestions']())if(_0x57f1d6['isInContent']&&_0x57f1d6['author']==_0x2cdd41&&'formatBlock'==_0x57f1d6['type']&&'tablePasteCell'==_0x57f1d6['subType']&&_0x57f1d6['getRanges']()['every'](_0x25c464=>_0x7588d1['some'](_0x2853f8=>_0x2853f8['containsRange'](_0x25c464,!0x0)))){for(const _0x34573a of _0x57f1d6['getAllAdjacentSuggestions']())_0x34573a['isInContent']&&(_0x34573a['discard'](),_0x371d90=!0x0);}}return _0x371d90;}),_0x33f0a6['model']['document']['registerPostFixer'](_0x2db19d=>{const _0x20d00d=_0x33f0a6['commands']['get']('redo');if(!_0x20d00d||!_0x20d00d['_createdBatches']['has'](_0x2db19d['batch']))return!0x1;let _0x5c7ae4=!0x1;const _0x31a261=_0x33f0a6['plugins']['get']('Users')['me'],_0x1032ae=_0x33f0a6['model']['document']['differ']['getChanges'](),_0x47ae38=Array['from'](_0x33f0a6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x702579,data:_0x16d29b})=>{const {group:_0x54c6c9,subType:_0x3c332e,authorId:_0x116b9f}=tt(_0x702579);return'suggestion'==_0x54c6c9&&'tablePaste'==_0x3c332e&&_0x116b9f==_0x31a261['id']&&!_0x16d29b['oldRange'];});for(const _0x42e361 of _0x1032ae){if('insert'!=_0x42e361['type']||'tableCellSuggestion'!=_0x42e361['name']||0x1!=_0x42e361['length'])continue;const _0x28d28d=_0x2db19d['createRange'](_0x42e361['position'],_0x42e361['position']['getShiftedBy'](0x1));if(!_0x47ae38['find'](({data:_0x2c34a8})=>_0x2c34a8['newRange']['isEqual'](_0x28d28d))){for(const {name:_0x590d81,data:_0x49efbc}of _0x47ae38)if(_0x28d28d['containsRange'](_0x49efbc['newRange'])){_0x2db19d['updateMarker'](_0x590d81,{'range':_0x28d28d}),_0x5c7ae4=!0x0;break;}}}return _0x5c7ae4;}),_0x33f0a6['model']['document']['registerPostFixer'](_0x54bdf7=>{let _0x5112aa=!0x1;const _0x443d9f=_0x33f0a6['plugins']['get']('Users')['me'],_0x45acbf=_0x3f3283['getSuggestions']()['filter'](_0x2b7d83=>_0x2b7d83['isInContent']&&_0x2b7d83['author']==_0x443d9f),_0x38dd27=new Set(),_0x8d454a=new Set();for(const _0x5788e4 of _0x45acbf)if('tablePaste'==_0x5788e4['subType'])for(const _0x13c724 of _0x5788e4['getMarkers']()){const _0x1a34c8=_0x13c724['getRange']()['getContainedElement']();if(_0x1a34c8){if(_0x1a34c8['is']('element','tableCellSuggestion')&&We(_0x1a34c8)){_0x5788e4['removeMarker'](_0x13c724['name']),_0x38dd27['add'](_0x1a34c8),_0x5112aa=!0x0;const _0x170b28=_0x1a34c8['nextSibling'],_0x46f1ab=_0x1a34c8['previousSibling'],_0x12f252=_0x170b28&&_0x170b28['is']('element','tableCellSuggestion'),_0x475129=_0x46f1ab&&_0x46f1ab['is']('element','tableCellSuggestion');_0x12f252&&!_0x38dd27['has'](_0x170b28)&&_0x8d454a['add'](_0x170b28),_0x475129&&!_0x38dd27['has'](_0x46f1ab)&&_0x8d454a['add'](_0x46f1ab);}else _0x1a34c8['is']('element','paragraph')&&_0x1a34c8['isEmpty']&&(_0x5788e4['removeMarker'](_0x13c724['name']),_0x5112aa=!0x0);}}else{if('tablePasteCell'==_0x5788e4['subType']){if(!_0x5788e4['attributes']||!_0x5788e4['attributes']['tablePasteChainId'])continue;const _0x45f132=_0x5788e4['attributes']['markerAttributes'];if(_0x45f132&&Object['keys'](_0x45f132)['length'])continue;const _0x5e6844=_0x5788e4['attributes']['tablePasteChainId'];let _0x40a529=!0x0,_0x52ad64=!0x0;for(const _0x2ce791 of _0x45acbf)if(_0x2ce791['subType']&&_0x2ce791['subType']['startsWith']('tablePaste')){if(!_0x2ce791['attributes']['tablePasteChainId']){_0x52ad64=!0x1;break;}if(_0x2ce791['id']!=_0x5788e4['id']&&_0x2ce791['attributes']['tablePasteChainId']==_0x5e6844){_0x40a529=!0x1;break;}}_0x52ad64&&_0x40a529&&(_0x5788e4['removeMarkers'](),_0x5112aa=!0x0);}}for(const _0x41042e of _0x38dd27)_0x54bdf7['remove'](_0x41042e);for(const _0x33d942 of _0x8d454a)_0x54bdf7['unwrap'](_0x33d942);return _0x5112aa;}),_0x33f0a6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2c14c9=>_0x1a599d(_0x2c14c9),'converterPriority':'high'}),_0x33f0a6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x481b5e,_0x5f539d)=>_0x5f539d['options']['showSuggestionHighlights']?_0x1a599d(_0x481b5e,!0x1):null,'converterPriority':'high'});const _0x227db2=_0x33f0a6['editing']['view'];this['listenTo'](_0x227db2['document'],'clipboardOutput',(_0x37fe24,_0x3f7715)=>{const _0x3af9f8=[];for(const _0x49b5de of _0x227db2['createRangeIn'](_0x3f7715['content'])['getItems']())_0x49b5de['is']('element','suggestion-td')&&_0x3af9f8['push'](_0x49b5de);_0x227db2['change'](_0x308059=>{for(const _0x8bd6df of _0x3af9f8)_0x308059['move'](_0x308059['createRangeIn'](_0x8bd6df),_0x308059['createPositionBefore'](_0x8bd6df)),_0x308059['remove'](_0x8bd6df);});});}};function We(_0x9c3f3){if(_0x9c3f3['isEmpty'])return!0x0;const _0x25f1f6=_0x9c3f3['getChild'](0x0);return _0x25f1f6['is']('element','paragraph')&&_0x25f1f6['isEmpty'];}function je(_0x3a31f6,_0x294dd9={},_0xbdfeba){for(const {isAnchor:_0x362414,cellHeight:_0x3d7256,cellWidth:_0xd6c29d}of _0xbdfeba['createTableWalker'](_0x3a31f6,{'includeAllSlots':!0x0,..._0x294dd9}))if(!_0x362414||0x1!=_0x3d7256||0x1!=_0xd6c29d)return!0x1;return!0x0;}var Ke=class extends _0x449cd5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4c36f1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c36f1['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4c36f1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4c36f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c36f1['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4c36f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4c36f1['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2f6d1a,_0x22fd8d){const _0x473a0b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c3201=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1322d7=_0x22fd8d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x50a8e0=_0x2c3201['getColumnGroupElement'](_0x1322d7);let _0x312e7f=_0x50a8e0?_0x2c3201['getTableColumnsWidths'](_0x50a8e0):null,_0x4d75c7=_0x1322d7['getAttribute']('tableWidth')||null;const _0x563080=_0x22fd8d['tableWidth']||_0x4d75c7,_0x326c0c=_0x22fd8d['columnWidths']||_0x312e7f,_0x52b703=this['editor']['plugins']['get']('Users')['me'];for(const _0x2b97de of _0x473a0b['getSuggestions']()){const _0x384308=_0x2b97de['getContainedElement']();if('resizeTable'===_0x2b97de['subType']&&_0x384308===_0x1322d7){_0x2b97de['author']!==_0x52b703&&_0x2b97de['discard']();const _0x11bbbc=_0x2b97de['data']['commandParams'];_0x4d75c7=_0x11bbbc[0x0]['tableWidth'],_0x312e7f=_0x11bbbc[0x0]['columnWidths'];break;}}_0x2f6d1a({'table':_0x1322d7,'tableWidth':_0x563080,'columnWidths':_0x326c0c}),_0x473a0b['markBlockFormat'](_0x1322d7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4d75c7,'columnWidths':_0x312e7f}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x164fff){if('formatBlock'!=_0x164fff['type']&&'formatInline'!=_0x164fff['type'])return;const {data:_0x487e83}=_0x164fff;return _0x487e83&&'resizeTable'===_0x487e83['formatGroupId']?{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},ze=class extends _0x449cd5{['afterInit'](){const _0x7ab311=this['editor'];_0x7ab311['plugins']['has']('Template')&&_0x7ab311['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Xe=class extends _0x449cd5{['afterInit'](){const _0x371500=this['editor'];if(!_0x371500['commands']['get']('insertTableOfContents'))return;_0x371500['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1617bc=_0x371500['plugins']['get']('TrackChangesEditing'),_0x50b0e8=_0x371500['locale'];_0x1617bc['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1012fe=>St(_0x50b0e8,'ELEMENT_TABLE_OF_CONTENTS',_0x1012fe));}},qe=class extends _0x449cd5{['afterInit'](){const _0xec7f6c=this['editor'];_0xec7f6c['plugins']['has']('Title')&&(_0xec7f6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>St(_0xec7f6c['locale'],'ELEMENT_TITLE')),_0xec7f6c['model']['document']['registerPostFixer'](_0x155a29=>{let _0x44c525=!0x1;const _0x4ff8ed=Array['from'](_0xec7f6c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a9ce7,data:_0x516f63}of _0x4ff8ed){const {group:_0xa9e5a5}=tt(_0x5a9ce7);if('suggestion'!==_0xa9e5a5||!_0x516f63['newRange'])continue;const _0x4b68bf=_0x516f63['newRange'],_0x4bf66a=_0x4b68bf['end']['nodeBefore'];if(!_0x4bf66a||!_0x4bf66a['is']('element','title-content'))continue;if(!_0x4b68bf['start']['isTouching'](_0x4b68bf['end']))continue;const _0x3f2f7f=_0xec7f6c['model']['schema']['getNearestSelectionRange'](_0x4b68bf['end'],'forward');if(_0x3f2f7f&&_0x3f2f7f['isCollapsed']){const _0x13a62c=_0x155a29['createRange'](_0x4b68bf['start'],_0x3f2f7f['start']);_0x13a62c['isEqual'](_0x4b68bf)||(_0x155a29['updateMarker'](_0x5a9ce7,{'range':_0x13a62c}),_0x44c525=!0x0);}_0x44c525||(_0x155a29['removeMarker'](_0x5a9ce7),_0x44c525=!0x0);}return _0x44c525;}));}},Ye=class extends _0x449cd5{['afterInit'](){const _0x4239d8=this['editor'],_0x3ff510=_0x4239d8['plugins']['get']('TrackChangesEditing');_0x4239d8['plugins']['has']('Uploadcare')&&(_0x3ff510['enableCommand']('uploadcare'),_0x4239d8['plugins']['has']('UploadcareImageEdit')&&(_0x3ff510['enableCommand']('uploadcareImageEdit'),_0x3ff510['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3ff510['descriptionFactory']['registerDescriptionCallback'](_0x509e18=>{if('attribute'!=_0x509e18['type'])return;const {data:_0x445135}=_0x509e18;return _0x445135&&'uploadcareImageId'==_0x445135['key']?{'type':'format','content':''}:void 0x0;})));}},Qe=class extends _0x449cd5{['afterInit'](){const _0x2e5be7=this['editor'],_0x4b3f64=_0x2e5be7['plugins']['get']('TrackChangesEditing');_0x2e5be7['plugins']['has']('UndoEditing')&&(_0x4b3f64['enableCommand']('undo'),_0x4b3f64['enableCommand']('redo'));}},Ze=class extends _0x449cd5{static get['requires'](){return[ve];}['afterInit'](){const _0x12447f=this['editor'];_0x12447f['plugins']['has']('TableCaptionEditing')&&_0x12447f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},Je=class extends _0x449cd5{['tableProperties'];['tableCellProperties'];constructor(_0x279868){super(_0x279868),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x688a4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x37da74 of this['tableProperties'])_0x688a4['enableCommand'](_0x37da74,(_0x4ce5c6,_0x294b0b)=>{const _0x24c2f0=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x37da74,[_0x24c2f0],this['tableProperties'],'tableProperties',_0x4ce5c6,_0x294b0b);});_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x688a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2d2f87,_0x9faa1d)=>this['handleDiscardAction'](this['tableProperties'],_0x2d2f87,_0x9faa1d)),_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3a9e9a of this['tableCellProperties'])this['editor']['commands']['get'](_0x3a9e9a)&&_0x688a4['enableCommand'](_0x3a9e9a,(_0xc8566,_0x387071)=>{const _0xce8705=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3a9e9a,_0xce8705,this['tableCellProperties'],'tableCellProperties',_0xc8566,_0x387071);});_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x688a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4942e2,_0x52c216)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4942e2,_0x52c216)),_0x688a4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x688a4['descriptionFactory']['registerAttributeLabel']('tableCellType',St(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x688a4['descriptionFactory']['registerDescriptionCallback'](_0x5b69c7=>this['handleSuggestionDescription'](_0x5b69c7)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3182da,_0x45c958,_0x3dd420,_0x25137e,_0x443b73,_0x17d251){const _0x5eed09=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x17d251['batch'],()=>{for(const _0x56c98a of _0x45c958)if(this['_getSuggestion'](_0x56c98a,_0x25137e))_0x443b73(_0x17d251);else{const _0x2b6647={};for(const _0x5936b7 of _0x3dd420){const _0x163335=_0x56c98a['getAttribute'](_0x5936b7);void 0x0!==_0x163335&&(_0x2b6647[_0x5936b7]=_0x163335);}_0x443b73(_0x17d251),_0x5eed09['markBlockFormat'](_0x56c98a,{'commandParams':[_0x2b6647]},[],_0x25137e);}});}['handleDiscardAction'](_0x3e3f9d,_0x2e913d,_0x3a8b0a){const _0x310b9d=_0x2e913d[0x0]['start']['nodeAfter'],_0x450e38=_0x3a8b0a['commandParams'][0x0];this['editor']['model']['change'](_0x299368=>{for(const _0x2016bf of _0x3e3f9d)void 0x0!==_0x450e38[_0x2016bf]?_0x299368['setAttribute'](_0x2016bf,_0x450e38[_0x2016bf],_0x310b9d):_0x299368['removeAttribute'](_0x2016bf,_0x310b9d);});}['handleSuggestionDescription'](_0x394eb9){if(_0x394eb9['data'])switch(_0x394eb9['subType']){case'tableProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':St(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x1dd283,_0x15281d){const _0x3336d6=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x405022 of _0x3336d6['getSuggestions']({'skipNotAttached':!0x0})){const _0x5d23c2=_0x405022['getContainedElement']();if(_0x405022['subType']===_0x15281d&&_0x5d23c2===_0x1dd283)return _0x405022;}return null;}['_registerTablePropertiesAttributes'](){const _0x33392f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x215d3a=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x112a14 of _0x215d3a){const _0x2fee98=_0x112a14['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x33392f['descriptionFactory']['registerAttributeLabel'](_0x112a14,St(this['editor']['locale'],'FORMAT_'+_0x2fee98));}}},tn=class extends _0x449cd5{['afterInit'](){const _0xa5622d=this['editor'];if(!_0xa5622d['plugins']['has']('LineHeight'))return;const _0xb231e4=_0xa5622d['plugins']['get']('TrackChangesEditing'),_0x560cce=_0xa5622d['locale'];_0xb231e4['enableDefaultAttributesIntegration']('lineHeight'),_0xb231e4['descriptionFactory']['registerAttributeLabel']('lineHeight',St(_0x560cce,'FORMAT_LINE_HEIGHT'));}};const en='$elementName';var nn=class extends _0x449cd5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_suggestionsConversion'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return[_0x29457b,_0x2962ea,_0x31fa66,_0x3fa9a4,_0xa1008,Ot,wt,Ft,Bt,Dt,Ut,xt,Ht,Gt,$t,Wt,jt,Qt,Zt,Jt,ee,ne,ie,re,oe,ae,ce,le,ue,he,de,ge,fe,me,Te,Le,Ce,Ee,Kt,tn,Xt,Ie,Ae,be,ke,Re,Ne,ye,Se,Me,Oe,Fe,Be,ve,Ue,Pe,xe,Ge,Ze,Ve,Ke,Xe,Je,ze,qe,Ye,Qe];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x110a32){super(_0x110a32),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3206bf,_0x5410f2,_0x518b81,_0x5e5e6c)=>{this['_model']['change'](()=>{for(const _0x166c01 of[..._0x5e5e6c,..._0x518b81])this['_model']['markers']['has'](_0x166c01)&&_0x110a32['editing']['reconvertMarker'](_0x166c01);});}),this['descriptionFactory']=new Mt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new sn(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x110a32['plugins']['get'](_0x29457b),this['_suggestionsConversion']=_0x110a32['plugins']['get'](_0x2962ea),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x110a32['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x110a32['config']['get']('trackChanges.trackFormatChanges'),_0x110a32['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x110a32['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new Et(_0x110a32,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5318dc=this['editor'];_0x5318dc['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x377f1e,{writer:_0x59e817})=>{let _0x1d754f='suggestion:'+_0x377f1e['getAttribute']('suggestion-type')+':'+_0x377f1e['getAttribute']('id');return _0x377f1e['getAttribute']('marker-count')&&(_0x1d754f+=':'+_0x377f1e['getAttribute']('marker-count')),_0x59e817['createElement']('$marker',{'data-name':_0x1d754f});}}),_0x5318dc['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5318dc['model']['document']['registerPostFixer'](_0x204801=>{let _0x87ac8a=!0x1;const _0x12a79b=Array['from'](_0x5318dc['model']['document']['differ']['getChangedMarkers']()),_0x330e9f=new Set();for(const {name:_0x2c01ed,data:_0x80e037}of _0x12a79b){const {group:_0x3ac500,type:_0x369ec3,subType:_0x16c53f,id:_0xf3c9e6}=tt(_0x2c01ed);if('suggestion'!==_0x3ac500)continue;const _0x1944d5=_0x16c53f?'suggestion:'+_0x369ec3+':'+_0x16c53f+':'+_0xf3c9e6:'suggestion:'+_0x369ec3+':'+_0xf3c9e6,_0x121e48=_0x5318dc['model']['markers']['getMarkersGroup'](_0x1944d5),_0x273338=_0x5318dc['model']['markers']['get'](_0x2c01ed),_0x2f5ca7=this['_suggestions']['get'](_0xf3c9e6);if(null!=_0x80e037['newRange']){'formatInline'==_0x369ec3&&(_0x87ac8a=_0x87ac8a||an(_0x80e037['newRange'],_0x2c01ed,_0x204801,_0x5318dc['model']['schema']));const _0x5ae474='attribute'==_0x369ec3&&this['_suggestionsConversion']['isBlockAttribute'](_n(_0x16c53f)),_0x3f91d9='attribute'==_0x369ec3&&this['_suggestionsConversion']['isInlineAttribute'](_n(_0x16c53f));if(_0x80e037['newRange']['isCollapsed']||'$graveyard'==_0x80e037['newRange']['root']['rootName']||'formatBlock'==_0x369ec3&&!ln(_0x80e037['newRange'])||_0x5ae474&&!ln(_0x80e037['newRange'])||_0x3f91d9&&un(_0x80e037['newRange'])||'deletion'==_0x369ec3&&un(_0x80e037['newRange'])||_0x273338&&dn(_0x273338,_0x121e48))_0x204801['removeMarker'](_0x2c01ed),_0x87ac8a=!0x0;else{if(!_0x2f5ca7||!_0x2f5ca7['isInContent'])continue;if(_0x80e037['newRange']&&_0x80e037['oldRange']&&_0x80e037['newRange']['isEqual'](_0x80e037['oldRange']))continue;_0x330e9f['add'](_0x2f5ca7);}}}return _0x330e9f['size']>0x0&&(_0x87ac8a=!!this['_joinWithAdjacentSuggestions'](_0x330e9f)||_0x87ac8a),_0x87ac8a;}),_0x5318dc['model']['document']['registerPostFixer'](_0x1877dd=>{let _0x504b9a=!0x1;for(const _0x406e65 of _0x5318dc['model']['document']['differ']['getChanges']())if('insert'==_0x406e65['type'])for(const _0xa64b2f of this['_suggestions']['values']()){if(_0xa64b2f['isMultiRange']||!_0xa64b2f['isInContent'])continue;const _0x4eb867='formatBlock'==_0xa64b2f['type'],_0x4461b3=this['_getAttributeKey'](_0xa64b2f),_0x21597a=_0x4461b3&&this['_suggestionsConversion']['isBlockAttribute'](_0x4461b3);if(!_0x4eb867&&!_0x21597a)continue;const _0x17d704=_0xa64b2f['getFirstRange']();if(_0x17d704['start']['parent']!=_0x17d704['end']['parent']&&!_0x17d704['end']['isAtEnd']){const _0x3a6575=_0x5318dc['model']['createPositionAt'](_0x17d704['start']['nodeAfter'],'end'),_0x4afaa4=_0x5318dc['model']['createRange'](_0x17d704['start'],_0x3a6575);_0x1877dd['updateMarker'](_0xa64b2f['getFirstMarker'](),{'range':_0x4afaa4}),_0x504b9a=!0x0;}}return _0x504b9a;}),_0x5318dc['model']['document']['registerPostFixer'](_0x21cb45=>this['_processAttributeChanges'](_0x21cb45)),_0x5318dc['model']['document']['registerPostFixer'](_0x2098ab=>!_0x2098ab['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2098ab)),_0x5318dc['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5318dc['model']['document']['on']('change:data',(_0x5e91f5,_0x21078c)=>{if(!_0x21078c['isLocal']||_0x21078c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x324b51=_0x5318dc['model']['document']['differ']['getChanges']();if(0x0==_0x324b51['length'])return;const _0x36cb9e=[],_0x4d29f2=_0x324b51['filter'](_0x3e5429=>'attribute'==_0x3e5429['type']),_0xa2c5b=_0x324b51['filter'](_0x1174a6=>'insert'==_0x1174a6['type']&&'$text'!=_0x1174a6['name']);for(const _0x373b9e of _0x4d29f2)this['_suggestionsConversion']['isRegisteredAttribute'](_0x373b9e['attributeKey'])&&_0x36cb9e['push']({'key':_0x373b9e['attributeKey'],'newValue':_0x373b9e['attributeNewValue'],'oldValue':_0x373b9e['attributeOldValue'],'range':hn(_0x373b9e['range'],_0x5318dc['model'])});for(const _0x37f290 of _0xa2c5b){if('rename'!=_0x37f290['action']&&'refresh'!=_0x37f290['action'])continue;const _0x5abfd5=gn(_0x37f290['position']['nodeAfter'],_0x5318dc['model']),_0x3aa2cf=_0x37f290['before'];'rename'==_0x37f290['action']&&_0x36cb9e['push']({'key':en,'newValue':_0x37f290['name'],'oldValue':_0x3aa2cf['name'],'range':_0x5abfd5});for(const [_0x11563a,_0x2beb87]of _0x3aa2cf['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x11563a))continue;const _0x16862d=_0x37f290['attributes']['get'](_0x11563a);_0x2beb87!==_0x16862d&&_0x36cb9e['push']({'key':_0x11563a,'newValue':_0x16862d,'oldValue':_0x2beb87,'range':_0x5abfd5});}for(const [_0x41b01f,_0x2f8d07]of _0x37f290['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x41b01f)&&(_0x3aa2cf['attributes']['has'](_0x41b01f)||_0x36cb9e['push']({'key':_0x41b01f,'newValue':_0x2f8d07,'oldValue':null,'range':_0x5abfd5}));}0x0!=_0x36cb9e['length']&&_0x5318dc['model']['enqueueChange'](_0x21078c,_0x46f240=>{const _0x422985=_0x1c0f04();for(const {range:_0x2d6758,key:_0x100e74,oldValue:_0x36b652,newValue:_0x2b2fe2}of _0x36cb9e)this['markAttributeChange'](_0x2d6758,_0x100e74,_0x36b652,_0x2b2fe2,{'groupId':_0x422985});this['_reduceExistingSuggestions'](_0x46f240,_0x36cb9e);});},{'priority':'lowest'}),_0x5318dc['model']['markers']['on']('update:suggestion',(_0x840bf5,_0x4f6480,_0x19bbf4)=>{if(null==_0x19bbf4){const {id:_0x5d8657}=tt(_0x4f6480['name']),_0x26da87=this['_suggestions']['get'](_0x5d8657);_0x26da87&&_0x26da87['addMarkerName'](_0x4f6480['name']);}}),_0x5318dc['model']['document']['on']('change:data',()=>{const _0x1da832=Array['from'](_0x5318dc['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2126c7=>'suggestion'===tt(_0x2126c7['name'])['group']);if(0x0===_0x1da832['length'])return;_0x1da832['sort']((_0x21e1db,_0x14688c)=>{const _0xfd4f96=_0x21e1db['data']['oldRange'],_0x449cc3=_0x14688c['data']['oldRange'];return null===_0xfd4f96&&null===_0x449cc3?0x0:null===_0xfd4f96&&null!==_0x449cc3?-0x1:null!==_0xfd4f96&&null===_0x449cc3?0x1:_0xfd4f96['start']['isBefore'](_0x449cc3['start'])?-0x1:0x1;});const _0x5a0d7a=new Set(),_0x5d11a4=new Set();for(const {name:_0xdb997d,data:_0x1ddd3f}of _0x1da832){const {id:_0x4008c8}=tt(_0xdb997d);if(null===_0x1ddd3f['oldRange']){const _0x272e79=this['_handleNewSuggestionMarker'](_0xdb997d);_0x5d11a4['add'](_0x272e79);}else{const _0x31ead2=this['_suggestions']['get'](_0x4008c8);null!==_0x1ddd3f['newRange']||_0x31ead2['isInContent']?(_0x5a0d7a['add'](_0x31ead2['head']),_0x5d11a4['add'](_0x31ead2)):this['_removeSuggestion'](_0x31ead2);}}_0x5d11a4['size']>0x0&&this['_refreshSuggestionsChain'](_0x5d11a4);for(const _0x29cf48 of _0x5a0d7a)this['fire']('suggestionChanged',_0x29cf48);}),_0x5318dc['model']['on']('applyOperation',(_0x30a278,_0x54b8db)=>{const _0x3724e0=_0x54b8db[0x0];if(!this['_suggestions']['size'])return;if(!_0x3724e0['isDocumentOperation'])return;if(_0x3724e0['batch']['isUndo']||!_0x3724e0['batch']['isLocal'])return;let _0x47ed50,_0x3ba8b7;switch(_0x3724e0['type']){case'insert':_0x47ed50=_0x5318dc['model']['createPositionAt'](_0x3724e0['position']),_0x3ba8b7=_0x47ed50['getShiftedBy'](_0x3724e0['howMany']);break;case'split':_0x47ed50=_0x5318dc['model']['createPositionAt'](_0x3724e0['splitPosition']),_0x3ba8b7=_0x5318dc['model']['createPositionAt'](_0x3724e0['moveTargetPosition']);break;case'move':_0x47ed50=_0x5318dc['model']['createPositionAt'](_0x3724e0['targetPosition']),_0x3ba8b7=_0x47ed50['getShiftedBy'](_0x3724e0['howMany']);break;default:return;}const _0x28e726=_0x5318dc['model']['createRange'](_0x47ed50,_0x3ba8b7);_0x5318dc['model']['change'](()=>{for(const {suggestion:_0xc87603,meta:_0x33ff22}of this['_findSuggestions'](_0x28e726)){if(_0xc87603['isMultiRange'])continue;if('formatInline'==_0xc87603['type'])continue;const _0xb9fc79=this['_getAttributeKey'](_0xc87603);if(_0xb9fc79&&this['_suggestionsConversion']['isBlockAttribute'](_0xb9fc79)&&'split'!=_0x3724e0['type'])continue;const _0xfc0950=_0xc87603['data']&&_0xc87603['data']['multipleBlocks'];('formatBlock'!=_0xc87603['type']||'split'==_0x3724e0['type']&&!_0xfc0950)&&(_0x33ff22['containsRangeInObject']||'insertion'==_0xc87603['type']&&_0x33ff22['isOwn']||_0xc87603['getFirstRange']()['containsRange'](_0x28e726)&&this['_breakSuggestionMarker'](_0xc87603,_0x47ed50,_0x3ba8b7));}});},{'priority':'lowest'}),_0x5318dc['model']['on']('deleteContent',(_0x584822,_0x416594)=>{const _0x5ce633=_0x416594[0x0],_0x28d9a8=_0x416594[0x1];if(_0x28d9a8&&_0x28d9a8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5ce633['isCollapsed'])return;const _0xec42fc=_0x5318dc['model']['schema'],{start:_0x4a3eb3,end:_0x312e9f}=_0x5ce633['getFirstRange'](),_0x5e0467=_0x4a3eb3['nodeAfter']&&_0xec42fc['isLimit'](_0x4a3eb3['nodeAfter'])?null:_0xec42fc['getNearestSelectionRange'](_0x4a3eb3,'forward'),_0x4b579f=_0x312e9f['nodeBefore']&&_0xec42fc['isLimit'](_0x312e9f['nodeBefore'])?null:_0xec42fc['getNearestSelectionRange'](_0x312e9f,'backward'),_0x34401d=_0x5318dc['model']['createRange'](_0x5e0467?_0x5e0467['start']:_0x4a3eb3,_0x4b579f?_0x4b579f['end']:_0x312e9f);_0x5318dc['model']['change'](_0x36dac2=>{this['markDeletion'](_0x34401d);const _0x510fc3=_0x5318dc['model']['schema']['getNearestSelectionRange'](_0x34401d['start']);_0x5ce633['is']('documentSelection')?_0x36dac2['setSelection'](_0x510fc3):_0x5ce633['setTo'](_0x510fc3);}),_0x584822['stop']();},{'priority':_0x449a53['normal']+0xa}),_0x5318dc['model']['on']('insertContent',(_0x1b16bd,_0x1d7b1a)=>{const _0x454db7=_0x1d7b1a[_0x1d7b1a['length']-0x1];_0x454db7&&_0x454db7['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5318dc['model']['change'](()=>{let _0x3aef33=_0x5318dc['model']['insertContent'](_0x1d7b1a[0x0],_0x1d7b1a[0x1],_0x1d7b1a[0x2],{'forceDefaultExecution':!0x0});if(!_0x3aef33)return;_0x1b16bd['return']=_0x3aef33['clone']();const _0x5163cd=_0x3aef33['end']['nodeBefore'],_0x2b915e=_0x5318dc['model']['schema'];_0x5163cd&&_0x2b915e['isBlock'](_0x5163cd)&&!_0x2b915e['isObject'](_0x5163cd)&&(_0x3aef33=_0x5318dc['model']['createRange'](_0x3aef33['start'],_0x5318dc['model']['createPositionAt'](_0x5163cd,'end'))),this['markInsertion'](_0x3aef33);}),_0x1b16bd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x238cfe=new Tt(_0x5318dc,this['_suggestions']);_0x5318dc['commands']['add']('acceptSuggestion',_0x238cfe),this['enableCommand']('acceptSuggestion');const _0x3a4dd3=new _t(_0x5318dc,this['_suggestions']);_0x5318dc['commands']['add']('discardSuggestion',_0x3a4dd3),this['enableCommand']('discardSuggestion'),_0x5318dc['commands']['add']('acceptAllSuggestions',new Ct(_0x5318dc,_0x238cfe,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5318dc['commands']['add']('discardAllSuggestions',new Ct(_0x5318dc,_0x3a4dd3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5318dc['commands']['add']('acceptSelectedSuggestions',new Rt(_0x5318dc,_0x238cfe,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5318dc['commands']['add']('discardSelectedSuggestions',new Rt(_0x5318dc,_0x3a4dd3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2a4d44=_0x5318dc['plugins']['get'](_0x29457b);this['listenTo'](_0x2a4d44,'addComment',(_0x129deb,{threadId:_0x130273})=>{const _0x47dff3=this['_suggestions']['get'](_0x130273);_0x47dff3&&_0x47dff3['commentThread']&&0x1===_0x47dff3['commentThread']['length']&&this['_updateSuggestionData'](_0x130273,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2a4d44,'removeComment',(_0x2f5cdc,{threadId:_0x12f77e})=>{const _0x564a8f=this['_suggestions']['get'](_0x12f77e);_0x564a8f&&_0x564a8f['commentThread']&&!_0x564a8f['commentThread']['length']&&this['_updateSuggestionData'](_0x12f77e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1a6be6){const _0x1affa6='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0x25ba8e=0x78fc0,_0x2d7d0a=window['Date']['now'](),_0x52eb13=_0x1a6be6['editor'],_0x3622d9=new window['Promise'](_0x2b4094=>{_0x52eb13['once']('ready',_0x2b4094);}),_0x2887b7={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0x1f22d3=_0x52eb13['config']['get']('licenseKey');async function _0x40f3ff(){let _0x493706,_0x450037=null,_0x452a27=null;try{return'GPL'==_0x1f22d3?'NotAllowed':(_0x493706=_0x5cec3c(),_0x493706?(_0x493706['usageEndpoint']&&(_0x452a27=_0x2f45a6(_0x493706['usageEndpoint'],_0x493706['jti'])),await _0x2f408d()?_0x452eb9()?_0x18d8ef()?'Expired':_0x5f3885()?('evaluation'==_0x493706['licenseType']&&(_0x450037=_0x477709('EvaluationLimit')),await _0x221102()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x18d8ef(){const _0x3e9bbe=['evaluation','trial']['includes'](_0x493706['licenseType'])?_0x2d7d0a/0x3e8:0xe10*_0x25ba8e;return _0x493706['exp']<_0x3e9bbe;}function _0x452eb9(){const _0x49cd20=_0x493706['features'];if(!_0x49cd20)return!0x1;if(_0x49cd20['includes']('*'))return!0x0;if(_0x49cd20['includes']('TC'))return!0x0;if(_0x49cd20['includes']('RTC')){if(_0x3ce1c8())return!0x0;if(_0x57aa4a()||_0x189e58())return!0x0;}return!0x1;}function _0x5f3885(){const _0x14bdc1=_0x493706['licensedHosts'];if(!_0x14bdc1||0x0==_0x14bdc1['length'])return!0x0;const {hostname:_0x5cef0c}=new URL(window['location']['href']);if(_0x14bdc1['includes'](_0x5cef0c))return!0x0;const _0x101459=_0x5cef0c['split']('.');return _0x14bdc1['filter'](_0x5f5800=>_0x5f5800['includes']('*'))['map'](_0x242c3d=>_0x242c3d['split']('.'))['filter'](_0x515c2a=>_0x515c2a['length']<=_0x101459['length'])['map'](_0x533c74=>Array(_0x101459['length']-_0x533c74['length'])['fill']('*'===_0x533c74[0x0]?'*':'')['concat'](_0x533c74))['some'](_0x422961=>_0x101459['every']((_0x136d51,_0x497ce3)=>_0x422961[_0x497ce3]===_0x136d51||'*'===_0x422961[_0x497ce3]));}function _0x221102(){return _0x450037&&_0x452a27?new window['Promise']((_0x4b6a95,_0x56dc9f)=>{_0x450037['then'](_0x4b6a95,_0x56dc9f),_0x452a27['then'](_0x5075eb=>{'Valid'!=_0x5075eb&&_0x4b6a95(_0x5075eb);},_0x56dc9f);}):_0x450037||_0x452a27||'Valid';}}function _0x2f45a6(_0x1a2cf8,_0x47de44){return new window['Promise'](_0x4ad15a=>{if(_0x4b509d())return _0x4ad15a('Valid');_0x2c2c5f(),_0x52eb13['decorate']('_sendUsageRequest');let _0xb09e9b=!0x1;const _0x38fbf7=_0x1c0f04();function _0x5e0868(_0x40c6cf){return!!_0x40c6cf&&('object'==typeof _0x40c6cf||'function'==typeof _0x40c6cf)&&'function'==typeof _0x40c6cf['then']&&'function'==typeof _0x40c6cf['catch'];}function _0x2362d4(_0x123a32){_0x16f4d7(_0x123a32)['then'](_0x140cc8=>_0x140cc8&&'ok'==_0x140cc8['status']?_0x506abb(_0x5197f9(_0x38fbf7+_0x47de44))!=_0x140cc8['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x2023ea=>(_0x42a287(),_0x2023ea),()=>{const _0x29c78c=_0x25ce19();return null==_0x29c78c?(_0x42a287(),'Valid'):_0x2d7d0a-_0x29c78c>0x240c8400?'UsageLimit':'Valid';})['then'](_0x4ad15a)['catch'](()=>{_0x4ad15a('UsageLimit');});const _0x3b1006=0x36ee80;function _0x42a287(){const _0xa7f919='llct-'+_0x506abb(_0x5197f9(_0x1a2cf8)),_0x28a22e=_0x7c1c7b(_0x506abb(window['Math']['ceil'](_0x2d7d0a/_0x3b1006)));window['localStorage']['setItem'](_0xa7f919,_0x28a22e);}function _0x25ce19(){const _0x1ec009='llct-'+_0x506abb(_0x5197f9(_0x1a2cf8)),_0x36b0a1=window['localStorage']['getItem'](_0x1ec009);return _0x36b0a1?window['parseInt'](_0x7c1c7b(_0x36b0a1),0x10)*_0x3b1006:null;}function _0x16f4d7(_0x70af16){return new window['Promise']((_0x335994,_0x9143fc)=>{_0x70af16['then'](_0x335994,_0x9143fc),window['setTimeout'](_0x9143fc,0x1d4c0);});}}_0x52eb13['on']('_sendUsageRequest',(_0x165e22,_0x269c8b)=>{if(_0x269c8b[0x0]!=_0x1a2cf8)return _0x4ad15a('UsageLimit');_0x269c8b[0x1]={..._0x269c8b[0x1],'requestId':_0x38fbf7};},{'priority':'high'}),_0x52eb13['on']('_sendUsageRequest',_0x8d9c97=>{_0x5e0868(_0x8d9c97['return'])&&(_0xb09e9b=!0x0,_0x2362d4(_0x8d9c97['return']));},{'priority':'low'}),_0x3622d9['then'](()=>{_0xb09e9b||_0x4ad15a('UsageLimit');});});function _0x4b509d(){return'auto'==_0x52eb13['editing']['view']['_overlayModeHint'];}function _0x2c2c5f(){_0x52eb13['editing']['view']['_overlayModeHint']='auto';}}function _0x477709(_0x3c94a2){const _0x4fe860=[new window['Promise'](_0x522d60=>setTimeout(_0x522d60,0x93ecc)),_0x3622d9['then'](()=>new window['Promise'](_0x389bc8=>{let _0x556f9d=0x0;_0x52eb13['model']['on']('applyOperation',(_0x316bfe,_0x276b34)=>{_0x276b34[0x0]['isDocumentOperation']&&_0x556f9d++,0x5e8==_0x556f9d&&(_0x389bc8(),_0x316bfe['off']());});}))];return window['Promise']['race'](_0x4fe860)['then'](()=>_0x3c94a2);}async function _0xb04aac(){await _0x3622d9,_0x52eb13['model']['change']=_0x5da7ea,_0x52eb13['model']['enqueueChange']=_0x5da7ea,_0x52eb13['enableReadOnlyMode']('model');}function _0x3ce1c8(){return _0x433fe4('WebSocketGateway')&&'connected'==_0x128c30('WebSocketGateway')['state'];}function _0x57aa4a(){return _0x433fe4('RevisionViewerIntegration');}function _0x189e58(){return _0x433fe4('TrackChangesDataGetter');}function _0x675ef4(_0x2dc983){const _0x14cb3e=_0x597d34();_0x52eb13[_0x14cb3e]='trackChangesLicenseKey'+_0x2dc983,'Valid'!=_0x2dc983&&_0xb04aac();}function _0x597d34(){const _0x58b2d7=window['String'](window['performance']['now']())['replace']('.','');let _0x1a9b15='R';for(let _0x1a6de2=0x0;_0x1a6de2<_0x58b2d7['length'];_0x1a6de2+=0x2){let _0x55dd3e=window['parseInt'](_0x58b2d7['substring'](_0x1a6de2,_0x1a6de2+0x2));_0x55dd3e>=0x3e&&(_0x55dd3e-=0x3e),_0x1a9b15+=_0x1affa6[_0x55dd3e];}return _0x1a9b15;}function _0x5cec3c(){const _0x3b8507=_0x1f22d3['split']('.');if(0x3!=_0x3b8507['length'])return null;return _0x15f3d1(_0x3b8507[0x1]);function _0x15f3d1(_0x4b4acb){const _0x8d1387=_0x336a39(_0x4b4acb);return _0x8d1387&&_0x152518()?_0x8d1387:null;function _0x152518(){const _0x1640f2=_0x8d1387['jti'],_0x136ec1=window['parseInt'](_0x1640f2['substring'](_0x1640f2['length']-0x8),0x10),_0x166e0c={..._0x8d1387,'jti':_0x1640f2['substring'](0x0,_0x1640f2['length']-0x8)};return delete _0x166e0c['vc'],_0x5197f9(_0x166e0c)==_0x136ec1;}}}async function _0x2f408d(){let _0x31b16c=!0x0;try{const [_0x513efb,_0x3ce530,_0x14689d]=_0x1f22d3['split']('.');return _0x37f317(_0x513efb),await _0x14a6de(_0x513efb,_0x3ce530,_0x14689d),_0x31b16c;}catch{return!0x1;}function _0x37f317(_0xc5404e){const _0x5bf03b=_0x336a39(_0xc5404e);_0x5bf03b&&'ES256'==_0x5bf03b['alg']||(_0x31b16c=!0x1);}async function _0x14a6de(_0x35299f,_0x394ae6,_0x251a2e){const _0x31a5d8=window['Uint8Array']['from'](_0x3c2227(_0x251a2e),_0x29536c=>_0x29536c['charCodeAt'](0x0)),_0x46959b=new window['TextEncoder']()['encode'](_0x35299f+'.'+_0x394ae6),_0x2cbc1c=window['crypto']['subtle'];if(!_0x2cbc1c)return;const _0x466c98=await _0x2cbc1c['importKey']('jwk',_0x2887b7,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x2cbc1c['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x466c98,_0x31a5d8,_0x46959b)||(_0x31b16c=!0x1);}}function _0x336a39(_0xdb0a0){return _0xdb0a0['startsWith']('ey')?JSON['parse'](_0x3c2227(_0xdb0a0)):null;}function _0x3c2227(_0x24303b){return window['atob'](_0x24303b['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x5197f9(_0x43742c){let _0x5981f1=0x1505;function _0x26e973(_0x32599e){for(let _0x3cadbd=0x0;_0x3cadbd<_0x32599e['length'];_0x3cadbd++){const _0xde1d7c=_0x32599e['charCodeAt'](_0x3cadbd);_0x5981f1=(_0x5981f1<<0x5)+_0x5981f1+_0xde1d7c,_0x5981f1&=_0x5981f1;}}function _0x20b1f7(_0x196782){Array['isArray'](_0x196782)?_0x196782['forEach'](_0x20b1f7):_0x196782&&'object'==typeof _0x196782?Object['entries'](_0x196782)['sort']()['forEach'](([_0x36e858,_0x1a3c95])=>{_0x26e973(_0x36e858),_0x20b1f7(_0x1a3c95);}):_0x26e973(window['String'](_0x196782));}return _0x20b1f7(_0x43742c),_0x5981f1>>>0x0;}function _0x506abb(_0x34cf27){return _0x34cf27['toString'](0x10)['padStart'](0x8,'0');}function _0x7c1c7b(_0x2f0737){return _0x2f0737['split']('')['reverse']()['join']('');}function _0x433fe4(_0x491d2a){return _0x52eb13['plugins']['has'](_0x491d2a);}function _0x128c30(_0x201da0){return _0x52eb13['plugins']['get'](_0x201da0);}function _0x5da7ea(){}_0x675ef4(await _0x40f3ff());}(this);}set['adapter'](_0x1598de){if(this['_adapter'])throw new _0x403c95('track-changes-adapter-already-set',this);this['_adapter']=_0x1598de;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x520304=!0x1,toJSON:_0x307545=!0x1}={}){const _0x46d7d8=[];for(const _0x337925 of this['_suggestions']['values']())_0x520304&&!_0x337925['isInContent']||_0x46d7d8['push'](_0x337925);return _0x307545?_0x46d7d8['map'](_0x4cebe6=>_0x4cebe6['toJSON']()):_0x46d7d8;}['getSuggestion'](_0x4db47b){const _0x59b9ad=this['_suggestions']['get'](_0x4db47b);if(!_0x59b9ad)throw new _0x403c95('track-changes-suggestion-not-found',this);return _0x59b9ad;}['hasSuggestion'](_0xf371c4){return this['_suggestions']['has'](_0xf371c4);}['addSuggestionData'](_0x191f76){const {authorId:_0x218252,id:_0x2f2c4e,originalSuggestionId:_0x17197d,attributes:_0x3c820c}=_0x191f76,[_0x455de1,_0x19db3f]=_0x191f76['type']['split'](':'),_0x2f0324=this['_suggestions']['get'](_0x2f2c4e)||this['_createSuggestion'](_0x455de1,_0x19db3f,_0x2f2c4e,_0x218252,_0x3c820c,_0x17197d);if(this['_addThreadToSuggestion'](_0x2f0324),this['_checkSuggestionCorrectness'](_0x2f0324,_0x455de1,_0x19db3f||null,_0x218252),_0x2f0324['createdAt']=_0x191f76['createdAt'],_0x2f0324['_isDataLoaded']=!0x0,_0x3c820c&&_0x3c820c['@external']){const _0x3ee9be=_0x3c820c['@external'],_0xd99f42=this['_getExternalAuthor'](_0x3ee9be['authorName']);_0x2f0324['authoredAt']=_0x3ee9be['createdAt'],_0x2f0324['author']=_0xd99f42;}else _0x2f0324['authoredAt']=_0x191f76['createdAt'];switch(_0x191f76['data']&&(_0x2f0324['data']=_0x191f76['data']),_0x191f76['attributes']&&(_0x2f0324['attributes']=_0x191f76['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2f0324['_saved']=!0x0),this['_suggestionState']['get'](_0x2f0324)){case'notReady':this['_suggestionState']['set'](_0x2f0324,'dataReady');break;case'markerReady':_0x2f0324['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2f0324])),this['_refreshSuggestionsChain'](new Set([_0x2f0324])),this['_suggestionState']['set'](_0x2f0324,'ready'),this['fire']('suggestionLoaded',_0x2f0324)):this['_suggestionState']['set'](_0x2f0324,'removed');}return _0x2f0324;}['acceptSuggestion'](_0x2c38a9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5844ae of _0x2c38a9['getAllAdjacentSuggestions']())_0x5844ae['accept']();});});}['discardSuggestion'](_0x4b979f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2297e8 of _0x4b979f['getAllAdjacentSuggestions']())_0x2297e8['discard']();});});}['enableCommand'](_0x3a15df,_0x29ec33){const _0x35ca9b=this['editor']['commands']['get'](_0x3a15df);if(!_0x35ca9b)throw new _0x403c95('track-changes-command-not-found',this,{'commandName':_0x3a15df});if(this['_enabledCommands']['has'](_0x35ca9b))throw new _0x403c95('track-changes-enable-command-twice',this,{'commandName':_0x3a15df});this['_enabledCommands']['add'](_0x35ca9b),_0x29ec33&&_0x35ca9b['on']('execute',(_0xc0505c,_0x196992)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x196992['length']>0x0&&_0x196992[_0x196992['length']-0x1]&&_0x196992[_0x196992['length']-0x1]['forceDefaultExecution']?_0x196992['pop']():(_0xc0505c['return']=_0x29ec33((..._0x432c9c)=>_0x35ca9b['execute'](..._0x432c9c,{'forceDefaultExecution':!0x0}),..._0x196992),_0xc0505c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5cbf15){let _0x5e7f35,_0x46d6c1;const _0x1f2299=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5e7f35=_0x5cbf15();}catch(_0x11088d){_0x46d6c1=_0x11088d;}return _0x1f2299||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x46d6c1&&_0x403c95['rethrowUnexpectedError'](_0x46d6c1,this),_0x5e7f35;}['markInsertion'](_0x102a7c,_0x479453=null,_0x8c9afb={}){if(_0x102a7c['isCollapsed'])return null;const _0x1e42dd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x8c9afb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2106db,meta:_0x5a0902}of this['_findSuggestions'](_0x102a7c,'insertion'))if(_0x5a0902['isOwn']){if(!_0x5a0902['isNextTo']){if(_0x5a0902['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!En(_0x2106db,_0x8c9afb))continue;return _0x2106db;}if(En(_0x2106db,_0x8c9afb))return _0x2106db;this['_breakSuggestionMarker'](_0x2106db,_0x102a7c['start'],_0x102a7c['end']);break;}if(_0x479453==_0x2106db['subType']&&En(_0x2106db,_0x8c9afb)){const _0x2de773=_0x2106db['getFirstRange']();return _0x2de773['start']['isEqual'](_0x102a7c['end'])?this['_setSuggestionRange'](_0x2106db,this['_model']['createRange'](_0x102a7c['start'],_0x2de773['end'])):this['_setSuggestionRange'](_0x2106db,this['_model']['createRange'](_0x2de773['start'],_0x102a7c['end'])),_0x2106db;}}const _0x2f366e=_0x1c0f04(),_0x59923f=_0x1e42dd['id'],_0x3972ae=_0x479453?'insertion:'+_0x479453:'insertion',_0x640920=this['_setSuggestionData']({'id':_0x2f366e,'type':_0x3972ae,'createdAt':new Date(),'authorId':_0x59923f,'attributes':_0x8c9afb});return this['_addSuggestionMarker'](_0x3972ae,_0x2f366e,_0x59923f,_0x102a7c),_0x640920;}['markMultiRangeInsertion'](_0x1333b8,_0x552ea8='multi',_0x15939f={}){const _0x55dc36=this['editor']['plugins']['get']('Users')['me'],_0x2e8631=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x552ea8,'join');this['_trackingSessionId']&&(_0x15939f['trackingSessionId']=this['_trackingSessionId']);for(const _0x3a88ef of this['getSuggestions']())if(_0x3a88ef['author']['id']==_0x55dc36['id']&&'insertion'==_0x3a88ef['type']&&_0x3a88ef['subType']==_0x552ea8&&En(_0x3a88ef,_0x15939f)&&(_0x2e8631(_0x3a88ef['getRanges'](),_0x1333b8)||_0x2e8631(_0x1333b8,_0x3a88ef['getRanges']()))){for(const _0x2a2461 of _0x1333b8)_0x3a88ef['addRange'](_0x2a2461);return _0x3a88ef;}for(const {suggestion:_0x1864a4,meta:_0x22330e}of this['_findSuggestions'](_0x1333b8,'insertion')){if(!_0x22330e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22330e['containsRangeInObject'])continue;if(!En(_0x1864a4,_0x15939f))continue;let _0x2b723d=!0x0;for(const _0x39ca99 of _0x1864a4['getRanges']())for(const _0x65bd2c of _0x1333b8)if(!_0x39ca99['containsRange'](_0x65bd2c)){_0x2b723d=!0x1;break;}if(_0x2b723d)return _0x1864a4;}const _0x186427=_0x1c0f04(),_0x548473=_0x55dc36['id'],_0x434899='insertion:'+_0x552ea8,_0x285630=this['_setSuggestionData']({'id':_0x186427,'type':_0x434899,'createdAt':new Date(),'authorId':_0x548473,'attributes':_0x15939f});for(const _0x333345 of _0x1333b8)this['_addSuggestionMarker'](_0x434899,_0x186427,_0x548473,_0x333345,yt['getMultiRangeId']());return _0x285630;}['markInlineFormat'](_0x1a443c,_0x238948,_0x4a09f0=null,_0x571c60={}){if(_0x4a09f0=_0x4a09f0||cn(_0x238948),_0x1a443c['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x571c60['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1f91a2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a09f0,'accept');return this['forceDefaultExecution'](()=>_0x1f91a2([_0x1a443c],_0x238948,_0x571c60)),null;}const _0x20dcc7=this['editor']['plugins']['get']('Users')['me'],_0xc9872c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x16cf21,meta:_0x587b31}of this['_findSuggestions'](_0x1a443c,'insertion'))_0x587b31['isOwn']&&!_0x587b31['isInsideObject']&&_0xc9872c['push'](..._0x16cf21['getRanges']());}const _0x297ca6=function(_0x5854fc,_0x3ae1e0){const _0x3fbd0d=[];for(const _0x19dbb5 of _0x3ae1e0){const _0x2cdd1f=_0x5854fc['getIntersection'](_0x19dbb5);_0x2cdd1f&&_0x3fbd0d['push'](_0x2cdd1f);}return _0x3fbd0d;}(_0x1a443c,_0xc9872c),_0x291f32=function(_0x14b6ce,_0x43f33c){const _0x4ac10a=[_0x14b6ce];for(const _0x32d84f of _0x43f33c){let _0x519c0c=0x0;for(;_0x519c0c<_0x4ac10a['length'];){const _0x246665=_0x4ac10a[_0x519c0c]['getDifference'](_0x32d84f);_0x4ac10a['splice'](_0x519c0c,0x1,..._0x246665),_0x519c0c+=_0x246665['length'];}}return _0x4ac10a;}(_0x1a443c,_0xc9872c);_0x297ca6['length']&&this['_model']['change'](()=>{for(const _0x3580b3 of _0x297ca6){const _0x976f12=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4a09f0,'accept');this['forceDefaultExecution'](()=>_0x976f12([_0x3580b3],_0x238948,_0x571c60));}});for(const _0x4ee9fc of _0x291f32){let _0x5017fd=null,_0x4c3fef=_0x4ee9fc['start'],_0x411c6e=_0x4ee9fc['end'];for(const {suggestion:_0x16f0ca,meta:_0x1178c3}of this['_findSuggestions'](_0x4ee9fc,'formatInline')){if(!_0x1178c3['isOwn'])continue;if(_0x16f0ca['subType']!=_0x4a09f0)continue;if(!En(_0x16f0ca,_0x571c60))continue;const _0xa0d618=_0x16f0ca['getFirstRange']();if(_0xa0d618['containsRange'](_0x4ee9fc,!0x0))return null;_0x4c3fef=_0x4c3fef['isBefore'](_0xa0d618['start'])?_0x4c3fef:_0xa0d618['start'],_0x411c6e=_0x411c6e['isAfter'](_0xa0d618['end'])?_0x411c6e:_0xa0d618['end'],_0x5017fd?_0xa0d618['start']['isBefore'](_0x5017fd['getFirstRange']()['start'])?(_0x5017fd['removeMarkers'](),_0x5017fd=_0x16f0ca):_0x16f0ca['removeMarkers']():_0x5017fd=_0x16f0ca;}const _0x5a2c4f=this['_model']['createRange'](_0x4c3fef,_0x411c6e);if(_0x5017fd)this['_setSuggestionRange'](_0x5017fd,_0x5a2c4f);else{const _0x151184=_0x1c0f04(),_0x6a0c4d=_0x20dcc7['id'];this['_setSuggestionData']({'id':_0x151184,'type':'formatInline:'+_0x4a09f0,'data':_0x238948,'createdAt':new Date(),'authorId':_0x6a0c4d,'attributes':_0x571c60}),this['_addSuggestionMarker']('formatInline:'+_0x4a09f0,_0x151184,_0x6a0c4d,_0x5a2c4f);}}return null;}['markBlockFormat'](_0x3f1766,_0x5d20ca,_0x40d883=[],_0x4e8e06=null,_0x2e5810={}){_0x5d20ca['formatGroupId']||(_0x5d20ca['formatGroupId']=_0x5d20ca['commandName']),_0x5d20ca['multipleBlocks']=_0x3f1766['is']('range'),_0x4e8e06=_0x4e8e06||cn(_0x5d20ca);const _0x103248=_0x40d883['map'](_0x3099cc=>gn(_0x3099cc,this['_model'])),_0x459b9b=_0x3f1766['is']('range')?_0x3f1766:gn(_0x3f1766,this['_model']);if(this['_trackingSessionId']&&(_0x2e5810['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x506371=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e8e06,'accept');return this['forceDefaultExecution'](()=>_0x506371([_0x459b9b],_0x5d20ca,_0x2e5810)),null;}_0x103248['push'](_0x459b9b);let _0x3b6d84=!0x0;for(const _0x2a6554 of _0x103248)if(!this['_rangeIsInLocalUserInsertion'](_0x2a6554)){_0x3b6d84=!0x1;break;}if(_0x3b6d84&&'always'!==this['_trackFormatChanges']){const _0x25b4b1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4e8e06,'accept');return this['forceDefaultExecution'](()=>_0x25b4b1([_0x459b9b],_0x5d20ca,_0x2e5810)),null;}let _0x8c2230=null,_0x368147=_0x459b9b['start'],_0x237f8c=_0x459b9b['end'];for(const {suggestion:_0x1322a9,meta:_0x58de73}of this['_findSuggestions'](_0x459b9b,'formatBlock')){if(!_0x58de73['isOwn'])continue;if(_0x58de73['isNextTo']||_0x58de73['containsRangeInObject']||_0x58de73['isInsideObject'])continue;if(_0x1322a9['data']['formatGroupId']!=_0x5d20ca['formatGroupId'])continue;if(!En(_0x1322a9,_0x2e5810))continue;const _0x38cf99=_0x1322a9['getFirstRange']();if(_0x1322a9['subType']==_0x4e8e06){if(_0x38cf99['containsRange'](_0x459b9b,!0x0))return null;_0x368147=_0x368147['isBefore'](_0x38cf99['start'])?_0x368147:_0x38cf99['start'],_0x237f8c=_0x237f8c['isAfter'](_0x38cf99['end'])?_0x237f8c:_0x38cf99['end'],_0x8c2230?_0x38cf99['start']['isBefore'](_0x8c2230['getFirstRange']()['start'])?(_0x8c2230['removeMarkers'](),_0x8c2230=_0x1322a9):_0x1322a9['removeMarkers']():_0x8c2230=_0x1322a9;}else{const _0x4dec52=_0x459b9b['getIntersection'](_0x38cf99);this['_cutOutSuggestionMarker'](_0x1322a9,_0x4dec52);}}const _0x8b6979=this['editor']['plugins']['get']('Users')['me'],_0x4cd470=_0x1c0f04(),_0x193b8f=_0x8b6979['id'];if(_0x8c2230)return this['_setSuggestionRange'](_0x8c2230,this['_model']['createRange'](_0x368147,_0x237f8c)),_0x8c2230;{const _0x479645=this['_setSuggestionData']({'id':_0x4cd470,'type':'formatBlock:'+_0x4e8e06,'data':_0x5d20ca,'createdAt':new Date(),'authorId':_0x193b8f,'attributes':_0x2e5810});return this['_addSuggestionMarker']('formatBlock:'+_0x4e8e06,_0x4cd470,_0x193b8f,this['_model']['createRange'](_0x368147,_0x237f8c)),_0x479645;}}['markMultiRangeBlockFormat'](_0x3c3073,_0x4f1b6e,_0x315925=[],_0x737188=null,_0x1fc5dd={}){_0x4f1b6e['formatGroupId']||(_0x4f1b6e['formatGroupId']=_0x4f1b6e['commandName']);const _0x3f2ed4=_0x3c3073[0x0];_0x4f1b6e['multipleBlocks']=_0x3f2ed4['is']('range'),_0x737188=_0x737188||cn(_0x4f1b6e);const _0x5e6e92=_0x315925['map'](_0xbb042=>gn(_0xbb042,this['_model'])),_0x2c05af=_0x3f2ed4['is']('range')?_0x3c3073:_0x3c3073['map'](_0x18ac50=>gn(_0x18ac50,this['_model']));if(this['_trackingSessionId']&&(_0x1fc5dd['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x28bea9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x737188,'accept');return this['forceDefaultExecution'](()=>_0x28bea9(_0x2c05af,_0x4f1b6e,_0x1fc5dd)),null;}_0x5e6e92['push'](..._0x2c05af);let _0x38791b=!0x0;for(const _0xab2b5e of _0x5e6e92)if(!this['_rangeIsInLocalUserInsertion'](_0xab2b5e)){_0x38791b=!0x1;break;}if(_0x38791b&&'always'!==this['_trackFormatChanges']){const _0x82ce67=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x737188,'accept');return this['forceDefaultExecution'](()=>_0x82ce67(_0x2c05af,_0x4f1b6e,_0x1fc5dd)),null;}const _0x46c049=this['editor']['plugins']['get']('Users')['me'];for(const _0x12f772 of this['getSuggestions']()){const _0x39984d=_0x12f772['data'];if(_0x12f772['author']['id']!=_0x46c049['id'])continue;if('formatBlock'!=_0x12f772['type']||_0x39984d['formatGroupId']!=_0x4f1b6e['formatGroupId'])continue;if(!En(_0x12f772,_0x1fc5dd))continue;const _0x25a2b9=_0x12f772['subType']==_0x737188;for(let _0x208225=0x0;_0x208225<_0x2c05af['length'];_0x208225++){const _0x1d1915=_0x2c05af[_0x208225];for(const _0x9e9233 of _0x12f772['getMarkers']()){const _0xcd3195=_0x9e9233['getRange']();if(_0x1d1915['isEqual'](_0xcd3195)){_0x25a2b9?(_0x2c05af['splice'](_0x208225,0x1),_0x208225--):_0x12f772['removeMarker'](_0x9e9233['name']);break;}}}}if(0x0==_0x2c05af['length'])return null;const _0x1ae0af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x737188,'join');for(const _0x3f2dcd of this['getSuggestions']()){const _0x3698e2=_0x3f2dcd['data'];if(_0x3f2dcd['author']['id']==_0x46c049['id']&&('formatBlock'==_0x3f2dcd['type']&&_0x3698e2['formatGroupId']==_0x4f1b6e['formatGroupId']&&_0x3f2dcd['subType']==_0x737188&&En(_0x3f2dcd,_0x1fc5dd)&&(_0x1ae0af(_0x3f2dcd['getRanges'](),_0x2c05af)||_0x1ae0af(_0x2c05af,_0x3f2dcd['getRanges']())))){for(const _0x2470c1 of _0x2c05af)_0x3f2dcd['addRange'](_0x2470c1);return _0x3f2dcd;}}const _0x41fbc8=_0x1c0f04(),_0x47f316=_0x46c049['id'],_0x46b56d='formatBlock:'+_0x737188,_0x4e9d29=this['_setSuggestionData']({'id':_0x41fbc8,'type':_0x46b56d,'data':_0x4f1b6e,'createdAt':new Date(),'authorId':_0x47f316,'attributes':_0x1fc5dd});for(const _0x1ca4f1 of _0x2c05af)this['_addSuggestionMarker'](_0x46b56d,_0x41fbc8,_0x47f316,_0x1ca4f1,yt['getMultiRangeId']());return _0x4e9d29;}['markDeletion'](_0x19fabf,_0x55f6d1=null,_0x5abc2e={}){if(_0x19fabf['isCollapsed'])return null;const _0x70df69=this['editor']['plugins']['get']('Users')['me'],_0x20f92f=new rt(_0x19fabf['start'],_0x19fabf['end']);this['_trackingSessionId']&&(_0x5abc2e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2e1bb3,meta:_0x22b2a4}of this['_findSuggestions'](_0x20f92f,'insertion'))if(_0x22b2a4['isOwn']&&!_0x22b2a4['isNextTo']){if(_0x2e1bb3['isMultiRange']){const _0x1fef09=_0x2e1bb3['getRanges']()['filter'](_0x435658=>'$graveyard'!=_0x435658['root']['rootName']);if(_0x1fef09['every'](_0x13fa6e=>_0x20f92f['containsRange'](_0x13fa6e,!0x0))&&_0x2e1bb3['discard'](),_0x1fef09['some'](_0x6e5ccf=>_0x6e5ccf['containsRange'](_0x20f92f,!0x0))){const _0x404f4a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55f6d1,'accept');return this['forceDefaultExecution'](()=>_0x404f4a([_0x20f92f],null,_0x5abc2e)),null;}}else{const _0x2e53d1=_0x20f92f['getIntersection'](_0x2e1bb3['getFirstRange']());null!==_0x2e53d1&&_0x2e1bb3['_onDiscard']([_0x2e53d1],null,_0x5abc2e);}}if(_0x20f92f['detach'](),_0x20f92f['isCollapsed']||'$graveyard'==_0x20f92f['root']['rootName'])return null;let _0x1841e8=null,_0x110e52=_0x20f92f['start'],_0xbd0ec2=_0x20f92f['end'];const _0x57ce0a=this['_findSuggestions'](_0x20f92f,'deletion');for(const {suggestion:_0x3e8d53,meta:_0x8ca0e0}of _0x57ce0a){const _0x377fcc=this['_model']['createRange'](_0x110e52,_0xbd0ec2);if(_0x8ca0e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x8ca0e0['containsRangeInObject']&&!_0x8ca0e0['isInsideObject'])){if(_0x3e8d53['isMultiRange']){if(!En(_0x3e8d53,_0x5abc2e))continue;let _0x3724ab=!0x0;for(const _0x41bdd9 of _0x3e8d53['getRanges']()){if(_0x41bdd9['containsRange'](_0x377fcc,!0x0))return _0x3e8d53;_0x377fcc['containsRange'](_0x41bdd9)||(_0x3724ab=!0x1);}_0x3724ab&&_0x3e8d53['discard']();}else{const _0x57afc7=_0x3e8d53['getFirstRange']();if(_0x57afc7['containsRange'](_0x377fcc,!0x0))return _0x3e8d53;if(!En(_0x3e8d53,_0x5abc2e)){_0x377fcc['containsRange'](_0x57afc7)?_0x3e8d53['removeMarkers']():_0x57afc7['containsPosition'](_0x110e52)?_0x110e52=_0x57afc7['end']:_0x57afc7['containsPosition'](_0xbd0ec2)&&(_0xbd0ec2=_0x57afc7['start']);continue;}_0x110e52=_0x110e52['isBefore'](_0x57afc7['start'])?_0x110e52:_0x57afc7['start'],_0xbd0ec2=_0xbd0ec2['isAfter'](_0x57afc7['end'])?_0xbd0ec2:_0x57afc7['end'],_0x5abc2e=Object['assign']({},_0x3e8d53['attributes']),_0x1841e8?_0x57afc7['start']['isBefore'](_0x1841e8['getFirstRange']()['start'])?(_0x1841e8['removeMarkers'](),_0x1841e8=_0x3e8d53):_0x3e8d53['removeMarkers']():_0x1841e8=_0x3e8d53;}}}if(_0x1841e8)return this['_setSuggestionRange'](_0x1841e8,this['_model']['createRange'](_0x110e52,_0xbd0ec2)),_0x1841e8;{const _0x347a7a=_0x1c0f04(),_0x401c35=this['_model']['createRange'](_0x110e52,_0xbd0ec2),_0x184829=_0x70df69['id'],_0x2f3a83=_0x55f6d1?'deletion:'+_0x55f6d1:'deletion',_0xfe16ea=this['_setSuggestionData']({'id':_0x347a7a,'type':_0x2f3a83,'createdAt':new Date(),'authorId':_0x184829,'attributes':_0x5abc2e});return this['_addSuggestionMarker'](_0x2f3a83,_0x347a7a,_0x184829,_0x401c35),_0xfe16ea;}}['markMultiRangeDeletion'](_0x1b32cb,_0x16f611='multi',_0x45d01f={}){const _0xc3faf8=this['editor']['plugins']['get']('Users')['me'],_0x56a4fa=_0x1b32cb['map'](_0x53fd30=>new rt(_0x53fd30['start'],_0x53fd30['end'])),_0x51bfc5=new Set();this['_trackingSessionId']&&(_0x45d01f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x318c1f,meta:_0x328754}of this['_findSuggestions'](_0x56a4fa,'insertion'))_0x328754['isOwn']&&!_0x328754['isNextTo']&&_0x51bfc5['add'](_0x318c1f);for(const _0x2a77ee of _0x51bfc5)if(_0x2a77ee['isMultiRange']){const _0x344ef5=_0x2a77ee['getRanges']();if(_0x2a77ee['attributes']&&_0x2a77ee['attributes']['skipNestingCheck']||_0x344ef5['every'](_0x4ed5f0=>_0x56a4fa['some'](_0x548a89=>_0x548a89['containsRange'](_0x4ed5f0,!0x0)))&&_0x2a77ee['discard'](),_0x56a4fa['every'](_0x98e185=>_0x344ef5['some'](_0x4841ec=>_0x4841ec['containsRange'](_0x98e185,!0x0)))){const _0x18e968=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f611,'accept');return this['forceDefaultExecution'](()=>_0x18e968(_0x1b32cb,null,_0x45d01f)),null;}}else{const _0x4d4492=_0x2a77ee['getFirstRange']();if(_0x56a4fa['some'](_0x48da18=>_0x48da18['containsRange'](_0x4d4492,!0x0))&&_0x2a77ee['discard'](),_0x56a4fa['every'](_0x16c486=>_0x4d4492['containsRange'](_0x16c486,!0x0))){const _0x21f3d1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f611,'accept');return this['forceDefaultExecution'](()=>_0x21f3d1(_0x56a4fa,null,_0x45d01f)),null;}}const _0x3ef54f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x16f611,'join');let _0x1322bf=null;for(const _0x53b05a of this['getSuggestions']())if(_0x53b05a['author']['id']==_0xc3faf8['id']&&_0x53b05a['isInContent']&&'deletion'==_0x53b05a['type']&&_0x53b05a['subType']==_0x16f611&&En(_0x53b05a,_0x45d01f)&&(_0x3ef54f(_0x53b05a['getRanges'](),_0x56a4fa)||_0x3ef54f(_0x56a4fa,_0x53b05a['getRanges']()))){if(_0x1322bf){if(_0x53b05a['commentThread']&&_0x53b05a['commentThread']['length'])continue;for(const _0x474522 of _0x53b05a['getRanges']())_0x1322bf['isIntersectingWithRange'](_0x474522)||_0x1322bf['addRange'](_0x474522);_0x53b05a['removeMarkers']();}else{_0x1322bf=_0x53b05a;for(const _0x256dc2 of _0x56a4fa)_0x53b05a['isIntersectingWithRange'](_0x256dc2)||_0x53b05a['addRange'](_0x256dc2);}}if(_0x1322bf)return _0x1322bf;_0x51bfc5['clear']();for(const {suggestion:_0x2096e9,meta:_0x324b2b}of this['_findSuggestions'](_0x56a4fa,'deletion'))_0x324b2b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x324b2b['containsRangeInObject']&&!_0x324b2b['isInsideObject'])&&En(_0x2096e9,_0x45d01f)&&_0x51bfc5['add'](_0x2096e9);for(const _0x2e49ed of _0x51bfc5){const _0x179289=_0x2e49ed['getRanges']();if((!_0x45d01f||!_0x45d01f['skipNestingCheck'])&&_0x56a4fa['every'](_0x37a88e=>_0x179289['some'](_0x4b6880=>_0x4b6880['containsRange'](_0x37a88e,!0x0))))return _0x2e49ed;_0x2e49ed['attributes']&&_0x2e49ed['attributes']['skipNestingCheck']||_0x179289['every'](_0x5ad1c4=>_0x56a4fa['some'](_0x1be422=>_0x1be422['containsRange'](_0x5ad1c4,!0x0)))&&_0x2e49ed['discard']();}const _0x52f1dd=_0x1c0f04(),_0x18016d=_0xc3faf8['id'],_0x265a5f='deletion:'+_0x16f611,_0x4bc5a3=this['_setSuggestionData']({'id':_0x52f1dd,'type':_0x265a5f,'createdAt':new Date(),'authorId':_0x18016d,'attributes':_0x45d01f});for(const _0x2b7467 of _0x56a4fa)_0x2b7467['detach'](),_0x2b7467['isCollapsed']||'$graveyard'==_0x2b7467['root']['rootName']||this['_addSuggestionMarker'](_0x265a5f,_0x52f1dd,_0x18016d,_0x2b7467,yt['getMultiRangeId']());return _0x4bc5a3;}['markAttributeChange'](_0x2afe43,_0x216c5c,_0x45b0bf,_0x2ecb5e,_0x5d175a){if(_0x2afe43['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2a05ad=this['editor']['plugins']['get']('Users')['me']['id'],_0x5bfbe4=Array['from'](this['_suggestions']['values']())['filter'](_0x50a7f1=>'attribute'==_0x50a7f1['type']&&_0x50a7f1['data']['key']==_0x216c5c&&_0x50a7f1['isIntersectingWithRange'](_0x2afe43));if(this['_trackingSessionId']&&(_0x5d175a['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x256f4f=this['_findSuggestions'](_0x2afe43,'insertion')['filter'](({meta:_0x496ae4})=>_0x496ae4['isOwn']&&!_0x496ae4['isInsideObject']&&!_0x496ae4['isNextTo'])['map'](({suggestion:_0x49f2b2})=>_0x49f2b2);_0x5bfbe4['unshift'](..._0x256f4f);}const _0x1373b5=new Map([[_0x2afe43,_0x45b0bf]]);for(const _0x50fb96 of _0x5bfbe4){const _0x467e5d='attribute'==_0x50fb96['type']?_0x50fb96['data']['oldValue']:void 0x0,_0x5508fc=_0x50fb96['getFirstRange'](),_0x3d9515=Array['from'](_0x1373b5['keys']())['find'](_0x2d18f0=>_0x2d18f0['isIntersecting'](_0x5508fc));if(!_0x3d9515)continue;const _0x354b6c=_0x3d9515['getDifference'](_0x5508fc);this['_suggestionsConversion']['isBlockAttribute'](_0x216c5c)&&'insertion'==_0x50fb96['type']&&0x0!=_0x354b6c['length']||(_0x1373b5['delete'](_0x3d9515),_0x354b6c['forEach'](_0x511125=>{_0x1373b5['set'](_0x511125,_0x45b0bf);}),'insertion'!=_0x50fb96['type']&&_0x467e5d!=_0x2ecb5e&&_0x1373b5['set'](_0x3d9515['getIntersection'](_0x5508fc),_0x467e5d));}const _0x29baaa=[];for(const [_0x926a15,_0x3a4d14]of _0x1373b5){const _0x1b7441=_0x1c0f04(),_0x549776={'key':_0x216c5c,'oldValue':_0x3a4d14,'newValue':_0x2ecb5e};_0x216c5c['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':_0x216c5c});const _0x592eb7=('attribute:'+_0x216c5c+'|'+cn({'newValue':_0x2ecb5e}))['substring'](0x0,0x3c),_0x14457c=this['_setSuggestionData']({'id':_0x1b7441,'type':_0x592eb7,'data':_0x549776,'createdAt':new Date(),'authorId':_0x2a05ad,'attributes':_0x5d175a});_0x29baaa['push'](_0x14457c),this['_addSuggestionMarker'](_0x592eb7,_0x1b7441,_0x2a05ad,_0x926a15);}return _0x29baaa;}['enableDefaultAttributesIntegration'](_0x85089a){this['enableCommand'](_0x85089a,(_0xb6e102,..._0xe05e70)=>{this['recordAttributeChanges'](()=>{_0xb6e102(..._0xe05e70);});});}['startTrackingSession'](_0x2df790){return this['_trackingSessionId']=void 0x0!==_0x2df790?_0x2df790:_0x1c0f04(),this['_trackingSessionId'];}['_getAttributeKey'](_0x2d9368){return'attribute'==_0x2d9368['type']?_n(_0x2d9368['subType']):null;}['_applyOperationsAsSuggestions'](_0x56d612){if(0x0==_0x56d612['length'])return;const _0x6fb452=this['editor'],_0x34092a=_0x6fb452['plugins']['get'](_0xa1008),_0x5bc3c1=[],_0x53fea7=_0xe9fad7=>{const _0x7746b6=_0xe9fad7['_aiSource'];return _0x7746b6?{'@ai':{'type':_0x7746b6}}:{};},_0x53d13f=(_0x4f3d5b,_0x379f88,_0x2f87b3)=>{for(let _0x205061=_0x379f88;_0x205061<_0x4f3d5b['operations']['length'];_0x205061++){const _0x416cdb=_0x4f3d5b['operations'][_0x205061];'marker'===_0x416cdb['type']&&(_0x416cdb['_aiSource']=_0x2f87b3);}};_0x6fb452['model']['change'](_0x184501=>{for(let _0x4a5fdd=0x0;_0x4a5fdd<_0x56d612['length'];_0x4a5fdd++){const _0x5bcc3f=_0x56d612[_0x4a5fdd],_0x356d18=_0x5bcc3f['_aiSource'],_0x20b084=_0x184501['batch']['operations']['length'];if(_0x5bcc3f['baseVersion']=_0x6fb452['model']['document']['version'],_0x5bcc3f['isDocumentOperation']=!0x0,_0x34092a['isMarkedRemoveOperation'](_0x5bcc3f)){const _0x3b5377=_0x1c310a(_0x5bcc3f['newRange'],_0x6fb452['model']);_0x5bc3c1['unshift']({'range':rt['fromRange'](_0x3b5377),'opAttributes':_0x53fea7(_0x5bcc3f),'aiSource':_0x356d18});}else{switch(_0x5bcc3f['type']){case'rename':{const _0x3126cb=_0x5bcc3f['oldName'],_0x5322d3=_0x5bcc3f['newName'];if(_0x3126cb==_0x5322d3)break;_0x184501['batch']['addOperation'](_0x5bcc3f),_0x6fb452['model']['applyOperation'](_0x5bcc3f);const _0x1b60f8='$elementName',_0xf2c4af=_0x5bcc3f['position'],_0x1a9839=_0x6fb452['model']['createRange'](_0xf2c4af,_0x6fb452['model']['createPositionAt'](_0xf2c4af['nodeAfter'],'end'));this['markAttributeChange'](_0x1a9839,_0x1b60f8,_0x3126cb,_0x5322d3,{..._0x53fea7(_0x5bcc3f),'groupId':_0x1c0f04()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xea32a2=_0x5bcc3f['oldValue'],_0x59f1ac=_0x5bcc3f['newValue'];if(_0xea32a2==_0x59f1ac)break;_0x184501['batch']['addOperation'](_0x5bcc3f),_0x6fb452['model']['applyOperation'](_0x5bcc3f);const _0x198f60=_0x5bcc3f['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x198f60))break;const _0x3d1d65=_0x1c310a(_0x5bcc3f['range'],_0x6fb452['model']);this['markAttributeChange'](_0x3d1d65,_0x198f60,_0xea32a2,_0x59f1ac,{..._0x53fea7(_0x5bcc3f),'groupId':_0x1c0f04()});break;}case'insert':{if(_0x184501['batch']['addOperation'](_0x5bcc3f),_0x6fb452['model']['applyOperation'](_0x5bcc3f),_0x56d612[_0x4a5fdd+0x1]&&'move'==_0x56d612[_0x4a5fdd+0x1]['type'])break;const _0x43fc93=_0x5bcc3f['position'],_0x15a18a=_0x5bcc3f['howMany'],_0x571846=_0x1c310a(_0x6fb452['model']['createRange'](_0x43fc93,_0x43fc93['getShiftedBy'](_0x15a18a)),_0x6fb452['model']);this['markInsertion'](_0x571846,null,{..._0x53fea7(_0x5bcc3f)});break;}case'split':{_0x184501['batch']['addOperation'](_0x5bcc3f),_0x6fb452['model']['applyOperation'](_0x5bcc3f);const _0xa6838f=_0x5bcc3f['splitPosition'],_0x17e4eb=_0x5bcc3f['moveTargetPosition'],_0x4aafaa=_0x6fb452['model']['createRange'](_0xa6838f,_0x17e4eb);this['markInsertion'](_0x4aafaa,null,{..._0x53fea7(_0x5bcc3f)});break;}case'move':case'remove':_0x184501['batch']['addOperation'](_0x5bcc3f),_0x6fb452['model']['applyOperation'](_0x5bcc3f);}_0x356d18&&_0x53d13f(_0x184501['batch'],_0x20b084,_0x356d18);}}for(const {range:_0x1f23fe,opAttributes:_0x1b1594,aiSource:_0x39c0f9}of _0x5bc3c1){const _0x38a02d=_0x184501['batch']['operations']['length'];_0x1f23fe['detach'](),this['markDeletion'](_0x1f23fe,null,{..._0x1b1594}),_0x39c0f9&&_0x53d13f(_0x184501['batch'],_0x38a02d,_0x39c0f9);}});}['_setSuggestionRange'](_0x399d71,_0x6cdb0f){const _0x2bd1ea=_0x399d71['getFirstMarker']();this['_model']['change'](_0x2b5280=>{_0x2b5280['updateMarker'](_0x2bd1ea,{'range':_0x6cdb0f});});}['_addThreadToSuggestion'](_0x51a057){const _0x29ce36=_0x51a057['id'],_0x10ebf3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x29ce36)||this['_commentsRepository']['addCommentThread']({'channelId':_0x10ebf3,'threadId':_0x29ce36,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5c6290=this['_commentsRepository']['getCommentThread'](_0x29ce36);_0x5c6290['unbind']('isRemovable'),_0x5c6290['isRemovable']=!0x1,_0x51a057['commentThread']=_0x5c6290;}['_checkSuggestionCorrectness'](_0xf7150c,_0x44da4c,_0x17208f,_0x3b1f77){if(_0xf7150c['type']!=_0x44da4c||_0xf7150c['subType']!=_0x17208f||_0xf7150c['creator']['id']!=_0x3b1f77)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x403c95('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5393b1,_0x486c90){const _0x13eb82=_0x5393b1['getFirstRange']();if(_0x486c90['isEqual'](_0x13eb82))_0x5393b1['removeMarkers']();else{if(_0x13eb82['containsRange'](_0x486c90)){const _0x50104e=this['_model']['createPositionAt'](_0x486c90['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5393b1,this['_model']['createRange'](_0x13eb82['start'],_0x50104e));const _0x5c302f=_0x1c0f04(),_0x91626c=_0x5393b1['creator']['id'],_0xd3a420=_0x5393b1['type']+':'+_0x5393b1['subType'];this['_setSuggestionData']({'id':_0x5c302f,'type':_0xd3a420,'createdAt':new Date(),'authorId':_0x91626c,'data':_0x5393b1['data'],'attributes':_0x5393b1['attributes']});const _0x1bb19b=this['_model']['createPositionAt'](_0x486c90['end']['parent'],'after'),_0x5bb7b7=this['_model']['createRange'](_0x1bb19b,_0x13eb82['end']);this['_addSuggestionMarker'](_0xd3a420,_0x5c302f,_0x91626c,_0x5bb7b7);}else{if(_0x13eb82['containsPosition'](_0x486c90['start'])){const _0x16c4c0=this['_model']['createPositionAt'](_0x486c90['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5393b1,this['_model']['createRange'](_0x13eb82['start'],_0x16c4c0));}else{const _0x15c43c=this['_model']['createPositionAt'](_0x486c90['end']['parent'],'after');this['_setSuggestionRange'](_0x5393b1,this['_model']['createRange'](_0x15c43c,_0x13eb82['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x417a7b){for(const {suggestion:_0x372f6f,meta:_0x5c00d1}of this['_findSuggestions'](_0x417a7b,'insertion')){if(!_0x5c00d1['isOwn'])continue;const _0x4f6a2e=_0x372f6f['getRanges']();for(const _0x38835c of _0x4f6a2e)if(!_0x417a7b['getDifference'](_0x38835c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f6655){return this['editor']['plugins']['get']('Users')['getUser'](_0x4f6655);}['_getExternalAuthor'](_0x536dbb){const _0x591dd6=this['editor']['plugins']['get']('Users'),_0x44f5df=_0x328459('external:'+_0x536dbb),_0x24e765=_0x591dd6['getUser'](_0x44f5df);return _0x24e765||_0x591dd6['addUser']({'id':_0x44f5df,'name':_0x536dbb});}['_createSuggestion'](_0x2a9d1b,_0xab2b96,_0x325df5,_0x2deff2,_0x7e5fc7,_0x31a745){const _0x3e2b67=this['_getAuthorFromId'](_0x2deff2);if(!_0x3e2b67)throw new _0x403c95('track-changes-user-not-found',this,{'authorId':_0x2deff2,'suggestionId':_0x325df5});const _0x2adc90=this['_suggestionFactory']['buildSuggestion'](_0x2a9d1b,_0xab2b96,_0x325df5,_0x3e2b67,_0x7e5fc7,_0x3333d9=>{this['_updateSuggestionData'](_0x325df5,{'attributes':_0x3333d9});const _0x1864c4=this['getSuggestion'](_0x325df5);this['_joinWithAdjacentSuggestions'](new Set([_0x1864c4])),this['_refreshSuggestionsChain'](new Set([_0x1864c4]));},_0x31a745);return this['listenTo'](_0x2adc90,'accept',()=>{this['_updateSuggestionData'](_0x325df5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2adc90,'discard',()=>{this['_updateSuggestionData'](_0x325df5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x325df5,_0x2adc90),this['_suggestionState']['set'](_0x2adc90,'notReady'),_0x2adc90;}['_breakSuggestionMarker'](_0x509546,_0x37c373,_0x75f50b){const _0x4dbea7=_0x509546['getFirstRange'](),_0x3d0906=_0x4dbea7['start'],_0x29629b=_0x4dbea7['end'];this['_setSuggestionRange'](_0x509546,this['_model']['createRange'](_0x3d0906,_0x37c373));const _0x5485b6=_0x1c0f04(),_0x37917a=_0x509546['creator']['id'],_0x439b63=_0x509546['type']+(_0x509546['subType']?':'+_0x509546['subType']:'');this['_setSuggestionData']({'id':_0x5485b6,'type':_0x439b63,'createdAt':new Date(),'authorId':_0x37917a,'originalSuggestionId':_0x509546['_originalSuggestionId']||_0x509546['id'],'attributes':_0x509546['attributes'],'data':_0x509546['data']});const _0x28644d=this['_getAttributeKey'](_0x509546);('formatBlock'==_0x509546['type']||_0x28644d&&this['_suggestionsConversion']['isBlockAttribute'](_0x28644d))&&(_0x75f50b=this['_model']['createPositionBefore'](_0x75f50b['parent'])),this['_addSuggestionMarker'](_0x439b63,_0x5485b6,_0x37917a,this['_model']['createRange'](_0x75f50b,_0x29629b));}['_findSuggestions'](_0x1c7147,_0x37b792=null){const _0x1e0e5b=[],_0x5727d5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1c7147)||(_0x1c7147=[_0x1c7147]);for(const _0x4499f7 of this['getSuggestions']()){if(!_0x4499f7['isInContent'])continue;if(_0x37b792&&_0x4499f7['type']!=_0x37b792)continue;let _0x3eda05=!0x1;for(const _0x5d3cc4 of _0x4499f7['getRanges']()){for(const _0x421daa of _0x1c7147){const _0x5299ff=_0x421daa['start']['isEqual'](_0x5d3cc4['end'])||_0x421daa['end']['isEqual'](_0x5d3cc4['start']);if(_0x5299ff||_0x421daa['getIntersection'](_0x5d3cc4)){const _0x41cd1c=_0x421daa['containsRange'](_0x5d3cc4)&&rn(this['_model']['schema'],_0x5d3cc4['start'],_0x421daa),_0xd64b0d=_0x5d3cc4['containsRange'](_0x421daa)&&rn(this['_model']['schema'],_0x421daa['start'],_0x5d3cc4);_0x1e0e5b['push']({'suggestion':_0x4499f7,'meta':{'isOwn':_0x5727d5==_0x4499f7['author'],'isNextTo':_0x5299ff,'isInsideObject':_0x41cd1c,'containsRangeInObject':_0xd64b0d}}),_0x3eda05=!0x0;break;}}if(_0x3eda05)break;}}return _0x1e0e5b;}['_addSuggestionMarker'](_0x4c23f4,_0x33f106,_0x30ede1,_0x4ad732,_0x54a024){this['_model']['change'](_0x49dfd3=>{let _0x24d359='suggestion:'+_0x4c23f4+':'+_0x33f106+':'+_0x30ede1;_0x54a024&&(_0x24d359=_0x24d359+':'+_0x54a024),_0x49dfd3['addMarker'](_0x24d359,{'range':_0x4ad732,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0xc00dc2){const _0x51f656=_0xc00dc2['previous'],_0x42eff0=_0xc00dc2['next'];_0xc00dc2['previous']=null,_0xc00dc2['next']=null,null!=_0x51f656&&_0x51f656['next']==_0xc00dc2&&(_0x51f656['next']=_0x42eff0),null!=_0x42eff0&&_0x42eff0['previous']==_0xc00dc2&&(_0x42eff0['previous']=_0x51f656),'ready'==this['_suggestionState']['get'](_0xc00dc2)&&(this['_suggestionState']['set'](_0xc00dc2,'removed'),this['fire']('suggestionUnloaded',_0xc00dc2,_0x51f656,_0x42eff0));}['_setSuggestionData'](_0x567998){const _0x5c3b67=_0x567998['id'],_0x25d07b=this['addSuggestionData'](_0x567998);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x55e7ab=this['editor']['plugins']['get']('PendingActions'),_0x4bf7f6=_0x25d07b['hasComments'],_0x327f32=_0x25d07b['subType']?_0x25d07b['type']+':'+_0x25d07b['subType']:_0x25d07b['type'],_0x2a3894=this['editor']['locale'],_0xfbc700=_0x55e7ab['add'](St(_0x2a3894,'PENDING_ACTION_SUGGESTION')),_0x49b65c={'id':_0x5c3b67,'type':_0x327f32,'hasComments':_0x4bf7f6,'data':_0x567998['data']||null,'originalSuggestionId':_0x567998['originalSuggestionId']||null,'attributes':_0x25d07b['attributes']};this['_adapter']['addSuggestion'](_0x49b65c)['then'](_0x344209=>{_0x25d07b['_saved']=!0x0,_0x55e7ab['remove'](_0xfbc700),_0x344209&&_0x344209['createdAt']&&(this['_suggestions']['get'](_0x5c3b67)['createdAt']=_0x344209['createdAt']);})['catch'](_0x4cd6d5=>{throw _0x5338e2('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x25d07b['discard']();}),_0x25d07b['stopListening'](),this['_suggestions']['delete'](_0x25d07b['id']),this['_suggestionState']['delete'](_0x25d07b),_0x4cd6d5;});}return _0x25d07b;}['_updateSuggestionData'](_0x449182,_0x23e1a6){const _0x204db6=this['editor']['plugins']['get']('PendingActions'),_0x3367e4=this['getSuggestion'](_0x449182);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3367e4['_saved']){const _0x4c745f=_0x204db6['add'](St(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x449182,_0x23e1a6)['then'](()=>{_0x204db6['remove'](_0x4c745f);});}else _0x3367e4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x449182,_0x23e1a6);});}}['_getSuggestionData'](_0x1b8cc3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x403c95('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1b8cc3);}['_handleNewSuggestionMarker'](_0xd5c6d3){const {id:_0x234055,type:_0x3997f2,subType:_0x5b27db,authorId:_0x446de4}=tt(_0xd5c6d3),_0x24dc1b=this['_suggestions']['get'](_0x234055)||this['_createSuggestion'](_0x3997f2,_0x5b27db,_0x234055,_0x446de4,{});switch(this['_checkSuggestionCorrectness'](_0x24dc1b,_0x3997f2,_0x5b27db,_0x446de4),this['_suggestionState']['get'](_0x24dc1b)){case'notReady':this['_getSuggestionData'](_0x234055)['then'](_0x3c1f2d=>{let _0x9f3728=Promise['resolve']();_0x3c1f2d['hasComments']&&(_0x9f3728=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x234055})),_0x9f3728['then'](()=>{this['addSuggestionData'](_0x3c1f2d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x24dc1b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x234055,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x24dc1b,'ready'),this['fire']('suggestionLoaded',_0x24dc1b);break;case'ready':this['fire']('suggestionChanged',_0x24dc1b);}return _0x24dc1b['addMarkerName'](_0xd5c6d3),_0x24dc1b;}['_refreshSuggestionsChain'](_0x1ab014){const _0x5ab58c=Array['from'](_0x1ab014),_0x21a68b=_0x5ab58c['filter'](_0x2f1e6e=>'attribute'==_0x2f1e6e['type']);this['_refreshAttributeSuggestionsChain'](_0x21a68b);const _0x42366d=_0x5ab58c['filter'](_0x3cff78=>!_0x3cff78['isMultiRange']&&'attribute'!=_0x3cff78['type']),_0x59e352=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x563947=>!_0x563947['isMultiRange']&&'attribute'!=_0x563947['type']),_0x579dc7=_0x59e352['filter'](_0x2bb6e3=>!_0x1ab014['has'](_0x2bb6e3)),_0x1a6d6b=new Map(_0x59e352['map'](_0x4f44ee=>[_0x4f44ee,this['_suggestionFactory']['getSuggestionCallback'](_0x4f44ee['type'],_0x4f44ee['subType'],'chain')])),_0x174941=new Map(_0x59e352['map'](_0x2992ca=>[_0x2992ca,_0x2992ca['getFirstRange']()])),_0x5c04b4=new Set(),_0x29de83=new Set();for(let _0x493dc3=0x0;_0x493dc3<_0x42366d['length'];_0x493dc3++)_0x4ce996(_0x42366d[_0x493dc3],_0x42366d,_0x493dc3+0x1);for(let _0xddc9c5=0x0;_0xddc9c5<_0x42366d['length'];_0xddc9c5++)_0x4ce996(_0x42366d[_0xddc9c5],_0x579dc7,0x0);const _0x50d8a8=new Set();for(let _0x1613ca=0x0;_0x1613ca<_0x42366d['length'];_0x1613ca++){const _0xfd4729=_0x42366d[_0x1613ca];!_0x29de83['has'](_0xfd4729)&&_0xfd4729['previous']&&(_0x50d8a8['add'](_0xfd4729['previous']),_0xfd4729['previous']['next']===_0xfd4729&&(_0xfd4729['previous']['next']=null),_0xfd4729['previous']=null),!_0x5c04b4['has'](_0xfd4729)&&_0xfd4729['next']&&(_0x50d8a8['add'](_0xfd4729['next']),_0xfd4729['next']['previous']===_0xfd4729&&(_0xfd4729['next']['previous']=null),_0xfd4729['next']=null);}function _0x4ce996(_0x11f2e3,_0x5b651b,_0x5a34cb){for(let _0x5eedf1=_0x5a34cb;_0x5eedf1<_0x5b651b['length'];_0x5eedf1++){const _0x26adb0=_0x3bbe3b(_0x11f2e3,_0x5b651b[_0x5eedf1]);_0x26adb0&&(_0x26adb0[0x0]['next']=_0x26adb0[0x1],_0x26adb0[0x1]['previous']=_0x26adb0[0x0],_0x5c04b4['add'](_0x26adb0[0x0]),_0x29de83['add'](_0x26adb0[0x1]));}}function _0x3bbe3b(_0x45d68c,_0x454c8e){if(_0x45d68c['author']['id']!==_0x454c8e['author']['id'])return null;const _0x4fa765=_0x1a6d6b['get'](_0x45d68c)(_0x45d68c,_0x454c8e,_0x174941['get'](_0x45d68c),_0x174941['get'](_0x454c8e));return _0x4fa765&&_0x1a6d6b['get'](_0x454c8e)(_0x45d68c,_0x454c8e,_0x174941['get'](_0x45d68c),_0x174941['get'](_0x454c8e))?_0x4fa765[0x1]['commentThread']&&_0x4fa765[0x1]['commentThread']['length']?null:_0x4fa765:null;}_0x50d8a8['size']&&this['_refreshSuggestionsChain'](_0x50d8a8);}['_refreshAttributeSuggestionsChain'](_0x26847f){if(0x0==_0x26847f['length'])return;const _0x124556=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34440b=>'attribute'==_0x34440b['type']&&_0x34440b['_isDataLoaded']),_0x2bdfb4=[],_0x22aca8=new Map();for(const _0x26e1af of _0x124556){const _0x5b93a7=_0x328459(_0x26e1af['attributes']);_0x22aca8['has'](_0x5b93a7)||(_0x22aca8['set'](_0x5b93a7,_0x2bdfb4['length']),_0x2bdfb4['push']([])),_0x2bdfb4[_0x22aca8['get'](_0x5b93a7)]['push'](_0x26e1af);}!(function(){_0x2bdfb4['sort']((_0x2559a1,_0x3f5784)=>{const _0x40b324=_0x2559a1[0x0]['createdAt'],_0x2d4fc2=_0x3f5784[0x0]['createdAt'];return _0x40b324==_0x2d4fc2?_0x2559a1[0x0]['attributes']['groupId']<_0x3f5784[0x0]['attributes']['groupId']?-0x1:0x1:_0x40b324<_0x2d4fc2?-0x1:0x1;});for(const _0x3a1cae of _0x2bdfb4)_0x3a1cae['sort']((_0x4b1c8c,_0x2fec59)=>_0x4b1c8c['id']<_0x2fec59['id']?-0x1:0x1);}());for(let _0x67a2d0=0x0;_0x67a2d0<_0x2bdfb4['length'];_0x67a2d0++){if(0x0==_0x2bdfb4[_0x67a2d0]['length'])continue;const _0xb2dc66=[];for(let _0x5531a4=_0x67a2d0+0x1;_0x5531a4<_0x2bdfb4['length'];_0x5531a4++)0x0!=_0x2bdfb4[_0x5531a4]['length']&&_0xe5a80b(_0x2bdfb4[_0x67a2d0],_0x2bdfb4[_0x5531a4])&&_0xb2dc66['push'](_0x5531a4);for(const _0x51010b of _0xb2dc66)_0x2bdfb4[_0x67a2d0]=_0x2bdfb4[_0x67a2d0]['concat'](_0x2bdfb4[_0x51010b]),_0x2bdfb4[_0x51010b]=[];}for(const _0x377c13 of _0x2bdfb4)for(let _0x7cd436=0x0;_0x7cd436<_0x377c13['length'];_0x7cd436++){const _0x1b2405=_0x377c13[_0x7cd436+0x1]||null;_0x377c13[_0x7cd436]['next']!==_0x1b2405&&(_0x377c13[_0x7cd436]['next']=_0x1b2405);}for(const _0x24eb6e of _0x2bdfb4)for(let _0x5bd7e2=0x0;_0x5bd7e2<_0x24eb6e['length'];_0x5bd7e2++){const _0x25a5b3=_0x24eb6e[_0x5bd7e2-0x1]||null;_0x24eb6e[_0x5bd7e2]['previous']!==_0x25a5b3&&(_0x24eb6e[_0x5bd7e2]['previous']=_0x25a5b3);}function _0xe5a80b(_0xd7bf35,_0x152a77){return(_0xd7bf35[0x0]['attributes']['groupId']===_0x152a77[0x0]['attributes']['groupId']||_0xd7bf35[0x0]['author']===_0x152a77[0x0]['author'])&&(!!function(_0x28f422,_0x20cc90){return!_0x28f422['hasComments']&&!_0x20cc90['hasComments']||(!_0x28f422['hasComments']||!_0x20cc90['hasComments'])&&(!!(_0x28f422['hasComments']&&_0x20cc90['createdAt']<_0x28f422['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x20cc90['hasComments']&&_0x28f422['createdAt']<_0x20cc90['commentThread']['comments']['get'](0x0)['createdAt']));}(_0xd7bf35[0x0],_0x152a77[0x0])&&(!!ct(lt(_0xd7bf35[0x0]['attributes'],['groupId','trackingSessionId']),lt(_0x152a77[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0xd7bf35[0x0]['attributes']['groupId']==_0x152a77[0x0]['attributes']['groupId']||_0xd7bf35[0x0]['attributes']['trackingSessionId']===_0x152a77[0x0]['attributes']['trackingSessionId']&&(!!_0xd7bf35['every'](_0x49e5f6=>_0x152a77['some'](_0x2eb526=>_0x49e5f6['getFirstRange']()['isEqual'](_0x2eb526['getFirstRange']())))&&_0x152a77['every'](_0x1b9c48=>_0xd7bf35['some'](_0xf37d78=>_0x1b9c48['getFirstRange']()['isEqual'](_0xf37d78['getFirstRange']())))))));}}['_joinWithAdjacentSuggestions'](_0x85cf78){const _0xae6593=Array['from'](_0x85cf78),_0x1a55ad=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4e0074=_0x1a55ad['filter'](_0x3d1719=>!_0x85cf78['has'](_0x3d1719)),_0x33059f=new Map(_0xae6593['map'](_0xed0e75=>[_0xed0e75,this['_suggestionFactory']['getSuggestionCallback'](_0xed0e75['type'],_0xed0e75['subType'],'join')])),_0x750c93=new Map(_0x1a55ad['map'](_0x5fa2e1=>[_0x5fa2e1,_0x5fa2e1['getRanges']()]));for(let _0x17b11e=0x0;_0x17b11e<_0xae6593['length'];_0x17b11e++)if(_0x908ec4(this,_0xae6593[_0x17b11e],_0xae6593,_0x17b11e+0x1))return!0x0;for(let _0x1ef4aa=0x0;_0x1ef4aa<_0xae6593['length'];_0x1ef4aa++)if(_0x908ec4(this,_0xae6593[_0x1ef4aa],_0x4e0074,0x0))return!0x0;return!0x1;function _0x908ec4(_0x281681,_0x5268c0,_0xf5278d,_0x2016a5){for(let _0x1dca12=_0x2016a5;_0x1dca12<_0xf5278d['length'];_0x1dca12++){const _0x5c74e1=_0xf5278d[_0x1dca12];if(_0x5c74e1['type']!==_0x5268c0['type']||_0x5c74e1['author']['id']!==_0x5268c0['author']['id']||_0x5c74e1['subType']!==_0x5268c0['subType'])continue;if(!mn(_0x5268c0,_0x5c74e1))continue;if('attribute'==_0x5268c0['type']&&_0x5268c0['data']['oldValue']!=_0x5c74e1['data']['oldValue'])continue;if('attribute'==_0x5268c0['type']&&_0x281681['_suggestionsConversion']['isBlockAttribute'](_0x5268c0['data']['key']))continue;if('formatBlock'==_0x5268c0['type']){const _0x58088c=_0x281681['editor']['model'],_0x1d0674=_0x5268c0['getContainedElement']();if(_0x1d0674&&(_0x58088c['schema']['isObject'](_0x1d0674)||_0x58088c['schema']['isLimit'](_0x1d0674)))continue;}const _0x3adf60=_0x33059f['get'](_0x5268c0),_0x2b6860=_0x750c93['get'](_0x5268c0),_0x9c4d3=_0x750c93['get'](_0x5c74e1),_0x488d74=_0x5268c0['commentThread']&&_0x5268c0['commentThread']['length'],_0x2ab9b1=_0x5c74e1['commentThread']&&_0x5c74e1['commentThread']['length'];if(!_0x488d74&&_0x3adf60(_0x9c4d3,_0x2b6860))return _0x281681['_joinSuggestions'](_0x5c74e1,_0x5268c0),_0x750c93['delete'](_0x5268c0),!0x0;if(!_0x2ab9b1&&_0x3adf60(_0x2b6860,_0x9c4d3))return _0x281681['_joinSuggestions'](_0x5268c0,_0x5c74e1),_0x750c93['delete'](_0x5c74e1),!0x0;}return!0x1;}}['_joinSuggestions'](_0x85fba8,_0x74c359){if(_0x85fba8['isMultiRange']){for(const _0x357790 of _0x74c359['getRanges']())_0x85fba8['addRange'](_0x357790);}else{const _0x3e5f04=_0x74c359['getFirstRange']()['end'];this['_setSuggestionRange'](_0x85fba8,this['_model']['createRange'](_0x85fba8['getFirstRange']()['start'],_0x3e5f04));}_0x74c359['removeMarkers']();}['_getMarkerAnnouncementText'](_0x536ca9,_0x764729,_0x20266c){const _0xfddd8b=_0x536ca9['startsWith']('format')||_0x536ca9['startsWith']('attribute')?'FORMATTING':_0x536ca9['toUpperCase']();return St(this['editor']['locale'],_0x764729+'_'+_0xfddd8b+'_SUGGESTION_ANNOUNCEMENT',_0x20266c);}['_initAriaMarkerChangeAnnouncements'](){const _0x44df3c=this['editor'];if(!_0x44df3c['ui'])return;const {ariaLiveAnnouncer:_0x2e61cb}=_0x44df3c['ui'];et(this['_model'],({left:_0xc20629,entered:_0x3201c3})=>{for(const _0x12d9a7 of _0xc20629){const {group:_0xa05efa,type:_0x237637}=tt(_0x12d9a7['name']);if('suggestion'===_0xa05efa){_0x2e61cb['announce'](this['_getMarkerAnnouncementText'](_0x237637,'LEAVE'));break;}}for(const _0x229571 of _0x3201c3){const {group:_0x4a82df,type:_0x491211}=tt(_0x229571['name']);if('suggestion'===_0x4a82df){_0x2e61cb['announce'](this['_getMarkerAnnouncementText'](_0x491211,'ENTER',_0x21d341(_0x210fd5)));break;}}});}['_processAttributeChanges'](_0x58b7e9){if(this['_recordAttributeSuggestions'])return!0x1;const _0x18a99c=this['editor'],_0x3e701d=_0x18a99c['model']['document']['differ']['getChanges']();if(0x0==_0x3e701d['length'])return!0x1;const _0x48122c=[],_0x519684=_0x3e701d['filter'](_0x4a1d4a=>'attribute'==_0x4a1d4a['type']),_0x3eb96e=_0x3e701d['filter'](_0x4a1dd1=>'insert'==_0x4a1dd1['type']&&'$text'!=_0x4a1dd1['name']),_0x4aa290=_0x3e701d['filter'](_0x1d99ba=>'remove'==_0x1d99ba['type']&&'$text'!=_0x1d99ba['name']);for(const _0x226681 of _0x519684)_0x48122c['push']({'key':_0x226681['attributeKey'],'newValue':_0x226681['attributeNewValue'],'oldValue':_0x226681['attributeOldValue'],'range':hn(_0x226681['range'],_0x18a99c['model'])});for(const _0x4b89ca of _0x3eb96e){const _0x46fbfc=_0x4aa290['find'](_0x199eca=>_0x199eca['position']['isEqual'](_0x4b89ca['position']));_0x46fbfc&&_0x48122c['push']({'key':en,'newValue':_0x4b89ca['name'],'oldValue':_0x46fbfc['name'],'range':_0x18a99c['model']['createRangeOn'](_0x4b89ca['position']['nodeAfter'])});}return 0x0!=_0x48122c['length']&&this['_reduceExistingSuggestions'](_0x58b7e9,_0x48122c);}['_processAttributeSuggestions'](_0x12a113){let _0x335176=!0x1;const _0x440f97=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1cea1b=>_0x1cea1b['data']['newRange']&&_0x1cea1b['name']['startsWith']('suggestion:attribute:'));for(const _0x565b1f of _0x440f97){const {subType:_0x310e2a,id:_0x21227d}=tt(_0x565b1f['name']),_0x26281b=_0x310e2a['split']('|')[0x0];for(const _0xe40210 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xe40210['id']!=_0x21227d&&'attribute'==_0xe40210['type']&&_0xe40210['data']&&_0xe40210['data']['key']==_0x26281b&&_0xe40210['getFirstRange']()['isIntersecting'](_0x565b1f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xe40210,_0x565b1f['data']['newRange'],_0x12a113),_0x335176=!0x0);}return _0x335176;}['recordAttributeChanges'](_0x4786c9){this['_recordAttributeSuggestions']=!0x0,_0x4786c9();}['_reduceExistingSuggestions'](_0x2ecaa1,_0x24c1a1){if(0x0==_0x24c1a1['length'])return!0x1;let _0x5b99e0=!0x1;for(const _0x1c5dee of _0x24c1a1){const _0x415b4d=this['_findSuggestions'](_0x1c5dee['range'],'attribute')['filter'](_0x12e8b4=>!_0x12e8b4['meta']['isNextTo'])['map'](_0x461735=>_0x461735['suggestion']),_0x5bf935=_0x328459({'newValue':_0x1c5dee['newValue']});_0x415b4d['filter'](_0x39f532=>{const [_0x1b2f4f,_0x170bae]=_0x39f532['subType']['split']('|');return _0x1b2f4f==_0x1c5dee['key']&&_0x170bae!=_0x5bf935;})['forEach'](_0x3d81c5=>{this['_reduceSuggestionAttributeRange'](_0x3d81c5,_0x1c5dee['range'],_0x2ecaa1),_0x5b99e0=!0x0;});}return _0x5b99e0;}['_reduceSuggestionAttributeRange'](_0x2700d4,_0xf424d0,_0x5b40b1){const _0x4a7108=_0x2700d4['getFirstRange']()['getDifference'](_0xf424d0);0x0!==_0x4a7108['length']?0x1!==_0x4a7108['length']?this['_breakSuggestionMarker'](_0x2700d4,_0xf424d0['start'],_0xf424d0['end']):this['_setSuggestionRange'](_0x2700d4,_0x4a7108[0x0]):_0x5b40b1['removeMarker'](_0x2700d4['getFirstMarker']());}},sn=class{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3febc9){this['_editor']=_0x3febc9,this['_model']=_0x3febc9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xc49bbb,_0x5daedd,_0x8e9fb0,_0x40baad,_0x1eae62,_0x1bb3cf,_0x465224){return new yt(this['_model'],{'type':_0xc49bbb,'subType':_0x5daedd,'id':_0x8e9fb0,'originalSuggestionId':_0x465224,'author':_0x40baad,'creator':_0x40baad,'attributes':_0x1eae62,'onAttributesChange':_0x1bb3cf,'onAccept':(..._0x446708)=>this['getSuggestionCallback'](_0xc49bbb,_0x5daedd,'accept')(..._0x446708),'onDiscard':(..._0xcb3fb7)=>this['getSuggestionCallback'](_0xc49bbb,_0x5daedd,'discard')(..._0xcb3fb7)});}['registerCustomCallback'](_0x5b80dd,_0x3d1948,_0x3b5a5b,_0x2de82a){const _0x6ac09a=_0x5b80dd+':'+_0x3d1948+':'+_0x3b5a5b;this['_customCallbacks']['set'](_0x6ac09a,_0x2de82a);}['getSuggestionCallback'](_0x46623d,_0x23ea8e,_0x2cb992){const _0x41bc6c=_0x46623d+':'+_0x23ea8e+':'+_0x2cb992;return this['_customCallbacks']['get'](_0x41bc6c)||this['_defaultCallbacks']['get'](_0x46623d+':'+_0x2cb992);}['_registerDefaultCallbacks'](){const _0x19b7c5=()=>!0x1,_0x2859de=_0x2e55cb=>{_0x2e55cb['sort']((_0x4563f9,_0x2dbf78)=>_0x4563f9['start']['isBefore'](_0x2dbf78['start'])?0x1:-0x1),this['_model']['change'](_0x2fe18b=>{for(const _0x2c32b7 of _0x2e55cb){let _0x2ed4eb;_0x2ed4eb=_0x2c32b7['end']['isAtEnd']&&_0x2c32b7['end']['parent']==_0x2c32b7['start']['nodeAfter']?_0x2fe18b['createSelection'](_0x2c32b7['start']['nodeAfter'],'on'):_0x2fe18b['createSelection'](_0x2c32b7),this['_model']['deleteContent'](_0x2ed4eb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x6022e4=(_0x55ecb2,_0x357c65)=>{_0x357c65&&this['_model']['change'](_0x1d9583=>{const {commandName:_0x41cb95,commandParams:_0x181bff=[]}=_0x357c65,_0x463c06=_0x55ecb2['map'](_0x561f4b=>(on(_0x561f4b)&&(_0x561f4b=this['_model']['createRange'](_0x561f4b['end'])),_0x561f4b))['filter'](_0x14489e=>'$graveyard'!==_0x14489e['root']['rootName']);if(_0x463c06['length']<0x1)return;const _0x448e28=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x57f4bb=>rt['fromRange'](_0x57f4bb));_0x1d9583['setSelection'](_0x463c06);for(const _0x1650eb of this['_editor']['commands']['commands']())_0x1650eb['refresh']();_0x181bff['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x41cb95,..._0x181bff);const _0x2b502a=_0x448e28['filter'](_0x4b3f5c=>'$graveyard'!=_0x4b3f5c['root']['rootName']);_0x2b502a['length']>0x0&&_0x1d9583['setSelection'](_0x2b502a);for(const _0x5606e5 of _0x448e28)_0x5606e5['detach']();});},_0x4e9c46=(_0x2a19f7,_0x199781)=>0x1==_0x2a19f7['length']&&0x1==_0x199781['length']&&_0x2a19f7[0x0]['end']['isEqual'](_0x199781[0x0]['start']),_0x51e53c=(_0x40a032,_0x5601cc,_0x45af56,_0x1128d4)=>fn(_0x40a032,_0x5601cc,_0x45af56,_0x1128d4)?[_0x40a032,_0x5601cc]:fn(_0x5601cc,_0x40a032,_0x1128d4,_0x45af56)?[_0x5601cc,_0x40a032]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x19b7c5),this['_defaultCallbacks']['set']('insertion:discard',_0x2859de),this['_defaultCallbacks']['set']('insertion:join',_0x4e9c46),this['_defaultCallbacks']['set']('insertion:chain',_0x51e53c),this['_defaultCallbacks']['set']('deletion:accept',_0x2859de),this['_defaultCallbacks']['set']('deletion:discard',_0x19b7c5),this['_defaultCallbacks']['set']('deletion:join',_0x4e9c46),this['_defaultCallbacks']['set']('deletion:chain',_0x51e53c),this['_defaultCallbacks']['set']('formatInline:accept',_0x6022e4),this['_defaultCallbacks']['set']('formatInline:discard',_0x19b7c5),this['_defaultCallbacks']['set']('formatInline:join',_0x4e9c46),this['_defaultCallbacks']['set']('formatInline:chain',_0x19b7c5),this['_defaultCallbacks']['set']('formatBlock:accept',_0x6022e4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x19b7c5),this['_defaultCallbacks']['set']('formatBlock:join',_0x4e9c46),this['_defaultCallbacks']['set']('formatBlock:chain',_0x19b7c5),this['_defaultCallbacks']['set']('attribute:accept',_0x19b7c5),this['_defaultCallbacks']['set']('attribute:discard',(_0x3b3c83,_0x272316)=>{if(!_0x272316)return;const _0x1c1852=this['_editor']['plugins']['get'](_0x2962ea);this['_model']['change'](_0xab0e2f=>{if('$elementName'==_0x272316['key'])for(const _0x26fc47 of _0x3b3c83){const _0x49089d=_0x26fc47['start']['nodeAfter'],_0xe91eae=_0x272316['oldValue'];_0xab0e2f['rename'](_0x49089d,_0xe91eae);}else{if(_0x1c1852['isBlockAttribute'](_0x272316['key'])){for(const _0x197ecd of _0x3b3c83)void 0x0!==_0x272316['oldValue']?_0xab0e2f['setAttribute'](_0x272316['key'],_0x272316['oldValue'],_0x197ecd['start']['nodeAfter']):_0xab0e2f['removeAttribute'](_0x272316['key'],_0x197ecd['start']['nodeAfter']);}else{for(const _0x150b45 of _0x3b3c83)_0x272316['oldValue']?_0xab0e2f['setAttribute'](_0x272316['key'],_0x272316['oldValue'],_0x150b45):_0xab0e2f['removeAttribute'](_0x272316['key'],_0x150b45);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x4e9c46);}};function rn(_0x1e05a5,_0x11ee4e,_0x2683e6){for(const _0x1f51d9 of _0x11ee4e['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1f51d9['root']==_0x1f51d9)return!0x1;if(!_0x2683e6['containsItem'](_0x1f51d9))return!0x1;if(_0x1e05a5['isObject'](_0x1f51d9)||_0x1e05a5['isLimit'](_0x1f51d9))return!0x0;}return!0x1;}function on(_0x369984){return _0x369984['end']['parent']==_0x369984['start']['nodeAfter']&&_0x369984['end']['isAtStart'];}function an(_0x37e5c1,_0x4bc92d,_0x4926b1,_0x549917){const _0x522157=_0x29fe69=>!_0x29fe69['item']['is']('$textProxy')&&!_0x549917['isObject'](_0x29fe69['item']),_0x2e01fa=_0x37e5c1['start']['getLastMatchingPosition'](_0x522157),_0xca40b2=_0x37e5c1['end']['getLastMatchingPosition'](_0x522157,{'direction':'backward'});return(!_0x37e5c1['start']['isEqual'](_0x2e01fa)||!_0x37e5c1['end']['isEqual'](_0xca40b2))&&(_0x2e01fa['isBefore'](_0xca40b2)?_0x4926b1['updateMarker'](_0x4bc92d,{'range':_0x4926b1['createRange'](_0x2e01fa,_0xca40b2)}):_0x4926b1['removeMarker'](_0x4bc92d),!0x0);}function cn(_0x21e4ed){return _0x328459(_0x21e4ed);}function ln(_0x3b72ce){const _0x14d40f=_0x3b72ce['start']['nodeAfter'];return _0x14d40f&&_0x14d40f['is']('element');}function un(_0x234359){return on(_0x234359)||function(_0x26c738){return _0x26c738['start']['parent']==_0x26c738['end']['nodeBefore']&&_0x26c738['start']['isAtEnd'];}(_0x234359);}function dn(_0x1c3c85,_0xdf9584){try{const _0x415ae2=_0x1c3c85['getRange']();for(const _0x11f8b4 of _0xdf9584)if(_0x1c3c85!==_0x11f8b4&&_0x415ae2&&_0x415ae2['isIntersecting'](_0x11f8b4['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function hn(_0x54935f,_0x572f8d){return null==_0x54935f['end']['nodeBefore']&&_0x54935f['end']['parent']==_0x54935f['start']['nodeAfter']?gn(_0x54935f['start']['nodeAfter'],_0x572f8d):_0x54935f;}function gn(_0x106998,_0x4d93bf){const _0x39b839=_0x4d93bf['schema']['isObject'](_0x106998)||_0x4d93bf['schema']['isSelectable'](_0x106998);return _0x4d93bf['createRange'](_0x4d93bf['createPositionAt'](_0x106998,'before'),_0x39b839?_0x4d93bf['createPositionAfter'](_0x106998):_0x4d93bf['createPositionAt'](_0x106998,'end'));}function fn(_0x1503b6,_0x237187,_0x14b2b1,_0x53cb90){return!!mn(_0x1503b6,_0x237187)&&_0x14b2b1['end']['isEqual'](_0x53cb90['start']);}function mn(_0x322511,_0x3011f2){if(!_0x322511['_isDataLoaded']||!_0x3011f2['_isDataLoaded'])return!0x1;const _0x268acb=new Set(Object['keys'](_0x322511['attributes'])),_0x2f162d=new Set(Object['keys'](_0x3011f2['attributes']));if(_0x268acb['delete']('groupId'),_0x2f162d['delete']('groupId'),0x0==_0x268acb['size']&&0x0==_0x2f162d['size'])return!0x0;if(_0x268acb['size']!=_0x2f162d['size'])return!0x1;const _0x106063={..._0x322511['attributes']},_0x35169b={..._0x3011f2['attributes']};return delete _0x106063['groupId'],delete _0x35169b['groupId'],JSON['stringify'](_0x106063)==JSON['stringify'](_0x35169b);}function En(_0x43a03a,_0xb144b0){const _0x21f862=Tn(_0x43a03a['attributes']),_0x1f23c5=Tn(_0xb144b0);if(!_0x43a03a['_isDataLoaded'])return!0x1;if(!ct(_0x21f862['@ai'],_0x1f23c5['@ai']))return!0x1;for(const _0x3b179a of Object['keys'](_0x1f23c5))if(!ct(_0x21f862[_0x3b179a],_0x1f23c5[_0x3b179a]))return!0x1;return!0x0;}function Tn(_0x550408){const _0x5de901=Object['assign']({},_0x550408);return delete _0x5de901['skipNestingCheck'],delete _0x5de901['tablePasteChainId'],_0x5de901;}function _n(_0x5e204a){return _0x5e204a['split']('|')[0x0];}const pn=/* #__PURE__ -- @preserve */
26
- _0x1c6439();var Ln=class extends pn{['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4144b4,_0x6d33c2,_0x38a1f6,_0x1b56c0){super(),this['model']=_0x6d33c2,this['view']=_0x38a1f6,this['commentThreadController']=_0x1b56c0,this['_editor']=_0x4144b4,this['_acceptCommand']=_0x4144b4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4144b4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1e252b,_0x419e39)=>_0x1e252b||_0x419e39),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5f2036=>_0x5f2036&&this['_editor']['model']['canEditAt'](_0x6d33c2['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x44d5cc=>_0x44d5cc&&this['_editor']['model']['canEditAt'](_0x6d33c2['getRanges']())),this['_pendingAction']=null,_0x38a1f6['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x38a1f6,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x38a1f6,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x38a1f6,'change:isDirty',()=>{_0x38a1f6['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 _0xfb0fca=St(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xfb0fca);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},In=class extends _0x341170{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4cd320,_0x392bbf,_0x493abc,_0xd73a54){super(_0x4cd320),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x453221(_0x4cd320,St(_0x4cd320,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x392bbf['authoredAt']),this['bind']('authoredAt')['to'](_0x392bbf),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x392bbf,'authoredAt',this,'descriptionParts',(_0x42d689,_0x5bdf16,_0x2c15fe)=>{const _0x12ff7e=_0x2c15fe['map'](_0x566b65=>pt(_0x566b65['content']))['join']('.\x20')+'.',_0x176f00=_0x392bbf['aiSource']&&'author'===_0xd73a54['showAISource']?_0xd73a54['aiAuthor']['name']:_0x392bbf['author']['name'],_0x109cbc=St(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x42d689-0x1,_0x176f00,_0x5bdf16?_0xd73a54['formatDateTime'](_0x5bdf16):'',new DOMParser()['parseFromString'](_0x12ff7e,'text/html')['body']['textContent']]);return _0x392bbf['aiSource']&&'pill'===_0xd73a54['showAISource']?_0x109cbc+'\x20'+St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x109cbc;}),this['focusables']=new _0x2d62a6(),this['focusTracker']=new _0x348918(),this['keystrokes']=new _0x164365(),this['focusCycler']=new _0x2b68a6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xd65c96=>_0xd65c96['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x392bbf,this['_localUser']=_0x493abc,this['_config']=_0xd73a54,_0xd73a54['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0xa5a80f(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x11bafb}=this['_config'];this['commentsListView']=new _0x11bafb(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',_0x24b94f=>_0x24b94f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3c8a86,_0xdf50ac)=>_0x3c8a86||!!_0xdf50ac);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x61dac0}=this['_config'],_0x5b71ca=new _0x61dac0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4893e3=_0x5b71ca['commentInputView'];return _0x5b71ca['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4893e3,'value',(_0x28fb21,_0x1e791f,_0x27fb54)=>!!_0x27fb54||_0x28fb21&&!_0x1e791f),_0x4893e3['on']('submit',(_0x1a8e70,_0x2c6c96)=>{this['fire']('addComment',_0x2c6c96),_0x4893e3['editor']['setData']('');}),_0x4893e3['on']('cancel',()=>this['focus']()),_0x4893e3['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5b71ca;}},An=class extends In{['suggestionView'];['_descriptionElement'];constructor(_0xb41ddd,_0x13e1e8,_0x141f61,_0x4aeb5d){super(_0xb41ddd,_0x13e1e8,_0x141f61,_0x4aeb5d),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x39dc2b=>_0x39dc2b&&_0x39dc2b[0x0]?_0x39dc2b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x37abbe,_0x315282)=>{let _0x9096e7='';for(const _0x5ddaf8 of _0x37abbe)_0x9096e7+='<p>'+pt(_0x5ddaf8['content'],_0x5ddaf8['color'])+'</p>';return _0x315282?_0x9096e7:nt(_0x9096e7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4aeb5d['SuggestionView'](_0xb41ddd,_0x13e1e8,{'formatDateTime':_0x4aeb5d['formatDateTime'],'showAISource':_0x4aeb5d['showAISource'],'aiAuthor':_0x4aeb5d['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x30a343=this['bindTemplate'],_0x1c6cd3=[this['suggestionView']];return this['commentsListView']&&_0x1c6cd3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1c6cd3['push'](this['commentThreadInputView']),_0x1c6cd3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x30a343['if']('isActive','ck-suggestion-wrapper--active'),_0x30a343['to']('type',_0x8727df=>'ck-suggestion-'+_0x8727df),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x30a343['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1c6cd3};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},bn=class extends _0x341170{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3d76b5,_0x17c43e,_0x21e477){super(_0x3d76b5),this['_model']=_0x17c43e,this['_config']=_0x21e477,this['set']('description',''),this['bind']('authoredAt')['to'](_0x17c43e),this['acceptButton']=this['_createButton'](St(_0x3d76b5,'Accept\x20suggestion'),_0x5bafee,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](St(_0x3d76b5,'Discard\x20suggestion'),_0x48ae6f,'ck-suggestion--discard','discardSuggestion','sw');const _0x58d1ae=!!_0x17c43e['aiSource']&&'author'===_0x21e477['showAISource'],_0x2b9a77=_0x58d1ae?this['_createAIUser'](_0x21e477['aiAuthor']):_0x17c43e['author'],_0x653e80=_0x58d1ae&&!_0x21e477['aiAuthor']['avatar']?_0x188a57:void 0x0;this['userView']=new _0x3ba6de(_0x3d76b5,_0x2b9a77,this['getUserViewNotificationText'](),_0x653e80),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2d62a6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x348918(),this['keystrokes']=new _0x164365(),this['focusCycler']=new _0x2b68a6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x20daa3=>_0x20daa3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2f242a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2f242a['innerHTML']=this['description'],this['on']('change:description',(_0x13027f,_0x28f14e,_0x4a819f)=>{_0x2f242a['innerHTML']=_0x4a819f;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x48c18b=this['bindTemplate'],_0x3c89a2=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x48c18b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x48c18b['to']('authoredAt',_0x13d811=>this['_config']['formatDateTime'](_0x13d811))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x3c89a2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x1905f7=new _0x3bac69(this['locale']);_0x1905f7['set']({'icon':_0x42dd33,'label':St(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':St(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x3c89a2['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x1905f7]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3c89a2}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):St(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?St(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):St(this['locale'],'EXTERNAL_SUGGESTION');}['_createAIUser'](_0x205b32){return new _0x38c04d({'id':'ck-ai-author','name':_0x205b32['name'],'avatar':_0x205b32['avatar'],'color':new _0x1ac64f(0x0)});}['_createButton'](_0x22c67c,_0x5e9a29,_0xd2ad26,_0x5c1d9e,_0x3663c9){const _0x311984=new _0x5ae44f(this['locale']);return _0x311984['set']({'label':_0x22c67c,'icon':_0x5e9a29,'tooltip':!0x0,'tooltipPosition':_0x3663c9}),_0x311984['extendTemplate']({'attributes':{'class':_0xd2ad26}}),_0x311984['on']('execute',()=>{this['fire'](_0x5c1d9e,this['_model']['id']);}),_0x311984;}['_setupKeyboardNavigation'](){const _0x47ffa4=this['element'];this['keystrokes']['listenTo'](_0x47ffa4);for(const _0x365eab of this['focusables'])this['focusTracker']['add'](_0x365eab['element']),this['keystrokes']['listenTo'](_0x365eab['element']);this['keystrokes']['set']('enter',(_0x13940a,_0x469bc4)=>{_0x47ffa4===_0x13940a['target']&&(this['focusCycler']['focusFirst'](),_0x469bc4());}),this['keystrokes']['set']('esc',(_0x148226,_0xf966c1)=>{_0x47ffa4!==_0x148226['target']&&(this['focus'](),_0xf966c1());});}},kn=class extends _0x449cd5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[nn,_0x31fa66,_0x29457b,_0x47fdc7,_0x2c98bc];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x58c955){super(_0x58c955),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x21cf70=this['editor']['config'];_0x21cf70['define']('trackChanges.SuggestionThreadView',An),_0x21cf70['define']('trackChanges.SuggestionView',bn),_0x21cf70['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x21cf70['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x537864,_0x3627dc){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x331945,_0x2cac58]of this['_handleControllerBuffer']){const _0x399251=this['_suggestionToController']['has'](_0x331945);_0x399251||_0x2cac58?_0x399251&&_0x2cac58&&this['_destroyController'](_0x331945):this['_initializeController'](_0x331945);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x2c98bc)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x537864,_0x3627dc);}['init'](){const _0x1c624e=this['editor'],_0x23bddb=_0x1c624e['plugins']['get'](nn),_0x252604=_0x1c624e['plugins']['get'](_0x47fdc7),_0x3e4be7=_0x1c624e['plugins']['get'](_0x2c98bc),_0x72fbb9=_0x1c624e['plugins']['get'](_0x29457b);this['_addUIComponentsToFactory'](),_0x3e4be7['addSourceCollector'](()=>{const _0x413760=[];for(const [_0x23132e,_0x3deb44]of Array['from'](this['_suggestionToController'])){const _0x292c67=_0x23132e['getAllAdjacentSuggestions'](),_0xa837b1=[];for(const _0x4c97a8 of _0x292c67){if(!_0x4c97a8['isInContent'])continue;if(_0x4c97a8['isMultiRange']){_0xa837b1['push'](..._0x4c97a8['getRanges']());continue;}const _0x16fa83=_0x4c97a8['getFirstRange']();if(_0xa837b1['length']>0x0){const _0x152f03=_0xa837b1[0x0]['getJoined'](_0x16fa83);if(_0x152f03){_0xa837b1[0x0]=_0x152f03;continue;}}_0xa837b1['push'](_0x16fa83);}_0x413760['push']([_0x3deb44['view'],_0xa837b1]);}return _0x413760;}),this['listenTo'](_0x23bddb,'suggestionLoaded',(_0x4428f8,_0x1957d9)=>{this['listenTo'](_0x1957d9,'change:previous',(_0x2d2790,_0x54642a,_0x24d6a6,_0x3f474f)=>{_0x1957d9['isInContent']&&(null==_0x24d6a6?(this['_updateController'](_0x3f474f['head']),this['_handleSuggestionControllerDelayed'](_0x1957d9,!0x1)):(this['_updateController'](_0x24d6a6['head']),null==_0x3f474f&&this['_handleSuggestionControllerDelayed'](_0x1957d9,!0x0)));}),null!==_0x1957d9['previous']?this['_updateController'](_0x1957d9['head']):this['_handleSuggestionControllerDelayed'](_0x1957d9,!0x1);}),this['listenTo'](_0x23bddb,'suggestionUnloaded',(_0x2d51e4,_0x3621e1,_0x48b227)=>{this['stopListening'](_0x3621e1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3621e1),this['_suggestionToController']['has'](_0x3621e1)&&this['_destroyController'](_0x3621e1),_0x48b227&&this['_updateController'](_0x48b227['head']);}),this['listenTo'](_0x23bddb,'suggestionChanged',(_0x3bb4a4,_0x3fa8d9)=>{this['_updateController'](_0x3fa8d9);}),this['listenTo'](_0x252604,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x72fbb9,'addComment',(_0x43c86e,{threadId:_0x2218f8,isFromAdapter:_0x52a5e4})=>{if(_0x52a5e4||!_0x23bddb['hasSuggestion'](_0x2218f8))return;const _0x56cd50=_0x23bddb['getSuggestion'](_0x2218f8);this['_suggestionToController']['get'](_0x56cd50)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x37fdea=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a1931;for(const _0x33e839 in _0x37fdea){const _0x1e81a7=_0x33e839,_0x3bd12a=_0x37fdea[_0x1e81a7];if('trackChangesLicenseKeyValid'==_0x3bd12a||'trackChangesLicenseKeyInvalid'==_0x3bd12a||'trackChangesLicenseKeyExpired'==_0x3bd12a||'trackChangesLicenseKeyDomainLimit'==_0x3bd12a||'trackChangesLicenseKeyNotAllowed'==_0x3bd12a||'trackChangesLicenseKeyEvaluationLimit'==_0x3bd12a||'trackChangesLicenseKeyUsageLimit'==_0x3bd12a){delete _0x37fdea[_0x1e81a7],_0x5a1931=_0x3bd12a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5a1931&&_0x37fdea['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5a1931&&_0x37fdea['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5a1931&&_0x37fdea['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5a1931&&_0x37fdea['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5a1931&&_0x37fdea['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5a1931&&_0x37fdea['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5b4437){const _0x580638=this['_suggestionToController']['get'](_0x5b4437);return _0x580638&&this['editor']['plugins']['get'](_0x47fdc7)['getByInnerView'](_0x580638['view'])||null;}['getSuggestionForAnnotation'](_0x44c129){const _0xc3eb1c=this['_viewToController']['get'](_0x44c129['innerView']);return _0xc3eb1c?_0xc3eb1c['model']:null;}['_refreshActiveMarkers'](){const _0x4efbc1=this['editor']['plugins']['get'](_0x47fdc7),_0x59508a=this['editor']['plugins']['get'](nn),_0x3ab9cb=Array['from'](_0x4efbc1['activeAnnotations'],_0x446367=>_0x446367['innerView'])['filter'](_0x28f98d=>this['_viewToController']['has'](_0x28f98d)),_0x2d8006=[];for(const _0x379aa3 of _0x3ab9cb){const _0x3ec648=this['_viewToController']['get'](_0x379aa3)['model']['getAllAdjacentSuggestions']();_0x2d8006['push'](..._0x3ec648['reduce']((_0x49a0c6,_0x53494f)=>[..._0x49a0c6,..._0x53494f['getMarkerNames']()],[]));}_0x59508a['activeMarkers']=_0x2d8006;}['_addUIComponentsToFactory'](){const _0x13f511=this['editor'],_0x112a7b=_0x13f511['locale'],_0x461364=St(_0x112a7b,'Track\x20changes'),_0x150520=new _0x96fb93([{'type':'switchbutton','model':new _0x5a9814({'withText':!0x0,'isToggleable':!0x0,'label':_0x461364,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5a9814({'withText':!0x0,'label':St(_0x112a7b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a9814({'withText':!0x0,'label':St(_0x112a7b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a9814({'withText':!0x0,'label':St(_0x112a7b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5a9814({'withText':!0x0,'label':St(_0x112a7b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x13f511['plugins']['has']('TrackChangesPreview')&&_0x150520['addMany']([{'type':'separator'},{'type':'button','model':new _0x5a9814({'withText':!0x0,'label':St(_0x112a7b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x5bb78a of _0x150520)if(Cn(_0x5bb78a)){const _0x59e79a=_0x13f511['commands']['get'](_0x5bb78a['model']['commandName']);_0x5bb78a['model']['bind']('isOn','isEnabled')['to'](_0x59e79a,'value','isEnabled');}_0x13f511['ui']['componentFactory']['add']('trackChanges',_0x15d421=>this['_createToolbarButton'](_0x15d421,_0x150520,_0x461364)),_0x13f511['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3b8238=>this['_createMenuBarMenu'](_0x3b8238,_0x150520,_0x461364));}['_createToolbarButton'](_0x2a0b10,_0x34fc68,_0xb4e98a){const _0x4bd1ac=_0x2a87d2(_0x2a0b10,_0x4ed210),_0x101b95=this['editor']['commands']['get']('trackChanges');_0x4bd1ac['buttonView']['set']({'tooltip':_0xb4e98a,'label':_0xb4e98a,'icon':_0x149db9}),_0x4bd1ac['buttonView']['bind']('isOn')['to'](_0x101b95,'value'),_0x4bd1ac['buttonView']['on']('execute',()=>{_0x101b95['execute'](),this['editor']['editing']['view']['focus']();}),_0x4106d7(_0x4bd1ac,_0x34fc68,{'role':'menu'});const _0x536483=[];for(const _0xfd90a7 of _0x34fc68)Cn(_0xfd90a7)&&_0x536483['push'](this['editor']['commands']['get'](_0xfd90a7['model']['commandName']));const _0x5e0863=_0x4bd1ac['buttonView'];return _0x5e0863['actionView']['unbind']('isEnabled'),_0x5e0863['arrowView']['unbind']('isEnabled'),_0x5e0863['actionView']['bind']('isEnabled')['to'](_0x101b95,'isEnabled'),_0x5e0863['arrowView']['bind']('isEnabled')['toMany'](_0x536483,'isEnabled',(..._0x433704)=>_0x433704['some'](_0x503b8a=>_0x503b8a)),_0x4bd1ac['on']('execute',_0x3ec83b=>{this['editor']['execute'](_0x3ec83b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4bd1ac;}['_createMenuBarMenu'](_0x54ede8,_0x265773,_0xb929e8){const _0x2dcfdd=new _0x13a0ed(_0x54ede8),_0x40e316=this['editor']['commands']['get']('trackChanges');_0x2dcfdd['buttonView']['set']({'label':_0xb929e8,'icon':_0x149db9});const _0xdde0a=new _0x1aa70f(_0x54ede8);for(const _0x390459 of _0x265773){if('separator'==_0x390459['type']){_0xdde0a['items']['add'](new _0x59f2ec(_0x54ede8));continue;}const _0x4dc6af=new _0x252db8(_0x54ede8,_0x2dcfdd),_0x1956d1=new _0x107b4c(_0x54ede8),_0x15d515=_0x390459['model'];_0x1956d1['bind'](...Object['keys'](_0x15d515))['to'](_0x15d515),_0x1956d1['delegate']('execute')['to'](_0x2dcfdd),_0x1956d1['on']('execute',()=>{this['editor']['execute'](_0x15d515['commandName']),this['editor']['editing']['view']['focus']();}),_0x4dc6af['children']['add'](_0x1956d1),_0xdde0a['items']['add'](_0x4dc6af);}return _0x2dcfdd['bind']('isEnabled')['to'](_0x40e316,'isEnabled'),_0x2dcfdd['panelView']['children']['add'](_0xdde0a),_0x2dcfdd;}['_initializeController'](_0x5b02ae){const _0x213677=this['editor'],_0xe344a4=_0x213677['config'],_0x1c3f4e=_0x213677['plugins']['get'](_0x47fdc7),_0x3db6c0=_0x213677['plugins']['get'](_0x29457b),_0x5db509=_0x213677['plugins']['get'](_0x2c98bc),_0xffdc71=_0x213677['plugins']['get'](_0x31fa66)['me'],_0x20b3e7=_0xe344a4['get']('trackChanges')['SuggestionThreadView'],_0x28cdbd=_0xe344a4['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2110ba,CommentThreadInputView:_0x5b3d36}=_0x213677['plugins']['get']('CommentsUI');let _0x21fad1,_0x101c7a,_0x51c009;this['_annotationViews']['has'](_0x5b02ae['id'])?(_0x101c7a=this['_annotationViews']['get'](_0x5b02ae['id']),_0x21fad1=_0x101c7a['mainView']):(_0x21fad1=new _0x20b3e7(_0x213677['locale'],_0x5b02ae,_0xffdc71,{'disableComments':this['_disableComments'],'editorConfig':{..._0xe344a4['get']('comments.editorConfig'),'licenseKey':_0xe344a4['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xe344a4['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xe344a4['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xe344a4['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x487ee3(_0xe344a4['get']('locale'),_0x213677['locale']),'CommentView':_0xe344a4['get']('comments')['CommentView'],'CommentsListView':_0x2110ba,'CommentThreadInputView':_0x5b3d36,'SuggestionView':_0x28cdbd,'showAISource':_0xe344a4['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xe344a4['get']('trackChanges.aiAuthor'),'name':_0xe344a4['get']('trackChanges.aiAuthor')?.['name']||St(_0x213677['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x21fad1['suggestionView']['acceptButton']['on']('execute',()=>{_0x213677['editing']['view']['focus']();}),_0x21fad1['suggestionView']['discardButton']['on']('execute',()=>{_0x213677['editing']['view']['focus']();}),_0x101c7a=_0x1c3f4e['createAnnotationView'](this['editor']['locale'],_0x21fad1),_0x101c7a['bind']('isDirty')['to'](_0x21fad1,'isDirty'),_0x101c7a['bind']('length')['to'](_0x21fad1),_0x101c7a['bind']('type')['to'](_0x21fad1,'type',_0x127e7a=>'suggestion-'+_0x127e7a),_0x21fad1['on']('escape',()=>{_0x51c009['fire']('escape');}),this['_annotationViews']['set'](_0x5b02ae['id'],_0x101c7a));const _0x523f07=_0x3db6c0['createCommentThreadController'](_0x5b02ae['commentThread'],_0x21fad1),_0x395a5d=new Ln(_0x213677,_0x5b02ae,_0x21fad1,_0x523f07),_0x107bd9=_0x5b02ae['getAllAdjacentSuggestions']()['filter'](_0x202ccc=>_0x202ccc['isInContent']);_0x21fad1['descriptionParts']=_0x213677['plugins']['get'](nn)['descriptionFactory']['getDescriptions'](_0x107bd9),this['_suggestionToController']['set'](_0x5b02ae,_0x395a5d),this['_viewToController']['set'](_0x21fad1,_0x395a5d);const _0x4a661a=()=>{const _0x5728bf=[],_0x11ffc7=_0x5b02ae['getAllAdjacentSuggestions']()['filter'](_0x49202d=>_0x49202d['isInContent']);for(const _0x4dc281 of _0x11ffc7)_0x5728bf['push'](..._0x4dc281['getMarkers']());return _0x23a1bb(_0x213677['editing'],_0x5728bf);};_0x51c009=_0x1c3f4e['createAnnotation']({'view':_0x101c7a,'target':_0x4a661a,'type':()=>'suggestion-'+_0x395a5d['view']['type'],'isVisible':!!_0x4a661a()}),_0x3db6c0['_bindAnnotationToEditors'](_0x21fad1,_0x51c009),_0x1c3f4e['add'](_0x51c009),_0x5db509['registerAnnotation'](_0x51c009);}['_destroyController'](_0x1733f5){const _0x555d83=this['editor']['plugins']['get'](_0x29457b),_0x59ea73=this['editor']['plugins']['get'](_0x47fdc7),_0x3a9198=this['_suggestionToController']['get'](_0x1733f5),_0x143a8b=_0x3a9198['view'],_0x1a5012=_0x59ea73['getByInnerView'](_0x143a8b);_0x555d83['_unbindEditors'](_0x143a8b),_0x1a5012&&_0x59ea73['remove'](_0x1a5012),this['_suggestionToController']['delete'](_0x1733f5),this['_viewToController']['delete'](_0x143a8b),_0x3a9198['destroy']();}['_updateController'](_0x3ef4cc){if(!_0x3ef4cc['isInContent']||!this['_suggestionToController']['has'](_0x3ef4cc))return;const _0x4406a0=this['editor']['plugins']['get'](nn),_0x204229=this['_suggestionToController']['get'](_0x3ef4cc),_0x1b4602=_0x3ef4cc['getAllAdjacentSuggestions']();_0x204229['view']['descriptionParts']=_0x4406a0['descriptionFactory']['getDescriptions'](_0x1b4602);}['destroy'](){for(const _0x50558e of this['_suggestionToController']['keys']())this['_destroyController'](_0x50558e);for(const _0x317dac of this['_annotationViews']['values']())_0x317dac['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Cn(_0x5de119){return'model'in _0x5de119;}var Rn=class extends _0x449cd5{static get['requires'](){return[nn,kn,_0x522ebb];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1bca80){this['editor']['plugins']['get'](nn)['adapter']=_0x1bca80;}get['adapter'](){return this['editor']['plugins']['get'](nn)['adapter'];}['addSuggestion'](_0x1e5390){return this['editor']['plugins']['get'](nn)['addSuggestionData'](_0x1e5390);}['getSuggestions']({skipNotAttached:_0x25cf4d=!0x1,toJSON:_0x85404=!0x1}={}){return this['editor']['plugins']['get'](nn)['getSuggestions']({'skipNotAttached':_0x25cf4d,'toJSON':_0x85404});}['getSuggestion'](_0x34fb6d){return this['editor']['plugins']['get'](nn)['getSuggestion'](_0x34fb6d);}};const Nn=['Pagination'];var yn=class extends _0x449cd5{static get['requires'](){return[nn];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x292b68=this['editor'];if(_0x292b68['config']['define']('trackChangesData.editorCreator',_0x39cc54=>{const _0x23b7bc=_0x292b68['model']['document']['getRootNames']()['reduce']((_0x39bd59,_0x242f83)=>(_0x39bd59[_0x242f83]='',_0x39bd59),{});return _0x292b68['constructor']['create'](_0x23b7bc,_0x39cc54);}),'function'!=typeof _0x292b68['config']['get']('trackChangesData')['editorCreator'])throw new _0x403c95('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x28d1a4){return On(this['editor'],!0x0,_0x28d1a4);}['getDataWithDiscardedSuggestions'](_0x3b9f9c){return On(this['editor'],!0x1,_0x3b9f9c);}},Sn=class extends _0x449cd5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x435582){super(_0x435582),this['result']='end',_0x435582['editing']['view']['_overlayModeHint']='auto',_0x435582['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}['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 Mn(_0x3e1a66){return void 0x0!==_0x3e1a66['getRootsAttributes'];}async function On(_0x1f6df1,_0x1df27d,_0x2f5903){const _0x31fcb6=_0x38df16(_0x1f6df1,Nn);if(_0x31fcb6['plugins']['push'](nn,Sn),Mn(_0x1f6df1)){_0x31fcb6['roots']=Object['create'](null);for(const _0x4d0002 of _0x1f6df1['model']['document']['getRootNames']())_0x31fcb6['roots'][_0x4d0002]={'modelAttributes':_0x1f6df1['getRootAttributes'](_0x4d0002)};}const _0x590985=document['createDocumentFragment'](),_0x2d3ac2=_0x1f6df1['config']['get']('trackChangesData')['editorCreator'],_0x42e3dd=await _0x2d3ac2(_0x31fcb6,()=>function(_0x47fb78){const _0x22a8d5=document['createElement']('div');return _0x47fb78['appendChild'](_0x22a8d5),_0x22a8d5;}(_0x590985));!function(_0x2126e5,_0x478f0d){const _0x1b40d7=_0x2126e5['model']['document']['getRootNames']()['reduce']((_0x4e47f5,_0x3509ff)=>(_0x4e47f5[_0x3509ff]=_0x2126e5['data']['get']({'rootName':_0x3509ff}),_0x4e47f5),{}),_0x4146c1=_0x2126e5['plugins']['get']('Users')['users']['map'](_0x307c3e=>({'id':_0x307c3e['id'],'name':_0x307c3e['name']})),_0x120ea6=_0x2126e5['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1fd260=_0x2126e5['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3a9f91=_0x478f0d['plugins']['get']('Users'),_0x306e60=_0x478f0d['plugins']['get']('TrackChangesEditing'),_0x17ffca=_0x478f0d['plugins']['get']('CommentsRepository');for(const _0x2db71b of _0x17ffca['getCommentThreads']())_0x2db71b['remove']();for(const _0x338de9 of _0x4146c1)_0x3a9f91['getUser'](_0x338de9['id'])||_0x3a9f91['addUser'](_0x338de9);_0x3a9f91['me']||_0x3a9f91['useAnonymousUser']();for(const _0x1b0cd1 of _0x1fd260)_0x17ffca['addCommentThread'](_0x1b0cd1);for(const _0x8f6d64 of _0x120ea6)_0x306e60['addSuggestionData'](_0x8f6d64);_0x478f0d['data']['set'](_0x1b40d7);}(_0x1f6df1,_0x42e3dd),_0x42e3dd['execute'](_0x1df27d?'acceptAllSuggestions':'discardAllSuggestions');const _0x2ad7fc=Mn(_0x42e3dd)?_0x42e3dd['getFullData'](_0x2f5903):_0x42e3dd['data']['get'](_0x2f5903);return await _0x42e3dd['destroy'](),_0x2ad7fc;}var wn=class extends _0x341170{['options'];constructor(_0x3e6303,_0x2315d8){super(_0x3e6303),this['options']=_0x2315d8,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x22c194,_0x1c0513){if(!this['element'])return;const _0x3cc712=[];for(const [_0x36c4b2,_0x15d676]of _0x22c194){const _0x117297=document['createElement']('div');_0x117297['setAttribute']('data-ck-root-name',_0x36c4b2),_0x117297['className']=_0x15d676['classes']+'\x20ck-track-changes-preview__root-container',_0x117297['innerHTML']=_0x15d676['content'],_0x3cc712['push'](_0x117297);}_0x1c0513(this['element'],_0x3cc712),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Fn=class extends _0x22ac6a{constructor(_0x483c3d){super(_0x483c3d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x148fb7=this['editor'],_0x16f012=_0x148fb7['locale'],_0xb014b1=_0x148fb7['plugins']['get']('Dialog');let _0x25dc0c;const _0x12cddf=function(_0x3affb5){const _0x11b720={};if('editables'in _0x3affb5['ui']['view']){for(const [_0x33d2a7,_0x52427f]of Object['entries'](_0x3affb5['ui']['view']['editables']))_0x11b720[_0x33d2a7]=_0x52427f['element'];}else _0x11b720[_0x3affb5['model']['document']['getRootNames']()[0x0]]=_0x3affb5['ui']['view']['editable']['element'];return _0x11b720;}(_0x148fb7),_0x1e5ec7=function(_0x4c3f27){let _0x1e8b38=0x0;for(const _0x4d5a46 of Object['values'](_0x4c3f27))_0x1e8b38=Math['max'](_0x1e8b38,_0x4d5a46['getBoundingClientRect']()['width']);let _0x165c8b=0x0;for(const _0x58c2de of Object['values'](_0x4c3f27))_0x165c8b+=_0x58c2de['getBoundingClientRect']()['height'];const _0x6607d9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x1e8b38,'height':Math['min'](_0x165c8b,_0x6607d9)};}(_0x12cddf);_0xb014b1['show']({'id':'finalContentPreview','title':St(_0x16f012,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new wn(_0x16f012,{'dialogRects':_0x1e5ec7}),'onHide':()=>{_0x25dc0c['detachFromDom']();},'onShow':()=>{_0x148fb7['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x177fe4=>{const _0x3b26d4=this['_standarizeRootsData'](_0x177fe4,_0x148fb7,_0x12cddf);_0xb014b1['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3b26d4,_0x148fb7['config']['get']('trackChanges.preview.renderFunction'));}),_0x25dc0c=new _0x469b4b(_0x16f012,[_0xb014b1['view']]),_0x25dc0c['attachToDom'](),_0x25dc0c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x148fb7['once']('destroy',()=>{_0x25dc0c['detachFromDom']();});const _0x43b97d=_0xb014b1['view']['headerView']['class'];_0xb014b1['view']['headerView']['class']=_0x43b97d?_0x43b97d+'\x20ck-reset_all':'ck-reset_all',_0xb014b1['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xb014b1['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x322b30=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x8bea66=_0x322b30['previewMode'],_0x5c5340={};if('$labels'===_0x8bea66){for(const _0x2a11ed of _0x322b30['getMergeFieldsIds']())_0x5c5340[_0x2a11ed]=_0x322b30['getLabel'](_0x2a11ed)||_0x2a11ed;}else{const _0x2f8aca='$defaultValues'===_0x8bea66?_0x322b30['getDefaultValues']():_0x322b30['getDataSetValues'](_0x8bea66,!0x0);for(const _0xb4d133 of Object['entries'](_0x2f8aca)){const [_0x5a281e,_0x1c884a]=_0xb4d133;_0x5c5340[_0x5a281e]=null!==_0x1c884a?_0x1c884a:_0x322b30['getLabel'](_0x5a281e)||_0x5a281e;}}return{'mergeFieldsData':_0x5c5340};}['_standarizeRootsData'](_0x495f7c,_0x144b89,_0x152f67){let _0x4cec70;_0x4cec70='string'==typeof _0x495f7c?{[_0x144b89['model']['document']['getRootNames']()[0x0]]:_0x495f7c}:_0x495f7c;const _0x364b57=this['_fixMediaEmbeds'](_0x4cec70,_0x144b89);return function(_0x4daed0,_0x13d37e){for(const [_0x495072,_0x59bbd8]of _0x4daed0)_0x59bbd8['classes']=_0x13d37e[_0x495072]['classList']['value']['replace']('ck-focused','');return _0x4daed0;}(this['_sortRoots'](_0x144b89)['reduce']((_0x36dcd3,_0x63f2a8)=>(_0x36dcd3['push']([_0x63f2a8,{'content':_0x364b57[_0x63f2a8],'classes':''}]),_0x36dcd3),[]),_0x152f67);}['_fixMediaEmbeds'](_0x1068d3,_0x8f1212){if(!_0x8f1212['plugins']['has']('MediaEmbedEditing'))return _0x1068d3;const _0x1144a3=_0x8f1212['plugins']['get']('MediaEmbedEditing');for(const [_0x42b1eb,_0x1c62be]of Object['entries'](_0x1068d3)){const _0x314e1e=document['createElement']('div');_0x314e1e['innerHTML']=_0x1c62be,_0x314e1e['querySelectorAll']('figure.media')['forEach'](_0x1a65a1=>{const _0x2676f2=_0x1a65a1['querySelector']('oembed');if(_0x2676f2){const _0x8e3cda=_0x2676f2['getAttribute']('url');if(_0x8e3cda){const _0x34c476=_0x1144a3['registry']['getMediaViewElement'](new ot(_0x8f1212['editing']['view']['document']),_0x8e3cda,{'elementName':'','renderForEditingView':!0x0}),_0x2a8a96=document['createElement']('div');_0x2a8a96['classList']['add']('ck-media__wrapper'),_0x34c476['render'](_0x2a8a96,_0x8f1212['editing']['view']['domConverter']),_0x2676f2['replaceWith'](_0x2a8a96);}}}),_0x1068d3[_0x42b1eb]=_0x314e1e['innerHTML'];}return _0x1068d3;}['_sortRoots'](_0x196537){if(!function(_0x5303cf){return void 0x0!==_0x5303cf['getRootsAttributes'];}(_0x196537))return _0x196537['model']['document']['getRootNames']();const _0x5cf746=[],_0x2d7849=new Map();for(const _0x13b10b of _0x196537['model']['document']['getRootNames']()){const _0x350d89=_0x196537['editing']['view']['getDomRoot'](_0x13b10b)['getClientRects']()['item'](0x0);_0x5cf746['push'](_0x13b10b),_0x2d7849['set'](_0x13b10b,_0x350d89);}return _0x5cf746['sort']((_0x946d1b,_0x52b74b)=>{const _0x25af53=_0x2d7849['get'](_0x946d1b),_0x9e23b7=_0x2d7849['get'](_0x52b74b);return _0x25af53['y']-_0x9e23b7['y']||_0x25af53['x']-_0x9e23b7['x'];}),_0x5cf746;}},Bn=class extends _0x449cd5{static get['requires'](){return[yn,_0x2857d2];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x310b25){super(_0x310b25),_0x310b25['commands']['add']('previewFinalContent',new Fn(this['editor'])),_0x310b25['config']['define']('trackChanges.preview.renderFunction',(_0x465110,_0xfd89a7)=>{for(const _0x618c4a of _0xfd89a7)_0x465110['appendChild'](_0x618c4a);});}};export{Tt as AcceptSuggestionCommand,In as BaseSuggestionThreadView,_t as DiscardSuggestionCommand,Ct as ExecuteOnAllSuggestionsCommand,Rt as ExecuteOnSelectedSuggestionsCommand,Fn as PreviewFinalContentCommand,yt as Suggestion,Mt as SuggestionDescriptionFactory,An as SuggestionThreadView,bn as SuggestionView,Rn as TrackChanges,Et as TrackChangesCommand,yn as TrackChangesData,Sn as TrackChangesDataGetter,nn as TrackChangesEditing,Bn as TrackChangesPreview,kn as TrackChangesUI};
23
+ import{Command as _0x5a79ba,PendingActions as _0x6db56a,Plugin as _0x548d2a}from'@ckeditor/ckeditor5-core';import{Annotations as _0x5a11f9,Comments as _0x28e9ec,CommentsRepository as _0x625dc5,EditorAnnotations as _0x515c91}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x4ce3e1,Collection as _0x2d3c72,FocusTracker as _0x50e30b,KeystrokeHandler as _0x574fc1,ObservableMixin as _0x47ad8b,getEnvKeystrokeText as _0x217db9,insertToPriorityArray as _0x1dd3b8,logWarning as _0x78b2a9,priorities as _0x5e908b,uid as _0x1dfb7c}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x112b98,IconCancel as _0x5eb0dc,IconCheck as _0x14b565,IconSparkle as _0x3af273,IconTrackChanges as _0x1fd907}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x1d1889,Dialog as _0x4ccace,FocusCycler as _0x3b54a5,ListSeparatorView as _0x5b0cbf,MenuBarMenuListItemButtonView as _0x28f43e,MenuBarMenuListItemView as _0x271ebd,MenuBarMenuListView as _0x1d8e7c,MenuBarMenuView as _0x3b7c12,SplitButtonView as _0x499055,UIModel as _0xe0f952,View as _0x44d047,ViewCollection as _0x4b334b,addListToDropdown as _0x5a7aa3,createDropdown as _0x583898,normalizeColorOptions as _0xb174e6}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0xb0e5f7,CollaborationUserColor as _0x4762e5,DocumentCompare as _0x140123,FOCUS_ANNOTATION_KEYSTROKE as _0x55db56,LateFocusButtonView as _0x5bb789,PillView as _0x24fb6b,SuggestionsConversion as _0x4fbad8,User as _0xcdc6f6,UserView as _0x122117,Users as _0x5036c6,fixElementSuggestionRange as _0x42ced4,getAllMarkersDomElementsSorted as _0x369c76,getDateTimeFormatter as _0x1f27f5,hashObject as _0x86ba89,isInvalidAttributeOperation as _0x39c933,sanitizeEditorConfig as _0x303fe4,setupThreadKeyboardNavigation as tt,splitSuggestionMarkerName as et,surroundingMarkersDetector as nt,trimHtml as it}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as st,ModelLivePosition as rt,ModelLiveRange as ot,ViewDowncastWriter as at}from'@ckeditor/ckeditor5-engine';import{cloneDeep as ct,isEqual as lt,omit as ut,set as dt,unset as ht}from'es-toolkit/compat';import{ClipboardMarkersUtils as gt,ClipboardPipeline as ft}from'@ckeditor/ckeditor5-clipboard';import{Delete as mt,Input as Et}from'@ckeditor/ckeditor5-typing';import{Enter as Tt}from'@ckeditor/ckeditor5-enter';var _t=class extends _0x5a79ba{['_enabledCommands'];constructor(_0x24a447,_0x8606f2){super(_0x24a447),this['_enabledCommands']=_0x8606f2,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 _0xfcf0fc of this['editor']['commands']['commands']())_0xfcf0fc['affectsData']&&!this['_enabledCommands']['has'](_0xfcf0fc)&&_0xfcf0fc['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1770c6 of this['editor']['commands']['commands']())_0x1770c6['affectsData']&&!this['_enabledCommands']['has'](_0x1770c6)&&_0x1770c6['clearForceDisabled']('TrackChangesCommand');}},pt=class extends _0x5a79ba{_suggestions;constructor(_0x1ae441,_0x9ce711){super(_0x1ae441),this['_suggestions']=_0x9ce711,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x5b1ea7){const _0x5324bb=this['_suggestions']['get'](_0x5b1ea7);if(!_0x5324bb)throw new _0x4ce3e1('track-changes-accept-suggestion-not-found',this);const _0x3bef9e=_0x5324bb['getRanges']();this['editor']['model']['canEditAt'](_0x3bef9e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5324bb);}},Lt=class extends _0x5a79ba{_suggestions;constructor(_0xa6b99e,_0x54d261){super(_0xa6b99e),this['_suggestions']=_0x54d261,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}execute(_0x1f1442){const _0x120644=this['_suggestions']['get'](_0x1f1442);if(!_0x120644)throw new _0x4ce3e1('track-changes-discard-suggestion-not-found',this);const _0x5e4181=_0x120644['getRanges']();this['editor']['model']['canEditAt'](_0x5e4181)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x120644);}};function It(_0x1194c3,_0x1c3a1d){let _0x58a8f3='';return _0x58a8f3+=_0x1194c3['split']('*')['map']((_0xcdf9e8,_0x270108)=>_0x270108%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+At(_0xcdf9e8)+'</span>':At(_0xcdf9e8))['join'](''),_0x1c3a1d&&(_0x58a8f3+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1c3a1d['value']+'\x22\x20title=\x22'+_0x1c3a1d['title']+'\x22></span>'),_0x58a8f3;}function At(_0x5928a7){const _0x4f8840=document['createElement']('span');return _0x4f8840['innerText']=_0x5928a7,_0x4f8840['innerHTML'];}function bt(_0x795e1){return _0x795e1['sort']((_0x3e0d57,_0x4b79bc)=>'attribute'===_0x3e0d57['type']&&'attribute'!==_0x4b79bc['type']?-0x1:'attribute'!==_0x3e0d57['type']&&'attribute'===_0x4b79bc['type']?0x1:'deletion'==_0x3e0d57['type']&&'deletion'!=_0x4b79bc['type']?-0x1:'deletion'!=_0x3e0d57['type']&&'deletion'==_0x4b79bc['type']?0x1:0x0);}function Ct(_0x3a29be,_0x497f62){let _0x4e9e59,_0x4d6338=0x0;const _0x4b4b98=[],_0x1a6e7f=_0x497f62['schema'];for(;_0x4d6338<_0x3a29be['length'];){const _0x44ebea=_0x3a29be[_0x4d6338],_0x380feb=_0x3a29be[_0x4d6338+0x1];_0x4e9e59||(_0x4e9e59=_0x497f62['createPositionBefore'](_0x44ebea)),kt(_0x497f62,_0x44ebea,_0x380feb)||(_0x4b4b98['push'](_0x497f62['createRange'](_0x4e9e59,_0x1a6e7f['isObject'](_0x44ebea)?_0x497f62['createPositionAfter'](_0x44ebea):_0x497f62['createPositionAt'](_0x44ebea,'end'))),_0x4e9e59=null),_0x4d6338++;}return _0x4b4b98;}function kt(_0xfe4988,_0x5af59f,_0x3fa615){if(!_0x3fa615)return!0x1;const _0x1c457a=_0xfe4988['createPositionAfter'](_0x5af59f),_0x335d79=_0xfe4988['createPositionBefore'](_0x3fa615);return _0x1c457a['isTouching'](_0x335d79);}function Rt(_0x418b4b,_0x35e7ad,_0x130506){for(;_0x130506['length'];){const _0x555103=_0x130506['splice'](0x0,0x64);_0x418b4b['change'](()=>{for(const _0x25887b of _0x555103)_0x25887b['isInContent']&&_0x35e7ad['execute'](_0x25887b['id']);});}}var yt=class extends _0x5a79ba{['_command'];_suggestions;constructor(_0x2004c5,_0x110477,_0x4b0f38){super(_0x2004c5),this['_command']=_0x110477,this['_suggestions']=_0x4b0f38,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1298ac=Array['from'](this['_suggestions']['values']())['some'](_0x1ef728=>_0x1ef728['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1298ac;}execute(){const _0x59135b=bt(Array['from'](this['_suggestions']['values']()));for(const _0xc823c0 of _0x59135b){const _0x2e018b=_0xc823c0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2e018b))return;}Rt(this['editor']['model'],this['_command'],_0x59135b);}},Nt=class extends _0x5a79ba{['_command'];_suggestions;_selectedSuggestions;constructor(_0x4fbf4d,_0x1c5481,_0x94c3e1){super(_0x4fbf4d),this['_command']=_0x1c5481,this['_suggestions']=_0x94c3e1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x7cb9f9=this['editor']['model']['document']['selection'],_0x574cb2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x6ff409,_0xc8abba){const _0x511255=Array['from'](_0x6ff409['getRanges']()),_0x22a6ca=new Set();for(const _0x23c12e of _0xc8abba)if(_0x23c12e['isInContent']){for(const _0x50b4f1 of _0x511255)for(const _0x38341f of _0x23c12e['getRanges']())(_0x50b4f1['isIntersecting'](_0x38341f)||_0x6ff409['isCollapsed']&&!_0x23c12e['isMultiRange']&&_0x23c12e['next']&&_0x38341f['end']['isTouching'](_0x50b4f1['start']))&&_0x22a6ca['add'](_0x23c12e);}return _0x22a6ca;}(_0x7cb9f9,_0x574cb2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}execute(){const _0x3b388e=bt(Array['from'](this['_selectedSuggestions']));for(const _0x4e5d8f of _0x3b388e){const _0x415f4d=_0x4e5d8f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x415f4d))return;}Rt(this['editor']['model'],this['_command'],_0x3b388e);}};const St=/* #__PURE__ -- @preserve */
24
+ _0x47ad8b();var Mt=class Suggestion extends St{['id'];type;['subType'];author;creator;data;createdAt;_originalSuggestionId;_isDataLoaded=!0x1;['_model'];_onAccept;['_onDiscard'];_onAttributesChange;['_markerNames'];constructor(_0x59d596,_0x29f478){super(),this['id']=_0x29f478['id'],this['type']=_0x29f478['type'],this['subType']=_0x29f478['subType']||null,this['author']=_0x29f478['author'],this['creator']=_0x29f478['creator']||_0x29f478['author'],this['data']=null,this['_originalSuggestionId']=_0x29f478['originalSuggestionId']||null,this['_model']=_0x59d596,this['_onAccept']=_0x29f478['onAccept'],this['_onDiscard']=_0x29f478['onDiscard'],this['_onAttributesChange']=_0x29f478['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x29f478['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get isExternal(){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x4a4dab=this;for(;_0x4a4dab['previous'];)_0x4a4dab=_0x4a4dab['previous'];return _0x4a4dab;}get hasComments(){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get isMultiRange(){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get isInContent(){return null!==this['getFirstMarker']();}['addMarkerName'](_0x41f52f){this['_markerNames']['add'](_0x41f52f);}getMarkerNames(){return Array['from'](this['_markerNames']);}getMarkers(){return this['getMarkerNames']()['map'](_0x3bfe17=>this['_model']['markers']['get'](_0x3bfe17))['filter'](_0x456c9e=>_0x456c9e);}getFirstMarker(){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b2a66=>{for(const _0x536246 of this['getMarkers']())_0x4b2a66['removeMarker'](_0x536246);}),this['_markerNames']['clear']();}['removeMarker'](_0x478e50){this['_model']['change'](_0x3091c0=>{_0x3091c0['removeMarker'](_0x478e50);}),this['_markerNames']['delete'](_0x478e50);}['addRange'](_0x2682bd){const _0xc20bca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0xc20bca),this['_model']['change'](_0x131494=>{_0x131494['addMarker'](_0xc20bca,{'range':_0x2682bd,'usingOperation':!0x0,'affectsData':!0x0});});}isIntersectingWithRange(_0x220008){for(const _0x461194 of this['getRanges']())if(_0x461194['isIntersecting'](_0x220008))return!0x0;return!0x1;}getRanges(){return this['getMarkers']()['map'](_0x401a2c=>_0x401a2c['getRange']());}getItems(){return this['getRanges']()['reduce']((_0x3cce98,_0x5eaaa0)=>[..._0x3cce98,..._0x5eaaa0['getItems']()],[]);}getFirstRange(){return this['getFirstMarker']()?.['getRange']()||null;}getContainedElement(){const _0xd23d18=this['getRanges']();if(0x1!=_0xd23d18['length'])return null;const _0x33e0ef=_0xd23d18[0x0],_0xd5a886=_0x33e0ef['start']['nodeAfter'],_0x56f7b4=_0x33e0ef['end']['nodeBefore'];return _0xd5a886 instanceof st?_0xd5a886!=_0x56f7b4?null:_0xd5a886: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 _0x48fe6b=[];let _0x2f6904=this['head'];for(;_0x2f6904;)_0x48fe6b['push'](_0x2f6904),_0x2f6904=_0x2f6904['next'];return _0x48fe6b;}setAttribute(_0x150beb,_0x2fd83e){const _0x2ab888=ct(this['attributes']);dt(_0x2ab888,_0x150beb,_0x2fd83e),lt(_0x2ab888,this['attributes'])||(this['attributes']=_0x2ab888,this['_onAttributesChange'](_0x2ab888));}removeAttribute(_0x1befae){const _0x50497b=ct(this['attributes']);ht(_0x50497b,_0x1befae),lt(_0x50497b,this['attributes'])||(this['attributes']=_0x50497b,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 _0x1dfb7c()['substr'](0x1,0x5);}};function Ot(_0x580bbe,_0x598d09,_0x469664){const _0x5ddd10=_0x580bbe['t'],t=_0x580bbe['t'];switch(_0x598d09){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x469664);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x469664);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x469664);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x469664);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x469664);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',_0x469664);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x469664);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x469664);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x469664);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x469664);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x469664);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x469664);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x469664);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x469664);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x469664);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x469664);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x469664);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x469664);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x469664);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x469664);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x469664);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x469664);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x469664);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x469664);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x469664);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'},_0x469664);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x469664);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x469664);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x469664);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x469664);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x469664);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x469664);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x469664);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x469664);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x469664);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x469664);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x469664);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x469664);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x469664);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x469664);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x469664);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'},_0x469664);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x469664);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x469664);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'},_0x469664);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x469664);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'},_0x469664);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x469664);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x469664);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x469664);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x469664);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x469664);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'},_0x469664);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x469664);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x5ddd10({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x469664);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5ddd10({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x469664);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x469664);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x469664);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x469664);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x469664);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x598d09;}}var wt=class{_customCallbacks;_itemLabels;_itemLabelsCallbacks;_attributeLabels;['_schema'];['_locale'];constructor(_0x14aa6b,_0xff8d6e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14aa6b,this['_locale']=_0xff8d6e;}getDescriptions(_0x2e5cf9){const _0x4ae254=[],_0x23ab8e=new Set(),_0x24bee4=new Set();for(let _0x11132e=0x0;_0x11132e<_0x2e5cf9['length'];_0x11132e++){const _0x502393=_0x2e5cf9[_0x11132e];if(!_0x502393['isInContent'])continue;const _0x1d7876=this['_handleCustomCallbackDescription'](_0x502393);if(_0x1d7876){if(null!=_0x502393['subType']){if(_0x23ab8e['has'](_0x502393['subType']))continue;_0x23ab8e['add'](_0x502393['subType']);}_0x4ae254['push'](_0x1d7876);}else{if('attribute'==_0x502393['type']){const _0x3a761d=_0x502393['data']['key'];if(_0x24bee4['has'](_0x3a761d))continue;_0x24bee4['add'](_0x502393['data']['key']),'$elementName'==_0x3a761d?this['_handleRenameSuggestionDescription'](_0x4ae254,_0x502393):this['_handleAttributeSuggestionDescription'](_0x4ae254,_0x502393);continue;}'insertion'!=_0x502393['type']&&'deletion'!=_0x502393['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4ae254,_0x502393,_0x2e5cf9[_0x11132e+0x1]);}}return this['_resolveDescriptionItems'](_0x4ae254);}registerDescriptionCallback(_0x4f77c6){this['_customCallbacks']['push'](_0x4f77c6);}registerElementLabel(_0x2857f1,_0x3228d7,_0x1b4324=_0x5e908b['normal']){'function'==typeof _0x2857f1?_0x1dd3b8(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2857f1,'label':_0x3228d7,'priority':_0x1b4324}):this['_itemLabels']['set'](_0x2857f1,_0x3228d7);}registerAttributeLabel(_0x96d3ae,_0x2f06a5){this['_attributeLabels']['set'](_0x96d3ae,_0x2f06a5);}getItemLabel(_0xf72d30,_0x59ca1a=0x1){let _0x593c73;for(const _0x165112 of this['_itemLabelsCallbacks'])if(_0x165112['matchingCallback'](_0xf72d30)){_0x593c73=_0x165112['label'];break;}return _0x593c73||(_0x593c73=this['_itemLabels']['get'](_0xf72d30['name'])),_0x593c73?_0x593c73(_0x59ca1a):0x1!==_0x59ca1a?_0x59ca1a+'\x20'+_0xf72d30['name']+'s':''+_0xf72d30['name'];}_addDescriptionItems(_0x49a196,_0x1c1125){const _0x275642=_0x1c1125['getFirstRange']()['getWalker'](),_0x2d8e5a='insertion'==_0x1c1125['type']?'add':'remove';for(const _0x6cc0b7 of _0x275642){const _0x236432=_0x6cc0b7['item'],_0x5ef514=_0x49a196[_0x49a196['length']-0x1];if(_0x236432['is']('$textProxy'))_0x5ef514&&_0x5ef514['type']['indexOf']('Container')>-0x1&&_0x49a196['pop'](),_0x5ef514&&'text'==_0x5ef514['type']?_0x5ef514[_0x2d8e5a]+=_0x236432['data']:_0x49a196['push']({'type':'text','add':'add'==_0x2d8e5a?_0x236432['data']:'','remove':'remove'==_0x2d8e5a?_0x236432['data']:''});else{if(this['_schema']['isObject'](_0x236432)){const _0x36dd71=_0x236432;if(_0x5ef514&&_0x5ef514['type']['indexOf']('Container')>-0x1&&_0x49a196['pop'](),'elementEnd'==_0x6cc0b7['type'])continue;_0x5ef514&&_0x5ef514['type']==_0x2d8e5a+'Object'&&_0x5ef514['element']['name']==_0x36dd71['name']?_0x5ef514['quantity']++:_0x49a196['push']({'type':_0x2d8e5a+'Object','element':_0x36dd71,'quantity':0x1}),_0x275642['skip'](_0x4bfed4=>!('elementEnd'==_0x4bfed4['type']&&_0x4bfed4['item']==_0x236432));}else{if(this['_schema']['checkChild'](_0x236432,'$text')||_0x236432['is']('element','softBreak')){const _0x84e86d=_0x236432;if('add'==_0x2d8e5a&&'elementStart'==_0x6cc0b7['type']||'remove'==_0x2d8e5a&&'elementEnd'==_0x6cc0b7['type'])continue;if(_0x5ef514&&-0x1==_0x5ef514['type']['indexOf']('Container')){'text'==_0x5ef514['type']&&(_0x5ef514[_0x2d8e5a]+='\x0a');continue;}let _0x11ce46;if(_0x11ce46='add'==_0x2d8e5a?_0x84e86d['nextSibling']&&!this['_schema']['isObject'](_0x84e86d['nextSibling'])?_0x84e86d['nextSibling']:null:_0x84e86d['previousSibling']&&!this['_schema']['isObject'](_0x84e86d['previousSibling'])?_0x84e86d['previousSibling']:null,_0x84e86d['isEmpty']||_0x11ce46&&_0x11ce46['isEmpty']){const _0x3ee0a3=_0x11ce46&&_0x11ce46['isEmpty']?_0x11ce46:_0x84e86d;_0x5ef514&&_0x5ef514['type']==_0x2d8e5a+'EmptyContainer'&&_0x5ef514['element']['name']==_0x3ee0a3['name']?_0x5ef514['quantity']++:_0x49a196['push']({'type':_0x2d8e5a+'EmptyContainer','element':_0x3ee0a3,'quantity':0x1});}else _0x49a196['push']({'type':_0x2d8e5a+'Container','element':_0x84e86d});}}}}}_resolveDescriptionItems(_0x35688e){const _0xb92b49=this['_locale'],_0x3bb84a=[],_0x1caffb=[],_0x5a01c1=[];for(const _0x3ee6b0 of _0x35688e)switch(_0x3ee6b0['type']){case'text':if(_0x3ee6b0['add']=_0x3ee6b0['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ee6b0['remove']=_0x3ee6b0['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ee6b0['add']&&''!=_0x3ee6b0['remove']){_0x3bb84a['push']({'type':'replace','content':Ot(_0xb92b49,'REPLACE_TEXT',['\x22'+_0x3ee6b0['remove']+'\x22','\x22'+_0x3ee6b0['add']+'\x22'])});continue;}if(null!=_0x3ee6b0['add']['match'](/^ +$/)){_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0',Ot(_0xb92b49,'ELEMENT_SPACE',_0x3ee6b0['add']['length']))});continue;}if(null!=_0x3ee6b0['remove']['match'](/^ +$/)){_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0',Ot(_0xb92b49,'ELEMENT_SPACE',_0x3ee6b0['remove']['length']))});continue;}if(''!=_0x3ee6b0['add']){_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0','\x22'+_0x3ee6b0['add']+'\x22')});continue;}_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0','\x22'+_0x3ee6b0['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Insert:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Remove:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'addContainer':_0x3bb84a['push']({'type':'insertion','content':Ot(_0xb92b49,'*Split:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'removeContainer':_0x3bb84a['push']({'type':'deletion','content':Ot(_0xb92b49,'*Merge:*\x20%0',this['getItemLabel'](_0x3ee6b0['element'],_0x3ee6b0['quantity']))});continue;case'addFormat':_0x1caffb['push'](_0x3ee6b0['key']);continue;case'removeFormat':_0x5a01c1['push'](_0x3ee6b0['key']);continue;default:_0x3bb84a['push'](_0x3ee6b0);}if(_0x1caffb['length']){const _0xda488a=_0x1caffb['map'](_0x3920c9=>this['_attributeLabels']['has'](_0x3920c9)?this['_attributeLabels']['get'](_0x3920c9):_0x3920c9)['join'](',\x20');_0x3bb84a['push']({'type':'format','content':Ot(this['_locale'],'*Set\x20format:*\x20%0',_0xda488a)});}if(_0x5a01c1['length']){const _0x4671f2=_0x5a01c1['map'](_0x571dce=>this['_attributeLabels']['has'](_0x571dce)?this['_attributeLabels']['get'](_0x571dce):_0x571dce)['join'](',\x20');_0x3bb84a['push']({'type':'format','content':Ot(this['_locale'],'*Remove\x20format:*\x20%0',_0x4671f2)});}return _0x3bb84a;}_handleCustomCallbackDescription(_0x4c45b4){for(const _0x551ece of this['_customCallbacks']){const _0x27b609=_0x551ece(_0x4c45b4);if(_0x27b609&&'type'in _0x27b609)return _0x27b609;}}_handleAttributeSuggestionDescription(_0x4ff171,_0x5bc390){const _0x31abaa=_0x5bc390['data'],_0x4fec73=void 0x0===_0x31abaa['newValue']?'removeFormat':'addFormat';_0x4ff171['push']({'type':_0x4fec73,'key':_0x31abaa['key']});}_handleRenameSuggestionDescription(_0x5efd87,_0x5a1937){_0x5efd87['push']({'type':'format','content':Ot(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5a1937['getFirstRange']()['start']['nodeAfter'],0x1))});}_handleInsertRemoveSuggestionDescription(_0x50ec23,_0x363f18,_0xdec4a3){if(this['_addDescriptionItems'](_0x50ec23,_0x363f18),_0xdec4a3&&_0xdec4a3['getFirstRange']()&&!_0x363f18['getFirstRange']()['end']['isEqual'](_0xdec4a3['getFirstRange']()['start'])){const _0x3dffe6=_0x50ec23[_0x50ec23['length']-0x1],_0x518ddb='insertion'==_0x363f18['type']?'add':'remove';_0x3dffe6&&'text'==_0x3dffe6['type']&&(_0x3dffe6[_0x518ddb]+='\x0a');}}},Ft=class extends _0x548d2a{afterInit(){const _0x33dbe0=this['editor'],_0x157d93=_0x33dbe0['plugins']['get']('TrackChangesEditing');_0x33dbe0['commands']['get']('showAIAssistant')&&_0x157d93['enableCommand']('showAIAssistant');}},Bt=class extends _0x548d2a{afterInit(){const _0x5901e1=this['editor'],_0x5ef11a=_0x5901e1['plugins']['get']('TrackChangesEditing');_0x5901e1['commands']['get']('toggleAi')&&_0x5ef11a['enableCommand']('toggleAi');}},vt=class extends _0x548d2a{afterInit(){const _0x3a84d0=this['editor'],_0x343fd8=_0x3a84d0['plugins']['get']('TrackChangesEditing');_0x3a84d0['commands']['get']('aiQuickAction')&&_0x343fd8['enableCommand']('aiQuickAction');}},Dt=class extends _0x548d2a{afterInit(){const _0x2d69a3=this['editor'],_0xc6e7f8=_0x2d69a3['locale'];if(!_0x2d69a3['plugins']['has']('AlignmentEditing'))return;const _0x324907=_0x2d69a3['plugins']['get']('TrackChangesEditing');_0x324907['enableDefaultAttributesIntegration']('alignment'),_0x324907['descriptionFactory']['registerAttributeLabel']('alignment',Ot(_0xc6e7f8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5657ac=this['editor'],_0x1d0d5e=_0x5657ac['locale'];_0x5657ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c6a38=>{if('formatBlock'!=_0x3c6a38['type'])return;const {data:_0x58c0ec}=_0x3c6a38;if(_0x58c0ec&&'alignment'==_0x58c0ec['commandName']){const _0x1d2bd8=_0x58c0ec['commandParams'][0x0]['value'];return{'type':'format','content':Ot(_0x1d0d5e,'*Format:*\x20%0',function(_0x2c2624){switch(_0x2c2624){case'left':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_LEFT');case'right':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_RIGHT');case'center':return Ot(_0x1d0d5e,'FORMAT_ALIGN_TO_CENTER');case'justify':return Ot(_0x1d0d5e,'FORMAT_JUSTIFY_TEXT');}}(_0x1d2bd8))};}});}};const Ut=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Pt=class extends _0x548d2a{afterInit(){const _0x55f6e5=this['editor'],_0x51c0f2=_0x55f6e5['plugins']['get']('TrackChangesEditing'),_0x472c79=_0x55f6e5['locale'];for(const _0x5106fe of Ut){if(!_0x55f6e5['plugins']['has'](_0x5106fe))continue;const _0x14ef00=_0x5106fe['slice'](0x0,-0x7)['toLowerCase'](),_0x304bf6='FORMAT_'+_0x14ef00['toUpperCase']();_0x51c0f2['enableDefaultAttributesIntegration'](_0x14ef00),_0x51c0f2['descriptionFactory']['registerAttributeLabel'](_0x14ef00,Ot(_0x472c79,_0x304bf6));}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x4338f0=this['editor'],_0x4f5d59=_0x4338f0['locale'],_0x17d980=_0x4338f0['plugins']['get']('TrackChangesEditing');function _0xc19c30(_0x392d7d,_0x1855a2){_0x17d980['descriptionFactory']['registerDescriptionCallback'](_0x2775ab=>{if('formatInline'!=_0x2775ab['type'])return;const {data:_0x527a96}=_0x2775ab;return _0x527a96&&_0x527a96['commandName']===_0x392d7d?_0x527a96['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x4f5d59,'*Format:*\x20%0',_0x1855a2)}:{'type':'format','content':Ot(_0x4f5d59,'*Remove\x20format:*\x20%0',_0x1855a2)}:void 0x0;});}_0xc19c30('bold',Ot(_0x4f5d59,'FORMAT_BOLD')),_0xc19c30('italic',Ot(_0x4f5d59,'FORMAT_ITALIC')),_0xc19c30('underline',Ot(_0x4f5d59,'FORMAT_UNDERLINE')),_0xc19c30('code',Ot(_0x4f5d59,'FORMAT_CODE')),_0xc19c30('strikethrough',Ot(_0x4f5d59,'FORMAT_STRIKETHROUGH')),_0xc19c30('subscript',Ot(_0x4f5d59,'FORMAT_SUBSCRIPT')),_0xc19c30('superscript',Ot(_0x4f5d59,'FORMAT_SUPERSCRIPT'));}},xt=class extends _0x548d2a{afterInit(){const _0x3a85d8=this['editor'],_0x36113c=_0x3a85d8['locale'];if(!_0x3a85d8['plugins']['has']('BlockQuoteEditing'))return;const _0x387209=_0x3a85d8['plugins']['get']('TrackChangesEditing'),_0x51e9bc=this['editor']['commands']['get']('blockQuote');_0x387209['enableCommand']('blockQuote',(_0xff3daa,_0x435138={})=>{const _0x1657e1=this['editor']['model']['document']['selection'],_0x4c0156=_0x435138&&void 0x0!==_0x435138['forceValue']?_0x435138['forceValue']:!_0x51e9bc['value'];let _0x46d889=[];_0x46d889=Ct(_0x4c0156?Array['from'](_0x1657e1['getSelectedBlocks']())['filter'](_0x2a5c28=>Gt(_0x2a5c28)||function(_0x48f7bf,_0x195c07){const _0x23939f=_0x195c07['createContext'](_0x48f7bf['parent']);return!!_0x195c07['checkChild'](_0x23939f,'blockQuote')&&!!_0x195c07['checkChild'](_0x23939f['push']('blockQuote'),_0x48f7bf);}(_0x2a5c28,this['editor']['model']['schema'])):Array['from'](_0x1657e1['getSelectedBlocks']())['filter'](_0x4cd9db=>Gt(_0x4cd9db)),_0x3a85d8['model']),_0x3a85d8['model']['change'](()=>{for(const _0x118167 of _0x46d889)_0x387209['markBlockFormat'](_0x118167,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x4c0156}]});});}),_0x387209['descriptionFactory']['registerDescriptionCallback'](_0x139664=>{const {data:_0x10916c}=_0x139664;if(_0x10916c&&'blockQuote'==_0x10916c['commandName']){const _0x1cc5c3=Ot(_0x36113c,'ELEMENT_BLOCK_QUOTE');return _0x10916c['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x36113c,'*Set\x20format:*\x20%0',_0x1cc5c3)}:{'type':'format','content':Ot(_0x36113c,'*Remove\x20format:*\x20%0',_0x1cc5c3)};}});}};function Gt(_0x572fbd){return'blockQuote'==_0x572fbd['parent']['name'];}var Ht=class extends _0x548d2a{afterInit(){const _0x27a490=this['editor'],_0x5d4a28=_0x27a490['locale'],_0x54e6e5=_0x27a490['plugins']['get']('TrackChangesEditing');_0x27a490['plugins']['has']('BookmarkEditing')&&(_0x54e6e5['enableCommand']('insertBookmark'),_0x54e6e5['enableDefaultAttributesIntegration']('updateBookmark'),_0x54e6e5['descriptionFactory']['registerDescriptionCallback'](_0x5d9ef8=>{if('insertion'!=_0x5d9ef8['type']&&'deletion'!=_0x5d9ef8['type']&&'attribute'!=_0x5d9ef8['type'])return;const _0x4b9797=_0x5d9ef8['getContainedElement']();if(null==_0x4b9797)return;if(!_0x4b9797['is']('element','bookmark'))return;const _0x362e7f=_0x4b9797['getAttribute']('bookmarkId');if('insertion'==_0x5d9ef8['type'])return{'type':'insertion','content':Ot(_0x5d4a28,'*Insert:*\x20%0','\x22'+_0x362e7f+'\x22\x20'+Ot(_0x5d4a28,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5d9ef8['type'])return{'type':'deletion','content':Ot(_0x5d4a28,'*Remove:*\x20%0','\x22'+_0x362e7f+'\x22\x20'+Ot(_0x5d4a28,'ELEMENT_BOOKMARK'))};const {data:_0x4c37e3}=_0x5d9ef8;return _0x4c37e3&&'bookmarkId'==_0x4c37e3['key']?{'type':'format','content':Ot(_0x5d4a28,'*Set\x20bookmark:*\x20%0','\x22'+_0x4c37e3['newValue']+'\x22')}:void 0x0;}));}},$t=class extends _0x548d2a{afterInit(){const _0x3f06d3=this['editor'];_0x3f06d3['plugins']['has']('CaseChange')&&(_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f06d3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Wt=class extends _0x548d2a{afterInit(){const _0x3ab169=this['editor'];_0x3ab169['commands']['get']('ckbox')&&_0x3ab169['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},Vt=class extends _0x548d2a{static get requires(){return[gt,ft];}constructor(_0x155be5){super(_0x155be5),this['editor']['config']['define']('trackChanges.clipboardMode','keep');}afterInit(){if('keep'===this['editor']['config']['get']('trackChanges.clipboardMode'))return;const _0x6ebdaa=this['editor'],_0x2684b5=_0x6ebdaa['plugins']['get']('ClipboardMarkersUtils'),_0x317a38=_0x6ebdaa['plugins']['get'](ft);_0x2684b5['_registerMarkerToCopy']('suggestion',{'allowedActions':'all','copyPartiallySelected':!0x0,'duplicateOnPaste':!0x1}),_0x317a38['on']('outputTransformation',(_0x62898f,_0x3baf18)=>{const _0x40264d=this['_getSuggestionEntries'](_0x3baf18);for(const [_0x41208d,_0x5c7a55]of _0x3baf18['content']['markers']){const _0x20eb8a=ot['_fromRangeInDocumentFragment'](_0x5c7a55,_0x6ebdaa['model']);function _0x27b241(){_0x20eb8a['detach'](),_0x3baf18['content']['markers']['delete'](_0x41208d);}_0x20eb8a['on']('change:drop',_0x27b241),(_0x41208d['startsWith']('suggestion:')||_0x41208d['startsWith']('comment:'))&&_0x20eb8a['on']('change:range',()=>{_0x20eb8a['isCollapsed']&&_0x27b241();}),_0x3baf18['content']['markers']['set'](_0x41208d,_0x20eb8a);}const _0x2d99ea=_0x40264d['filter'](_0x25681b=>'deletion'===_0x25681b['meta']['type'])['map'](_0x4cbd1e=>_0x4cbd1e['modelRange']);if(this['_shouldSkipDeletions'](_0x2d99ea,_0x3baf18['content']))return[..._0x40264d]['forEach'](_0x77a233=>{_0x3baf18['content']['markers']['get'](_0x77a233['markerName'])['detach'](),_0x3baf18['content']['markers']['delete'](_0x77a233['markerName']);}),void this['_restoreRegularRanges'](_0x3baf18['content']['markers']);[..._0x40264d]['forEach'](_0x549f25=>{const _0x3b7dae=_0x6ebdaa['plugins']['get']('TrackChangesEditing')['_suggestionFactory']['getSuggestionCallback'](_0x549f25['meta']['type'],_0x549f25['meta']['subType'],'accept'),{markerName:_0x2ec4b5,meta:_0x366011}=_0x549f25;if(_0x3baf18['content']['markers']['has'](_0x2ec4b5)){switch(_0x366011['type']){case'deletion':if('tableRow'===_0x366011['subType']||'tableColumn'===_0x366011['subType']){if(!_0x6ebdaa['plugins']['has']('TableUtils'))break;const _0x4538da=_0x6ebdaa['plugins']['get']('TableUtils'),_0x45974a=_0x4538da['getSelectionAffectedTableCells'](_0x6ebdaa['model']['createSelection'](_0x3baf18['content']['markers']['get'](_0x2ec4b5))),_0x2ac429=_0x45974a[0x0]['findAncestor']('table');if('tableRow'===_0x366011['subType']){const {first:_0x262a0a,last:_0x26846f}=_0x4538da['getRowIndexes'](_0x45974a);_0x4538da['removeRows'](_0x2ac429,{'at':_0x262a0a,'rows':_0x26846f-_0x262a0a+0x1});}else{const {first:_0x2b2586,last:_0x3d0e0b}=_0x4538da['getColumnIndexes'](_0x45974a);_0x4538da['removeColumns'](_0x2ac429,{'at':_0x2b2586,'columns':_0x3d0e0b-_0x2b2586+0x1});}break;}_0x3b7dae([_0x3baf18['content']['markers']['get'](_0x2ec4b5)]);}_0x3baf18['content']['markers']['has'](_0x2ec4b5)&&(_0x3baf18['content']['markers']['get'](_0x2ec4b5)['detach'](),_0x3baf18['content']['markers']['delete'](_0x2ec4b5));}}),this['_restoreRegularRanges'](_0x3baf18['content']['markers']);});}_getSuggestionEntries(_0x384387){const _0x6f3717=_0x421492=>'dragstart'===_0x384387['method']?_0x421492['split'](':')['slice'](0x0,-0x1)['join'](':'):_0x421492;return Array['from'](_0x384387['content']['markers'])['map'](([_0x3ab927,_0x57fab2])=>({'markerName':_0x3ab927,'modelRange':_0x57fab2,'meta':et(_0x6f3717(_0x3ab927))}))['filter'](({meta:_0x3b84c9})=>'suggestion'===_0x3b84c9['group']);}_shouldSkipDeletions(_0x8b8c83,_0x36f0c7){if(!_0x8b8c83['length'])return!0x1;let _0x208a61=[this['editor']['model']['createRangeIn'](_0x36f0c7)];for(const _0x525136 of _0x8b8c83)_0x208a61=_0x208a61['flatMap'](_0x5bd72a=>_0x5bd72a['getDifference'](_0x525136));return!_0x208a61['some'](_0x493c02=>this['editor']['model']['hasContent'](_0x493c02,{'ignoreMarkers':!0x0}));}_restoreRegularRanges(_0x315d15){[..._0x315d15['keys']()]['forEach'](_0xba9e61=>{const _0x2861da=_0x315d15['get'](_0xba9e61);_0x2861da['detach'](),_0x315d15['set'](_0xba9e61,_0x2861da['toRange']());});}},jt=class extends _0x548d2a{afterInit(){const _0x7fb726=this['editor'];if(!_0x7fb726['plugins']['has']('CodeBlock'))return;const _0x41a0fd=_0x7fb726['plugins']['get']('TrackChangesEditing'),_0x227427=_0x7fb726['locale'],_0x107a42=_0x7fb726['config']['get']('codeBlock')['languages'],_0x1610d0=_0x7fb726['commands']['get']('codeBlock');_0x41a0fd['enableCommand']('indentCodeBlock'),_0x41a0fd['enableCommand']('outdentCodeBlock'),_0x41a0fd['enableCommand']('codeBlock',(_0x37be77,_0x4fd184={})=>{const _0x190607=_0x7fb726['model'],_0x5230a6=_0x7fb726['model']['document']['selection'],_0x43ec52=_0x4fd184&&void 0x0!==_0x4fd184['forceValue']?_0x4fd184['forceValue']:!_0x1610d0['value'];let _0x145450;_0x4fd184['language']||(_0x4fd184['language']=_0x107a42[0x0]['language']),_0x145450=_0x43ec52?Array['from'](_0x5230a6['getSelectedBlocks']())['filter'](_0x5dce3f=>{return zt(_0x5dce3f)||(_0x589ced=_0x5dce3f,_0x1143fa=_0x190607['schema'],!_0x589ced['is']('rootElement')&&!_0x1143fa['isLimit'](_0x589ced)&&_0x1143fa['checkChild'](_0x589ced['parent'],'codeBlock'));var _0x589ced,_0x1143fa;}):Array['from'](_0x5230a6['getSelectedBlocks']())['filter'](_0x50befe=>zt(_0x50befe));const _0x2b64ae=Ct(_0x145450,_0x190607);_0x190607['change'](()=>{for(const _0x2e996a of _0x2b64ae)_0x41a0fd['markBlockFormat'](_0x2e996a,{'commandName':'codeBlock','commandParams':[{..._0x4fd184,'forceValue':_0x43ec52}],'formatGroupId':'blockName'});});}),(_0x41a0fd['descriptionFactory']['registerElementLabel']('codeBlock',_0x1dea05=>Ot(_0x227427,'ELEMENT_CODE_BLOCK',_0x1dea05)),_0x41a0fd['descriptionFactory']['registerDescriptionCallback'](_0x593c1e=>{if('formatBlock'!=_0x593c1e['type'])return;const _0x587fbc=_0x227427['t'],{data:_0x34c667}=_0x593c1e;if(!_0x34c667||'codeBlock'!=_0x34c667['commandName'])return;const _0x573cfa=_0x34c667['commandParams'][0x0]['language'],_0x94e3e0=_0x587fbc(_0x107a42['find'](_0x1891ff=>_0x1891ff['language']===_0x573cfa)['label'])['toLowerCase']();return _0x34c667['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x227427,'*Set\x20format:*\x20%0',Ot(_0x227427,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x94e3e0+')')}:{'type':'format','content':Ot(_0x227427,'*Remove\x20format:*\x20%0',Ot(_0x227427,'ELEMENT_CODE_BLOCK',0x1))};}));}};function zt(_0x21fb09){return'codeBlock'==_0x21fb09['name'];}var Kt=class extends _0x548d2a{afterInit(){const _0x3ba165=this['editor'];_0x3ba165['plugins']['has']('CommentsEditing')&&_0x3ba165['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}},Xt=class extends _0x548d2a{static get requires(){return[mt];}init(){const _0x533106=this['editor'],_0x3081e1=_0x533106['plugins']['get']('TrackChangesEditing');_0x3081e1['enableCommand']('delete');const _0x1364d4=_0x533106['commands']['get']('deleteForward');_0x3081e1['enableCommand']('deleteForward',(_0x8d35f3,_0x3947d3={})=>{const _0x48b8d3=_0x533106['model']['createSelection'](_0x533106['model']['document']['selection']);_0x48b8d3['isCollapsed']&&_0x533106['model']['modifySelection'](_0x48b8d3,{'direction':'forward','unit':_0x3947d3['unit']});const _0x32c3a6=_0x48b8d3['getFirstRange'](),_0x442f6e=ot['fromRange'](_0x32c3a6);let _0x2fd82b;_0x8d35f3(_0x3947d3),_0x2fd82b='$graveyard'==_0x442f6e['root']['rootName']?_0x533106['model']['createRange'](_0x32c3a6['start']):_0x533106['model']['createRange'](_0x442f6e['start'],_0x442f6e['end']),_0x442f6e['detach'](),_0x533106['model']['enqueueChange'](_0x1364d4['buffer']['batch'],_0x23ec08=>{_0x1364d4['buffer']['lock'](),_0x23ec08['setSelection'](_0x23ec08['createRange'](_0x2fd82b['end'])),_0x1364d4['buffer']['unlock']();});});}},qt=class extends _0x548d2a{afterInit(){const _0x3803ea=this['editor'];if(!_0x3803ea['plugins']['has']('ListEditing'))return;const _0x448ec5=_0x3803ea['locale'],_0x50285c=_0x3803ea['plugins']['get']('TrackChangesEditing'),_0x1cd82e=_0x3803ea['plugins']['has']('TodoListEditing'),_0x1b199f=!!_0x3803ea['config']['get']('list.multiBlock');function _0x9d5c39(_0x5b5218){return{'type':'format','content':''+Ot(_0x448ec5,'*Set\x20format:*\x20%0',_0x5b5218)};}function _0x255d13(_0x28cd38){return{'type':'format','content':''+Ot(_0x448ec5,'*Remove\x20format:*\x20%0',_0x28cd38)};}_0x50285c['enableDefaultAttributesIntegration']('numberedList'),_0x50285c['enableDefaultAttributesIntegration']('bulletedList'),_0x50285c['enableDefaultAttributesIntegration']('customNumberedList'),_0x50285c['enableDefaultAttributesIntegration']('customBulletedList'),_0x50285c['enableDefaultAttributesIntegration']('indentList'),_0x50285c['enableDefaultAttributesIntegration']('outdentList'),_0x50285c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x50285c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1b199f&&(_0x50285c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x50285c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1cd82e&&(_0x50285c['enableDefaultAttributesIntegration']('todoList'),_0x50285c['enableDefaultAttributesIntegration']('checkTodoList'),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x77f90e=>{const {data:_0x3b2851}=_0x77f90e;if(_0x3b2851&&'todoListChecked'==_0x3b2851['key'])return{'type':'format','content':_0x3b2851['newValue']?Ot(_0x448ec5,'*Check\x20item*'):Ot(_0x448ec5,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5cbea3=>{if(_0x5cbea3['batch']['isUndo'])return!0x1;let _0x5eb877=!0x1;const _0x16bc44=_0x50285c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d7602=>'todoListChecked'===_0x50285c['_getAttributeKey'](_0x5d7602));for(const _0x1f90e6 of _0x16bc44)'todo'!=_0x1f90e6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x50285c['_findSuggestions'](_0x1f90e6['getFirstRange'](),'attribute')['find'](_0x5a9f40=>'listType'===_0x50285c['_getAttributeKey'](_0x5a9f40['suggestion']))||(_0x5cbea3['removeMarker'](_0x1f90e6['getFirstMarker']()),_0x5eb877=!0x0));return _0x5eb877;})),_0x50285c['descriptionFactory']['registerAttributeLabel']('listIndent',Ot(_0x448ec5,'FORMAT_INDENT'));const _0x3e4736={'type':'format','content':''};_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x480aee=>{const {data:_0x1a3e47}=_0x480aee;if(!_0x1a3e47||'listType'!=_0x1a3e47['key'])return;let _0x4d8148=_0x480aee['head'];for(;_0x4d8148;){if(_0x4d8148['data']&&(('listStyle'==_0x4d8148['data']['key']||'listMarkerStyle'==_0x4d8148['data']['key'])&&(_0x4d8148['data']['newValue']&&'default'!=_0x4d8148['data']['newValue']||'default'!=_0x4d8148['data']['oldValue']&&!_0x1a3e47['newValue'])||!_0x1b199f&&'$elementName'==_0x4d8148['data']['key']))return _0x3e4736;_0x4d8148=_0x4d8148['next'];}if(null==_0x1a3e47['newValue'])switch(_0x1a3e47['oldValue']){case'bulleted':return _0x255d13(Ot(_0x448ec5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x255d13(Ot(_0x448ec5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x255d13(Ot(_0x448ec5,'ELEMENT_TODO_LIST'));}switch(_0x1a3e47['newValue']){case'bulleted':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x9d5c39(Ot(_0x448ec5,'ELEMENT_TODO_LIST'));}}),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0x311dab=>{const {data:_0x4db833}=_0x311dab;if(_0x4db833&&'listIndent'==_0x4db833['key'])return null==_0x4db833['newValue']||null==_0x4db833['oldValue']&&0x0==_0x4db833['newValue']?_0x3e4736:void 0x0;}),_0x50285c['descriptionFactory']['registerDescriptionCallback'](_0xb97fef=>{if('attribute'!=_0xb97fef['type'])return;const {data:_0x28e6c2}=_0xb97fef;if(!_0x28e6c2||'listItemId'!=_0x28e6c2['key'])return;const _0x7ae84f=Yt(_0xb97fef);return'newValue'==_0x7ae84f?{'type':'format','content':Ot(_0x448ec5,'*Merge:*\x20list\x20item')}:'oldValue'==_0x7ae84f?{'type':'format','content':Ot(_0x448ec5,'*Split:*\x20list\x20item')}:_0x3e4736;}),_0x3803ea['model']['document']['registerPostFixer'](_0x5ee3b6=>this['listItemIdFixer'](_0x5ee3b6)),_0x3803ea['model']['document']['registerPostFixer'](_0x17bdf7=>this['noTrackChangesFixer'](_0x17bdf7)),_0x3803ea['model']['document']['on']('change:data',(_0x5d5bbe,_0x3ffc01)=>{if(_0x3ffc01['isUndo']||!_0x3ffc01['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}listItemIdFixer(_0x29018b){if(_0x29018b['batch']['isUndo']||!_0x29018b['batch']['isLocal'])return!0x1;let _0x357083=!0x1;const _0x137a54=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x150b37=>_0x150b37['data']&&'listItemId'==_0x150b37['data']['key'])['filter'](_0x388783=>_0x388783['data']['newValue']&&_0x388783['data']['oldValue']);for(const _0x403279 of _0x137a54)Yt(_0x403279)||(_0x29018b['removeMarker'](_0x403279['getFirstMarker']()),_0x357083=!0x0);return _0x357083;}['noTrackChangesFixer'](_0x2e32cd){if(_0x2e32cd['batch']['isUndo']||!_0x2e32cd['batch']['isLocal'])return!0x1;const _0x3c6b3b=this['editor']['model']['document']['differ'],_0x344ca8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x344ca8['trackChangesCommand']['value'])return!0x1;let _0x2d72f1=!0x1;const _0x5157b3=new Set(['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes']),_0x65170b=_0x3c6b3b['getChanges']()['filter'](_0x4abc67=>'attribute'==_0x4abc67['type'])['filter'](_0x557c53=>_0x5157b3['has'](_0x557c53['attributeKey']));if(0x0==_0x65170b['length'])return _0x2d72f1;const _0x12a94d=new Set(_0x3c6b3b['getMarkersToAdd']()['filter'](_0x17fbdd=>{if(!_0x17fbdd['name']['startsWith']('suggestion:attribute:'))return!0x1;const _0x3110bc=et(_0x17fbdd['name'])['subType']['split']('|')[0x0];return _0x5157b3['has'](_0x3110bc);})['map'](_0xc75954=>et(_0xc75954['name'])['id']));for(const _0x494b6c of _0x65170b){const _0x38631d=_0x344ca8['_findSuggestions'](_0x494b6c['range'],'attribute')['filter'](_0x5e8bb4=>{if(_0x5e8bb4['meta']['isNextTo'])return!0x1;if(_0x12a94d['has'](_0x5e8bb4['suggestion']['id']))return!0x1;const _0x282a50=_0x344ca8['_getAttributeKey'](_0x5e8bb4['suggestion']);return _0x5157b3['has'](_0x282a50);})['map'](_0x318936=>_0x318936['suggestion']);if(_0x38631d['length']){for(const _0x4eb5fd of _0x38631d)_0x2e32cd['removeMarker'](_0x4eb5fd['getFirstMarker']());_0x2d72f1=!0x0;}}return _0x2d72f1;}['assureChains'](){const _0x103687=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f5114=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle','htmlLiAttributes','htmlUlAttributes','htmlOlAttributes'];let _0x2cc53c;const _0x199deb=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ab7f3=>{if(_0x5ab7f3['data']['oldRange']||!_0x5ab7f3['data']['newRange'])return null;if(!_0x5ab7f3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x57374c}=et(_0x5ab7f3['name']);if(!_0x103687['hasSuggestion'](_0x57374c))return null;const _0x47a899=_0x103687['getSuggestion'](_0x57374c);return _0x1f5114['includes'](_0x47a899['data']['key']);})['map'](_0x31c6ec=>{const {id:_0x61760f}=et(_0x31c6ec['name']),_0x799935=_0x103687['getSuggestion'](_0x61760f);return _0x2cc53c=_0x799935['attributes']['groupId'],_0x799935['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x199deb['size'])return;const _0x2bccd4=_0x103687['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x49c273=>'attribute'==_0x49c273['type']&&_0x49c273['data']&&_0x1f5114['includes'](_0x49c273['data']['key'])&&_0x49c273['attributes']['groupId']!=_0x2cc53c)['map'](_0xc3807b=>({'listItem':_0xc3807b['getFirstRange']()['start']['nodeAfter'],'groupId':_0xc3807b['attributes']['groupId']})),_0x3a4564=new Set();for(const {groupId:_0x1e7442,listItem:_0x34ca46}of _0x2bccd4)_0x199deb['has'](_0x34ca46)&&_0x3a4564['add'](_0x1e7442);for(const _0x90b4de of _0x103687['getSuggestions']())_0x3a4564['has'](_0x90b4de['attributes']['groupId'])&&_0x90b4de['setAttribute']('groupId',_0x2cc53c);}_supportLegacySuggestions(){const _0x3566a4=this['editor'],_0x57d0f7=_0x3566a4['locale'],_0x3b11d3=_0x3566a4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b11d3['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x33de8d,_0x245827){const _0x3c80a9=[];for(let _0x1bc4b5 of _0x33de8d)_0x1bc4b5['start']['nodeAfter']===_0x1bc4b5['end']['parent']&&(_0x1bc4b5=_0x3566a4['model']['createRange'](_0x3566a4['model']['createPositionAt'](_0x1bc4b5['start']['nodeAfter'],0x0))),_0x3c80a9['push'](_0x1bc4b5);_0x3566a4['model']['change'](_0x188710=>{const _0x14f674=_0x3566a4['model']['document']['selection'],_0x52d3be=Array['from'](_0x14f674['getRanges']())['map'](_0x22ba7a=>ot['fromRange'](_0x22ba7a));_0x188710['setSelection'](_0x3c80a9),_0x3566a4['commands']['get'](_0x245827['commandName'])['refresh'](),_0x245827['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3566a4['execute'](_0x245827['commandName'],..._0x245827['commandParams']),_0x188710['setSelection'](_0x52d3be);for(const _0x1fc655 of _0x52d3be)_0x1fc655['detach']();});}),_0x3b11d3['descriptionFactory']['registerElementLabel'](function(_0x2efc07){const _0x463612=!_0x3566a4['model']['schema']['isObject'](_0x2efc07),_0x560560=_0x2efc07['previousSibling'],_0x6c250f=_0x2efc07['nextSibling'],_0x353d3d=_0x2efc07['getAttribute']('listItemId'),_0x8fa336=!_0x560560||_0x560560['getAttribute']('listItemId')!==_0x353d3d,_0x4b4ef0=!_0x6c250f||_0x6c250f['getAttribute']('listItemId')!==_0x353d3d;return _0x463612&&Boolean(_0x353d3d)&&_0x8fa336&&_0x4b4ef0;},_0x398c39=>Ot(_0x57d0f7,'ELEMENT_LIST_ITEM',_0x398c39));}_registerLegacyDescription(){const _0x2515bc=this['editor'],_0xd5d8bd=_0x2515bc['locale'];function _0x55b889(_0x1dec84){const _0x5c2fcc=_0x2515bc['commands']['get']('bulletedList')['value'],_0x4af828=_0x2515bc['commands']['get']('numberedList')['value'];return'numberedList'===_0x1dec84?_0x5c2fcc:_0x4af828;}_0x2515bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x48a0b9){if('formatBlock'!=_0x48a0b9['type'])return;const {data:_0x5bd5b0}=_0x48a0b9;if(!_0x5bd5b0)return;let _0x3f1c61,_0x2d8e17,_0x5da99c,_0x146af0;switch(_0x5bd5b0['commandName']){case'bulletedList':_0x5da99c=_0x5bd5b0['commandParams'][0x0]['forceValue'],_0x146af0=_0x55b889(_0x5bd5b0['commandName']),_0x3f1c61=_0x5da99c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x146af0&&_0x2515bc['config']['get']('list.multiBlock')||(_0x3f1c61='*Change\x20to:*\x20%0'),_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5da99c=_0x5bd5b0['commandParams'][0x0]['forceValue'],_0x146af0=_0x55b889(_0x5bd5b0['commandName']),_0x3f1c61=_0x5da99c?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x146af0&&_0x2515bc['config']['get']('list.multiBlock')||(_0x3f1c61='*Change\x20to:*\x20%0'),_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3f1c61='*Indent:*\x20%0',_0x2d8e17={'type':'format','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3f1c61=function(_0x1c928b){const _0x5f235e=_0x1c928b['getFirstRange']();let _0x50ad58=_0x5f235e['start']['nodeAfter'];for(;_0x50ad58&&_0x5f235e['containsItem'](_0x50ad58);){if(_0x50ad58['getAttribute']('listIndent')>0x0)return!0x1;_0x50ad58=_0x50ad58['nextSibling'];}return!0x0;}(_0x48a0b9)?Ot(_0xd5d8bd,'*Format:*\x20remove\x20from\x20%0',Ot(_0xd5d8bd,function(_0x949512){return'ELEMENT_'+_0x949512['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x48a0b9))):Ot(_0xd5d8bd,'*Outdent:*\x20%0',Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM')),_0x2d8e17={'type':'format','content':_0x3f1c61};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5bd5b0['multipleBlocks']&&(_0x3f1c61='*Merge:*\x20%0',_0x2d8e17={'type':'deletion','content':Ot(_0xd5d8bd,_0x3f1c61,Ot(_0xd5d8bd,'ELEMENT_LIST_ITEM'))});}return _0x2d8e17;});}};function Yt(_0x5621fd){let _0x459df5=_0x5621fd['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x459df5;){const _0x288933=_0x459df5['getAttribute']('listItemId');if(!_0x288933)return!0x1;if(_0x288933==_0x5621fd['data']['newValue'])return'newValue';if(_0x288933==_0x5621fd['data']['oldValue'])return'oldValue';_0x459df5=_0x459df5['previousSibling'];}return!0x1;}var Qt=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2dfa21=this['editor']['config']['get']('list.properties'),_0x1f1b03=this['editor']['plugins']['get']('TrackChangesEditing');_0x2dfa21['styles']&&_0x1f1b03['enableDefaultAttributesIntegration']('listStyle'),_0x2dfa21['reversed']&&_0x1f1b03['enableDefaultAttributesIntegration']('listReversed'),_0x2dfa21['startIndex']&&_0x1f1b03['enableDefaultAttributesIntegration']('listStart');const _0x166a09={'type':'format','content':''};_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4261cc=this['editor']['locale'];_0x1f1b03['descriptionFactory']['registerAttributeLabel']('listReversed',Ot(_0x4261cc,'FORMAT_LIST_REVERSED')),_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](_0x1de4d3=>{const {data:_0x49d1b2}=_0x1de4d3;if(_0x49d1b2&&'listReversed'==_0x49d1b2['key'])return null==_0x49d1b2['newValue']||0x0==_0x49d1b2['newValue']&&null==_0x49d1b2['oldValue']?_0x166a09:void 0x0;}),_0x1f1b03['descriptionFactory']['registerAttributeLabel']('listStart',Ot(_0x4261cc,'FORMAT_LIST_START')),_0x1f1b03['descriptionFactory']['registerDescriptionCallback'](_0x53f8a4=>{const {data:_0x33b662}=_0x53f8a4;if(_0x33b662&&'listStart'==_0x33b662['key'])return null==_0x33b662['newValue']||0x1==_0x33b662['newValue']&&null==_0x33b662['oldValue']?_0x166a09:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x44bdf4=>{if(_0x44bdf4['batch']['isUndo'])return!0x1;let _0x5647c4=!0x1;const _0x495967=_0x1f1b03['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21d97e=>{const _0x1b1a04=_0x1f1b03['_getAttributeKey'](_0x21d97e);return'listStart'==_0x1b1a04||'listReversed'==_0x1b1a04;});for(const _0x37b939 of _0x495967){const _0x344f9b=_0x37b939['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');'numbered'!=_0x344f9b&&'customNumbered'!=_0x344f9b&&(_0x1f1b03['_findSuggestions'](_0x37b939['getFirstRange'](),'attribute')['find'](_0x2572f6=>'listType'==_0x1f1b03['_getAttributeKey'](_0x2572f6['suggestion']))||(_0x44bdf4['removeMarker'](_0x37b939['getFirstMarker']()),_0x5647c4=!0x0));}return _0x5647c4;}),this['_registerLegacyDescription']();}handleDescriptions(_0x385f7e){const _0x43f459=this['editor']['locale'],{data:_0x22cb45}=_0x385f7e,_0x30a0ff={'type':'format','content':''};if(!_0x22cb45||'listStyle'!=_0x22cb45['key'])return;if(!_0x22cb45['oldValue'])return'default'==_0x22cb45['newValue']?_0x30a0ff:{'type':'format','content':''+Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['newValue'])))};if(!_0x22cb45['newValue']){if('default'==_0x22cb45['oldValue'])return _0x30a0ff;let _0x536a95=_0x385f7e['head'];for(;_0x536a95;){if(_0x536a95['data']&&'listType'==_0x536a95['data']['key']&&_0x536a95['data']['newValue'])return _0x30a0ff;_0x536a95=_0x536a95['next'];}return{'type':'format','content':''+Ot(_0x43f459,'*Remove\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['oldValue'])))};}if('default'!=_0x22cb45['newValue'])return{'type':'format','content':''+Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,this['_getTranslationKeyForListStyle'](_0x22cb45['newValue'])))};let _0x5ab35e=_0x385f7e['head'];for(;_0x5ab35e;){if(_0x5ab35e['data']&&'listType'==_0x5ab35e['data']['key']&&_0x5ab35e['data']['newValue']&&_0x5ab35e['data']['oldValue'])return _0x30a0ff;_0x5ab35e=_0x5ab35e['next'];}return{'type':'format','content':Ot(_0x43f459,'*Set\x20format:*\x20%0',Ot(_0x43f459,'ELEMENT_'+_0x385f7e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}_registerLegacyDescription(){const _0x31bbd9=this['editor'],_0x9b3aaa=_0x31bbd9['locale'];_0x31bbd9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43390c=>{if('formatBlock'!=_0x43390c['type'])return;const {data:_0x85535a}=_0x43390c;if(!_0x85535a)return;let _0x21d822,_0x4ddb22;switch(_0x85535a['commandName']){case'listStyle':_0x21d822='*Change\x20to:*\x20%0',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822,Ot(_0x9b3aaa,this['_getTranslationKeyForListStyle'](_0x85535a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x21d822=_0x85535a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822)};break;case'listStart':_0x21d822='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ddb22={'type':'format','content':Ot(_0x9b3aaa,_0x21d822,_0x85535a['commandParams'][0x0]['startIndex'])};}return _0x4ddb22;});}_getTranslationKeyForListStyle(_0x3e1841){return'ELEMENT_'+(_0x149319=_0x3e1841,Zt['includes'](_0x149319)?'bulleted':Jt['includes'](_0x149319)?'numbered':null)['toUpperCase']()+'_LIST_'+_0x3e1841['toUpperCase']()['replace'](/-/g,'_');var _0x149319;}};const Zt=['disc','circle','square'],Jt=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];var te=class extends _0x548d2a{afterInit(){const _0x2fd17e=this['editor'];_0x2fd17e['commands']['get']('emoji')&&_0x2fd17e['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}},ee=class extends _0x548d2a{static get requires(){return[Tt];}init(){const _0x580699=this['editor'],_0x5ca5ff=_0x580699['plugins']['get']('TrackChangesEditing'),_0x18ea3a=_0x580699['commands']['get']('enter');_0x5ca5ff['enableCommand']('enter',()=>{_0x580699['model']['change'](_0x288c46=>{const _0x241b1a=_0x580699['model']['document']['selection'],_0x5e03d0=_0x241b1a['getFirstPosition'](),_0x4f6b96=ot['fromRange'](_0x241b1a['getFirstRange']());if(_0x18ea3a['enterBlock'](_0x288c46)){const _0x4bdfb3=_0x580699['model']['createPositionAt'](_0x5e03d0['parent']['nextSibling'],0x0),_0x490b0e=_0x288c46['createRange'](_0x5e03d0,_0x4bdfb3);_0x5ca5ff['markInsertion'](_0x490b0e);}else _0x288c46['setSelection'](_0x288c46['createRange'](_0x4f6b96['end']));_0x4f6b96['detach'](),_0x18ea3a['fire']('afterExecute',{'writer':_0x288c46});});});}},ne=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1b3f7d=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b3f7d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1b3f7d['enableCommand']('findNext'),_0x1b3f7d['enableCommand']('findPrevious'),_0x1b3f7d['enableCommand']('replace'),_0x1b3f7d['enableCommand']('replaceAll');}['handleFindCommand'](_0xdac891,_0x40e50d,_0x3c8f67={}){const _0x4fdd49=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xdac891(_0x2f74dc=>{let _0x4376f7=('string'==typeof _0x40e50d?_0x4fdd49['findByTextCallback'](_0x40e50d,_0x3c8f67):_0x40e50d)(_0x2f74dc);Array['isArray'](_0x4376f7)&&(_0x4376f7={'results':_0x4376f7,'searchText':'string'==typeof _0x40e50d?_0x40e50d:''});const _0x15712b=_0x4376f7['results']['filter'](_0x461eaa=>!0x1===this['_isInDeletionRange'](_0x461eaa,_0x2f74dc['item']));return{..._0x4376f7,'results':_0x15712b};},_0x3c8f67);}_isInDeletionRange(_0x2ff009,_0x28162b){const _0x27cf83=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28162b,_0x2ff009['start']),this['editor']['model']['createPositionAt'](_0x28162b,_0x2ff009['end']));for(const _0x547745 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x27cf83['getIntersection'](_0x547745['getRange']()))return!0x0;return!0x1;}};const ie=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];var se=class extends _0x548d2a{afterInit(){const _0x384ffa=this['editor']['locale'],_0x59e503=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5d56d1,commandName:_0x509060}of ie)this['editor']['plugins']['has'](_0x5d56d1)&&_0x59e503['enableDefaultAttributesIntegration'](_0x509060);_0x59e503['descriptionFactory']['registerAttributeLabel']('fontSize',Ot(_0x384ffa,'FORMAT_FONT_SIZE')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontFamily',Ot(_0x384ffa,'FORMAT_FONT_FAMILY')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontColor',Ot(_0x384ffa,'FORMAT_FONT_COLOR')),_0x59e503['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',Ot(_0x384ffa,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x43f598=this['editor'],_0x2e0d34=_0x43f598['locale'];_0x43f598['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x65f3c8=>{const _0x3a2fb3=_0x2e0d34['t'];if('formatInline'!=_0x65f3c8['type'])return;const {data:_0x18909b}=_0x65f3c8;if(null!=_0x18909b){if('fontSize'==_0x18909b['commandName']){const _0x57fbf5=_0x18909b['commandParams'][0x0]['value'];if(_0x57fbf5){const _0x4b209c=_0x3a2fb3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x22c04=>_0x22c04['model']==_0x57fbf5)['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20size:*\x20%0',_0x4b209c)};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x18909b['commandName']){const _0xd565c5=_0x18909b['commandParams'][0x0]['value'];return _0xd565c5?{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20family:*\x20%0',_0xd565c5)}:{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20family*')};}if('fontColor'==_0x18909b['commandName']){const _0x111579=_0x18909b['commandParams'][0x0]['value'];if(_0x111579){const _0x2f4370=_0xb174e6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x40a7ac=>_0x40a7ac['model']==_0x111579);let _0x4b4411=_0x111579,_0x10f4b1='';return _0x2f4370&&(_0x4b4411=_0x2f4370['label'],_0x10f4b1=_0x3a2fb3(_0x4b4411)['toLowerCase']()),{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20color:*\x20%0',_0x10f4b1)['trim'](),'color':{'value':_0x111579,'title':_0x10f4b1||_0x4b4411}};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x18909b['commandName']){const _0x32a4bf=_0x18909b['commandParams'][0x0]['value'];if(_0x32a4bf){const _0x3a46a1=_0xb174e6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4d372a=>_0x4d372a['model']==_0x32a4bf);let _0x1597b0=_0x32a4bf,_0x4c15f6='';return _0x3a46a1&&(_0x1597b0=_0x3a46a1['label'],_0x4c15f6=_0x3a2fb3(_0x1597b0)['toLowerCase']()),{'type':'format','content':Ot(_0x2e0d34,'*Set\x20font\x20background\x20color:*\x20%0',_0x4c15f6)['trim'](),'color':{'value':_0x32a4bf,'title':_0x4c15f6||_0x1597b0}};}return{'type':'format','content':Ot(_0x2e0d34,'*Reset\x20font\x20background\x20color*')};}}});}},re=class extends _0x548d2a{afterInit(){const {plugins:_0x2723c5}=this['editor'];_0x2723c5['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x2723c5['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}_registerFootnotesPropertiesEditingIntegration(){const {locale:_0x3a9ce4,plugins:_0x54fcce,commands:_0x71d9c1}=this['editor'],_0x204ba7=_0x54fcce['get']('TrackChangesEditing');_0x71d9c1['get']('footnotesStyle')&&_0x204ba7['enableDefaultAttributesIntegration']('footnotesStyle'),_0x71d9c1['get']('footnotesStart')&&_0x204ba7['enableDefaultAttributesIntegration']('footnotesStart'),_0x204ba7['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',Ot(_0x3a9ce4,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x204ba7['descriptionFactory']['registerAttributeLabel']('footnotesListStart',Ot(_0x3a9ce4,'FORMAT_FOOTNOTES_LIST_START'));}_registerFootnotesEditingIntegration(){const _0x53c7c5=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4b97a6,commands:_0x5c6def}=this['editor'];_0x5c6def['get']('insertFootnote')&&_0x53c7c5['enableCommand']('insertFootnote'),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnoteRef',_0x2ad76e=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTE_REF',_0x2ad76e)),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x458bf4=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTE_DEFINITION',_0x458bf4)),_0x53c7c5['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x1bfb0c=>Ot(_0x4b97a6,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x1bfb0c));}},oe=class extends _0x548d2a{afterInit(){const _0x24283a=this['editor'],_0xfd30e7=_0x24283a['plugins']['get']('TrackChangesEditing'),_0x7c9b66=_0x24283a['commands']['get']('copyFormat'),_0x141a24=_0x24283a['commands']['get']('pasteFormat');_0x7c9b66&&_0x141a24&&(_0xfd30e7['enableDefaultAttributesIntegration']('pasteFormat'),_0xfd30e7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4f8957=this['editor'],_0x5cec0a=_0x4f8957['locale'];_0x4f8957['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d37a5=>{if('formatBlock'!=_0x1d37a5['type']&&'formatInline'!=_0x1d37a5['type'])return;const {data:_0x5c72f2}=_0x1d37a5;if(_0x5c72f2&&'pasteFormat'===_0x5c72f2['commandName']){const _0x2fb898=[],_0x163cfb=_0x5c72f2['commandParams'][0x0];for(const [_0x362507,_0x2f6cc0]of Object['entries'](_0x163cfb))_0x2fb898['push'](ae(_0x4f8957,_0x362507,_0x2f6cc0));return _0x2fb898['length']?{'type':'format','content':Ot(_0x5cec0a,'*Set\x20format\x20to:*\x20%0',_0x2fb898['join'](',\x20'))}:{'type':'format','content':Ot(_0x5cec0a,'*Remove\x20all\x20formatting*')};}});}};function ae(_0x4cf625,_0x38a7b1,_0x42fec5){const _0x1d793d=_0x4cf625['locale']['t'],_0x232098=_0x38a7b1['split'](/(?=[A-Z])/)['join']('\x20'),_0x35895d=_0x1d793d(_0x232098['charAt'](0x0)['toUpperCase']()+_0x232098['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x42fec5)return _0x35895d;if('fontColor'===_0x38a7b1||'fontBackgroundColor'===_0x38a7b1){const _0x2604ce=_0xb174e6(_0x4cf625['config']['get']('fontColor.colors'))['find'](_0x5dd6eb=>_0x5dd6eb['model']==_0x42fec5);return _0x35895d+'\x20('+(_0x2604ce?_0x1d793d(_0x2604ce['label'])['toLowerCase']():_0x42fec5)+')';}if('fontSize'===_0x38a7b1&&isNaN(parseFloat(_0x42fec5))){const _0x55c909=_0x4cf625['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4cf625['config']['get']('fontSize.options'))['find'](_0x34195e=>_0x34195e['model']==_0x42fec5);return _0x35895d+'\x20('+(_0x55c909?_0x1d793d(_0x55c909['title'])['toLowerCase']():_0x42fec5)+')';}return _0x35895d+'\x20('+_0x42fec5+')';}var ce=class extends _0x548d2a{afterInit(){const _0x962fd1=this['editor'];if(!_0x962fd1['plugins']['has']('GeneralHtmlSupport')||!_0x962fd1['plugins']['has']('DataSchema'))return;const _0x2b2136=_0x962fd1['plugins']['get']('TrackChangesEditing'),_0x5b8c46=_0x962fd1['plugins']['get']('GeneralHtmlSupport'),_0x18be86=_0x962fd1['plugins']['get']('DataSchema'),_0x2f1747=_0x962fd1['locale'],_0x3b443f=new Set(['htmlContent']);for(const _0x3ae361 of _0x18be86['getDefinitionsForView'](/.*/,!0x1)){const _0x24b67a=_0x3ae361['view'],_0x16d49f=_0x5b8c46['getGhsAttributeNameForElement'](_0x24b67a);_0x3b443f['add'](_0x16d49f),!_0x3ae361['isInline']||_0x3ae361['isObject']||'appliesToBlock'in _0x3ae361&&_0x3ae361['appliesToBlock']||_0x2b2136['descriptionFactory']['registerAttributeLabel'](_0x16d49f,_0x24b67a),_0x3ae361['model']['startsWith']('html')&&_0x2b2136['descriptionFactory']['registerElementLabel'](_0x3ae361['model'],_0x2f7144=>Ot(_0x2f1747,'ELEMENT_HTML_TAG',[_0x2f7144,_0x24b67a]));}_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlContent',Ot(_0x2f1747,'FORMAT_RAW_HTML_CONTENT')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlLiAttributes',Ot(_0x2f1747,'FORMAT_HTML_LIST_ITEM')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlUlAttributes',Ot(_0x2f1747,'FORMAT_HTML_BULLETED_LIST')),_0x2b2136['descriptionFactory']['registerAttributeLabel']('htmlOlAttributes',Ot(_0x2f1747,'FORMAT_HTML_NUMBERED_LIST')),_0x2b2136['descriptionFactory']['registerDescriptionCallback'](_0x1bdcea=>{if('attribute'!==_0x1bdcea['type'])return;const _0x395115=_0x1bdcea['data'];if(!_0x395115||!_0x3b443f['has'](_0x395115['key']))return;if('htmlContent'===_0x395115['key'])return{'type':'format','content':Ot(_0x2f1747,'*Change\x20%0\x20content*',Ot(_0x2f1747,'ELEMENT_RAW_HTML'))};const {setItems:_0x425f33,removeItems:_0x3aca9a}=function(_0x4624f5,_0x1f28a4,_0x2f9e42){const _0x5011f1=[],_0x6c92a9=[],_0x893cfd=_0x4624f5['styles']??{},_0x1b1ea8=_0x1f28a4['styles']??{};for(const _0x264055 of new Set([...Object['keys'](_0x893cfd),...Object['keys'](_0x1b1ea8)]))_0x893cfd[_0x264055]!==_0x1b1ea8[_0x264055]&&(void 0x0===_0x1b1ea8[_0x264055]?_0x6c92a9['push'](_0x264055):_0x5011f1['push'](_0x264055+'\x20('+_0x1b1ea8[_0x264055]+')'));const _0x47fc23=Ot(_0x2f9e42,'FORMAT_HTML_CLASS'),_0x2121b6=new Set(_0x4624f5['classes']??[]),_0x5d9038=new Set(_0x1f28a4['classes']??[]),_0x45c3ae=[..._0x5d9038]['some'](_0x5266b5=>!_0x2121b6['has'](_0x5266b5)),_0x3aff5c=[..._0x2121b6]['some'](_0x5e3f1c=>!_0x5d9038['has'](_0x5e3f1c));_0x45c3ae&&_0x5011f1['push'](_0x47fc23),_0x3aff5c&&_0x6c92a9['push'](_0x47fc23);const _0x135029=Ot(_0x2f9e42,'FORMAT_HTML_ATTRIBUTE'),_0x4f2024=_0x4624f5['attributes']??{},_0x47bb53=_0x1f28a4['attributes']??{};let _0x7e30e2=!0x1,_0x3d0020=!0x1;for(const _0x5aba11 of new Set([...Object['keys'](_0x4f2024),...Object['keys'](_0x47bb53)]))_0x4f2024[_0x5aba11]!==_0x47bb53[_0x5aba11]&&(void 0x0===_0x47bb53[_0x5aba11]?_0x3d0020=!0x0:_0x7e30e2=!0x0);return _0x7e30e2&&_0x5011f1['push'](_0x135029),_0x3d0020&&_0x6c92a9['push'](_0x135029),{'setItems':_0x5011f1,'removeItems':_0x6c92a9};}(_0x395115['oldValue']??{},_0x395115['newValue']??{},_0x2f1747);if(!_0x425f33['length']&&!_0x3aca9a['length'])return;const _0x18a35d=[];return _0x425f33['length']&&_0x18a35d['push'](Ot(_0x2f1747,'*Set\x20format:*\x20%0',_0x425f33['join'](',\x20'))),_0x3aca9a['length']&&_0x18a35d['push'](Ot(_0x2f1747,'*Remove\x20format:*\x20%0',_0x3aca9a['join'](',\x20'))),{'type':'format','content':_0x18a35d['join']('\x0a')};});}},le=class extends _0x548d2a{_headingOptions;afterInit(){const _0x41c2a2=this['editor'];if(!_0x41c2a2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x41c2a2['config']['get']('heading.options');const _0x14b60b=_0x41c2a2['locale'],_0x4fde14=_0x41c2a2['plugins']['get']('TrackChangesEditing');_0x4fde14['enableDefaultAttributesIntegration']('heading');for(const _0x1c082b of this['_headingOptions'])'paragraph'!=_0x1c082b['model']&&_0x4fde14['descriptionFactory']['registerElementLabel'](_0x1c082b['model'],_0x4f3305=>{const _0xffcb10=this['_getHeadingLevel'](_0x1c082b['model']);return null!==_0xffcb10?_0x50ad2b(_0x4f3305,_0xffcb10):_0x47ab8b(_0x4f3305,_0x1c082b['title']);});function _0x50ad2b(_0xf347ad,_0x673d08){return Ot(_0x14b60b,'ELEMENT_HEADING',[_0xf347ad,_0x673d08]);}function _0x47ab8b(_0x4956f5,_0x5244ed){return Ot(_0x14b60b,'ELEMENT_HEADING_CUSTOM',[_0x4956f5,_0x5244ed]);}this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x872267=this['editor'],_0x4542e1=_0x872267['locale'];function _0x15a3f8(_0x1cb2d5,_0x342678){return Ot(_0x4542e1,'ELEMENT_HEADING_CUSTOM',[_0x1cb2d5,_0x342678]);}_0x872267['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3123d3=>{if('formatBlock'!=_0x3123d3['type'])return;const {data:_0x2378a6}=_0x3123d3;if(_0x2378a6&&'heading'==_0x2378a6['commandName']){const _0x2647e9=_0x2378a6['commandParams'][0x0]['value'],_0x55625e=this['_getHeadingLevel'](_0x2647e9);if(null!==_0x55625e)return{'type':'format','content':Ot(_0x4542e1,'*Change\x20to:*\x20%0',(_0x36d3ac=0x1,_0x4405a1=_0x55625e,Ot(_0x4542e1,'ELEMENT_HEADING',[_0x36d3ac,_0x4405a1])))};const _0x4f9ea5=this['_headingOptions']['find'](_0x45a08e=>_0x45a08e['model']===_0x2647e9)['title'];return{'type':'format','content':Ot(_0x4542e1,'*Change\x20to:*\x20%0',_0x15a3f8(0x1,_0x4f9ea5))};}var _0x36d3ac,_0x4405a1;});}_getHeadingLevel(_0x343206){const _0x45412a=_0x343206['match'](/^heading(\d+)/);if(_0x45412a)return _0x45412a[0x1];const _0x4751bd=this['_headingOptions']?.['find'](_0x3ddc75=>_0x3ddc75['model']==_0x343206);if(_0x4751bd&&_0x4751bd['view']){const _0x17d731=_0x4751bd['view'],_0x260a65=(_0x17d731['name']??_0x17d731)['match'](/^h(\d+)/);if(_0x260a65)return _0x260a65[0x1];}return null;}},ue=class extends _0x548d2a{afterInit(){const _0x1391be=this['editor'];if(!_0x1391be['plugins']['has']('HighlightEditing'))return;const _0x1960eb=_0x1391be['plugins']['get']('TrackChangesEditing'),_0x5f1452=_0x1391be['locale'];_0x1960eb['enableDefaultAttributesIntegration']('highlight'),_0x1960eb['descriptionFactory']['registerAttributeLabel']('highlight',Ot(_0x5f1452,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x101ed1=this['editor'],_0x420e6d=_0x101ed1['locale'];_0x101ed1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x253cfc=>{if('formatInline'!=_0x253cfc['type'])return;const {data:_0x1bc3dc}=_0x253cfc;if(_0x1bc3dc&&'highlight'==_0x1bc3dc['commandName']){const _0x46a89e=_0x420e6d['t'],_0x49e3fd=_0x1bc3dc['commandParams'][0x0]['value'];if(_0x49e3fd){const _0x285fac=_0x101ed1['config']['get']('highlight.options')['find'](_0x38325c=>_0x38325c['model']==_0x49e3fd),_0x1e5a98=_0x46a89e(_0x285fac['title'])['toLowerCase']();return{'type':'format','content':Ot(_0x420e6d,'*Set\x20highlight:*\x20%0',_0x1e5a98),'color':{'value':_0x285fac['color'],'title':_0x285fac['title']}};}return{'type':'format','content':Ot(_0x420e6d,'*Remove\x20highlight*',Ot(_0x420e6d,'FORMAT_HIGHLIGHT'))};}});}},de=class extends _0x548d2a{afterInit(){const _0x28e41b=this['editor'];if(!_0x28e41b['plugins']['has']('HorizontalLineEditing'))return;_0x28e41b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1808c4=_0x28e41b['plugins']['get']('TrackChangesEditing'),_0x4e60e5=_0x28e41b['locale'];_0x1808c4['descriptionFactory']['registerElementLabel']('horizontalLine',_0x43331d=>Ot(_0x4e60e5,'ELEMENT_HORIZONTAL_LINE',_0x43331d));}},he=class extends _0x548d2a{afterInit(){const _0x27bba3=this['editor'];if(!_0x27bba3['plugins']['has']('HtmlEmbed'))return;const _0x287399=_0x27bba3['plugins']['get']('TrackChangesEditing'),_0x46e809=_0x27bba3['locale'];_0x287399['descriptionFactory']['registerElementLabel']('rawHtml',_0x292ea8=>Ot(_0x46e809,'ELEMENT_HTML_EMBED',_0x292ea8)),_0x287399['enableDefaultAttributesIntegration']('htmlEmbed'),_0x287399['descriptionFactory']['registerDescriptionCallback'](_0x23f0aa=>{if('attribute'!=_0x23f0aa['type'])return;const {data:_0x14badc}=_0x23f0aa;if(_0x14badc&&'value'==_0x14badc['key']&&_0x23f0aa['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x264bc2=Ot(_0x46e809,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x46e809,'*Change\x20%0\x20content*',_0x264bc2)};}}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5114e2=this['editor'],_0x7a4ac6=_0x5114e2['locale'];_0x5114e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x366d5f=>{if('formatBlock'!=_0x366d5f['type'])return;const {data:_0x5966f9}=_0x366d5f;if(_0x5966f9&&'htmlEmbed'==_0x5966f9['commandName']){const _0x32de10=Ot(_0x7a4ac6,'ELEMENT_HTML_EMBED');return{'type':'format','content':Ot(_0x7a4ac6,'*Change\x20%0\x20content*',_0x32de10)};}});}},ge=class extends _0x548d2a{afterInit(){const _0x2c4c21=this['editor'];if(!_0x2c4c21['plugins']['has']('ImageEditing'))return;const _0x573cea=_0x2c4c21['plugins']['get']('TrackChangesEditing'),_0x4c642a=_0x2c4c21['plugins']['get']('ImageUtils'),_0x1f797c=_0x2c4c21['locale'];_0x573cea['enableCommand']('insertImage'),_0x573cea['descriptionFactory']['registerElementLabel']('imageBlock',_0x20d06c=>Ot(_0x1f797c,'ELEMENT_IMAGE',_0x20d06c)),_0x573cea['descriptionFactory']['registerElementLabel']('imageInline',_0x48f607=>Ot(_0x1f797c,'ELEMENT_INLINE_IMAGE',_0x48f607)),_0x573cea['descriptionFactory']['registerElementLabel']('caption',()=>Ot(_0x1f797c,'ELEMENT_CAPTION')),_0x2c4c21['plugins']['has']('ImageUploadEditing')&&_0x573cea['enableCommand']('uploadImage'),_0x2c4c21['plugins']['has']('ImageBlockEditing')&&_0x2c4c21['plugins']['has']('ImageInlineEditing')&&(_0x573cea['enableCommand']('imageTypeInline',(_0x11ee76,_0x1df685)=>{const _0x156f14=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']);_0x2c4c21['model']['change'](()=>{_0x573cea['markBlockFormat'](_0x156f14,{'commandName':'imageTypeInline','commandParams':[_0x1df685]},[],'convertBlockImageToInline');});}),_0x573cea['enableCommand']('imageTypeBlock',(_0x51d2d1,_0x122e11)=>{_0x2c4c21['model']['change'](_0x473d84=>{let _0xec8e80=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x1fab70=_0x473d84['createRangeOn'](_0xec8e80);const _0x2d7e4a=rt['fromPosition'](_0x1fab70['start'],'toPrevious'),_0x387f34=rt['fromPosition'](_0x1fab70['end'],'toNext');_0x573cea['forceDefaultExecution'](()=>_0x51d2d1(_0x122e11)),_0xec8e80=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x1fab70=_0x473d84['createRangeOn'](_0xec8e80);const _0x4d4450=_0x473d84['createRange'](_0x2d7e4a,_0x387f34);_0x2d7e4a['detach'](),_0x387f34['detach'](),_0x573cea['markBlockFormat'](_0xec8e80,{'commandName':'imageTypeInline','commandParams':[_0x122e11]},[],'convertInlineImageToBlock'),_0x4d4450['start']['isBefore'](_0x1fab70['start'])&&_0x573cea['markInsertion'](_0x473d84['createRange'](_0x4d4450['start'],_0x1fab70['start']),'convertInlineImageToBlock'),_0x1fab70['end']['isBefore'](_0x4d4450['end'])&&_0x573cea['markInsertion'](_0x473d84['createRange'](_0x1fab70['end'],_0x4d4450['end']),'convertInlineImageToBlock');});}),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x573cea['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x38596e])=>{const _0x44bc39=_0x573cea['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x41483c=_0x38596e['start'],_0x5f1bea=_0x38596e['end'];const _0x1538f3=_0x2c4c21['model']['schema']['getNearestSelectionRange'](_0x41483c,'backward'),_0x2c1a41=_0x2c4c21['model']['schema']['getNearestSelectionRange'](_0x5f1bea,'forward');_0x1538f3['isCollapsed']&&(_0x41483c=_0x1538f3['start']),_0x2c1a41['isCollapsed']&&(_0x5f1bea=_0x2c1a41['end']),_0x44bc39([_0x2c4c21['model']['createRange'](_0x41483c,_0x5f1bea)]);}),_0x573cea['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3753c2),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3753c2)),_0x2c4c21['plugins']['has']('ImageCaptionEditing')&&(_0x573cea['enableCommand']('toggleImageCaption',(_0x3cae5e,_0x362b1a)=>{const _0x57c621=_0x2c4c21['plugins']['get']('ImageCaptionUtils');let _0x44795=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x4cb16e=_0x57c621['getCaptionFromImageModelElement'](_0x44795);_0x2c4c21['model']['change'](()=>{if(_0x4cb16e)return void _0x573cea['markDeletion'](_0x2c4c21['model']['createRangeOn'](_0x4cb16e));const _0x176f13=_0x4c642a['isBlockImage'](_0x44795);_0x3cae5e(_0x362b1a),_0x44795=_0x4c642a['getClosestSelectedImageElement'](_0x2c4c21['model']['document']['selection']),_0x4cb16e=_0x57c621['getCaptionFromImageModelElement'](_0x44795),_0x573cea['markInsertion'](_0x2c4c21['model']['createRangeOn'](_0x4cb16e),_0x176f13?null:'imageCaption');});}),_0x573cea['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3753c2));const _0x1e3744=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbe6435(_0x1dfe83,_0x234278){const _0x5cd1dd=_0x1e3744['findIndex'](({type:_0x3985ae,subType:_0xcabe93})=>_0x1dfe83['type']==_0x3985ae&&_0x1dfe83['subType']==_0xcabe93),_0x24004d=_0x1e3744['findIndex'](({type:_0x2ec08b,subType:_0x58855b})=>_0x234278['type']==_0x2ec08b&&_0x234278['subType']==_0x58855b);if(_0x5cd1dd<0x0||_0x24004d<0x0)return!0x1;const _0x82efcc=_0x1dfe83['getFirstRange'](),_0x7087a4=_0x234278['getFirstRange']();if((0x0==_0x5cd1dd||0x1==_0x5cd1dd)&&0x2==_0x24004d&&_0x82efcc['isIntersecting'](_0x7087a4))return!0x0;if(0x2==_0x5cd1dd&&0x3==_0x24004d){const _0x58ff32=_0x573cea['_findSuggestions'](_0x82efcc,'insertion')['filter'](({suggestion:_0x3262ad,meta:_0x4b6607})=>_0x4b6607['isOwn']&&'convertInlineImageToBlock'==_0x3262ad['subType']);if(_0x58ff32['length']>0x1&&_0x7087a4['end']['isEqual'](_0x82efcc['start']))return!0x0;if(0x1==_0x58ff32['length']&&(_0x82efcc['start']['isEqual'](_0x7087a4['end'])||_0x82efcc['end']['isEqual'](_0x7087a4['start'])))return!0x0;}if(0x3==_0x5cd1dd&&0x3==_0x24004d&&_0x82efcc['start']['isBefore'](_0x7087a4['start'])){const _0x537230=_0x82efcc['end']['nodeAfter'],_0x44ed4e=_0x7087a4['start']['nodeBefore'];return _0x4c642a['isBlockImage'](_0x537230)&&_0x537230===_0x44ed4e;}return!0x1;}function _0x3753c2(_0x4cf36c,_0x44eab6){return _0xbe6435(_0x4cf36c,_0x44eab6)?[_0x4cf36c,_0x44eab6]:_0xbe6435(_0x44eab6,_0x4cf36c)?[_0x44eab6,_0x4cf36c]:null;}_0x2c4c21['plugins']['has']('ImageResize')&&(_0x573cea['enableDefaultAttributesIntegration']('resizeImage'),_0x573cea['descriptionFactory']['registerAttributeLabel']('resizedWidth',Ot(_0x1f797c,'FORMAT_IMAGE_SIZE'))),_0x2c4c21['plugins']['has']('ImageTextAlternativeEditing')&&_0x573cea['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2c4c21['plugins']['has']('PictureEditing')&&_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0xf87024=>{if('attribute'!=_0xf87024['type'])return;const {data:_0xd0531f}=_0xf87024;return _0xd0531f&&'sources'==_0xd0531f['key']?{'type':'format','content':''}:void 0x0;}),_0x2c4c21['plugins']['has']('ImageSizeAttributes')&&_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x3f222d=>{if('attribute'!=_0x3f222d['type'])return;const {data:_0x920cc}=_0x3f222d;return!_0x920cc||'width'!=_0x920cc['key']&&'height'!=_0x920cc['key']?void 0x0:{'type':'format','content':''};}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x364cbd=>{if(_0x1e3744['find'](({type:_0x31c7e6,subType:_0x10d08c})=>_0x364cbd['type']==_0x31c7e6&&_0x364cbd['subType']==_0x10d08c))return _0x364cbd['previous']?{}:void 0x0;}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x121536=>{if('insertion'==_0x121536['type']||'deletion'==_0x121536['type']){const _0x120494=_0x121536['getContainedElement']();if(_0x120494&&_0x120494['is']('element','caption'))return{'type':'insertion'==_0x121536['type']?'addObject':'removeObject','element':_0x120494,'quantity':0x1};}}),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x18f5a3=>'formatBlock'==_0x18f5a3['type']&&'convertInlineImageToBlock'==_0x18f5a3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x18f5a3['type']&&'convertBlockImageToInline'==_0x18f5a3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x573cea['descriptionFactory']['registerDescriptionCallback'](_0x2999b7=>{if('attribute'!=_0x2999b7['type'])return;const {data:_0x5e766b}=_0x2999b7;if(!_0x5e766b||'alt'!=_0x5e766b['key'])return;const _0x5cb8a5=_0x5e766b['newValue'];return _0x5cb8a5?{'type':'format','content':Ot(_0x1f797c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5cb8a5+'\x22')}:{'type':'format','content':Ot(_0x1f797c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x5d0f27=this['editor'],_0x3aa520=_0x5d0f27['locale'];_0x5d0f27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8dec29=>{if('formatBlock'!=_0x8dec29['type']&&'formatInline'!=_0x8dec29['type'])return;const {data:_0x1d9ca7}=_0x8dec29;if(_0x1d9ca7){if('imageTextAlternative'==_0x1d9ca7['commandName']){const _0x5d1136=_0x1d9ca7['commandParams'][0x0]['newValue'];return _0x5d1136?{'type':'format','content':Ot(_0x3aa520,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d1136+'\x22')}:{'type':'format','content':Ot(_0x3aa520,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1d9ca7['commandName']){const _0x2aa2f9=_0x1d9ca7['commandParams'][0x0]['width'];return _0x2aa2f9?{'type':'format','content':Ot(_0x3aa520,'*Set\x20image\x20width:*\x20%0',_0x2aa2f9)}:{'type':'format','content':Ot(_0x3aa520,'*Reset\x20image\x20width*')};}}});}},fe=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd96960=this['editor']['locale'],_0x49a673=this['editor']['plugins']['get']('TrackChangesEditing');_0x49a673['enableDefaultAttributesIntegration']('replaceImageSource'),_0x49a673['descriptionFactory']['registerDescriptionCallback'](_0x213cea=>{if('attribute'!=_0x213cea['type'])return;const {data:_0x4e878f}=_0x213cea;return _0x4e878f&&'src'==_0x4e878f['key']?_0x4e878f['newValue']&&_0x4e878f['oldValue']?{'type':'format','content':Ot(_0xd96960,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1badfa=this['editor']['plugins']['get']('TrackChangesEditing');_0x1badfa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1badfa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1badfa['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1badfa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x357d9d=this['editor'],_0x414e47=_0x357d9d['locale'];_0x357d9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ad166=>{if('formatBlock'!=_0x2ad166['type']&&'formatInline'!=_0x2ad166['type'])return;const {data:_0x47b96}=_0x2ad166;return _0x47b96&&'replaceImageSource'==_0x47b96['commandName']?{'type':'format','content':Ot(_0x414e47,'*Format:*\x20replace\x20image\x20URL')}:void 0x0;});}},me=class extends _0x548d2a{afterInit(){const _0x403f10=this['editor'];if(!_0x403f10['plugins']['has']('ImageStyleEditing'))return;const _0x422422=_0x403f10['plugins']['get']('TrackChangesEditing'),_0x205daa=_0x403f10['plugins']['get']('ImageUtils'),_0x48d719={};_0x422422['enableCommand']('imageStyle',(_0x5d74f0,_0x4c6f99)=>{const _0x2c0b1a=_0x403f10['plugins']['get']('Users')['me'],_0x1cfbc1=_0x403f10['commands']['get']('imageStyle');let _0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),_0x3ef0d2=_0x403f10['model']['createRangeOn'](_0x4589c2),_0x2b0da5=_0x1cfbc1['value'];if(_0x2b0da5==_0x4c6f99['value'])return;if(_0x4c6f99['value']&&_0x205daa['isInlineImage'](_0x4589c2)&&!_0x1cfbc1['isStyleEnabled'](_0x4c6f99['value']))return;const _0x16edba={'commandName':'imageStyle','commandParams':[_0x4c6f99],'formatGroupId':_0x1dfb7c()};_0x403f10['model']['change'](()=>{if(_0x422422['getSuggestions']()['filter'](_0x49e67f=>_0x49e67f['isInContent']&&_0x2c0b1a==_0x49e67f['author']&&('formatBlock'==_0x49e67f['type']||'formatInline'==_0x49e67f['type'])&&('imageStylePreApply'==_0x49e67f['subType']||'imageStylePostApply'==_0x49e67f['subType'])&&_0x49e67f['getFirstRange']()['isEqual'](_0x3ef0d2))['forEach'](_0x369eae=>_0x422422['discardSuggestion'](_0x369eae['head'])),_0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),_0x3ef0d2=_0x403f10['model']['createRangeOn'](_0x4589c2),_0x1cfbc1['refresh'](),_0x403f10['commands']['get']('imageTypeInline')['refresh'](),_0x403f10['commands']['get']('imageTypeBlock')['refresh'](),_0x2b0da5=_0x1cfbc1['value'],_0x2b0da5!=_0x4c6f99['value'])return _0x205daa['isInlineImage'](_0x4589c2)&&_0x1cfbc1['shouldConvertImageType'](_0x4c6f99['value'],_0x4589c2)?(_0x5d74f0({..._0x4c6f99,'setImageSizes':!0x1}),_0x4589c2=_0x205daa['getClosestSelectedImageElement'](_0x403f10['model']['document']['selection']),void _0x422422['markBlockFormat'](_0x4589c2,{..._0x16edba,'commandReversedParams':[{'value':_0x2b0da5||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x205daa['isBlockImage'](_0x4589c2)?_0x422422['markBlockFormat'](_0x4589c2,_0x16edba,[],'imageStylePostApply'):_0x422422['markInlineFormat'](_0x3ef0d2,_0x16edba,'imageStylePostApply'));});});for(const _0x42ff1b of _0x403f10['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48d719[_0x42ff1b['name']]=_0x42ff1b['title']['toLowerCase']();_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x486918])=>{_0x205daa['setImageNaturalSizeAttributes'](_0x486918['getContainedElement']());}),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2f84d5,_0x5240fc)=>{_0x422422['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2f84d5,{'commandName':_0x5240fc['commandName'],'commandParams':_0x5240fc['commandReversedParams']});}),_0x422422['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x58949f,_0x9d7f50){return _0x51fb05(_0x58949f,_0x9d7f50)?[_0x58949f,_0x9d7f50]:_0x51fb05(_0x9d7f50,_0x58949f)?[_0x9d7f50,_0x58949f]:null;});const _0x149bcc=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x51fb05(_0x49e43c,_0x2a3e79){const _0xf82195=_0x149bcc['findIndex'](({type:_0x2f8fc9,subType:_0x23e74f})=>_0x49e43c['type']==_0x2f8fc9&&_0x49e43c['subType']==_0x23e74f),_0x47de2e=_0x149bcc['findIndex'](({type:_0x22d178,subType:_0x527706})=>_0x2a3e79['type']==_0x22d178&&_0x2a3e79['subType']==_0x527706);if(_0xf82195<0x0||_0x47de2e<0x0)return!0x1;const _0x3f612c=_0x49e43c['getFirstRange'](),_0x53c6c9=_0x2a3e79['getFirstRange']();if((0x0==_0xf82195||0x1==_0xf82195)&&0x2==_0x47de2e&&_0x3f612c['isIntersecting'](_0x53c6c9))return!0x0;if(0x2==_0xf82195&&0x3==_0x47de2e){const _0x2e0d66=_0x422422['_findSuggestions'](_0x3f612c,'insertion')['filter'](({suggestion:_0x5d9fe3,meta:_0x44cf28})=>_0x44cf28['isOwn']&&'convertInlineImageToBlock'==_0x5d9fe3['subType']);if(_0x2e0d66['length']>0x1&&_0x53c6c9['end']['isEqual'](_0x3f612c['start']))return!0x0;if(0x1==_0x2e0d66['length']&&(_0x3f612c['start']['isEqual'](_0x53c6c9['end'])||_0x3f612c['end']['isEqual'](_0x53c6c9['start'])))return!0x0;}if(0x3==_0xf82195&&0x3==_0x47de2e&&_0x3f612c['start']['isBefore'](_0x53c6c9['start'])){const _0x595def=_0x3f612c['end']['nodeAfter'],_0x40b1ef=_0x53c6c9['start']['nodeBefore'];return _0x205daa['isBlockImage'](_0x595def)&&_0x595def===_0x40b1ef;}return!0x1;}_0x403f10['model']['document']['registerPostFixer'](()=>{let _0x3a49a1=!0x1;const _0x485a82=Array['from'](_0x403f10['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56ca9d,data:_0x2ad460}of _0x485a82){const {group:_0x2bbe28,type:_0x539acf,subType:_0x516b72,id:_0x13ca2b}=et(_0x56ca9d);if('suggestion'==_0x2bbe28&&_0x422422['hasSuggestion'](_0x13ca2b)){if('formatBlock'==_0x539acf&&('imageStylePreApply'==_0x516b72||'imageStylePostApply'==_0x516b72)){const _0x1d0786=_0x422422['getSuggestion'](_0x13ca2b);if(_0x2ad460['newRange']){const _0x56164b=_0x1d0786['getFirstRange']()['getContainedElement']();if(_0x205daa['isBlockImage'](_0x56164b))continue;_0x422422['discardSuggestion'](_0x1d0786),_0x3a49a1=!0x0;}}if('insertion'==_0x539acf&&'imageCaption'==_0x516b72&&!_0x2ad460['newRange']){const _0x507a81=_0x422422['getSuggestion'](_0x13ca2b);_0x507a81['next']&&_0x507a81['next']['isInContent']&&(_0x422422['discardSuggestion'](_0x507a81['next']),_0x3a49a1=!0x0);}}}return _0x3a49a1;}),this['_registerLegacyDescription'](_0x48d719);}_registerLegacyDescription(_0xf005ed){const _0x27a93f=this['editor'],_0x3e0377=_0x27a93f['locale'];_0x27a93f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x244e50=>{if('formatBlock'!=_0x244e50['type']&&'formatInline'!=_0x244e50['type'])return;const {data:_0x561170}=_0x244e50;if(!_0x561170||'imageStyle'!=_0x561170['commandName'])return;const _0x1ac19b=_0x561170['commandParams'][0x0]['value'];return _0x2756cb('side'===_0x1ac19b?Ot(_0x3e0377,'FORMAT_SIDE_IMAGE'):_0xf005ed[_0x1ac19b]||_0x1ac19b);function _0x2756cb(_0x1ba56a){return{'type':'format','content':Ot(_0x3e0377,'*Format:*\x20%0',_0x1ba56a)};}});}},Ee=class extends _0x548d2a{_trackChangesValueDuringImport;_trackChangesExecuted;constructor(_0x153449){super(_0x153449),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}afterInit(){const _0x3e5424=this['editor'],_0x3843bf=_0x3e5424['commands']['get']('importWord'),_0x5060f4=_0x3e5424['commands']['get']('trackChanges');_0x3843bf&&(_0x3843bf['on']('execute',(_0x6a912a,[,_0x45d65b])=>{this['_trackChangesValueDuringImport']=_0x5060f4['value'],_0x45d65b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3843bf,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3843bf,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5060f4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3e5424['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}_handleImportedData(_0x31db78,_0x47fdb5){const {suggestions:_0x346660}=_0x47fdb5,_0x3e32c8=this['editor']['commands']['get']('trackChanges'),_0x30e675=_0x3e32c8['value'];this['_trackChangesValueDuringImport']!==_0x30e675&&(_0x3e32c8['execute'](),this['_trackChangesExecuted']=!0x0),_0x346660&&_0x346660['forEach'](({id:_0x1d3bf6,type:_0xdccc7a,author:_0x44ffce,created_at:_0x5654e1})=>{const _0x55b1b4={'id':_0x1d3bf6,'type':_0xdccc7a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x44ffce,'createdAt':_0x5654e1?new Date(_0x5654e1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x55b1b4);});}},Te=class extends _0x548d2a{afterInit(){const _0x5b0e84=this['editor'],_0x44dd58=_0x5b0e84['plugins']['get']('TrackChangesEditing');if(_0x5b0e84['plugins']['has']('IndentEditing')&&(_0x44dd58['enableCommand']('indent'),_0x44dd58['enableCommand']('outdent')),_0x5b0e84['plugins']['has']('IndentBlock')){for(const _0x327038 of['indentBlock','outdentBlock'])_0x44dd58['enableDefaultAttributesIntegration'](_0x327038);if(_0x5b0e84['plugins']['has']('ListEditing')){for(const _0x3513a3 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x44dd58['enableDefaultAttributesIntegration'](_0x3513a3);}}const _0x708e73=_0x5b0e84['locale'];_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndent',Ot(_0x708e73,'FORMAT_INDENT')),_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndentList',Ot(_0x708e73,'FORMAT_INDENT')),_0x44dd58['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',Ot(_0x708e73,'FORMAT_INDENT')),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x19c8d3=this['editor'],_0x2f8987=_0x19c8d3['locale'],_0x39309b=_0x19c8d3['plugins']['get']('TrackChangesEditing');_0x39309b['descriptionFactory']['registerDescriptionCallback'](_0x4ee217=>{if('formatBlock'!=_0x4ee217['type'])return;const {data:_0x14a493}=_0x4ee217;if(!_0x14a493)return;if('indentBlock'!=_0x14a493['commandName']&&'outdentBlock'!=_0x14a493['commandName'])return;const _0x27a4bc=_0x4ee217['getItems']()[0x0],_0x432ebd=_0x39309b['descriptionFactory']['getItemLabel'](_0x27a4bc);return'indentBlock'==_0x14a493['commandName']?{'type':'format','content':Ot(_0x2f8987,'*Indent:*\x20%0',_0x432ebd)}:'outdentBlock'==_0x14a493['commandName']?{'type':'format','content':Ot(_0x2f8987,'*Outdent:*\x20%0',_0x432ebd)}:void 0x0;});}},_e=class extends _0x548d2a{static get requires(){return[Et];}init(){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}},pe=class extends _0x548d2a{afterInit(){const _0x49ad6a=this['editor'];if(!_0x49ad6a['plugins']['has']('LinkEditing'))return;const _0x32a288=_0x49ad6a['plugins']['get']('TrackChangesEditing'),_0x590dad=_0x49ad6a['commands']['get']('link');_0x32a288['enableDefaultAttributesIntegration']('link'),_0x32a288['enableDefaultAttributesIntegration']('unlink');for(const _0x110981 of _0x590dad['manualDecorators'])_0x32a288['descriptionFactory']['registerAttributeLabel'](_0x110981['id'],'link\x20('+_0x110981['label']['toLowerCase']()+')');_0x32a288['descriptionFactory']['registerDescriptionCallback'](_0x2b31bb=>{if('attribute'!=_0x2b31bb['type'])return;const {data:_0x45e92b}=_0x2b31bb;if(!_0x45e92b||'linkHref'!=_0x45e92b['key'])return;const _0x56e084=_0x45e92b['newValue'],_0x580000=_0x49ad6a['locale'];return{'type':'format','content':null==_0x56e084?Ot(_0x580000,'*Remove\x20link*'):Ot(_0x580000,'*Set\x20link:*\x20%0','\x22'+_0x56e084+'\x22')};}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x47d5c5=this['editor'],_0x1af4e1=_0x47d5c5['locale'];_0x47d5c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52202e=>{if('formatInline'!=_0x52202e['type'])return;const {data:_0x42035d}=_0x52202e;if(_0x42035d){if('link'==_0x42035d['commandName']){const _0x5661b8=_0x42035d['commandParams'][0x0];return{'type':'format','content':Ot(_0x1af4e1,'*Set\x20link:*\x20%0','\x22'+_0x5661b8+'\x22')};}return'unlink'==_0x42035d['commandName']?{'type':'format','content':Ot(_0x1af4e1,'*Remove\x20link*')}:void 0x0;}});}},Le=class extends _0x548d2a{afterInit(){const _0x41da23=this['editor'],_0x1cf0f8=_0x41da23['locale'];if(!_0x41da23['plugins']['has']('LegacyListEditing'))return;const _0x40b667=_0x41da23['plugins']['get']('TrackChangesEditing'),_0x52fbe6=_0x41da23['plugins']['has']('LegacyTodoListEditing');function _0x329006(_0x4020b0){return()=>{const _0x44fb61=_0x41da23['model']['document']['selection'],_0x16a51f=_0x41da23['commands']['get'](_0x4020b0);if(_0x16a51f['value'])return void _0x41da23['execute']('paragraph',{});const _0xab2105=_0x4020b0['slice'](0x0,-0x4),_0x3e6325=function(_0x5ba448,_0xddcaeb,_0x28508a){let _0x52614a=Array['from'](_0x5ba448)['filter'](_0x586e19=>function(_0x8129d4,_0x5ded9f){return _0x5ded9f['checkChild'](_0x8129d4['parent'],'listItem')&&!_0x5ded9f['isObject'](_0x8129d4);}(_0x586e19,_0x28508a));_0x52614a=_0x52614a['filter'](_0x2de6ba=>!_0x2de6ba['is']('element','listItem')||_0x2de6ba['getAttribute']('listType')!=_0xddcaeb);const _0x334539=new Set();for(const _0x44ca5d of _0x52614a)_0x44ca5d['is']('element','listItem')?_0x334539['add'](Ie(_0x44ca5d)):_0x334539['add'](_0x44ca5d);return Array['from'](_0x334539);}(_0x44fb61['getSelectedBlocks'](),_0xab2105,_0x41da23['model']['schema']);_0x41da23['model']['change'](()=>{for(const _0x40d64c of _0x3e6325)_0x40b667['markBlockFormat'](_0x40d64c,{'commandName':_0x4020b0,'commandParams':[{'forceValue':!_0x16a51f['value']}],'formatGroupId':'blockName'},Ae(_0x40d64c));});};}function _0x53c53e(_0x3ebe21){return()=>{const _0x3b69b4=function(_0x34f65c){let _0x2ec0d3=Array['from'](_0x34f65c);const _0x1d7a9f=_0x2ec0d3['findIndex'](_0x3a23b0=>'listItem'!=_0x3a23b0['name']);return _0x1d7a9f>-0x1&&(_0x2ec0d3=_0x2ec0d3['slice'](0x0,_0x1d7a9f)),_0x2ec0d3;}(_0x41da23['model']['document']['selection']['getSelectedBlocks']()),_0x5ebf6d=_0x41da23['model']['createRange'](_0x41da23['model']['createPositionAt'](_0x3b69b4[0x0],'before'),_0x41da23['model']['createPositionAt'](_0x3b69b4[_0x3b69b4['length']-0x1],'end'));_0x41da23['model']['change'](()=>{_0x40b667['markBlockFormat'](_0x5ebf6d,{'commandName':_0x3ebe21,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4ab2d4){const _0x58c6c8=new Set();for(const _0x5385c8 of _0x4ab2d4){let _0x1ec2a3=_0x5385c8['nextSibling'];for(;_0x1ec2a3&&_0x1ec2a3['getAttribute']('listIndent')>_0x5385c8['getAttribute']('listIndent');)_0x58c6c8['add'](_0x1ec2a3),_0x1ec2a3=_0x1ec2a3['nextSibling'];}return Array['from'](_0x58c6c8);}(_0x3b69b4));});};}_0x40b667['enableCommand']('numberedList',_0x329006('numberedList')),_0x40b667['enableCommand']('bulletedList',_0x329006('bulletedList')),_0x52fbe6&&_0x40b667['enableCommand']('todoList',_0x329006('todoList')),_0x40b667['enableCommand']('indentList',_0x53c53e('indentList')),_0x40b667['enableCommand']('outdentList',_0x53c53e('outdentList')),_0x52fbe6&&_0x40b667['enableCommand']('checkTodoList',()=>{const _0x28a193=_0x41da23['commands']['get']('checkTodoList'),_0x2db001=Array['from'](_0x28a193['_selectedElements']);_0x2db001['filter'](_0x1e6852=>_0x1e6852['getAttribute']('todoListChecked')!=_0x28a193['value']),_0x41da23['model']['change'](()=>{for(const _0x3d3a84 of _0x2db001)_0x40b667['markBlockFormat'](_0x3d3a84,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x28a193['value']}]});});}),_0x40b667['descriptionFactory']['registerElementLabel']('listItem',_0xc36602=>Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM',_0xc36602)),_0x40b667['descriptionFactory']['registerDescriptionCallback'](_0x6bf2fa=>{if('formatBlock'!=_0x6bf2fa['type']&&'formatInline'!=_0x6bf2fa['type'])return;const {data:_0xb621d4}=_0x6bf2fa;if(_0xb621d4){if('numberedList'==_0xb621d4['commandName']||'bulletedList'==_0xb621d4['commandName']||'todoList'==_0xb621d4['commandName'])switch(_0xb621d4['commandName']['replace']('List','')){case'bulleted':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3369b3(Ot(_0x1cf0f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb621d4['commandName'])return{'type':'format','content':Ot(_0x1cf0f8,'*Indent:*\x20%0',Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb621d4['commandName'])return{'type':'format','content':Ot(_0x1cf0f8,'*Outdent:*\x20%0',Ot(_0x1cf0f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb621d4['commandName'])return _0xb621d4['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1cf0f8,'*Check\x20item*')}:{'type':'format','content':Ot(_0x1cf0f8,'*Uncheck\x20item*')};}function _0x3369b3(_0x3e0ed1){return{'type':'format','content':Ot(_0x1cf0f8,'*Change\x20to:*\x20%0',_0x3e0ed1)};}});}};function Ie(_0x94e304){const _0x2f0993=_0x94e304['getAttribute']('listIndent');if(0x0==_0x2f0993)return _0x94e304;let _0x204f46=_0x94e304;for(;_0x94e304['previousSibling']&&_0x94e304['previousSibling']['is']('element','listItem');){const _0x1fe1b5=_0x94e304['previousSibling']['getAttribute']('listIndent');if(_0x1fe1b5==_0x2f0993)_0x204f46=_0x94e304['previousSibling'];else{if(_0x1fe1b5<_0x2f0993)break;}_0x94e304=_0x94e304['previousSibling'];}return _0x204f46;}function Ae(_0x44ba67){const _0x57df16=[];if(_0x44ba67['is']('element','listItem')&&_0x44ba67['getAttribute']('listIndent')>0x0){let _0x290c0c=_0x44ba67['nextSibling'];for(;_0x290c0c&&'listItem'==_0x290c0c['name']&&_0x290c0c['getAttribute']('listIndent')==_0x44ba67['getAttribute']('listIndent');)_0x57df16['push'](_0x290c0c),_0x290c0c=_0x290c0c['nextSibling'];}return _0x57df16;}var be=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x36cc63=this['editor']['config']['get']('list.properties'),_0x4d69bc=this['editor']['plugins']['get']('TrackChangesEditing');_0x36cc63['styles']&&_0x4d69bc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x36cc63['reversed']&&_0x4d69bc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x36cc63['startIndex']&&_0x4d69bc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d69bc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}handleListStyleCommand(_0x17fb03,_0x38a89a={}){const _0x4ffe9d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28fcd4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4ffe9d['markMultiRangeBlockFormat'](_0x28fcd4,{'commandName':'listStyle','commandParams':[{'type':_0x38a89a['type']}],'formatGroupId':'listStyle'});});}handleListReversedCommand(_0x478103,_0xd5aa29={}){const _0xad990b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f75da=this['_getSuggestionBlocks'](_0x3b68cc=>_0x3b68cc['is']('element','listItem')&&'numbered'===_0x3b68cc['getAttribute']('listType'));if(_0x1f75da['length']<0x1)return;const _0x501c65=_0x1f75da['map'](_0x4d02f9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4d02f9,'before'),this['editor']['model']['createPositionAt'](_0x4d02f9,0x0)));this['editor']['model']['change'](()=>{_0xad990b['markMultiRangeBlockFormat'](_0x501c65,{'commandName':'listReversed','commandParams':[{'reversed':_0xd5aa29['reversed']}],'formatGroupId':'listReversed'});});}handleListStartCommand(_0x48a2c9,_0x581565={}){const _0x4ce3ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1aa357=this['_getSuggestionBlocks'](_0x53c674=>_0x53c674['is']('element','listItem')&&'numbered'===_0x53c674['getAttribute']('listType'));if(_0x1aa357['length']<0x1)return;const _0x2e9151=_0x1aa357['map'](_0x529b37=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x529b37,'before'),this['editor']['model']['createPositionAt'](_0x529b37,0x0)));this['editor']['model']['change'](()=>{_0x4ce3ea['markMultiRangeBlockFormat'](_0x2e9151,{'commandName':'listStart','commandParams':[{'startIndex':_0x581565['startIndex']}],'formatGroupId':'listStart'});});}handleDescriptions(_0x55a45c){if('formatBlock'!=_0x55a45c['type']&&'formatInline'!=_0x55a45c['type'])return;const _0x2b7bd9=this['editor']['locale'],{data:_0x4e69f1}=_0x55a45c;if(!_0x4e69f1)return;let _0x4afab0,_0x4ec52f;switch(_0x4e69f1['commandName']){case'listStyle':_0x4afab0='*Change\x20to:*\x20%0',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0,Ot(_0x2b7bd9,this['_getTranslationKeyForListStyle'](_0x4e69f1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4afab0=_0x4e69f1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0)};break;case'listStart':_0x4afab0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4ec52f={'type':'format','content':Ot(_0x2b7bd9,_0x4afab0,_0x4e69f1['commandParams'][0x0]['startIndex'])};}return _0x4ec52f;}_getSuggestionBlocksForListStyle(){const _0x587c8f=this['editor']['plugins']['get']('LegacyListUtils');let _0x1d2046=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1d2046[0x0]?.['is']('element','listItem')&&_0x1d2046['unshift'](..._0x587c8f['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1d2046[_0x1d2046['length']-0x1]?.['is']('element','listItem')&&_0x1d2046['push'](..._0x587c8f['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1d2046=[...new Set(_0x1d2046)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1d2046=_0x1d2046['filter'](_0x3a68e9=>_0x3a68e9['is']('element','listItem'))),_0x1d2046;}_getSuggestionBlocks(_0x1b596b){const _0xf3ef50=this['editor']['plugins']['get']('LegacyListUtils');let _0x213038=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1b596b)['map'](_0x56b519=>{const _0x494efe=this['editor']['model']['createPositionAt'](_0x56b519,0x0);return[..._0xf3ef50['getSiblingNodes'](_0x494efe,'backward'),..._0xf3ef50['getSiblingNodes'](_0x494efe,'forward')];})['flat']();return _0x213038=[...new Set(_0x213038)],_0x213038;}_getTranslationKeyForListStyle(_0x187db8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x187db8)||'default')['toUpperCase']()+'_LIST_'+_0x187db8['toUpperCase']()['replace'](/-/g,'_');}},Ce=class extends _0x548d2a{afterInit(){const _0x16ce5c=this['editor'];if(!_0x16ce5c['plugins']['has']('MediaEmbedEditing'))return;const _0x362284=_0x16ce5c['plugins']['get']('TrackChangesEditing'),_0x3df05f=_0x16ce5c['locale'];_0x362284['enableCommand']('mediaEmbed'),_0x362284['descriptionFactory']['registerElementLabel']('media',_0x298c2c=>Ot(_0x3df05f,'ELEMENT_MEDIA',_0x298c2c)),_0x16ce5c['plugins']['has']('MediaEmbedResizeEditing')&&(_0x362284['enableDefaultAttributesIntegration']('resizeMediaEmbed'),_0x362284['descriptionFactory']['registerDescriptionCallback'](_0x5bb233=>{if('attribute'!=_0x5bb233['type'])return;const {data:_0x5d8ddb}=_0x5bb233;if(!_0x5d8ddb||'resizedWidth'!=_0x5d8ddb['key'])return;const _0xc193e=_0x5bb233['getContainedElement']();if(!_0xc193e||!_0xc193e['is']('element','media'))return;const _0x2cd107=Ot(_0x3df05f,'FORMAT_MEDIA_SIZE');return{'type':'format','content':Ot(_0x3df05f,'*Set\x20format:*\x20%0',_0x2cd107)};}));}},ke=class extends _0x548d2a{afterInit(){const _0xfb57de=this['editor'];if(!_0xfb57de['plugins']['has']('MediaEmbedStyleEditing'))return;const _0x5d58c6=_0xfb57de['plugins']['get']('TrackChangesEditing'),_0x9aeb64=_0xfb57de['locale'],_0x5d4994=_0xfb57de['plugins']['get']('MediaEmbedStyleEditing'),_0x1d6599={};for(const _0x26288e of _0x5d4994['normalizedStyles'])_0x1d6599[_0x26288e['name']]=_0x26288e['title']['toLowerCase']();const _0x4a1842=_0x5d4994['normalizedStyles']['find'](_0xf8cae6=>_0xf8cae6['isDefault'])?.['name'];_0x5d58c6['enableCommand']('mediaStyle',(_0x5c3999,_0x2b2695)=>{const _0x59562d=_0xfb57de['plugins']['get']('Users')['me'],_0x3f2d82=_0xfb57de['commands']['get']('mediaStyle'),_0x533f37=function(_0x4abf79){const _0x2bb4dd=_0x4abf79['model']['document']['selection']['getSelectedElement']();return _0x2bb4dd&&_0x2bb4dd['is']('element','media')?_0x2bb4dd:null;}(_0xfb57de);if(!_0x533f37)return;const _0x46bc51=_0xfb57de['model']['createRangeOn'](_0x533f37);let _0x3244f6=_0x3f2d82['value'];if(_0x3244f6==_0x2b2695['value'])return;const _0x57a0ae={'commandName':'mediaStyle','commandParams':[_0x2b2695],'formatGroupId':_0x1dfb7c()};_0xfb57de['model']['change'](()=>{_0x5d58c6['getSuggestions']()['filter'](_0x3ce742=>_0x3ce742['isInContent']&&_0x59562d==_0x3ce742['author']&&'formatBlock'==_0x3ce742['type']&&'mediaStylePostApply'==_0x3ce742['subType']&&_0x3ce742['getFirstRange']()['isEqual'](_0x46bc51))['forEach'](_0x4d0591=>_0x5d58c6['discardSuggestion'](_0x4d0591['head'])),_0x3f2d82['refresh'](),_0x3244f6=_0x3f2d82['value'],_0x3244f6!=_0x2b2695['value']&&_0x5d58c6['markBlockFormat'](_0x533f37,{..._0x57a0ae,'commandReversedParams':[{'value':'string'==typeof _0x3244f6?_0x3244f6:null}]},[],'mediaStylePostApply');});}),_0x5d58c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','join',()=>!0x1),_0x5d58c6['_suggestionFactory']['registerCustomCallback']('formatBlock','mediaStylePostApply','discard',(_0x5796b3,_0x42fb16)=>{_0x5d58c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5796b3,{'commandName':_0x42fb16['commandName'],'commandParams':_0x42fb16['commandReversedParams']});}),_0x5d58c6['descriptionFactory']['registerDescriptionCallback'](_0x30be7d=>{if('formatBlock'!=_0x30be7d['type'])return;const {data:_0x527247}=_0x30be7d;if(!_0x527247||'mediaStyle'!=_0x527247['commandName'])return;const _0xc907c8=_0x527247['commandParams'][0x0]['value']||_0x4a1842;if(!_0xc907c8)return;const _0x13b988=_0x1d6599[_0xc907c8]||_0xc907c8;return{'type':'format','content':Ot(_0x9aeb64,'*Format:*\x20%0',_0x13b988)};});}},Re=class extends _0x548d2a{afterInit(){const _0x3f7f62=this['editor'];_0x3f7f62['plugins']['has']('MentionEditing')&&_0x3f7f62['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}},ye=class extends _0x548d2a{afterInit(){const _0xa0d38d=this['editor'];if(!_0xa0d38d['plugins']['has']('MergeFieldsEditing'))return;const _0x35ce95=_0xa0d38d['plugins']['get']('TrackChangesEditing'),_0x4b0ccd=_0xa0d38d['locale'];_0x35ce95['enableCommand']('insertMergeField'),_0x35ce95['enableCommand']('insertMergeFieldBlock'),_0x35ce95['enableCommand']('insertMergeFieldImage'),_0x35ce95['descriptionFactory']['registerElementLabel']('mergeField',_0xfd5c5e=>Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD',_0xfd5c5e)),_0x35ce95['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4910c1=>Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD',_0x4910c1)),_0x35ce95['descriptionFactory']['registerDescriptionCallback'](_0xa452d6=>{if('insertion'!=_0xa452d6['type']&&'deletion'!=_0xa452d6['type'])return;const _0x3b9015=_0xa452d6['getContainedElement']();if(null==_0x3b9015)return;const _0x5d5034=_0xa0d38d['plugins']['get']('MergeFieldsEditing');let _0x4717d4;switch(_0x5d5034['getMergeFieldType'](_0x3b9015)){case null:return;case'image':{const _0x20a209=_0x5d5034['unwrapAffixes'](_0x3b9015['getAttribute']('src'));_0x4717d4=_0x5d5034['getLabel'](_0x20a209)||_0x20a209;break;}default:{const _0x47bd4d=_0x3b9015['getAttribute']('id');_0x4717d4=_0x5d5034['getLabel'](_0x47bd4d)||_0x47bd4d;break;}}return'insertion'==_0xa452d6['type']?{'type':'insertion','content':Ot(_0x4b0ccd,'*Insert:*\x20%0','\x22'+_0x4717d4+'\x22\x20'+Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':Ot(_0x4b0ccd,'*Remove:*\x20%0','\x22'+_0x4717d4+'\x22\x20'+Ot(_0x4b0ccd,'ELEMENT_MERGE_FIELD'))};});}},Ne=class extends _0x548d2a{afterInit(){const _0x360b48=this['editor'],_0x45b1db=_0x360b48['plugins']['get']('TrackChangesEditing');_0x360b48['plugins']['has']('MultiLevelList')&&(_0x45b1db['enableDefaultAttributesIntegration']('multiLevelList'),_0x45b1db['descriptionFactory']['registerDescriptionCallback'](_0x4baad7=>this['handleDescriptions'](_0x4baad7)));}handleDescriptions(_0x483e6f){const _0x30f067=this['editor']['locale'],{data:_0x59bd73}=_0x483e6f,_0x59440d={'type':'format','content':''};if(_0x59bd73&&'listMarkerStyle'==_0x59bd73['key']){if(!_0x59bd73['oldValue'])return{'type':'format','content':Ot(_0x30f067,'*Set\x20format:*\x20%0',Ot(_0x30f067,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x59bd73['newValue']+')'};if(!_0x59bd73['newValue']){let _0x35a70a=_0x483e6f['head'];for(;_0x35a70a;){if(_0x35a70a['data']&&'listType'==_0x35a70a['data']['key']&&_0x35a70a['data']['newValue'])return _0x59440d;_0x35a70a=_0x35a70a['next'];}return{'type':'format','content':Ot(_0x30f067,'*Remove\x20format:*\x20%0',Ot(_0x30f067,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x59bd73['oldValue']+')'};}}}},Se=class extends _0x548d2a{afterInit(){const _0x15f33c=this['editor'];if(!_0x15f33c['plugins']['has']('PageBreakEditing'))return;_0x15f33c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1ece5c=_0x15f33c['plugins']['get']('TrackChangesEditing'),_0x3c2a95=_0x15f33c['locale'];_0x1ece5c['descriptionFactory']['registerElementLabel']('pageBreak',_0x641b94=>Ot(_0x3c2a95,'ELEMENT_PAGE_BREAK',_0x641b94));}},Me=class extends _0x548d2a{afterInit(){const _0x2ac46a=this['editor'];if(!_0x2ac46a['plugins']['has']('Paragraph'))return;const _0x3fc95e=_0x2ac46a['locale'],_0x4c9658=_0x2ac46a['plugins']['get']('TrackChangesEditing');_0x4c9658['descriptionFactory']['registerElementLabel']('paragraph',_0xc7ed4d=>Ot(_0x3fc95e,'ELEMENT_PARAGRAPH',_0xc7ed4d)),_0x4c9658['enableDefaultAttributesIntegration']('paragraph'),_0x4c9658['enableCommand']('insertParagraph');const _0x1ae580=_0x4c9658['descriptionFactory'];_0x1ae580['registerDescriptionCallback'](_0xd4387a=>{if('insertion'!==_0xd4387a['type'])return;const {start:_0x45de6b,end:_0x13dec6}=_0xd4387a['getFirstRange']();if(!_0x45de6b['isTouching'](_0x13dec6)||!_0x45de6b['nodeAfter'])return;const _0x4e6100=_0x2ac46a['model']['schema'],_0x33cda0=_0x45de6b['nodeAfter'];return _0x4e6100['isBlock'](_0x33cda0)&&!_0x4e6100['isLimit'](_0x33cda0)&&_0x4e6100['checkChild'](_0x33cda0,'$text')?{'type':'insertion','content':Ot(_0x3fc95e,'*Insert:*\x20%0',_0x1ae580['getItemLabel'](_0x33cda0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}_registerLegacyDescription(){const _0x1d138c=this['editor'],_0x143446=_0x1d138c['locale'];_0x1d138c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x279c5a=>{if('formatBlock'!=_0x279c5a['type'])return;const {data:_0x3f74db}=_0x279c5a;return _0x3f74db&&'paragraph'==_0x3f74db['commandName']?{'type':'format','content':Ot(_0x143446,'*Change\x20to:*\x20%0',Ot(_0x143446,'ELEMENT_PARAGRAPH'))}:void 0x0;});}},Oe=class extends _0x548d2a{afterInit(){const _0x154446=this['editor'];_0x154446['commands']['get']('replaceSource')&&_0x154446['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}},we=class extends _0x548d2a{afterInit(){const _0x1da2d4=this['editor'];_0x1da2d4['plugins']['has']('RemoveFormatEditing')&&(_0x1da2d4['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0x4a756a=this['editor'];_0x4a756a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466f2d=>{if('formatBlock'!=_0x466f2d['type']&&'formatInline'!=_0x466f2d['type'])return;const {data:_0x3bb190}=_0x466f2d;return _0x3bb190&&'removeFormat'==_0x3bb190['commandName']?{'type':'format','content':Ot(_0x4a756a['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}},Fe=class extends _0x548d2a{afterInit(){const _0x17ccd4=this['editor'];if(!_0x17ccd4['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x537477=_0x17ccd4['plugins']['get']('TrackChangesEditing');_0x537477['enableCommand']('goToPreviousRestrictedEditingException'),_0x537477['enableCommand']('goToNextRestrictedEditingException');const _0x5618b4=_0x17ccd4['plugins']['get']('RestrictedEditingModeEditing');_0x5618b4['enableCommand']('trackChanges'),_0x5618b4['enableCommand']('acceptSuggestion'),_0x5618b4['enableCommand']('discardSuggestion'),_0x5618b4['enableCommand']('acceptAllSuggestions'),_0x5618b4['enableCommand']('discardAllSuggestions'),_0x5618b4['enableCommand']('acceptSelectedSuggestions'),_0x5618b4['enableCommand']('discardSelectedSuggestions');}},Be=class extends _0x548d2a{afterInit(){const _0x4f85ab=this['editor'];if(!_0x4f85ab['plugins']['has']('ShiftEnter'))return;const _0x288cef=_0x4f85ab['plugins']['get']('TrackChangesEditing');_0x288cef['enableCommand']('shiftEnter'),_0x288cef['descriptionFactory']['registerElementLabel']('softBreak',_0x3c8907=>Ot(_0x4f85ab['locale'],'ELEMENT_LINE_BREAK',_0x3c8907));}};function ve(_0xc80e90,_0x592af9,_0x178058){const _0x2f6932=[];for(const _0x1c8e06 of _0x592af9['getItems']())_0x1c8e06['hasAttribute'](_0xc80e90)&&_0x2f6932['push'](_0x178058['createRangeOn'](_0x1c8e06));return _0x2f6932;}var De=class extends _0x548d2a{afterInit(){const _0x2d8ca9=this['editor'],_0x16e04e=_0x2d8ca9['plugins']['get']('TrackChangesEditing');_0x2d8ca9['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x16e04e['enableCommand']('restrictedEditingExceptionAuto'));}_enableEditingExceptionCommand(){const _0xfeba7c=this['editor'],_0x2dfbf1=_0xfeba7c['model'],_0x1b3701=_0xfeba7c['locale'],_0x4454a5=_0xfeba7c['plugins']['get']('TrackChangesEditing'),_0x48ede='restrictedEditingException',_0x3264cb=_0xfeba7c['commands']['get'](_0x48ede);_0x4454a5['enableCommand'](_0x48ede,(_0x1b32fe,_0x1bb43e={})=>{const _0x295527=_0x2dfbf1['document']['selection'];if(_0x295527['isCollapsed'])return void _0x1b32fe(_0x1bb43e);const _0x170f0a=void 0x0!==_0x1bb43e['forceValue']?_0x1bb43e['forceValue']:!_0x3264cb['value'];_0x2dfbf1['change'](()=>{const _0x927793=Array['from'](_0x295527['getRanges']());for(const _0x32e7d0 of _0x927793){const _0x37c02c=_0x170f0a?[_0x32e7d0]:ve(_0x48ede,_0x32e7d0,_0x2dfbf1);for(const _0x4ec198 of _0x37c02c)_0x4454a5['markInlineFormat'](_0x4ec198,{'commandName':_0x48ede,'commandParams':[{'forceValue':_0x170f0a}]});}});}),_0x4454a5['descriptionFactory']['registerDescriptionCallback'](_0x2a470a=>{if('formatBlock'!=_0x2a470a['type']&&'formatInline'!=_0x2a470a['type'])return;const {data:_0x155f5c}=_0x2a470a;return _0x155f5c&&_0x155f5c['commandName']==_0x48ede?_0x155f5c['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1b3701,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x1b3701,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}_enableEditingExceptionBlockCommand(){const _0x7ec3d4=this['editor'],_0x26933f=_0x7ec3d4['locale'],_0x269542=_0x7ec3d4['plugins']['get']('TrackChangesEditing'),_0x8a50bf='restrictedEditingExceptionBlock',_0x355abd=this['editor']['commands']['get'](_0x8a50bf);_0x269542['enableCommand'](_0x8a50bf,(_0x9a2f70,_0x510787={})=>{const _0x321ea5=this['editor']['model']['document']['selection'],_0x216845=_0x510787&&void 0x0!==_0x510787['forceValue']?_0x510787['forceValue']:!_0x355abd['value'];let _0x1f4c7e=[];_0x1f4c7e=Ct(_0x216845?Array['from'](_0x321ea5['getSelectedBlocks']())['filter'](_0x1b434c=>function(_0x18aac9){return!!_0x18aac9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1b434c)||function(_0x18b2b7,_0x106a70){const _0x43a1fd=_0x106a70['createContext'](_0x18b2b7['parent']);return!!_0x106a70['checkChild'](_0x43a1fd,'restrictedEditingException')&&!!_0x106a70['checkChild'](_0x43a1fd['push']('restrictedEditingException'),_0x18b2b7);}(_0x1b434c,this['editor']['model']['schema'])):Array['from'](_0x321ea5['getSelectedBlocks']())['map'](_0x389444=>function(_0x779d57){let _0x11ade6=_0x779d57;for(;_0x11ade6['parent'];){if('restrictedEditingException'==_0x11ade6['parent']['name'])return _0x11ade6;_0x11ade6=_0x11ade6['parent'];}return null;}(_0x389444))['filter'](_0x4e70df=>!!_0x4e70df),_0x7ec3d4['model']),_0x7ec3d4['model']['change'](()=>{for(const _0x7090d2 of _0x1f4c7e)_0x269542['markBlockFormat'](_0x7090d2,{'commandName':_0x8a50bf,'commandParams':[{'forceValue':_0x216845}]});});}),_0x269542['descriptionFactory']['registerDescriptionCallback'](_0xb5a26b=>{const {data:_0x345591}=_0xb5a26b;if(_0x345591&&_0x345591['commandName']==_0x8a50bf)return _0x345591['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x26933f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':Ot(_0x26933f,'FORMAT_RESTRICTED_DISABLED')};});}},Ue=class extends _0x548d2a{afterInit(){const _0x45c3df=this['editor'];_0x45c3df['plugins']['has']('Style')&&_0x45c3df['plugins']['has']('DataSchema')&&(_0x45c3df['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('style'),this['_registerLegacyDescription']());}_registerLegacyDescription(){const _0xb03693=this['editor'],_0x1704cb=_0xb03693['locale'];_0xb03693['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x530c3f=>{if('formatBlock'!=_0x530c3f['type']&&'formatInline'!=_0x530c3f['type'])return;const {data:_0xc84134}=_0x530c3f;return _0xc84134&&'style'===_0xc84134['commandName']?_0xc84134['commandParams'][0x0]['forceValue']?{'type':'format','content':Ot(_0x1704cb,'*Set\x20format:*\x20%0',_0xc84134['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':Ot(_0x1704cb,'*Remove\x20format:*\x20%0',_0xc84134['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}},Pe=class extends _0x548d2a{_tablePostFixingSubtypes;_tableSuggestions;constructor(_0x1cdaa7){super(_0x1cdaa7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}afterInit(){const _0x305711=this['editor'],_0x2d48ea=_0x305711['model']['document']['selection'];if(!_0x305711['plugins']['has']('TableEditing'))return;const _0xebf499=_0x305711['locale'],_0x1b0da5=_0x305711['plugins']['get']('TrackChangesEditing'),_0x36613c=_0x305711['plugins']['get']('TableUtils');_0x1b0da5['descriptionFactory']['registerElementLabel']('table',_0x4a6ffb=>Ot(_0xebf499,'ELEMENT_TABLE',_0x4a6ffb)),this['_setupColumnsRowsFixing'](),_0x1b0da5['enableCommand']('insertTable'),_0x1b0da5['enableCommand']('selectTableRow'),_0x1b0da5['enableCommand']('selectTableColumn');for(const _0x2921be of['insertTableRowAbove','insertTableRowBelow']){const _0x6ba397=_0x305711['commands']['get'](_0x2921be);_0x1b0da5['enableCommand'](_0x2921be,_0x5d8063=>{_0x305711['model']['change'](_0x4a9e71=>{_0x5d8063();const _0x415d42='above'===_0x6ba397['order'],_0x451463=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x1e3c45=_0x36613c['getRowIndexes'](_0x451463),_0x5c05ee=_0x415d42?_0x1e3c45['first']-0x1:_0x1e3c45['last']+0x1,_0x1ce037=_0x451463[0x0]['findAncestor']('table'),_0x5ace80=_0x36613c['createTableWalker'](_0x1ce037,{'startRow':_0x5c05ee,'endRow':_0x5c05ee}),_0xe26b0=Array['from'](_0x5ace80)['map'](_0x260c91=>_0x4a9e71['createRangeOn'](_0x260c91['cell']));_0x1b0da5['markMultiRangeInsertion'](_0xe26b0,'tableRow');});});}for(const _0x5b6009 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4d8be6=_0x305711['commands']['get'](_0x5b6009);_0x1b0da5['enableCommand'](_0x5b6009,_0x392956=>{_0x305711['model']['change'](_0x56c77b=>{_0x392956();const _0x392a90='left'===_0x4d8be6['order'],_0x3b5c8c=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x30a8ec=_0x36613c['getColumnIndexes'](_0x3b5c8c),_0x518424=_0x392a90?_0x30a8ec['first']-0x1:_0x30a8ec['last']+0x1,_0x2893a9=_0x3b5c8c[0x0]['findAncestor']('table'),_0x5a229a=_0x36613c['createTableWalker'](_0x2893a9,{'startRow':0x0,'column':_0x518424,'includeAllSlots':!0x1}),_0x5701dc=Array['from'](_0x5a229a)['map'](_0x4fa713=>_0x56c77b['createRangeOn'](_0x4fa713['cell']));_0x1b0da5['markMultiRangeInsertion'](_0x5701dc,'tableColumn');});});}for(const _0x548f0a of['removeTableRow','removeTableColumn']){const _0x1b75db=_0x548f0a['substr'](0xb),_0x3e9344=_0x1b75db['toLowerCase'](),_0x43189b=_0x3e9344['substr'](0x0,0x3)+'span',_0x586e53='table'+_0x1b75db,_0x47b0fd='min'+_0x1b75db,_0x37ab7a='max'+_0x1b75db;_0x1b0da5['enableCommand'](_0x548f0a,()=>{_0x305711['model']['change'](_0x44f57c=>{const _0x359e04=_0x36613c['getSelectionAffectedTableCells'](_0x2d48ea),_0x5228d6=_0x359e04[0x0]['findAncestor']('table');let _0x38844c;if('removeTableRow'==_0x548f0a){const _0x550c09=_0x36613c['getRowIndexes'](_0x359e04);_0x38844c={'startRow':_0x550c09['first'],'endRow':_0x550c09['last'],'includeAllSlots':!0x0};}else{const _0x5f08a1=_0x36613c['getColumnIndexes'](_0x359e04);_0x38844c={'startColumn':_0x5f08a1['first'],'endColumn':_0x5f08a1['last'],'includeAllSlots':!0x0};}const _0x3a3c11=_0x36613c['createTableWalker'](_0x5228d6,_0x38844c),_0x521bbc=Array['from'](_0x3a3c11)['map'](({cell:_0x2546c3})=>_0x2546c3),_0x50d50c=xe(_0x521bbc['filter'](_0xd28383=>_0xd28383['hasAttribute'](_0x43189b))),_0x238f26=xe(_0x521bbc['filter'](_0x127788=>!_0x127788['hasAttribute'](_0x43189b)))['map'](_0x1cbfa7=>_0x44f57c['createRangeOn'](_0x1cbfa7)),_0x58c128=_0x1b0da5['markMultiRangeDeletion'](_0x238f26,_0x586e53);if(_0x58c128&&('tableRow'==_0x58c128['subType']||'tableColumn'==_0x58c128['subType'])){const _0x507f23=this['_getSuggestionCoords'](_0x58c128);for(const _0x4194de of _0x50d50c){const _0x21c3e6=_0x44f57c['createRangeOn'](_0x4194de),_0x4e7a2d=_0x36613c['getCellLocation'](_0x4194de),_0x2180cf=_0x4194de['getAttribute'](_0x43189b)-0x1,_0x911903=_0x507f23[_0x47b0fd],_0x3eed3d=_0x507f23[_0x37ab7a];_0x911903<=_0x4e7a2d[_0x3e9344]&&_0x4e7a2d[_0x3e9344]+_0x2180cf<=_0x3eed3d&&_0x58c128['addRange'](_0x21c3e6);}}});});}function _0x2ba6a5(_0x361029){const _0x2642a0=Array['from'](_0x2d48ea['getRanges']())['map'](_0x41b2cd=>ot['fromRange'](_0x41b2cd));_0x305711['model']['change'](_0x2f8c28=>{const _0x28ea36=_0x2f8c28['batch'];_0x361029=_0x361029['filter'](_0x58dd1a=>'$graveyard'!=_0x58dd1a['root']['rootName']),_0x2f8c28['setSelection'](_0x361029),_0x305711['commands']['get']('removeTableRow')['refresh'](),_0x305711['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x305711['model']['enqueueChange'](()=>{_0x305711['model']['enqueueChange'](_0x28ea36,_0x1a98c4=>{const _0x550d1c=_0x2642a0['filter'](_0x54b9c4=>'$graveyard'!=_0x54b9c4['root']['rootName']);_0x550d1c['length']>0x0&&_0x1a98c4['setSelection'](_0x550d1c);for(const _0xb7d896 of _0x2642a0)_0xb7d896['detach']();});});});}function _0x491476(_0x23ef79){_0x305711['model']['change'](_0xbcc16f=>{const _0x5a99ce=Array['from'](_0x2d48ea['getRanges']())['map'](_0xac7474=>ot['fromRange'](_0xac7474)),_0x464f08=[];for(const _0x3edfb6 of _0x23ef79)for(const _0x4e0fdb of _0x3edfb6['getItems']({'shallow':!0x0}))_0x464f08['push'](_0x4e0fdb);for(const _0x512211 of _0x464f08)'$graveyard'!=_0x512211['root']['rootName']&&(_0xbcc16f['setSelection'](_0xbcc16f['createPositionAt'](_0x512211,0x0)),_0x305711['commands']['get']('removeTableColumn')['refresh'](),_0x305711['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x6d4a8c=_0x5a99ce['filter'](_0x494338=>'$graveyard'!=_0x494338['root']['rootName']);_0x6d4a8c['length']>0x0&&_0xbcc16f['setSelection'](_0x6d4a8c);for(const _0x37116e of _0x5a99ce)_0x37116e['detach']();});}function _0x931fb8(_0x15d71d,_0x4e2043){return _0x4e2043['every'](_0x3669a1=>_0x15d71d['some'](_0x4412ba=>_0x4412ba['end']['isEqual'](_0x3669a1['start'])||_0x3669a1['end']['isEqual'](_0x4412ba['start'])));}function _0x50b9d2(_0x442c8e,_0x132a72){return!_0x442c8e['some'](_0x3aaf72=>_0x132a72['some'](_0x5a9bc9=>_0x3aaf72['isIntersecting'](_0x5a9bc9)))&&_0x442c8e['some'](_0xdb059d=>_0x132a72['some'](_0x5cb87a=>_0xdb059d['end']['isTouching'](_0x5cb87a['start'])));}_0x1b0da5['descriptionFactory']['registerDescriptionCallback'](_0x8a5cab=>{if('insertion'!=_0x8a5cab['type']&&'deletion'!=_0x8a5cab['type'])return;const _0xa9155f=_0x8a5cab['getContainedElement']();if(null!=_0xa9155f&&_0xa9155f['is']('element','table')){if('insertion'==_0x8a5cab['type']){const _0x16e5a2=_0x8a5cab['getItems']()['filter'](_0x1a61c2=>_0x1a61c2['is']('$textProxy'))['map'](_0x37cd90=>_0x37cd90['data']);if(_0x16e5a2['length'])return{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x16e5a2['join']('\x20')+'\x22'))};}if('deletion'==_0x8a5cab['type']){const _0x21efbc=_0x8a5cab['getItems']()['filter'](_0x3fa686=>_0x3fa686['is']('$textProxy'))['map'](_0x4bd519=>_0x4bd519['data']);if(_0x21efbc['length'])return{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21efbc['join']('\x20')+'\x22'))};}}}),_0x1b0da5['descriptionFactory']['registerDescriptionCallback'](_0x5651f1=>{if('tableRow'==_0x5651f1['subType']){const _0x32a480=_0x5651f1['getItems']()['filter'](_0x912468=>_0x912468['is']('$textProxy'))['map'](_0x20ef2c=>_0x20ef2c['data']),_0x14f3aa=this['_getSuggestionCoords'](_0x5651f1),_0x24b960=_0x14f3aa['maxRow']-_0x14f3aa['minRow']+0x1;if('insertion'==_0x5651f1['type'])return _0x32a480['length']?{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x24b960,'\x22'+_0x32a480['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW',_0x24b960))};if('deletion'==_0x5651f1['type'])return _0x32a480['length']?{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x24b960,'\x22'+_0x32a480['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_ROW',_0x24b960))};}if('tableColumn'==_0x5651f1['subType']){const _0x5cfaf3=_0x5651f1['getItems']()['filter'](_0x87d140=>_0x87d140['is']('$textProxy'))['map'](_0x5e0437=>_0x5e0437['data']),_0x4d5083=this['_getSuggestionCoords'](_0x5651f1),_0x1a8d6e=_0x4d5083['maxColumn']-_0x4d5083['minColumn']+0x1;if('insertion'==_0x5651f1['type'])return _0x5cfaf3['length']?{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a8d6e,'\x22'+_0x5cfaf3['join']('\x20')+'\x22']))}:{'type':'insertion','content':Ot(_0xebf499,'*Insert:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN',_0x1a8d6e))};if('deletion'==_0x5651f1['type'])return _0x5cfaf3['length']?{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a8d6e,'\x22'+_0x5cfaf3['join']('\x20')+'\x22']))}:{'type':'deletion','content':Ot(_0xebf499,'*Remove:*\x20%0',Ot(_0xebf499,'ELEMENT_TABLE_COLUMN',_0x1a8d6e))};}}),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ba6a5),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ba6a5),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x491476),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x491476),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x931fb8),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x931fb8),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x50b9d2),_0x1b0da5['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x50b9d2);}_acceptFormatSuggestionCallbackFactory(){const _0x4ab10e=this['editor'],_0x1bb209=_0x4ab10e['model']['document']['selection'];return(_0x6dc437,_0x3c1f32)=>{_0x4ab10e['model']['change'](_0x4faeb1=>{const {commandName:_0x1780e8,commandParams:_0x32929d}=_0x3c1f32;let _0x40adb3=_0x6dc437[0x0]['end']['nodeBefore'];_0x32929d&&_0x32929d[0x0]&&!0x1===_0x32929d[0x0]['forceValue']&&(_0x40adb3=_0x6dc437[0x0]['start']['nodeAfter']);const _0x54d7c9=_0x4faeb1['createRangeIn'](_0x40adb3);if('$graveyard'==_0x54d7c9['root']['rootName'])return;const _0x897f1a=Array['from'](_0x1bb209['getRanges']())['map'](_0x411db7=>ot['fromRange'](_0x411db7));_0x4faeb1['setSelection'](_0x54d7c9),_0x4ab10e['commands']['get'](_0x1780e8)['refresh'](),_0x32929d['push']({'forceDefaultExecution':!0x0}),_0x4ab10e['execute'](_0x1780e8,..._0x32929d);const _0x21840c=_0x897f1a['filter'](_0x5a704f=>'$graveyard'!=_0x5a704f['root']['rootName']);_0x21840c['length']>0x0&&_0x4faeb1['setSelection'](_0x21840c);for(const _0x1716b0 of _0x897f1a)_0x1716b0['detach']();});};}_getCoordsForCells(_0x1b1e61){const _0xd6be9a=this['editor']['plugins']['get']('TableUtils');let _0x21f365=Number['MAX_SAFE_INTEGER'],_0x5ed6b7=Number['MIN_SAFE_INTEGER'],_0x57c00f=Number['MAX_SAFE_INTEGER'],_0x4730a6=Number['MIN_SAFE_INTEGER'];for(const _0x20adee of _0x1b1e61){if('$graveyard'==_0x20adee['root']['rootName'])continue;const {row:_0x26cdc5,column:_0x4e41a9}=_0xd6be9a['getCellLocation'](_0x20adee),_0x2cea03=_0x20adee['hasAttribute']('rowspan')?_0x20adee['getAttribute']('rowspan')-0x1:0x0,_0x3f60b2=_0x20adee['hasAttribute']('colspan')?_0x20adee['getAttribute']('colspan')-0x1:0x0;_0x21f365=_0x26cdc5<_0x21f365?_0x26cdc5:_0x21f365,_0x5ed6b7=_0x26cdc5+_0x2cea03>_0x5ed6b7?_0x26cdc5+_0x2cea03:_0x5ed6b7,_0x57c00f=_0x4e41a9<_0x57c00f?_0x4e41a9:_0x57c00f,_0x4730a6=_0x4e41a9+_0x3f60b2>_0x4730a6?_0x4e41a9+_0x3f60b2:_0x4730a6;}return{'minRow':_0x21f365,'maxRow':_0x5ed6b7,'minColumn':_0x57c00f,'maxColumn':_0x4730a6};}_setupColumnsRowsFixing(){const _0x507291=this['editor'],_0x5056ce=_0x507291['plugins']['get']('TrackChangesEditing'),_0x44b7aa=_0x507291['plugins']['get']('TableUtils');_0x507291['model']['document']['on']('change:data',()=>{const _0x18752e=Array['from'](_0x507291['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x269a69,data:_0x28d1c6}of _0x18752e){const {group:_0x52c316,id:_0x542052,subType:_0x121a67}=et(_0x269a69);if('suggestion'!=_0x52c316)continue;if(null!=_0x28d1c6['oldRange'])continue;const _0x224fdc=_0x5056ce['getSuggestion'](_0x542052);this['_tablePostFixingSubtypes']['includes'](_0x121a67)&&this['_tableSuggestions']['add'](_0x224fdc);}},{'priority':'low'});const _0x4b4f75=(_0x593773,_0x2b8341)=>{let _0x2799ff=!0x1;const _0x1b4db2=_0x2b8341['createRangeOn'](_0x593773),_0x9b2d17=_0x593773['findAncestor']('table'),_0x4f95a0=_0x44b7aa['getCellLocation'](_0x593773);for(const _0x530805 of this['_tableSuggestions']){const _0x35efde=_0x530805['subType'],_0x22d989=_0x35efde['startsWith']('tablePaste'),_0x4b3574=_0x35efde['substr'](_0x22d989?0xa:0x5),_0x23897f=_0x4b3574['toLowerCase'](),_0x1f1402=_0x23897f['substr'](0x0,0x3)+'span',_0x2930d6='min'+_0x4b3574,_0x405740='max'+_0x4b3574;if(!_0x530805['isInContent'])continue;if(_0x9b2d17!=_0x530805['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x530805['isIntersectingWithRange'](_0x1b4db2))continue;const _0x26dc8d=_0x593773['hasAttribute'](_0x1f1402)?_0x593773['getAttribute'](_0x1f1402)-0x1:0x0,_0x5e4c3f=this['_getSuggestionCoords'](_0x530805),_0x57d941=_0x5e4c3f[_0x2930d6],_0x7fcbb6=_0x5e4c3f[_0x405740];_0x57d941<=_0x4f95a0[_0x23897f]&&_0x4f95a0[_0x23897f]+_0x26dc8d<=_0x7fcbb6&&(_0x530805['addRange'](_0x1b4db2),_0x2799ff=!0x0);}return _0x2799ff;};_0x507291['model']['document']['registerPostFixer'](_0x52bcbd=>{let _0x168e42=!0x1;for(const _0x9a729e of _0x507291['model']['document']['differ']['getChanges']())if('insert'==_0x9a729e['type']){if('tableRow'==_0x9a729e['name']){for(const _0x51258b of _0x9a729e['position']['nodeAfter']['getChildren']())_0x168e42=_0x168e42||_0x4b4f75(_0x51258b,_0x52bcbd);}else'tableCell'==_0x9a729e['name']&&(_0x168e42=_0x168e42||_0x4b4f75(_0x9a729e['position']['nodeAfter'],_0x52bcbd));}return _0x168e42;});}_getSuggestionCoords(_0x307135){return this['_getCoordsForCells'](_0x307135['getRanges']()['map'](_0x23073f=>_0x23073f['start']['nodeAfter']));}};function xe(_0x38bd3d){return Array['from'](new Set(_0x38bd3d)['values']());}var Ge=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x4435be=this['editor'],_0x4a9211=_0x4435be['model']['document']['selection'],_0x22410a=_0x4435be['locale'];if(!_0x4435be['plugins']['has']('TableEditing'))return;const _0x336082=_0x4435be['plugins']['get']('TrackChangesEditing'),_0x8d8d5f=_0x4435be['plugins']['get']('TableUtils'),_0x5ee08f=_0x4435be['plugins']['get'](Pe);_0x5ee08f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x336082['enableCommand']('mergeTableCells',()=>{const _0x1b73bf=_0x8d8d5f['getSelectionAffectedTableCells'](_0x4435be['model']['document']['selection']);_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat'](_0x1b73bf,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4435be['commands']['get']('mergeTableCells')['on']('execute',(_0x59ec58,_0x20a849)=>{_0x4435be['commands']['get']('trackChanges')['value']&&(_0x20a849['length']>0x0&&_0x20a849[_0x20a849['length']-0x1]&&_0x20a849[_0x20a849['length']-0x1]['forceDefaultExecution']||_0x336082['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x59ec58['stop']());},{'priority':'highest'});for(const _0x10fdf6 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1e6c0f=_0x4435be['commands']['get'](_0x10fdf6);_0x336082['enableCommand'](_0x10fdf6,()=>{const _0x26c740=_0x4435be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x591daf=>_0x591daf['is']('element','tableCell')),_0x5916b1=_0x1e6c0f['value'];_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat']([_0x26c740,_0x5916b1],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29eb8b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x52bcc1=_0x4435be['commands']['get'](_0x29eb8b);_0x336082['enableCommand'](_0x29eb8b,()=>{const _0x5a5813=_0x8d8d5f['getSelectionAffectedTableCells'](_0x4435be['model']['document']['selection']),_0x515a25=_0x5a5813[0x0]['findAncestor']('table'),_0x1d449c=new Set();for(const _0x4861e7 of _0x5a5813){const {column:_0x477cbd,row:_0x4c7f1d}=_0x8d8d5f['getCellLocation'](_0x4861e7),_0x5802e4='horizontally'==_0x52bcc1['direction']?_0x8d8d5f['createTableWalker'](_0x515a25,{'startRow':_0x4c7f1d,'endRow':_0x4c7f1d,'includeAllSlots':!0x0}):_0x8d8d5f['createTableWalker'](_0x515a25,{'column':_0x477cbd,'includeAllSlots':!0x0});for(const {cell:_0x43e720}of _0x5802e4)_0x1d449c['add'](_0x43e720);}_0x4435be['model']['change'](()=>{_0x336082['markMultiRangeBlockFormat'](_0x5a5813,{'commandName':_0x29eb8b,'commandParams':[]},Array['from'](_0x1d449c),_0x29eb8b);});});}_0x336082['descriptionFactory']['registerDescriptionCallback'](_0x37cb8e=>{if('formatBlock'!=_0x37cb8e['type']&&'formatInline'!=_0x37cb8e['type'])return;const {data:_0x41239b}=_0x37cb8e;return _0x41239b&&'mergeTableCells'==_0x41239b['commandName']?{'type':'format','content':Ot(_0x22410a,'*Merge\x20cells*')}:void 0x0;}),_0x336082['descriptionFactory']['registerDescriptionCallback'](_0x5e3dec=>{if('formatBlock'!=_0x5e3dec['type']&&'formatInline'!=_0x5e3dec['type'])return;const {data:_0x446892}=_0x5e3dec;return _0x446892?'splitTableCellVertically'==_0x446892['commandName']?{'type':'format','content':Ot(_0x22410a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x446892['commandName']?{'type':'format','content':Ot(_0x22410a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x15c264=_0x5ee08f['_acceptFormatSuggestionCallbackFactory']();for(const _0x45a572 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x45a572,'accept',_0x15c264);for(const _0x4e5e3d of['splitTableCellVertically','splitTableCellHorizontally'])_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e5e3d,'accept',_0x2ccac8=>{_0x4435be['model']['change'](_0x215f86=>{const _0x1322cb=Array['from'](_0x2ccac8)['filter'](_0x17944b=>'$graveyard'!=_0x17944b['root']['rootName']&&!!_0x17944b['getContainedElement']()?.['is']('element','tableCell'));if(0x0==_0x1322cb['length'])return;const _0x454615=Array['from'](_0x4a9211['getRanges']())['map'](_0x55235b=>ot['fromRange'](_0x55235b));_0x215f86['setSelection'](_0x1322cb),_0x4435be['commands']['get'](_0x4e5e3d)['refresh'](),_0x4435be['execute'](_0x4e5e3d,{'forceDefaultExecution':!0x0});const _0x5cc1cd=_0x454615['filter'](_0x3e891b=>'$graveyard'!=_0x3e891b['root']['rootName']);_0x5cc1cd['length']>0x0&&_0x215f86['setSelection'](_0x5cc1cd);for(const _0x576c6e of _0x454615)_0x576c6e['detach']();});});_0x336082['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x5175c2=>{_0x4435be['model']['change'](_0x2e9d4b=>{const _0x40d6ae=Array['from'](_0x4a9211['getRanges']())['map'](_0x9dbcba=>ot['fromRange'](_0x9dbcba));_0x2e9d4b['setSelection'](_0x5175c2),_0x4435be['commands']['get']('mergeTableCells')['refresh'](),_0x4435be['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2bed67=_0x40d6ae['filter'](_0x14fb86=>'$graveyard'!=_0x14fb86['root']['rootName']);_0x2bed67['length']>0x0&&_0x2e9d4b['setSelection'](_0x2bed67);for(const _0x1a5551 of _0x40d6ae)_0x1a5551['detach']();});});for(const _0x14851a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2396a0=_0x4435be['commands']['get'](_0x14851a);_0x2396a0['on']('set:isEnabled',(_0x30b71e,_0x47cc5e,_0xcb08e3)=>{if(_0xcb08e3){const _0x38a62e=_0x4435be['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10ab58=>_0x10ab58['is']('element','tableCell'));this['_areMergableCells'](_0x2396a0['value'],_0x38a62e)||(_0x30b71e['return']=!0x1,_0x30b71e['stop']());}},{'priority':'low'});}}_areSelectedCellsMergable(){const _0x49ed20=this['editor']['commands']['get']('mergeTableCells'),_0x4e0197=this['editor']['plugins']['get']('TableUtils');if(!_0x49ed20['isEnabled'])return!0x1;const _0x13e0e8=_0x4e0197['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2f2c1e of _0x13e0e8)for(const _0x2e8540 of _0x13e0e8)if(_0x2f2c1e!=_0x2e8540&&!this['_areMergableCells'](_0x2f2c1e,_0x2e8540))return!0x1;return!0x0;}['_areMergableCells'](_0x21508a,_0x1299cd){const _0x55ada4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e0467=this['editor']['model']['createRangeOn'](_0x21508a),_0x20a95f=this['editor']['model']['createRangeOn'](_0x1299cd),_0x11bbc4=new Set(),_0x35ca89=new Set();for(const _0x234017 of _0x55ada4['getSuggestions']())if(('insertion'==_0x234017['type']||'deletion'==_0x234017['type']||'mergeTableCells'==_0x234017['subType'])&&_0x234017['isInContent']){for(const _0x256a14 of _0x234017['getRanges']())_0x256a14['containsRange'](_0x5e0467,!0x0)&&_0x11bbc4['add'](_0x234017['type']+':'+_0x234017['author']['id']),_0x256a14['containsRange'](_0x20a95f,!0x0)&&_0x35ca89['add'](_0x234017['type']+':'+_0x234017['author']['id']);}if(_0x11bbc4['size']!=_0x35ca89['size'])return!0x1;for(const _0x1bf457 of _0x11bbc4)if(!_0x35ca89['has'](_0x1bf457))return!0x1;return!0x0;}},He=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x18ee65=this['editor'];if(!_0x18ee65['plugins']['has']('TableEditing'))return;const _0x40b010=_0x18ee65['locale'],_0x4e6337=_0x18ee65['plugins']['get']('TrackChangesEditing');_0x4e6337['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e6337['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e6337['descriptionFactory']['registerAttributeLabel']('headingRows',Ot(_0x40b010,'FORMAT_HEADER_ROW')),_0x4e6337['descriptionFactory']['registerAttributeLabel']('headingColumns',Ot(_0x40b010,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}_handleLegacySuggestions(){const _0x1dceff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1864a0=this['editor']['plugins']['get'](Pe)['_acceptFormatSuggestionCallbackFactory']();_0x1dceff['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1864a0),_0x1dceff['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1864a0),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}_registerLegacyConverters(){const _0x2c2d02=this['editor']['plugins']['get']('TrackChangesEditing'),_0x413ca4=this['editor']['plugins']['get']('TableUtils');function _0x21e9a6({showActiveMarker:_0x367508=!0x0,setDataAttribute:_0x118392=!0x0}={}){return(_0x1657d8,_0x416118,_0x34ff66)=>{const {type:_0x5293ee,id:_0x2283b3}=et(_0x416118['markerName']);if(!_0x2c2d02['hasSuggestion'](_0x2283b3))return;const _0x33dd28=_0x2c2d02['getSuggestion'](_0x2283b3),_0x44811a=_0x33dd28['data'];if('formatBlock'!=_0x33dd28['type']||!_0x44811a||'setTableColumnHeader'!=_0x44811a['commandName'])return;if(_0x416118['item'])return void _0x1657d8['stop']();if(!_0x34ff66['consumable']['consume'](_0x416118['markerRange'],_0x1657d8['name']))return;const _0x2fe846=_0x416118['markerRange']['start']['nodeAfter'],_0x462679=_0x416118['markerRange']['end']['nodeBefore'],_0x15f397=_0x2fe846['parent']['parent'],{column:_0x373067}=_0x413ca4['getCellLocation'](_0x2fe846),{column:_0x2aff68}=_0x413ca4['getCellLocation'](_0x462679);for(let _0x31d69d=_0x373067;_0x31d69d<=_0x2aff68;_0x31d69d++){const _0x133ea5=_0x413ca4['createTableWalker'](_0x15f397,{'column':_0x31d69d,'includeAllSlots':!0x1});for(const _0x4fff02 of _0x133ea5){const _0x3ecaa6=_0x4fff02['cell'],_0x1e0a02=_0x34ff66['mapper']['toViewElement'](_0x3ecaa6);_0x34ff66['writer']['addClass']('ck-suggestion-marker-'+_0x5293ee,_0x1e0a02),_0x118392&&_0x34ff66['writer']['setAttribute']('data-suggestion',_0x2283b3,_0x1e0a02),_0x34ff66['mapper']['bindElementToMarker'](_0x1e0a02,_0x416118['markerName']),_0x367508&&(_0x2c2d02['activeMarkers']['includes'](_0x416118['markerName'])?_0x34ff66['writer']['addClass']('ck-suggestion-marker--active',_0x1e0a02):_0x34ff66['writer']['removeClass']('ck-suggestion-marker--active',_0x1e0a02));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x21e9a6(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x38b54e,_0x4c805f,_0x3dbea0)=>{_0x3dbea0['options']['showSuggestionHighlights']&&_0x21e9a6({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x38b54e,_0x4c805f,_0x3dbea0);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x51b785,_0x2c7a20,_0x52f194)=>{const {type:_0x4ba003,id:_0x15aeb8}=et(_0x2c7a20['markerName']);if(!_0x2c2d02['hasSuggestion'](_0x15aeb8))return;const _0x2dc66c=_0x2c2d02['getSuggestion'](_0x15aeb8),_0x314e01=_0x2dc66c['data'];if('formatBlock'!=_0x2dc66c['type']||!_0x314e01||'setTableColumnHeader'!=_0x314e01['commandName'])return;const _0x4a25ca=_0x52f194['mapper']['markerNameToElements'](_0x2c7a20['markerName']);if(_0x4a25ca){for(const _0x216821 of _0x4a25ca)_0x52f194['writer']['removeClass']('ck-suggestion-marker-'+_0x4ba003,_0x216821),_0x52f194['writer']['removeClass']('ck-suggestion-marker--active',_0x216821),_0x52f194['writer']['removeAttribute']('data-suggestion',_0x216821),_0x52f194['mapper']['unbindElementFromMarkerName'](_0x216821,_0x2c7a20['markerName']);}},{'priority':'highest'});}_registerLegacyDescription(){const _0x140aec=this['editor'],_0x32f310=_0x140aec['locale'];function _0x58514e(_0x32b38a){return{'type':'format','content':Ot(_0x32f310,'*Format:*\x20%0',_0x32b38a)};}_0x140aec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1baac6=>{if('formatBlock'!=_0x1baac6['type'])return;const {data:_0x19d4a9}=_0x1baac6;return _0x19d4a9?'setTableRowHeader'==_0x19d4a9['commandName']?_0x19d4a9['commandParams'][0x0]['forceValue']?_0x58514e(Ot(_0x32f310,'FORMAT_HEADER_ROW')):_0x58514e(Ot(_0x32f310,'FORMAT_REGULAR_ROW')):'setTableColumnHeader'==_0x19d4a9['commandName']?_0x19d4a9['commandParams'][0x0]['forceValue']?_0x58514e(Ot(_0x32f310,'FORMAT_HEADER_COLUMN')):_0x58514e(Ot(_0x32f310,'FORMAT_REGULAR_COLUMN')):void 0x0:void 0x0;});}},$e=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x5d7da3=this['editor'];if(!_0x5d7da3['plugins']['has']('TableEditing')||!_0x5d7da3['config']['get']('table.enableFooters'))return;const _0xe169e4=_0x5d7da3['locale'],_0xdc958c=_0x5d7da3['plugins']['get']('TrackChangesEditing');_0xdc958c['enableDefaultAttributesIntegration']('setTableFooterRow'),_0xdc958c['descriptionFactory']['registerAttributeLabel']('footerRows',Ot(_0xe169e4,'FORMAT_FOOTER_ROW'));}},We=class extends _0x548d2a{afterInit(){const _0x346031=this['editor'],_0x5957db=_0x346031['locale'],_0x3d2f5c=_0x346031['plugins']['get']('TrackChangesEditing');function _0x148129(_0x3e25db){return{'type':'format','content':''+Ot(_0x5957db,'*Set\x20table\x20type:*\x20%0',_0x3e25db)};}_0x346031['plugins']['has']('TableLayout')&&(_0x3d2f5c['enableCommand']('insertTableLayout'),_0x3d2f5c['enableDefaultAttributesIntegration']('tableType'),_0x3d2f5c['descriptionFactory']['registerElementLabel'](_0x29d44d=>_0x29d44d['is']('element','table')&&'layout'===_0x29d44d['getAttribute']('tableType'),_0x35977c=>Ot(_0x5957db,'ELEMENT_LAYOUT_TABLE',_0x35977c)),_0x3d2f5c['descriptionFactory']['registerDescriptionCallback'](_0x3362b3=>{const {data:_0x21673a}=_0x3362b3;if(_0x21673a&&'tableType'==_0x21673a['key'])switch(_0x21673a['newValue']){case'layout':return _0x148129(Ot(_0x5957db,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x148129(Ot(_0x5957db,'ELEMENT_CONTENT_TABLE'));}}));}};const Ve=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],je=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Ve['map'](_0x15c8af=>[_0x15c8af,null]));var ze=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x22b1dc=this['editor'];if(!_0x22b1dc['plugins']['has']('TableClipboard'))return;const _0x13fcf9=_0x22b1dc['plugins']['get']('TrackChangesEditing'),_0x2ae819=_0x22b1dc['plugins']['get']('TableUtils'),_0x2b0896=_0x22b1dc['plugins']['get'](Pe),_0x171968=_0x22b1dc['plugins']['get']('TableClipboard'),_0x506c49=_0x22b1dc['plugins']['get']('TableSelection'),_0x18fe72=_0x22b1dc['plugins']['get'](ft);_0x2b0896['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x22b1dc['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x22b1dc['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5bc126=null,_0x99d6dc=!0x1;_0x18fe72['on']('contentInsertion',(_0x49688f,_0x41b9f8)=>{_0x99d6dc='paste'===_0x41b9f8['method'];}),_0x22b1dc['model']['on']('insertContent',(_0x2a08e0,_0x499fc1)=>{if(!_0x99d6dc&&null===_0x506c49['getSelectedTableCells']())return;const [_0x2c9796,_0x3bb219]=_0x499fc1,_0x23caea=_0x499fc1[_0x499fc1['length']-0x1];_0x23caea&&_0x23caea['forceDefaultExecution']||_0x13fcf9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x897fc5,_0xd10cd1,_0x1726fc,_0x125b46,_0x124b3a){if(_0xd10cd1&&!_0xd10cd1['is']('documentSelection'))return!0x1;const _0x1ee1c0=_0x124b3a['getTableIfOnlyTableInContent'](_0x897fc5,_0x1726fc);if(!_0x1ee1c0||!Xe(_0x1ee1c0,void 0x0,_0x125b46))return!0x1;const _0x282997=_0x125b46['getSelectionAffectedTableCells'](_0x1726fc['document']['selection']);if(!_0x282997['length'])return!0x1;const _0x4a6587=_0x282997[0x0]['findAncestor']('table'),_0x2b55a9=_0x125b46['getRowIndexes'](_0x282997),_0x5dc821=_0x125b46['getColumnIndexes'](_0x282997),_0x5b88ba={'startRow':_0x2b55a9['first'],'endRow':_0x2b55a9['last'],'startColumn':_0x5dc821['first'],'endColumn':_0x5dc821['last']};return 0x1==_0x282997['length']&&(_0x5b88ba['endRow']+=_0x125b46['getRows'](_0x1ee1c0)-0x1,_0x5b88ba['endColumn']+=_0x125b46['getColumns'](_0x1ee1c0)-0x1),Xe(_0x4a6587,_0x5b88ba,_0x125b46);}(_0x2c9796,_0x3bb219,_0x22b1dc['model'],_0x2ae819,_0x171968)&&(_0x2a08e0['stop'](),_0x5bc126={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x22b1dc['model']['change'](()=>{_0x22b1dc['model']['insertContent'](_0x499fc1[0x0],_0x499fc1[0x1],_0x499fc1[0x2],{'forceDefaultExecution':!0x0});const _0x32ae92=_0x1dfb7c(),{rowInsertionRanges:_0x49002b,columnInsertionRanges:_0x5d041f,insertionRanges:_0x15ba21,deletionRanges:_0x38510d,cells:_0x3d76b1}=_0x5bc126;_0x49002b['length']&&_0x13fcf9['markMultiRangeInsertion'](_0x49002b,'tablePasteRow',{'tablePasteChainId':_0x32ae92}),_0x5d041f['length']&&_0x13fcf9['markMultiRangeInsertion'](_0x5d041f,'tablePasteColumn',{'tablePasteChainId':_0x32ae92}),_0x15ba21['length']&&(_0x13fcf9['markMultiRangeInsertion'](_0x15ba21,'tablePaste',{'tablePasteChainId':_0x32ae92,'skipNestingCheck':!0x0}),_0x15ba21['forEach'](_0x597235=>_0x597235['detach']?.())),_0x38510d['length']&&(_0x13fcf9['markMultiRangeDeletion'](_0x38510d,'tablePaste',{'tablePasteChainId':_0x32ae92,'skipNestingCheck':!0x0}),_0x38510d['forEach'](_0x54bf1c=>_0x54bf1c['detach']?.()));const _0x28741f=_0x13fcf9['markMultiRangeBlockFormat'](_0x3d76b1['map'](({element:_0x124372})=>_0x124372),{'formatGroupId':_0x1dfb7c()},[],'tablePasteCell',{'tablePasteChainId':_0x32ae92});if(_0x28741f){const _0x5e027f=_0x28741f['getMarkers'](),_0x52a291=[];for(const {element:_0x1baf8e,attributes:_0x1bed91}of _0x3d76b1){if(!_0x1bed91)continue;const _0x2bb575=_0x22b1dc['model']['createRangeOn'](_0x1baf8e),_0x3deaae=_0x5e027f['find'](_0xec8726=>_0xec8726['getRange']()['isEqual'](_0x2bb575));_0x3deaae&&_0x52a291['push']([_0x3deaae['name'],_0x1bed91]);}_0x52a291['length']&&_0x28741f['setAttribute']('markerAttributes',Object['fromEntries'](_0x52a291));}_0x5bc126=null;}));},{'priority':_0x5e908b['high']+0xa}),_0x18fe72['on']('contentInsertion',()=>{_0x99d6dc=!0x1;},{'priority':'lowest'}),_0x22b1dc['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44477e,_0x5e2f12)=>{const [_0x36ca60,_0x3a847c,,_0x7f29aa]=_0x5e2f12;if(!_0x5bc126)return;_0x44477e['stop']();const _0x45b935=_0x36ca60['cell'],_0x5e4c3a=_0x3a847c,_0x1fb8f1=Ke(_0x45b935),_0x47178d=Ke(_0x5e4c3a);_0x44477e['return']=_0x45b935;let _0x5aa8de=null,_0xf94e37=null;if(_0x47178d||_0x1fb8f1){if(_0x1fb8f1&&!_0x47178d){_0x7f29aa['remove'](_0x45b935['getChild'](0x0));for(const _0x4566fb of Array['from'](_0x5e4c3a['getChildren']()))_0x7f29aa['insert'](_0x4566fb,_0x45b935,'end');const _0x1d8f83=_0x5bc126['rowInsertionIndexes']['includes'](_0x36ca60['row']),_0x3e6d8d=_0x5bc126['columnInsertionIndexes']['includes'](_0x36ca60['column']);_0x1d8f83||_0x3e6d8d||(_0x5aa8de=ot['fromRange'](_0x7f29aa['createRangeIn'](_0x45b935)));}else _0x47178d&&!_0x1fb8f1&&(_0xf94e37=_0x7f29aa['createRangeIn'](_0x45b935));}else{const _0x36f78e=_0x7f29aa['createElement']('tableCellSuggestion'),_0x3903fe=_0x7f29aa['createElement']('tableCellSuggestion');_0x7f29aa['wrap'](_0x7f29aa['createRangeIn'](_0x45b935),_0x3903fe),_0x7f29aa['insert'](_0x36f78e,_0x45b935,0x0);for(const _0x1e0a88 of Array['from'](_0x5e4c3a['getChildren']()))_0x7f29aa['insert'](_0x1e0a88,_0x36f78e,'end');_0x5aa8de=ot['fromRange'](_0x7f29aa['createRangeOn'](_0x36f78e)),_0xf94e37=ot['fromRange'](_0x7f29aa['createRangeOn'](_0x3903fe));}const _0x114c4b=Array['from'](_0x5e4c3a['getAttributes']())['filter'](([_0x41ed76])=>Ve['includes'](_0x41ed76));_0x5bc126['cells']['push']({'element':_0x45b935,'attributes':_0x114c4b['length']?Object['fromEntries'](_0x114c4b):null}),_0x5aa8de&&_0x5bc126['insertionRanges']['push'](_0x5aa8de),_0xf94e37&&_0x5bc126['deletionRanges']['push'](_0xf94e37);},{'priority':'high'}),_0x2ae819['on']('insertColumns',(_0x18e2b3,_0x272a2d)=>{const [_0x6a3893,_0x4d8f2d={}]=_0x272a2d;if(!_0x5bc126)return;const _0x44b890=_0x4d8f2d['at']||0x0,_0xeb0514=_0x4d8f2d['columns']||0x1;_0x5bc126['columnInsertionIndexes']=new Array(_0xeb0514)['fill'](_0x44b890)['map']((_0x24bd93,_0x5f0e8b)=>_0x24bd93+_0x5f0e8b);for(const {cell:_0x1b47f8}of _0x2ae819['createTableWalker'](_0x6a3893,{'startColumn':_0x44b890,'endColumn':_0x44b890+_0xeb0514-0x1}))_0x5bc126['columnInsertionRanges']['push'](_0x22b1dc['model']['createRangeOn'](_0x1b47f8));},{'priority':'low'}),_0x2ae819['on']('insertRows',(_0x32a403,_0xa86844)=>{const [_0x5c1ff1,_0x49c130={}]=_0xa86844;if(!_0x5bc126)return;const _0x196bce=_0x49c130['at']||0x0,_0x37c468=_0x49c130['rows']||0x1;_0x5bc126['rowInsertionIndexes']=new Array(_0x37c468)['fill'](_0x196bce)['map']((_0x24ccfb,_0x11a32f)=>_0x24ccfb+_0x11a32f);for(const {cell:_0x5731e6}of _0x2ae819['createTableWalker'](_0x5c1ff1,{'startRow':_0x196bce,'endRow':_0x196bce+_0x37c468-0x1}))_0x5bc126['rowInsertionRanges']['push'](_0x22b1dc['model']['createRangeOn'](_0x5731e6));},{'priority':'low'}),_0x13fcf9['descriptionFactory']['registerDescriptionCallback'](_0xfd682d=>{if(_0xfd682d['subType']&&_0xfd682d['subType']['startsWith']('tablePaste'))return _0xfd682d['previous']?{}:{'type':'insertion','content':Ot(_0x22b1dc['locale'],'*Replace\x20table\x20cells*')};});const _0x5a636e=()=>!0x1;for(const _0x2eb1cc of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion',_0x2eb1cc,'join',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('deletion',_0x2eb1cc,'join',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2eb1cc,'join',_0x5a636e);_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5a636e),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2ffdba,_0x1053f8,_0x4c1bef)=>{const _0x5bf664=_0x2ffdba['map'](_0x166806=>_0x166806['getContainedElement']())['filter'](_0x4bbfc1=>_0x4bbfc1),_0x15a7cd=new Map(_0x5bf664['map'](_0xddf6e8=>[_0xddf6e8,null]));if(_0x5bc126){for(const {element:_0xcde2aa,attributes:_0x2f24ab}of _0x5bc126['cells'])_0x2f24ab&&_0x15a7cd['set'](_0xcde2aa,_0x2f24ab);}else{if(_0x4c1bef&&_0x4c1bef['markerAttributes'])for(const [_0x12fbaa,_0x39ce53]of Object['entries'](_0x4c1bef['markerAttributes'])){const _0x1b20b6=_0x22b1dc['model']['markers']['get'](_0x12fbaa),_0x29aa04=_0x1b20b6?_0x1b20b6['getRange']()['getContainedElement']():null;_0x29aa04&&_0x15a7cd['set'](_0x29aa04,_0x39ce53);}}_0x22b1dc['model']['change'](_0x1c012b=>{for(const [_0x2d6a86,_0x3413f6]of _0x15a7cd)_0x1c012b['setAttributes']({...je,..._0x3413f6},_0x2d6a86);});});const _0x10b01f=(_0x469d77,_0x42b51c)=>{_0x13fcf9['_suggestionFactory']['registerCustomCallback'](_0x469d77,'tablePaste',_0x42b51c,(_0x4e3348,_0x575fc1,_0x58ff69)=>{_0x22b1dc['model']['change'](_0x196a8c=>{const _0x3195f8=[];for(const _0x41d929 of _0x4e3348){const _0x3779d6=_0x41d929['start']['nodeAfter'];_0x3779d6['is']('element','tableCellSuggestion')&&_0x3195f8['push'](_0x3779d6);}_0x13fcf9['_suggestionFactory']['getSuggestionCallback'](_0x469d77,null,_0x42b51c)(_0x4e3348,_0x575fc1,_0x58ff69);for(const _0x256caa of _0x3195f8)'$graveyard'!=_0x256caa['root']['rootName']&&_0x196a8c['unwrap'](_0x256caa);});});};_0x10b01f('insertion','accept'),_0x10b01f('insertion','discard'),_0x10b01f('deletion','accept'),_0x10b01f('deletion','discard'),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1448fe=>{const _0x1d720b=_0x1448fe['map'](_0x2904b1=>_0x2904b1['getContainedElement']()),_0x5a63c0=_0x1d720b[0x0]['findAncestor']('table'),{minRow:_0x128575,maxRow:_0x41217d}=_0x2b0896['_getCoordsForCells'](_0x1d720b);_0x2ae819['removeRows'](_0x5a63c0,{'at':_0x128575,'rows':_0x41217d-_0x128575+0x1});}),_0x13fcf9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b5687=>{const _0x119463=_0x4b5687['map'](_0x5cc4e0=>_0x5cc4e0['getContainedElement']()),_0x19f637=_0x119463[0x0]['findAncestor']('table'),{minColumn:_0x53cae3,maxColumn:_0x25de3f}=_0x2b0896['_getCoordsForCells'](_0x119463);_0x2ae819['removeColumns'](_0x19f637,{'at':_0x53cae3,'columns':_0x25de3f-_0x53cae3+0x1});});const _0x558a52=(_0x30158a,_0x137ae5)=>{if(!_0x137ae5['subType']||!_0x137ae5['subType']['startsWith']('tablePaste'))return;const _0x30ed60=_0x137ae5['attributes']['tablePasteChainId'],_0x2af88e=_0x13fcf9['getSuggestions']()['filter'](_0x270479=>_0x270479['isInContent']&&_0x270479['attributes']&&_0x270479['attributes']['tablePasteChainId']==_0x30ed60);_0x2af88e['length']&&_0x137ae5['getAllAdjacentSuggestions']()['length']!=_0x2af88e['length']&&_0x2af88e['reduce']((_0x243f3c,_0x299a94)=>(_0x243f3c['next']=_0x299a94,_0x299a94['previous']=_0x243f3c,_0x299a94));};function _0x2182a7(_0x1fbf93,_0x36328b=!0x0){const {id:_0x4ce1b8,authorId:_0x17341d}=et(_0x1fbf93['markerName']),_0x4074a3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x42a7ea=_0x13fcf9['activeMarkers']['includes'](_0x1fbf93['markerName']);return _0x42a7ea&&_0x4074a3['push']('ck-suggestion-marker--active'),{'classes':_0x4074a3,'attributes':{'data-suggestion':_0x4ce1b8,'data-author-id':_0x17341d},'priority':_0x42a7ea&&_0x36328b?0xbc2:0xbb8};}_0x13fcf9['on']('suggestionLoaded',_0x558a52,{'priority':'high'}),_0x13fcf9['on']('suggestionUnloaded',_0x558a52,{'priority':'high'}),_0x22b1dc['model']['document']['registerPostFixer'](()=>{let _0x250e08=!0x1;const _0x31e96a=Array['from'](_0x22b1dc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x515a55,data:_0xd1da34}of _0x31e96a){const {group:_0x52f5ab,type:_0x426288,id:_0x1496d}=et(_0x515a55);if('suggestion'!=_0x52f5ab||'deletion'!=_0x426288||_0xd1da34['oldRange'])continue;if(!_0x13fcf9['hasSuggestion'](_0x1496d))continue;const _0x1413c2=_0x13fcf9['getSuggestion'](_0x1496d)['getRanges'](),_0x6ec384=_0x22b1dc['plugins']['get']('Users')['me'];for(const _0x485210 of _0x13fcf9['getSuggestions']())if(_0x485210['isInContent']&&_0x485210['author']==_0x6ec384&&'formatBlock'==_0x485210['type']&&'tablePasteCell'==_0x485210['subType']&&_0x485210['getRanges']()['every'](_0x3208ba=>_0x1413c2['some'](_0x169c50=>_0x169c50['containsRange'](_0x3208ba,!0x0)))){for(const _0x446156 of _0x485210['getAllAdjacentSuggestions']())_0x446156['isInContent']&&(_0x446156['discard'](),_0x250e08=!0x0);}}return _0x250e08;}),_0x22b1dc['model']['document']['registerPostFixer'](_0x2db57d=>{const _0x339894=_0x22b1dc['commands']['get']('redo');if(!_0x339894||!_0x339894['_createdBatches']['has'](_0x2db57d['batch']))return!0x1;let _0x17064a=!0x1;const _0x4edc00=_0x22b1dc['plugins']['get']('Users')['me'],_0x2b30db=_0x22b1dc['model']['document']['differ']['getChanges'](),_0x3e7a16=Array['from'](_0x22b1dc['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3cb925,data:_0x1c306f})=>{const {group:_0x4359d6,subType:_0x4aad6c,authorId:_0x3ada91}=et(_0x3cb925);return'suggestion'==_0x4359d6&&'tablePaste'==_0x4aad6c&&_0x3ada91==_0x4edc00['id']&&!_0x1c306f['oldRange'];});for(const _0x32b9b2 of _0x2b30db){if('insert'!=_0x32b9b2['type']||'tableCellSuggestion'!=_0x32b9b2['name']||0x1!=_0x32b9b2['length'])continue;const _0x296ed3=_0x2db57d['createRange'](_0x32b9b2['position'],_0x32b9b2['position']['getShiftedBy'](0x1));if(!_0x3e7a16['find'](({data:_0x309376})=>_0x309376['newRange']['isEqual'](_0x296ed3))){for(const {name:_0x5b8466,data:_0x656bcf}of _0x3e7a16)if(_0x296ed3['containsRange'](_0x656bcf['newRange'])){_0x2db57d['updateMarker'](_0x5b8466,{'range':_0x296ed3}),_0x17064a=!0x0;break;}}}return _0x17064a;}),_0x22b1dc['model']['document']['registerPostFixer'](_0xfc1bd3=>{let _0x52cdf9=!0x1;const _0x550712=_0x22b1dc['plugins']['get']('Users')['me'],_0x24bd11=_0x13fcf9['getSuggestions']()['filter'](_0x4553fd=>_0x4553fd['isInContent']&&_0x4553fd['author']==_0x550712),_0x29108e=new Set(),_0x153ff9=new Set();for(const _0xbcfd85 of _0x24bd11)if('tablePaste'==_0xbcfd85['subType'])for(const _0x554292 of _0xbcfd85['getMarkers']()){const _0x58d79a=_0x554292['getRange']()['getContainedElement']();if(_0x58d79a){if(_0x58d79a['is']('element','tableCellSuggestion')&&Ke(_0x58d79a)){_0xbcfd85['removeMarker'](_0x554292['name']),_0x29108e['add'](_0x58d79a),_0x52cdf9=!0x0;const _0x6d5962=_0x58d79a['nextSibling'],_0x209522=_0x58d79a['previousSibling'],_0x19b4cd=_0x6d5962&&_0x6d5962['is']('element','tableCellSuggestion'),_0x17e459=_0x209522&&_0x209522['is']('element','tableCellSuggestion');_0x19b4cd&&!_0x29108e['has'](_0x6d5962)&&_0x153ff9['add'](_0x6d5962),_0x17e459&&!_0x29108e['has'](_0x209522)&&_0x153ff9['add'](_0x209522);}else _0x58d79a['is']('element','paragraph')&&_0x58d79a['isEmpty']&&(_0xbcfd85['removeMarker'](_0x554292['name']),_0x52cdf9=!0x0);}}else{if('tablePasteCell'==_0xbcfd85['subType']){if(!_0xbcfd85['attributes']||!_0xbcfd85['attributes']['tablePasteChainId'])continue;const _0x2113a6=_0xbcfd85['attributes']['markerAttributes'];if(_0x2113a6&&Object['keys'](_0x2113a6)['length'])continue;const _0x2269f7=_0xbcfd85['attributes']['tablePasteChainId'];let _0xb310f7=!0x0,_0x2ed552=!0x0;for(const _0xe8738a of _0x24bd11)if(_0xe8738a['subType']&&_0xe8738a['subType']['startsWith']('tablePaste')){if(!_0xe8738a['attributes']['tablePasteChainId']){_0x2ed552=!0x1;break;}if(_0xe8738a['id']!=_0xbcfd85['id']&&_0xe8738a['attributes']['tablePasteChainId']==_0x2269f7){_0xb310f7=!0x1;break;}}_0x2ed552&&_0xb310f7&&(_0xbcfd85['removeMarkers'](),_0x52cdf9=!0x0);}}for(const _0x23757a of _0x29108e)_0xfc1bd3['remove'](_0x23757a);for(const _0x1d72b0 of _0x153ff9)_0xfc1bd3['unwrap'](_0x1d72b0);return _0x52cdf9;}),_0x22b1dc['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x7a3b6d=>_0x2182a7(_0x7a3b6d),'converterPriority':'high'}),_0x22b1dc['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5c2ff4,_0x143da5)=>_0x143da5['options']['showSuggestionHighlights']?_0x2182a7(_0x5c2ff4,!0x1):null,'converterPriority':'high'});const _0x33563d=_0x22b1dc['editing']['view'];this['listenTo'](_0x33563d['document'],'clipboardOutput',(_0x569a6b,_0x26e708)=>{const _0x21f946=[];for(const _0x5c48e8 of _0x33563d['createRangeIn'](_0x26e708['content'])['getItems']())_0x5c48e8['is']('element','suggestion-td')&&_0x21f946['push'](_0x5c48e8);_0x33563d['change'](_0x1a7ed9=>{for(const _0x3cdf70 of _0x21f946)_0x1a7ed9['move'](_0x1a7ed9['createRangeIn'](_0x3cdf70),_0x1a7ed9['createPositionBefore'](_0x3cdf70)),_0x1a7ed9['remove'](_0x3cdf70);});});}};function Ke(_0x3a864a){if(_0x3a864a['isEmpty'])return!0x0;const _0x3aad6b=_0x3a864a['getChild'](0x0);return _0x3aad6b['is']('element','paragraph')&&_0x3aad6b['isEmpty'];}function Xe(_0x132966,_0x147108={},_0x4e343b){for(const {isAnchor:_0x2d79c4,cellHeight:_0x36a13d,cellWidth:_0x237368}of _0x4e343b['createTableWalker'](_0x132966,{'includeAllSlots':!0x0,..._0x147108}))if(!_0x2d79c4||0x1!=_0x36a13d||0x1!=_0x237368)return!0x1;return!0x0;}var qe=class extends _0x548d2a{afterInit(){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3e4bc0=this['editor']['plugins']['get']('TrackChangesEditing');_0x3e4bc0['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),this['editor']['commands']['get']('tableColumnWidth')&&_0x3e4bc0['enableCommand']('tableColumnWidth',this['handleTableColumnWidthCommand']['bind'](this)),_0x3e4bc0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3e4bc0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard'));const _0xb4498e=_0x3e4bc0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept');_0x3e4bc0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',(_0x9b1ac1,_0x697693)=>{_0xb4498e(_0x9b1ac1,_0x697693),this['_restoreCellWidths'](_0x9b1ac1[0x0]['start']['nodeAfter'],_0x697693['commandParams'][0x0]['cellWidths']);}),_0x3e4bc0['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}handleResizeTableWidthCommand(_0xfd2ec,_0x379853){const _0x5ca75f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa1367a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x487620=_0x379853['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x48f233=_0xa1367a['getColumnGroupElement'](_0x487620);let _0x120b21=_0x48f233?_0xa1367a['getTableColumnsWidths'](_0x48f233):null,_0x526f95=_0x487620['getAttribute']('tableWidth')||null;const _0x537ddc=_0x379853['tableWidth']||_0x526f95,_0x5019dc=_0x379853['columnWidths']||_0x120b21;let _0x4e847e=this['_getCellWidths'](_0x487620);const _0x34a3b4=this['_foldResizeTableSuggestion'](_0x487620);_0x34a3b4&&(_0x526f95=_0x34a3b4['tableWidth'],_0x120b21=_0x34a3b4['columnWidths'],_0x4e847e=_0x34a3b4['cellWidths']||_0x4e847e),_0xfd2ec({'table':_0x487620,'tableWidth':_0x537ddc,'columnWidths':_0x5019dc}),_0x5ca75f['markBlockFormat'](_0x487620,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x526f95,'columnWidths':_0x120b21,'cellWidths':_0x4e847e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}handleTableColumnWidthCommand(_0x2cfcd9,_0x4537aa={}){if(void 0x0===_0x4537aa['value']||''===_0x4537aa['value'])return void _0x2cfcd9(_0x4537aa);const _0x5818e9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3cf444=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5ca04c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');_0x4537aa['batch']||(_0x4537aa['batch']=this['editor']['model']['createBatch']()),this['editor']['model']['enqueueChange'](_0x4537aa['batch'],()=>{const _0x544c75=_0x3cf444['getColumnGroupElement'](_0x5ca04c);let _0x26ff1b=_0x544c75?_0x3cf444['getTableColumnsWidths'](_0x544c75):null,_0x5adbda=_0x5ca04c['getAttribute']('tableWidth')||null,_0x3bfdef=this['_getCellWidths'](_0x5ca04c);const _0x390f37=this['_foldResizeTableSuggestion'](_0x5ca04c,!0x0);_0x390f37&&(_0x5adbda=_0x390f37['tableWidth'],_0x26ff1b=_0x390f37['columnWidths'],_0x3bfdef=_0x390f37['cellWidths']||_0x3bfdef),_0x2cfcd9(_0x4537aa),_0x5818e9['markBlockFormat'](_0x5ca04c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5adbda,'columnWidths':_0x26ff1b,'cellWidths':_0x3bfdef}],'formatGroupId':'resizeTable'},[],'resizeTable');});}_foldResizeTableSuggestion(_0x3ffa6c,_0x3b3167=!0x1){const _0xc7112e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f6e5c=this['editor']['plugins']['get']('Users')['me'];for(const _0x397294 of _0xc7112e['getSuggestions']({'skipNotAttached':!0x0})){const _0x23d575=_0x397294['getContainedElement']();if('resizeTable'===_0x397294['subType']&&_0x23d575===_0x3ffa6c){_0x397294['author']!==_0x3f6e5c&&(_0x3b3167?_0x397294['removeMarkers']():_0x397294['discard']());const _0x1a3b97=_0x397294['data']['commandParams'];return{'tableWidth':_0x1a3b97[0x0]['tableWidth'],'columnWidths':_0x1a3b97[0x0]['columnWidths'],'cellWidths':_0x1a3b97[0x0]['cellWidths']};}}return null;}_getCellWidths(_0x68d0a6){const _0x374d54=[];for(const _0x5f20fe of _0x68d0a6['getChildren']())if(_0x5f20fe['is']('element','tableRow')){for(const _0x400d8f of _0x5f20fe['getChildren']())_0x374d54['push'](_0x400d8f['getAttribute']('tableCellWidth')||null);}return _0x374d54;}_restoreCellWidths(_0x120287,_0x52d84c){_0x52d84c&&this['editor']['model']['change'](_0x3e7ddb=>{let _0x109049=0x0;for(const _0x42b9f7 of _0x120287['getChildren']())if(_0x42b9f7['is']('element','tableRow'))for(const _0x308774 of _0x42b9f7['getChildren']()){const _0x1d5e5e=_0x52d84c[_0x109049++];_0x1d5e5e&&_0x3e7ddb['setAttribute']('tableCellWidth',_0x1d5e5e,_0x308774);}});}handleSuggestionDescription(_0x47f410){if('formatBlock'!=_0x47f410['type']&&'formatInline'!=_0x47f410['type'])return;const {data:_0x41cabc}=_0x47f410;return _0x41cabc&&'resizeTable'===_0x41cabc['formatGroupId']?{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20resize\x20table')}:void 0x0;}},Ye=class extends _0x548d2a{afterInit(){const _0x3b290c=this['editor'];_0x3b290c['plugins']['has']('Template')&&_0x3b290c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}},Qe=class extends _0x548d2a{afterInit(){const _0x4e3ff8=this['editor'];if(!_0x4e3ff8['commands']['get']('insertTableOfContents'))return;_0x4e3ff8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x7db514=_0x4e3ff8['plugins']['get']('TrackChangesEditing'),_0x560300=_0x4e3ff8['locale'];_0x7db514['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1910cf=>Ot(_0x560300,'ELEMENT_TABLE_OF_CONTENTS',_0x1910cf));}},Ze=class extends _0x548d2a{afterInit(){const _0x1b50e8=this['editor'];_0x1b50e8['plugins']['has']('Title')&&(_0x1b50e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerElementLabel']('title-content',()=>Ot(_0x1b50e8['locale'],'ELEMENT_TITLE')),_0x1b50e8['model']['document']['registerPostFixer'](_0x3ce0f0=>{let _0x53162e=!0x1;const _0x114fac=Array['from'](_0x1b50e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ad369,data:_0x4cd636}of _0x114fac){const {group:_0x4fa507}=et(_0x1ad369);if('suggestion'!==_0x4fa507||!_0x4cd636['newRange'])continue;const _0x99d2cc=_0x4cd636['newRange'],_0x5caf8a=_0x99d2cc['end']['nodeBefore'];if(!_0x5caf8a||!_0x5caf8a['is']('element','title-content'))continue;if(!_0x99d2cc['start']['isTouching'](_0x99d2cc['end']))continue;const _0xb4c147=_0x1b50e8['model']['schema']['getNearestSelectionRange'](_0x99d2cc['end'],'forward');if(_0xb4c147&&_0xb4c147['isCollapsed']){const _0x15c318=_0x3ce0f0['createRange'](_0x99d2cc['start'],_0xb4c147['start']);_0x15c318['isEqual'](_0x99d2cc)||(_0x3ce0f0['updateMarker'](_0x1ad369,{'range':_0x15c318}),_0x53162e=!0x0);}_0x53162e||(_0x3ce0f0['removeMarker'](_0x1ad369),_0x53162e=!0x0);}return _0x53162e;}));}},Je=class extends _0x548d2a{afterInit(){const _0x2fb64f=this['editor'],_0x3fc01a=_0x2fb64f['plugins']['get']('TrackChangesEditing');_0x2fb64f['plugins']['has']('Uploadcare')&&(_0x3fc01a['enableCommand']('uploadcare'),_0x2fb64f['plugins']['has']('UploadcareImageEdit')&&(_0x3fc01a['enableCommand']('uploadcareImageEdit'),_0x3fc01a['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3fc01a['descriptionFactory']['registerDescriptionCallback'](_0xeac986=>{if('attribute'!=_0xeac986['type'])return;const {data:_0xbbc2bb}=_0xeac986;return _0xbbc2bb&&'uploadcareImageId'==_0xbbc2bb['key']?{'type':'format','content':''}:void 0x0;})));}},tn=class extends _0x548d2a{afterInit(){const _0x3702c7=this['editor'],_0x1f5f35=_0x3702c7['plugins']['get']('TrackChangesEditing');_0x3702c7['plugins']['has']('UndoEditing')&&(_0x1f5f35['enableCommand']('undo'),_0x1f5f35['enableCommand']('redo'));}},en=class extends _0x548d2a{static get requires(){return[Pe];}afterInit(){const _0x5edbac=this['editor'];_0x5edbac['plugins']['has']('TableCaptionEditing')&&_0x5edbac['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}},nn=class extends _0x548d2a{tableProperties;tableCellProperties;constructor(_0x1df2b3){super(_0x1df2b3),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellType'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}afterInit(){const _0x5888be=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x259fa0 of this['tableProperties'])_0x5888be['enableCommand'](_0x259fa0,(_0xdac1f7,_0x2e354a)=>{const _0x2da71a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x259fa0,[_0x2da71a],this['tableProperties'],'tableProperties',_0xdac1f7,_0x2e354a);});_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5888be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x7e62bc,_0x561867)=>this['handleDiscardAction'](this['tableProperties'],_0x7e62bc,_0x561867)),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x42bb15 of this['tableCellProperties'])this['editor']['commands']['get'](_0x42bb15)&&_0x5888be['enableCommand'](_0x42bb15,(_0x27594c,_0x36baa0)=>{const _0x4b5039=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x42bb15,_0x4b5039,this['tableCellProperties'],'tableCellProperties',_0x27594c,_0x36baa0);});_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5888be['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x370a7d,_0x1312ab)=>this['handleDiscardAction'](this['tableCellProperties'],_0x370a7d,_0x1312ab)),_0x5888be['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x5888be['descriptionFactory']['registerAttributeLabel']('tableCellType',Ot(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x5888be['descriptionFactory']['registerDescriptionCallback'](_0x549971=>this['handleSuggestionDescription'](_0x549971)),this['_registerTablePropertiesAttributes']();}_handlePropertyChange(_0x2d5df0,_0x5a05cd,_0x36596e,_0x2558a5,_0x52e756,_0x3ade68){const _0x2c497d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ade68['batch'],()=>{for(const _0x422987 of _0x5a05cd)if(this['_getSuggestion'](_0x422987,_0x2558a5))_0x52e756(_0x3ade68);else{const _0x278854={};for(const _0x868d37 of _0x36596e){const _0x687eff=_0x422987['getAttribute'](_0x868d37);void 0x0!==_0x687eff&&(_0x278854[_0x868d37]=_0x687eff);}const _0x40dc38=this['_getResizedColumnWidths'](_0x422987);_0x40dc38&&(_0x278854['columnWidths']=_0x40dc38),_0x52e756(_0x3ade68),_0x2c497d['markBlockFormat'](_0x422987,{'commandParams':[_0x278854]},[],_0x2558a5);}});}handleDiscardAction(_0x359549,_0x10a783,_0xe8fd52){const _0x5f3a36=_0x10a783[0x0]['start']['nodeAfter'],_0x2b1688=_0xe8fd52['commandParams'][0x0];this['editor']['model']['change'](_0x124c5f=>{for(const _0xa0d169 of _0x359549)void 0x0!==_0x2b1688[_0xa0d169]?_0x124c5f['setAttribute'](_0xa0d169,_0x2b1688[_0xa0d169],_0x5f3a36):_0x124c5f['removeAttribute'](_0xa0d169,_0x5f3a36);if(_0x2b1688['columnWidths']&&this['editor']['plugins']['has']('TableColumnResizeEditing')){const _0xde26e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x21e53b=_0xde26e6['getColumnGroupElement'](_0x5f3a36);if(_0x21e53b){const _0x30033a=_0xde26e6['getTableColumnsWidths'](_0x21e53b),_0x52baa8=_0x5f3a36['getAttribute']('tableWidth');if(('string'==typeof _0x52baa8&&_0x52baa8['trim']()['endsWith']('px'))!==_0x30033a['some'](_0x5efd37=>'string'==typeof _0x5efd37&&_0x5efd37['endsWith']('px'))){const _0x53b5fe=_0xde26e6['getTableColumnElements'](_0x21e53b);_0x2b1688['columnWidths']['forEach']((_0x1fca15,_0x557ec7)=>{_0x53b5fe[_0x557ec7]&&_0x124c5f['setAttribute']('columnWidth',_0x1fca15,_0x53b5fe[_0x557ec7]);});}}}});}_getResizedColumnWidths(_0x2ca692){if(!this['editor']['plugins']['has']('TableColumnResizeEditing')||!_0x2ca692['is']('element','table'))return;const _0x3f6004=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1e5637=_0x3f6004['getColumnGroupElement'](_0x2ca692);return _0x1e5637?_0x3f6004['getTableColumnsWidths'](_0x1e5637):void 0x0;}handleSuggestionDescription(_0x2aefd8){if(_0x2aefd8['data'])switch(_0x2aefd8['subType']){case'tableProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':Ot(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}_getSuggestion(_0x50df5b,_0x1f1f56){const _0x27eb88=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x58e866 of _0x27eb88['getSuggestions']({'skipNotAttached':!0x0})){const _0x2a6992=_0x58e866['getContainedElement']();if(_0x58e866['subType']===_0x1f1f56&&_0x2a6992===_0x50df5b)return _0x58e866;}return null;}_registerTablePropertiesAttributes(){const _0x292052=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11585d=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x3b05bf of _0x11585d){const _0x17c9b2=_0x3b05bf['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x292052['descriptionFactory']['registerAttributeLabel'](_0x3b05bf,Ot(this['editor']['locale'],'FORMAT_'+_0x17c9b2));}}},sn=class extends _0x548d2a{afterInit(){const _0x1213d1=this['editor'];if(!_0x1213d1['plugins']['has']('LineHeight'))return;const _0x49dfa5=_0x1213d1['plugins']['get']('TrackChangesEditing'),_0x11493a=_0x1213d1['locale'];_0x49dfa5['enableDefaultAttributesIntegration']('lineHeight'),_0x49dfa5['descriptionFactory']['registerAttributeLabel']('lineHeight',Ot(_0x11493a,'FORMAT_LINE_HEIGHT'));}};const rn='$elementName';var on=class extends _0x548d2a{descriptionFactory;trackChangesCommand;_adapter;_suggestionFactory;_suggestions;_commentsRepository;_suggestionsConversion;['_enabledCommands'];['_model'];_suggestionState;_isForcedDefaultExecutionBlock;_trackFormatChanges;_mergeNestedSuggestions;_recordAttributeSuggestions=!0x1;_trackingSessionId=null;static get requires(){return[_0x625dc5,_0x4fbad8,_0x5036c6,_0x6db56a,_0x140123,Ft,Bt,vt,Dt,Pt,xt,Ht,Wt,$t,Vt,jt,Kt,Xt,te,ee,ne,se,re,oe,ce,le,ue,de,he,ge,me,fe,Ee,Te,_e,Le,be,Ne,pe,qt,sn,Qt,Ce,ke,Re,ye,Se,Me,Oe,we,Fe,Be,De,Ue,Pe,Ge,He,$e,We,en,ze,qe,Qe,nn,Ye,Ze,Je,tn];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x531c8f){super(_0x531c8f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1e01d5,_0x340421,_0x55aadd,_0x6c2c28)=>{this['_model']['change'](()=>{for(const _0x201f0e of[..._0x6c2c28,..._0x55aadd])this['_model']['markers']['has'](_0x201f0e)&&_0x531c8f['editing']['reconvertMarker'](_0x201f0e);});}),this['descriptionFactory']=new wt(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new an(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x531c8f['plugins']['get'](_0x625dc5),this['_suggestionsConversion']=_0x531c8f['plugins']['get'](_0x4fbad8),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x531c8f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x531c8f['config']['get']('trackChanges.trackFormatChanges'),_0x531c8f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x531c8f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new _t(_0x531c8f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}init(){const _0x1b1877=this['editor'];_0x1b1877['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3c5add,{writer:_0x3d95e2})=>{let _0x4e93c7='suggestion:'+_0x3c5add['getAttribute']('suggestion-type')+':'+_0x3c5add['getAttribute']('id');return _0x3c5add['getAttribute']('marker-count')&&(_0x4e93c7+=':'+_0x3c5add['getAttribute']('marker-count')),_0x3d95e2['createElement']('$marker',{'data-name':_0x4e93c7});}}),_0x1b1877['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1b1877['model']['document']['registerPostFixer'](_0x3aaefa=>{let _0x4502a7=!0x1;const _0x3360d3=Array['from'](_0x1b1877['model']['document']['differ']['getChangedMarkers']()),_0xb240aa=new Set();for(const {name:_0x3b02c6,data:_0x5d83e6}of _0x3360d3){const {group:_0x5d7e46,type:_0x285c15,subType:_0x596367,id:_0x5f45c0}=et(_0x3b02c6);if('suggestion'!==_0x5d7e46)continue;const _0x485f43=_0x596367?'suggestion:'+_0x285c15+':'+_0x596367+':'+_0x5f45c0:'suggestion:'+_0x285c15+':'+_0x5f45c0,_0x43a627=_0x1b1877['model']['markers']['getMarkersGroup'](_0x485f43),_0x2a1169=_0x1b1877['model']['markers']['get'](_0x3b02c6),_0x399cb5=this['_suggestions']['get'](_0x5f45c0);if(null!=_0x5d83e6['newRange']){'formatInline'==_0x285c15&&(_0x4502a7=_0x4502a7||un(_0x5d83e6['newRange'],_0x3b02c6,_0x3aaefa,_0x1b1877['model']['schema']));const _0x2f0643='attribute'==_0x285c15&&this['_suggestionsConversion']['isBlockAttribute'](In(_0x596367)),_0x46b8b1='attribute'==_0x285c15&&this['_suggestionsConversion']['isInlineAttribute'](In(_0x596367));if(_0x5d83e6['newRange']['isCollapsed']||'$graveyard'==_0x5d83e6['newRange']['root']['rootName']||'formatBlock'==_0x285c15&&!hn(_0x5d83e6['newRange'])||_0x2f0643&&!hn(_0x5d83e6['newRange'])||_0x46b8b1&&gn(_0x5d83e6['newRange'])||'deletion'==_0x285c15&&gn(_0x5d83e6['newRange'])||_0x2a1169&&fn(_0x2a1169,_0x43a627))_0x3aaefa['removeMarker'](_0x3b02c6),_0x4502a7=!0x0;else{if(!_0x399cb5||!_0x399cb5['isInContent'])continue;if(_0x5d83e6['newRange']&&_0x5d83e6['oldRange']&&_0x5d83e6['newRange']['isEqual'](_0x5d83e6['oldRange']))continue;_0xb240aa['add'](_0x399cb5);}}}return _0xb240aa['size']>0x0&&(_0x4502a7=!!this['_joinWithAdjacentSuggestions'](_0xb240aa)||_0x4502a7),_0x4502a7;}),_0x1b1877['model']['document']['registerPostFixer'](_0x3f697f=>{let _0x7d2be3=!0x1;for(const _0x2e8960 of _0x1b1877['model']['document']['differ']['getChanges']())if('insert'==_0x2e8960['type'])for(const _0x1b79cf of this['_suggestions']['values']()){if(_0x1b79cf['isMultiRange']||!_0x1b79cf['isInContent'])continue;const _0x3bcb5c='formatBlock'==_0x1b79cf['type'],_0x3b75cd=this['_getAttributeKey'](_0x1b79cf),_0xe0bf56=_0x3b75cd&&this['_suggestionsConversion']['isBlockAttribute'](_0x3b75cd);if(!_0x3bcb5c&&!_0xe0bf56)continue;const _0x16b347=_0x1b79cf['getFirstRange']();if(_0x16b347['start']['parent']!=_0x16b347['end']['parent']&&!_0x16b347['end']['isAtEnd']){const _0x30dbe7=_0x1b1877['model']['createPositionAt'](_0x16b347['start']['nodeAfter'],'end'),_0x576acf=_0x1b1877['model']['createRange'](_0x16b347['start'],_0x30dbe7);_0x3f697f['updateMarker'](_0x1b79cf['getFirstMarker'](),{'range':_0x576acf}),_0x7d2be3=!0x0;}}return _0x7d2be3;}),_0x1b1877['model']['document']['registerPostFixer'](_0x29905b=>this['_processAttributeChanges'](_0x29905b)),_0x1b1877['model']['document']['registerPostFixer'](_0x832018=>!_0x832018['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x832018)),_0x1b1877['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1b1877['model']['document']['on']('change:data',(_0x5694ad,_0x46d276)=>{if(!_0x46d276['isLocal']||_0x46d276['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x506d94=_0x1b1877['model']['document']['differ']['getChanges']();if(0x0==_0x506d94['length'])return;const _0x3efb42=[],_0x585a81=_0x506d94['filter'](_0x599b21=>'attribute'==_0x599b21['type']),_0x24a52e=_0x506d94['filter'](_0x20f795=>'insert'==_0x20f795['type']&&'$text'!=_0x20f795['name']);for(const _0x65cae3 of _0x585a81)this['_suggestionsConversion']['isRegisteredAttribute'](_0x65cae3['attributeKey'])&&_0x3efb42['push']({'key':_0x65cae3['attributeKey'],'newValue':_0x65cae3['attributeNewValue'],'oldValue':_0x65cae3['attributeOldValue'],'range':mn(_0x65cae3['range'],_0x1b1877['model'])});for(const _0x5d22b1 of _0x24a52e){if('rename'!=_0x5d22b1['action']&&'refresh'!=_0x5d22b1['action'])continue;const _0x33ca00=En(_0x5d22b1['position']['nodeAfter'],_0x1b1877['model']),_0x5926a4=_0x5d22b1['before'];'rename'==_0x5d22b1['action']&&_0x3efb42['push']({'key':rn,'newValue':_0x5d22b1['name'],'oldValue':_0x5926a4['name'],'range':_0x33ca00});for(const [_0x4b8788,_0x4e789b]of _0x5926a4['attributes']){if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x4b8788))continue;const _0x337743=_0x5d22b1['attributes']['get'](_0x4b8788);_0x4e789b!==_0x337743&&_0x3efb42['push']({'key':_0x4b8788,'newValue':_0x337743,'oldValue':_0x4e789b,'range':_0x33ca00});}for(const [_0x5f0018,_0x3fd68b]of _0x5d22b1['attributes'])this['_suggestionsConversion']['isRegisteredAttribute'](_0x5f0018)&&(_0x5926a4['attributes']['has'](_0x5f0018)||_0x3efb42['push']({'key':_0x5f0018,'newValue':_0x3fd68b,'oldValue':null,'range':_0x33ca00}));}0x0!=_0x3efb42['length']&&_0x1b1877['model']['enqueueChange'](_0x46d276,_0x5a6569=>{const _0xb88a27=_0x1dfb7c();for(const {range:_0x289e94,key:_0x80699c,oldValue:_0x16fb0f,newValue:_0x3312e0}of _0x3efb42)this['markAttributeChange'](_0x289e94,_0x80699c,_0x16fb0f,_0x3312e0,{'groupId':_0xb88a27});this['_reduceExistingSuggestions'](_0x5a6569,_0x3efb42);});},{'priority':'lowest'}),_0x1b1877['model']['markers']['on']('update:suggestion',(_0x29d6d5,_0x1cb229,_0x5deac0)=>{if(null==_0x5deac0){const {id:_0x18f90b}=et(_0x1cb229['name']),_0x4d3ecb=this['_suggestions']['get'](_0x18f90b);_0x4d3ecb&&_0x4d3ecb['addMarkerName'](_0x1cb229['name']);}}),_0x1b1877['model']['document']['on']('change:data',()=>{const _0x256b7d=Array['from'](_0x1b1877['model']['document']['differ']['getChangedMarkers']())['filter'](_0x10435e=>'suggestion'===et(_0x10435e['name'])['group']);if(0x0===_0x256b7d['length'])return;_0x256b7d['sort']((_0x499ec8,_0x4acf70)=>{const _0x6cd00e=_0x499ec8['data']['oldRange'],_0x548add=_0x4acf70['data']['oldRange'];return null===_0x6cd00e&&null===_0x548add?0x0:null===_0x6cd00e&&null!==_0x548add?-0x1:null!==_0x6cd00e&&null===_0x548add?0x1:_0x6cd00e['start']['isBefore'](_0x548add['start'])?-0x1:0x1;});const _0x5ab119=new Set(),_0x407246=new Set();for(const {name:_0xc47b0e,data:_0x1c897c}of _0x256b7d){const {id:_0x576c4d}=et(_0xc47b0e);if(null===_0x1c897c['oldRange']){const _0x3ea10a=this['_handleNewSuggestionMarker'](_0xc47b0e);_0x407246['add'](_0x3ea10a);}else{const _0x5c431f=this['_suggestions']['get'](_0x576c4d);null!==_0x1c897c['newRange']||_0x5c431f['isInContent']?(_0x5ab119['add'](_0x5c431f['head']),_0x407246['add'](_0x5c431f)):this['_removeSuggestion'](_0x5c431f);}}_0x407246['size']>0x0&&this['_refreshSuggestionsChain'](_0x407246);for(const _0x3dd4c9 of _0x5ab119)this['fire']('suggestionChanged',_0x3dd4c9);}),_0x1b1877['model']['on']('applyOperation',(_0x57fe2d,_0x1202ee)=>{const _0x1de11c=_0x1202ee[0x0];if(!this['_suggestions']['size'])return;if(!_0x1de11c['isDocumentOperation'])return;if(_0x1de11c['batch']['isUndo']||!_0x1de11c['batch']['isLocal'])return;let _0xbb2acf,_0x48f4ee;switch(_0x1de11c['type']){case'insert':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['position']),_0x48f4ee=_0xbb2acf['getShiftedBy'](_0x1de11c['howMany']);break;case'split':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['splitPosition']),_0x48f4ee=_0x1b1877['model']['createPositionAt'](_0x1de11c['moveTargetPosition']);break;case'move':_0xbb2acf=_0x1b1877['model']['createPositionAt'](_0x1de11c['targetPosition']),_0x48f4ee=_0xbb2acf['getShiftedBy'](_0x1de11c['howMany']);break;default:return;}const _0x630962=_0x1b1877['model']['createRange'](_0xbb2acf,_0x48f4ee);_0x1b1877['model']['change'](()=>{for(const {suggestion:_0x572b28,meta:_0x4c51d7}of this['_findSuggestions'](_0x630962)){if(_0x572b28['isMultiRange'])continue;if('formatInline'==_0x572b28['type'])continue;const _0x17159b=this['_getAttributeKey'](_0x572b28);if(_0x17159b&&this['_suggestionsConversion']['isBlockAttribute'](_0x17159b)&&'split'!=_0x1de11c['type'])continue;const _0x98cc31=_0x572b28['data']&&_0x572b28['data']['multipleBlocks'];('formatBlock'!=_0x572b28['type']||'split'==_0x1de11c['type']&&!_0x98cc31)&&(_0x4c51d7['containsRangeInObject']||'insertion'==_0x572b28['type']&&_0x4c51d7['isOwn']||_0x572b28['getFirstRange']()['containsRange'](_0x630962)&&this['_breakSuggestionMarker'](_0x572b28,_0xbb2acf,_0x48f4ee));}});},{'priority':'lowest'}),_0x1b1877['model']['on']('deleteContent',(_0x277287,_0x52360d)=>{const _0xf2759=_0x52360d[0x0],_0x498b89=_0x52360d[0x1];if(_0x498b89&&_0x498b89['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xf2759['isCollapsed'])return;const _0x549323=_0x1b1877['model']['schema'],{start:_0x279c48,end:_0x4be0d1}=_0xf2759['getFirstRange'](),_0xa1e3f3=_0x279c48['nodeAfter']&&_0x549323['isLimit'](_0x279c48['nodeAfter'])?null:_0x549323['getNearestSelectionRange'](_0x279c48,'forward'),_0x3b6ef9=_0x4be0d1['nodeBefore']&&_0x549323['isLimit'](_0x4be0d1['nodeBefore'])?null:_0x549323['getNearestSelectionRange'](_0x4be0d1,'backward'),_0x391a63=_0x1b1877['model']['createRange'](_0xa1e3f3?_0xa1e3f3['start']:_0x279c48,_0x3b6ef9?_0x3b6ef9['end']:_0x4be0d1);_0x1b1877['model']['change'](_0x3c0df4=>{this['markDeletion'](_0x391a63);const _0x4c5d60=_0x1b1877['model']['schema']['getNearestSelectionRange'](_0x391a63['start']);_0xf2759['is']('documentSelection')?_0x3c0df4['setSelection'](_0x4c5d60):_0xf2759['setTo'](_0x4c5d60);}),_0x277287['stop']();},{'priority':_0x5e908b['normal']+0xa}),_0x1b1877['model']['on']('insertContent',(_0x4fa226,_0x34bc1b)=>{const _0x5930a1=_0x34bc1b[_0x34bc1b['length']-0x1];_0x5930a1&&_0x5930a1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1b1877['model']['change'](()=>{let _0x10cd33=_0x1b1877['model']['insertContent'](_0x34bc1b[0x0],_0x34bc1b[0x1],_0x34bc1b[0x2],{'forceDefaultExecution':!0x0});if(!_0x10cd33)return;_0x4fa226['return']=_0x10cd33['clone']();const _0x12e1a4=_0x10cd33['end']['nodeBefore'],_0x357deb=_0x1b1877['model']['schema'];_0x12e1a4&&_0x357deb['isBlock'](_0x12e1a4)&&!_0x357deb['isObject'](_0x12e1a4)&&(_0x10cd33=_0x1b1877['model']['createRange'](_0x10cd33['start'],_0x1b1877['model']['createPositionAt'](_0x12e1a4,'end'))),this['markInsertion'](_0x10cd33);}),_0x4fa226['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x26c4ff=new pt(_0x1b1877,this['_suggestions']);_0x1b1877['commands']['add']('acceptSuggestion',_0x26c4ff),this['enableCommand']('acceptSuggestion');const _0x98c2a6=new Lt(_0x1b1877,this['_suggestions']);_0x1b1877['commands']['add']('discardSuggestion',_0x98c2a6),this['enableCommand']('discardSuggestion'),_0x1b1877['commands']['add']('acceptAllSuggestions',new yt(_0x1b1877,_0x26c4ff,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1b1877['commands']['add']('discardAllSuggestions',new yt(_0x1b1877,_0x98c2a6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1b1877['commands']['add']('acceptSelectedSuggestions',new Nt(_0x1b1877,_0x26c4ff,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1b1877['commands']['add']('discardSelectedSuggestions',new Nt(_0x1b1877,_0x98c2a6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3e9652=_0x1b1877['plugins']['get'](_0x625dc5);this['listenTo'](_0x3e9652,'addComment',(_0x160bf7,{threadId:_0xc58a00})=>{const _0x2b1e45=this['_suggestions']['get'](_0xc58a00);_0x2b1e45&&_0x2b1e45['commentThread']&&0x1===_0x2b1e45['commentThread']['length']&&this['_updateSuggestionData'](_0xc58a00,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3e9652,'removeComment',(_0x12c0a0,{threadId:_0x426a14})=>{const _0x3adf8e=this['_suggestions']['get'](_0x426a14);_0x3adf8e&&_0x3adf8e['commentThread']&&!_0x3adf8e['commentThread']['length']&&this['_updateSuggestionData'](_0x426a14,{'hasComments':!0x1});},{'priority':'low'});}afterInit(){!async function(_0x585675){const _0x4a9385='RBcXdGf567mNjK9DTpP0Iyi3gea8ZvzlE4bFuWrwsH1hnOSLqkY2MQJxoVAUtC',_0xf6046=0x79128,_0x50c0fc=window['Date']['now'](),_0x226420=_0x585675['editor'],_0x5a4556=new window['Promise'](_0x45036e=>{_0x226420['once']('ready',_0x45036e);}),_0x16721c={'kty':'EC','use':'sig','crv':'P-256','x':'iCjOCvDFI6lQHHT18jVwRfkfHQ2a_MymT35LQVoFSAI','y':'kXIyJ4evtCEFRmxKSUpK9fDW459vXOvVrhf6uQAeOio','alg':'ES256'},_0xe45b36=_0x226420['config']['get']('licenseKey');async function _0x4e5db8(){let _0x1e80e1,_0x5186ef=null,_0x22570f=null;try{return'GPL'==_0xe45b36?'NotAllowed':(_0x1e80e1=_0x401ea7(),_0x1e80e1?(_0x1e80e1['usageEndpoint']&&(_0x22570f=_0x1b2ace(_0x1e80e1['usageEndpoint'],_0x1e80e1['jti'])),await _0x835f87()?_0x349023()?_0x79003e()?'Expired':_0x510e99()?('evaluation'==_0x1e80e1['licenseType']&&(_0x5186ef=_0x57b6dc('EvaluationLimit')),await _0x272569()):'DomainLimit':'NotAllowed':'Invalid'):'Invalid');}catch{return'Invalid';}function _0x79003e(){const _0x214292=['evaluation','trial']['includes'](_0x1e80e1['licenseType'])?_0x50c0fc/0x3e8:0xe10*_0xf6046;return _0x1e80e1['exp']<_0x214292;}function _0x349023(){const _0x260871=_0x1e80e1['features'];if(!_0x260871)return!0x1;if(_0x260871['includes']('*'))return!0x0;if(_0x260871['includes']('TC'))return!0x0;if(_0x260871['includes']('RTC')){if(_0x139882())return!0x0;if(_0x413fe2()||_0x546bcc())return!0x0;}return!0x1;}function _0x510e99(){const _0x5c1e88=_0x1e80e1['licensedHosts'];if(!_0x5c1e88||0x0==_0x5c1e88['length'])return!0x0;const {hostname:_0x1d0014}=new URL(window['location']['href']);if(_0x5c1e88['includes'](_0x1d0014))return!0x0;const _0x3cc249=_0x1d0014['split']('.');return _0x5c1e88['filter'](_0x292313=>_0x292313['includes']('*'))['map'](_0x1ef3fd=>_0x1ef3fd['split']('.'))['filter'](_0x3c216a=>_0x3c216a['length']<=_0x3cc249['length'])['map'](_0x1c5c62=>Array(_0x3cc249['length']-_0x1c5c62['length'])['fill']('*'===_0x1c5c62[0x0]?'*':'')['concat'](_0x1c5c62))['some'](_0x410b01=>_0x3cc249['every']((_0x433654,_0x200ffc)=>_0x410b01[_0x200ffc]===_0x433654||'*'===_0x410b01[_0x200ffc]));}function _0x272569(){return _0x5186ef&&_0x22570f?new window['Promise']((_0x239861,_0x567645)=>{_0x5186ef['then'](_0x239861,_0x567645),_0x22570f['then'](_0x4bc531=>{'Valid'!=_0x4bc531&&_0x239861(_0x4bc531);},_0x567645);}):_0x5186ef||_0x22570f||'Valid';}}function _0x1b2ace(_0x29b589,_0x194d38){return new window['Promise'](_0x144d3f=>{if(_0x4f7680())return _0x144d3f('Valid');_0x31cdac(),_0x226420['decorate']('_sendUsageRequest');let _0x266454=!0x1;const _0x1c39d6=_0x1dfb7c();function _0x4e28e8(_0x3af1a4){return!!_0x3af1a4&&('object'==typeof _0x3af1a4||'function'==typeof _0x3af1a4)&&'function'==typeof _0x3af1a4['then']&&'function'==typeof _0x3af1a4['catch'];}function _0x4f6bcb(_0x20ea27){_0x2b88da(_0x20ea27)['then'](_0x2c6309=>_0x2c6309&&'ok'==_0x2c6309['status']?_0x5ce06c(_0x538ad9(_0x1c39d6+_0x194d38))!=_0x2c6309['verification']?'UsageLimit':'Valid':'UsageLimit')['then'](_0x26240d=>(_0x3eef28(),_0x26240d),()=>{const _0x4c2496=_0x5792ec();return null==_0x4c2496?(_0x3eef28(),'Valid'):_0x50c0fc-_0x4c2496>0x240c8400?'UsageLimit':'Valid';})['then'](_0x144d3f)['catch'](()=>{_0x144d3f('UsageLimit');});const _0x2b29ee=0x36ee80;function _0x3eef28(){const _0x2cb67d='llct-'+_0x5ce06c(_0x538ad9(_0x29b589)),_0x3d3f50=_0x163873(_0x5ce06c(window['Math']['ceil'](_0x50c0fc/_0x2b29ee)));window['localStorage']['setItem'](_0x2cb67d,_0x3d3f50);}function _0x5792ec(){const _0x1f9f95='llct-'+_0x5ce06c(_0x538ad9(_0x29b589)),_0x4374ad=window['localStorage']['getItem'](_0x1f9f95);return _0x4374ad?window['parseInt'](_0x163873(_0x4374ad),0x10)*_0x2b29ee:null;}function _0x2b88da(_0x5527a6){return new window['Promise']((_0x2f17aa,_0x48e668)=>{_0x5527a6['then'](_0x2f17aa,_0x48e668),window['setTimeout'](_0x48e668,0x1d4c0);});}}_0x226420['on']('_sendUsageRequest',(_0x31e391,_0x917fc4)=>{if(_0x917fc4[0x0]!=_0x29b589)return _0x144d3f('UsageLimit');_0x917fc4[0x1]={..._0x917fc4[0x1],'requestId':_0x1c39d6};},{'priority':'high'}),_0x226420['on']('_sendUsageRequest',_0x35f06e=>{_0x4e28e8(_0x35f06e['return'])&&(_0x266454=!0x0,_0x4f6bcb(_0x35f06e['return']));},{'priority':'low'}),_0x5a4556['then'](()=>{_0x266454||_0x144d3f('UsageLimit');});});function _0x4f7680(){return'auto'==_0x226420['editing']['view']['_overlayModeHint'];}function _0x31cdac(){_0x226420['editing']['view']['_overlayModeHint']='auto';}}function _0x57b6dc(_0x54cd92){const _0x25fb0a=[new window['Promise'](_0x15e383=>setTimeout(_0x15e383,0x93ecc)),_0x5a4556['then'](()=>new window['Promise'](_0x38a1a9=>{let _0x10b3d7=0x0;_0x226420['model']['on']('applyOperation',(_0x13f40b,_0x424dd8)=>{_0x424dd8[0x0]['isDocumentOperation']&&_0x10b3d7++,0x5e8==_0x10b3d7&&(_0x38a1a9(),_0x13f40b['off']());});}))];return window['Promise']['race'](_0x25fb0a)['then'](()=>_0x54cd92);}async function _0x4dd158(){await _0x5a4556,_0x226420['model']['change']=_0x160afa,_0x226420['model']['enqueueChange']=_0x160afa,_0x226420['enableReadOnlyMode']('model');}function _0x139882(){return _0x509c73('WebSocketGateway')&&'connected'==_0x26270f('WebSocketGateway')['state'];}function _0x413fe2(){return _0x509c73('RevisionViewerIntegration');}function _0x546bcc(){return _0x509c73('TrackChangesDataGetter');}function _0x1750c1(_0x58b910){const _0x3bc73a=_0x3ffb27();_0x226420[_0x3bc73a]='trackChangesLicenseKey'+_0x58b910,'Valid'!=_0x58b910&&_0x4dd158();}function _0x3ffb27(){const _0x160b11=window['String'](window['performance']['now']())['replace']('.','');let _0x535130='R';for(let _0x212d82=0x0;_0x212d82<_0x160b11['length'];_0x212d82+=0x2){let _0x258958=window['parseInt'](_0x160b11['substring'](_0x212d82,_0x212d82+0x2));_0x258958>=0x3e&&(_0x258958-=0x3e),_0x535130+=_0x4a9385[_0x258958];}return _0x535130;}function _0x401ea7(){const _0x3aeef7=_0xe45b36['split']('.');if(0x3!=_0x3aeef7['length'])return null;return _0x58805f(_0x3aeef7[0x1]);function _0x58805f(_0x4ed7fc){const _0x5d78ac=_0x53e05a(_0x4ed7fc);return _0x5d78ac&&_0x414b2b()?_0x5d78ac:null;function _0x414b2b(){const _0x3afd78=_0x5d78ac['jti'],_0x209254=window['parseInt'](_0x3afd78['substring'](_0x3afd78['length']-0x8),0x10),_0x235e85={..._0x5d78ac,'jti':_0x3afd78['substring'](0x0,_0x3afd78['length']-0x8)};return delete _0x235e85['vc'],_0x538ad9(_0x235e85)==_0x209254;}}}async function _0x835f87(){let _0x5deb7d=!0x0;try{const [_0x2f898f,_0x5ba9a8,_0x8a395]=_0xe45b36['split']('.');return _0x1c4265(_0x2f898f),await _0x430f3a(_0x2f898f,_0x5ba9a8,_0x8a395),_0x5deb7d;}catch{return!0x1;}function _0x1c4265(_0x19fadd){const _0x2abba1=_0x53e05a(_0x19fadd);_0x2abba1&&'ES256'==_0x2abba1['alg']||(_0x5deb7d=!0x1);}async function _0x430f3a(_0x2f0d5d,_0x4e7619,_0x14f218){const _0x1c3904=window['Uint8Array']['from'](_0x2ed528(_0x14f218),_0x4287a7=>_0x4287a7['charCodeAt'](0x0)),_0xf4edd7=new window['TextEncoder']()['encode'](_0x2f0d5d+'.'+_0x4e7619),_0x1a3763=window['crypto']['subtle'];if(!_0x1a3763)return;const _0x5e3338=await _0x1a3763['importKey']('jwk',_0x16721c,{'name':'ECDSA','namedCurve':'P-256'},!0x1,['verify']);await _0x1a3763['verify']({'name':'ECDSA','hash':{'name':'SHA-256'}},_0x5e3338,_0x1c3904,_0xf4edd7)||(_0x5deb7d=!0x1);}}function _0x53e05a(_0x18b5f9){return _0x18b5f9['startsWith']('ey')?JSON['parse'](_0x2ed528(_0x18b5f9)):null;}function _0x2ed528(_0x4f4938){return window['atob'](_0x4f4938['replace'](/-/g,'+')['replace'](/_/g,'/'));}function _0x538ad9(_0x318f7c){let _0xff9eb4=0x1505;function _0x38c2cf(_0x369c80){for(let _0x178e1b=0x0;_0x178e1b<_0x369c80['length'];_0x178e1b++){const _0x50686b=_0x369c80['charCodeAt'](_0x178e1b);_0xff9eb4=(_0xff9eb4<<0x5)+_0xff9eb4+_0x50686b,_0xff9eb4&=_0xff9eb4;}}function _0x2c12dc(_0x1d4f01){Array['isArray'](_0x1d4f01)?_0x1d4f01['forEach'](_0x2c12dc):_0x1d4f01&&'object'==typeof _0x1d4f01?Object['entries'](_0x1d4f01)['sort']()['forEach'](([_0x23baa6,_0x217fea])=>{_0x38c2cf(_0x23baa6),_0x2c12dc(_0x217fea);}):_0x38c2cf(window['String'](_0x1d4f01));}return _0x2c12dc(_0x318f7c),_0xff9eb4>>>0x0;}function _0x5ce06c(_0x2c4a13){return _0x2c4a13['toString'](0x10)['padStart'](0x8,'0');}function _0x163873(_0x706864){return _0x706864['split']('')['reverse']()['join']('');}function _0x509c73(_0x219a67){return _0x226420['plugins']['has'](_0x219a67);}function _0x26270f(_0x43c0e0){return _0x226420['plugins']['get'](_0x43c0e0);}function _0x160afa(){}_0x1750c1(await _0x4e5db8());}(this);}set adapter(_0x160fe8){if(this['_adapter'])throw new _0x4ce3e1('track-changes-adapter-already-set',this);this['_adapter']=_0x160fe8;}get adapter(){return this['_adapter'];}getSuggestions({skipNotAttached:_0x1ad71a=!0x1,toJSON:_0x3b0a2e=!0x1}={}){const _0x225195=[];for(const _0x5246c8 of this['_suggestions']['values']())_0x1ad71a&&!_0x5246c8['isInContent']||_0x225195['push'](_0x5246c8);return _0x3b0a2e?_0x225195['map'](_0x4af92a=>_0x4af92a['toJSON']()):_0x225195;}getSuggestion(_0x16cf20){const _0xa89856=this['_suggestions']['get'](_0x16cf20);if(!_0xa89856)throw new _0x4ce3e1('track-changes-suggestion-not-found',this);return _0xa89856;}hasSuggestion(_0x2972aa){return this['_suggestions']['has'](_0x2972aa);}addSuggestionData(_0x44bdae){const {authorId:_0x1ab59b,id:_0x2a6cc5,originalSuggestionId:_0x1a9197,attributes:_0x1c7ee6}=_0x44bdae,[_0x3b60a8,_0x482657]=_0x44bdae['type']['split'](':'),_0x53ec77=this['_suggestions']['get'](_0x2a6cc5)||this['_createSuggestion'](_0x3b60a8,_0x482657,_0x2a6cc5,_0x1ab59b,_0x1c7ee6,_0x1a9197);if(this['_addThreadToSuggestion'](_0x53ec77),this['_checkSuggestionCorrectness'](_0x53ec77,_0x3b60a8,_0x482657||null,_0x1ab59b),_0x53ec77['createdAt']=_0x44bdae['createdAt'],_0x53ec77['_isDataLoaded']=!0x0,_0x1c7ee6&&_0x1c7ee6['@external']){const _0x2609c6=_0x1c7ee6['@external'],_0x52e6d4=this['_getExternalAuthor'](_0x2609c6['authorName']);_0x53ec77['authoredAt']=_0x2609c6['createdAt'],_0x53ec77['author']=_0x52e6d4;}else _0x53ec77['authoredAt']=_0x44bdae['createdAt'];switch(_0x44bdae['data']&&(_0x53ec77['data']=_0x44bdae['data']),_0x44bdae['attributes']&&(_0x53ec77['attributes']=_0x44bdae['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x53ec77['_saved']=!0x0),this['_suggestionState']['get'](_0x53ec77)){case'notReady':this['_suggestionState']['set'](_0x53ec77,'dataReady');break;case'markerReady':_0x53ec77['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x53ec77])),this['_refreshSuggestionsChain'](new Set([_0x53ec77])),this['_suggestionState']['set'](_0x53ec77,'ready'),this['fire']('suggestionLoaded',_0x53ec77)):this['_suggestionState']['set'](_0x53ec77,'removed');}return _0x53ec77;}acceptSuggestion(_0x38cd6f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2a20e0 of _0x38cd6f['getAllAdjacentSuggestions']())_0x2a20e0['accept']();});});}discardSuggestion(_0x52cc1e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d0631 of _0x52cc1e['getAllAdjacentSuggestions']())_0x2d0631['discard']();});});}['enableCommand'](_0x117994,_0x50af5e){const _0x463d30=this['editor']['commands']['get'](_0x117994);if(!_0x463d30)throw new _0x4ce3e1('track-changes-command-not-found',this,{'commandName':_0x117994});if(this['_enabledCommands']['has'](_0x463d30))throw new _0x4ce3e1('track-changes-enable-command-twice',this,{'commandName':_0x117994});this['_enabledCommands']['add'](_0x463d30),_0x50af5e&&_0x463d30['on']('execute',(_0x273711,_0x2e9cf1)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e9cf1['length']>0x0&&_0x2e9cf1[_0x2e9cf1['length']-0x1]&&_0x2e9cf1[_0x2e9cf1['length']-0x1]['forceDefaultExecution']?_0x2e9cf1['pop']():(_0x273711['return']=_0x50af5e((..._0x1050ef)=>_0x463d30['execute'](..._0x1050ef,{'forceDefaultExecution':!0x0}),..._0x2e9cf1),_0x273711['stop']())));},{'priority':'high'});}forceDefaultExecution(_0x3ddbe5){let _0x3c5704,_0x2cd51a;const _0x19e903=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c5704=_0x3ddbe5();}catch(_0x2ff273){_0x2cd51a=_0x2ff273;}return _0x19e903||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2cd51a&&_0x4ce3e1['rethrowUnexpectedError'](_0x2cd51a,this),_0x3c5704;}markInsertion(_0xa3e3a3,_0x205b9d=null,_0x3e041a={}){if(_0xa3e3a3['isCollapsed'])return null;const _0x2c0c51=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x3e041a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5696c9,meta:_0x202222}of this['_findSuggestions'](_0xa3e3a3,'insertion'))if(_0x202222['isOwn']){if(!_0x202222['isNextTo']){if(_0x202222['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!pn(_0x5696c9,_0x3e041a))continue;return _0x5696c9;}if(pn(_0x5696c9,_0x3e041a))return _0x5696c9;this['_breakSuggestionMarker'](_0x5696c9,_0xa3e3a3['start'],_0xa3e3a3['end']);break;}if(_0x205b9d==_0x5696c9['subType']&&pn(_0x5696c9,_0x3e041a)){const _0x1d4de4=_0x5696c9['getFirstRange']();return _0x1d4de4['start']['isEqual'](_0xa3e3a3['end'])?this['_setSuggestionRange'](_0x5696c9,this['_model']['createRange'](_0xa3e3a3['start'],_0x1d4de4['end'])):this['_setSuggestionRange'](_0x5696c9,this['_model']['createRange'](_0x1d4de4['start'],_0xa3e3a3['end'])),_0x5696c9;}}const _0x380d81=_0x1dfb7c(),_0x1cf8f0=_0x2c0c51['id'],_0x46d68e=_0x205b9d?'insertion:'+_0x205b9d:'insertion',_0x1047a1=this['_setSuggestionData']({'id':_0x380d81,'type':_0x46d68e,'createdAt':new Date(),'authorId':_0x1cf8f0,'attributes':_0x3e041a});return this['_addSuggestionMarker'](_0x46d68e,_0x380d81,_0x1cf8f0,_0xa3e3a3),_0x1047a1;}markMultiRangeInsertion(_0x444462,_0x41839c='multi',_0x2e0953={}){const _0x3b6b81=this['editor']['plugins']['get']('Users')['me'],_0x332a17=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x41839c,'join');this['_trackingSessionId']&&(_0x2e0953['trackingSessionId']=this['_trackingSessionId']);for(const _0x28b3cd of this['getSuggestions']())if(_0x28b3cd['author']['id']==_0x3b6b81['id']&&'insertion'==_0x28b3cd['type']&&_0x28b3cd['subType']==_0x41839c&&pn(_0x28b3cd,_0x2e0953)&&(_0x332a17(_0x28b3cd['getRanges'](),_0x444462)||_0x332a17(_0x444462,_0x28b3cd['getRanges']()))){for(const _0x225495 of _0x444462)_0x28b3cd['addRange'](_0x225495);return _0x28b3cd;}for(const {suggestion:_0x556260,meta:_0x57ca3f}of this['_findSuggestions'](_0x444462,'insertion')){if(!_0x57ca3f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x57ca3f['containsRangeInObject'])continue;if(!pn(_0x556260,_0x2e0953))continue;let _0x560926=!0x0;for(const _0x29abb4 of _0x556260['getRanges']())for(const _0x3689a7 of _0x444462)if(!_0x29abb4['containsRange'](_0x3689a7)){_0x560926=!0x1;break;}if(_0x560926)return _0x556260;}const _0x3d925a=_0x1dfb7c(),_0x11ab34=_0x3b6b81['id'],_0x3fbf33='insertion:'+_0x41839c,_0x532149=this['_setSuggestionData']({'id':_0x3d925a,'type':_0x3fbf33,'createdAt':new Date(),'authorId':_0x11ab34,'attributes':_0x2e0953});for(const _0x2033fc of _0x444462)this['_addSuggestionMarker'](_0x3fbf33,_0x3d925a,_0x11ab34,_0x2033fc,Mt['getMultiRangeId']());return _0x532149;}markInlineFormat(_0x260ac3,_0xa525f8,_0x1f4472=null,_0x14256d={}){if(_0x1f4472=_0x1f4472||dn(_0xa525f8),_0x260ac3['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x14256d['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x46c14e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f4472,'accept');return this['forceDefaultExecution'](()=>_0x46c14e([_0x260ac3],_0xa525f8,_0x14256d)),null;}const _0x18d6f8=this['editor']['plugins']['get']('Users')['me'],_0x563d2c=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xb83b2c,meta:_0x37871c}of this['_findSuggestions'](_0x260ac3,'insertion'))_0x37871c['isOwn']&&!_0x37871c['isInsideObject']&&_0x563d2c['push'](..._0xb83b2c['getRanges']());}const _0x178bed=function(_0xb7f275,_0x4a0220){const _0x384566=[];for(const _0x4b881b of _0x4a0220){const _0x40a407=_0xb7f275['getIntersection'](_0x4b881b);_0x40a407&&_0x384566['push'](_0x40a407);}return _0x384566;}(_0x260ac3,_0x563d2c),_0x44b0ec=function(_0x515f38,_0xb4787b){const _0x3c8752=[_0x515f38];for(const _0x3691c2 of _0xb4787b){let _0x508ff6=0x0;for(;_0x508ff6<_0x3c8752['length'];){const _0xa45e9=_0x3c8752[_0x508ff6]['getDifference'](_0x3691c2);_0x3c8752['splice'](_0x508ff6,0x1,..._0xa45e9),_0x508ff6+=_0xa45e9['length'];}}return _0x3c8752;}(_0x260ac3,_0x563d2c);_0x178bed['length']&&this['_model']['change'](()=>{for(const _0x50096b of _0x178bed){const _0x4c381c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1f4472,'accept');this['forceDefaultExecution'](()=>_0x4c381c([_0x50096b],_0xa525f8,_0x14256d));}});for(const _0x43efe3 of _0x44b0ec){let _0x195da6=null,_0x3c1c0e=_0x43efe3['start'],_0x5d30ae=_0x43efe3['end'];for(const {suggestion:_0x2f034b,meta:_0x1b5638}of this['_findSuggestions'](_0x43efe3,'formatInline')){if(!_0x1b5638['isOwn'])continue;if(_0x2f034b['subType']!=_0x1f4472)continue;if(!pn(_0x2f034b,_0x14256d))continue;const _0x3122c0=_0x2f034b['getFirstRange']();if(_0x3122c0['containsRange'](_0x43efe3,!0x0))return null;_0x3c1c0e=_0x3c1c0e['isBefore'](_0x3122c0['start'])?_0x3c1c0e:_0x3122c0['start'],_0x5d30ae=_0x5d30ae['isAfter'](_0x3122c0['end'])?_0x5d30ae:_0x3122c0['end'],_0x195da6?_0x3122c0['start']['isBefore'](_0x195da6['getFirstRange']()['start'])?(_0x195da6['removeMarkers'](),_0x195da6=_0x2f034b):_0x2f034b['removeMarkers']():_0x195da6=_0x2f034b;}const _0x1fd20e=this['_model']['createRange'](_0x3c1c0e,_0x5d30ae);if(_0x195da6)this['_setSuggestionRange'](_0x195da6,_0x1fd20e);else{const _0xb680f3=_0x1dfb7c(),_0x96984f=_0x18d6f8['id'];this['_setSuggestionData']({'id':_0xb680f3,'type':'formatInline:'+_0x1f4472,'data':_0xa525f8,'createdAt':new Date(),'authorId':_0x96984f,'attributes':_0x14256d}),this['_addSuggestionMarker']('formatInline:'+_0x1f4472,_0xb680f3,_0x96984f,_0x1fd20e);}}return null;}markBlockFormat(_0x329809,_0x2d183f,_0x10793e=[],_0xe3b253=null,_0x23cd7a={}){_0x2d183f['formatGroupId']||(_0x2d183f['formatGroupId']=_0x2d183f['commandName']),_0x2d183f['multipleBlocks']=_0x329809['is']('range'),_0xe3b253=_0xe3b253||dn(_0x2d183f);const _0x250cc9=_0x10793e['map'](_0x3b4739=>En(_0x3b4739,this['_model'])),_0x5cad0d=_0x329809['is']('range')?_0x329809:En(_0x329809,this['_model']);if(this['_trackingSessionId']&&(_0x23cd7a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x447013=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe3b253,'accept');return this['forceDefaultExecution'](()=>_0x447013([_0x5cad0d],_0x2d183f,_0x23cd7a)),null;}_0x250cc9['push'](_0x5cad0d);let _0xe2adb1=!0x0;for(const _0x21d8da of _0x250cc9)if(!this['_rangeIsInLocalUserInsertion'](_0x21d8da)){_0xe2adb1=!0x1;break;}if(_0xe2adb1&&'always'!==this['_trackFormatChanges']){const _0x429d90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xe3b253,'accept');return this['forceDefaultExecution'](()=>_0x429d90([_0x5cad0d],_0x2d183f,_0x23cd7a)),null;}let _0x5bbcfb=null,_0x1ac2d4=_0x5cad0d['start'],_0x226eb1=_0x5cad0d['end'];for(const {suggestion:_0x592945,meta:_0x7db99e}of this['_findSuggestions'](_0x5cad0d,'formatBlock')){if(!_0x7db99e['isOwn'])continue;if(_0x7db99e['isNextTo']||_0x7db99e['containsRangeInObject']||_0x7db99e['isInsideObject'])continue;if(_0x592945['data']['formatGroupId']!=_0x2d183f['formatGroupId'])continue;if(!pn(_0x592945,_0x23cd7a))continue;const _0x550920=_0x592945['getFirstRange']();if(_0x592945['subType']==_0xe3b253){if(_0x550920['containsRange'](_0x5cad0d,!0x0))return null;_0x1ac2d4=_0x1ac2d4['isBefore'](_0x550920['start'])?_0x1ac2d4:_0x550920['start'],_0x226eb1=_0x226eb1['isAfter'](_0x550920['end'])?_0x226eb1:_0x550920['end'],_0x5bbcfb?_0x550920['start']['isBefore'](_0x5bbcfb['getFirstRange']()['start'])?(_0x5bbcfb['removeMarkers'](),_0x5bbcfb=_0x592945):_0x592945['removeMarkers']():_0x5bbcfb=_0x592945;}else{const _0x555037=_0x5cad0d['getIntersection'](_0x550920);this['_cutOutSuggestionMarker'](_0x592945,_0x555037);}}const _0x1cb665=this['editor']['plugins']['get']('Users')['me'],_0xa45154=_0x1dfb7c(),_0x232bc5=_0x1cb665['id'];if(_0x5bbcfb)return this['_setSuggestionRange'](_0x5bbcfb,this['_model']['createRange'](_0x1ac2d4,_0x226eb1)),_0x5bbcfb;{const _0x2bac1f=this['_setSuggestionData']({'id':_0xa45154,'type':'formatBlock:'+_0xe3b253,'data':_0x2d183f,'createdAt':new Date(),'authorId':_0x232bc5,'attributes':_0x23cd7a});return this['_addSuggestionMarker']('formatBlock:'+_0xe3b253,_0xa45154,_0x232bc5,this['_model']['createRange'](_0x1ac2d4,_0x226eb1)),_0x2bac1f;}}markMultiRangeBlockFormat(_0x199956,_0x106491,_0x5734d3=[],_0x26902a=null,_0x442a4e={}){_0x106491['formatGroupId']||(_0x106491['formatGroupId']=_0x106491['commandName']);const _0x4b8e0a=_0x199956[0x0];_0x106491['multipleBlocks']=_0x4b8e0a['is']('range'),_0x26902a=_0x26902a||dn(_0x106491);const _0x654097=_0x5734d3['map'](_0x10fd66=>En(_0x10fd66,this['_model'])),_0x3abc29=_0x4b8e0a['is']('range')?_0x199956:_0x199956['map'](_0x5031bc=>En(_0x5031bc,this['_model']));if(this['_trackingSessionId']&&(_0x442a4e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x34bb6f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'accept');return this['forceDefaultExecution'](()=>_0x34bb6f(_0x3abc29,_0x106491,_0x442a4e)),null;}_0x654097['push'](..._0x3abc29);let _0x52db1e=!0x0;for(const _0x17cd23 of _0x654097)if(!this['_rangeIsInLocalUserInsertion'](_0x17cd23)){_0x52db1e=!0x1;break;}if(_0x52db1e&&'always'!==this['_trackFormatChanges']){const _0x3e8306=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'accept');return this['forceDefaultExecution'](()=>_0x3e8306(_0x3abc29,_0x106491,_0x442a4e)),null;}const _0x3405f3=this['editor']['plugins']['get']('Users')['me'];for(const _0x5124f9 of this['getSuggestions']()){const _0x422a8a=_0x5124f9['data'];if(_0x5124f9['author']['id']!=_0x3405f3['id'])continue;if('formatBlock'!=_0x5124f9['type']||_0x422a8a['formatGroupId']!=_0x106491['formatGroupId'])continue;if(!pn(_0x5124f9,_0x442a4e))continue;const _0x4a9236=_0x5124f9['subType']==_0x26902a;for(let _0x1ae7c1=0x0;_0x1ae7c1<_0x3abc29['length'];_0x1ae7c1++){const _0x57cdb8=_0x3abc29[_0x1ae7c1];for(const _0x2ce648 of _0x5124f9['getMarkers']()){const _0x24f10c=_0x2ce648['getRange']();if(_0x57cdb8['isEqual'](_0x24f10c)){_0x4a9236?(_0x3abc29['splice'](_0x1ae7c1,0x1),_0x1ae7c1--):_0x5124f9['removeMarker'](_0x2ce648['name']);break;}}}}if(0x0==_0x3abc29['length'])return null;const _0x45b896=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x26902a,'join');for(const _0x4c33aa of this['getSuggestions']()){const _0xf470c7=_0x4c33aa['data'];if(_0x4c33aa['author']['id']==_0x3405f3['id']&&('formatBlock'==_0x4c33aa['type']&&_0xf470c7['formatGroupId']==_0x106491['formatGroupId']&&_0x4c33aa['subType']==_0x26902a&&pn(_0x4c33aa,_0x442a4e)&&(_0x45b896(_0x4c33aa['getRanges'](),_0x3abc29)||_0x45b896(_0x3abc29,_0x4c33aa['getRanges']())))){for(const _0xd7a89 of _0x3abc29)_0x4c33aa['addRange'](_0xd7a89);return _0x4c33aa;}}const _0x251791=_0x1dfb7c(),_0xf9f70a=_0x3405f3['id'],_0x172881='formatBlock:'+_0x26902a,_0x37bff5=this['_setSuggestionData']({'id':_0x251791,'type':_0x172881,'data':_0x106491,'createdAt':new Date(),'authorId':_0xf9f70a,'attributes':_0x442a4e});for(const _0xac8ddc of _0x3abc29)this['_addSuggestionMarker'](_0x172881,_0x251791,_0xf9f70a,_0xac8ddc,Mt['getMultiRangeId']());return _0x37bff5;}markDeletion(_0x3f09a1,_0x74e79d=null,_0x1c4436={}){if(_0x3f09a1['isCollapsed'])return null;const _0x4fc682=this['editor']['plugins']['get']('Users')['me'],_0x1613a2=new ot(_0x3f09a1['start'],_0x3f09a1['end']);this['_trackingSessionId']&&(_0x1c4436['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1c1e4f,meta:_0x245c6c}of this['_findSuggestions'](_0x1613a2,'insertion'))if(_0x245c6c['isOwn']&&!_0x245c6c['isNextTo']){if(_0x1c1e4f['isMultiRange']){const _0xd6a570=_0x1c1e4f['getRanges']()['filter'](_0x45ce62=>'$graveyard'!=_0x45ce62['root']['rootName']);if(_0xd6a570['every'](_0x150c21=>_0x1613a2['containsRange'](_0x150c21,!0x0))&&_0x1c1e4f['discard'](),_0xd6a570['some'](_0x1af1f7=>_0x1af1f7['containsRange'](_0x1613a2,!0x0))){const _0x1fe8ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x74e79d,'accept');return this['forceDefaultExecution'](()=>_0x1fe8ba([_0x1613a2],null,_0x1c4436)),null;}}else{const _0x4f50e9=_0x1613a2['getIntersection'](_0x1c1e4f['getFirstRange']());null!==_0x4f50e9&&_0x1c1e4f['_onDiscard']([_0x4f50e9],null,_0x1c4436);}}if(_0x1613a2['detach'](),_0x1613a2['isCollapsed']||'$graveyard'==_0x1613a2['root']['rootName'])return null;let _0x30376f=null,_0x1148a6=_0x1613a2['start'],_0x1c81d7=_0x1613a2['end'];const _0x74beac=this['_findSuggestions'](_0x1613a2,'deletion');for(const {suggestion:_0x4b60e2,meta:_0x534675}of _0x74beac){const _0x28821a=this['_model']['createRange'](_0x1148a6,_0x1c81d7);if(_0x534675['isOwn']&&(this['_mergeNestedSuggestions']||!_0x534675['containsRangeInObject']&&!_0x534675['isInsideObject'])){if(_0x4b60e2['isMultiRange']){if(!pn(_0x4b60e2,_0x1c4436))continue;let _0x268cd9=!0x0;for(const _0x904de8 of _0x4b60e2['getRanges']()){if(_0x904de8['containsRange'](_0x28821a,!0x0))return _0x4b60e2;_0x28821a['containsRange'](_0x904de8)||(_0x268cd9=!0x1);}_0x268cd9&&_0x4b60e2['discard']();}else{const _0xfae59e=_0x4b60e2['getFirstRange']();if(_0xfae59e['containsRange'](_0x28821a,!0x0))return _0x4b60e2;if(!pn(_0x4b60e2,_0x1c4436)){_0x28821a['containsRange'](_0xfae59e)?_0x4b60e2['removeMarkers']():_0xfae59e['containsPosition'](_0x1148a6)?_0x1148a6=_0xfae59e['end']:_0xfae59e['containsPosition'](_0x1c81d7)&&(_0x1c81d7=_0xfae59e['start']);continue;}_0x1148a6=_0x1148a6['isBefore'](_0xfae59e['start'])?_0x1148a6:_0xfae59e['start'],_0x1c81d7=_0x1c81d7['isAfter'](_0xfae59e['end'])?_0x1c81d7:_0xfae59e['end'],_0x1c4436=Object['assign']({},_0x4b60e2['attributes']),_0x30376f?_0xfae59e['start']['isBefore'](_0x30376f['getFirstRange']()['start'])?(_0x30376f['removeMarkers'](),_0x30376f=_0x4b60e2):_0x4b60e2['removeMarkers']():_0x30376f=_0x4b60e2;}}}if(_0x30376f)return this['_setSuggestionRange'](_0x30376f,this['_model']['createRange'](_0x1148a6,_0x1c81d7)),_0x30376f;{const _0x3c81c7=_0x1dfb7c(),_0x414609=this['_model']['createRange'](_0x1148a6,_0x1c81d7),_0x4d0724=_0x4fc682['id'],_0x5704ab=_0x74e79d?'deletion:'+_0x74e79d:'deletion',_0x3ebb79=this['_setSuggestionData']({'id':_0x3c81c7,'type':_0x5704ab,'createdAt':new Date(),'authorId':_0x4d0724,'attributes':_0x1c4436});return this['_addSuggestionMarker'](_0x5704ab,_0x3c81c7,_0x4d0724,_0x414609),_0x3ebb79;}}markMultiRangeDeletion(_0x83bfd1,_0x45ba95='multi',_0x213798={}){const _0x2aa4c0=this['editor']['plugins']['get']('Users')['me'],_0x5d06ee=_0x83bfd1['map'](_0x33821d=>new ot(_0x33821d['start'],_0x33821d['end'])),_0x5b026b=new Set();this['_trackingSessionId']&&(_0x213798['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x347c9f,meta:_0x38ada9}of this['_findSuggestions'](_0x5d06ee,'insertion'))_0x38ada9['isOwn']&&!_0x38ada9['isNextTo']&&_0x5b026b['add'](_0x347c9f);for(const _0x4ddea3 of _0x5b026b)if(_0x4ddea3['isMultiRange']){const _0x23558e=_0x4ddea3['getRanges']();if(_0x4ddea3['attributes']&&_0x4ddea3['attributes']['skipNestingCheck']||_0x23558e['every'](_0x5f599a=>_0x5d06ee['some'](_0x359f5b=>_0x359f5b['containsRange'](_0x5f599a,!0x0)))&&_0x4ddea3['discard'](),_0x5d06ee['every'](_0x17fa6e=>_0x23558e['some'](_0x982ba0=>_0x982ba0['containsRange'](_0x17fa6e,!0x0)))){const _0x208a85=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'accept');return this['forceDefaultExecution'](()=>_0x208a85(_0x83bfd1,null,_0x213798)),null;}}else{const _0x588ec5=_0x4ddea3['getFirstRange']();if(_0x5d06ee['some'](_0xcc8b86=>_0xcc8b86['containsRange'](_0x588ec5,!0x0))&&_0x4ddea3['discard'](),_0x5d06ee['every'](_0x47f3a7=>_0x588ec5['containsRange'](_0x47f3a7,!0x0))){const _0x12cb29=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'accept');return this['forceDefaultExecution'](()=>_0x12cb29(_0x5d06ee,null,_0x213798)),null;}}const _0x443350=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x45ba95,'join');let _0x159010=null;for(const _0x21b30a of this['getSuggestions']())if(_0x21b30a['author']['id']==_0x2aa4c0['id']&&_0x21b30a['isInContent']&&'deletion'==_0x21b30a['type']&&_0x21b30a['subType']==_0x45ba95&&pn(_0x21b30a,_0x213798)&&(_0x443350(_0x21b30a['getRanges'](),_0x5d06ee)||_0x443350(_0x5d06ee,_0x21b30a['getRanges']()))){if(_0x159010){if(_0x21b30a['commentThread']&&_0x21b30a['commentThread']['length'])continue;for(const _0xb32d30 of _0x21b30a['getRanges']())_0x159010['isIntersectingWithRange'](_0xb32d30)||_0x159010['addRange'](_0xb32d30);_0x21b30a['removeMarkers']();}else{_0x159010=_0x21b30a;for(const _0x48e4b9 of _0x5d06ee)_0x21b30a['isIntersectingWithRange'](_0x48e4b9)||_0x21b30a['addRange'](_0x48e4b9);}}if(_0x159010)return _0x159010;_0x5b026b['clear']();for(const {suggestion:_0x4119ac,meta:_0x110574}of this['_findSuggestions'](_0x5d06ee,'deletion'))_0x110574['isOwn']&&(this['_mergeNestedSuggestions']||!_0x110574['containsRangeInObject']&&!_0x110574['isInsideObject'])&&pn(_0x4119ac,_0x213798)&&_0x5b026b['add'](_0x4119ac);for(const _0x3b00f6 of _0x5b026b){const _0x25f378=_0x3b00f6['getRanges']();if((!_0x213798||!_0x213798['skipNestingCheck'])&&_0x5d06ee['every'](_0x309f65=>_0x25f378['some'](_0x17ce43=>_0x17ce43['containsRange'](_0x309f65,!0x0))))return _0x3b00f6;_0x3b00f6['attributes']&&_0x3b00f6['attributes']['skipNestingCheck']||_0x25f378['every'](_0x5020f9=>_0x5d06ee['some'](_0x588e92=>_0x588e92['containsRange'](_0x5020f9,!0x0)))&&_0x3b00f6['discard']();}const _0x2e92c5=_0x1dfb7c(),_0x3ca9b2=_0x2aa4c0['id'],_0x2350e5='deletion:'+_0x45ba95,_0x46b377=this['_setSuggestionData']({'id':_0x2e92c5,'type':_0x2350e5,'createdAt':new Date(),'authorId':_0x3ca9b2,'attributes':_0x213798});for(const _0x45179d of _0x5d06ee)_0x45179d['detach'](),_0x45179d['isCollapsed']||'$graveyard'==_0x45179d['root']['rootName']||this['_addSuggestionMarker'](_0x2350e5,_0x2e92c5,_0x3ca9b2,_0x45179d,Mt['getMultiRangeId']());return _0x46b377;}markAttributeChange(_0xdaa491,_0x3922c7,_0x1efd2e,_0x273578,_0x15cc9d){if(_0xdaa491['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x29e6a1=this['editor']['plugins']['get']('Users')['me']['id'],_0x29d0dc=Array['from'](this['_suggestions']['values']())['filter'](_0x2abda3=>'attribute'==_0x2abda3['type']&&_0x2abda3['data']['key']==_0x3922c7&&_0x2abda3['isIntersectingWithRange'](_0xdaa491));if(this['_trackingSessionId']&&(_0x15cc9d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0xdbd5c=this['_findSuggestions'](_0xdaa491,'insertion')['filter'](({meta:_0x2b7905})=>_0x2b7905['isOwn']&&!_0x2b7905['isInsideObject']&&!_0x2b7905['isNextTo'])['map'](({suggestion:_0x37bbb8})=>_0x37bbb8);_0x29d0dc['unshift'](..._0xdbd5c);}const _0x14c070=new Map([[_0xdaa491,_0x1efd2e]]);for(const _0x20e1a2 of _0x29d0dc){const _0x4aa676='attribute'==_0x20e1a2['type']?_0x20e1a2['data']['oldValue']:void 0x0,_0x1f55c2=_0x20e1a2['getFirstRange'](),_0x48cdb0=Array['from'](_0x14c070['keys']())['find'](_0x3e68a6=>_0x3e68a6['isIntersecting'](_0x1f55c2));if(!_0x48cdb0)continue;const _0x479a3b=_0x48cdb0['getDifference'](_0x1f55c2);this['_suggestionsConversion']['isBlockAttribute'](_0x3922c7)&&'insertion'==_0x20e1a2['type']&&0x0!=_0x479a3b['length']||(_0x14c070['delete'](_0x48cdb0),_0x479a3b['forEach'](_0x587f33=>{_0x14c070['set'](_0x587f33,_0x1efd2e);}),'insertion'!=_0x20e1a2['type']&&_0x4aa676!=_0x273578&&_0x14c070['set'](_0x48cdb0['getIntersection'](_0x1f55c2),_0x4aa676));}const _0x197846=[];for(const [_0x1c2a0a,_0x37c25c]of _0x14c070){const _0x25f784=_0x1dfb7c(),_0x4221ef={'key':_0x3922c7,'oldValue':_0x37c25c,'newValue':_0x273578};_0x3922c7['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':_0x3922c7});const _0x43ada5=('attribute:'+_0x3922c7+'|'+dn({'newValue':_0x273578}))['substring'](0x0,0x3c),_0x1a15d2=this['_setSuggestionData']({'id':_0x25f784,'type':_0x43ada5,'data':_0x4221ef,'createdAt':new Date(),'authorId':_0x29e6a1,'attributes':_0x15cc9d});_0x197846['push'](_0x1a15d2),this['_addSuggestionMarker'](_0x43ada5,_0x25f784,_0x29e6a1,_0x1c2a0a);}return _0x197846;}enableDefaultAttributesIntegration(_0x237ba2){this['enableCommand'](_0x237ba2,(_0x4eb20a,..._0xa19bd4)=>{this['recordAttributeChanges'](()=>{_0x4eb20a(..._0xa19bd4);});});}startTrackingSession(_0x2a0656){return this['_trackingSessionId']=void 0x0!==_0x2a0656?_0x2a0656:_0x1dfb7c(),this['_trackingSessionId'];}_getAttributeKey(_0x4818ba){return'attribute'==_0x4818ba['type']?In(_0x4818ba['subType']):null;}_applyOperationsAsSuggestions(_0x76ae84){if(0x0==_0x76ae84['length'])return;const _0x490835=this['editor'],_0x1ee45a=_0x490835['plugins']['get'](_0x140123),_0x3428af=[],_0x3d2772=_0x4d84e6=>{const _0x39b47=_0x4d84e6['_aiSource'];return _0x39b47?{'@ai':{'type':_0x39b47}}:{};},_0x5a3bea=(_0x3eab85,_0x415f4c,_0x1be5ca)=>{for(let _0x113284=_0x415f4c;_0x113284<_0x3eab85['operations']['length'];_0x113284++){const _0x5ae736=_0x3eab85['operations'][_0x113284];'marker'===_0x5ae736['type']&&(_0x5ae736['_aiSource']=_0x1be5ca);}};_0x490835['model']['change'](_0x59b048=>{for(let _0xdcb5b3=0x0;_0xdcb5b3<_0x76ae84['length'];_0xdcb5b3++){const _0x16c61b=_0x76ae84[_0xdcb5b3],_0x2c056a=_0x16c61b['_aiSource'],_0x8ab46f=_0x59b048['batch']['operations']['length'];if(_0x16c61b['baseVersion']=_0x490835['model']['document']['version'],_0x16c61b['isDocumentOperation']=!0x0,!_0x39c933(_0x16c61b)){if(_0x1ee45a['isMarkedRemoveOperation'](_0x16c61b)){const _0x33aeec=_0x42ced4(_0x16c61b['newRange'],_0x490835['model']);_0x3428af['unshift']({'range':ot['fromRange'](_0x33aeec),'opAttributes':_0x3d2772(_0x16c61b),'aiSource':_0x2c056a});}else{switch(_0x16c61b['type']){case'rename':{const _0xbb9a2c=_0x16c61b['oldName'],_0x2956dd=_0x16c61b['newName'];if(_0xbb9a2c==_0x2956dd)break;_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0x2a2159='$elementName',_0x5b6f26=_0x16c61b['position'],_0x368ba5=_0x490835['model']['createRange'](_0x5b6f26,_0x490835['model']['createPositionAt'](_0x5b6f26['nodeAfter'],'end'));this['markAttributeChange'](_0x368ba5,_0x2a2159,_0xbb9a2c,_0x2956dd,{..._0x3d2772(_0x16c61b),'groupId':_0x1dfb7c()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0xd59241=_0x16c61b['oldValue'],_0x47eab8=_0x16c61b['newValue'];if(_0xd59241==_0x47eab8)break;_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0x2e2cf5=_0x16c61b['key'];if(!this['_suggestionsConversion']['isRegisteredAttribute'](_0x2e2cf5))break;const _0x3242a0=_0x42ced4(_0x16c61b['range'],_0x490835['model']);this['markAttributeChange'](_0x3242a0,_0x2e2cf5,_0xd59241,_0x47eab8,{..._0x3d2772(_0x16c61b),'groupId':_0x1dfb7c()});break;}case'insert':{if(_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b),_0x76ae84[_0xdcb5b3+0x1]&&'move'==_0x76ae84[_0xdcb5b3+0x1]['type'])break;const _0x68e97f=_0x16c61b['position'],_0x860c6a=_0x16c61b['howMany'],_0x594123=_0x42ced4(_0x490835['model']['createRange'](_0x68e97f,_0x68e97f['getShiftedBy'](_0x860c6a)),_0x490835['model']);this['markInsertion'](_0x594123,null,{..._0x3d2772(_0x16c61b)});break;}case'split':{_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);const _0xe10b98=_0x16c61b['splitPosition'],_0x561378=_0x16c61b['moveTargetPosition'],_0x1027b0=_0x490835['model']['createRange'](_0xe10b98,_0x561378);this['markInsertion'](_0x1027b0,null,{..._0x3d2772(_0x16c61b)});break;}case'move':case'remove':_0x59b048['batch']['addOperation'](_0x16c61b),_0x490835['model']['applyOperation'](_0x16c61b);}_0x2c056a&&_0x5a3bea(_0x59b048['batch'],_0x8ab46f,_0x2c056a);}}}for(const {range:_0x5f0b8d,opAttributes:_0x3a9d54,aiSource:_0x5cdd15}of _0x3428af){const _0x4e6add=_0x59b048['batch']['operations']['length'];_0x5f0b8d['detach'](),this['markDeletion'](_0x5f0b8d,null,{..._0x3a9d54}),_0x5cdd15&&_0x5a3bea(_0x59b048['batch'],_0x4e6add,_0x5cdd15);}});}_setSuggestionRange(_0x1ec67c,_0x1ad4b1){const _0x40844f=_0x1ec67c['getFirstMarker']();this['_model']['change'](_0x3802d5=>{_0x3802d5['updateMarker'](_0x40844f,{'range':_0x1ad4b1});});}_addThreadToSuggestion(_0x61dffe){const _0x1f16a0=_0x61dffe['id'],_0x5dbb4e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1f16a0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5dbb4e,'threadId':_0x1f16a0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3211c4=this['_commentsRepository']['getCommentThread'](_0x1f16a0);_0x3211c4['unbind']('isRemovable'),_0x3211c4['isRemovable']=!0x1,_0x61dffe['commentThread']=_0x3211c4;}_checkSuggestionCorrectness(_0x1414bd,_0x52abe9,_0x1e9e5c,_0x2b8c7d){if(_0x1414bd['type']!=_0x52abe9||_0x1414bd['subType']!=_0x1e9e5c||_0x1414bd['creator']['id']!=_0x2b8c7d)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4ce3e1('track-changes-suggestion-data-mismatch',this);}_cutOutSuggestionMarker(_0x31f2e6,_0x439e10){const _0x43700b=_0x31f2e6['getFirstRange']();if(_0x439e10['isEqual'](_0x43700b))_0x31f2e6['removeMarkers']();else{if(_0x43700b['containsRange'](_0x439e10)){const _0x24d9e0=this['_model']['createPositionAt'](_0x439e10['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x43700b['start'],_0x24d9e0));const _0x264127=_0x1dfb7c(),_0x4a344b=_0x31f2e6['creator']['id'],_0x147e61=_0x31f2e6['type']+':'+_0x31f2e6['subType'];this['_setSuggestionData']({'id':_0x264127,'type':_0x147e61,'createdAt':new Date(),'authorId':_0x4a344b,'data':_0x31f2e6['data'],'attributes':_0x31f2e6['attributes']});const _0x25bd94=this['_model']['createPositionAt'](_0x439e10['end']['parent'],'after'),_0x4d3090=this['_model']['createRange'](_0x25bd94,_0x43700b['end']);this['_addSuggestionMarker'](_0x147e61,_0x264127,_0x4a344b,_0x4d3090);}else{if(_0x43700b['containsPosition'](_0x439e10['start'])){const _0xe1ea3a=this['_model']['createPositionAt'](_0x439e10['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x43700b['start'],_0xe1ea3a));}else{const _0x138506=this['_model']['createPositionAt'](_0x439e10['end']['parent'],'after');this['_setSuggestionRange'](_0x31f2e6,this['_model']['createRange'](_0x138506,_0x43700b['end']));}}}}_rangeIsInLocalUserInsertion(_0xa8d964){for(const {suggestion:_0x5aeb39,meta:_0x32138e}of this['_findSuggestions'](_0xa8d964,'insertion')){if(!_0x32138e['isOwn'])continue;const _0x362512=_0x5aeb39['getRanges']();for(const _0x445aca of _0x362512)if(!_0xa8d964['getDifference'](_0x445aca)['length'])return!0x0;}return!0x1;}_getAuthorFromId(_0x12f2c0){return this['editor']['plugins']['get']('Users')['getUser'](_0x12f2c0);}_getExternalAuthor(_0x3d77d2){const _0x303f7b=this['editor']['plugins']['get']('Users'),_0xec3666=_0x86ba89('external:'+_0x3d77d2),_0x52defa=_0x303f7b['getUser'](_0xec3666);return _0x52defa||_0x303f7b['addUser']({'id':_0xec3666,'name':_0x3d77d2});}_createSuggestion(_0x240d70,_0xacecb2,_0x42ac37,_0x403c8e,_0x3533db,_0x4a50ff){const _0x3fe53b=this['_getAuthorFromId'](_0x403c8e);if(!_0x3fe53b)throw new _0x4ce3e1('track-changes-user-not-found',this,{'authorId':_0x403c8e,'suggestionId':_0x42ac37});const _0x134944=this['_suggestionFactory']['buildSuggestion'](_0x240d70,_0xacecb2,_0x42ac37,_0x3fe53b,_0x3533db,_0x5d4859=>{this['_updateSuggestionData'](_0x42ac37,{'attributes':_0x5d4859});const _0x4c6a51=this['getSuggestion'](_0x42ac37);this['_joinWithAdjacentSuggestions'](new Set([_0x4c6a51])),this['_refreshSuggestionsChain'](new Set([_0x4c6a51]));},_0x4a50ff);return this['listenTo'](_0x134944,'accept',()=>{this['_updateSuggestionData'](_0x42ac37,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x134944,'discard',()=>{this['_updateSuggestionData'](_0x42ac37,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x42ac37,_0x134944),this['_suggestionState']['set'](_0x134944,'notReady'),_0x134944;}_breakSuggestionMarker(_0x3f112d,_0x53a3df,_0xe36246){const _0x124a8e=_0x3f112d['getFirstRange'](),_0x463fa5=_0x124a8e['start'],_0x18f65f=_0x124a8e['end'];this['_setSuggestionRange'](_0x3f112d,this['_model']['createRange'](_0x463fa5,_0x53a3df));const _0x45016a=_0x1dfb7c(),_0x3f3729=_0x3f112d['creator']['id'],_0x28c6d2=_0x3f112d['type']+(_0x3f112d['subType']?':'+_0x3f112d['subType']:'');this['_setSuggestionData']({'id':_0x45016a,'type':_0x28c6d2,'createdAt':new Date(),'authorId':_0x3f3729,'originalSuggestionId':_0x3f112d['_originalSuggestionId']||_0x3f112d['id'],'attributes':_0x3f112d['attributes'],'data':_0x3f112d['data']});const _0x2832ec=this['_getAttributeKey'](_0x3f112d);('formatBlock'==_0x3f112d['type']||_0x2832ec&&this['_suggestionsConversion']['isBlockAttribute'](_0x2832ec))&&(_0xe36246=this['_model']['createPositionBefore'](_0xe36246['parent'])),this['_addSuggestionMarker'](_0x28c6d2,_0x45016a,_0x3f3729,this['_model']['createRange'](_0xe36246,_0x18f65f));}_findSuggestions(_0x2bc07a,_0x39432a=null){const _0x385ec3=[],_0x4a7778=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2bc07a)||(_0x2bc07a=[_0x2bc07a]);for(const _0x408719 of this['getSuggestions']()){if(!_0x408719['isInContent'])continue;if(_0x39432a&&_0x408719['type']!=_0x39432a)continue;let _0xda96b7=!0x1;for(const _0x21b376 of _0x408719['getRanges']()){for(const _0x5f061c of _0x2bc07a){const _0x660877=_0x5f061c['start']['isEqual'](_0x21b376['end'])||_0x5f061c['end']['isEqual'](_0x21b376['start']);if(_0x660877||_0x5f061c['getIntersection'](_0x21b376)){const _0x28ef94=_0x5f061c['containsRange'](_0x21b376)&&cn(this['_model']['schema'],_0x21b376['start'],_0x5f061c),_0x517ce1=_0x21b376['containsRange'](_0x5f061c)&&cn(this['_model']['schema'],_0x5f061c['start'],_0x21b376);_0x385ec3['push']({'suggestion':_0x408719,'meta':{'isOwn':_0x4a7778==_0x408719['author'],'isNextTo':_0x660877,'isInsideObject':_0x28ef94,'containsRangeInObject':_0x517ce1}}),_0xda96b7=!0x0;break;}}if(_0xda96b7)break;}}return _0x385ec3;}_addSuggestionMarker(_0x2bda86,_0x4c5288,_0x2fb35d,_0x209a7f,_0x4cb7dc){this['_model']['change'](_0x2e527a=>{let _0x1ce8fd='suggestion:'+_0x2bda86+':'+_0x4c5288+':'+_0x2fb35d;_0x4cb7dc&&(_0x1ce8fd=_0x1ce8fd+':'+_0x4cb7dc),_0x2e527a['addMarker'](_0x1ce8fd,{'range':_0x209a7f,'usingOperation':!0x0,'affectsData':!0x0});});}_removeSuggestion(_0x551deb){const _0x5d38e8=_0x551deb['previous'],_0x4cece8=_0x551deb['next'];_0x551deb['previous']=null,_0x551deb['next']=null,null!=_0x5d38e8&&_0x5d38e8['next']==_0x551deb&&(_0x5d38e8['next']=_0x4cece8),null!=_0x4cece8&&_0x4cece8['previous']==_0x551deb&&(_0x4cece8['previous']=_0x5d38e8),'ready'==this['_suggestionState']['get'](_0x551deb)&&(this['_suggestionState']['set'](_0x551deb,'removed'),this['fire']('suggestionUnloaded',_0x551deb,_0x5d38e8,_0x4cece8));}_setSuggestionData(_0x4f24fc){const _0x56cfc7=_0x4f24fc['id'],_0x329856=this['addSuggestionData'](_0x4f24fc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a1663=this['editor']['plugins']['get']('PendingActions'),_0x974e70=_0x329856['hasComments'],_0x596d5f=_0x329856['subType']?_0x329856['type']+':'+_0x329856['subType']:_0x329856['type'],_0x2d7406=this['editor']['locale'],_0x310b6b=_0x2a1663['add'](Ot(_0x2d7406,'PENDING_ACTION_SUGGESTION')),_0x45e5a9={'id':_0x56cfc7,'type':_0x596d5f,'hasComments':_0x974e70,'data':_0x4f24fc['data']||null,'originalSuggestionId':_0x4f24fc['originalSuggestionId']||null,'attributes':_0x329856['attributes']};this['_adapter']['addSuggestion'](_0x45e5a9)['then'](_0x5ad295=>{_0x329856['_saved']=!0x0,_0x2a1663['remove'](_0x310b6b),_0x5ad295&&_0x5ad295['createdAt']&&(this['_suggestions']['get'](_0x56cfc7)['createdAt']=_0x5ad295['createdAt']);})['catch'](_0x5333a6=>{throw _0x78b2a9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x329856['discard']();}),_0x329856['stopListening'](),this['_suggestions']['delete'](_0x329856['id']),this['_suggestionState']['delete'](_0x329856),_0x5333a6;});}return _0x329856;}_updateSuggestionData(_0x47922e,_0x37f1c4){const _0x200e84=this['editor']['plugins']['get']('PendingActions'),_0x3ee651=this['getSuggestion'](_0x47922e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3ee651['_saved']){const _0x440325=_0x200e84['add'](Ot(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x47922e,_0x37f1c4)['then'](()=>{_0x200e84['remove'](_0x440325);});}else _0x3ee651['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x47922e,_0x37f1c4);});}}_getSuggestionData(_0x5db931){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4ce3e1('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5db931);}_handleNewSuggestionMarker(_0x4b9572){const {id:_0x5a072d,type:_0x4c8bb1,subType:_0x433f92,authorId:_0x553c19}=et(_0x4b9572),_0x46d2ba=this['_suggestions']['get'](_0x5a072d)||this['_createSuggestion'](_0x4c8bb1,_0x433f92,_0x5a072d,_0x553c19,{});switch(this['_checkSuggestionCorrectness'](_0x46d2ba,_0x4c8bb1,_0x433f92,_0x553c19),this['_suggestionState']['get'](_0x46d2ba)){case'notReady':this['_getSuggestionData'](_0x5a072d)['then'](_0x35f2f3=>{let _0x11c0f1=Promise['resolve']();_0x35f2f3['hasComments']&&(_0x11c0f1=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a072d})),_0x11c0f1['then'](()=>{this['addSuggestionData'](_0x35f2f3)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x46d2ba,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a072d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x46d2ba,'ready'),this['fire']('suggestionLoaded',_0x46d2ba);break;case'ready':this['fire']('suggestionChanged',_0x46d2ba);}return _0x46d2ba['addMarkerName'](_0x4b9572),_0x46d2ba;}_refreshSuggestionsChain(_0x329697){const _0x5c9dae=Array['from'](_0x329697),_0x125d50=_0x5c9dae['filter'](_0x872524=>'attribute'==_0x872524['type']);this['_refreshAttributeSuggestionsChain'](_0x125d50);const _0x446067=_0x5c9dae['filter'](_0x1d2ab4=>!_0x1d2ab4['isMultiRange']&&'attribute'!=_0x1d2ab4['type']),_0x39d439=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c4735=>!_0x5c4735['isMultiRange']&&'attribute'!=_0x5c4735['type']),_0x12d1a3=_0x39d439['filter'](_0x3a7e20=>!_0x329697['has'](_0x3a7e20)),_0x4c9bbc=new Map(_0x39d439['map'](_0x4cd0c7=>[_0x4cd0c7,this['_suggestionFactory']['getSuggestionCallback'](_0x4cd0c7['type'],_0x4cd0c7['subType'],'chain')])),_0x138b0c=new Map(_0x39d439['map'](_0x2dfce2=>[_0x2dfce2,_0x2dfce2['getFirstRange']()])),_0x5d27d9=new Set(),_0x31d15d=new Set();for(let _0x21d258=0x0;_0x21d258<_0x446067['length'];_0x21d258++)_0x348dbb(_0x446067[_0x21d258],_0x446067,_0x21d258+0x1);for(let _0x29f27b=0x0;_0x29f27b<_0x446067['length'];_0x29f27b++)_0x348dbb(_0x446067[_0x29f27b],_0x12d1a3,0x0);const _0x1add54=new Set();for(let _0x55a451=0x0;_0x55a451<_0x446067['length'];_0x55a451++){const _0x516c8a=_0x446067[_0x55a451];!_0x31d15d['has'](_0x516c8a)&&_0x516c8a['previous']&&(_0x1add54['add'](_0x516c8a['previous']),_0x516c8a['previous']['next']===_0x516c8a&&(_0x516c8a['previous']['next']=null),_0x516c8a['previous']=null),!_0x5d27d9['has'](_0x516c8a)&&_0x516c8a['next']&&(_0x1add54['add'](_0x516c8a['next']),_0x516c8a['next']['previous']===_0x516c8a&&(_0x516c8a['next']['previous']=null),_0x516c8a['next']=null);}function _0x348dbb(_0x1f60ec,_0x3be222,_0xef5ddb){for(let _0x3a58f6=_0xef5ddb;_0x3a58f6<_0x3be222['length'];_0x3a58f6++){const _0x4d60d1=_0x4cf7ed(_0x1f60ec,_0x3be222[_0x3a58f6]);_0x4d60d1&&(_0x4d60d1[0x0]['next']=_0x4d60d1[0x1],_0x4d60d1[0x1]['previous']=_0x4d60d1[0x0],_0x5d27d9['add'](_0x4d60d1[0x0]),_0x31d15d['add'](_0x4d60d1[0x1]));}}function _0x4cf7ed(_0x112f30,_0x2d421f){if(_0x112f30['author']['id']!==_0x2d421f['author']['id'])return null;const _0x2381b5=_0x4c9bbc['get'](_0x112f30)(_0x112f30,_0x2d421f,_0x138b0c['get'](_0x112f30),_0x138b0c['get'](_0x2d421f));return _0x2381b5&&_0x4c9bbc['get'](_0x2d421f)(_0x112f30,_0x2d421f,_0x138b0c['get'](_0x112f30),_0x138b0c['get'](_0x2d421f))?_0x2381b5[0x1]['commentThread']&&_0x2381b5[0x1]['commentThread']['length']?null:_0x2381b5:null;}_0x1add54['size']&&this['_refreshSuggestionsChain'](_0x1add54);}_refreshAttributeSuggestionsChain(_0x507a5c){if(0x0==_0x507a5c['length'])return;const _0x1c1822=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd4687a=>'attribute'==_0xd4687a['type']&&_0xd4687a['_isDataLoaded']),_0x4f8bbd=[],_0x4690d8=new Map();for(const _0x448d84 of _0x1c1822){const _0x20b29f=_0x86ba89(_0x448d84['attributes']);_0x4690d8['has'](_0x20b29f)||(_0x4690d8['set'](_0x20b29f,_0x4f8bbd['length']),_0x4f8bbd['push']([])),_0x4f8bbd[_0x4690d8['get'](_0x20b29f)]['push'](_0x448d84);}!(function(){_0x4f8bbd['sort']((_0x3ef5d8,_0x59e1ba)=>{const _0xc91e77=_0x3ef5d8[0x0]['createdAt'],_0x26d20a=_0x59e1ba[0x0]['createdAt'];return _0xc91e77==_0x26d20a?_0x3ef5d8[0x0]['attributes']['groupId']<_0x59e1ba[0x0]['attributes']['groupId']?-0x1:0x1:_0xc91e77<_0x26d20a?-0x1:0x1;});for(const _0xe6fcc2 of _0x4f8bbd)_0xe6fcc2['sort']((_0x6b79e2,_0x3570e0)=>_0x6b79e2['id']<_0x3570e0['id']?-0x1:0x1);}());for(let _0x5914ce=0x0;_0x5914ce<_0x4f8bbd['length'];_0x5914ce++){if(0x0==_0x4f8bbd[_0x5914ce]['length'])continue;const _0x1bd776=[];for(let _0x2ae89d=_0x5914ce+0x1;_0x2ae89d<_0x4f8bbd['length'];_0x2ae89d++)0x0!=_0x4f8bbd[_0x2ae89d]['length']&&_0x13ac2d(_0x4f8bbd[_0x5914ce],_0x4f8bbd[_0x2ae89d])&&_0x1bd776['push'](_0x2ae89d);for(const _0x5260ed of _0x1bd776)_0x4f8bbd[_0x5914ce]=_0x4f8bbd[_0x5914ce]['concat'](_0x4f8bbd[_0x5260ed]),_0x4f8bbd[_0x5260ed]=[];}for(const _0x1d4c5b of _0x4f8bbd)for(let _0x2072f1=0x0;_0x2072f1<_0x1d4c5b['length'];_0x2072f1++){const _0x6e439a=_0x1d4c5b[_0x2072f1+0x1]||null;_0x1d4c5b[_0x2072f1]['next']!==_0x6e439a&&(_0x1d4c5b[_0x2072f1]['next']=_0x6e439a);}for(const _0x47b59e of _0x4f8bbd)for(let _0xf77bea=0x0;_0xf77bea<_0x47b59e['length'];_0xf77bea++){const _0x51973e=_0x47b59e[_0xf77bea-0x1]||null;_0x47b59e[_0xf77bea]['previous']!==_0x51973e&&(_0x47b59e[_0xf77bea]['previous']=_0x51973e);}function _0x13ac2d(_0xf3ab5a,_0x27fdfd){return(_0xf3ab5a[0x0]['attributes']['groupId']===_0x27fdfd[0x0]['attributes']['groupId']||_0xf3ab5a[0x0]['author']===_0x27fdfd[0x0]['author'])&&(!!function(_0x1d1b61,_0x37a8a3){return!_0x1d1b61['hasComments']&&!_0x37a8a3['hasComments']||(!_0x1d1b61['hasComments']||!_0x37a8a3['hasComments'])&&(!!(_0x1d1b61['hasComments']&&_0x37a8a3['createdAt']<_0x1d1b61['commentThread']['comments']['get'](0x0)['createdAt'])||!!(_0x37a8a3['hasComments']&&_0x1d1b61['createdAt']<_0x37a8a3['commentThread']['comments']['get'](0x0)['createdAt']));}(_0xf3ab5a[0x0],_0x27fdfd[0x0])&&(!!lt(ut(_0xf3ab5a[0x0]['attributes'],['groupId','trackingSessionId']),ut(_0x27fdfd[0x0]['attributes'],['groupId','trackingSessionId']))&&(_0xf3ab5a[0x0]['attributes']['groupId']==_0x27fdfd[0x0]['attributes']['groupId']||_0xf3ab5a[0x0]['attributes']['trackingSessionId']===_0x27fdfd[0x0]['attributes']['trackingSessionId']&&(!!_0xf3ab5a['every'](_0x2a2228=>_0x27fdfd['some'](_0x50042c=>_0x2a2228['getFirstRange']()['isEqual'](_0x50042c['getFirstRange']())))&&_0x27fdfd['every'](_0x578be3=>_0xf3ab5a['some'](_0x3fbc1a=>_0x578be3['getFirstRange']()['isEqual'](_0x3fbc1a['getFirstRange']())))))));}}_joinWithAdjacentSuggestions(_0x4a2a55){const _0x3824b8=Array['from'](_0x4a2a55),_0x2e758e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5e7a99=_0x2e758e['filter'](_0x11badc=>!_0x4a2a55['has'](_0x11badc)),_0x127781=new Map(_0x3824b8['map'](_0x5e2b45=>[_0x5e2b45,this['_suggestionFactory']['getSuggestionCallback'](_0x5e2b45['type'],_0x5e2b45['subType'],'join')])),_0x457e53=new Map(_0x2e758e['map'](_0x162a23=>[_0x162a23,_0x162a23['getRanges']()]));for(let _0x43f6c2=0x0;_0x43f6c2<_0x3824b8['length'];_0x43f6c2++)if(_0xdc98e1(this,_0x3824b8[_0x43f6c2],_0x3824b8,_0x43f6c2+0x1))return!0x0;for(let _0x23e3ff=0x0;_0x23e3ff<_0x3824b8['length'];_0x23e3ff++)if(_0xdc98e1(this,_0x3824b8[_0x23e3ff],_0x5e7a99,0x0))return!0x0;return!0x1;function _0xdc98e1(_0x42e37f,_0xfbf671,_0x3faf12,_0x135757){for(let _0x4e33bf=_0x135757;_0x4e33bf<_0x3faf12['length'];_0x4e33bf++){const _0x53eba1=_0x3faf12[_0x4e33bf];if(_0x53eba1['type']!==_0xfbf671['type']||_0x53eba1['author']['id']!==_0xfbf671['author']['id']||_0x53eba1['subType']!==_0xfbf671['subType'])continue;if(!_n(_0xfbf671,_0x53eba1))continue;if('attribute'==_0xfbf671['type']&&_0xfbf671['data']['oldValue']!=_0x53eba1['data']['oldValue'])continue;if('attribute'==_0xfbf671['type']&&_0x42e37f['_suggestionsConversion']['isBlockAttribute'](_0xfbf671['data']['key']))continue;if('formatBlock'==_0xfbf671['type']){const _0x4190e3=_0x42e37f['editor']['model'],_0xca8081=_0xfbf671['getContainedElement']();if(_0xca8081&&(_0x4190e3['schema']['isObject'](_0xca8081)||_0x4190e3['schema']['isLimit'](_0xca8081)))continue;}const _0x3a4bd7=_0x127781['get'](_0xfbf671),_0x1e56b7=_0x457e53['get'](_0xfbf671),_0x3b8f9e=_0x457e53['get'](_0x53eba1),_0x26d489=_0xfbf671['commentThread']&&_0xfbf671['commentThread']['length'],_0x519530=_0x53eba1['commentThread']&&_0x53eba1['commentThread']['length'];if(!_0x26d489&&_0x3a4bd7(_0x3b8f9e,_0x1e56b7))return _0x42e37f['_joinSuggestions'](_0x53eba1,_0xfbf671),_0x457e53['delete'](_0xfbf671),!0x0;if(!_0x519530&&_0x3a4bd7(_0x1e56b7,_0x3b8f9e))return _0x42e37f['_joinSuggestions'](_0xfbf671,_0x53eba1),_0x457e53['delete'](_0x53eba1),!0x0;}return!0x1;}}_joinSuggestions(_0x3ab375,_0x9e24e3){if(_0x3ab375['isMultiRange']){for(const _0x1d9bb4 of _0x9e24e3['getRanges']())_0x3ab375['addRange'](_0x1d9bb4);}else{const _0x35fe75=_0x9e24e3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3ab375,this['_model']['createRange'](_0x3ab375['getFirstRange']()['start'],_0x35fe75));}_0x9e24e3['removeMarkers']();}_getMarkerAnnouncementText(_0xc01b03,_0x499762,_0x21fda5){const _0x338252=_0xc01b03['startsWith']('format')||_0xc01b03['startsWith']('attribute')?'FORMATTING':_0xc01b03['toUpperCase']();return Ot(this['editor']['locale'],_0x499762+'_'+_0x338252+'_SUGGESTION_ANNOUNCEMENT',_0x21fda5);}_initAriaMarkerChangeAnnouncements(){const _0x41a71c=this['editor'];if(!_0x41a71c['ui'])return;const {ariaLiveAnnouncer:_0x3d4a7}=_0x41a71c['ui'];nt(this['_model'],({left:_0x20a5e7,entered:_0x2d25fa})=>{for(const _0x4bdba2 of _0x20a5e7){const {group:_0x4e0faf,type:_0x53afda}=et(_0x4bdba2['name']);if('suggestion'===_0x4e0faf){_0x3d4a7['announce'](this['_getMarkerAnnouncementText'](_0x53afda,'LEAVE'));break;}}for(const _0x8b4f5b of _0x2d25fa){const {group:_0x26efc0,type:_0x2ba955}=et(_0x8b4f5b['name']);if('suggestion'===_0x26efc0){_0x3d4a7['announce'](this['_getMarkerAnnouncementText'](_0x2ba955,'ENTER',_0x217db9(_0x55db56)));break;}}});}_processAttributeChanges(_0x14157d){if(this['_recordAttributeSuggestions'])return!0x1;const _0xf1ccca=this['editor'],_0xd1b592=_0xf1ccca['model']['document']['differ']['getChanges']();if(0x0==_0xd1b592['length'])return!0x1;const _0x46b842=[],_0x44b7f6=_0xd1b592['filter'](_0x393517=>'attribute'==_0x393517['type']),_0x2113ad=_0xd1b592['filter'](_0x5298c4=>'insert'==_0x5298c4['type']&&'$text'!=_0x5298c4['name']),_0xcd58d5=_0xd1b592['filter'](_0x49fdcb=>'remove'==_0x49fdcb['type']&&'$text'!=_0x49fdcb['name']);for(const _0x3c694d of _0x44b7f6)_0x46b842['push']({'key':_0x3c694d['attributeKey'],'newValue':_0x3c694d['attributeNewValue'],'oldValue':_0x3c694d['attributeOldValue'],'range':mn(_0x3c694d['range'],_0xf1ccca['model'])});for(const _0x3eb6d9 of _0x2113ad){const _0x5dda5a=_0xcd58d5['find'](_0xb65e75=>_0xb65e75['position']['isEqual'](_0x3eb6d9['position']));_0x5dda5a&&_0x46b842['push']({'key':rn,'newValue':_0x3eb6d9['name'],'oldValue':_0x5dda5a['name'],'range':_0xf1ccca['model']['createRangeOn'](_0x3eb6d9['position']['nodeAfter'])});}return 0x0!=_0x46b842['length']&&this['_reduceExistingSuggestions'](_0x14157d,_0x46b842);}_processAttributeSuggestions(_0x1e0595){let _0x1ac7ce=!0x1;const _0x20194d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x25d4a0=>_0x25d4a0['data']['newRange']&&_0x25d4a0['name']['startsWith']('suggestion:attribute:'));for(const _0x51b4d5 of _0x20194d){const {subType:_0x221ead,id:_0x369a83}=et(_0x51b4d5['name']),_0x19a422=_0x221ead['split']('|')[0x0];for(const _0x2fa953 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2fa953['id']!=_0x369a83&&'attribute'==_0x2fa953['type']&&_0x2fa953['data']&&_0x2fa953['data']['key']==_0x19a422&&_0x2fa953['getFirstRange']()['isIntersecting'](_0x51b4d5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2fa953,_0x51b4d5['data']['newRange'],_0x1e0595),_0x1ac7ce=!0x0);}return _0x1ac7ce;}recordAttributeChanges(_0x63e66a){this['_recordAttributeSuggestions']=!0x0,_0x63e66a();}_reduceExistingSuggestions(_0x9cf98e,_0x361916){if(0x0==_0x361916['length'])return!0x1;let _0xa15c97=!0x1;for(const _0x24dba9 of _0x361916){const _0x2b8121=this['_findSuggestions'](_0x24dba9['range'],'attribute')['filter'](_0x14e29e=>!_0x14e29e['meta']['isNextTo'])['map'](_0x546245=>_0x546245['suggestion']),_0x282bab=_0x86ba89({'newValue':_0x24dba9['newValue']});_0x2b8121['filter'](_0x5bf1ff=>{const [_0x4073bf,_0x361eb6]=_0x5bf1ff['subType']['split']('|');return _0x4073bf==_0x24dba9['key']&&_0x361eb6!=_0x282bab;})['forEach'](_0x430b86=>{this['_reduceSuggestionAttributeRange'](_0x430b86,_0x24dba9['range'],_0x9cf98e),_0xa15c97=!0x0;});}return _0xa15c97;}_reduceSuggestionAttributeRange(_0xc591c6,_0x1a4bad,_0x271bef){const _0x36a602=_0xc591c6['getFirstRange']()['getDifference'](_0x1a4bad);0x0!==_0x36a602['length']?0x1!==_0x36a602['length']?this['_breakSuggestionMarker'](_0xc591c6,_0x1a4bad['start'],_0x1a4bad['end']):this['_setSuggestionRange'](_0xc591c6,_0x36a602[0x0]):_0x271bef['removeMarker'](_0xc591c6['getFirstMarker']());}},an=class{_editor;['_model'];_customCallbacks;_defaultCallbacks;constructor(_0x4468e7){this['_editor']=_0x4468e7,this['_model']=_0x4468e7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}buildSuggestion(_0x20e7b8,_0x460ed1,_0x5751be,_0x556470,_0x45a170,_0x4f0bce,_0x2a7939){return new Mt(this['_model'],{'type':_0x20e7b8,'subType':_0x460ed1,'id':_0x5751be,'originalSuggestionId':_0x2a7939,'author':_0x556470,'creator':_0x556470,'attributes':_0x45a170,'onAttributesChange':_0x4f0bce,'onAccept':(..._0x146b2f)=>this['getSuggestionCallback'](_0x20e7b8,_0x460ed1,'accept')(..._0x146b2f),'onDiscard':(..._0x3c4e79)=>this['getSuggestionCallback'](_0x20e7b8,_0x460ed1,'discard')(..._0x3c4e79)});}registerCustomCallback(_0x351aa1,_0x5b5fb5,_0x46366f,_0x32f1a9){const _0x531df1=_0x351aa1+':'+_0x5b5fb5+':'+_0x46366f;this['_customCallbacks']['set'](_0x531df1,_0x32f1a9);}getSuggestionCallback(_0x175f1f,_0x45118a,_0xde7123){const _0x457428=_0x175f1f+':'+_0x45118a+':'+_0xde7123;return this['_customCallbacks']['get'](_0x457428)||this['_defaultCallbacks']['get'](_0x175f1f+':'+_0xde7123);}_registerDefaultCallbacks(){const _0x2f8e5c=()=>!0x1,_0x129c23=_0x380399=>{_0x380399['sort']((_0x445bdf,_0x2ac35d)=>_0x445bdf['start']['isBefore'](_0x2ac35d['start'])?0x1:-0x1),this['_model']['change'](_0x2d6902=>{for(const _0x1f3ef8 of _0x380399){let _0x6dc56d;_0x6dc56d=_0x1f3ef8['end']['isAtEnd']&&_0x1f3ef8['end']['parent']==_0x1f3ef8['start']['nodeAfter']?_0x2d6902['createSelection'](_0x1f3ef8['start']['nodeAfter'],'on'):_0x2d6902['createSelection'](_0x1f3ef8),this['_model']['deleteContent'](_0x6dc56d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x528b81=(_0x2908d6,_0x57f9c8)=>{_0x57f9c8&&this['_model']['change'](_0x210253=>{const {commandName:_0x333f56,commandParams:_0xc25b1b=[]}=_0x57f9c8,_0x40becb=_0x2908d6['map'](_0x38558b=>(ln(_0x38558b)&&(_0x38558b=this['_model']['createRange'](_0x38558b['end'])),_0x38558b))['filter'](_0x1ffae3=>'$graveyard'!==_0x1ffae3['root']['rootName']);if(_0x40becb['length']<0x1)return;const _0x5419d3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x510877=>ot['fromRange'](_0x510877));_0x210253['setSelection'](_0x40becb);for(const _0x122e92 of this['_editor']['commands']['commands']())_0x122e92['refresh']();_0xc25b1b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x333f56,..._0xc25b1b);const _0xa06e54=_0x5419d3['filter'](_0x225555=>'$graveyard'!=_0x225555['root']['rootName']);_0xa06e54['length']>0x0&&_0x210253['setSelection'](_0xa06e54);for(const _0x11ed21 of _0x5419d3)_0x11ed21['detach']();});},_0x1ddeba=(_0xa5ad98,_0x493d57)=>0x1==_0xa5ad98['length']&&0x1==_0x493d57['length']&&_0xa5ad98[0x0]['end']['isEqual'](_0x493d57[0x0]['start']),_0x9d359b=(_0x2e8afa,_0x78e636,_0x3f5331,_0xb283ca)=>Tn(_0x2e8afa,_0x78e636,_0x3f5331,_0xb283ca)?[_0x2e8afa,_0x78e636]:Tn(_0x78e636,_0x2e8afa,_0xb283ca,_0x3f5331)?[_0x78e636,_0x2e8afa]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f8e5c),this['_defaultCallbacks']['set']('insertion:discard',_0x129c23),this['_defaultCallbacks']['set']('insertion:join',_0x1ddeba),this['_defaultCallbacks']['set']('insertion:chain',_0x9d359b),this['_defaultCallbacks']['set']('deletion:accept',_0x129c23),this['_defaultCallbacks']['set']('deletion:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('deletion:join',_0x1ddeba),this['_defaultCallbacks']['set']('deletion:chain',_0x9d359b),this['_defaultCallbacks']['set']('formatInline:accept',_0x528b81),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('formatInline:join',_0x1ddeba),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f8e5c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x528b81),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f8e5c),this['_defaultCallbacks']['set']('formatBlock:join',_0x1ddeba),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f8e5c),this['_defaultCallbacks']['set']('attribute:accept',_0x2f8e5c),this['_defaultCallbacks']['set']('attribute:discard',(_0x3a2ed4,_0x4492a7)=>{if(!_0x4492a7)return;const _0x25887d=this['_editor']['plugins']['get'](_0x4fbad8);this['_model']['change'](_0xeffd8=>{if('$elementName'==_0x4492a7['key'])for(const _0x497625 of _0x3a2ed4){const _0x21c79b=_0x497625['start']['nodeAfter'],_0xde7d4f=_0x4492a7['oldValue'];_0xeffd8['rename'](_0x21c79b,_0xde7d4f);}else{if(_0x25887d['isBlockAttribute'](_0x4492a7['key'])){for(const _0x556f9e of _0x3a2ed4)void 0x0!==_0x4492a7['oldValue']?_0xeffd8['setAttribute'](_0x4492a7['key'],_0x4492a7['oldValue'],_0x556f9e['start']['nodeAfter']):_0xeffd8['removeAttribute'](_0x4492a7['key'],_0x556f9e['start']['nodeAfter']);}else{for(const _0x4d7af7 of _0x3a2ed4)_0x4492a7['oldValue']?_0xeffd8['setAttribute'](_0x4492a7['key'],_0x4492a7['oldValue'],_0x4d7af7):_0xeffd8['removeAttribute'](_0x4492a7['key'],_0x4d7af7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1ddeba);}};function cn(_0x1c1387,_0x169723,_0xdfd646){for(const _0x3683e7 of _0x169723['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3683e7['root']==_0x3683e7)return!0x1;if(!_0xdfd646['containsItem'](_0x3683e7))return!0x1;if(_0x1c1387['isObject'](_0x3683e7)||_0x1c1387['isLimit'](_0x3683e7))return!0x0;}return!0x1;}function ln(_0x4fdd30){return _0x4fdd30['end']['parent']==_0x4fdd30['start']['nodeAfter']&&_0x4fdd30['end']['isAtStart'];}function un(_0x3aceba,_0x34e04b,_0x38ca42,_0x8c2a80){const _0x9406ca=_0x2bf659=>!_0x2bf659['item']['is']('$textProxy')&&!_0x8c2a80['isObject'](_0x2bf659['item']),_0x9b648c=_0x3aceba['start']['getLastMatchingPosition'](_0x9406ca),_0x124ef1=_0x3aceba['end']['getLastMatchingPosition'](_0x9406ca,{'direction':'backward'});return(!_0x3aceba['start']['isEqual'](_0x9b648c)||!_0x3aceba['end']['isEqual'](_0x124ef1))&&(_0x9b648c['isBefore'](_0x124ef1)?_0x38ca42['updateMarker'](_0x34e04b,{'range':_0x38ca42['createRange'](_0x9b648c,_0x124ef1)}):_0x38ca42['removeMarker'](_0x34e04b),!0x0);}function dn(_0x4b6940){return _0x86ba89(_0x4b6940);}function hn(_0x39d3c8){const _0x10515a=_0x39d3c8['start']['nodeAfter'];return _0x10515a&&_0x10515a['is']('element');}function gn(_0x11b2c9){return ln(_0x11b2c9)||function(_0x27ff2b){return _0x27ff2b['start']['parent']==_0x27ff2b['end']['nodeBefore']&&_0x27ff2b['start']['isAtEnd'];}(_0x11b2c9);}function fn(_0x2eca1f,_0xd1c093){try{const _0x299f16=_0x2eca1f['getRange']();for(const _0x5e1c21 of _0xd1c093)if(_0x2eca1f!==_0x5e1c21&&_0x299f16&&_0x299f16['isIntersecting'](_0x5e1c21['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function mn(_0x1d9140,_0x429797){return null==_0x1d9140['end']['nodeBefore']&&_0x1d9140['end']['parent']==_0x1d9140['start']['nodeAfter']?En(_0x1d9140['start']['nodeAfter'],_0x429797):_0x1d9140;}function En(_0x26f500,_0x2a6271){const _0x4c1dfd=_0x2a6271['schema']['isObject'](_0x26f500)||_0x2a6271['schema']['isSelectable'](_0x26f500);return _0x2a6271['createRange'](_0x2a6271['createPositionAt'](_0x26f500,'before'),_0x4c1dfd?_0x2a6271['createPositionAfter'](_0x26f500):_0x2a6271['createPositionAt'](_0x26f500,'end'));}function Tn(_0x59c484,_0x2f9d19,_0x556498,_0x1ec34a){return!!_n(_0x59c484,_0x2f9d19)&&_0x556498['end']['isEqual'](_0x1ec34a['start']);}function _n(_0x47d3f4,_0x477968){if(!_0x47d3f4['_isDataLoaded']||!_0x477968['_isDataLoaded'])return!0x1;const _0x23e1dc=new Set(Object['keys'](_0x47d3f4['attributes'])),_0x5326fa=new Set(Object['keys'](_0x477968['attributes']));if(_0x23e1dc['delete']('groupId'),_0x5326fa['delete']('groupId'),0x0==_0x23e1dc['size']&&0x0==_0x5326fa['size'])return!0x0;if(_0x23e1dc['size']!=_0x5326fa['size'])return!0x1;const _0x2185dd={..._0x47d3f4['attributes']},_0xb7237c={..._0x477968['attributes']};return delete _0x2185dd['groupId'],delete _0xb7237c['groupId'],JSON['stringify'](_0x2185dd)==JSON['stringify'](_0xb7237c);}function pn(_0x37d083,_0x543d4f){const _0x5fc08c=Ln(_0x37d083['attributes']),_0x2aaec5=Ln(_0x543d4f);if(!_0x37d083['_isDataLoaded'])return!0x1;if(!lt(_0x5fc08c['@ai'],_0x2aaec5['@ai']))return!0x1;for(const _0x5f41b6 of Object['keys'](_0x2aaec5))if(!lt(_0x5fc08c[_0x5f41b6],_0x2aaec5[_0x5f41b6]))return!0x1;return!0x0;}function Ln(_0x205e3f){const _0x4a12ba=Object['assign']({},_0x205e3f);return delete _0x4a12ba['skipNestingCheck'],delete _0x4a12ba['tablePasteChainId'],_0x4a12ba;}function In(_0xca9b39){return _0xca9b39['split']('|')[0x0];}const An=/* #__PURE__ -- @preserve */
26
+ _0x47ad8b();var bn=class extends An{['model'];['view'];commentThreadController;_editor;_acceptCommand;['_discardCommand'];_pendingAction;constructor(_0x9f7678,_0x3ddbc4,_0x4f308e,_0x288a79){super(),this['model']=_0x3ddbc4,this['view']=_0x4f308e,this['commentThreadController']=_0x288a79,this['_editor']=_0x9f7678,this['_acceptCommand']=_0x9f7678['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x9f7678['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5de8fa,_0x8864f)=>_0x5de8fa||_0x8864f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1c7df8=>_0x1c7df8&&this['_editor']['model']['canEditAt'](_0x3ddbc4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x24181d=>_0x24181d&&this['_editor']['model']['canEditAt'](_0x3ddbc4['getRanges']())),this['_pendingAction']=null,_0x4f308e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4f308e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4f308e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4f308e,'change:isDirty',()=>{_0x4f308e['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 _0x16233b=Ot(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x16233b);}_removePendingAction(){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}},Cn=class extends _0x44d047{commentsListView;commentThreadInputView;ariaDescriptionView;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x220cf0,_0x40a7af,_0x40984b,_0x10e20a){super(_0x220cf0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xb0e5f7(_0x220cf0,Ot(_0x220cf0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x40a7af['authoredAt']),this['bind']('authoredAt')['to'](_0x40a7af),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x40a7af,'authoredAt',this,'descriptionParts',(_0x28bbf0,_0x16dc10,_0x30d59c)=>{const _0x1b19fc=_0x30d59c['map'](_0x38e676=>It(_0x38e676['content']))['join']('.\x20')+'.',_0x1a8cda=_0x40a7af['aiSource']&&'author'===_0x10e20a['showAISource']?_0x10e20a['aiAuthor']['name']:_0x40a7af['author']['name'],_0x58406d=Ot(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x28bbf0-0x1,_0x1a8cda,_0x16dc10?_0x10e20a['formatDateTime'](_0x16dc10):'',new DOMParser()['parseFromString'](_0x1b19fc,'text/html')['body']['textContent']]);return _0x40a7af['aiSource']&&'pill'===_0x10e20a['showAISource']?_0x58406d+'\x20'+Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'):_0x58406d;}),this['focusables']=new _0x4b334b(),this['focusTracker']=new _0x50e30b(),this['keystrokes']=new _0x574fc1(),this['focusCycler']=new _0x3b54a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x34f76b=>_0x34f76b['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x40a7af,this['_localUser']=_0x40984b,this['_config']=_0x10e20a,_0x10e20a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),tt(this,this['focusables']);}['focus'](){this['element']['focus']();}destroy(){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}_createCommentViews(){const {CommentsListView:_0x251c5b}=this['_config'];this['commentsListView']=new _0x251c5b(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',_0x5986c7=>_0x5986c7+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x24d518,_0x5363c8)=>_0x24d518||!!_0x5363c8);}_createCommentThreadInputView(){const {CommentThreadInputView:_0x32ce5f}=this['_config'],_0x456c77=new _0x32ce5f(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x15e5c8=_0x456c77['commentInputView'];return _0x456c77['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x15e5c8,'value',(_0x488edb,_0x5a5e33,_0x1d4514)=>!!_0x1d4514||_0x488edb&&!_0x5a5e33),_0x15e5c8['on']('submit',(_0x15764c,_0x47d2a6)=>{this['fire']('addComment',_0x47d2a6),_0x15e5c8['editor']['setData']('');}),_0x15e5c8['on']('cancel',()=>this['focus']()),_0x15e5c8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x456c77;}},kn=class extends Cn{suggestionView;_descriptionElement;constructor(_0x575ef2,_0x3e4595,_0x12289,_0x2d5e13){super(_0x575ef2,_0x3e4595,_0x12289,_0x2d5e13),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x44491c=>_0x44491c&&_0x44491c[0x0]?_0x44491c[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4f16d9,_0x188691)=>{let _0x3f747a='';for(const _0x2bfede of _0x4f16d9)_0x3f747a+='<p>'+It(_0x2bfede['content'],_0x2bfede['color'])+'</p>';return _0x188691?_0x3f747a:it(_0x3f747a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d5e13['SuggestionView'](_0x575ef2,_0x3e4595,{'formatDateTime':_0x2d5e13['formatDateTime'],'showAISource':_0x2d5e13['showAISource'],'aiAuthor':_0x2d5e13['aiAuthor']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}getTemplate(){const _0x3fee8c=this['bindTemplate'],_0x5747f3=[this['suggestionView']];return this['commentsListView']&&_0x5747f3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5747f3['push'](this['commentThreadInputView']),_0x5747f3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3fee8c['if']('isActive','ck-suggestion-wrapper--active'),_0x3fee8c['to']('type',_0x4c8d47=>'ck-suggestion-'+_0x4c8d47),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3fee8c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5747f3};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}},Rn=class extends _0x44d047{['userView'];acceptButton;discardButton;['focusables'];['focusTracker'];keystrokes;['focusCycler'];['_model'];['_config'];constructor(_0x4235c8,_0x10938f,_0xb8c606){super(_0x4235c8),this['_model']=_0x10938f,this['_config']=_0xb8c606,this['set']('description',''),this['bind']('authoredAt')['to'](_0x10938f),this['acceptButton']=this['_createButton'](Ot(_0x4235c8,'Accept\x20suggestion'),_0x14b565,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](Ot(_0x4235c8,'Discard\x20suggestion'),_0x5eb0dc,'ck-suggestion--discard','discardSuggestion','sw');const _0x148980=!!_0x10938f['aiSource']&&'author'===_0xb8c606['showAISource'],_0x948dcb=_0x148980?this['_createAIUser'](_0xb8c606['aiAuthor']):_0x10938f['author'],_0x55026a=_0x148980&&!_0xb8c606['aiAuthor']['avatar']?_0x112b98:void 0x0;this['userView']=new _0x122117(_0x4235c8,_0x948dcb,this['getUserViewNotificationText'](),_0x55026a),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4b334b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x50e30b(),this['keystrokes']=new _0x574fc1(),this['focusCycler']=new _0x3b54a5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1e219a=>_0x1e219a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xdfe01d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xdfe01d['innerHTML']=this['description'],this['on']('change:description',(_0xf69b51,_0x1b9bdc,_0x36dfb5)=>{_0xdfe01d['innerHTML']=_0x36dfb5;}),this['_setupKeyboardNavigation']();}getTemplate(){const _0x328181=this['bindTemplate'],_0x56338a=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x328181['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x328181['to']('authoredAt',_0x3365c6=>this['_config']['formatDateTime'](_0x3365c6))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];if(this['_model']['isExternal']&&_0x56338a['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),this['_model']['aiSource']&&this['_config']['showAISource']){const _0x472b8c=new _0x24fb6b(this['locale']);_0x472b8c['set']({'icon':_0x3af273,'label':Ot(this['locale'],'AI_SOURCE_PILL_LABEL'),'tooltip':Ot(this['locale'],'AI_SOURCE_PILL_TOOLTIP'),'class':'ck-pill_ai'}),_0x56338a['push']({'tag':'div','attributes':{'class':['ck-suggestion__ai-source-pill']},'children':[_0x472b8c]});}return{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x56338a}]};}['focus'](){this['element']['focus']();}getUserViewNotificationText(){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):Ot(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}getExternalSuggestionNote(){return'importWord'===this['_model']['attributes']['@external']['source']?Ot(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):Ot(this['locale'],'EXTERNAL_SUGGESTION');}_createAIUser(_0x9b4d9){return new _0xcdc6f6({'id':'ck-ai-author','name':_0x9b4d9['name'],'avatar':_0x9b4d9['avatar'],'color':new _0x4762e5(0x0)});}_createButton(_0x29be2a,_0x20ee5b,_0xc9c2d8,_0x363ba9,_0x5950de){const _0xf70725=new _0x5bb789(this['locale']);return _0xf70725['set']({'label':_0x29be2a,'icon':_0x20ee5b,'tooltip':!0x0,'tooltipPosition':_0x5950de}),_0xf70725['extendTemplate']({'attributes':{'class':_0xc9c2d8}}),_0xf70725['on']('execute',()=>{this['fire'](_0x363ba9,this['_model']['id']);}),_0xf70725;}_setupKeyboardNavigation(){const _0x2e28cc=this['element'];this['keystrokes']['listenTo'](_0x2e28cc);for(const _0x2e707a of this['focusables'])this['focusTracker']['add'](_0x2e707a['element']),this['keystrokes']['listenTo'](_0x2e707a['element']);this['keystrokes']['set']('enter',(_0x5cc161,_0x173880)=>{_0x2e28cc===_0x5cc161['target']&&(this['focusCycler']['focusFirst'](),_0x173880());}),this['keystrokes']['set']('esc',(_0x42b057,_0x29ff95)=>{_0x2e28cc!==_0x42b057['target']&&(this['focus'](),_0x29ff95());});}},yn=class extends _0x548d2a{['licenseKey'];_licenseKeyCheckInterval;_suggestionToController;_viewToController;_annotationViews;_handleControllerBuffer;_disableComments;static get requires(){return[on,_0x5036c6,_0x625dc5,_0x5a11f9,_0x515c91];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52c2d4){super(_0x52c2d4),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3bfcf0=this['editor']['config'];_0x3bfcf0['define']('trackChanges.SuggestionThreadView',kn),_0x3bfcf0['define']('trackChanges.SuggestionView',Rn),_0x3bfcf0['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3bfcf0['get']('trackChanges.disableComments');}_handleSuggestionControllerDelayed(_0x2137e4,_0x11b751){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1d1a23,_0x5a2f39]of this['_handleControllerBuffer']){const _0x537f55=this['_suggestionToController']['has'](_0x1d1a23);_0x537f55||_0x5a2f39?_0x537f55&&_0x5a2f39&&this['_destroyController'](_0x1d1a23):this['_initializeController'](_0x1d1a23);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get'](_0x515c91)['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2137e4,_0x11b751);}init(){const _0x11716f=this['editor'],_0x29cad8=_0x11716f['plugins']['get'](on),_0x4d33fa=_0x11716f['plugins']['get'](_0x5a11f9),_0x385ec1=_0x11716f['plugins']['get'](_0x515c91),_0x300a07=_0x11716f['plugins']['get'](_0x625dc5);this['_addUIComponentsToFactory'](),_0x385ec1['addSourceCollector'](()=>{const _0x515bd6=[];for(const [_0x231064,_0x2347eb]of Array['from'](this['_suggestionToController'])){const _0x37f593=_0x231064['getAllAdjacentSuggestions'](),_0x4bf0d6=[];for(const _0x1eaf0a of _0x37f593){if(!_0x1eaf0a['isInContent'])continue;if(_0x1eaf0a['isMultiRange']){_0x4bf0d6['push'](..._0x1eaf0a['getRanges']());continue;}const _0x1bec27=_0x1eaf0a['getFirstRange']();if(_0x4bf0d6['length']>0x0){const _0x1a017a=_0x4bf0d6[0x0]['getJoined'](_0x1bec27);if(_0x1a017a){_0x4bf0d6[0x0]=_0x1a017a;continue;}}_0x4bf0d6['push'](_0x1bec27);}_0x515bd6['push']([_0x2347eb['view'],_0x4bf0d6]);}return _0x515bd6;}),this['listenTo'](_0x29cad8,'suggestionLoaded',(_0x28c5c8,_0x4772fb)=>{this['listenTo'](_0x4772fb,'change:previous',(_0x40f7e6,_0x15cfc5,_0x108887,_0x5ccc75)=>{_0x4772fb['isInContent']&&(null==_0x108887?(this['_updateController'](_0x5ccc75['head']),this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x1)):(this['_updateController'](_0x108887['head']),null==_0x5ccc75&&this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x0)));}),null!==_0x4772fb['previous']?this['_updateController'](_0x4772fb['head']):this['_handleSuggestionControllerDelayed'](_0x4772fb,!0x1);}),this['listenTo'](_0x29cad8,'suggestionUnloaded',(_0x1ff12f,_0x1ce679,_0x4615a0)=>{this['stopListening'](_0x1ce679,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ce679),this['_suggestionToController']['has'](_0x1ce679)&&this['_destroyController'](_0x1ce679),_0x4615a0&&this['_updateController'](_0x4615a0['head']);}),this['listenTo'](_0x29cad8,'suggestionChanged',(_0xcbab95,_0xa4a79f)=>{this['_updateController'](_0xa4a79f);}),this['listenTo'](_0x4d33fa,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x300a07,'addComment',(_0x5af959,{threadId:_0x307531,isFromAdapter:_0x4c3cef})=>{if(_0x4c3cef||!_0x29cad8['hasSuggestion'](_0x307531))return;const _0x93da94=_0x29cad8['getSuggestion'](_0x307531);this['_suggestionToController']['get'](_0x93da94)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48c026=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x8ec6c1;for(const _0x39a3b9 in _0x48c026){const _0x4328c9=_0x39a3b9,_0x335394=_0x48c026[_0x4328c9];if('trackChangesLicenseKeyValid'==_0x335394||'trackChangesLicenseKeyInvalid'==_0x335394||'trackChangesLicenseKeyExpired'==_0x335394||'trackChangesLicenseKeyDomainLimit'==_0x335394||'trackChangesLicenseKeyNotAllowed'==_0x335394||'trackChangesLicenseKeyEvaluationLimit'==_0x335394||'trackChangesLicenseKeyUsageLimit'==_0x335394){delete _0x48c026[_0x4328c9],_0x8ec6c1=_0x335394,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x8ec6c1&&_0x48c026['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x8ec6c1&&_0x48c026['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x8ec6c1&&_0x48c026['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x8ec6c1&&_0x48c026['_showLicenseError']('usageLimit');},0x3e8);}getAnnotationForSuggestion(_0xd404bc){const _0x3a767e=this['_suggestionToController']['get'](_0xd404bc);return _0x3a767e&&this['editor']['plugins']['get'](_0x5a11f9)['getByInnerView'](_0x3a767e['view'])||null;}getSuggestionForAnnotation(_0x1964e8){const _0x15b2ac=this['_viewToController']['get'](_0x1964e8['innerView']);return _0x15b2ac?_0x15b2ac['model']:null;}_refreshActiveMarkers(){const _0x33d1d2=this['editor']['plugins']['get'](_0x5a11f9),_0x5149ab=this['editor']['plugins']['get'](on),_0x4fc650=Array['from'](_0x33d1d2['activeAnnotations'],_0x462258=>_0x462258['innerView'])['filter'](_0x1111a1=>this['_viewToController']['has'](_0x1111a1)),_0x22917d=[];for(const _0xd10a3f of _0x4fc650){const _0x4f0f24=this['_viewToController']['get'](_0xd10a3f)['model']['getAllAdjacentSuggestions']();_0x22917d['push'](..._0x4f0f24['reduce']((_0x260c35,_0x89e38d)=>[..._0x260c35,..._0x89e38d['getMarkerNames']()],[]));}_0x5149ab['activeMarkers']=_0x22917d;}_addUIComponentsToFactory(){const _0x3a57f9=this['editor'],_0x7bfba=_0x3a57f9['locale'],_0x39e998=Ot(_0x7bfba,'Track\x20changes'),_0x18d524=new _0x2d3c72([{'type':'switchbutton','model':new _0xe0f952({'withText':!0x0,'isToggleable':!0x0,'label':_0x39e998,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3a57f9['plugins']['has']('TrackChangesPreview')&&_0x18d524['addMany']([{'type':'separator'},{'type':'button','model':new _0xe0f952({'withText':!0x0,'label':Ot(_0x7bfba,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x25ee7b of _0x18d524)if(Nn(_0x25ee7b)){const _0x16f661=_0x3a57f9['commands']['get'](_0x25ee7b['model']['commandName']);_0x25ee7b['model']['bind']('isOn','isEnabled')['to'](_0x16f661,'value','isEnabled');}_0x3a57f9['ui']['componentFactory']['add']('trackChanges',_0x4f2469=>this['_createToolbarButton'](_0x4f2469,_0x18d524,_0x39e998)),_0x3a57f9['ui']['componentFactory']['add']('menuBar:trackChanges',_0x799199=>this['_createMenuBarMenu'](_0x799199,_0x18d524,_0x39e998));}_createToolbarButton(_0x4f59f8,_0x420b16,_0x414dd0){const _0x3ebe9e=_0x583898(_0x4f59f8,_0x499055),_0x5b3365=this['editor']['commands']['get']('trackChanges');_0x3ebe9e['buttonView']['set']({'tooltip':_0x414dd0,'label':_0x414dd0,'icon':_0x1fd907}),_0x3ebe9e['buttonView']['bind']('isOn')['to'](_0x5b3365,'value'),_0x3ebe9e['buttonView']['on']('execute',()=>{_0x5b3365['execute'](),this['editor']['editing']['view']['focus']();}),_0x5a7aa3(_0x3ebe9e,_0x420b16,{'role':'menu'});const _0x28b66a=[];for(const _0x249a26 of _0x420b16)Nn(_0x249a26)&&_0x28b66a['push'](this['editor']['commands']['get'](_0x249a26['model']['commandName']));const _0x5bb484=_0x3ebe9e['buttonView'];return _0x5bb484['actionView']['unbind']('isEnabled'),_0x5bb484['arrowView']['unbind']('isEnabled'),_0x5bb484['actionView']['bind']('isEnabled')['to'](_0x5b3365,'isEnabled'),_0x5bb484['arrowView']['bind']('isEnabled')['toMany'](_0x28b66a,'isEnabled',(..._0x3d0451)=>_0x3d0451['some'](_0x467926=>_0x467926)),_0x3ebe9e['on']('execute',_0x430bf8=>{this['editor']['execute'](_0x430bf8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3ebe9e;}_createMenuBarMenu(_0x232c5a,_0x2f5afc,_0x1e96fe){const _0x7160f4=new _0x3b7c12(_0x232c5a),_0x379803=this['editor']['commands']['get']('trackChanges');_0x7160f4['buttonView']['set']({'label':_0x1e96fe,'icon':_0x1fd907});const _0x5f1d7d=new _0x1d8e7c(_0x232c5a);for(const _0x3fda93 of _0x2f5afc){if('separator'==_0x3fda93['type']){_0x5f1d7d['items']['add'](new _0x5b0cbf(_0x232c5a));continue;}const _0x490ea6=new _0x271ebd(_0x232c5a,_0x7160f4),_0x47fee4=new _0x28f43e(_0x232c5a),_0xf4166b=_0x3fda93['model'];_0x47fee4['bind'](...Object['keys'](_0xf4166b))['to'](_0xf4166b),_0x47fee4['delegate']('execute')['to'](_0x7160f4),_0x47fee4['on']('execute',()=>{this['editor']['execute'](_0xf4166b['commandName']),this['editor']['editing']['view']['focus']();}),_0x490ea6['children']['add'](_0x47fee4),_0x5f1d7d['items']['add'](_0x490ea6);}return _0x7160f4['bind']('isEnabled')['to'](_0x379803,'isEnabled'),_0x7160f4['panelView']['children']['add'](_0x5f1d7d),_0x7160f4;}_initializeController(_0x3a20f4){const _0x275151=this['editor'],_0xa56ec6=_0x275151['config'],_0x5d6a0a=_0x275151['plugins']['get'](_0x5a11f9),_0x39941a=_0x275151['plugins']['get'](_0x625dc5),_0x3069fc=_0x275151['plugins']['get'](_0x515c91),_0x5ba29f=_0x275151['plugins']['get'](_0x5036c6)['me'],_0x28c881=_0xa56ec6['get']('trackChanges')['SuggestionThreadView'],_0x46db4d=_0xa56ec6['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x468f5f,CommentThreadInputView:_0x5e658d}=_0x275151['plugins']['get']('CommentsUI');let _0x4583bc,_0x45f8be,_0x244256;this['_annotationViews']['has'](_0x3a20f4['id'])?(_0x45f8be=this['_annotationViews']['get'](_0x3a20f4['id']),_0x4583bc=_0x45f8be['mainView']):(_0x4583bc=new _0x28c881(_0x275151['locale'],_0x3a20f4,_0x5ba29f,{'disableComments':this['_disableComments'],'editorConfig':{..._0xa56ec6['get']('comments.editorConfig'),'licenseKey':_0xa56ec6['get']('licenseKey')},'maxCommentsWhenCollapsed':_0xa56ec6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xa56ec6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xa56ec6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1f27f5(_0xa56ec6['get']('locale'),_0x275151['locale']),'CommentView':_0xa56ec6['get']('comments')['CommentView'],'CommentsListView':_0x468f5f,'CommentThreadInputView':_0x5e658d,'SuggestionView':_0x46db4d,'showAISource':_0xa56ec6['get']('trackChanges.showAISource')||null,'aiAuthor':{..._0xa56ec6['get']('trackChanges.aiAuthor'),'name':_0xa56ec6['get']('trackChanges.aiAuthor')?.['name']||Ot(_0x275151['locale'],'AI_AUTHOR_DEFAULT_NAME')}}),_0x4583bc['suggestionView']['acceptButton']['on']('execute',()=>{_0x275151['editing']['view']['focus']();}),_0x4583bc['suggestionView']['discardButton']['on']('execute',()=>{_0x275151['editing']['view']['focus']();}),_0x45f8be=_0x5d6a0a['createAnnotationView'](this['editor']['locale'],_0x4583bc),_0x45f8be['bind']('isDirty')['to'](_0x4583bc,'isDirty'),_0x45f8be['bind']('length')['to'](_0x4583bc),_0x45f8be['bind']('type')['to'](_0x4583bc,'type',_0x3cbea9=>'suggestion-'+_0x3cbea9),_0x4583bc['on']('escape',()=>{_0x244256['fire']('escape');}),this['_annotationViews']['set'](_0x3a20f4['id'],_0x45f8be));const _0x5248e2=_0x39941a['createCommentThreadController'](_0x3a20f4['commentThread'],_0x4583bc),_0x39077d=new bn(_0x275151,_0x3a20f4,_0x4583bc,_0x5248e2),_0x28cc09=_0x3a20f4['getAllAdjacentSuggestions']()['filter'](_0x34d17f=>_0x34d17f['isInContent']);_0x4583bc['descriptionParts']=_0x275151['plugins']['get'](on)['descriptionFactory']['getDescriptions'](_0x28cc09),this['_suggestionToController']['set'](_0x3a20f4,_0x39077d),this['_viewToController']['set'](_0x4583bc,_0x39077d);const _0x113774=()=>{const _0x569d44=[],_0x20272b=_0x3a20f4['getAllAdjacentSuggestions']()['filter'](_0x17ed7c=>_0x17ed7c['isInContent']);for(const _0x23a47c of _0x20272b)_0x569d44['push'](..._0x23a47c['getMarkers']());return _0x369c76(_0x275151['editing'],_0x569d44);};_0x244256=_0x5d6a0a['createAnnotation']({'view':_0x45f8be,'target':_0x113774,'type':()=>'suggestion-'+_0x39077d['view']['type'],'isVisible':!!_0x113774()}),_0x39941a['_bindAnnotationToEditors'](_0x4583bc,_0x244256),_0x5d6a0a['add'](_0x244256),_0x3069fc['registerAnnotation'](_0x244256);}_destroyController(_0x3ed5ab){const _0x4c96e2=this['editor']['plugins']['get'](_0x625dc5),_0x16b38f=this['editor']['plugins']['get'](_0x5a11f9),_0x2fe565=this['_suggestionToController']['get'](_0x3ed5ab),_0xc784aa=_0x2fe565['view'],_0x5ca6aa=_0x16b38f['getByInnerView'](_0xc784aa);_0x4c96e2['_unbindEditors'](_0xc784aa),_0x5ca6aa&&_0x16b38f['remove'](_0x5ca6aa),this['_suggestionToController']['delete'](_0x3ed5ab),this['_viewToController']['delete'](_0xc784aa),_0x2fe565['destroy']();}_updateController(_0xd7f85f){if(!_0xd7f85f['isInContent']||!this['_suggestionToController']['has'](_0xd7f85f))return;const _0x51cd7f=this['editor']['plugins']['get'](on),_0x41cb58=this['_suggestionToController']['get'](_0xd7f85f),_0xd3c94=_0xd7f85f['getAllAdjacentSuggestions']();_0x41cb58['view']['descriptionParts']=_0x51cd7f['descriptionFactory']['getDescriptions'](_0xd3c94);}destroy(){for(const _0x5b0610 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5b0610);for(const _0x5664a9 of this['_annotationViews']['values']())_0x5664a9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}};function Nn(_0x2c5bec){return'model'in _0x2c5bec;}var Sn=class extends _0x548d2a{static get requires(){return[on,yn,_0x28e9ec];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set adapter(_0x3cd48b){this['editor']['plugins']['get'](on)['adapter']=_0x3cd48b;}get adapter(){return this['editor']['plugins']['get'](on)['adapter'];}addSuggestion(_0xa6005){return this['editor']['plugins']['get'](on)['addSuggestionData'](_0xa6005);}getSuggestions({skipNotAttached:_0x355e96=!0x1,toJSON:_0x4a8a95=!0x1}={}){return this['editor']['plugins']['get'](on)['getSuggestions']({'skipNotAttached':_0x355e96,'toJSON':_0x4a8a95});}getSuggestion(_0x1e5e2c){return this['editor']['plugins']['get'](on)['getSuggestion'](_0x1e5e2c);}};const Mn=['Pagination'];var On=class extends _0x548d2a{static get requires(){return[on];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}init(){const _0x4ddd1b=this['editor'];if(_0x4ddd1b['config']['define']('trackChangesData.editorCreator',_0x5e99bc=>{const _0x4dd735=_0x4ddd1b['model']['document']['getRootNames']()['reduce']((_0x193197,_0x55ed35)=>(_0x193197[_0x55ed35]='',_0x193197),{});return _0x4ddd1b['constructor']['create'](_0x4dd735,_0x5e99bc);}),'function'!=typeof _0x4ddd1b['config']['get']('trackChangesData')['editorCreator'])throw new _0x4ce3e1('track-changes-data-invalid-editor-creator');}getDataWithAcceptedSuggestions(_0x14f7e7){return Bn(this['editor'],!0x0,_0x14f7e7);}getDataWithDiscardedSuggestions(_0x2d7dbe){return Bn(this['editor'],!0x1,_0x2d7dbe);}},wn=class extends _0x548d2a{result;static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28ba85){super(_0x28ba85),this['result']='end',_0x28ba85['editing']['view']['_overlayModeHint']='auto',_0x28ba85['_sendUsageRequest']=()=>window['Promise']['resolve']({'status':'ok'});}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 Fn(_0x5aa0fe){return void 0x0!==_0x5aa0fe['getRootsAttributes'];}async function Bn(_0x124d42,_0x177eb7,_0x57850e){const _0x4db4b2=_0x303fe4(_0x124d42,Mn);if(_0x4db4b2['plugins']['push'](on,wn),Fn(_0x124d42)){_0x4db4b2['roots']=Object['create'](null);for(const _0x5bafe0 of _0x124d42['model']['document']['getRootNames']())_0x4db4b2['roots'][_0x5bafe0]={'modelAttributes':_0x124d42['getRootAttributes'](_0x5bafe0)};}const _0x50ac82=document['createDocumentFragment'](),_0x5379f7=_0x124d42['config']['get']('trackChangesData')['editorCreator'],_0x58096b=await _0x5379f7(_0x4db4b2,()=>function(_0x4b2c14){const _0x14883c=document['createElement']('div');return _0x4b2c14['appendChild'](_0x14883c),_0x14883c;}(_0x50ac82));!function(_0x44fff3,_0x49047a){const _0x3049e2=_0x44fff3['model']['document']['getRootNames']()['reduce']((_0x16e750,_0x3dddd1)=>(_0x16e750[_0x3dddd1]=_0x44fff3['data']['get']({'rootName':_0x3dddd1}),_0x16e750),{}),_0x3b8f41=_0x44fff3['plugins']['get']('Users')['users']['map'](_0x130ee1=>({'id':_0x130ee1['id'],'name':_0x130ee1['name']})),_0x2b3cc8=_0x44fff3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x223625=_0x44fff3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x330598=_0x49047a['plugins']['get']('Users'),_0x13d5de=_0x49047a['plugins']['get']('TrackChangesEditing'),_0xe4285=_0x49047a['plugins']['get']('CommentsRepository');for(const _0x1313c3 of _0xe4285['getCommentThreads']())_0x1313c3['remove']();for(const _0x2ce7fe of _0x3b8f41)_0x330598['getUser'](_0x2ce7fe['id'])||_0x330598['addUser'](_0x2ce7fe);_0x330598['me']||_0x330598['useAnonymousUser']();for(const _0x3ecfee of _0x223625)_0xe4285['addCommentThread'](_0x3ecfee);for(const _0x162908 of _0x2b3cc8)_0x13d5de['addSuggestionData'](_0x162908);_0x49047a['data']['set'](_0x3049e2);}(_0x124d42,_0x58096b),_0x58096b['execute'](_0x177eb7?'acceptAllSuggestions':'discardAllSuggestions');const _0x4f34e2=Fn(_0x58096b)?_0x58096b['getFullData'](_0x57850e):_0x58096b['data']['get'](_0x57850e);return await _0x58096b['destroy'](),_0x4f34e2;}var vn=class extends _0x44d047{options;constructor(_0x3f1e07,_0xff0677){super(_0x3f1e07),this['options']=_0xff0677,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}setPreviewData(_0x2fdeaf,_0x56690d){if(!this['element'])return;const _0x418c17=[];for(const [_0x5234ee,_0x40d3a8]of _0x2fdeaf){const _0x4aa2c4=document['createElement']('div');_0x4aa2c4['setAttribute']('data-ck-root-name',_0x5234ee),_0x4aa2c4['className']=_0x40d3a8['classes']+'\x20ck-track-changes-preview__root-container',_0x4aa2c4['innerHTML']=_0x40d3a8['content'],_0x418c17['push'](_0x4aa2c4);}_0x56690d(this['element'],_0x418c17),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}},Dn=class extends _0x5a79ba{constructor(_0x4933c0){super(_0x4933c0),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}execute(){const _0x7a7457=this['editor'],_0x3c4a38=_0x7a7457['locale'],_0xe8d7c8=_0x7a7457['plugins']['get']('Dialog');let _0x8ea4e7;const _0x24b842=function(_0x7cdeef){const _0x35e336={};if('editables'in _0x7cdeef['ui']['view']){for(const [_0x4c72c2,_0x2687e8]of Object['entries'](_0x7cdeef['ui']['view']['editables']))_0x35e336[_0x4c72c2]=_0x2687e8['element'];}else _0x35e336[_0x7cdeef['model']['document']['getRootNames']()[0x0]]=_0x7cdeef['ui']['view']['editable']['element'];return _0x35e336;}(_0x7a7457),_0x1f9ba3=function(_0x4db1ad){let _0x13c578=0x0;for(const _0x50f1c6 of Object['values'](_0x4db1ad))_0x13c578=Math['max'](_0x13c578,_0x50f1c6['getBoundingClientRect']()['width']);let _0x135b10=0x0;for(const _0x297ced of Object['values'](_0x4db1ad))_0x135b10+=_0x297ced['getBoundingClientRect']()['height'];const _0x291efa=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']);return{'width':_0x13c578,'height':Math['min'](_0x135b10,_0x291efa)};}(_0x24b842);_0xe8d7c8['show']({'id':'finalContentPreview','title':Ot(_0x3c4a38,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new vn(_0x3c4a38,{'dialogRects':_0x1f9ba3}),'onHide':()=>{_0x8ea4e7['detachFromDom']();},'onShow':()=>{_0x7a7457['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x152bd9=>{const _0x1ff517=this['_standarizeRootsData'](_0x152bd9,_0x7a7457,_0x24b842);_0xe8d7c8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1ff517,_0x7a7457['config']['get']('trackChanges.preview.renderFunction'));}),_0x8ea4e7=new _0x1d1889(_0x3c4a38,[_0xe8d7c8['view']]),_0x8ea4e7['attachToDom'](),_0x8ea4e7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x7a7457['once']('destroy',()=>{_0x8ea4e7['detachFromDom']();});const _0x3de1e7=_0xe8d7c8['view']['headerView']['class'];_0xe8d7c8['view']['headerView']['class']=_0x3de1e7?_0x3de1e7+'\x20ck-reset_all':'ck-reset_all',_0xe8d7c8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0xe8d7c8['view']['updatePosition']();});}});}_getMergeFieldsData(){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4be89f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x387123=_0x4be89f['previewMode'],_0x5df8bb={};if('$labels'===_0x387123){for(const _0x189049 of _0x4be89f['getMergeFieldsIds']())_0x5df8bb[_0x189049]=_0x4be89f['getLabel'](_0x189049)||_0x189049;}else{const _0x4f3a96='$defaultValues'===_0x387123?_0x4be89f['getDefaultValues']():_0x4be89f['getDataSetValues'](_0x387123,!0x0);for(const _0x1a8e79 of Object['entries'](_0x4f3a96)){const [_0x3bcb3d,_0x1c2c30]=_0x1a8e79;_0x5df8bb[_0x3bcb3d]=null!==_0x1c2c30?_0x1c2c30:_0x4be89f['getLabel'](_0x3bcb3d)||_0x3bcb3d;}}return{'mergeFieldsData':_0x5df8bb};}_standarizeRootsData(_0x41f16d,_0x240abd,_0xcca0f4){let _0x5d41d3;_0x5d41d3='string'==typeof _0x41f16d?{[_0x240abd['model']['document']['getRootNames']()[0x0]]:_0x41f16d}:_0x41f16d;const _0x1beca7=this['_fixMediaEmbeds'](_0x5d41d3,_0x240abd);return function(_0x37d418,_0x197767){for(const [_0x4f4c5b,_0x2ad5af]of _0x37d418)_0x2ad5af['classes']=_0x197767[_0x4f4c5b]['classList']['value']['replace']('ck-focused','');return _0x37d418;}(this['_sortRoots'](_0x240abd)['reduce']((_0x4c231c,_0x1d214c)=>(_0x4c231c['push']([_0x1d214c,{'content':_0x1beca7[_0x1d214c],'classes':''}]),_0x4c231c),[]),_0xcca0f4);}['_fixMediaEmbeds'](_0x1a9359,_0x31834e){if(!_0x31834e['plugins']['has']('MediaEmbedEditing'))return _0x1a9359;const _0x20b3a3=_0x31834e['plugins']['get']('MediaEmbedEditing');for(const [_0x228c51,_0x25145a]of Object['entries'](_0x1a9359)){const _0x3323c4=document['createElement']('div');_0x3323c4['innerHTML']=_0x25145a,_0x3323c4['querySelectorAll']('figure.media')['forEach'](_0x1dbee8=>{const _0x505c9d=_0x1dbee8['querySelector']('oembed');if(_0x505c9d){const _0x7a7261=_0x505c9d['getAttribute']('url');if(_0x7a7261){const _0x564fbf=_0x20b3a3['registry']['getMediaViewElement'](new at(_0x31834e['editing']['view']['document']),_0x7a7261,{'elementName':'','renderForEditingView':!0x0}),_0x296940=document['createElement']('div');_0x296940['classList']['add']('ck-media__wrapper'),_0x564fbf['render'](_0x296940,_0x31834e['editing']['view']['domConverter']),_0x505c9d['replaceWith'](_0x296940);}}}),_0x1a9359[_0x228c51]=_0x3323c4['innerHTML'];}return _0x1a9359;}_sortRoots(_0x4aaf5b){if(!function(_0x8f2e18){return void 0x0!==_0x8f2e18['getRootsAttributes'];}(_0x4aaf5b))return _0x4aaf5b['model']['document']['getRootNames']();const _0x29a615=[],_0x5ca53c=new Map();for(const _0x4ae2bd of _0x4aaf5b['model']['document']['getRootNames']()){const _0x2cfcec=_0x4aaf5b['editing']['view']['getDomRoot'](_0x4ae2bd)['getClientRects']()['item'](0x0);_0x29a615['push'](_0x4ae2bd),_0x5ca53c['set'](_0x4ae2bd,_0x2cfcec);}return _0x29a615['sort']((_0x34b4ef,_0x8080d9)=>{const _0x5df413=_0x5ca53c['get'](_0x34b4ef),_0x2c2f97=_0x5ca53c['get'](_0x8080d9);return _0x5df413['y']-_0x2c2f97['y']||_0x5df413['x']-_0x2c2f97['x'];}),_0x29a615;}},Un=class extends _0x548d2a{static get requires(){return[On,_0x4ccace];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x185a0b){super(_0x185a0b),_0x185a0b['commands']['add']('previewFinalContent',new Dn(this['editor'])),_0x185a0b['config']['define']('trackChanges.preview.renderFunction',(_0x278be6,_0x3ff307)=>{for(const _0x30584e of _0x3ff307)_0x278be6['appendChild'](_0x30584e);});}};export{pt as AcceptSuggestionCommand,Cn as BaseSuggestionThreadView,Lt as DiscardSuggestionCommand,yt as ExecuteOnAllSuggestionsCommand,Nt as ExecuteOnSelectedSuggestionsCommand,Dn as PreviewFinalContentCommand,Mt as Suggestion,wt as SuggestionDescriptionFactory,kn as SuggestionThreadView,Rn as SuggestionView,Sn as TrackChanges,_t as TrackChangesCommand,On as TrackChangesData,wn as TrackChangesDataGetter,on as TrackChangesEditing,Un as TrackChangesPreview,yn as TrackChangesUI};