@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250212.0 → 0.0.0-nightly-next-20250213.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 (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +11 -11
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x2ec70d,uid as _0x4cbb6f,Collection as _0x275f31,logWarning as _0x871cff,FocusTracker as _0x535e49,KeystrokeHandler as _0x4726ee,scrollViewportToShowTarget as _0x2cb575,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x15aa9e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x153ae3,set as _0x3dbbdc,unset as _0x263cf2,isEqual as _0x1f43db}from'es-toolkit/compat';import{Plugin as _0x4c6b5c,PendingActions as _0x35ac34,Command as _0x564c0e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4e0150,getMarkerDomElement as _0x410503,ConfirmMixin as _0x4a399b,sanitizeEditorConfig as _0xd6b65a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x493bbf,Element as ut,Range as ft,ViewUIElement as _0x3ef975,ViewRawElement as _0x25d51a,ViewEmptyElement as _0x2d74c2,ViewAttributeElement as _0x5b3914,ViewContainerElement as _0x31649a,Position as vt,ViewText as _0x6510ab,ViewElement as _0x5e7ab2,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x173409,IconChevronUp as _0x332277,IconChevronDown as _0x398500,IconUndo as _0x22d401,IconUser as _0x34f191,IconThreeVerticalDots as _0x24ca2f}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x1e62c1,injectCssTransitionDisabler as ts,submitHandler as _0x4501f0,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x38955c,ListView as _0x5e932b,ListItemView as te,ButtonView as _0x5027d7,MenuBarMenuView as _0x112858,MenuBarMenuListView as _0x4f405c,MenuBarMenuListItemView as _0xe409f2,MenuBarMenuListItemButtonView as _0x5ce175,ContextualBalloon as _0x13013a,ToolbarSeparatorView as _0x4dd191,IconView as _0x59bb20,addListToDropdown as _0x44e831,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4663c8}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x2ec70d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x502bee){super(),this['id']=_0x502bee['id']||_0x4cbb6f(),this['creator']=_0x502bee['creator']||null,this['authors']=_0x502bee['authors']||[],this['diffData']=_0x502bee['diffData']||null,this['toVersion']=_0x502bee['toVersion']||0x0,this['fromVersion']=_0x502bee['fromVersion']||0x0,this['set']('name',_0x502bee['name']||''),this['set']('createdAt',_0x502bee['createdAt']||new Date()),this['set']('attributes',_0x502bee['attributes']||{});}['setName'](_0x587aeb){this['_update']({'name':_0x587aeb});}['setAttribute'](_0x518663,_0x5c9a07){const _0x16bd6b=_0x153ae3(this['attributes']);_0x3dbbdc(_0x16bd6b,_0x518663,_0x5c9a07),this['_update']({'attributes':_0x16bd6b});}['removeAttribute'](_0x2f7710){const _0x4b65d9=_0x153ae3(this['attributes']);_0x263cf2(_0x4b65d9,_0x2f7710),this['_update']({'attributes':_0x4b65d9});}['_update'](_0x55dd40,_0x3903d4=!0x1){let _0xf266e6=!0x1;const _0x57bca8={'id':this['id']},_0x4e804b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3eb9b8 of _0x4e804b){const _0x279763=_0x55dd40[_0x3eb9b8];void 0x0!==_0x279763&&_0x279763!==this[_0x3eb9b8]&&(this[_0x3eb9b8]=_0x279763,_0x57bca8[_0x3eb9b8]=_0x279763,_0xf266e6=!0x0);}_0xf266e6&&(_0x57bca8['authors']&&(_0x57bca8['authorsIds']=_0x57bca8['authors']['map'](_0x468d5d=>_0x468d5d['id']),delete _0x57bca8['authors']),this['fire']('_update',_0x57bca8,_0x3903d4));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x36ffca=>_0x36ffca['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4c6b5c{['_revisions'];static get['requires'](){return[_0x4e0150];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3d7256){super(_0x3d7256),this['_revisions']=new _0x275f31();}['afterInit'](){!async function(_0x48fd7c){const _0x9cb7c5=_0x3e4368([0x37,0x68,0x32,0x78,0x72,0x54,0x35,0x75,0x6a,0x59,0x49,0x6e,0x47,0x36,0x61,0x69,0x65,0x38,0x70,0x62,0x6b,0x44,0x4d,0x6c,0x50,0x57,0x71,0x4a,0x39,0x48,0x53,0x4c,0x41,0x30,0x66,0x43,0x6f,0x76,0x31,0x56,0x73,0x63,0x4b,0x45,0x7a,0x55,0x64,0x33,0x74,0x5a,0x4e,0x77,0x46,0x51,0x67,0x4f,0x79,0x6d,0x52,0x42,0x58,0x34]),_0x2d9a85=0xeb829,_0x2ed021=0x5c970594,_0x5c343b=0x5c905adc^_0x2ed021,_0x4ba49e=window[_0x3e4368([0x44,0x61,0x74,0x65])][_0x3e4368([0x6e,0x6f,0x77])](),_0x36e247=_0x48fd7c[_0x3e4368([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x394cde=new window[(_0x3e4368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x128c45=>{_0x36e247[_0x3e4368([0x6f,0x6e,0x63,0x65])](_0x3e4368([0x72,0x65,0x61,0x64,0x79]),_0x128c45);}),_0x138a89={[_0x3e4368([0x6b,0x74,0x79])]:_0x3e4368([0x45,0x43]),[_0x3e4368([0x75,0x73,0x65])]:_0x3e4368([0x73,0x69,0x67]),[_0x3e4368([0x63,0x72,0x76])]:_0x3e4368([0x50,0x2d,0x32,0x35,0x36]),[_0x3e4368([0x78])]:_0x3e4368([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x3e4368([0x79])]:_0x3e4368([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x3e4368([0x61,0x6c,0x67])]:_0x3e4368([0x45,0x53,0x32,0x35,0x36])},_0x412b34=_0x36e247[_0x3e4368([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3e4368([0x67,0x65,0x74])](_0x3e4368([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48b545(){let _0x48eb01,_0x2d3a92=null,_0x481812=null;try{if(_0x412b34==_0x3e4368([0x47,0x50,0x4c]))return _0x3e4368([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48eb01=_0x347f6a(),!_0x48eb01)return _0x3e4368([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48eb01[_0x3e4368([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x481812=_0x30349c(_0x48eb01[_0x3e4368([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48eb01[_0x3e4368([0x6a,0x74,0x69])])),await _0xe224a5()?_0x4fc17b()?_0x2578cf()?_0x3e4368([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12b047()?(_0x48eb01[_0x3e4368([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e4368([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2d3a92=_0x59e37a(_0x3e4368([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48eb01[_0x3e4368([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3e4368([0x74,0x72,0x69,0x61,0x6c])&&(_0x2d3a92=_0x59e37a(_0x3e4368([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2cfe75()):_0x3e4368([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3e4368([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3e4368([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x477971){return _0x3e4368([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2578cf(){const _0xa4ed91=[_0x3e4368([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3e4368([0x74,0x72,0x69,0x61,0x6c])][_0x3e4368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48eb01[_0x3e4368([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ba49e/0x3e8:0xe10*_0x5c343b;return _0x48eb01[_0x3e4368([0x65,0x78,0x70])]<_0xa4ed91;}function _0x4fc17b(){const _0x265acc=_0x48eb01[_0x3e4368([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x265acc)return!0x1;if(_0x265acc[_0x3e4368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4368([0x2a])))return!0x0;if(_0x265acc[_0x3e4368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4368([0x52,0x48])))return!0x0;if(_0x265acc[_0x3e4368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4368([0x52,0x52,0x48]))){if(_0x2081fc())return!0x0;if(_0x589f7d()||_0x45c9da())return!0x0;}return!0x1;}function _0x12b047(){const _0x5f56c7=_0x48eb01[_0x3e4368([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5f56c7||0x0==_0x5f56c7[_0x3e4368([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5dc41a}=new URL(window[_0x3e4368([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5f56c7[_0x3e4368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5dc41a))return!0x0;const _0x379111=_0x5dc41a[_0x3e4368([0x73,0x70,0x6c,0x69,0x74])](_0x3e4368([0x2e]));return _0x5f56c7[_0x3e4368([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27b4d7=>_0x27b4d7[_0x3e4368([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e4368([0x2a])))[_0x3e4368([0x6d,0x61,0x70])](_0x309101=>_0x309101[_0x3e4368([0x73,0x70,0x6c,0x69,0x74])](_0x3e4368([0x2e])))[_0x3e4368([0x73,0x6f,0x6d,0x65])](_0x3ef9f0=>_0x379111[_0x3e4368([0x65,0x76,0x65,0x72,0x79])]((_0x1790e0,_0xc7f914)=>_0x3ef9f0[_0xc7f914]===_0x1790e0||_0x3ef9f0[_0xc7f914]===_0x3e4368([0x2a])));}function _0x2cfe75(){return _0x2d3a92&&_0x481812?new window[(_0x3e4368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x15809c,_0x5a4a16)=>{_0x2d3a92[_0x3e4368([0x74,0x68,0x65,0x6e])](_0x15809c,_0x5a4a16),_0x481812[_0x3e4368([0x74,0x68,0x65,0x6e])](_0xa7b207=>{_0xa7b207!=_0x3e4368([0x56,0x61,0x6c,0x69,0x64])&&_0x15809c(_0xa7b207);},_0x5a4a16);}):_0x2d3a92||_0x481812||_0x3e4368([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30349c(_0x4b35fa,_0x22d0cf){return new window[(_0x3e4368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40bd62=>{if(_0x3fbcc4())return _0x40bd62(_0x3e4368([0x56,0x61,0x6c,0x69,0x64]));_0x237c91(),_0x36e247[_0x3e4368([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3e4368([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27c9d2=!0x1;const _0x56db34=_0x4cbb6f();function _0x43145b(_0x4cb13a){return!!_0x4cb13a&&(typeof _0x4cb13a===_0x3e4368([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4cb13a===_0x3e4368([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4cb13a[_0x3e4368([0x74,0x68,0x65,0x6e])]===_0x3e4368([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4cb13a[_0x3e4368([0x63,0x61,0x74,0x63,0x68])]===_0x3e4368([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57b872(_0x6b50da){_0x29898c(_0x6b50da)[_0x3e4368([0x74,0x68,0x65,0x6e])](_0x1f7b0d=>{if(!_0x1f7b0d||_0x1f7b0d[_0x3e4368([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3e4368([0x6f,0x6b]))return _0x3e4368([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xea3125(_0x50ac1b(_0x56db34+_0x22d0cf))!=_0x1f7b0d[_0x3e4368([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3e4368([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3e4368([0x56,0x61,0x6c,0x69,0x64]);})[_0x3e4368([0x74,0x68,0x65,0x6e])](_0x84bda9=>(_0x56a0e0(),_0x84bda9),()=>{const _0x424660=_0x4eafa7();return null==_0x424660?(_0x56a0e0(),_0x3e4368([0x56,0x61,0x6c,0x69,0x64])):_0x3e4368(_0x4ba49e-_0x424660>(0x789b8194^_0x2ed021)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3e4368([0x74,0x68,0x65,0x6e])](_0x40bd62)[_0x3e4368([0x63,0x61,0x74,0x63,0x68])](()=>{_0x40bd62(_0x3e4368([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x139480=0x5ca1eb14^_0x2ed021;function _0x56a0e0(){const _0x4a897c=_0x3e4368([0x6c,0x6c,0x63,0x74,0x2d])+_0xea3125(_0x50ac1b(_0x4b35fa)),_0x524cbf=_0x469549(_0xea3125(window[_0x3e4368([0x4d,0x61,0x74,0x68])][_0x3e4368([0x63,0x65,0x69,0x6c])](_0x4ba49e/_0x139480)));window[_0x3e4368([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e4368([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a897c,_0x524cbf);}function _0x4eafa7(){const _0x3fddec=_0x3e4368([0x6c,0x6c,0x63,0x74,0x2d])+_0xea3125(_0x50ac1b(_0x4b35fa)),_0x41d0b0=window[_0x3e4368([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3e4368([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fddec);return _0x41d0b0?window[_0x3e4368([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x469549(_0x41d0b0),0x10)*_0x139480:null;}function _0x29898c(_0x5c8ab1){return new window[(_0x3e4368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x321713,_0x1538d8)=>{_0x5c8ab1[_0x3e4368([0x74,0x68,0x65,0x6e])](_0x321713,_0x1538d8),window[_0x3e4368([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1538d8,0x5c96d154^_0x2ed021);});}}_0x36e247[_0x3e4368([0x6f,0x6e])](_0x3e4368([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4be1de,_0x56d4e6)=>{if(_0x56d4e6[0x0]!=_0x4b35fa)return _0x40bd62(_0x3e4368([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x56d4e6[0x1]={..._0x56d4e6[0x1],[_0x3e4368([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x56db34};},{[_0x3e4368([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e4368([0x68,0x69,0x67,0x68])}),_0x36e247[_0x3e4368([0x6f,0x6e])](_0x3e4368([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x47cb5f=>{_0x43145b(_0x47cb5f[_0x3e4368([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27c9d2=!0x0,_0x57b872(_0x47cb5f[_0x3e4368([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3e4368([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3e4368([0x6c,0x6f,0x77])}),_0x394cde[_0x3e4368([0x74,0x68,0x65,0x6e])](()=>{_0x27c9d2||_0x40bd62(_0x3e4368([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fbcc4(){return _0x36e247[_0x3e4368([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e4368([0x76,0x69,0x65,0x77])][_0x3e4368([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3e4368([0x61,0x75,0x74,0x6f]);}function _0x237c91(){_0x36e247[_0x3e4368([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3e4368([0x76,0x69,0x65,0x77])][_0x3e4368([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3e4368([0x61,0x75,0x74,0x6f]);}}function _0x59e37a(_0x491d9d){const _0xf9c184=[new window[(_0x3e4368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1da961=>setTimeout(_0x1da961,0x5c9e3b58^_0x2ed021)),_0x394cde[_0x3e4368([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3e4368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12c375=>{const _0x4f76dc=0x5c970593^_0x2ed021,_0x5915ae=_0x48fd7c[_0x3e4368([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x21b94d(){_0x5915ae[_0x3e4368([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4f76dc&&_0x12c375();}_0x21b94d(),_0x5915ae[_0x3e4368([0x6f,0x6e])](_0x3e4368([0x61,0x64,0x64]),_0x21b94d);})),new window[(_0x3e4368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29702f=>{function _0x489f4f(){for(const _0x506c7f in window)if(window[_0x3e4368([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3e4368([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x506c7f))&&window[_0x506c7f]==_0x2d9a85)return _0x29702f();_0x36e247[_0x3e4368([0x73,0x74,0x61,0x74,0x65])]!=_0x3e4368([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3e4368([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x489f4f,0x5c97161c^_0x2ed021);}_0xcc765a(_0x3e4368([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x489f4f();})];return window[_0x3e4368([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3e4368([0x72,0x61,0x63,0x65])](_0xf9c184)[_0x3e4368([0x74,0x68,0x65,0x6e])](()=>_0x491d9d);}async function _0x417bb0(){if(await _0x394cde,_0xcc765a(_0x3e4368([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5487d8=_0x48fd7c[_0x3e4368([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x594382=_0x48fd7c[_0x3e4368([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x5487d8[_0x3e4368([0x69,0x64])]),_0x522d72=_0x879342(_0x3e4368([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x522d72[_0x3e4368([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5487d8['id'],_0x594382?_0x594382['id']:null,!0x0),_0x522d72[_0x3e4368([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3e4368([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x522d72[_0x3e4368([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x522d72[_0x3e4368([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x225845,void(_0x522d72[_0x3e4368([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x225845);}if(_0xcc765a(_0x3e4368([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4fa419=_0x879342(_0x3e4368([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4fa419[_0x3e4368([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3e4368([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4fa419[_0x3e4368([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4fa419[_0x3e4368([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x225845,_0x4fa419[_0x3e4368([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x225845;}_0x36e247[_0x3e4368([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e4368([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x225845,_0x36e247[_0x3e4368([0x6d,0x6f,0x64,0x65,0x6c])][_0x3e4368([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x225845,_0x36e247[_0x3e4368([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3e4368([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2081fc(){return _0xcc765a(_0x3e4368([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x879342(_0x3e4368([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3e4368([0x73,0x74,0x61,0x74,0x65])]==_0x3e4368([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x589f7d(){return _0xcc765a(_0x3e4368([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x45c9da(){return _0xcc765a(_0x3e4368([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xe51156(_0x5d0050){const _0x125346=_0x23abe7();_0x36e247[_0x125346]=_0x3e4368([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d0050,_0x5d0050[_0x3e4368([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3e4368([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x23abe7()]=_0x2d9a85),_0x5d0050!=_0x3e4368([0x56,0x61,0x6c,0x69,0x64])&&_0x417bb0();}function _0x23abe7(){const _0x2de763=window[_0x3e4368([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3e4368([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3e4368([0x6e,0x6f,0x77])]())[_0x3e4368([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3e4368([0x2e]),'');let _0x5d77fb=_0x3e4368([0x68]);for(let _0xd6fab1=0x0;_0xd6fab1<_0x2de763[_0x3e4368([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd6fab1+=0x2){let _0x1b3894=window[_0x3e4368([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2de763[_0x3e4368([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd6fab1,_0xd6fab1+0x2));_0x1b3894>=_0x9cb7c5[_0x3e4368([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b3894-=_0x9cb7c5[_0x3e4368([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d77fb+=_0x9cb7c5[_0x1b3894];}return _0x5d77fb;}function _0x347f6a(){const _0x349954=_0x412b34[_0x3e4368([0x73,0x70,0x6c,0x69,0x74])](_0x3e4368([0x2e]));if(0x3!=_0x349954[_0x3e4368([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58500e(_0x349954[0x1]);function _0x58500e(_0x494c16){const _0x542128=_0x3b7697(_0x494c16);return _0x542128&&_0x4a6d86()?_0x542128:null;function _0x4a6d86(){const _0x3a01a2=_0x542128[_0x3e4368([0x6a,0x74,0x69])],_0x394919=window[_0x3e4368([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a01a2[_0x3e4368([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a01a2[_0x3e4368([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe09448={..._0x542128,[_0x3e4368([0x6a,0x74,0x69])]:_0x3a01a2[_0x3e4368([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3a01a2[_0x3e4368([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe09448[_0x3e4368([0x76,0x63])],_0x50ac1b(_0xe09448)==_0x394919;}}}async function _0xe224a5(){let _0x36e462=!0x0;try{const _0x2eb8ba=_0x412b34[_0x3e4368([0x73,0x70,0x6c,0x69,0x74])](_0x3e4368([0x2e])),[_0x5afceb,_0x23ed70,_0x27cdbd]=_0x2eb8ba;return _0x2d7b0d(_0x5afceb),await _0x3d54f0(_0x5afceb,_0x23ed70,_0x27cdbd),_0x36e462;}catch(_0x285a1b){return!0x1;}function _0x2d7b0d(_0x769e4e){const _0x5da70f=_0x3b7697(_0x769e4e);_0x5da70f&&_0x5da70f[_0x3e4368([0x61,0x6c,0x67])]==_0x3e4368([0x45,0x53,0x32,0x35,0x36])||(_0x36e462=!0x1);}async function _0x3d54f0(_0x2c0bc6,_0x3b12f7,_0x3c79c3){const _0x287218=window[_0x3e4368([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3e4368([0x66,0x72,0x6f,0x6d])](_0x59d47c(_0x3c79c3),_0x1e64cc=>_0x1e64cc[_0x3e4368([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x17270c=new window[(_0x3e4368([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3e4368([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2c0bc6+_0x3e4368([0x2e])+_0x3b12f7),_0xe9681b=window[_0x3e4368([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3e4368([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe9681b)return;const _0x2e7f91=await _0xe9681b[_0x3e4368([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3e4368([0x6a,0x77,0x6b]),_0x138a89,{[_0x3e4368([0x6e,0x61,0x6d,0x65])]:_0x3e4368([0x45,0x43,0x44,0x53,0x41]),[_0x3e4368([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3e4368([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3e4368([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe9681b[_0x3e4368([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3e4368([0x6e,0x61,0x6d,0x65])]:_0x3e4368([0x45,0x43,0x44,0x53,0x41]),[_0x3e4368([0x68,0x61,0x73,0x68])]:{[_0x3e4368([0x6e,0x61,0x6d,0x65])]:_0x3e4368([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2e7f91,_0x287218,_0x17270c)||(_0x36e462=!0x1);}}function _0x3b7697(_0x4918e0){return _0x4918e0[_0x3e4368([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3e4368([0x65,0x79]))?JSON[_0x3e4368([0x70,0x61,0x72,0x73,0x65])](_0x59d47c(_0x4918e0)):null;}function _0x59d47c(_0x51c415){return window[_0x3e4368([0x61,0x74,0x6f,0x62])](_0x51c415[_0x3e4368([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3e4368([0x2b]))[_0x3e4368([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3e4368([0x2f])));}function _0x50ac1b(_0x3be835){let _0x57674f=0x1505;function _0x997094(_0x5771cf){for(let _0x3bb117=0x0;_0x3bb117<_0x5771cf[_0x3e4368([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3bb117++){const _0x144608=_0x5771cf[_0x3e4368([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3bb117);_0x57674f=(_0x57674f<<0x5)+_0x57674f+_0x144608,_0x57674f&=_0x57674f;}}function _0x135652(_0xa78dda){Array[_0x3e4368([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xa78dda)?_0xa78dda[_0x3e4368([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x135652):_0xa78dda&&typeof _0xa78dda==_0x3e4368([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3e4368([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xa78dda)[_0x3e4368([0x73,0x6f,0x72,0x74])]()[_0x3e4368([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc8806b,_0x497062])=>{_0x997094(_0xc8806b),_0x135652(_0x497062);}):_0x997094(window[_0x3e4368([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xa78dda));}return _0x135652(_0x3be835),_0x57674f>>>0x0;}function _0xea3125(_0x38217b){return _0x38217b[_0x3e4368([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3e4368([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3e4368([0x30]));}function _0x469549(_0x23a1f3){return _0x23a1f3[_0x3e4368([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3e4368([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3e4368([0x6a,0x6f,0x69,0x6e])]('');}function _0xcc765a(_0x403834){return _0x36e247[_0x3e4368([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e4368([0x68,0x61,0x73])](_0x403834);}function _0x879342(_0x54bf65){return _0x36e247[_0x3e4368([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3e4368([0x67,0x65,0x74])](_0x54bf65);}function _0x225845(){}function _0x3e4368(_0x16083b){return _0x16083b['map'](_0x503b60=>String['fromCharCode'](_0x503b60))['join']('');}_0xe51156(await _0x48b545());}(this);}['createRevision'](_0x18a6b1){const _0x46929c=this['editor']['plugins']['get']('Users');return new h({'id':_0x18a6b1['id'],'name':_0x18a6b1['name'],'creator':_0x18a6b1['creatorId']?_0x46929c['getUser'](_0x18a6b1['creatorId']):null,'diffData':_0x18a6b1['diffData']||_0x18a6b1['data'],'authors':_0x18a6b1['authorsIds']['map'](_0x1fb2f9=>_0x46929c['getUser'](_0x1fb2f9)),'createdAt':new Date(_0x18a6b1['createdAt']),'attributes':_0x18a6b1['attributes'],'fromVersion':_0x18a6b1['fromVersion'],'toVersion':_0x18a6b1['toVersion']});}['addRevision'](_0x5e4094,_0x3d79e9=0x0){this['_revisions']['add'](_0x5e4094,_0x3d79e9);}['getRevision'](_0x4ac8a6){return this['_revisions']['get'](_0x4ac8a6);}['getRevisions'](_0xa6f83a={'toJSON':!0x1}){const _0xfe2d79=Array['from'](this['_revisions']);return _0xfe2d79['reverse'](),_0xa6f83a['toJSON']?_0xfe2d79['map'](_0x4f0a82=>_0x4f0a82['toJSON']()):_0xfe2d79;}['getIndex'](_0x509c3b){return this['_revisions']['getIndex'](_0x509c3b);}['getEarlierVisibleRevision'](_0x40a42b){const [,_0x5978fe]=this['getRevisionsIterator'](_0x40a42b,{'direction':'earlier'});return _0x5978fe;}['getLaterVisibleRevision'](_0xf38e59){const [,_0x1c1b4b]=this['getRevisionsIterator'](_0xf38e59,{'direction':'later'});return _0x1c1b4b;}['getRevisionsInDiff'](_0x407cbb){const _0x289be8=[];for(const _0x3842df of this['getRevisionsIterator'](_0x407cbb['newRevisionId']))if(_0x289be8['push'](_0x3842df),_0x3842df['id']===_0x407cbb['oldRevisionId'])break;return _0x289be8;}*['getRevisionsIterator'](_0x55eb0b,{direction:_0x4eb20c='earlier',filter:_0xa44f83=()=>!0x0}={}){const _0x5bef70='earlier'===_0x4eb20c?0x1:-0x1;let _0x5f0573=this['_revisions']['get'](_0x55eb0b),_0xfd2b12=this['getIndex'](_0x5f0573);for(yield _0x5f0573;_0x5f0573;){if(_0xfd2b12+=_0x5bef70,_0x5f0573=this['getRevision'](_0xfd2b12),!_0x5f0573)return;_0xa44f83(_0x5f0573)&&(yield _0x5f0573);}}}function m(_0x1f67f3,_0x45448f,_0x64ced1){const t=_0x1f67f3['t'];switch(_0x45448f){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x64ced1);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x64ced1);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x31649a,'a':_0x5b3914,'e':_0x2d74c2,'r':_0x25d51a,'u':_0x3ef975};class u extends _0x4c6b5c{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4e0150,j,_0x35ac34];}constructor(_0x579e2a){super(_0x579e2a),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x924f7=_0x4cbb6f();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x924f7},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5f1e56=this['repository']['getRevision'](0x0),_0x5dfcec=_0x5f1e56&&null===_0x5f1e56['creator']?_0x5f1e56:null;if(this['_continueCurrentRevision']=!!_0x5dfcec&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x53c631=this['_source']['getCurrentRevisionId'](),_0x48dd74=this['repository']['getRevision'](_0x53c631);if(_0x48dd74)this['_startingVersion']=_0x48dd74['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4710f2=this['_source']['history']['_operations']['find'](_0x319bc0=>!_0x319bc0['_isInit']),_0x41da01=_0x4710f2?_0x4710f2['baseVersion']:this['_source']['history']['version'];_0x5f1e56?(_0x5f1e56['toVersion']<_0x41da01&&_0x5f1e56['_update']({'toVersion':_0x41da01}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5dfcec['id'],this['_startingVersion']=_0x5dfcec['fromVersion']):(this['_startingVersion']=_0x5f1e56['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x41da01,this['_continueCurrentRevision']=!0x1);}}else _0x5dfcec&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5dfcec['toVersion'],this['editor']['model']['document']['history']['version']),_0x5dfcec['fromVersion']===_0x5dfcec['toVersion']?(0x0!==_0x5dfcec['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5dfcec['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5dfcec['id'],this['_startingVersion']=_0x5dfcec['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x1c0341=>!_0x1c0341),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1aa0be=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4fdf2d;for(const _0x2d1fe5 in _0x1aa0be){const _0x5a2700=_0x2d1fe5,_0x24aac1=_0x1aa0be[_0x5a2700];if('revisionHistoryLicenseKeyValid'==_0x24aac1||'revisionHistoryLicenseKeyInvalid'==_0x24aac1||'revisionHistoryLicenseKeyExpired'==_0x24aac1||'revisionHistoryLicenseKeyDomainLimit'==_0x24aac1||'revisionHistoryLicenseKeyNotAllowed'==_0x24aac1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x24aac1||'revisionHistoryLicenseKeyTrialLimit'==_0x24aac1||'revisionHistoryLicenseKeyUsageLimit'==_0x24aac1){delete _0x1aa0be[_0x5a2700],_0x4fdf2d=_0x24aac1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4fdf2d&&_0x1aa0be['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4fdf2d&&_0x1aa0be['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4fdf2d&&_0x1aa0be['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4fdf2d&&_0x1aa0be['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4fdf2d&&_0x1aa0be['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4fdf2d&&_0x1aa0be['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4fdf2d&&_0x1aa0be['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x338245=this['repository']['getRevision'](0x0),_0x22a20a=await this['getRevisionDocumentData'](_0x338245),_0x28897b=await this['getRevisionRootsAttributes'](_0x338245);this['_replaceEditorDataWithRevisionData'](_0x22a20a,_0x28897b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x365ee3){this['_source']=_0x365ee3;}async['update'](){const _0x2d7174=await this['_source']['getLatestVersion']();if(_0x2d7174>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3bb2c9=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2d7174});_0x3bb2c9['authors']=_0x3bb2c9['authorsIds']['map'](_0x275685=>this['editor']['plugins']['get']('Users')['getUser'](_0x275685)),this['currentRevision']['_update'](_0x3bb2c9);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x477fa6={},_0x20eb2a=null){const _0x4633eb=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x20eb2a>this['currentRevision']['toVersion']&&(_0x20eb2a=null),null===_0x20eb2a&&(_0x20eb2a=await this['_source']['getLatestVersion']());const _0x3e24b4=this['_getFromVersion'](_0x20eb2a),_0x2972a1=this['buildRevisionData']({'from':_0x3e24b4,'to':_0x20eb2a});if(this['currentRevision']['toVersion']<_0x20eb2a){const _0x364a4f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x20eb2a,'to':_0x20eb2a});_0x364a4f['authors']=[],_0x364a4f['authorsIds']=[],_0x364a4f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x364a4f,!0x0),delete _0x364a4f['authors'],_0x4633eb['push'](_0x364a4f);}_0x477fa6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x477fa6['name']=_0x477fa6['name']||null,_0x477fa6['id']=_0x477fa6['id']||_0x4cbb6f(),_0x477fa6={..._0x477fa6,..._0x2972a1};const _0xb9536d=this['addRevisionData'](_0x477fa6);_0x4633eb['push'](_0x477fa6);const _0xcbe5ed=this['repository']['getIndex'](_0xb9536d);if(0x0!==_0xcbe5ed){const _0x85e00c=this['repository']['getRevision'](_0xcbe5ed-0x1);if(_0x85e00c['fromVersion']!==_0x20eb2a){const _0x84b0db=this['_revisionDataBuilder']['getData'](_0x20eb2a,_0x85e00c['toVersion']),_0x22725b={'id':_0x85e00c['id'],'diffData':_0x84b0db['diffData'],'authorsIds':_0x84b0db['authorsIds'],'authors':_0x84b0db['authorsIds']['map'](_0x4323aa=>this['editor']['plugins']['get']('Users')['getUser'](_0x4323aa)),'fromVersion':_0x20eb2a};_0x85e00c===this['currentRevision']&&(_0x22725b['createdAt']=new Date(_0x477fa6['createdAt']['getTime']()+0xa)),_0x85e00c['_update'](_0x22725b,!0x0),delete _0x22725b['authors'],_0x4633eb['push'](_0x22725b);}}if(this['adapter']){for(const _0x508ca1 of _0x4633eb)this['_bufferUpdate'](_0x508ca1['id'],_0x508ca1,!0x0);this['sendBufferedUpdates']();}return _0xb9536d;}['addRevisionData'](_0x59dc3c){const _0x4ca68d=this['repository']['createRevision'](_0x59dc3c);return this['adapter']&&_0x4ca68d['on']('_update',(_0x235e63,_0x3dcd79,_0x2d6dc1)=>{_0x2d6dc1||(this['_bufferUpdate'](_0x3dcd79['id'],_0x3dcd79,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4ca68d,this['_findInsertionIndex'](_0x4ca68d)),_0x4ca68d;}async['getRevisionDocumentData'](_0x4d7143){await this['_loadRevisionData'](_0x4d7143);const _0x1b5fa4={};for(const _0x2dca48 in _0x4d7143['diffData']){if(_0x4d7143['diffData'][_0x2dca48]['attachChange']&&!_0x4d7143['diffData'][_0x2dca48]['attachChange']['isAttached'])continue;const _0x4c7896=this['_removeRevisionMarkers'](JSON['parse'](_0x4d7143['diffData'][_0x2dca48]['insertions'])),_0x4b246a=this['editor']['editing']['view']['document'],_0x4ffd3b=new _0x493bbf(_0x4b246a,_0x4c7896['map'](_0xf80022=>P(_0xf80022,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1b5fa4[_0x2dca48]=this['editor']['data']['processor']['toData'](_0x4ffd3b),this['editor']['data']['processor']['useFillerType']('default');}return _0x1b5fa4;}async['getRevisionRootsAttributes'](_0x17e9c4){await this['_loadRevisionData'](_0x17e9c4);const _0x3deb6d={};for(const _0x23d297 in _0x17e9c4['diffData'])_0x17e9c4['diffData'][_0x23d297]['attachChange']&&!_0x17e9c4['diffData'][_0x23d297]['attachChange']['isAttached']||(_0x3deb6d[_0x23d297]=_0x17e9c4['diffData'][_0x23d297]['attributesAfter']||{});return _0x3deb6d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2c3c95=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3790c2=0x0;_0x3790c2<_0x2c3c95['length'];_0x3790c2++){const _0x17ae03=_0x2c3c95[_0x3790c2];let _0x26d3ad=!0x1;for(const _0x20c4ae of Object['keys'](_0x17ae03))void 0x0===_0x17ae03[_0x20c4ae]?delete _0x17ae03[_0x20c4ae]:'id'!==_0x20c4ae&&(_0x26d3ad=!0x0);_0x26d3ad||(_0x2c3c95[_0x3790c2]=null);}if(_0x2c3c95=_0x2c3c95['filter'](_0x325b65=>null!==_0x325b65),!_0x2c3c95['length'])return;for(let _0x112dbd=0x0;_0x112dbd<_0x2c3c95['length'];_0x112dbd++){const _0x59be2a=_0x2c3c95[_0x112dbd];void 0x0!==_0x59be2a['fromVersion']&&void 0x0===_0x59be2a['toVersion']&&(_0x59be2a['toVersion']=this['repository']['getRevision'](_0x59be2a['id'])['toVersion']),void 0x0!==_0x59be2a['toVersion']&&void 0x0===_0x59be2a['fromVersion']&&(_0x59be2a['fromVersion']=this['repository']['getRevision'](_0x59be2a['id'])['fromVersion']);}const _0x24263a=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2c3c95,_0x24263a)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xa1d5fa=>{if(_0xa1d5fa){for(const _0x3e4938 of _0xa1d5fa)this['setRevisionData']({'id':_0x3e4938['id'],'createdAt':_0x3e4938['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2bcb86,_0x47b5ea){let _0x2bb78b=this['editor']['config']['get']('initialData'),_0x5b336e=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2bb78b){_0x2bb78b={};for(const _0x569baf of this['editor']['model']['document']['getRootNames']())_0x2bb78b[_0x569baf]='';}if('string'==typeof _0x2bb78b&&(_0x2bb78b={'main':_0x2bb78b}),void 0x0===_0x5b336e){_0x5b336e={};for(const _0x3e1741 of this['editor']['model']['document']['getRootNames']())_0x5b336e[_0x3e1741]={};}let _0x4d31f2=!0x1;const _0xc169e2=Object['keys'](_0x2bb78b),_0x303456=Object['keys'](_0x2bcb86);for(const _0x55fe4d of _0xc169e2){if(_0x2bb78b[_0x55fe4d]!==_0x2bcb86[_0x55fe4d]&&''!==_0x2bb78b[_0x55fe4d]['trim']()){_0x4d31f2=!0x0;break;}if(!_0x1f43db(_0x5b336e[_0x55fe4d],_0x47b5ea[_0x55fe4d])&&Object['keys'](_0x5b336e[_0x55fe4d])['length']>0x0){_0x4d31f2=!0x0;break;}}_0x4d31f2||(_0x4d31f2=_0x303456['some'](_0x288ed8=>!this['editor']['model']['document']['getRoot'](_0x288ed8))),_0x4d31f2&&_0x871cff('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2bb78b,'editorRootsAttributes':_0x5b336e,'revisionData':_0x2bcb86,'revisionRootsAttributes':_0x47b5ea}),this['editor']['config']['set']('initialData',_0x2bcb86),this['editor']['config']['set']('rootsAttributes',_0x47b5ea);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3251e2=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3251e2['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3607ad){const _0x11e57a=this['repository']['getRevisions']();_0x11e57a['reverse']();let _0x2cc638=0x0;for(;_0x2cc638<_0x11e57a['length'];){const _0x3d3834=_0x11e57a[_0x2cc638];if(_0x3d3834===this['currentRevision']){_0x2cc638++;continue;}if(_0x3d3834['id']===this['_initialRevisionId'])break;const _0x3e3eef=_0x3607ad['toVersion']-_0x3d3834['toVersion']||_0x3607ad['fromVersion']-_0x3d3834['fromVersion'];if(_0x3e3eef>0x0)break;if(_0x3e3eef<0x0)_0x2cc638++;else{if(!_0x3607ad['creator']&&_0x3d3834['creator'])break;if(_0x3d3834['creator']||!_0x3607ad['creator']){if(_0x3607ad['createdAt']>_0x3d3834['createdAt'])break;_0x2cc638++;}else _0x2cc638++;}}return _0x2cc638;}['setRevisionData'](_0x53ff44){const _0x1a1001=this['repository']['getRevision'](_0x53ff44['id']);if(_0x53ff44['createdAt']&&(_0x53ff44['createdAt']=new Date(_0x53ff44['createdAt'])),_0x53ff44['authorsIds']){const _0x464f83=this['editor']['plugins']['get']('Users');_0x53ff44['authors']=_0x53ff44['authorsIds']['map'](_0x226ad9=>_0x464f83['getUser'](_0x226ad9));}_0x1a1001['_update'](_0x53ff44,!0x0);}['buildRevisionData']({revision:_0x2cdaf4=null,from:_0x1ff059=null,to:_0x31ea5b=null}){_0x1ff059=null!==_0x1ff059?_0x1ff059:_0x2cdaf4['fromVersion'],_0x31ea5b=null!==_0x31ea5b?_0x31ea5b:_0x2cdaf4['toVersion'];const _0x4baa15=this['_revisionDataBuilder']['getData'](_0x1ff059,_0x31ea5b),_0x2820be={'diffData':_0x4baa15['diffData'],'authorsIds':_0x4baa15['authorsIds'],'fromVersion':_0x1ff059,'toVersion':_0x31ea5b};if(!_0x2cdaf4||_0x31ea5b!==_0x2cdaf4['toVersion']){const _0x3d9570=_0x31ea5b-0x1,_0x5541d3=this['_source']['history']['getOperation'](_0x3d9570);_0x2820be['createdAt']=_0x5541d3&&_0x5541d3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1ff059===this['_loadedStateData']['fromVersion']){for(const _0x2f09f7 of this['_loadedStateData']['authors'])_0x2820be['authorsIds']['includes'](_0x2f09f7['id'])||_0x2820be['authorsIds']['push'](_0x2f09f7['id']);}return _0x2820be;}['_loadRevisionData'](_0x2676e2){if(!_0x2676e2||_0x2676e2['diffData'])return Promise['resolve']();{const _0x4af237=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4af237,'revisionId':_0x2676e2['id']})['then'](_0x9d6419=>{_0x2676e2['diffData']=_0x9d6419['diffData'];});}}['_bufferUpdate'](_0x258c57,_0x17ebd7,_0x301bb6){if(this['_bufferedUpdates']['has'](_0x258c57)){const _0x44bdda=this['_bufferedUpdates']['get'](_0x258c57);_0x17ebd7=_0x301bb6?{..._0x44bdda,..._0x17ebd7}:{..._0x17ebd7,..._0x44bdda};}this['_bufferedUpdates']['set'](_0x258c57,_0x17ebd7);}['_getFromVersion'](_0x4d21ce){const _0x36c414=this['repository']['getRevisions']();_0x36c414['reverse'](),_0x36c414['shift']();const _0x3587f7=_0x36c414['find'](_0x162a8b=>_0x162a8b['toVersion']<=_0x4d21ce)['toVersion'];return _0x3587f7<this['_startingVersion']?this['_startingVersion']:_0x3587f7;}['_createInitialRevision'](_0xd80cbc){const _0x1eaaa9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1eaaa9)this['_initialRevisionId']=_0x1eaaa9['id'];else{const _0x5b530c=!this['editor']['model']['document']['roots']['find'](_0x4bafc3=>this['editor']['model']['hasContent'](_0x4bafc3)),_0x16e812=this['editor']['plugins']['get']('Users')['me']['id'],_0xe16e72=m(this['editor']['locale'],_0x5b530c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xd80cbc,'to':_0xd80cbc,'id':this['_initialRevisionId'],'name':_0xe16e72,'creatorId':_0x16e812});}}['_createCurrentRevision'](_0xa2f41d){const _0x240a8b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x240a8b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xa2f41d,'to':_0xa2f41d,'id':_0x240a8b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x28fd53,from:_0x1967a0,to:_0x10e428,creatorId:_0x4e45a5,id:_0x183868}){const _0xe1584c=this['buildRevisionData']({'from':_0x1967a0,'to':_0x10e428});_0xe1584c['name']=_0x28fd53,_0xe1584c['creatorId']=_0x4e45a5,_0xe1584c['id']=_0x183868;const _0x241b5c=this['addRevisionData'](_0xe1584c);return this['adapter']&&this['_bufferUpdate'](_0xe1584c['id'],_0xe1584c,!0x0),_0x241b5c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x10d551){return(_0x10d551=_0x10d551['filter'](_0x5f5255=>!_0x5f5255['name']||'revision-start'!==_0x5f5255['name']&&'revision-end'!==_0x5f5255['name']))['forEach'](_0x2fbd53=>{'string'!=typeof _0x2fbd53&&(_0x2fbd53['children']=this['_removeRevisionMarkers'](_0x2fbd53['children']),_0x2fbd53['attributes']=_0x2fbd53['attributes']['filter'](_0x4eedf2=>!_0x4eedf2[0x0]['startsWith']('data-revision-')));}),_0x10d551;}}function P(_0x489ce9,_0x340612){const _0x1aa662=_0x340612['editing']['view']['document'];if('string'==typeof _0x489ce9)return new _0x6510ab(_0x1aa662,_0x489ce9);{const _0x4006a9=_0x489ce9['children']['map'](_0x3112d5=>P(_0x3112d5,_0x340612));return new(E[_0x489ce9['type']]||_0x5e7ab2)(_0x1aa662,_0x489ce9['name'],_0x489ce9['attributes'],_0x4006a9);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xb979c0){this['editor']=_0xb979c0,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x52463e){this['source']=_0x52463e;const _0x4a60ad=new Map(),_0x33eea4=new Map(),_0x2136c6=this['editor']['model']['document']['roots']['map'](_0x1afd1f=>_0x1afd1f['rootName']);for(const _0x12a3b2 of _0x2136c6){const _0x5177b9=this['editor']['model']['document']['getRoot'](_0x12a3b2),_0x29e4e9=T(_0x5177b9);_0x4a60ad['set'](_0x12a3b2,_0x29e4e9),_0x33eea4['set'](_0x12a3b2,Object['fromEntries'](_0x5177b9['getAttributes']()));}const _0x1329fe=Array['from'](this['editor']['model']['markers'])['map'](_0xfba6f2=>[_0xfba6f2['name'],_0xfba6f2['getRange']()]),_0x266acc=this['source']['version'];this['_saveMetaData'](_0x266acc,_0x4a60ad,_0x1329fe,_0x33eea4),this['_startingRevisionId']=this['_revisionId'];const _0x43b149=new Map(),_0x3ad804=new Map();for(const _0xdab44d of _0x2136c6){const _0xeae8e7=F(_0xdab44d);_0x43b149['set'](_0xdab44d,_0xeae8e7),_0x3ad804['set'](_0xdab44d,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x43b149,[],_0x3ad804);}['getData'](_0x18d6b1,_0x8b9f26){if(this['_lastFrom']===_0x18d6b1&&this['_lastTo']<=_0x8b9f26)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x8b9f26,!0x0);else{if(!this['_savedMetaData']['has'](_0x18d6b1)){const _0x130194=this['_getPreviousFrom'](_0x18d6b1);this['_calculateMetaData'](_0x130194,_0x18d6b1,!0x1);}this['_calculateMetaData'](_0x18d6b1,_0x8b9f26,!0x0);}return this['_lastFrom']=_0x18d6b1,this['_lastTo']=_0x8b9f26,this['_getState']();}['loadState'](_0x4c8179){this['_reset'](),this['_lastFrom']=_0x4c8179['fromVersion'],this['_lastTo']=_0x4c8179['toVersion'];for(const _0x2de08f in _0x4c8179['diffData']){const _0x22ab46=_0x4c8179['diffData'][_0x2de08f]['attachChange'],_0x315acd=_0x153ae3(_0x4c8179['diffData'][_0x2de08f]['attributesBefore'])||{},_0x2b521c=this['_makeModelFromViewString'](_0x4c8179['diffData'][_0x2de08f]['deletions']);_0x2b521c['rootName']=_0x2de08f,_0x2b521c['_isAttached']=!_0x22ab46||!_0x22ab46['isAttached'],_0x2b521c['isAttached']=()=>_0x2b521c['_isAttached'],this['_baseRoots']['set'](_0x2de08f,_0x2b521c),this['_baseRootsAttributes']['set'](_0x2de08f,_0x315acd),_0x22ab46&&this['_touchedRoots']['set'](_0x2de08f,_0x22ab46);const _0x511e51=this['_makeIdsRoot'](_0x2b521c);this['_baseIdsRoots']['set'](_0x2de08f,_0x511e51);for(const [_0x1fdb45,_0x24527d]of _0x2b521c['markers']){if(!_0x1fdb45['startsWith']('revision:'))continue;const _0x1e02d0=_0x1fdb45['split'](':')[0x2];for(const _0x3cb03b of _0x24527d['getWalker']({'singleCharacters':!0x0})){const _0x2569ee=this['_getVidAttributeName'](_0x3cb03b),_0x5a17e1='elementEnd'==_0x3cb03b['type']?_0x3cb03b['previousPosition']['path']['slice'](0x0,-0x1):_0x3cb03b['previousPosition']['path'],_0x177393=_0x511e51['getNodeByPath'](_0x5a17e1)['getAttribute'](_0x2569ee);this['_touched']['set'](_0x177393,{'userId':_0x1e02d0});}}}this['_startingRevisionId']=this['_revisionId'];const _0x38755c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x37eada=>!this['_touched']['has'](_0x37eada));let _0x53d6cb=0x0;const _0x1bc2d7=new Map();for(const _0x30c48d in _0x4c8179['diffData']){const _0x49fcbb=_0x4c8179['diffData'][_0x30c48d]['attachChange'],_0x25befd=_0x153ae3(_0x4c8179['diffData'][_0x30c48d]['attributesAfter'])||{},_0x23a9b8=this['_makeModelFromViewString'](_0x4c8179['diffData'][_0x30c48d]['insertions']);_0x23a9b8['rootName']=_0x30c48d,_0x23a9b8['_isAttached']=!_0x49fcbb||_0x49fcbb['isAttached'],_0x23a9b8['isAttached']=()=>_0x23a9b8['_isAttached'],this['_diffRoots']['set'](_0x30c48d,_0x23a9b8),this['_diffRootsAttributes']['set'](_0x30c48d,_0x25befd);const _0x4ea84b=this['_makeIdsRoot'](_0x23a9b8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x30c48d,_0x4ea84b),_0x1bc2d7['set'](_0x30c48d,_0x23a9b8['isAttached']()?_0x25befd:{});for(const [_0x2454f1,_0x52f0b8]of _0x23a9b8['markers']){if(!_0x2454f1['startsWith']('revision:'))continue;const _0x18aad4=_0x2454f1['split'](':')[0x2];for(const _0x2f826e of _0x52f0b8['getWalker']({'singleCharacters':!0x0})){const _0x59b841=this['_getVidAttributeName'](_0x2f826e),_0x175e17=this['_revisionId']++,_0x2153e3='elementEnd'==_0x2f826e['type']?_0x2f826e['previousPosition']['path']['slice'](0x0,-0x1):_0x2f826e['previousPosition']['path'];_0x4ea84b['getNodeByPath'](_0x2153e3)['_setAttribute'](_0x59b841,_0x175e17),this['_touched']['set'](_0x175e17,{'userId':_0x18aad4});}}for(const _0x355f5b of this['editor']['model']['createRangeIn'](_0x23a9b8)['getWalker']({'singleCharacters':!0x0})){const _0xacb5c3=this['_getVidAttributeName'](_0x355f5b),_0x508524='elementEnd'==_0x355f5b['type']?_0x355f5b['previousPosition']['path']['slice'](0x0,-0x1):_0x355f5b['previousPosition']['path'],_0x1df39f=_0x4ea84b['getNodeByPath'](_0x508524);_0x1df39f['getAttribute'](_0xacb5c3)>0x0||_0x1df39f['_setAttribute'](_0xacb5c3,_0x38755c[_0x53d6cb++]);}for(const [_0x1d07ed,_0x8815e9]of _0x23a9b8['markers'])_0x1d07ed['startsWith']('revision:')||this['_markers']['set'](_0x1d07ed,_0x8815e9);}const _0x4d5555=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4d5555),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4d5555,0x1));const _0x3c1b5a=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3c1b5a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c1b5a,0x1));const _0x1d5376=Array['from'](this['_diffRoots'])['map'](([_0x1fe0c7,_0x37c747])=>[_0x1fe0c7,T(_0x37c747)]);this['_saveMetaData'](this['_lastTo'],_0x1d5376,this['_markers'],_0x1bc2d7);}['_makeModelFromViewString'](_0x5e68e4){const _0x4e9ddb=JSON['parse'](_0x5e68e4),_0x37d4e8=this['editor']['editing']['view']['document'],_0x430c69=new _0x493bbf(_0x37d4e8,_0x4e9ddb['map'](_0x399ab4=>P(_0x399ab4,this['editor'])));return this['editor']['data']['toModel'](_0x430c69);}['_saveMetaData'](_0xe88890,_0x3466c2,_0x405788,_0x1272fc){const _0x5b52ef=new Map(_0x3466c2),_0x4da3d5=new Map(_0x153ae3(_0x1272fc)),_0x5383d7=new Map();for(const [_0x35850c,_0xf222fe]of _0x405788)_0x5383d7['set'](_0x35850c,{'start':_0xf222fe['start']['clone'](),'end':_0xf222fe['end']['clone'](),'rootName':_0xf222fe['root']['rootName']});this['_savedMetaData']['set'](_0xe88890,{'roots':_0x5b52ef,'markers':_0x5383d7,'rootsAttributes':_0x4da3d5});}['_removeMetaData'](_0x270972){this['_savedMetaData']['delete'](_0x270972);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x1e50ee,_0x39f6d1=null){let _0xf2ca88=null;_0x1e50ee['is']('documentFragment')||(_0xf2ca88=new ut(_0x1e50ee['name'],{'vid_start':null===_0x39f6d1?this['_revisionId']++:_0x39f6d1++}));const _0x4500f2=[];for(const _0x59a11a of _0x1e50ee['getChildren']())if(_0x59a11a['is']('element')){_0x4500f2['push'](this['_makeIdsRoot'](_0x59a11a,_0x39f6d1));const _0x586613=_0x4500f2[_0x4500f2['length']-0x1];null!==_0x39f6d1&&(_0x39f6d1=_0x586613['is']('element','$text')?_0x586613['getAttribute']('vid')+0x1:_0x586613['getAttribute']('vid_end')+0x1);}else{for(let _0x25c2cc=0x0;_0x25c2cc<_0x59a11a['offsetSize'];_0x25c2cc++)_0x4500f2['push'](new ut('$text',{'vid':null===_0x39f6d1?this['_revisionId']++:_0x39f6d1++}));}if(_0x1e50ee['is']('documentFragment')){const _0x3685b2=F(_0x1e50ee['rootName']);return _0x3685b2['_insertChild'](0x0,_0x4500f2),_0x3685b2;}return _0xf2ca88['_setAttribute']('vid_end',null===_0x39f6d1?this['_revisionId']++:_0x39f6d1++),_0xf2ca88['_insertChild'](0x0,_0x4500f2),_0xf2ca88;}['_calculateMetaData'](_0x99fe84,_0x2de61b,_0x5d0164){this['_reset']();const {roots:_0xeec40b,markers:_0x2628f9,rootsAttributes:_0x5b2bdb}=this['_savedMetaData']['get'](_0x99fe84);this['_baseRoots']=new Map(_0xeec40b),this['_baseRootsAttributes']=new Map(_0x153ae3(_0x5b2bdb));for(const [_0x5e62d5,_0x560e96]of this['_baseRoots'])if('$graveyard'!==_0x5e62d5&&(this['_diffRoots']['set'](_0x5e62d5,T(_0x560e96)),this['_diffRootsAttributes']=new Map(_0x153ae3(_0x5b2bdb)),_0x5d0164)){const _0x512af8=this['_revisionId'];this['_idsRoots']['set'](_0x5e62d5,this['_makeIdsRoot'](_0x560e96)),this['_baseIdsRoots']['set'](_0x5e62d5,this['_makeIdsRoot'](_0x560e96,_0x512af8));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x5d0164&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x501635,_0x5dab66]of _0x2628f9){const _0x21bfbc=this['_baseRoots']['get'](_0x5dab66['rootName']),_0x484357=this['_diffRoots']['get'](_0x5dab66['rootName']),_0x101c30=new ft(this['_fixPosition'](_0x5dab66['start'],_0x21bfbc),this['_fixPosition'](_0x5dab66['end'],_0x21bfbc)),_0x5e0055=this['_fixRange'](_0x101c30,_0x484357);_0x21bfbc['markers']['set'](_0x501635,_0x101c30),this['_markers']['set'](_0x501635,_0x5e0055);}this['_applyOperations'](_0x99fe84,_0x2de61b,_0x5d0164);}['_applyOperations'](_0x5d2286,_0x1b0a81,_0x3e0feb){for(const _0x4e2459 of this['source']['getOperations'](_0x5d2286,_0x1b0a81))this['_handleOperation'](_0x4e2459,_0x3e0feb);for(const _0x3440ba of this['_diffRoots']['values']())_0x3440ba['markers']['clear']();for(const [_0x45b33c,_0x397179]of this['_markers']){this['_diffRoots']['get'](_0x397179['root']['rootName'])['markers']['set'](_0x45b33c,_0x397179['clone']());}const _0x241aee=new Map(),_0x133a5e=new Map();for(const [_0x517b5b,_0x28cab7]of this['_diffRoots'])_0x241aee['set'](_0x517b5b,T(_0x28cab7)),_0x133a5e['set'](_0x517b5b,this['_diffRootsAttributes']['get'](_0x517b5b));this['_saveMetaData'](_0x1b0a81,_0x241aee,this['_markers'],_0x133a5e);}['_getPreviousFrom'](_0x166cee){const _0x215ce2=Array['from'](this['_savedMetaData']['keys']());_0x215ce2['sort']((_0x2192af,_0x31e88b)=>_0x2192af-_0x31e88b),_0x215ce2['reverse']();for(const _0x1b8d91 of _0x215ce2)if(_0x1b8d91<_0x166cee)return _0x1b8d91;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x10d30a,_0x3414bc){const _0x3d336a=Array['from'](_0x3414bc['markers'])['map'](([_0x56922e,_0x494a64])=>[_0x56922e,this['_fixRange'](_0x494a64,_0x10d30a)]);_0x10d30a['markers']=new Map(_0x3d336a);}['_transformMarkers'](_0x2acf0d){for(const _0x556b25 of this['_markers']['values']()){const _0x46c390=_0x556b25['getTransformedByOperation'](_0x2acf0d),_0x2b80de=ft['_createFromRanges'](_0x46c390);_0x556b25['start']=_0x2b80de['start'],_0x556b25['end']=_0x2b80de['end'];}}['_handleOperation'](_0x3b8e86,_0x3d09fa){if('addRoot'!=_0x3b8e86['type']&&'detachRoot'!=_0x3b8e86['type']){if('insert'==_0x3b8e86['type']){const _0x2ddb8e=_0x3b8e86['position']['root']['rootName'];this['_diffRoots']['has'](_0x2ddb8e)||(this['_diffRoots']['set'](_0x2ddb8e,F(_0x2ddb8e,!0x0)),this['_diffRootsAttributes']['set'](_0x2ddb8e,{}),_0x3d09fa&&this['_idsRoots']['set'](_0x2ddb8e,F(_0x2ddb8e,!0x0)));}else{if('addRootAttribute'==_0x3b8e86['type']||'removeRootAttribute'==_0x3b8e86['type']||'changeRootAttribute'==_0x3b8e86['type'])return void this['_handleRootAttributeOperation'](_0x3b8e86);'marker'==_0x3b8e86['type']&&this['_handleMarkerOperation'](_0x3b8e86);}if('marker'!==_0x3b8e86['type']){const _0x4d679d=this['_cloneOperation'](_0x3b8e86,this['_diffRoots']);_0x4d679d['_execute'](),this['_transformMarkers'](_0x4d679d);}if(_0x3d09fa)switch(_0x3b8e86['type']){case'insert':this['_handleInsertOperation'](_0x3b8e86);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3b8e86);break;case'merge':this['_handleMergeOperation'](_0x3b8e86);break;case'split':this['_handleSplitOperation'](_0x3b8e86);}}else this['_handleRootOperation'](_0x3b8e86,_0x3d09fa);}['_cloneOperation'](_0x416c8e,_0xee230d){const _0x534d61=_0x416c8e['clone']();return _0x534d61['_authorId']=_0x416c8e['_authorId'],this['_fixOperation'](_0x534d61,_0xee230d),_0x534d61;}['_getBaseVids'](_0x539b55){return _0x539b55['map'](_0x541ae4=>{const _0x431cb5=this['_getVidAttributeName'](_0x541ae4);return Number(_0x541ae4['item']['getAttribute'](_0x431cb5));});}['_generateTape'](_0x2c686a,_0x2cc765){if(_0x2c686a['is']('element','$text'))_0x2cc765['push']({'item':_0x2c686a,'type':'text'});else{_0x2c686a['is']('element')&&_0x2cc765['push']({'item':_0x2c686a,'type':'elementStart'});for(const _0x4d6879 of _0x2c686a['getChildren']())this['_generateTape'](_0x4d6879,_0x2cc765);_0x2c686a['is']('element')&&_0x2cc765['push']({'item':_0x2c686a,'type':'elementEnd'});}return _0x2cc765;}['_getState'](){const _0x45871f=new Map(this['_touched']),_0x56a68c=new Map(_0x45871f),_0x7acd35=new Map(),_0x5d91bb={'insertions':{},'deletions':{}},_0x5854b0={'insertions':{},'deletions':{}},_0x17d4de=new Map(),_0x5a88fd=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5a88fd['delete']('$graveyard');for(const _0x3f33f9 of _0x5a88fd){const _0x40a2e6=this['_diffRoots']['get'](_0x3f33f9)||F(_0x3f33f9,!0x1),_0x4c09f6=this['_baseRoots']['get'](_0x3f33f9)||F(_0x3f33f9,!0x1);_0x40a2e6['isAttached']()||_0x4c09f6['isAttached']()?(_0x5d91bb['insertions'][_0x3f33f9]=T(_0x40a2e6),_0x5d91bb['deletions'][_0x3f33f9]=T(_0x4c09f6),this['_copyMarkers'](_0x5d91bb['deletions'][_0x3f33f9],_0x4c09f6),this['_copyMarkers'](_0x5d91bb['insertions'][_0x3f33f9],_0x40a2e6),_0x5854b0['insertions'][_0x3f33f9]=this['_generateTape'](this['_idsRoots']['get'](_0x3f33f9),[]),_0x5854b0['deletions'][_0x3f33f9]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3f33f9)||F(_0x3f33f9,!0x1),[])):_0x5a88fd['delete'](_0x3f33f9);}for(const _0x13fb76 of _0x5a88fd){const _0x13b76a=_0x5854b0['insertions'][_0x13fb76];for(const _0x287187 of _0x13b76a){const _0xf798d1=this['_getVidAttributeName'](_0x287187),_0x51dfcb=_0x287187['item']['getAttribute'](_0xf798d1);_0x56a68c['delete'](_0x51dfcb),_0x51dfcb>=this['_startingRevisionId']&&_0x7acd35['set'](_0x51dfcb,_0x45871f['get'](_0x51dfcb));}}for(const _0x4d06e5 of _0x5a88fd){const _0x2cadaf=_0x5854b0['insertions'][_0x4d06e5],_0x3da03a=this['_getBaseVids'](_0x5854b0['deletions'][_0x4d06e5]);let _0x5c12e1=0x0;for(const _0x4319c1 of _0x2cadaf){const _0x51ae2d=this['_getVidAttributeName'](_0x4319c1),_0x2de89b=_0x4319c1['item']['getAttribute'](_0x51ae2d);if(!_0x7acd35['has'](_0x2de89b)&&!_0x17d4de['has'](_0x2de89b)){if(_0x56a68c['has'](_0x2de89b))_0x5c12e1++;else{if(_0x2de89b!=_0x3da03a[_0x5c12e1]){const _0x24ebb3=_0x45871f['get'](_0x2de89b)||_0x45871f['get'](_0x3da03a[_0x5c12e1]);for(;_0x2de89b!=_0x3da03a[_0x5c12e1];)_0x56a68c['has'](_0x3da03a[_0x5c12e1])||(_0x17d4de['set'](_0x3da03a[_0x5c12e1],_0x24ebb3),_0x45871f['set'](_0x3da03a[_0x5c12e1],_0x24ebb3)),_0x5c12e1++;}_0x5c12e1++;}}}}for(const _0x38135c of _0x5a88fd){const _0x3d5fb4=_0x5854b0['insertions'][_0x38135c];for(const _0x28599c of _0x3d5fb4){const _0x2e2918=this['_getVidAttributeName'](_0x28599c),_0x3f8ad2=_0x28599c['item']['getAttribute'](_0x2e2918);if(_0x17d4de['has'](_0x3f8ad2)){const _0x45e367=_0x17d4de['get'](_0x3f8ad2);_0x56a68c['has'](_0x3f8ad2)||_0x56a68c['set'](_0x3f8ad2,{..._0x45e367}),_0x7acd35['set'](_0x3f8ad2,{..._0x45e367});}}}for(const _0x458b2b of _0x56a68c['keys']())_0x458b2b>=this['_startingRevisionId']&&_0x56a68c['delete'](_0x458b2b);const _0x1afcec=new Map();for(const _0x717de9 of _0x5a88fd){let _0x562b9d=_0x5854b0['insertions'][_0x717de9];for(const _0x40efdf of _0x562b9d)if(_0x40efdf['item']['is']('element','tableCell')){const _0x40e9d9=this['_getVidAttributeName'](_0x40efdf),_0x13ef0a=_0x40efdf['item']['getAttribute'](_0x40e9d9);if(_0x7acd35['has'](_0x13ef0a)){const _0x19d97a=_0x40efdf['item']['parent']['parent']['getAttribute']('vid_start'),_0x55c4b5=_0x1afcec['get'](_0x19d97a)||new Set();_0x55c4b5['add'](_0x7acd35['get'](_0x13ef0a)['userId']),_0x1afcec['set'](_0x19d97a,_0x55c4b5);}}_0x562b9d=_0x5854b0['deletions'][_0x717de9];for(const _0x181f62 of _0x562b9d)if(_0x181f62['item']['is']('element','tableCell')){const _0x1a6172=this['_getVidAttributeName'](_0x181f62),_0x4f583f=_0x181f62['item']['getAttribute'](_0x1a6172);if(_0x56a68c['has'](_0x4f583f)){const _0x47dcaf=_0x181f62['item']['parent']['parent']['getAttribute']('vid_start'),_0x23b6f5=_0x1afcec['get'](_0x47dcaf)||new Set();_0x23b6f5['add'](_0x56a68c['get'](_0x4f583f)['userId']),_0x1afcec['set'](_0x47dcaf,_0x23b6f5);}}for(const _0x5313ad of _0x1afcec['keys']())(_0x7acd35['has'](_0x5313ad)||_0x56a68c['has'](_0x5313ad))&&_0x1afcec['delete'](_0x5313ad);}for(const _0x52734d of _0x5a88fd){const _0x323553=_0x5854b0['insertions'][_0x52734d];let _0x5c49e7=null,_0x93ce07=null;for(const _0x206a39 of _0x323553){const _0x16834e=this['_getVidAttributeName'](_0x206a39),_0x1e2525=_0x206a39['item']['getAttribute'](_0x16834e),_0x476917=_0x1afcec['get'](_0x1e2525);_0x476917&&'elementStart'==_0x206a39['type']&&(_0x5c49e7=Array['from'](_0x476917)[0x0],_0x93ce07=_0x206a39['item']['getAttribute']('vid_end')),_0x5c49e7&&(_0x56a68c['set'](_0x1e2525,{'userId':_0x5c49e7}),_0x7acd35['set'](_0x1e2525,{'userId':_0x5c49e7})),_0x1e2525==_0x93ce07&&(_0x5c49e7=null,_0x93ce07=null);}}const _0xf771e7={},_0x8ec51e=new Set();for(const _0x36d8c0 of _0x5a88fd){const _0x23be64=_0x5d91bb['deletions'][_0x36d8c0],_0x5803f8=_0x5d91bb['insertions'][_0x36d8c0];for(const {userId:_0x592072}of this['_touchedMarkers']['values']())null!==_0x592072&&_0x8ec51e['add'](_0x592072);for(const {userId:_0x535e73}of this['_touchedRoots']['values']())null!==_0x535e73&&_0x8ec51e['add'](_0x535e73);this['_markChanges'](_0x5803f8,_0x5854b0['insertions'][_0x36d8c0],_0x7acd35,'insertion',_0x8ec51e),this['_markChanges'](_0x23be64,_0x5854b0['deletions'][_0x36d8c0],_0x56a68c,'deletion',_0x8ec51e),_0xf771e7[_0x36d8c0]={'insertions':this['_prepareViewToSave'](_0x5803f8),'deletions':this['_prepareViewToSave'](_0x23be64),'attachChange':this['_touchedRoots']['get'](_0x36d8c0)||null,'attributesBefore':_0x153ae3(this['_baseRootsAttributes']['get'](_0x36d8c0))||{},'attributesAfter':_0x153ae3(this['_diffRootsAttributes']['get'](_0x36d8c0))};}return{'diffData':_0xf771e7,'authorsIds':Array['from'](_0x8ec51e)};}['_processRootBeforeSave'](_0x18af4e){for(const [,_0x1dc1af]of _0x18af4e['markers']){const _0x1d430d=_0x1dc1af['start']['getAncestors']()['filter'](_0x42bc2f=>'tableCell'==_0x42bc2f['name']);for(const _0x21ca9d of _0x1d430d)0x1==_0x21ca9d['childCount']&&_0x21ca9d['getChild'](0x0)['is']('element','paragraph')&&_0x21ca9d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3a2eef){this['_processRootBeforeSave'](_0x3a2eef);const _0xbffc21=this['editor']['data']['toView'](_0x3a2eef,{}),_0x1c356c=Array['from'](_0xbffc21['getChildren']())['map'](_0x44c931=>this['_getViewJson'](_0x44c931));return JSON['stringify'](_0x1c356c);}['_getViewJson'](_0x1232a1){if(_0x1232a1['is']('$text'))return _0x1232a1['data'];{const _0x455953=_0x1232a1;return{'type':Object['keys'](E)['find'](_0x325879=>_0x1232a1 instanceof E[_0x325879]),'name':_0x455953['name'],'attributes':Array['from'](_0x455953['getAttributes']()),'children':Array['from'](_0x455953['getChildren']())['map'](_0x5ce5a4=>this['_getViewJson'](_0x5ce5a4))};}}['_markChanges'](_0x45af1c,_0x44658e,_0x20264e,_0x1a6c92,_0x525eab){let _0x55d2a4=null,_0x1a34a6=null,_0x3cddac=0x0;const _0x3fdb1b=this['editor']['model'];for(let _0x377c8b=0x0;_0x377c8b<_0x44658e['length'];_0x377c8b++){const _0x3d01ae=this['_getVidAttributeName'](_0x44658e[_0x377c8b]),_0x6b7c9b=_0x44658e[_0x377c8b]['item']['getAttribute'](_0x3d01ae),_0x9de67b=_0x20264e['get'](_0x6b7c9b),_0x3cdd30=_0x377c8b==_0x44658e['length']-0x1;(!_0x55d2a4&&_0x9de67b&&(_0x55d2a4=_0x9de67b,_0x1a34a6=_0x44658e[_0x377c8b]),_0x55d2a4&&(!_0x9de67b||_0x9de67b['userId']!=_0x55d2a4['userId']))&&(_0x397d0f(_0x9de67b,B(_0x1a34a6,_0x45af1c,_0x3fdb1b),B(_0x44658e[_0x377c8b],_0x45af1c,_0x3fdb1b)),_0x55d2a4=_0x9de67b||null,_0x1a34a6=_0x9de67b?_0x44658e[_0x377c8b]:null),_0x55d2a4&&_0x3cdd30&&_0x397d0f(_0x9de67b,B(_0x1a34a6,_0x45af1c,_0x3fdb1b),J(_0x44658e[_0x377c8b],_0x45af1c,_0x3fdb1b));}function _0x397d0f(_0x276819,_0x5c4e99,_0x341497){const _0xa5973b=_0x55d2a4['userId'],_0x5abf9b='revision:'+_0x1a6c92+':'+_0xa5973b+':'+_0x3cddac++,_0xe0c78a=_0x3fdb1b['createRange'](_0x5c4e99,_0x341497);_0x45af1c['markers']['set'](_0x5abf9b,_0xe0c78a),null!==_0xa5973b&&_0x525eab['add'](_0xa5973b);}}['_getVidAttributeName'](_0x5b26eb){switch(_0x5b26eb['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x35e26d,_0x40d20b){_0x35e26d['baseVersion']=null;for(const _0x50e0ff in _0x35e26d){const _0x54acda=_0x35e26d[_0x50e0ff];if(_0x54acda instanceof vt){const _0x5a7027=_0x40d20b['get'](_0x54acda['root']['rootName']);_0x35e26d[_0x50e0ff]=this['_fixPosition'](_0x54acda,_0x5a7027);}if(_0x54acda instanceof ft){const _0x9c3bc=_0x40d20b['get'](_0x54acda['root']['rootName']);_0x35e26d[_0x50e0ff]=this['_fixRange'](_0x54acda,_0x9c3bc);}'root'===_0x50e0ff&&(_0x35e26d['root']=_0x40d20b['get'](_0x35e26d['root']['rootName']));}}['_fixRange'](_0x5a9397,_0x119253){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5a9397['start'],_0x119253),this['_fixPosition'](_0x5a9397['end'],_0x119253));}['_fixPosition'](_0x1819c7,_0x501df3){return this['editor']['model']['createPositionFromPath'](_0x501df3,_0x1819c7['path'],_0x1819c7['stickiness']);}['_handleInsertOperation'](_0x4a5440){const _0x3c4106=this['_idsRoots']['get'](_0x4a5440['position']['root']['rootName']),_0x3904f1=this['_fixPosition'](_0x4a5440['position'],_0x3c4106),_0x56c431=null===_0x4a5440['_authorId']?null:_0x4a5440['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c54d4=_0x3904f1['parent'],_0x2d7f25=this['_revisionId'],_0x2759c9=[];for(const _0x5aabb1 of _0x4a5440['nodes'])if(_0x5aabb1['is']('element'))_0x2759c9['push'](this['_makeIdsRoot'](_0x5aabb1));else{for(let _0x680510=0x0;_0x680510<_0x5aabb1['offsetSize'];_0x680510++)_0x2759c9['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x53a146=this['_revisionId'];for(let _0x4b6f6b=_0x2d7f25;_0x4b6f6b<_0x53a146;_0x4b6f6b++)this['_touched']['set'](_0x4b6f6b,{'userId':_0x56c431});_0x5c54d4['_insertChild'](_0x3904f1['offset'],_0x2759c9);}['_handleMoveOperation'](_0x1bffe3){(_0x1bffe3=this['_cloneOperation'](_0x1bffe3,this['_idsRoots']))['_execute']();const _0x35a381=null===_0x1bffe3['_authorId']?null:_0x1bffe3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c9e9d=_0x1bffe3['getMovedRangeStart'](),_0x4aa889=_0x1c9e9d['parent'],_0x3910b6=_0x1c9e9d['offset'];!function _0x49e166(_0x31b15d,_0x21c835,_0x6f0835,_0x327e46){for(let _0x570382=_0x6f0835;_0x570382<_0x327e46;_0x570382++){const _0x175195=_0x21c835['getChild'](_0x570382);_0x175195['is']('element','$text')?_0x31b15d['set'](_0x175195['getAttribute']('vid'),{'userId':_0x35a381}):(_0x31b15d['set'](_0x175195['getAttribute']('vid_start'),{'userId':_0x35a381}),_0x49e166(_0x31b15d,_0x175195,0x0,_0x175195['childCount']),_0x31b15d['set'](_0x175195['getAttribute']('vid_end'),{'userId':_0x35a381}));}}(this['_touched'],_0x4aa889,_0x3910b6,_0x3910b6+_0x1bffe3['howMany']);}['_handleMergeOperation'](_0x212e84){const _0x4333b0=null===(_0x212e84=this['_cloneOperation'](_0x212e84,this['_idsRoots']))['_authorId']?null:_0x212e84['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc3a999=_0x212e84['targetPosition']['parent'],_0x294650=_0x212e84['sourcePosition']['parent'],_0x2eb22a=_0xc3a999['getAttribute']('vid_end'),_0x55e871=_0x294650['getAttribute']('vid_start');_0xc3a999['_setAttribute']('vid_end',_0x294650['getAttribute']('vid_end')),_0x294650['_setAttribute']('vid_end',_0x2eb22a),this['_touched']['set'](_0x55e871,{'userId':_0x4333b0}),this['_touched']['set'](_0x2eb22a,{'userId':_0x4333b0}),_0x212e84['_execute']();}['_handleSplitOperation'](_0x91b955){const _0x19ede3=null===(_0x91b955=this['_cloneOperation'](_0x91b955,this['_idsRoots']))['_authorId']?null:_0x91b955['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e30e6=_0x91b955['graveyardPosition'],_0x39ef96=_0x91b955['splitPosition']['parent'];_0x91b955['_execute']();const _0x27ffd9=_0x39ef96['getAttribute']('vid_end'),_0x55064f=_0x91b955['insertionPosition']['nodeAfter'];if(_0x1e30e6){const _0x3be469=_0x55064f['getAttribute']('vid_end'),_0x3f45ad=_0x39ef96['getAttribute']('vid_end');_0x39ef96['_setAttribute']('vid_end',_0x3be469),_0x55064f['_setAttribute']('vid_end',_0x3f45ad),this['_touched']['set'](_0x39ef96['getAttribute']('vid_end'),{'userId':_0x19ede3}),this['_touched']['set'](_0x55064f['getAttribute']('vid_start'),{'userId':_0x19ede3});}else{const _0x411f79=this['_revisionId']++,_0x5538a8=this['_revisionId']++;_0x39ef96['_setAttribute']('vid_end',_0x411f79),_0x55064f['_setAttribute']('vid_start',_0x5538a8),_0x55064f['_setAttribute']('vid_end',_0x27ffd9),this['_touched']['set'](_0x411f79,{'userId':_0x19ede3}),this['_touched']['set'](_0x5538a8,{'userId':_0x19ede3});}}['_handleMarkerOperation'](_0x36eeae){if(!_0x36eeae['affectsData'])return;const _0x41bf63=(_0x36eeae=this['_cloneOperation'](_0x36eeae,this['_diffRoots']))['oldRange']?_0x36eeae['oldRange']['root']:null,_0x22cef4=_0x36eeae['newRange']?_0x36eeae['newRange']['root']:null;_0x41bf63&&this['_markers']['delete'](_0x36eeae['name']),_0x22cef4&&this['_markers']['set'](_0x36eeae['name'],_0x36eeae['newRange']['clone']());const _0x188479=null===_0x36eeae['_authorId']?null:_0x36eeae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x505dc8=_0x36eeae['name'];if(!this['_touchedMarkers']['has'](_0x505dc8))return void this['_touchedMarkers']['set'](_0x505dc8,{'range':_0x36eeae['oldRange'],'userId':_0x188479});const _0x21bd63=this['_touchedMarkers']['get'](_0x505dc8),_0x213398=_0x21bd63['range'],_0x35547d=_0x36eeae['newRange'];null==_0x213398&&null==_0x35547d||_0x213398&&_0x35547d&&_0x213398['isEqual'](_0x35547d)?this['_touchedMarkers']['delete'](_0x36eeae['name']):_0x21bd63['userId']=_0x188479;}['_handleRootOperation'](_0x2c59eb,_0x40f5f3){this['_diffRoots']['has'](_0x2c59eb['rootName'])?this['_diffRoots']['get'](_0x2c59eb['rootName'])['_isAttached']=_0x2c59eb['isAdd']:(this['_diffRoots']['set'](_0x2c59eb['rootName'],F(_0x2c59eb['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2c59eb['rootName'],{}),_0x40f5f3&&this['_idsRoots']['set'](_0x2c59eb['rootName'],F(_0x2c59eb['rootName'],!0x0)));const _0x580311=null===_0x2c59eb['_authorId']?null:_0x2c59eb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6da14c=this['_touchedRoots']['get'](_0x2c59eb['rootName']);_0x6da14c&&_0x6da14c['userId']===_0x580311?this['_touchedRoots']['delete'](_0x2c59eb['rootName']):this['_touchedRoots']['set'](_0x2c59eb['rootName'],{'userId':_0x580311,'isAttached':_0x2c59eb['isAdd']});}['_handleRootAttributeOperation'](_0x4063f8){const _0x1a4ff1=this['_diffRootsAttributes']['get'](_0x4063f8['root']['rootName']);null===_0x4063f8['newValue']?delete _0x1a4ff1[_0x4063f8['key']]:_0x1a4ff1[_0x4063f8['key']]=_0x4063f8['newValue'];}}function T(_0xd75e2f){const _0x89bd68=F(_0xd75e2f['rootName'],_0xd75e2f['isAttached']());for(const _0x358bc8 of _0xd75e2f['getChildren']()){const _0x4c6644=_0x358bc8['_clone'](!0x0);_0x89bd68['_appendChild'](_0x4c6644);}return _0x89bd68;}function F(_0x17c7c7,_0x4c305a=!0x0){const _0x132371=new gt();return _0x132371['rootName']=_0x17c7c7,_0x132371['_isAttached']=_0x4c305a,_0x132371['isAttached']=()=>_0x132371['_isAttached'],_0x132371;}function B(_0x36d33d,_0x4ef5dd,_0x1c000f){const _0x37de96='elementEnd'==_0x36d33d['type']?_0x1c000f['createPositionAt'](_0x36d33d['item'],'end'):_0x1c000f['createPositionBefore'](_0x36d33d['item']);return _0x1c000f['createPositionFromPath'](_0x4ef5dd,_0x37de96['path'],_0x37de96['stickiness']);}function J(_0x33c41c,_0x5b7577,_0x41ae16){const _0x30415f='elementStart'==_0x33c41c['type']?_0x41ae16['createPositionAt'](_0x33c41c['item'],0x0):_0x41ae16['createPositionAfter'](_0x33c41c['item']);return _0x41ae16['createPositionFromPath'](_0x5b7577,_0x30415f['path'],_0x30415f['stickiness']);}class os extends _0x1e62c1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x250254,_0xee0037){super(_0x250254),this['focusTracker']=new _0x535e49(),this['keystrokes']=new _0x4726ee(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xee0037),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x4501f0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x11ab04=_0x5c03a0=>_0x5c03a0['stopPropagation']();this['keystrokes']['set']('arrowright',_0x11ab04),this['keystrokes']['set']('arrowleft',_0x11ab04),this['keystrokes']['set']('arrowup',_0x11ab04),this['keystrokes']['set']('arrowdown',_0x11ab04);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5edb80){this['revisionNameInputView']['fieldView']['element']['value']=_0x5edb80['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5e5446){const _0x415e51=new at(this['locale'],ti),_0x13fd9c=_0x415e51['fieldView'];_0x13fd9c['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x14a2d6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5e5446&&(_0x14a2d6+='\x20('+m(this['locale'],'optional')+')'),(_0x415e51['label']=_0x14a2d6,_0x13fd9c['on']('input',()=>{this['revisionNameInputValue']=_0x13fd9c['element']['value']['trim']();}),_0x415e51);}}class f extends _0x4c6b5c{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x59f3fe=this['editor'],_0xe36a9e=_0x59f3fe['plugins']['get']('RevisionTracker');_0x59f3fe['ui']['componentFactory']['add']('revisionHistory',_0x595042=>{const _0x35d9fe=_0x38955c(_0x595042),_0x1629ff=_0x35d9fe['panelView']['children'],_0x2689c7=new _0x5e932b(_0x595042),_0x4fd6e6=new te(_0x595042),_0x941c9e=new _0x5027d7(_0x595042),_0x59398c=new te(_0x595042),_0x14dc57=new _0x5027d7(_0x595042);return _0x35d9fe['bind']('isEnabled')['to'](_0xe36a9e,'isReady',_0xe36a9e,'isEnabled',_0x59f3fe,'isReadOnly',(_0x29fc83,_0x40e2fd,_0x18dde1)=>_0x29fc83&&_0x40e2fd&&!_0x18dde1),_0x35d9fe['buttonView']['set']({'icon':_0x173409,'label':m(_0x595042,'Revision\x20history'),'tooltip':!0x0}),_0x941c9e['set']({'label':m(_0x595042,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x941c9e['bind']('isEnabled')['to'](_0xe36a9e,'isReady',_0xe36a9e,'isEnabled',_0x59f3fe,'isReadOnly',(_0xf40ce9,_0x2985eb,_0xd32931)=>_0xf40ce9&&_0x2985eb&&!_0xd32931),_0x941c9e['on']('execute',()=>this['_showDialog']()),_0x14dc57['set']({'label':m(_0x595042,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x14dc57['bind']('isEnabled')['to'](_0xe36a9e,'isReady',_0x59f3fe,'isReadOnly',(_0x32c3b7,_0x34e153)=>_0x32c3b7&&!_0x34e153),_0x14dc57['on']('execute',()=>{_0x59f3fe['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x35d9fe['isOpen']=!0x1,_0x59f3fe['editing']['view']['focus']();}),_0x4fd6e6['children']['add'](_0x941c9e),_0x59398c['children']['add'](_0x14dc57),_0x2689c7['role']='menu',_0x2689c7['items']['addMany']([_0x4fd6e6,_0x59398c]),_0x1629ff['add'](_0x2689c7),_0x35d9fe;}),_0x59f3fe['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1b14f2=this['editor'],_0x71b48d=_0x1b14f2['locale'],_0x15e2d3=new _0x112858(_0x71b48d),_0x2eb491=new _0x4f405c(_0x71b48d);_0x15e2d3['buttonView']['set']({'icon':_0x173409,'label':m(_0x71b48d,'Revision\x20history')});const _0x4e87c5=new _0xe409f2(_0x71b48d,_0x15e2d3),_0x21a17f=new _0x5ce175(_0x71b48d);_0x21a17f['set']({'label':m(_0x71b48d,'Save\x20current\x20revision')}),_0x21a17f['delegate']('execute')['to'](_0x15e2d3),_0x21a17f['on']('execute',()=>{this['_showDialog']();}),_0x4e87c5['children']['add'](_0x21a17f),_0x2eb491['items']['add'](_0x4e87c5);const _0x2fe0ac=new _0xe409f2(_0x71b48d,_0x15e2d3),_0x21f7b7=new _0x5ce175(_0x71b48d);return _0x21f7b7['set']({'label':m(_0x71b48d,'Open\x20revision\x20history')}),_0x21f7b7['delegate']('execute')['to'](_0x15e2d3),_0x21f7b7['on']('execute',()=>{_0x1b14f2['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2fe0ac['children']['add'](_0x21f7b7),_0x2eb491['items']['add'](_0x2fe0ac),_0x15e2d3['panelView']['children']['add'](_0x2eb491),_0x15e2d3;}['_showDialog'](){const _0x1dadb7=this['editor'],_0x597279=_0x1dadb7['locale'],_0x39dba1=_0x1dadb7['plugins']['get']('Dialog'),_0x8dbb2e=_0x1dadb7['plugins']['get']('RevisionTracker');function _0x4387a3(_0x4374e9){_0x1dadb7['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4374e9['revisionName']?_0x4374e9['revisionNameInputView']['errorText']=m(_0x597279,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1dadb7['plugins']['get'](u)['saveRevision']({'name':_0x4374e9['revisionName']}),_0x39dba1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4387a3(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x39dba1['show']({'id':'revisionSave','title':m(_0x597279,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1dadb7['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x39dba1['hide']()},{'label':m(_0x1dadb7['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x440f27){_0x440f27['bind']('isEnabled')['to'](_0x8dbb2e,'isReady',_0x8dbb2e,'isEnabled',_0x1dadb7,'isReadOnly',(_0xb21078,_0x4ff817,_0x62772d)=>_0xb21078&&_0x4ff817&&!_0x62772d);},'onExecute':()=>_0x4387a3(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xb48b98=this['editor'],_0x69b574=_0xb48b98['locale'];this['_saveRevisionFormView']=new os(_0x69b574,_0xb48b98['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x1e62c1{['changeId'];['_model'];constructor(_0x4eabad,_0x1f007d){super(_0x4eabad),this['_model']=_0x1f007d,this['changeId']=_0x1f007d['id'];const _0x43947e=this['bindTemplate'],_0x471ac=m(_0x4eabad,_0x1f007d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1f007d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1f007d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x43947e['to']('type',_0x3fd7fc=>'ck-revision-change__'+_0x3fd7fc)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x471ac}]},{'text':'\x20'+_0x1f007d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x2ec70d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x42d0dd){super(),this['id']=_0x42d0dd['id']||_0x4cbb6f(),this['author']=_0x42d0dd['author'],this['type']=_0x42d0dd['type'],this['data']=_0x42d0dd['data']||{},this['rootName']=_0x42d0dd['rootName'],this['set']('createdAt',_0x42d0dd['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x47c29b,_0x1f17ad){this['newRevisionId']=_0x47c29b,this['oldRevisionId']=_0x1f17ad,this['changes']=new _0x275f31();}['_setChanges'](_0x526a2f){for(const _0x21e3e1 of _0x526a2f)this['changes']['add'](_0x21e3e1);}}const Y={'c':_0x31649a,'a':_0x5b3914,'e':_0x2d74c2,'r':_0x25d51a,'u':_0x3ef975};class d extends _0x4c6b5c{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4e0150,_0x13013a,j];}constructor(_0x465c9e){super(_0x465c9e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0xf5ae85,_0x593091,_0x2e5753)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x562a12=>{for(const _0x42612f of this['editor']['editing']['view']['document']['roots'])_0x2e5753?_0x562a12['removeClass']('ck-editor__editable__overlay',_0x42612f):_0x562a12['addClass']('ck-editor__editable__overlay',_0x42612f);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x34b775=>null!==_0x34b775),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x41c394,_0x46fa28,_0xb2d6b3)=>_0x41c394&&_0xb2d6b3?_0x46fa28['changes']['getIndex'](_0xb2d6b3):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf8a2b,_0x5517f5)=>_0xf8a2b?_0x5517f5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x13013a);}['init'](){const _0x1026c6=this['editor'],_0x13447c=new yt(_0x1026c6,{'direction':'backward'}),_0x6634d1=new yt(_0x1026c6,{'direction':'forward'});(_0x1026c6['commands']['add']('showPreviousChange',_0x13447c),_0x1026c6['commands']['add']('showNextChange',_0x6634d1),_0x1026c6['commands']['add']('restoreRevision',new _t(_0x1026c6)),this['on']('change:numberOfChanges',()=>{_0x13447c['refresh'](),_0x6634d1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1026c6['enableReadOnlyMode']('revision-viewer'),_0x1026c6['plugins']['has']('WidgetToolbarRepository'))&&_0x1026c6['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x563490){await this['loadRevisionData'](_0x563490);const _0x31bc05={};for(const _0x41a3d6 in _0x563490['diffData']){if(_0x563490['diffData'][_0x41a3d6]['attachChange']&&!_0x563490['diffData'][_0x41a3d6]['attachChange']['isAttached'])continue;const _0x56b643=this['_removeRevisionMarkers'](JSON['parse'](_0x563490['diffData'][_0x41a3d6]['insertions'])),_0x3016d0=this['editor']['editing']['view']['document'],_0x15f14a=new _0x493bbf(_0x3016d0,_0x56b643['map'](_0x43fcc1=>this['_getViewObj'](_0x43fcc1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x31bc05[_0x41a3d6]=this['editor']['data']['processor']['toData'](_0x15f14a),this['editor']['data']['processor']['useFillerType']('default');}return _0x31bc05;}async['getRevisionRootsAttributes'](_0x80361){await this['loadRevisionData'](_0x80361);const _0xe848a0={};for(const _0x51ec1c in _0x80361['diffData'])_0x80361['diffData'][_0x51ec1c]['attachChange']&&!_0x80361['diffData'][_0x51ec1c]['attachChange']['isAttached']||(_0xe848a0[_0x51ec1c]=_0x80361['diffData'][_0x51ec1c]['attributesAfter']||{});return _0xe848a0;}['_removeRevisionMarkers'](_0x1e45cf){return(_0x1e45cf=_0x1e45cf['filter'](_0x495c78=>!_0x495c78['name']||'revision-start'!==_0x495c78['name']&&'revision-end'!==_0x495c78['name']))['forEach'](_0x77f7e8=>{'string'!=typeof _0x77f7e8&&(_0x77f7e8['children']=this['_removeRevisionMarkers'](_0x77f7e8['children']),_0x77f7e8['attributes']=_0x77f7e8['attributes']['filter'](_0x208022=>!_0x208022[0x0]['startsWith']('data-revision-')));}),_0x1e45cf;}async['compare'](_0x2bf9b9,_0xbe1f84,_0x1e74d2=!0x1){if(!this['isEnabled'])return;const _0x31b7ff=this['diff'],_0x30e7c3=this['repository'],_0x280e1e='string'==typeof _0x2bf9b9?_0x30e7c3['getRevision'](_0x2bf9b9):_0x2bf9b9,_0x3fff14='string'==typeof _0xbe1f84?_0x30e7c3['getRevision'](_0xbe1f84):_0xbe1f84,_0x354851=_0x280e1e['id'],_0x2738bc=_0x3fff14?_0x3fff14['id']:null;if(!_0x1e74d2&&this['diff']&&this['diff']['newRevisionId']===_0x354851&&this['diff']['oldRevisionId']===_0x2738bc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x354851,_0x2738bc);const _0x552f35=this['_getRevisionsRange'](_0x280e1e,_0x3fff14,!0x0)['map'](_0x498d8a=>this['loadRevisionData'](_0x498d8a));return _0x552f35['push'](new Promise(_0x24254f=>{setTimeout(_0x24254f,0x14);})),Promise['all'](_0x552f35)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x44c4b4=this['_getDiff'](_0x354851,_0x2738bc);for(const _0x3c9295 of _0x44c4b4['changes'])this['_changeIdToChange']['set'](_0x3c9295['id'],_0x3c9295);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x423c23=>{for(const _0x31e2e5 of this['editor']['model']['document']['getRootNames']())_0x423c23['detachRoot'](_0x31e2e5);for(const _0x21372f of Object['keys'](_0x44c4b4['model'])){const _0x48102f=_0x423c23['addRoot'](_0x21372f);for(const _0x4b09fa of Object['keys'](_0x44c4b4['attributes'][_0x21372f]))_0x423c23['setAttribute'](_0x4b09fa,_0x44c4b4['attributes'][_0x21372f][_0x4b09fa],_0x48102f);_0x423c23['insert'](_0x44c4b4['model'][_0x21372f],_0x48102f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x44c4b4['changes'])),this['isReady']=!0x0;})['catch'](_0x62d976=>{console['error'](_0x62d976),this['_cleanUp'](),_0x31b7ff&&(this['diff']=_0x31b7ff),this['isReady']=!0x0;});}['addRevisionData'](_0x7568b,_0x9f8b9b){const _0x22111f=this['repository']['createRevision'](_0x7568b);return _0x22111f['on']('_update',(_0x255dac,_0x52184f,_0x51c863)=>_0x9f8b9b(_0x52184f,_0x51c863,_0x22111f)),this['repository']['addRevision'](_0x22111f),_0x22111f;}['loadRevisionData'](_0x290b3b){if(!_0x290b3b||_0x290b3b['diffData'])return Promise['resolve']();{const _0x430eda=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x430eda,'revisionId':_0x290b3b['id']})['then'](_0x5a8ac7=>{_0x290b3b['_update']({'diffData':_0x5a8ac7['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x44ae1b=>{for(const _0x55e121 of this['editor']['model']['document']['getRootNames']())_0x44ae1b['detachRoot'](_0x55e121);});}['_sortAndFilterDiffChanges'](_0x5e9723){const _0xa52c97=[],_0x59a6fc=new Map();for(const _0xce5433 of this['editor']['model']['document']['getRootNames']()){const _0xe9478f=this['editor']['editing']['view']['getDomRoot'](_0xce5433);if(!_0xe9478f)continue;const _0x1b20c2=_0xe9478f['getClientRects']()['item'](0x0);_0x1b20c2&&(_0xa52c97['push'](_0xce5433),_0x59a6fc['set'](_0xce5433,_0x1b20c2));}return _0xa52c97['sort']((_0x1465d5,_0x152507)=>{const _0x43f8bd=_0x59a6fc['get'](_0x1465d5),_0x22ae85=_0x59a6fc['get'](_0x152507);return _0x43f8bd['y']-_0x22ae85['y']||_0x43f8bd['x']-_0x22ae85['x'];}),(_0x5e9723=_0x5e9723['filter'](_0x1a46d3=>_0xa52c97['includes'](_0x1a46d3['rootName'])))['sort']((_0x1db4f6,_0x42f4d3)=>_0xa52c97['indexOf'](_0x1db4f6['rootName'])-_0xa52c97['indexOf'](_0x42f4d3['rootName'])),_0x5e9723;}['_makeTape'](_0x865f9e){const _0x2cbb04=Array['from'](_0x865f9e['markers'])['filter'](([_0x18dde4,_0x459005])=>_0x18dde4['startsWith']('revision:')&&!_0x459005['isCollapsed']),_0x50225a=Array['from'](this['editor']['model']['createRangeIn'](_0x865f9e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2cbb04['length'])for(const _0x59f385 of _0x50225a){const [_0x4ff398,_0x3cc9f5]=_0x2cbb04[0x0],[,_0x5ee8b0,_0x530cdd]=_0x4ff398['split'](':');if(_0x3cc9f5['end']['isEqual'](_0x59f385['nextPosition'])&&_0x2cbb04['shift'](),(_0x59f385['previousPosition']['isEqual'](_0x3cc9f5['start'])||_0x59f385['previousPosition']['isAfter'](_0x3cc9f5['start']))&&('insertion'==_0x5ee8b0?_0x59f385['isAdded']={'userId':_0x530cdd}:'deletion'==_0x5ee8b0&&(_0x59f385['isRemoved']={'userId':_0x530cdd})),0x0==_0x2cbb04['length'])break;}return _0x50225a;}['_refreshStartEndIndex'](_0x37732c){const _0x31bafd=new Map();for(let _0x1ec3ab=0x0;_0x1ec3ab<_0x37732c['length'];_0x1ec3ab++)'text'===_0x37732c[_0x1ec3ab]['type']?(_0x37732c[_0x1ec3ab]['item']['startIndex']=_0x1ec3ab,_0x37732c[_0x1ec3ab]['item']['endIndex']=_0x1ec3ab):('elementStart'===_0x37732c[_0x1ec3ab]['type']?_0x37732c[_0x1ec3ab]['item']['startIndex']=_0x1ec3ab:'elementEnd'===_0x37732c[_0x1ec3ab]['type']&&(_0x37732c[_0x1ec3ab]['item']['endIndex']=_0x1ec3ab),_0x31bafd['set'](_0x37732c[_0x1ec3ab]['id'],_0x1ec3ab));for(const _0x4d605d of _0x31bafd['values']())'elementStart'===_0x37732c[_0x4d605d]['type']?_0x37732c[_0x4d605d]['item']['endIndex']=_0x31bafd['get'](_0x37732c[_0x4d605d]['pairId']):'elementEnd'===_0x37732c[_0x4d605d]['type']&&(_0x37732c[_0x4d605d]['item']['startIndex']=_0x31bafd['get'](_0x37732c[_0x4d605d]['pairId']));}['_processTape'](_0x25368e){for(let _0x50c8d2=0x0;_0x50c8d2<_0x25368e['length'];_0x50c8d2++){if('elementStart'===_0x25368e[_0x50c8d2]['type'])_0x25368e[_0x50c8d2]['item']['startIndex']=_0x50c8d2;else{if('elementEnd'===_0x25368e[_0x50c8d2]['type']){_0x25368e[_0x50c8d2]['item']['endIndex']=_0x50c8d2;const _0x1221b3=_0x25368e[_0x50c8d2]['item']['startIndex'];_0x25368e[_0x1221b3]['pairId']=_0x25368e[_0x50c8d2]['id'],_0x25368e[_0x50c8d2]['pairId']=_0x25368e[_0x1221b3]['id'];}else _0x25368e[_0x50c8d2]['item']['startIndex']=_0x50c8d2,_0x25368e[_0x50c8d2]['item']['endIndex']=_0x50c8d2,_0x25368e[_0x50c8d2]['pairId']=null;}_0x25368e[_0x50c8d2]['markersStart']||(_0x25368e[_0x50c8d2]['markersStart']=[],_0x25368e[_0x50c8d2]['markersEnd']=[]);}}['_markInsertions'](_0x2dad39,_0x40451a){const _0x4a9580=_0x2dad39['filter'](_0x274bbd=>!_0x274bbd['isAdded']);for(let _0x20c13d=0x0;_0x20c13d<_0x40451a['length'];_0x20c13d++)_0x40451a[_0x20c13d]['isAdded']&&(_0x4a9580[_0x20c13d]['isAdded']=_0x40451a[_0x20c13d]['isAdded']);}['_makeModelFromViewString'](_0x1b6977){const _0x222157=JSON['parse'](_0x1b6977),_0x39a60f=this['editor']['editing']['view']['document'],_0x20634f=new _0x493bbf(_0x39a60f,_0x222157['map'](_0xfe0b92=>this['_getViewObj'](_0xfe0b92)));return this['editor']['data']['toModel'](_0x20634f);}['_getViewObj'](_0x522ce1){const _0x10f7f9=this['editor']['editing']['view']['document'];if('string'==typeof _0x522ce1)return new _0x6510ab(_0x10f7f9,_0x522ce1);{const _0x19f8b6=_0x522ce1['children']['map'](_0x1aa1ba=>this['_getViewObj'](_0x1aa1ba));return new(Y[_0x522ce1['type']]||_0x5e7ab2)(_0x10f7f9,_0x522ce1['name'],_0x522ce1['attributes'],_0x19f8b6);}}['_getDiff'](_0x3075b9,_0x264ea2=null){const _0x2f5fe6=this['repository']['getRevision'](_0x3075b9),_0x4bdf3a=_0x264ea2?this['repository']['getRevision'](_0x264ea2):null,_0x4896b3=this['_getRevisionsRange'](_0x2f5fe6,_0x4bdf3a),_0x1ce3a9=_0x4896b3[_0x4896b3['length']-0x1],_0x277a15=new Map(),_0x3f9fdc={'model':{},'attributes':{},'changes':[]},_0xa99412=new Set(),_0x43429c=new Map();for(let _0x5087b3=_0x4896b3['length']-0x1;_0x5087b3>=0x0;_0x5087b3--){const _0x609b97=_0x4896b3[_0x5087b3];for(const _0x43caf2 of Object['keys'](_0x609b97['diffData']))if(_0x609b97['diffData'][_0x43caf2]['attachChange']){const _0x43e2a9=_0x609b97['diffData'][_0x43caf2]['attachChange'];_0x43e2a9['isAttached']?(_0xa99412['add'](_0x43caf2),_0x43429c['has'](_0x43caf2)&&_0x43429c['get'](_0x43caf2)['userId']==_0x43e2a9['userId']?_0x43429c['delete'](_0x43caf2):_0x43429c['set'](_0x43caf2,_0x43e2a9)):_0x43429c['has'](_0x43caf2)?(_0xa99412['delete'](_0x43caf2),_0x43429c['delete'](_0x43caf2)):(_0xa99412['add'](_0x43caf2),_0x43429c['set'](_0x43caf2,_0x43e2a9));}else _0xa99412['add'](_0x43caf2);}for(const _0x274ab0 of _0xa99412){const _0xc7b6f3=_0x43429c['has'](_0x274ab0)&&!_0x43429c['get'](_0x274ab0)['isAttached'];let _0x405a29=_0xc7b6f3?_0x4896b3['length']-0x1:0x0;const _0x406cdb=_0xc7b6f3?-0x1:0x1;for(;_0x4896b3[_0x405a29];){const _0x5aa098=_0x4896b3[_0x405a29];if(_0x5aa098['diffData'][_0x274ab0]){const _0x54000b=_0xc7b6f3?_0x5aa098['diffData'][_0x274ab0]['attributesBefore']:_0x5aa098['diffData'][_0x274ab0]['attributesAfter'];_0x3f9fdc['attributes'][_0x274ab0]=_0x54000b?_0x153ae3(_0x54000b):{};break;}_0x405a29+=_0x406cdb;}}for(const _0x4b473c of _0x4896b3){_0x4b473c['model']={};for(const _0x32c864 of _0x4b473c['authors'])_0x277a15['set'](_0x32c864['id'],_0x32c864);for(const _0x424fde of _0xa99412){const _0xb7478e=_0x4b473c['diffData'][_0x424fde]?_0x4b473c['diffData'][_0x424fde]['insertions']:'[]',_0x29e696=_0x4b473c['diffData'][_0x424fde]?_0x4b473c['diffData'][_0x424fde]['deletions']:'[]';_0x4b473c['model'][_0x424fde]={'insertions':this['_makeModelFromViewString'](_0xb7478e),'deletions':this['_makeModelFromViewString'](_0x29e696)};}}for(const _0x4e3bf6 of _0xa99412){let _0x595ef0=null,_0x4cce5b=0x0;const _0x5a8c15=new Map(Array['from'](_0x2f5fe6['model'][_0x4e3bf6]['insertions']['markers'])['filter'](([_0x184a1a])=>!_0x184a1a['startsWith']('revision:')));let _0xce7245=0x0;for(const _0x34377d of _0x4896b3){const _0xce6d4c=this['_makeTape'](_0x34377d['model'][_0x4e3bf6]['insertions']);_0x34377d==_0x2f5fe6?(_0x595ef0=_0xce6d4c,_0x4cce5b=_0x595ef0['length'],_0x595ef0['forEach'](_0xd43ccb=>{_0xd43ccb['id']=_0xce7245++;}),this['_processTape'](_0x595ef0)):this['_markInsertions'](_0x595ef0,_0xce6d4c);const _0x5344ec=_0x595ef0['filter'](_0x475dcb=>!_0x475dcb['isAdded'])['map'](_0x42d7db=>_0x42d7db['id']);let _0x17017e=0x0;const _0x3e102b=this['_makeTape'](_0x34377d['model'][_0x4e3bf6]['deletions']);_0x3e102b['forEach'](_0x1d05be=>{_0x1d05be['isRemoved']?_0x1d05be['id']=_0x4cce5b++:_0x1d05be['id']=_0x5344ec[_0x17017e++];}),this['_processTape'](_0x3e102b),this['_setDistance'](_0x595ef0,'isAdded'),this['_setDistance'](_0x3e102b,'isRemoved'),_0x34377d==_0x2f5fe6&&this['_markMarkers'](_0x595ef0,_0x5a8c15),_0x595ef0=this['_joinTapes'](_0x595ef0,_0x3e102b),this['_refreshStartEndIndex'](_0x595ef0),this['_setDistance'](_0x595ef0,'isRemoved');}_0x595ef0=_0x595ef0['filter'](_0x2b5ef9=>!(_0x2b5ef9['isAdded']&&_0x2b5ef9['isRemoved']));const _0x438da4=new Map(_0x1ce3a9['model'][_0x4e3bf6]['deletions']['markers']),_0x57cc71=new Set(_0x5a8c15['keys']());for(const _0x2ca578 of _0x438da4['keys']())_0x57cc71['delete'](_0x2ca578);this['_markSuggestions'](_0x595ef0,_0x57cc71),this['_fixObsoleteTags'](_0x595ef0),_0x595ef0=this['_removeMissingPairs'](_0x595ef0),_0x595ef0=this['_markMismatchedRemovedTags'](_0x595ef0),_0x595ef0=this['_removeUnsupportedChanges'](_0x595ef0);const {root:_0x201b0f,changes:_0x52568c}=this['_makeModelFromTape'](_0x595ef0,_0x277a15,_0x4e3bf6);_0x3f9fdc['model'][_0x4e3bf6]=_0x201b0f;const _0x191bda=_0x43429c['get'](_0x4e3bf6);if(_0x191bda){const _0x28ad4c=_0x277a15['get'](_0x191bda['userId']),_0x4cbb29=new r({'author':_0x28ad4c,'type':_0x191bda['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4e3bf6});_0x52568c['unshift'](_0x4cbb29),_0x3f9fdc['attributes'][_0x4e3bf6]['revisionHistoryAttachChange']=_0x4cbb29['id'];}_0x3f9fdc['changes']=_0x3f9fdc['changes']['concat'](_0x52568c);}return _0x3f9fdc;}['_markMarkers'](_0x1bbe7c,_0x3b699c){for(let _0x4deb63=0x0;_0x4deb63<_0x1bbe7c['length'];_0x4deb63++)for(const [_0xf9cf8a,_0x452032]of _0x3b699c)_0x452032['start']['isEqual'](_0x1bbe7c[_0x4deb63]['previousPosition'])&&_0x1bbe7c[_0x4deb63]['markersStart']['push'](_0xf9cf8a),_0x452032['end']['isEqual'](_0x1bbe7c[_0x4deb63]['nextPosition'])&&_0x1bbe7c[_0x4deb63]['markersEnd']['push'](_0xf9cf8a);}['_joinTapes'](_0x32a6ac,_0x4c0b93){let _0x227728=[],_0x27db39=0x0,_0x4e2011=0x0;for(;_0x27db39<_0x32a6ac['length']||_0x4e2011<_0x4c0b93['length'];){const _0x54d3a7=_0x32a6ac[_0x27db39]||{},_0xfe62cf=_0x4c0b93[_0x4e2011]||{};if(_0x54d3a7['id']==_0xfe62cf['id'])_0x27db39++,_0x4e2011++,_0x227728['push'](_0x54d3a7);else{if(_0xfe62cf['isRemoved']&&_0x54d3a7['isAdded']){const {commonTape:_0x44abdc,iEnd:_0x289766,jEnd:_0x2f78c2}=this['_threeWayMerge'](_0x32a6ac,_0x27db39,_0x4c0b93,_0x4e2011);_0x227728=_0x227728['concat'](_0x44abdc),_0x27db39=_0x289766,_0x4e2011=_0x2f78c2;}else _0xfe62cf['isRemoved']?(_0x4e2011++,_0x227728['push'](_0xfe62cf)):(_0x27db39++,_0x227728['push'](_0x54d3a7));}}return _0x227728;}['_markSuggestions'](_0x2b1c71,_0x3fa92a){const _0xc8cb6=[];for(let _0x1d19df=0x0;_0x1d19df<_0x2b1c71['length'];_0x1d19df++){for(let _0x5c10fa=0x0;_0x5c10fa<_0x2b1c71[_0x1d19df]['markersStart']['length'];_0x5c10fa++){const _0x569f99=_0x2b1c71[_0x1d19df]['markersStart'][_0x5c10fa];if(!_0x3fa92a['has'](_0x569f99))continue;const {group:_0x2fcaaa,type:_0x1d9bf2,authorId:_0x2c5681}=_0xaa0f48(_0x569f99);'revision-suggestion'!=_0x2fcaaa||'insertion'!=_0x1d9bf2&&'deletion'!=_0x1d9bf2||(_0xc8cb6['unshift']({'type':_0x1d9bf2,'name':_0x569f99,'userId':_0x2c5681}),_0x2b1c71[_0x1d19df]['markersStart']['splice'](_0x5c10fa,0x1),_0x5c10fa--);}_0x5e5ec1(_0x2b1c71[_0x1d19df]);for(let _0x35f61a=0x0;_0x35f61a<_0x2b1c71[_0x1d19df]['markersEnd']['length'];_0x35f61a++){const _0x57684e=_0x2b1c71[_0x1d19df]['markersEnd'][_0x35f61a];if(!_0x3fa92a['has'](_0x57684e))continue;const {group:_0x57a464,type:_0x3cb76b}=_0xaa0f48(_0x57684e);if('revision-suggestion'!=_0x57a464||'insertion'!=_0x3cb76b&&'deletion'!=_0x3cb76b)continue;_0x2b1c71[_0x1d19df]['markersEnd']['splice'](_0x35f61a,0x1),_0x35f61a--;const _0xc28fea=_0xc8cb6['findIndex'](_0x1bfccd=>_0x1bfccd['name']==_0x57684e);_0xc28fea>-0x1&&_0xc8cb6['splice'](_0xc28fea,0x1);}}function _0xaa0f48(_0x139c35){const _0x4dc599=_0x139c35['split'](':');return{'group':_0x4dc599[0x0],'type':_0x4dc599[0x1],'subType':_0x4dc599['length']>=0x5?_0x4dc599[0x2]:null,'id':_0x4dc599['length']<0x5?_0x4dc599[0x2]:_0x4dc599[0x3],'authorId':_0x4dc599['length']<0x5?_0x4dc599[0x3]:_0x4dc599[0x4],'markerCount':0x6==_0x4dc599['length']?_0x4dc599[0x5]:null};}function _0x5e5ec1(_0x7ca797){for(let _0x44c8a1=0x0;_0x44c8a1<_0xc8cb6['length'];_0x44c8a1++){if(_0x7ca797['isAdded']&&'insertion'==_0xc8cb6[_0x44c8a1]['type'])return _0x7ca797['isAddSuggestion']=_0xc8cb6[_0x44c8a1],void delete _0x7ca797['isAdded'];if(!_0x7ca797['isAdded']&&!_0x7ca797['isRemoved']&&'deletion'==_0xc8cb6[_0x44c8a1]['type'])return void(_0x7ca797['isRemoveSuggestion']=_0xc8cb6[_0x44c8a1]);}}}['_setDistance'](_0x2f9aa9,_0x2a0b7b){let _0x2f9180=0x0,_0x33380b=!0x1;const _0x34fabe=new Map();for(const _0x44540e of _0x2f9aa9)_0x44540e[_0x2a0b7b]?_0x33380b&&(_0x2f9180++,_0x33380b=!0x1):(_0x2f9180++,_0x33380b=!0x0),_0x34fabe['set'](_0x44540e['id'],_0x2f9180);for(let _0x423bad=0x0;_0x423bad<_0x2f9aa9['length'];_0x423bad++){if('isRemoved'==_0x2a0b7b&&_0x2f9aa9[_0x423bad]['isAdded']||'isAdded'==_0x2a0b7b&&_0x2f9aa9[_0x423bad]['isRemoved'])continue;if('text'==_0x2f9aa9[_0x423bad]['type']){_0x2f9aa9[_0x423bad]['distance']=0x0;continue;}const _0x378d99=_0x34fabe['get'](_0x2f9aa9[_0x423bad]['pairId']),_0x1690a3=_0x34fabe['get'](_0x2f9aa9[_0x423bad]['id']);_0x2f9aa9[_0x423bad]['distance']=_0x378d99-_0x1690a3;}}['_getRevisionsRange'](_0x3d8925,_0x5e9b39,_0x29ab04=!0x1){const _0x21a77c=[];let _0x340b45=this['repository']['getIndex'](_0x3d8925),_0x2bc77=this['repository']['getIndex'](_0x5e9b39);for(-0x1==_0x2bc77&&(_0x2bc77=this['repository']['_revisions']['length'],_0x29ab04=!0x1);_0x340b45<_0x2bc77;)_0x21a77c['push'](this['repository']['getRevision'](_0x340b45)),_0x340b45++;return _0x29ab04&&_0x21a77c['push'](this['repository']['getRevision'](_0x340b45)),_0x21a77c;}['_threeWayMerge'](_0x33c401,_0x29fab3,_0x76c6e4,_0x4c0275){const _0x230e18=this['editor']['model']['schema'];let _0x2fd948=_0x29fab3;for(;_0x33c401[_0x2fd948]&&_0x33c401[_0x2fd948]['isAdded'];)_0x2fd948++;let _0x47e487=_0x4c0275;for(;_0x76c6e4[_0x47e487]&&_0x76c6e4[_0x47e487]['isRemoved'];)_0x47e487++;_0x5cbe40(_0x33c401,_0x29fab3,_0x2fd948),_0x5cbe40(_0x76c6e4,_0x4c0275,_0x47e487);const _0x106d71=_0x76c6e4['slice'](_0x4c0275,_0x47e487)['concat'](_0x33c401['slice'](_0x29fab3,_0x2fd948));return _0x106d71['sort']((_0xb951ac,_0x57de52)=>_0xb951ac['side']!=_0x57de52['side']?_0xb951ac['side']-_0x57de52['side']:_0xb951ac['level']!=_0x57de52['level']?_0xb951ac['level']-_0x57de52['level']:_0xb951ac['distance']!=_0x57de52['distance']?_0x57de52['distance']-_0xb951ac['distance']:!!_0xb951ac['isAdded']!=!!_0x57de52['isAdded']?-0x1==_0xb951ac['side']||0x0==_0xb951ac['side']?_0xb951ac['isAdded']?-0x1:0x1:_0xb951ac['isAdded']?0x1:-0x1:_0xb951ac['index']-_0x57de52['index']),{'commonTape':_0x106d71,'iEnd':_0x2fd948,'jEnd':_0x47e487};function _0x5cbe40(_0x3d9df8,_0xfa8ed3,_0x32a630){let _0x1829de=-0x1,_0x50b264=Number['POSITIVE_INFINITY'],_0x13a214=!0x0;for(let _0x29e128=_0xfa8ed3;_0x29e128<_0x32a630;_0x29e128++)if(_0x230e18['isInline'](_0x3d9df8[_0x29e128]['item'])||(_0x13a214=!0x1),_0x3d9df8[_0x29e128]['item']['startIndex']<_0xfa8ed3&&(_0x1829de=_0x29e128),_0x3d9df8[_0x29e128]['item']['endIndex']>=_0x32a630){_0x50b264=_0x29e128;break;}_0x13a214&&(_0x1829de=_0x32a630-0x1);for(let _0x4664b8=_0xfa8ed3;_0x4664b8<_0x32a630;_0x4664b8++)_0x3d9df8[_0x4664b8]['side']=_0x4664b8<=_0x1829de?-0x1:_0x4664b8<_0x50b264?0x0:0x1,_0x3d9df8[_0x4664b8]['index']=_0x4664b8;let _0x5a4864=0x0;for(let _0x2d8ffc=_0xfa8ed3;_0x2d8ffc<=_0x1829de;_0x2d8ffc++)0x0==_0x3d9df8[_0x2d8ffc]['distance']?_0x3d9df8[_0x2d8ffc]['level']=_0x5a4864:(_0x5a4864++,_0x3d9df8[_0x2d8ffc]['level']=_0x5a4864,_0x5a4864++);for(let _0x31f99b=_0xfa8ed3;_0x31f99b<_0x32a630;_0x31f99b++)0x0==_0x3d9df8[_0x31f99b]['side']&&(_0x3d9df8[_0x31f99b]['level']=_0x5a4864);_0x5a4864=0x0;for(let _0x24a184=_0x32a630-0x1;_0x24a184>=_0x50b264;_0x24a184--)0x0==_0x3d9df8[_0x24a184]['distance']?_0x3d9df8[_0x24a184]['level']=_0x5a4864:(_0x5a4864--,_0x3d9df8[_0x24a184]['level']=_0x5a4864,_0x5a4864--);}}['_fixObsoleteTags'](_0x5b32b3){const _0x2d9dc7=new Map(),_0x2252bc=this['editor']['model']['schema'];for(let _0x49effe=0x1;_0x49effe<_0x5b32b3['length'];_0x49effe++){let _0x39b5a8,_0x33e83,_0x144fcf;const _0x21989e=_0x5b32b3[_0x49effe],_0x2e7e4d=_0x5b32b3[_0x49effe-0x1];if('text'==_0x21989e['type'])continue;if(_0x21989e['type']!=_0x2e7e4d['type'])continue;if(!_0x2252bc['isBlock'](_0x2e7e4d['item'])||_0x2252bc['isLimit'](_0x2e7e4d['item']))continue;if(!_0x2252bc['isBlock'](_0x21989e['item'])||_0x2252bc['isLimit'](_0x21989e['item']))continue;if((_0x5b32b3[_0x49effe]['isAdded']||_0x5b32b3[_0x49effe]['isAddSuggestion'])&&_0x5b32b3[_0x49effe-0x1]['isRemoved'])_0x39b5a8=_0x5b32b3[_0x49effe],_0x33e83=_0x5b32b3[_0x49effe-0x1],_0x144fcf=_0x49effe-0x1;else{if(!_0x5b32b3[_0x49effe]['isRemoved']||!_0x5b32b3[_0x49effe-0x1]['isAdded']&&!_0x5b32b3[_0x49effe-0x1]['isAddSuggestion'])continue;_0x39b5a8=_0x5b32b3[_0x49effe-0x1],_0x33e83=_0x5b32b3[_0x49effe],_0x144fcf=_0x49effe;}const _0x20f364=_0x39b5a8['level']==_0x33e83['level'],_0x5063e6=Math['abs'](_0x39b5a8['level'])<Math['abs'](_0x33e83['level'])&&0x0==_0x33e83['distance'];(_0x20f364||_0x5063e6)&&(_0x2d9dc7['set'](_0x33e83['id'],_0x39b5a8['id']),_0x5b32b3['splice'](_0x144fcf,0x1),_0x49effe--,_0x39b5a8['isAdded']=!0x1);}for(let _0x2fce03=0x0;_0x2fce03<_0x5b32b3['length'];_0x2fce03++)_0x2d9dc7['has'](_0x5b32b3[_0x2fce03]['pairId'])&&(_0x5b32b3[_0x2fce03]['pairId']=_0x2d9dc7['get'](_0x5b32b3[_0x2fce03]['pairId']));}['_removeMissingPairs'](_0x23a227){const _0x3961b3=new Set(_0x23a227['map'](_0x5496ad=>_0x5496ad['id']));for(let _0x3e92c7=0x0;_0x3e92c7<_0x23a227['length'];_0x3e92c7++)_0x3961b3['has'](_0x23a227[_0x3e92c7]['pairId'])||0x0==_0x23a227[_0x3e92c7]['distance']||(_0x23a227[_0x3e92c7]['isIncorrect']=!0x0);return _0x23a227['filter'](_0x2f80c4=>!_0x2f80c4['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3f13f1){const _0x40f25c=new Set();for(let _0x10a05e=0x0;_0x10a05e<_0x3f13f1['length'];_0x10a05e++){if(_0x40f25c['has'](_0x3f13f1[_0x10a05e]['id'])&&_0x3f13f1[_0x10a05e]['isRemoved']&&(_0x3f13f1[_0x10a05e]['isIncorrect']=!0x0),_0x3f13f1[_0x10a05e]['isIncorrect'])continue;if(0x0==_0x3f13f1[_0x10a05e]['distance'])continue;if('elementStart'!=_0x3f13f1[_0x10a05e]['type'])continue;if(null==_0x3f13f1[_0x10a05e]['pairId'])continue;let _0x353b0a=_0x10a05e+0x1,_0x441a3c=0x0;for(;_0x3f13f1[_0x353b0a]['id']!=_0x3f13f1[_0x10a05e]['pairId'];)'elementStart'==_0x3f13f1[_0x353b0a]['type']?_0x441a3c++:'elementEnd'==_0x3f13f1[_0x353b0a]['type']&&_0x441a3c--,_0x353b0a++;if(0x0!=_0x441a3c){if(_0x3f13f1[_0x10a05e]['isRemoved'])_0x3f13f1[_0x10a05e]['isIncorrect']=!0x0;else{for(;_0x353b0a!=_0x10a05e;)_0x3f13f1[_0x353b0a]['isRemoved']&&0x0!=_0x3f13f1[_0x353b0a]['distance']&&(_0x3f13f1[_0x353b0a]['isIncorrect']=!0x0,_0x40f25c['add'](_0x3f13f1[_0x353b0a]['pairId'])),_0x353b0a--;}}}return _0x3f13f1['filter'](_0x146f2c=>!_0x146f2c['isIncorrect']);}['_removeUnsupportedChanges'](_0x445fea){const _0x2c06d3=this['editor']['model']['schema'];for(let _0x109554=0x0;_0x109554<_0x445fea['length'];_0x109554++){if(!(_0x445fea[_0x109554]['isAdded']||_0x445fea[_0x109554]['isAddSuggestion']||_0x445fea[_0x109554]['isRemoved']||_0x445fea[_0x109554]['isRemoveSuggestion']))continue;if(0x0==_0x445fea[_0x109554]['distance'])continue;const _0x3c1d63=_0x445fea[_0x109554]['item'];_0x2c06d3['isBlock'](_0x3c1d63)||_0x2c06d3['isLimit'](_0x3c1d63)||(_0x445fea[_0x109554]['isAdded']&&delete _0x445fea[_0x109554]['isAdded'],_0x445fea[_0x109554]['isAddSuggestion']&&delete _0x445fea[_0x109554]['isAddSuggestion'],_0x445fea[_0x109554]['isRemoveSuggestion']&&delete _0x445fea[_0x109554]['isRemoveSuggestion'],_0x445fea[_0x109554]['isRemoved']&&(_0x445fea[_0x109554]['isIncorrect']=!0x0));}return _0x445fea['filter'](_0x2cdca2=>!_0x2cdca2['isIncorrect']);}['_makeModelFromTape'](_0x1c89d0,_0x4a23c1,_0x5c77e4){const _0x361e28=new gt(),_0x22e872=[],_0x775053=new Map(),_0x366da4=this['editor']['model'],_0x110010=_0x366da4['schema'],_0x57679c=[_0x361e28],_0x55711e={},_0x29b20e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2c763d=null;const _0x12f7f0=[0x0];for(let _0x50382c=0x0;_0x50382c<_0x1c89d0['length'];_0x50382c++)if('elementStart'===_0x1c89d0[_0x50382c]['type']){_0x1c89d0[_0x50382c]['previousPosition']=_0x366da4['createPositionFromPath'](_0x361e28,_0x12f7f0);const _0x2839db=new ut(_0x1c89d0[_0x50382c]['item']['name'],_0x1c89d0[_0x50382c]['item']['getAttributes']());_0x57679c[0x0]['_appendChild'](_0x2839db),_0x12f7f0['push'](0x0),_0x57679c['unshift'](_0x2839db),_0x1c89d0[_0x50382c]['nextPosition']=_0x366da4['createPositionFromPath'](_0x361e28,_0x12f7f0);}else'elementEnd'===_0x1c89d0[_0x50382c]['type']?(_0x57679c['shift'](),_0x1c89d0[_0x50382c]['previousPosition']=_0x366da4['createPositionFromPath'](_0x361e28,_0x12f7f0),_0x12f7f0['pop'](),_0x12f7f0[_0x12f7f0['length']-0x1]++,_0x1c89d0[_0x50382c]['nextPosition']=_0x366da4['createPositionFromPath'](_0x361e28,_0x12f7f0)):(_0x1c89d0[_0x50382c]['previousPosition']=_0x366da4['createPositionFromPath'](_0x361e28,_0x12f7f0),_0x2c763d?_0x2c763d['_data']+=_0x1c89d0[_0x50382c]['item']['data']:_0x2c763d=new wt(_0x1c89d0[_0x50382c]['item']['data'],_0x1c89d0[_0x50382c]['item']['getAttributes']()),_0x1c89d0[_0x50382c+0x1]&&'text'===_0x1c89d0[_0x50382c+0x1]['type']&&_0x49fcd3(_0x2c763d,_0x1c89d0[_0x50382c+0x1]['item'])||(_0x57679c[0x0]['_appendChild'](_0x2c763d),_0x2c763d=null),_0x12f7f0[_0x12f7f0['length']-0x1]+=_0x1c89d0[_0x50382c]['item']['offsetSize'],_0x1c89d0[_0x50382c]['nextPosition']=_0x366da4['createPositionFromPath'](_0x361e28,_0x12f7f0));for(let _0x31d2b8=0x0;_0x31d2b8<_0x1c89d0['length'];_0x31d2b8++){const _0x5ec755=_0x1c89d0[_0x31d2b8]['previousPosition'],_0x1bf07a=_0x1c89d0[_0x31d2b8]['nextPosition'];for(const _0x44ecf9 of _0x1c89d0[_0x31d2b8]['markersStart'])_0x775053['set'](_0x44ecf9,{'start':_0x5ec755,'end':null});_0x1f121b('isRemoveSuggestion',_0x31d2b8,_0x5ec755,_0x1bf07a),_0x1f121b('isAddSuggestion',_0x31d2b8,_0x5ec755,_0x1bf07a),_0x1f121b('isRemoved',_0x31d2b8,_0x5ec755,_0x1bf07a),_0x1f121b('isAdded',_0x31d2b8,_0x5ec755,_0x1bf07a);for(const _0x1f5ac8 of _0x1c89d0[_0x31d2b8]['markersEnd']){_0x775053['get'](_0x1f5ac8)['end']=_0x1bf07a;}}for(const [_0x52f909,_0x214ba8]of _0x775053){const _0x5ddbd5=this['editor']['model']['createRange'](_0x214ba8['start'],_0x214ba8['end']);_0x361e28['markers']['set'](_0x52f909,_0x5ddbd5);}return _0x22e872['sort']((_0x2322dd,_0x118edb)=>{const _0x3021fc=_0x361e28['markers']['get']('revision:'+_0x2322dd['id']),_0x529a32=_0x361e28['markers']['get']('revision:'+_0x118edb['id']);return _0x3021fc['start']['isBefore'](_0x529a32['start'])?-0x1:_0x3021fc['start']['isAfter'](_0x529a32['start'])?0x1:_0x3021fc['end']['isBefore'](_0x529a32['end'])?-0x1:_0x3021fc['end']['isAfter'](_0x529a32['end'])?0x1:'add'===_0x2322dd['type']?-0x1:0x1;}),{'root':_0x361e28,'changes':_0x22e872};function _0x1f121b(_0x494504,_0x1d15d3,_0x4b52d6,_0x4727b9){const _0x3607a5=!!_0x1c89d0[_0x1d15d3][_0x494504],_0x5eeb60=_0x3607a5?_0x1c89d0[_0x1d15d3][_0x494504]['userId']:null,_0x20664d=_0x1d15d3===_0x1c89d0['length']-0x1,_0x3be126=_0x29b20e[_0x494504][0x0],_0x32ea59=_0x110010['isObject'](_0x1c89d0[_0x1d15d3]['item']);!_0x55711e[_0x494504]&&_0x3607a5?_0x55711e[_0x494504]={'start':_0x4b52d6,'tapeItem':_0x1c89d0[_0x1d15d3],'userId':_0x5eeb60,'type':_0x494504}:_0x55711e[_0x494504]&&!_0x3607a5?(_0x55711e[_0x494504]['end']=_0x4b52d6,_0x2ec5dc(_0x55711e[_0x494504]),_0x55711e[_0x494504]=null):_0x55711e[_0x494504]&&_0x3607a5&&_0x55711e[_0x494504]['userId']!==_0x5eeb60&&(_0x55711e[_0x494504]['end']=_0x4b52d6,_0x3be126&&_0x3be126['userId']===_0x55711e[_0x494504]['userId']||_0x2ec5dc(_0x55711e[_0x494504]),_0x55711e[_0x494504]={'start':_0x4b52d6,'tapeItem':_0x1c89d0[_0x1d15d3],'userId':_0x5eeb60,'type':_0x494504}),_0x55711e[_0x494504]&&_0x32ea59&&('elementStart'!==_0x1c89d0[_0x1d15d3]['type']||_0x3be126&&_0x3be126['userId']===_0x5eeb60||_0x29b20e[_0x494504]['unshift']({'userId':_0x5eeb60,'object':_0x1c89d0[_0x1d15d3]['item'],'change':_0x55711e[_0x494504]}),'elementEnd'===_0x1c89d0[_0x1d15d3]['type']&&_0x3be126&&_0x3be126['object']===_0x1c89d0[_0x1d15d3]['item']&&(_0x29b20e[_0x494504]['shift'](),_0x55711e[_0x494504]=_0x3be126['change'])),_0x55711e[_0x494504]&&_0x20664d&&(_0x55711e[_0x494504]['end']=_0x4727b9,_0x2ec5dc(_0x55711e[_0x494504]),_0x55711e[_0x494504]=null);}function _0x2ec5dc({start:_0x34459a,end:_0x463b81,tapeItem:_0x30f704,userId:_0x1a239f,type:_0x6a0392}){const _0x58a09c=_0x30f704['item'],_0x581d19=_0x366da4['schema']['isBlock'](_0x58a09c)&&!_0x366da4['schema']['isLimit'](_0x58a09c),_0x45fcd1=_0x34459a['nodeAfter']==_0x463b81['parent']&&_0x463b81['isAtStart'];if(_0x581d19&&_0x45fcd1)return;const _0x396488=_0x366da4['createRange'](_0x34459a,_0x463b81),_0x37db93=_0x4a23c1['get'](_0x1a239f),_0x3e941b=new r({'author':_0x37db93,'type':'isAdded'==_0x6a0392||'isAddSuggestion'==_0x6a0392?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x6a0392||'isRemoveSuggestion'==_0x6a0392},'createdAt':new Date(),'rootName':_0x5c77e4});_0x22e872['push'](_0x3e941b),_0x361e28['markers']['set']('revision:'+_0x3e941b['id'],_0x396488);}function _0x49fcd3(_0x9803a4,_0x44f9e7){const _0x2aaf0c=_0x9803a4['getAttributes'](),_0x5c8244=_0x44f9e7['getAttributes']();for(const _0x85bd96 of _0x2aaf0c){if(_0x85bd96[0x1]!==_0x44f9e7['getAttribute'](_0x85bd96[0x0]))return!0x1;_0x5c8244['next']();}return _0x5c8244['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3c7fa1=>{const _0x6571f7=_0x3c7fa1['markerName']['split'](':')[0x1],_0x4a139e=this['_getChangeFromId'](_0x6571f7);if(!_0x4a139e)return null;const _0x29de16='add'==_0x4a139e['type']?'insertion':'deletion',_0x548807=['ck-suggestion-marker','ck-suggestion-marker-'+_0x29de16];return _0x4a139e['data']['isSuggestion']&&_0x548807['push']('ck-suggestion-marker-'+_0x29de16+'-new'),this['activeChange']==_0x4a139e&&_0x548807['push']('ck-suggestion-marker--active'),{'classes':_0x548807,'attributes':{'data-change-id':_0x6571f7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xbdf3f2=>{_0xbdf3f2['on']('element:pre',(_0x4b4d7d,_0x305006,_0x14f78d)=>{const _0x136c1e=_0x305006['viewItem']['getChild'](0x0);if(!_0x136c1e||!_0x136c1e['is']('element','code'))return;if(!_0x14f78d['consumable']['consume'](_0x136c1e,{'attributes':['vid_start','vid_end']}))return;const _0x56c46c=_0x305006['modelRange']['start']['nodeAfter'];_0x14f78d['writer']['setAttribute']('vid_start',_0x136c1e['getAttribute']('vid_start'),_0x56c46c),_0x14f78d['writer']['setAttribute']('vid_end',_0x136c1e['getAttribute']('vid_end'),_0x56c46c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x332cc4=>{_0x332cc4['on']('element',(_0x4f2851,_0x3faf9a,_0x2fb5c5)=>{if(!_0x2fb5c5['consumable']['consume'](_0x3faf9a['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3faf9a['modelRange']['isCollapsed'])return;const _0x2e3340=_0x3faf9a['modelRange']['start']['nodeAfter'];_0x2e3340['hasAttribute']('vid_start')||_0x2e3340['hasAttribute']('vid')||(_0x2fb5c5['writer']['setAttribute']('vid_start',_0x3faf9a['viewItem']['getAttribute']('vid_start'),_0x2e3340),_0x2fb5c5['writer']['setAttribute']('vid_end',_0x3faf9a['viewItem']['getAttribute']('vid_end'),_0x2e3340));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x17c021=>_0x17c021['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x33286e,[,_0xe46b1c])=>{['vid_start','vid_end','vid']['includes'](_0xe46b1c)&&(_0x33286e['return']=!0x0,_0x33286e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1736d7=>{_0x1736d7['on']('attribute:vid',(_0x17e10d,_0x1183a3,_0x3d8ab8)=>{if('\x20'!=_0x1183a3['item']['data']||_0x1183a3['item']['parent']['maxOffset']>0x1)return;if(!_0x3d8ab8['consumable']['consume'](_0x1183a3['item'],_0x17e10d['name']))return;const _0x54968d=_0x3d8ab8['writer'],_0x1f3766=_0x3d8ab8['mapper']['toViewRange'](_0x1183a3['range']);_0x54968d['wrap'](_0x1f3766,_0x54968d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x18da21){const _0x1b02fe=_0x18da21['plugins']['get']('RevisionViewer');return(_0x964956,_0x28d700,_0x451f7e)=>{const _0x4e7bff=_0x28d700['markerName']['split'](':')[0x1],_0x44ccf4=_0x1b02fe['_getChangeFromId'](_0x4e7bff);if(!_0x44ccf4)return null;const _0x39830d='add'==_0x44ccf4['type']?'split':'merge';if(!_0x451f7e['consumable']['test'](_0x28d700['markerRange'],_0x964956['name']))return;const _0x244129=_0x28d700['markerRange']['getWalker'](),_0x4d1c66=_0x28d700['markerRange']['start'],_0x387b1e=_0x18da21['model']['schema'];let _0x4e710c=null,_0x1613c5=null,_0x3a8798=!0x1,_0xe45496=!0x1;for(const _0x5f0db6 of _0x244129){const _0x360031=_0x5f0db6['item'];_0x3a8798=_0x3a8798||_0x387b1e['isContent'](_0x360031);const _0x38342d=_0x451f7e['mapper']['toViewElement'](_0x360031);if(_0x38342d&&_0x38342d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5f0db6['type']&&(_0x387b1e['isBlock'](_0x360031)&&!_0x387b1e['isLimit'](_0x360031)&&(_0x360031['nextSibling']||_0x4d1c66['isAtEnd']?_0x4e710c&&_0x4e710c['parent']==_0x360031||(_0x4e710c=_0x360031,_0x47fe23(_0x5f0db6['previousPosition']),_0xe45496=!0x0):_0x1613c5=_0x1613c5||_0x5f0db6['previousPosition']));}function _0x47fe23(_0x5122c3){const _0x2ed004=_0x451f7e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39830d}),_0x399406=_0x451f7e['mapper']['toViewPosition'](_0x5122c3);_0x44ccf4['data']['isSuggestion']&&_0x451f7e['writer']['addClass']('ck-suggestion-marker-'+_0x39830d+'-new',_0x2ed004),_0x1b02fe['activeChange']==_0x44ccf4&&_0x451f7e['writer']['addClass']('ck-suggestion-marker--active',_0x2ed004),_0x451f7e['writer']['insert'](_0x399406,_0x2ed004),_0x451f7e['mapper']['bindElementToMarker'](_0x2ed004,_0x28d700['markerName']);}_0x3a8798||_0xe45496||!_0x1613c5||_0x47fe23(_0x1613c5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x480784,_0x21f63,_0x4ed9c3)=>{const _0x44b021=_0x4ed9c3['mapper']['markerNameToElements'](_0x21f63['markerName']);if(_0x44b021){for(const _0x15af9d of _0x44b021)(_0x15af9d['hasClass']('ck-suggestion-marker-split')||_0x15af9d['hasClass']('ck-suggestion-marker-merge'))&&(_0x4ed9c3['mapper']['unbindElementFromMarkerName'](_0x15af9d,_0x21f63['markerName']),_0x4ed9c3['writer']['remove'](_0x15af9d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3b53b0,_0x4d6d95,_0x367f43)=>{const _0x46e25d=_0x4d6d95['markerName']['split'](':')[0x1],_0xa337e6=this['_getChangeFromId'](_0x46e25d);if(!_0xa337e6)return null;const _0x44e5c1='add'==_0xa337e6['type']?'split':'merge';if(_0x367f43['consumable']['test'](_0x4d6d95['markerRange'],_0x3b53b0['name']))for(const _0x3543b4 of _0x4d6d95['markerRange']['getItems']()){if(!_0x3543b4['is']('element','softBreak'))continue;const _0x2791bf=_0x367f43['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x44e5c1}),_0x146203=_0x367f43['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3543b4));_0xa337e6['data']['isSuggestion']&&_0x367f43['writer']['addClass']('ck-suggestion-marker-'+_0x44e5c1+'-new',_0x2791bf),this['activeChange']==_0xa337e6&&_0x367f43['writer']['addClass']('ck-suggestion-marker--active',_0x2791bf),_0x367f43['writer']['insert'](_0x146203,_0x2791bf),_0x367f43['mapper']['bindElementToMarker'](_0x2791bf,_0x4d6d95['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x36ba7f=>{for(const _0x2fe17b of this['editor']['model']['document']['getRootNames']()){const _0x1bfc20=this['editor']['model']['document']['getRoot'](_0x2fe17b),_0x3d0872=this['editor']['editing']['view']['document']['getRoot'](_0x2fe17b);if(_0x3d0872){const _0x13b96e=_0x1bfc20['getAttribute']('revisionHistoryAttachChange');if(_0x36ba7f['removeAttribute']('data-change-id',_0x3d0872),_0x36ba7f['removeClass']('ck-revision-history-root-add',_0x3d0872),_0x36ba7f['removeClass']('ck-revision-history-root-remove',_0x3d0872),_0x36ba7f['removeClass']('ck-revision-history-root--active',_0x3d0872),_0x13b96e){const _0x9e6504=this['_getChangeFromId'](_0x13b96e);if(!_0x9e6504)return null;_0x36ba7f['setAttribute']('data-change-id',_0x13b96e,_0x3d0872),_0x36ba7f['addClass']('ck-revision-history-root-'+_0x9e6504['type'],_0x3d0872),this['activeChange']==_0x9e6504&&_0x36ba7f['addClass']('ck-revision-history-root--active',_0x3d0872);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x854228=>'revision-comment:'+_0x854228,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x35927b=>'revision-suggestion:'+_0x35927b,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1763bf=>({'name':'suggestion:'+_0x1763bf,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x17f548=>{const _0x568f0e=_0x17f548['markerName']['split'](':')[0x1];return'insertion'!=_0x568f0e&&'deletion'!=_0x568f0e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x568f0e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x409090,_0xfdb9b1,_0x39ecaa)=>{const _0x1d4cc6=_0x39ecaa['mapper']['markerNameToElements'](_0xfdb9b1['markerName']);if(_0x1d4cc6){for(const _0x2fc60d of _0x1d4cc6)_0x2fc60d['is']('uiElement')&&(_0x39ecaa['mapper']['unbindElementFromMarkerName'](_0x2fc60d,_0xfdb9b1['markerName']),_0x39ecaa['writer']['remove'](_0x2fc60d));}},{'priority':'high'});}['_getChangeFromId'](_0x2310f5){return this['_changeIdToChange']['get'](_0x2310f5);}['_getViewForChange'](_0x4f4cf3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x4f4cf3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x34056a,_0x29a334,_0x56b7af,_0xc9b891)=>{_0xc9b891&&this['_balloon']['remove'](_0xc9b891),_0x56b7af&&(this['_balloon']['add']({'view':_0x56b7af,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x501169=this['editor']['editing'],_0x1fd937=this['_getChangeFromId'](_0x56b7af['changeId']);let _0x19db71;if(_0x1fd937['data']['isOnRoot']){const _0x2bb8a9=_0x501169['view']['getDomRoot'](_0x1fd937['rootName']);_0x19db71=Array['from'](_0x2bb8a9['getClientRects']());}else{const _0x4a8dbe=this['editor']['model']['markers']['get']('revision:'+_0x56b7af['changeId']);_0x19db71=Array['from'](_0x501169['mapper']['markerNameToElements'](_0x4a8dbe['name']))['map'](_0x3afed6=>_0x501169['view']['domConverter']['mapViewToDom'](_0x3afed6))['map'](_0x3b3af4=>Array['from'](_0x3b3af4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x19db71[0x0];return _0x19db71['find'](_0x2e36e8=>_0x2e36e8['top']-0x3<=this['_activeViewTarget']['y']&&_0x2e36e8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2e36e8['left']-0x3<=this['_activeViewTarget']['x']&&_0x2e36e8['right']+0x3>=this['_activeViewTarget']['x'])||_0x19db71[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0xb2f228,_0x37f8a5,_0x5e4057,_0x1471de)=>{this['activeView']=_0x5e4057?this['_getViewForChange'](_0x5e4057):null,this['editor']['model']['change'](()=>{const _0x4555ac=this['editor']['editing'];_0x1471de&&(_0x1471de['data']['isOnRoot']?_0x4555ac['view']['change'](_0x4d378c=>{_0x4d378c['removeClass']('ck-revision-history-root--active',_0x4555ac['view']['document']['getRoot'](_0x1471de['rootName']));}):_0x4555ac['reconvertMarker']('revision:'+_0x1471de['id'])),_0x5e4057&&(_0x5e4057['data']['isOnRoot']?_0x4555ac['view']['change'](_0x37587a=>{_0x37587a['addClass']('ck-revision-history-root--active',_0x4555ac['view']['document']['getRoot'](_0x5e4057['rootName']));}):_0x4555ac['reconvertMarker']('revision:'+_0x5e4057['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3aaa2d,_0x6173b6)=>{if(this['activeChange'])return;const _0x649a5=this['_findChangeIdFromDomTarget'](_0x6173b6['target']),_0x44d3cf=this['_changeIdToChange']['get'](_0x649a5);_0x44d3cf?(this['_activeViewTarget']={'x':_0x6173b6['domEvent']['x'],'y':_0x6173b6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x44d3cf)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1bd6ac,_0x154dee)=>{const _0x27b0a9=this['_findChangeIdFromDomTarget'](_0x154dee['target']),_0x50fb30=this['_changeIdToChange']['get'](_0x27b0a9);_0x50fb30?(this['_activeViewTarget']={'x':_0x154dee['domEvent']['x'],'y':_0x154dee['domEvent']['y']},_0x50fb30===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x50fb30):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xff0ab2){do{const _0x3e1f08=_0xff0ab2['getAttribute']('data-change-id');if(_0x3e1f08)return _0x3e1f08;_0xff0ab2=_0xff0ab2['parent'];}while(_0xff0ab2);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3e05c5=>{for(const _0x933a61 of this['editor']['model']['markers'])_0x3e05c5['removeMarker'](_0x933a61);});}}function Z(_0x16d4a1,_0x17e00b){return(_0x3ff881,_0x7125a4,_0x536bc3)=>{if(!_0x536bc3['consumable']['test'](_0x7125a4['markerRange'],_0x3ff881['name']))return;const _0x3e886a=_0x7125a4['markerRange']['getWalker'](),_0x46d7d5=_0x7125a4['markerRange']['start'],_0x124a29=_0x16d4a1['model']['schema'];let _0xf8aa3f=null,_0x3d864d=null,_0x3083a3=!0x1,_0xabaf76=!0x1;for(const _0x1fe9ae of _0x3e886a){const _0x31f811=_0x1fe9ae['item'];_0x3083a3=_0x3083a3||_0x124a29['isContent'](_0x31f811);const _0x55b8c4=_0x536bc3['mapper']['toViewElement'](_0x31f811);if(_0x55b8c4&&_0x55b8c4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1fe9ae['type']&&(_0x124a29['isBlock'](_0x31f811)&&!_0x124a29['isLimit'](_0x31f811)&&(_0x31f811['nextSibling']||_0x46d7d5['isAtEnd']?_0xf8aa3f&&_0xf8aa3f['parent']==_0x31f811||(_0xf8aa3f=_0x31f811,_0x3a5c8c(_0x1fe9ae['previousPosition']),_0xabaf76=!0x0):_0x3d864d=_0x3d864d||_0x1fe9ae['previousPosition']));}function _0x3a5c8c(_0x528cf7){const _0x372e4b=_0x536bc3['mapper']['toViewPosition'](_0x528cf7),_0x151a7a=_0x536bc3['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x17e00b});_0x536bc3['writer']['insert'](_0x372e4b,_0x151a7a),_0x536bc3['mapper']['bindElementToMarker'](_0x151a7a,_0x7125a4['markerName']);}_0x3083a3||_0xabaf76||!_0x3d864d||_0x3a5c8c(_0x3d864d);};}class _t extends _0x564c0e{constructor(_0xa00240){super(_0xa00240);const _0x1769ba=_0xa00240['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1769ba,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1769ba,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1b4ea6=this['editor'],_0x29089e=_0x1b4ea6['plugins']['get'](d),_0x56efbf=_0x29089e['isReady']?_0x29089e['diff']['newRevisionId']:null;_0x1b4ea6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x56efbf);}['refresh'](){const {isReady:_0x3e679f,isEnabled:_0x3baeb7,repository:_0x2d33ff,diff:_0x108f63}=this['editor']['plugins']['get'](d),_0x3e2bff=_0x108f63&&_0x2d33ff['getLaterVisibleRevision'](_0x108f63['newRevisionId']);this['isEnabled']=_0x3e679f&&_0x3baeb7&&Boolean(_0x3e2bff);}}class yt extends _0x564c0e{['_step'];constructor(_0x56a77d,{direction:_0x514a22}){super(_0x56a77d);const _0x32fee3=_0x56a77d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x514a22?0x1:-0x1,this['listenTo'](_0x32fee3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x32fee3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x32fee3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x30726d=this['editor'],_0x33c786=_0x30726d['plugins']['get'](d),{isNavigationMode:_0x4a3371,currentChangeNumber:_0x16abb3}=_0x33c786;let _0x28dd12;if(_0x33c786['activeChange']=_0x4a3371?_0x33c786['diff']['changes']['get'](_0x16abb3+this['_step']):_0x33c786['diff']['changes']['first'],_0x33c786['activeChange']['data']['isOnRoot'])_0x28dd12=_0x30726d['editing']['view']['getDomRoot'](_0x33c786['activeChange']['rootName']);else{const _0x350d52=_0x30726d['model']['markers']['get']('revision:'+_0x33c786['activeChange']['id']);_0x28dd12=_0x410503(_0x30726d['editing'],_0x350d52);}_0x2cb575({'target':_0x28dd12,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x576d01,currentChangeNumber:_0x5519f1,numberOfChanges:_0xa090f4,isReady:_0x532d47,isEnabled:_0x19698f}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x19698f&&_0x532d47&&_0xa090f4)&&(!_0x576d01||(0x1===this['_step']?_0x5519f1<_0xa090f4-0x1:_0x5519f1>0x0));}}class li extends _0x1e62c1{constructor(_0x17b89d){super(_0x17b89d);const _0x11235c=this['bindTemplate'],_0x5e5be8=new _0x5027d7(_0x17b89d),_0x3c390a=new _0x5027d7(_0x17b89d);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x544698,_0x30c4f4)=>_0x544698&&_0x30c4f4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1da204,_0x5d913b,_0x277a6e,_0x1c5dc1)=>{if(!_0x1da204)return m(_0x17b89d,'Loading...');if(!_0x277a6e)return m(_0x17b89d,'No\x20changes');const _0x5bed61=m(_0x17b89d,'NUMBER_OF_CHANGES',_0x277a6e);return _0x1c5dc1?m(_0x17b89d,'X_OF_Y_CHANGES',[_0x5d913b+0x1,_0x277a6e]):_0x5bed61;}),_0x5e5be8['set']({'label':m(_0x17b89d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x332277}),_0x3c390a['set']({'label':m(_0x17b89d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x398500}),_0x5e5be8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3c390a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5e5be8['on']('execute',()=>this['fire']('execute','backward')),_0x3c390a['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x11235c['if']('_isStatusLabelVisible','ck-hidden',_0x126b0f=>!_0x126b0f)]},'children':[{'text':_0x11235c['to']('isNavigationMode',_0x4ea515=>_0x4ea515?m(_0x17b89d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x17b89d,'Total')+':\x20')}]},{'text':_0x11235c['to']('_statusText')}]},new _0x4dd191(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5e5be8,_0x3c390a]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4c6b5c{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xf8a793=this['editor']['editing']['view'];_0xf8a793['change'](_0x48a093=>{for(const _0x3dd422 of _0xf8a793['document']['roots'])_0x48a093['addClass'](ce,_0x3dd422);});}['hide'](){const _0x242eb9=this['editor']['editing']['view'];_0x242eb9['change'](_0x2b55f7=>{for(const _0x3064b8 of _0x242eb9['document']['roots'])_0x2b55f7['removeClass'](ce,_0x3064b8);});}}class w extends _0x4c6b5c{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0xfc579d=this['editor'],_0x2db9c7=_0xfc579d['plugins']['get'](d),_0x13b3c7=_0xfc579d['plugins']['get'](le);_0xfc579d['ui']['componentFactory']['add']('exitToEditing',_0x58ffd8=>{const _0x1efc83=new _0x5027d7(_0x58ffd8);return _0x1efc83['set']({'label':m(_0x58ffd8,'Back\x20to\x20editing'),'icon':_0x22d401,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1efc83,'execute',()=>{_0xfc579d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1efc83;}),_0xfc579d['ui']['componentFactory']['add']('restoreRevision',_0x9d69fb=>{const _0x588e1a=new _0x5027d7(_0x9d69fb);return _0x588e1a['set']({'label':m(_0x9d69fb,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x588e1a['bind']('isEnabled')['to'](_0xfc579d['commands']['get']('restoreRevision')),this['listenTo'](_0x588e1a,'execute',()=>_0xfc579d['execute']('restoreRevision')),_0x588e1a;}),_0xfc579d['ui']['componentFactory']['add']('changesNavigation',_0x1d66e4=>{const _0x4e0f9e=new li(_0x1d66e4),_0x2e843c=_0xfc579d['commands']['get']('showPreviousChange'),_0x391eb2=_0xfc579d['commands']['get']('showNextChange');return _0x4e0f9e['bind']('isBackwardNavigationEnabled')['to'](_0x2e843c,'isEnabled'),_0x4e0f9e['bind']('isForwardNavigationEnabled')['to'](_0x391eb2,'isEnabled'),_0x4e0f9e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2db9c7),this['listenTo'](_0x4e0f9e,'execute',(_0xb230f6,_0x165b92)=>{_0xfc579d['execute']('forward'===_0x165b92?'showNextChange':'showPreviousChange');}),_0x4e0f9e;}),_0x13b3c7['show'](),_0x2db9c7['on']('change:isReady',(_0x3776c1,_0x3ef443,_0x3e911c)=>{_0x3e911c?_0x13b3c7['hide']():_0x13b3c7['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x104131,_0x170f50){super(_0x104131,_0x170f50);const _0x3bfd84=this['bindTemplate'];this['set']({'label':m(_0x104131,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x104131,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3bfd84['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x29c63a=this['fieldView']['element'];this['_tooltipString']=_0x29c63a['scrollWidth']>_0x29c63a['clientWidth']&&_0x29c63a['value']||'';}}class oi extends _0x1e62c1{constructor(_0x4e42f5,_0x50d469,_0x39f010){super(_0x4e42f5);const _0xb9050f=new _0x59bb20();_0xb9050f['set']({'content':_0x34f191,'viewBox':'0\x200\x2011\x2010'});const _0x2bd9c5=['ck','ck-revision-history-sidebar__revision-author'];_0x39f010&&_0x2bd9c5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x505f34=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4e42f5,_0x39f010?'Revision\x20creator':'Revision\x20author')},'children':[_0xb9050f,_0x50d469['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2bd9c5},'children':_0x505f34});}}function ni(_0x7ad2b2,_0x526589){const _0x3d2e66=_0x7ad2b2['bindTemplate'],_0xf6c5d0=_0x7ad2b2['locale'],_0x562912=_0x38955c(_0xf6c5d0);_0x562912['panelPosition']='sw';const _0x2619b0=function(_0x3b3ed5,_0x9d2449){const _0x44315f=function(_0x61ff99,_0x153e80){const _0x7c9fce=_0x61ff99['locale'],_0x25e180={'Compare\x20against\x20selected':m(_0x7c9fce,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x7c9fce,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x7c9fce,'Restore\x20this\x20revision')};return _0x153e80['map'](_0x625120=>{const _0x5ccf7a=_0x25e180[_0x625120['name']];return _0x5ccf7a&&_0x5ccf7a!==_0x625120['name']&&(_0x625120['name']=_0x5ccf7a),_0x625120;});}(_0x3b3ed5,_0x9d2449),_0x2be3be=new _0x275f31();for(const _0xe06c94 of _0x44315f){const _0x36b40f={'type':'button','model':new to({'label':_0xe06c94['name'],'class':_0xe06c94['class'],'withText':!0x0,'role':'menuitem','_action':_0xe06c94['action']})};_0x36b40f['model']['bind']('isEnabled')['to'](_0x3b3ed5,'isActionsDropdownOpen',_0x4403b9=>'function'!=typeof _0xe06c94['isEnabled']||(!_0x4403b9||_0xe06c94['isEnabled'](_0x3b3ed5))),_0x2be3be['add'](_0x36b40f);}return _0x2be3be;}(_0x7ad2b2,_0x526589);return _0x7ad2b2['bind']('isActionsDropdownOpen')['to'](_0x562912,'isOpen'),_0x562912['buttonView']['set']({'label':m(_0xf6c5d0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x24ca2f}),_0x562912['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3d2e66['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3d2e66['to'](_0x5bbe8a=>_0x5bbe8a['stopPropagation']())}}),_0x562912['on']('execute',_0x41c670=>{_0x7ad2b2['isReady']&&'function'==typeof _0x41c670['source']['_action']&&_0x41c670['source']['_action'](_0x7ad2b2);}),_0x44e831(_0x562912,_0x2619b0,{'role':'menu'}),_0x562912['listenTo'](_0x7ad2b2,'change:isActionsDropdownOpen',(_0x27bc0e,_0x38daf8,_0xb45fb5)=>{if(_0xb45fb5)for(const _0x10c10d of _0x562912['listView']['items']){const _0x433801=_0x10c10d['children']['first'],_0x53970e=_0x526589['find'](_0x206563=>_0x206563['action']===_0x433801['_action'])['isVisible'];_0x10c10d['isVisible']=void 0x0===_0x53970e||_0x53970e(_0x7ad2b2);}}),_0x562912;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x4a399b(_0x1e62c1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5a7692,_0xd2ad35,_0xdf75a,_0x390a73){super(_0x5a7692);const _0x42f7c9=this['bindTemplate'],_0x4354b6=function(_0x317d69,_0x313435){const _0x4c6ad7=Array['from'](_0x313435['authors'])['filter'](_0x44494b=>_0x44494b!=_0x313435['creator']);return _0x313435['creator']&&_0x4c6ad7['unshift'](_0x313435['creator']),_0x4c6ad7['map'](_0x58dd37=>new oi(_0x317d69,_0x58dd37,_0x58dd37==_0x313435['creator']));}(_0x5a7692,_0xd2ad35);this['id']=_0xd2ad35['id'],this['_revision']=_0xd2ad35,this['_requireRevisionName']=_0x390a73,this['bind']('name','createdAt')['to'](_0xd2ad35),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xc7d67b=>{return _0x564d3a=_0x5a7692['uiLanguage'],(_0x21a694=_0xc7d67b)['toLocaleDateString'](_0x564d3a,{'month':'long','day':'numeric'})+',\x20'+_0x21a694['toLocaleTimeString'](_0x564d3a,{'hour':'numeric','minute':'numeric'});var _0x564d3a,_0x21a694;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x5a7692,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x369077=>_0x369077||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3b17f0,_0x196fbf)=>_0x3b17f0&&_0x196fbf),this['revisionActionsView']=_0xdf75a&&_0xdf75a['length']?ni(this,_0xdf75a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x42f7c9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x42f7c9['if']('isEnabled','ck-disabled',_0x9f6610=>!_0x9f6610),_0x42f7c9['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x42f7c9['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x42f7c9['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x42f7c9['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x4354b6}]},this['revisionActionsView']],'on':{'click':_0x42f7c9['to'](_0x56bf3a=>{_0x56bf3a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x15156e=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x15156e,'change',()=>{this['_requireRevisionName']&&!_0x15156e['value']||this['fire']('setName',{'id':this['id'],'name':_0x15156e['value']}),_0x15156e['value']||(_0x15156e['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x206862,_0x542633){const _0x141be4=_0x4663c8['fromJSDate'](_0x206862)['setLocale'](_0x542633),_0x1b51f1=_0x4663c8['local'](),_0x327a09=_0x1b51f1['minus']({'days':0x1})['startOf']('day');let _0x5019bd,_0x542ba2;return _0x141be4['hasSame'](_0x1b51f1,'day')?(_0x5019bd=_0x141be4['startOf']('day')['toJSDate'](),_0x542ba2=_0x141be4['toRelativeCalendar']()):_0x141be4['hasSame'](_0x327a09,'day')?(_0x5019bd=_0x327a09['toJSDate'](),_0x542ba2=_0x141be4['toRelativeCalendar']()):_0x141be4['hasSame'](_0x1b51f1,'week')?(_0x5019bd=_0x141be4['startOf']('week')['toJSDate'](),_0x542ba2=_0x141be4['weekdayLong']||''):_0x141be4['hasSame'](_0x1b51f1,'year')?(_0x5019bd=_0x141be4['startOf']('month')['toJSDate'](),_0x542ba2=_0x141be4['monthLong']||''):(_0x5019bd=_0x141be4['startOf']('year')['toJSDate'](),_0x542ba2=String(_0x141be4['year'])),{'startDate':_0x5019bd,'localizedPeriodName':_0x542ba2};}class _i extends _0x1e62c1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x154488,_0x201698,_0x48794e,_0x3cf1a4){super(_0x154488);const _0x2aed5d=mi(_0x201698,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x201698,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x48794e,this['_requireRevisionName']=_0x3cf1a4,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x2aed5d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x49125a){const _0x46ee9d=new ai(this['locale'],_0x49125a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x46ee9d);}['removeRevision'](_0x21157d){const _0x4a00a8=this['revisionViews']['find'](_0x63591c=>_0x63591c['id']===_0x21157d['id']);this['revisionViews']['remove'](_0x4a00a8);}}class as extends _0x1e62c1{constructor(_0x8abb02){super(_0x8abb02);const _0x56e371=new _0x59bb20();_0x56e371['content']=_0x173409,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x56e371,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x8abb02,'Revision\x20history')]}]});}}class vi extends _0x1e62c1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3c7c0b,_0x17164b,_0x8b6387,_0x75e7d4){super(_0x3c7c0b);const _0xcd2cf2=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x17164b,this['_revisionActions']=_0x8b6387,this['_requireRevisionName']=_0x75e7d4,this['on']('select',(_0x5a3500,_0x4be763)=>{this['fire']('revisionSelected',_0x4be763);}),this['on']('setName',(_0xf3b749,_0x1706e2)=>{this['fire']('revisionSetName',_0x1706e2);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3c7c0b),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xcd2cf2['if']('isEnabled','ck-disabled',_0x1a3618=>!_0x1a3618)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3104ae of this['_revisions'])this['_addRevision'](_0x3104ae);this['_revisions']['on']('add',(_0x34eb86,_0x5b93b5)=>{this['_addRevision'](_0x5b93b5);}),this['_revisions']['on']('remove',(_0x2b720e,_0xfa3a97)=>{this['_removeRevision'](_0xfa3a97);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x17cead=>_0x17cead['revisionViews']['map'](_0x182d4d=>_0x182d4d))['flat']();}['selectRevision'](_0x1b9c57){for(const _0x2b1683 of this['revisionViews'])_0x1b9c57&&_0x1b9c57['id']===_0x2b1683['id']?_0x2b1683['select']():_0x2b1683['deselect']();}['highlightRevisions'](_0x417d7c){for(const _0x464535 of this['revisionViews'])_0x417d7c['some'](({id:_0x5a358c})=>_0x5a358c===_0x464535['id'])?_0x464535['highlight']():_0x464535['unhighlight']();}['_addRevision'](_0x1ddd59){const _0x314371=mi(_0x1ddd59['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x186deb=this['timePeriodViews']['get'](0x0);_0x186deb&&_0x186deb['startDate']['getTime']()===_0x314371['getTime']()||(_0x186deb=new _i(this['locale'],_0x314371,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x186deb)),_0x186deb['addRevision'](_0x1ddd59);}['_removeRevision'](_0x59bbb0){const _0x5d9445=mi(_0x59bbb0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5d9445)['removeRevision'](_0x59bbb0);}['_getTimePeriodViewByStartDate'](_0xf13d6c){return this['timePeriodViews']['find'](_0x505bde=>_0x505bde['startDate']['getTime']()===_0xf13d6c['getTime']());}}class g extends _0x4c6b5c{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x4f7caf,uid as _0x3aad70,Collection as _0x1b37a4,logWarning as _0x4d1e6d,FocusTracker as _0x42db06,KeystrokeHandler as _0x271894,scrollViewportToShowTarget as _0x44f96b,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x1d0ae3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4abf57,set as _0x5bca57,unset as _0x45c231,isEqual as _0x93096c}from'es-toolkit/compat';import{Plugin as _0x5517c8,PendingActions as _0x38413b,Command as _0x1db4eb,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x49ffcb,getMarkerDomElement as _0x126672,ConfirmMixin as ti,sanitizeEditorConfig as _0x8852d7}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1c9f86,Element as ut,Range as ft,ViewUIElement as _0x5db413,ViewRawElement as _0x35328c,ViewEmptyElement as _0xd2038a,ViewAttributeElement as _0xf10c63,ViewContainerElement as _0x135f7f,Position as vt,ViewText as _0x5b5f30,ViewElement as _0x5aa52f,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x35cf4f,IconChevronUp as _0x140ee6,IconChevronDown as _0x710b16,IconUndo as _0x5332e8,IconUser as _0x1792fe,IconThreeVerticalDots as _0xf69623}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x482dd0,submitHandler as _0x25a94a,LabeledFieldView as _0x231adc,createLabeledInputText as _0x433401,createDropdown as _0x461af0,ListView as _0x396fe8,ListItemView as _0x3b1ae9,ButtonView as te,MenuBarMenuView as _0x428ca0,MenuBarMenuListView as _0x183e56,MenuBarMenuListItemView as _0x502dbc,MenuBarMenuListItemButtonView as _0x53f0b7,ContextualBalloon as _0x4abf6b,ToolbarSeparatorView as _0x1e098a,IconView as _0x5762d1,addListToDropdown as _0x570a7f,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4fdf8d}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x4f7caf(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5d32ca){super(),this['id']=_0x5d32ca['id']||_0x3aad70(),this['creator']=_0x5d32ca['creator']||null,this['authors']=_0x5d32ca['authors']||[],this['diffData']=_0x5d32ca['diffData']||null,this['toVersion']=_0x5d32ca['toVersion']||0x0,this['fromVersion']=_0x5d32ca['fromVersion']||0x0,this['set']('name',_0x5d32ca['name']||''),this['set']('createdAt',_0x5d32ca['createdAt']||new Date()),this['set']('attributes',_0x5d32ca['attributes']||{});}['setName'](_0xde0be7){this['_update']({'name':_0xde0be7});}['setAttribute'](_0x4bd1a6,_0x4025f2){const _0x19ecc6=_0x4abf57(this['attributes']);_0x5bca57(_0x19ecc6,_0x4bd1a6,_0x4025f2),this['_update']({'attributes':_0x19ecc6});}['removeAttribute'](_0x249eaa){const _0x12a5ef=_0x4abf57(this['attributes']);_0x45c231(_0x12a5ef,_0x249eaa),this['_update']({'attributes':_0x12a5ef});}['_update'](_0x544e8f,_0x5d200a=!0x1){let _0x14ccf5=!0x1;const _0x585ac2={'id':this['id']},_0x4580ad=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3bc169 of _0x4580ad){const _0x851b3a=_0x544e8f[_0x3bc169];void 0x0!==_0x851b3a&&_0x851b3a!==this[_0x3bc169]&&(this[_0x3bc169]=_0x851b3a,_0x585ac2[_0x3bc169]=_0x851b3a,_0x14ccf5=!0x0);}_0x14ccf5&&(_0x585ac2['authors']&&(_0x585ac2['authorsIds']=_0x585ac2['authors']['map'](_0x4048b1=>_0x4048b1['id']),delete _0x585ac2['authors']),this['fire']('_update',_0x585ac2,_0x5d200a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x123650=>_0x123650['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5517c8{['_revisions'];static get['requires'](){return[_0x49ffcb];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x578642){super(_0x578642),this['_revisions']=new _0x1b37a4();}['afterInit'](){!async function(_0x62b0b5){const _0xcb8d75=_0x1376d4([0x39,0x47,0x50,0x59,0x70,0x54,0x76,0x53,0x55,0x52,0x6b,0x48,0x58,0x6d,0x69,0x36,0x34,0x6e,0x6c,0x74,0x4c,0x38,0x62,0x43,0x68,0x7a,0x31,0x66,0x4e,0x71,0x75,0x45,0x44,0x46,0x51,0x42,0x64,0x4d,0x41,0x57,0x65,0x4f,0x5a,0x63,0x6f,0x33,0x77,0x73,0x30,0x37,0x4a,0x72,0x79,0x67,0x32,0x49,0x6a,0x35,0x4b,0x78,0x61,0x56]),_0x4af0cf=0xeb829,_0x458931=0x10c4eff3,_0x5ab10c=0x10c3b093^_0x458931,_0x3c6780=window[_0x1376d4([0x44,0x61,0x74,0x65])][_0x1376d4([0x6e,0x6f,0x77])](),_0x3cea63=_0x62b0b5[_0x1376d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x232680=new window[(_0x1376d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a9289=>{_0x3cea63[_0x1376d4([0x6f,0x6e,0x63,0x65])](_0x1376d4([0x72,0x65,0x61,0x64,0x79]),_0x2a9289);}),_0x43cc56={[_0x1376d4([0x6b,0x74,0x79])]:_0x1376d4([0x45,0x43]),[_0x1376d4([0x75,0x73,0x65])]:_0x1376d4([0x73,0x69,0x67]),[_0x1376d4([0x63,0x72,0x76])]:_0x1376d4([0x50,0x2d,0x32,0x35,0x36]),[_0x1376d4([0x78])]:_0x1376d4([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x1376d4([0x79])]:_0x1376d4([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x1376d4([0x61,0x6c,0x67])]:_0x1376d4([0x45,0x53,0x32,0x35,0x36])},_0xbe4ea5=_0x3cea63[_0x1376d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1376d4([0x67,0x65,0x74])](_0x1376d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x860173(){let _0xfc2898,_0x4bc9a4=null,_0x2e1004=null;try{if(_0xbe4ea5==_0x1376d4([0x47,0x50,0x4c]))return _0x1376d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xfc2898=_0x450281(),!_0xfc2898)return _0x1376d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xfc2898[_0x1376d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e1004=_0x19cbc9(_0xfc2898[_0x1376d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xfc2898[_0x1376d4([0x6a,0x74,0x69])])),await _0x3c88f2()?_0x34b9ca()?_0x2da6d3()?_0x1376d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x55ad76()?(_0xfc2898[_0x1376d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1376d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bc9a4=_0x58b534(_0x1376d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xfc2898[_0x1376d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1376d4([0x74,0x72,0x69,0x61,0x6c])&&(_0x4bc9a4=_0x58b534(_0x1376d4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x58c0bf()):_0x1376d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1376d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1376d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x73ca1b){return _0x1376d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2da6d3(){const _0xdabcff=[_0x1376d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1376d4([0x74,0x72,0x69,0x61,0x6c])][_0x1376d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xfc2898[_0x1376d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3c6780/0x3e8:0xe10*_0x5ab10c;return _0xfc2898[_0x1376d4([0x65,0x78,0x70])]<_0xdabcff;}function _0x34b9ca(){const _0x5d2d86=_0xfc2898[_0x1376d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5d2d86)return!0x1;if(_0x5d2d86[_0x1376d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1376d4([0x2a])))return!0x0;if(_0x5d2d86[_0x1376d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1376d4([0x52,0x48])))return!0x0;if(_0x5d2d86[_0x1376d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1376d4([0x52,0x52,0x48]))){if(_0x18c3d1())return!0x0;if(_0x13d21c()||_0x2d1858())return!0x0;}return!0x1;}function _0x55ad76(){const _0xb37636=_0xfc2898[_0x1376d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xb37636||0x0==_0xb37636[_0x1376d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1397e0}=new URL(window[_0x1376d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xb37636[_0x1376d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1397e0))return!0x0;const _0x457d91=_0x1397e0[_0x1376d4([0x73,0x70,0x6c,0x69,0x74])](_0x1376d4([0x2e]));return _0xb37636[_0x1376d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3da9d4=>_0x3da9d4[_0x1376d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1376d4([0x2a])))[_0x1376d4([0x6d,0x61,0x70])](_0x5e1a43=>_0x5e1a43[_0x1376d4([0x73,0x70,0x6c,0x69,0x74])](_0x1376d4([0x2e])))[_0x1376d4([0x73,0x6f,0x6d,0x65])](_0x35a8cb=>_0x457d91[_0x1376d4([0x65,0x76,0x65,0x72,0x79])]((_0x2a76aa,_0x29449a)=>_0x35a8cb[_0x29449a]===_0x2a76aa||_0x35a8cb[_0x29449a]===_0x1376d4([0x2a])));}function _0x58c0bf(){return _0x4bc9a4&&_0x2e1004?new window[(_0x1376d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10fa49,_0x4d816c)=>{_0x4bc9a4[_0x1376d4([0x74,0x68,0x65,0x6e])](_0x10fa49,_0x4d816c),_0x2e1004[_0x1376d4([0x74,0x68,0x65,0x6e])](_0x176740=>{_0x176740!=_0x1376d4([0x56,0x61,0x6c,0x69,0x64])&&_0x10fa49(_0x176740);},_0x4d816c);}):_0x4bc9a4||_0x2e1004||_0x1376d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19cbc9(_0x206abf,_0x3a2c16){return new window[(_0x1376d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a0445=>{if(_0x12bc16())return _0x5a0445(_0x1376d4([0x56,0x61,0x6c,0x69,0x64]));_0x3f67a8(),_0x3cea63[_0x1376d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1376d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x276b16=!0x1;const _0x3421d8=_0x3aad70();function _0x2fb7f0(_0x1874cc){return!!_0x1874cc&&(typeof _0x1874cc===_0x1376d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1874cc===_0x1376d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1874cc[_0x1376d4([0x74,0x68,0x65,0x6e])]===_0x1376d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1874cc[_0x1376d4([0x63,0x61,0x74,0x63,0x68])]===_0x1376d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5124c0(_0xb6ab90){_0x3fb94c(_0xb6ab90)[_0x1376d4([0x74,0x68,0x65,0x6e])](_0x5e02be=>{if(!_0x5e02be||_0x5e02be[_0x1376d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1376d4([0x6f,0x6b]))return _0x1376d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2fdbd3(_0x338816(_0x3421d8+_0x3a2c16))!=_0x5e02be[_0x1376d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1376d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1376d4([0x56,0x61,0x6c,0x69,0x64]);})[_0x1376d4([0x74,0x68,0x65,0x6e])](_0x135098=>(_0x48b2a4(),_0x135098),()=>{const _0x3af90b=_0x25a1ac();return null==_0x3af90b?(_0x48b2a4(),_0x1376d4([0x56,0x61,0x6c,0x69,0x64])):_0x1376d4(_0x3c6780-_0x3af90b>(0x34c86bf3^_0x458931)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1376d4([0x74,0x68,0x65,0x6e])](_0x5a0445)[_0x1376d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5a0445(_0x1376d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48f1cb=0x10f20173^_0x458931;function _0x48b2a4(){const _0x30d318=_0x1376d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fdbd3(_0x338816(_0x206abf)),_0x5c28c1=_0x3d729b(_0x2fdbd3(window[_0x1376d4([0x4d,0x61,0x74,0x68])][_0x1376d4([0x63,0x65,0x69,0x6c])](_0x3c6780/_0x48f1cb)));window[_0x1376d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1376d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30d318,_0x5c28c1);}function _0x25a1ac(){const _0x23005d=_0x1376d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x2fdbd3(_0x338816(_0x206abf)),_0x1a0b9e=window[_0x1376d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1376d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23005d);return _0x1a0b9e?window[_0x1376d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d729b(_0x1a0b9e),0x10)*_0x48f1cb:null;}function _0x3fb94c(_0x197daa){return new window[(_0x1376d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x581af3,_0xdad63b)=>{_0x197daa[_0x1376d4([0x74,0x68,0x65,0x6e])](_0x581af3,_0xdad63b),window[_0x1376d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xdad63b,0x10c53b33^_0x458931);});}}_0x3cea63[_0x1376d4([0x6f,0x6e])](_0x1376d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3c6f5e,_0x154c19)=>{if(_0x154c19[0x0]!=_0x206abf)return _0x5a0445(_0x1376d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x154c19[0x1]={..._0x154c19[0x1],[_0x1376d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3421d8};},{[_0x1376d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1376d4([0x68,0x69,0x67,0x68])}),_0x3cea63[_0x1376d4([0x6f,0x6e])](_0x1376d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x34b7a3=>{_0x2fb7f0(_0x34b7a3[_0x1376d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x276b16=!0x0,_0x5124c0(_0x34b7a3[_0x1376d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1376d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1376d4([0x6c,0x6f,0x77])}),_0x232680[_0x1376d4([0x74,0x68,0x65,0x6e])](()=>{_0x276b16||_0x5a0445(_0x1376d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12bc16(){return _0x3cea63[_0x1376d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1376d4([0x76,0x69,0x65,0x77])][_0x1376d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1376d4([0x61,0x75,0x74,0x6f]);}function _0x3f67a8(){_0x3cea63[_0x1376d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1376d4([0x76,0x69,0x65,0x77])][_0x1376d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1376d4([0x61,0x75,0x74,0x6f]);}}function _0x58b534(_0x300106){const _0x2c37d9=[new window[(_0x1376d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c898c=>setTimeout(_0x2c898c,0x10cdd13f^_0x458931)),_0x232680[_0x1376d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1376d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ab5c0=>{const _0xcf4673=0x10c4eff4^_0x458931,_0x4c9558=_0x62b0b5[_0x1376d4([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x47415a(){_0x4c9558[_0x1376d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xcf4673&&_0x1ab5c0();}_0x47415a(),_0x4c9558[_0x1376d4([0x6f,0x6e])](_0x1376d4([0x61,0x64,0x64]),_0x47415a);})),new window[(_0x1376d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x164f4e=>{function _0x35573b(){for(const _0x4d0099 in window)if(window[_0x1376d4([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1376d4([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4d0099))&&window[_0x4d0099]==_0x4af0cf)return _0x164f4e();_0x3cea63[_0x1376d4([0x73,0x74,0x61,0x74,0x65])]!=_0x1376d4([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1376d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x35573b,0x10c4fc7b^_0x458931);}_0x267410(_0x1376d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x35573b();})];return window[_0x1376d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1376d4([0x72,0x61,0x63,0x65])](_0x2c37d9)[_0x1376d4([0x74,0x68,0x65,0x6e])](()=>_0x300106);}async function _0x2fd7f3(){if(await _0x232680,_0x267410(_0x1376d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x40eb5f=_0x62b0b5[_0x1376d4([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x308835=_0x62b0b5[_0x1376d4([0x67,0x65,0x74,0x45,0x61,0x72,0x6c,0x69,0x65,0x72,0x56,0x69,0x73,0x69,0x62,0x6c,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](_0x40eb5f[_0x1376d4([0x69,0x64])]),_0x56a503=_0x2da2ee(_0x1376d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x56a503[_0x1376d4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x40eb5f['id'],_0x308835?_0x308835['id']:null,!0x0),_0x56a503[_0x1376d4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1376d4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x56a503[_0x1376d4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x56a503[_0x1376d4([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1e8351,void(_0x56a503[_0x1376d4([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1e8351);}if(_0x267410(_0x1376d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x219c9c=_0x2da2ee(_0x1376d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x219c9c[_0x1376d4([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1376d4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x219c9c[_0x1376d4([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x219c9c[_0x1376d4([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1e8351,_0x219c9c[_0x1376d4([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1e8351;}_0x3cea63[_0x1376d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1376d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8351,_0x3cea63[_0x1376d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x1376d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e8351,_0x3cea63[_0x1376d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1376d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18c3d1(){return _0x267410(_0x1376d4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2da2ee(_0x1376d4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1376d4([0x73,0x74,0x61,0x74,0x65])]==_0x1376d4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x13d21c(){return _0x267410(_0x1376d4([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x2d1858(){return _0x267410(_0x1376d4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2f4530(_0x68b75c){const _0x904377=_0x31585();_0x3cea63[_0x904377]=_0x1376d4([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x68b75c,_0x68b75c[_0x1376d4([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1376d4([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x31585()]=_0x4af0cf),_0x68b75c!=_0x1376d4([0x56,0x61,0x6c,0x69,0x64])&&_0x2fd7f3();}function _0x31585(){const _0x2591f3=window[_0x1376d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1376d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1376d4([0x6e,0x6f,0x77])]())[_0x1376d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1376d4([0x2e]),'');let _0x1f3d5a=_0x1376d4([0x47]);for(let _0xdf2068=0x0;_0xdf2068<_0x2591f3[_0x1376d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xdf2068+=0x2){let _0x56cbda=window[_0x1376d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2591f3[_0x1376d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xdf2068,_0xdf2068+0x2));_0x56cbda>=_0xcb8d75[_0x1376d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56cbda-=_0xcb8d75[_0x1376d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f3d5a+=_0xcb8d75[_0x56cbda];}return _0x1f3d5a;}function _0x450281(){const _0x580b55=_0xbe4ea5[_0x1376d4([0x73,0x70,0x6c,0x69,0x74])](_0x1376d4([0x2e]));if(0x3!=_0x580b55[_0x1376d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35bfab(_0x580b55[0x1]);function _0x35bfab(_0x572a1d){const _0xc34e10=_0x24c926(_0x572a1d);return _0xc34e10&&_0x12be36()?_0xc34e10:null;function _0x12be36(){const _0x185bfa=_0xc34e10[_0x1376d4([0x6a,0x74,0x69])],_0x47fcbb=window[_0x1376d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x185bfa[_0x1376d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x185bfa[_0x1376d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59ad92={..._0xc34e10,[_0x1376d4([0x6a,0x74,0x69])]:_0x185bfa[_0x1376d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x185bfa[_0x1376d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59ad92[_0x1376d4([0x76,0x63])],_0x338816(_0x59ad92)==_0x47fcbb;}}}async function _0x3c88f2(){let _0x4ed640=!0x0;try{const _0x4bbff8=_0xbe4ea5[_0x1376d4([0x73,0x70,0x6c,0x69,0x74])](_0x1376d4([0x2e])),[_0x3c3d28,_0xc4d0ff,_0x33ee58]=_0x4bbff8;return _0x3fd918(_0x3c3d28),await _0x26a03c(_0x3c3d28,_0xc4d0ff,_0x33ee58),_0x4ed640;}catch(_0x1ba4ca){return!0x1;}function _0x3fd918(_0x5c7175){const _0x3dfcb4=_0x24c926(_0x5c7175);_0x3dfcb4&&_0x3dfcb4[_0x1376d4([0x61,0x6c,0x67])]==_0x1376d4([0x45,0x53,0x32,0x35,0x36])||(_0x4ed640=!0x1);}async function _0x26a03c(_0x3a9a57,_0xa5f46,_0x2d46bc){const _0x47a0ba=window[_0x1376d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1376d4([0x66,0x72,0x6f,0x6d])](_0x35ed25(_0x2d46bc),_0x289a37=>_0x289a37[_0x1376d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e3c65=new window[(_0x1376d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1376d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a9a57+_0x1376d4([0x2e])+_0xa5f46),_0x1aa03d=window[_0x1376d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1376d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1aa03d)return;const _0x4f49d4=await _0x1aa03d[_0x1376d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1376d4([0x6a,0x77,0x6b]),_0x43cc56,{[_0x1376d4([0x6e,0x61,0x6d,0x65])]:_0x1376d4([0x45,0x43,0x44,0x53,0x41]),[_0x1376d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1376d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1376d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1aa03d[_0x1376d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1376d4([0x6e,0x61,0x6d,0x65])]:_0x1376d4([0x45,0x43,0x44,0x53,0x41]),[_0x1376d4([0x68,0x61,0x73,0x68])]:{[_0x1376d4([0x6e,0x61,0x6d,0x65])]:_0x1376d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f49d4,_0x47a0ba,_0x2e3c65)||(_0x4ed640=!0x1);}}function _0x24c926(_0x11ea0e){return _0x11ea0e[_0x1376d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1376d4([0x65,0x79]))?JSON[_0x1376d4([0x70,0x61,0x72,0x73,0x65])](_0x35ed25(_0x11ea0e)):null;}function _0x35ed25(_0x20153a){return window[_0x1376d4([0x61,0x74,0x6f,0x62])](_0x20153a[_0x1376d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1376d4([0x2b]))[_0x1376d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1376d4([0x2f])));}function _0x338816(_0x6a9e50){let _0x13efe5=0x1505;function _0x51f700(_0x1b8817){for(let _0x334053=0x0;_0x334053<_0x1b8817[_0x1376d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x334053++){const _0x4ce5b4=_0x1b8817[_0x1376d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x334053);_0x13efe5=(_0x13efe5<<0x5)+_0x13efe5+_0x4ce5b4,_0x13efe5&=_0x13efe5;}}function _0x36a9a6(_0x4d21fb){Array[_0x1376d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4d21fb)?_0x4d21fb[_0x1376d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36a9a6):_0x4d21fb&&typeof _0x4d21fb==_0x1376d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1376d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4d21fb)[_0x1376d4([0x73,0x6f,0x72,0x74])]()[_0x1376d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x45afc4,_0x2b20d3])=>{_0x51f700(_0x45afc4),_0x36a9a6(_0x2b20d3);}):_0x51f700(window[_0x1376d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4d21fb));}return _0x36a9a6(_0x6a9e50),_0x13efe5>>>0x0;}function _0x2fdbd3(_0x2002f6){return _0x2002f6[_0x1376d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1376d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1376d4([0x30]));}function _0x3d729b(_0x517ee8){return _0x517ee8[_0x1376d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1376d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1376d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x267410(_0x3a8238){return _0x3cea63[_0x1376d4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1376d4([0x68,0x61,0x73])](_0x3a8238);}function _0x2da2ee(_0x31bad3){return _0x3cea63[_0x1376d4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1376d4([0x67,0x65,0x74])](_0x31bad3);}function _0x1e8351(){}function _0x1376d4(_0x12352e){return _0x12352e['map'](_0x42126d=>String['fromCharCode'](_0x42126d))['join']('');}_0x2f4530(await _0x860173());}(this);}['createRevision'](_0x1019ac){const _0x55f2d5=this['editor']['plugins']['get']('Users');return new h({'id':_0x1019ac['id'],'name':_0x1019ac['name'],'creator':_0x1019ac['creatorId']?_0x55f2d5['getUser'](_0x1019ac['creatorId']):null,'diffData':_0x1019ac['diffData']||_0x1019ac['data'],'authors':_0x1019ac['authorsIds']['map'](_0x1e0d48=>_0x55f2d5['getUser'](_0x1e0d48)),'createdAt':new Date(_0x1019ac['createdAt']),'attributes':_0x1019ac['attributes'],'fromVersion':_0x1019ac['fromVersion'],'toVersion':_0x1019ac['toVersion']});}['addRevision'](_0x54b3f2,_0x531408=0x0){this['_revisions']['add'](_0x54b3f2,_0x531408);}['getRevision'](_0x3d83cd){return this['_revisions']['get'](_0x3d83cd);}['getRevisions'](_0x5f576b={'toJSON':!0x1}){const _0x9dc5cd=Array['from'](this['_revisions']);return _0x9dc5cd['reverse'](),_0x5f576b['toJSON']?_0x9dc5cd['map'](_0x36d8d9=>_0x36d8d9['toJSON']()):_0x9dc5cd;}['getIndex'](_0x21bab7){return this['_revisions']['getIndex'](_0x21bab7);}['getEarlierVisibleRevision'](_0x298b2e){const [,_0x16b7b1]=this['getRevisionsIterator'](_0x298b2e,{'direction':'earlier'});return _0x16b7b1;}['getLaterVisibleRevision'](_0x567f41){const [,_0x2e650b]=this['getRevisionsIterator'](_0x567f41,{'direction':'later'});return _0x2e650b;}['getRevisionsInDiff'](_0x2a50b1){const _0x5a80fd=[];for(const _0x591343 of this['getRevisionsIterator'](_0x2a50b1['newRevisionId']))if(_0x5a80fd['push'](_0x591343),_0x591343['id']===_0x2a50b1['oldRevisionId'])break;return _0x5a80fd;}*['getRevisionsIterator'](_0x505059,{direction:_0x30928e='earlier',filter:_0x5b7aaa=()=>!0x0}={}){const _0xedb9bf='earlier'===_0x30928e?0x1:-0x1;let _0xd1a8bc=this['_revisions']['get'](_0x505059),_0x1e52c0=this['getIndex'](_0xd1a8bc);for(yield _0xd1a8bc;_0xd1a8bc;){if(_0x1e52c0+=_0xedb9bf,_0xd1a8bc=this['getRevision'](_0x1e52c0),!_0xd1a8bc)return;_0x5b7aaa(_0xd1a8bc)&&(yield _0xd1a8bc);}}}function m(_0x15e01c,_0x1030ab,_0x1e07de){const t=_0x15e01c['t'];switch(_0x1030ab){case'Revision\x20history':return t('Revision\x20history');case'Open\x20revision\x20history':return t('Open\x20revision\x20history');case'Restored':return t('Restored');case'Empty\x20document':return t('Empty\x20document');case'Initial\x20revision':return t('Initial\x20revision');case'Suggested\x20by':return t('Suggested\x20by');case'Added\x20by':return t('Added\x20by');case'Removed\x20by':return t('Removed\x20by');case'Show\x20more\x20items':return t('Show\x20more\x20items');case'Compare\x20against\x20selected':return t('Compare\x20against\x20selected');case'Name\x20this\x20revision':return t('Name\x20this\x20revision');case'Restore\x20this\x20revision':return t('Restore\x20this\x20revision');case'Back\x20to\x20editing':return t('Back\x20to\x20editing');case'Loading...':return t('Loading...');case'No\x20changes':return t('No\x20changes');case'NUMBER_OF_CHANGES':return t({'string':'%0\x20change','plural':'%0\x20changes','id':'NUMBER_OF_CHANGES'},_0x1e07de);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1e07de);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x135f7f,'a':_0xf10c63,'e':_0xd2038a,'r':_0x35328c,'u':_0x5db413};class u extends _0x5517c8{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x49ffcb,j,_0x38413b];}constructor(_0x94c9e5){super(_0x94c9e5),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1191cf=_0x3aad70();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1191cf},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x535fda=this['repository']['getRevision'](0x0),_0x4eb023=_0x535fda&&null===_0x535fda['creator']?_0x535fda:null;if(this['_continueCurrentRevision']=!!_0x4eb023&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5a3741=this['_source']['getCurrentRevisionId'](),_0x1c12c2=this['repository']['getRevision'](_0x5a3741);if(_0x1c12c2)this['_startingVersion']=_0x1c12c2['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xcc831e=this['_source']['history']['_operations']['find'](_0x3894a9=>!_0x3894a9['_isInit']),_0xf8dd97=_0xcc831e?_0xcc831e['baseVersion']:this['_source']['history']['version'];_0x535fda?(_0x535fda['toVersion']<_0xf8dd97&&_0x535fda['_update']({'toVersion':_0xf8dd97}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4eb023['id'],this['_startingVersion']=_0x4eb023['fromVersion']):(this['_startingVersion']=_0x535fda['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xf8dd97,this['_continueCurrentRevision']=!0x1);}}else _0x4eb023&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4eb023['toVersion'],this['editor']['model']['document']['history']['version']),_0x4eb023['fromVersion']===_0x4eb023['toVersion']?(0x0!==_0x4eb023['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4eb023['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4eb023['id'],this['_startingVersion']=_0x4eb023['fromVersion'])),this['_continueCurrentRevision']||(this['_startingVersion']=this['editor']['model']['document']['version']);this['_revisionDataBuilder']['init'](this['_source']['history']),this['_createInitialRevision'](this['_startingVersion']),this['_createCurrentRevision'](this['_startingVersion']),this['adapter']&&this['sendBufferedUpdates']();}),this['bind']('isReady')['to'](this,'_isPendingUpdate',_0x34128a=>!_0x34128a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2c4e92=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x48ebf5;for(const _0x29061b in _0x2c4e92){const _0x162583=_0x29061b,_0x3167ec=_0x2c4e92[_0x162583];if('revisionHistoryLicenseKeyValid'==_0x3167ec||'revisionHistoryLicenseKeyInvalid'==_0x3167ec||'revisionHistoryLicenseKeyExpired'==_0x3167ec||'revisionHistoryLicenseKeyDomainLimit'==_0x3167ec||'revisionHistoryLicenseKeyNotAllowed'==_0x3167ec||'revisionHistoryLicenseKeyEvaluationLimit'==_0x3167ec||'revisionHistoryLicenseKeyTrialLimit'==_0x3167ec||'revisionHistoryLicenseKeyUsageLimit'==_0x3167ec){delete _0x2c4e92[_0x162583],_0x48ebf5=_0x3167ec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x48ebf5&&_0x2c4e92['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x48ebf5&&_0x2c4e92['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x48ebf5&&_0x2c4e92['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x48ebf5&&_0x2c4e92['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x48ebf5&&_0x2c4e92['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x48ebf5&&_0x2c4e92['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x48ebf5&&_0x2c4e92['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x27e073=this['repository']['getRevision'](0x0),_0xbb530e=await this['getRevisionDocumentData'](_0x27e073),_0x4ad82e=await this['getRevisionRootsAttributes'](_0x27e073);this['_replaceEditorDataWithRevisionData'](_0xbb530e,_0x4ad82e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x18c299){this['_source']=_0x18c299;}async['update'](){const _0x5cc709=await this['_source']['getLatestVersion']();if(_0x5cc709>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2e4cb9=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5cc709});_0x2e4cb9['authors']=_0x2e4cb9['authorsIds']['map'](_0xd53751=>this['editor']['plugins']['get']('Users')['getUser'](_0xd53751)),this['currentRevision']['_update'](_0x2e4cb9);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x595423={},_0x70aa97=null){const _0x284700=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x70aa97>this['currentRevision']['toVersion']&&(_0x70aa97=null),null===_0x70aa97&&(_0x70aa97=await this['_source']['getLatestVersion']());const _0x53a7ec=this['_getFromVersion'](_0x70aa97),_0x554e0e=this['buildRevisionData']({'from':_0x53a7ec,'to':_0x70aa97});if(this['currentRevision']['toVersion']<_0x70aa97){const _0x306ef3=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x70aa97,'to':_0x70aa97});_0x306ef3['authors']=[],_0x306ef3['authorsIds']=[],_0x306ef3['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x306ef3,!0x0),delete _0x306ef3['authors'],_0x284700['push'](_0x306ef3);}_0x595423['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x595423['name']=_0x595423['name']||null,_0x595423['id']=_0x595423['id']||_0x3aad70(),_0x595423={..._0x595423,..._0x554e0e};const _0x1c109f=this['addRevisionData'](_0x595423);_0x284700['push'](_0x595423);const _0xb65b3a=this['repository']['getIndex'](_0x1c109f);if(0x0!==_0xb65b3a){const _0x386b4b=this['repository']['getRevision'](_0xb65b3a-0x1);if(_0x386b4b['fromVersion']!==_0x70aa97){const _0x14a258=this['_revisionDataBuilder']['getData'](_0x70aa97,_0x386b4b['toVersion']),_0x52bd09={'id':_0x386b4b['id'],'diffData':_0x14a258['diffData'],'authorsIds':_0x14a258['authorsIds'],'authors':_0x14a258['authorsIds']['map'](_0x554fcd=>this['editor']['plugins']['get']('Users')['getUser'](_0x554fcd)),'fromVersion':_0x70aa97};_0x386b4b===this['currentRevision']&&(_0x52bd09['createdAt']=new Date(_0x595423['createdAt']['getTime']()+0xa)),_0x386b4b['_update'](_0x52bd09,!0x0),delete _0x52bd09['authors'],_0x284700['push'](_0x52bd09);}}if(this['adapter']){for(const _0xf35a58 of _0x284700)this['_bufferUpdate'](_0xf35a58['id'],_0xf35a58,!0x0);this['sendBufferedUpdates']();}return _0x1c109f;}['addRevisionData'](_0x5048e7){const _0x5da9a6=this['repository']['createRevision'](_0x5048e7);return this['adapter']&&_0x5da9a6['on']('_update',(_0x4fd718,_0x5affdb,_0x2b3213)=>{_0x2b3213||(this['_bufferUpdate'](_0x5affdb['id'],_0x5affdb,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5da9a6,this['_findInsertionIndex'](_0x5da9a6)),_0x5da9a6;}async['getRevisionDocumentData'](_0x518d5f){await this['_loadRevisionData'](_0x518d5f);const _0x1c58ce={};for(const _0x5d5174 in _0x518d5f['diffData']){if(_0x518d5f['diffData'][_0x5d5174]['attachChange']&&!_0x518d5f['diffData'][_0x5d5174]['attachChange']['isAttached'])continue;const _0x5edf61=this['_removeRevisionMarkers'](JSON['parse'](_0x518d5f['diffData'][_0x5d5174]['insertions'])),_0xdeb872=this['editor']['editing']['view']['document'],_0x4a4840=new _0x1c9f86(_0xdeb872,_0x5edf61['map'](_0xd48eb=>P(_0xd48eb,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c58ce[_0x5d5174]=this['editor']['data']['processor']['toData'](_0x4a4840),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c58ce;}async['getRevisionRootsAttributes'](_0x1e5d4b){await this['_loadRevisionData'](_0x1e5d4b);const _0x5a14e7={};for(const _0x5c344b in _0x1e5d4b['diffData'])_0x1e5d4b['diffData'][_0x5c344b]['attachChange']&&!_0x1e5d4b['diffData'][_0x5c344b]['attachChange']['isAttached']||(_0x5a14e7[_0x5c344b]=_0x1e5d4b['diffData'][_0x5c344b]['attributesAfter']||{});return _0x5a14e7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x54bc22=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x80632f=0x0;_0x80632f<_0x54bc22['length'];_0x80632f++){const _0x5bf80a=_0x54bc22[_0x80632f];let _0x5421ee=!0x1;for(const _0x4d28ee of Object['keys'](_0x5bf80a))void 0x0===_0x5bf80a[_0x4d28ee]?delete _0x5bf80a[_0x4d28ee]:'id'!==_0x4d28ee&&(_0x5421ee=!0x0);_0x5421ee||(_0x54bc22[_0x80632f]=null);}if(_0x54bc22=_0x54bc22['filter'](_0xcefe09=>null!==_0xcefe09),!_0x54bc22['length'])return;for(let _0x181499=0x0;_0x181499<_0x54bc22['length'];_0x181499++){const _0x353f02=_0x54bc22[_0x181499];void 0x0!==_0x353f02['fromVersion']&&void 0x0===_0x353f02['toVersion']&&(_0x353f02['toVersion']=this['repository']['getRevision'](_0x353f02['id'])['toVersion']),void 0x0!==_0x353f02['toVersion']&&void 0x0===_0x353f02['fromVersion']&&(_0x353f02['fromVersion']=this['repository']['getRevision'](_0x353f02['id'])['fromVersion']);}const _0x5633f5=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x54bc22,_0x5633f5)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x552ab4=>{if(_0x552ab4){for(const _0x52c09d of _0x552ab4)this['setRevisionData']({'id':_0x52c09d['id'],'createdAt':_0x52c09d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3ccc4f,_0xc533a5){let _0x32589d=this['editor']['config']['get']('initialData'),_0x2c1e3b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x32589d){_0x32589d={};for(const _0x35088e of this['editor']['model']['document']['getRootNames']())_0x32589d[_0x35088e]='';}if('string'==typeof _0x32589d&&(_0x32589d={'main':_0x32589d}),void 0x0===_0x2c1e3b){_0x2c1e3b={};for(const _0x1fb87b of this['editor']['model']['document']['getRootNames']())_0x2c1e3b[_0x1fb87b]={};}let _0x57631b=!0x1;const _0x480255=Object['keys'](_0x32589d),_0x5bf505=Object['keys'](_0x3ccc4f);for(const _0x38ad99 of _0x480255){if(_0x32589d[_0x38ad99]!==_0x3ccc4f[_0x38ad99]&&''!==_0x32589d[_0x38ad99]['trim']()){_0x57631b=!0x0;break;}if(!_0x93096c(_0x2c1e3b[_0x38ad99],_0xc533a5[_0x38ad99])&&Object['keys'](_0x2c1e3b[_0x38ad99])['length']>0x0){_0x57631b=!0x0;break;}}_0x57631b||(_0x57631b=_0x5bf505['some'](_0x58ef69=>!this['editor']['model']['document']['getRoot'](_0x58ef69))),_0x57631b&&_0x4d1e6d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x32589d,'editorRootsAttributes':_0x2c1e3b,'revisionData':_0x3ccc4f,'revisionRootsAttributes':_0xc533a5}),this['editor']['config']['set']('initialData',_0x3ccc4f),this['editor']['config']['set']('rootsAttributes',_0xc533a5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x53d17f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x53d17f['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x320b1c){const _0x2894d0=this['repository']['getRevisions']();_0x2894d0['reverse']();let _0x3ec7a9=0x0;for(;_0x3ec7a9<_0x2894d0['length'];){const _0x529e09=_0x2894d0[_0x3ec7a9];if(_0x529e09===this['currentRevision']){_0x3ec7a9++;continue;}if(_0x529e09['id']===this['_initialRevisionId'])break;const _0x5bce25=_0x320b1c['toVersion']-_0x529e09['toVersion']||_0x320b1c['fromVersion']-_0x529e09['fromVersion'];if(_0x5bce25>0x0)break;if(_0x5bce25<0x0)_0x3ec7a9++;else{if(!_0x320b1c['creator']&&_0x529e09['creator'])break;if(_0x529e09['creator']||!_0x320b1c['creator']){if(_0x320b1c['createdAt']>_0x529e09['createdAt'])break;_0x3ec7a9++;}else _0x3ec7a9++;}}return _0x3ec7a9;}['setRevisionData'](_0x499a43){const _0xc16ead=this['repository']['getRevision'](_0x499a43['id']);if(_0x499a43['createdAt']&&(_0x499a43['createdAt']=new Date(_0x499a43['createdAt'])),_0x499a43['authorsIds']){const _0x14ecd2=this['editor']['plugins']['get']('Users');_0x499a43['authors']=_0x499a43['authorsIds']['map'](_0x435854=>_0x14ecd2['getUser'](_0x435854));}_0xc16ead['_update'](_0x499a43,!0x0);}['buildRevisionData']({revision:_0x3942b7=null,from:_0x3f8dae=null,to:_0xcf052c=null}){_0x3f8dae=null!==_0x3f8dae?_0x3f8dae:_0x3942b7['fromVersion'],_0xcf052c=null!==_0xcf052c?_0xcf052c:_0x3942b7['toVersion'];const _0x3419e8=this['_revisionDataBuilder']['getData'](_0x3f8dae,_0xcf052c),_0x135250={'diffData':_0x3419e8['diffData'],'authorsIds':_0x3419e8['authorsIds'],'fromVersion':_0x3f8dae,'toVersion':_0xcf052c};if(!_0x3942b7||_0xcf052c!==_0x3942b7['toVersion']){const _0x58e2aa=_0xcf052c-0x1,_0x426204=this['_source']['history']['getOperation'](_0x58e2aa);_0x135250['createdAt']=_0x426204&&_0x426204['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3f8dae===this['_loadedStateData']['fromVersion']){for(const _0x4ade84 of this['_loadedStateData']['authors'])_0x135250['authorsIds']['includes'](_0x4ade84['id'])||_0x135250['authorsIds']['push'](_0x4ade84['id']);}return _0x135250;}['_loadRevisionData'](_0x3f2781){if(!_0x3f2781||_0x3f2781['diffData'])return Promise['resolve']();{const _0xa60a4=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xa60a4,'revisionId':_0x3f2781['id']})['then'](_0xb3816c=>{_0x3f2781['diffData']=_0xb3816c['diffData'];});}}['_bufferUpdate'](_0x3989e6,_0x4522c4,_0x544936){if(this['_bufferedUpdates']['has'](_0x3989e6)){const _0x574f8d=this['_bufferedUpdates']['get'](_0x3989e6);_0x4522c4=_0x544936?{..._0x574f8d,..._0x4522c4}:{..._0x4522c4,..._0x574f8d};}this['_bufferedUpdates']['set'](_0x3989e6,_0x4522c4);}['_getFromVersion'](_0x49a840){const _0x32322c=this['repository']['getRevisions']();_0x32322c['reverse'](),_0x32322c['shift']();const _0x403ab9=_0x32322c['find'](_0x1a46d5=>_0x1a46d5['toVersion']<=_0x49a840)['toVersion'];return _0x403ab9<this['_startingVersion']?this['_startingVersion']:_0x403ab9;}['_createInitialRevision'](_0x329b68){const _0x24725e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x24725e)this['_initialRevisionId']=_0x24725e['id'];else{const _0x5189e7=!this['editor']['model']['document']['roots']['find'](_0x2c6a2c=>this['editor']['model']['hasContent'](_0x2c6a2c)),_0x190cf9=this['editor']['plugins']['get']('Users')['me']['id'],_0x7f0a21=m(this['editor']['locale'],_0x5189e7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x329b68,'to':_0x329b68,'id':this['_initialRevisionId'],'name':_0x7f0a21,'creatorId':_0x190cf9});}}['_createCurrentRevision'](_0x5bf29b){const _0x455fc9=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x455fc9),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5bf29b,'to':_0x5bf29b,'id':_0x455fc9,'name':'','creatorId':null}));}['_makeRevision']({name:_0x575ae6,from:_0x3264bd,to:_0x3934c8,creatorId:_0x505018,id:_0x51f6e5}){const _0x4fba11=this['buildRevisionData']({'from':_0x3264bd,'to':_0x3934c8});_0x4fba11['name']=_0x575ae6,_0x4fba11['creatorId']=_0x505018,_0x4fba11['id']=_0x51f6e5;const _0x3bc564=this['addRevisionData'](_0x4fba11);return this['adapter']&&this['_bufferUpdate'](_0x4fba11['id'],_0x4fba11,!0x0),_0x3bc564;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x16df9b){return(_0x16df9b=_0x16df9b['filter'](_0xe0865=>!_0xe0865['name']||'revision-start'!==_0xe0865['name']&&'revision-end'!==_0xe0865['name']))['forEach'](_0x2d395b=>{'string'!=typeof _0x2d395b&&(_0x2d395b['children']=this['_removeRevisionMarkers'](_0x2d395b['children']),_0x2d395b['attributes']=_0x2d395b['attributes']['filter'](_0x59f73d=>!_0x59f73d[0x0]['startsWith']('data-revision-')));}),_0x16df9b;}}function P(_0xfecd9d,_0x331ebb){const _0x515bdd=_0x331ebb['editing']['view']['document'];if('string'==typeof _0xfecd9d)return new _0x5b5f30(_0x515bdd,_0xfecd9d);{const _0x518d44=_0xfecd9d['children']['map'](_0x33c9d5=>P(_0x33c9d5,_0x331ebb));return new(E[_0xfecd9d['type']]||_0x5aa52f)(_0x515bdd,_0xfecd9d['name'],_0xfecd9d['attributes'],_0x518d44);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x253b96){this['editor']=_0x253b96,this['_savedMetaData']=new Map(),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_markers']=new Map(),this['_diffRoots']=new Map(),this['_diffRootsAttributes']=new Map(),this['_baseRoots']=new Map(),this['_baseRootsAttributes']=new Map(),this['_idsRoots']=new Map(),this['_baseIdsRoots']=new Map(),this['_touched']=new Map(),this['_touchedMarkers']=new Map(),this['_touchedRoots']=new Map(),this['_revisionId']=0x1;}['init'](_0x3dbe5e){this['source']=_0x3dbe5e;const _0x44a915=new Map(),_0x42b341=new Map(),_0x361338=this['editor']['model']['document']['roots']['map'](_0x156523=>_0x156523['rootName']);for(const _0xab164d of _0x361338){const _0x1f6f10=this['editor']['model']['document']['getRoot'](_0xab164d),_0x408791=T(_0x1f6f10);_0x44a915['set'](_0xab164d,_0x408791),_0x42b341['set'](_0xab164d,Object['fromEntries'](_0x1f6f10['getAttributes']()));}const _0x4e6a4e=Array['from'](this['editor']['model']['markers'])['map'](_0x62d997=>[_0x62d997['name'],_0x62d997['getRange']()]),_0x470f3e=this['source']['version'];this['_saveMetaData'](_0x470f3e,_0x44a915,_0x4e6a4e,_0x42b341),this['_startingRevisionId']=this['_revisionId'];const _0x305015=new Map(),_0x3b4197=new Map();for(const _0x6eafbd of _0x361338){const _0x468f88=F(_0x6eafbd);_0x305015['set'](_0x6eafbd,_0x468f88),_0x3b4197['set'](_0x6eafbd,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x305015,[],_0x3b4197);}['getData'](_0x1ff16d,_0x358144){if(this['_lastFrom']===_0x1ff16d&&this['_lastTo']<=_0x358144)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x358144,!0x0);else{if(!this['_savedMetaData']['has'](_0x1ff16d)){const _0x2de812=this['_getPreviousFrom'](_0x1ff16d);this['_calculateMetaData'](_0x2de812,_0x1ff16d,!0x1);}this['_calculateMetaData'](_0x1ff16d,_0x358144,!0x0);}return this['_lastFrom']=_0x1ff16d,this['_lastTo']=_0x358144,this['_getState']();}['loadState'](_0x3d6085){this['_reset'](),this['_lastFrom']=_0x3d6085['fromVersion'],this['_lastTo']=_0x3d6085['toVersion'];for(const _0x35a34a in _0x3d6085['diffData']){const _0xf85110=_0x3d6085['diffData'][_0x35a34a]['attachChange'],_0x4c8da1=_0x4abf57(_0x3d6085['diffData'][_0x35a34a]['attributesBefore'])||{},_0x17d85b=this['_makeModelFromViewString'](_0x3d6085['diffData'][_0x35a34a]['deletions']);_0x17d85b['rootName']=_0x35a34a,_0x17d85b['_isAttached']=!_0xf85110||!_0xf85110['isAttached'],_0x17d85b['isAttached']=()=>_0x17d85b['_isAttached'],this['_baseRoots']['set'](_0x35a34a,_0x17d85b),this['_baseRootsAttributes']['set'](_0x35a34a,_0x4c8da1),_0xf85110&&this['_touchedRoots']['set'](_0x35a34a,_0xf85110);const _0x251d38=this['_makeIdsRoot'](_0x17d85b);this['_baseIdsRoots']['set'](_0x35a34a,_0x251d38);for(const [_0x53c437,_0x9dd1cd]of _0x17d85b['markers']){if(!_0x53c437['startsWith']('revision:'))continue;const _0x2ec562=_0x53c437['split'](':')[0x2];for(const _0x2e83f7 of _0x9dd1cd['getWalker']({'singleCharacters':!0x0})){const _0x1885bb=this['_getVidAttributeName'](_0x2e83f7),_0x55b3f6='elementEnd'==_0x2e83f7['type']?_0x2e83f7['previousPosition']['path']['slice'](0x0,-0x1):_0x2e83f7['previousPosition']['path'],_0x492274=_0x251d38['getNodeByPath'](_0x55b3f6)['getAttribute'](_0x1885bb);this['_touched']['set'](_0x492274,{'userId':_0x2ec562});}}}this['_startingRevisionId']=this['_revisionId'];const _0x55a177=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x37e8dc=>!this['_touched']['has'](_0x37e8dc));let _0x11a3ee=0x0;const _0x26b573=new Map();for(const _0x5ad722 in _0x3d6085['diffData']){const _0x2dca36=_0x3d6085['diffData'][_0x5ad722]['attachChange'],_0x44353e=_0x4abf57(_0x3d6085['diffData'][_0x5ad722]['attributesAfter'])||{},_0x2c502c=this['_makeModelFromViewString'](_0x3d6085['diffData'][_0x5ad722]['insertions']);_0x2c502c['rootName']=_0x5ad722,_0x2c502c['_isAttached']=!_0x2dca36||_0x2dca36['isAttached'],_0x2c502c['isAttached']=()=>_0x2c502c['_isAttached'],this['_diffRoots']['set'](_0x5ad722,_0x2c502c),this['_diffRootsAttributes']['set'](_0x5ad722,_0x44353e);const _0xe8b2f6=this['_makeIdsRoot'](_0x2c502c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5ad722,_0xe8b2f6),_0x26b573['set'](_0x5ad722,_0x2c502c['isAttached']()?_0x44353e:{});for(const [_0x1ac178,_0x467eba]of _0x2c502c['markers']){if(!_0x1ac178['startsWith']('revision:'))continue;const _0x3695d9=_0x1ac178['split'](':')[0x2];for(const _0x11da4a of _0x467eba['getWalker']({'singleCharacters':!0x0})){const _0x559e6b=this['_getVidAttributeName'](_0x11da4a),_0x8d0b40=this['_revisionId']++,_0x1eb9d2='elementEnd'==_0x11da4a['type']?_0x11da4a['previousPosition']['path']['slice'](0x0,-0x1):_0x11da4a['previousPosition']['path'];_0xe8b2f6['getNodeByPath'](_0x1eb9d2)['_setAttribute'](_0x559e6b,_0x8d0b40),this['_touched']['set'](_0x8d0b40,{'userId':_0x3695d9});}}for(const _0x47344c of this['editor']['model']['createRangeIn'](_0x2c502c)['getWalker']({'singleCharacters':!0x0})){const _0x12659d=this['_getVidAttributeName'](_0x47344c),_0x205823='elementEnd'==_0x47344c['type']?_0x47344c['previousPosition']['path']['slice'](0x0,-0x1):_0x47344c['previousPosition']['path'],_0x4bf3fd=_0xe8b2f6['getNodeByPath'](_0x205823);_0x4bf3fd['getAttribute'](_0x12659d)>0x0||_0x4bf3fd['_setAttribute'](_0x12659d,_0x55a177[_0x11a3ee++]);}for(const [_0xefc02a,_0x31e536]of _0x2c502c['markers'])_0xefc02a['startsWith']('revision:')||this['_markers']['set'](_0xefc02a,_0x31e536);}const _0x2d025a=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2d025a),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2d025a,0x1));const _0x2a6a48=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2a6a48),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2a6a48,0x1));const _0xb14a59=Array['from'](this['_diffRoots'])['map'](([_0x464587,_0x10076d])=>[_0x464587,T(_0x10076d)]);this['_saveMetaData'](this['_lastTo'],_0xb14a59,this['_markers'],_0x26b573);}['_makeModelFromViewString'](_0x3a8972){const _0x207fde=JSON['parse'](_0x3a8972),_0x256d9f=this['editor']['editing']['view']['document'],_0x1f47aa=new _0x1c9f86(_0x256d9f,_0x207fde['map'](_0x42d3d7=>P(_0x42d3d7,this['editor'])));return this['editor']['data']['toModel'](_0x1f47aa);}['_saveMetaData'](_0x2ceb21,_0x50d1d9,_0x2edca,_0xaa2367){const _0x57f17d=new Map(_0x50d1d9),_0x3ca228=new Map(_0x4abf57(_0xaa2367)),_0x40b863=new Map();for(const [_0x5a0884,_0x175d43]of _0x2edca)_0x40b863['set'](_0x5a0884,{'start':_0x175d43['start']['clone'](),'end':_0x175d43['end']['clone'](),'rootName':_0x175d43['root']['rootName']});this['_savedMetaData']['set'](_0x2ceb21,{'roots':_0x57f17d,'markers':_0x40b863,'rootsAttributes':_0x3ca228});}['_removeMetaData'](_0x313b8d){this['_savedMetaData']['delete'](_0x313b8d);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0xd88c23,_0x314c10=null){let _0x377a81=null;_0xd88c23['is']('documentFragment')||(_0x377a81=new ut(_0xd88c23['name'],{'vid_start':null===_0x314c10?this['_revisionId']++:_0x314c10++}));const _0x31dc0a=[];for(const _0x50a1c9 of _0xd88c23['getChildren']())if(_0x50a1c9['is']('element')){_0x31dc0a['push'](this['_makeIdsRoot'](_0x50a1c9,_0x314c10));const _0x507479=_0x31dc0a[_0x31dc0a['length']-0x1];null!==_0x314c10&&(_0x314c10=_0x507479['is']('element','$text')?_0x507479['getAttribute']('vid')+0x1:_0x507479['getAttribute']('vid_end')+0x1);}else{for(let _0x1bd5e4=0x0;_0x1bd5e4<_0x50a1c9['offsetSize'];_0x1bd5e4++)_0x31dc0a['push'](new ut('$text',{'vid':null===_0x314c10?this['_revisionId']++:_0x314c10++}));}if(_0xd88c23['is']('documentFragment')){const _0x57038e=F(_0xd88c23['rootName']);return _0x57038e['_insertChild'](0x0,_0x31dc0a),_0x57038e;}return _0x377a81['_setAttribute']('vid_end',null===_0x314c10?this['_revisionId']++:_0x314c10++),_0x377a81['_insertChild'](0x0,_0x31dc0a),_0x377a81;}['_calculateMetaData'](_0x5ea4b0,_0x1cdf66,_0x2b65a2){this['_reset']();const {roots:_0x49f556,markers:_0x5b236f,rootsAttributes:_0x270d79}=this['_savedMetaData']['get'](_0x5ea4b0);this['_baseRoots']=new Map(_0x49f556),this['_baseRootsAttributes']=new Map(_0x4abf57(_0x270d79));for(const [_0x48a684,_0x4e1045]of this['_baseRoots'])if('$graveyard'!==_0x48a684&&(this['_diffRoots']['set'](_0x48a684,T(_0x4e1045)),this['_diffRootsAttributes']=new Map(_0x4abf57(_0x270d79)),_0x2b65a2)){const _0x59c5d7=this['_revisionId'];this['_idsRoots']['set'](_0x48a684,this['_makeIdsRoot'](_0x4e1045)),this['_baseIdsRoots']['set'](_0x48a684,this['_makeIdsRoot'](_0x4e1045,_0x59c5d7));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2b65a2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xb0e037,_0x4603c2]of _0x5b236f){const _0x165635=this['_baseRoots']['get'](_0x4603c2['rootName']),_0x3c6322=this['_diffRoots']['get'](_0x4603c2['rootName']),_0x22303=new ft(this['_fixPosition'](_0x4603c2['start'],_0x165635),this['_fixPosition'](_0x4603c2['end'],_0x165635)),_0x16b171=this['_fixRange'](_0x22303,_0x3c6322);_0x165635['markers']['set'](_0xb0e037,_0x22303),this['_markers']['set'](_0xb0e037,_0x16b171);}this['_applyOperations'](_0x5ea4b0,_0x1cdf66,_0x2b65a2);}['_applyOperations'](_0x43812f,_0x16230f,_0xaab519){for(const _0x252517 of this['source']['getOperations'](_0x43812f,_0x16230f))this['_handleOperation'](_0x252517,_0xaab519);for(const _0x5587cc of this['_diffRoots']['values']())_0x5587cc['markers']['clear']();for(const [_0x108883,_0x13a072]of this['_markers']){this['_diffRoots']['get'](_0x13a072['root']['rootName'])['markers']['set'](_0x108883,_0x13a072['clone']());}const _0x4f5ed7=new Map(),_0xb2d693=new Map();for(const [_0x8a6955,_0x2ccab1]of this['_diffRoots'])_0x4f5ed7['set'](_0x8a6955,T(_0x2ccab1)),_0xb2d693['set'](_0x8a6955,this['_diffRootsAttributes']['get'](_0x8a6955));this['_saveMetaData'](_0x16230f,_0x4f5ed7,this['_markers'],_0xb2d693);}['_getPreviousFrom'](_0x5dae33){const _0x5ab94e=Array['from'](this['_savedMetaData']['keys']());_0x5ab94e['sort']((_0x3e18b4,_0x4c670c)=>_0x3e18b4-_0x4c670c),_0x5ab94e['reverse']();for(const _0x5756a3 of _0x5ab94e)if(_0x5756a3<_0x5dae33)return _0x5756a3;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0xc3a817,_0x158991){const _0x54899f=Array['from'](_0x158991['markers'])['map'](([_0x551ae0,_0x1aa909])=>[_0x551ae0,this['_fixRange'](_0x1aa909,_0xc3a817)]);_0xc3a817['markers']=new Map(_0x54899f);}['_transformMarkers'](_0x279e91){for(const _0x63097 of this['_markers']['values']()){const _0x418e89=_0x63097['getTransformedByOperation'](_0x279e91),_0x3d7022=ft['_createFromRanges'](_0x418e89);_0x63097['start']=_0x3d7022['start'],_0x63097['end']=_0x3d7022['end'];}}['_handleOperation'](_0x1f4b29,_0x178b2a){if('addRoot'!=_0x1f4b29['type']&&'detachRoot'!=_0x1f4b29['type']){if('insert'==_0x1f4b29['type']){const _0x218b31=_0x1f4b29['position']['root']['rootName'];this['_diffRoots']['has'](_0x218b31)||(this['_diffRoots']['set'](_0x218b31,F(_0x218b31,!0x0)),this['_diffRootsAttributes']['set'](_0x218b31,{}),_0x178b2a&&this['_idsRoots']['set'](_0x218b31,F(_0x218b31,!0x0)));}else{if('addRootAttribute'==_0x1f4b29['type']||'removeRootAttribute'==_0x1f4b29['type']||'changeRootAttribute'==_0x1f4b29['type'])return void this['_handleRootAttributeOperation'](_0x1f4b29);'marker'==_0x1f4b29['type']&&this['_handleMarkerOperation'](_0x1f4b29);}if('marker'!==_0x1f4b29['type']){const _0x3c44e1=this['_cloneOperation'](_0x1f4b29,this['_diffRoots']);_0x3c44e1['_execute'](),this['_transformMarkers'](_0x3c44e1);}if(_0x178b2a)switch(_0x1f4b29['type']){case'insert':this['_handleInsertOperation'](_0x1f4b29);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1f4b29);break;case'merge':this['_handleMergeOperation'](_0x1f4b29);break;case'split':this['_handleSplitOperation'](_0x1f4b29);}}else this['_handleRootOperation'](_0x1f4b29,_0x178b2a);}['_cloneOperation'](_0x4b8d79,_0x5b3ea1){const _0x2e36e2=_0x4b8d79['clone']();return _0x2e36e2['_authorId']=_0x4b8d79['_authorId'],this['_fixOperation'](_0x2e36e2,_0x5b3ea1),_0x2e36e2;}['_getBaseVids'](_0x5ba3db){return _0x5ba3db['map'](_0x48559d=>{const _0x833f12=this['_getVidAttributeName'](_0x48559d);return Number(_0x48559d['item']['getAttribute'](_0x833f12));});}['_generateTape'](_0x2d8350,_0x1de3ac){if(_0x2d8350['is']('element','$text'))_0x1de3ac['push']({'item':_0x2d8350,'type':'text'});else{_0x2d8350['is']('element')&&_0x1de3ac['push']({'item':_0x2d8350,'type':'elementStart'});for(const _0x2805bb of _0x2d8350['getChildren']())this['_generateTape'](_0x2805bb,_0x1de3ac);_0x2d8350['is']('element')&&_0x1de3ac['push']({'item':_0x2d8350,'type':'elementEnd'});}return _0x1de3ac;}['_getState'](){const _0x396923=new Map(this['_touched']),_0x745e2=new Map(_0x396923),_0x17c815=new Map(),_0x365bf9={'insertions':{},'deletions':{}},_0x39c1aa={'insertions':{},'deletions':{}},_0x2edca5=new Map(),_0x37e919=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x37e919['delete']('$graveyard');for(const _0x402cf2 of _0x37e919){const _0x1c1282=this['_diffRoots']['get'](_0x402cf2)||F(_0x402cf2,!0x1),_0x534f52=this['_baseRoots']['get'](_0x402cf2)||F(_0x402cf2,!0x1);_0x1c1282['isAttached']()||_0x534f52['isAttached']()?(_0x365bf9['insertions'][_0x402cf2]=T(_0x1c1282),_0x365bf9['deletions'][_0x402cf2]=T(_0x534f52),this['_copyMarkers'](_0x365bf9['deletions'][_0x402cf2],_0x534f52),this['_copyMarkers'](_0x365bf9['insertions'][_0x402cf2],_0x1c1282),_0x39c1aa['insertions'][_0x402cf2]=this['_generateTape'](this['_idsRoots']['get'](_0x402cf2),[]),_0x39c1aa['deletions'][_0x402cf2]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x402cf2)||F(_0x402cf2,!0x1),[])):_0x37e919['delete'](_0x402cf2);}for(const _0x2aa38f of _0x37e919){const _0x51d097=_0x39c1aa['insertions'][_0x2aa38f];for(const _0x355db5 of _0x51d097){const _0x92e6e8=this['_getVidAttributeName'](_0x355db5),_0x363207=_0x355db5['item']['getAttribute'](_0x92e6e8);_0x745e2['delete'](_0x363207),_0x363207>=this['_startingRevisionId']&&_0x17c815['set'](_0x363207,_0x396923['get'](_0x363207));}}for(const _0x294908 of _0x37e919){const _0x315902=_0x39c1aa['insertions'][_0x294908],_0x12c544=this['_getBaseVids'](_0x39c1aa['deletions'][_0x294908]);let _0x15b108=0x0;for(const _0x588ba2 of _0x315902){const _0x7db122=this['_getVidAttributeName'](_0x588ba2),_0x50e62a=_0x588ba2['item']['getAttribute'](_0x7db122);if(!_0x17c815['has'](_0x50e62a)&&!_0x2edca5['has'](_0x50e62a)){if(_0x745e2['has'](_0x50e62a))_0x15b108++;else{if(_0x50e62a!=_0x12c544[_0x15b108]){const _0x2ee8eb=_0x396923['get'](_0x50e62a)||_0x396923['get'](_0x12c544[_0x15b108]);for(;_0x50e62a!=_0x12c544[_0x15b108];)_0x745e2['has'](_0x12c544[_0x15b108])||(_0x2edca5['set'](_0x12c544[_0x15b108],_0x2ee8eb),_0x396923['set'](_0x12c544[_0x15b108],_0x2ee8eb)),_0x15b108++;}_0x15b108++;}}}}for(const _0x5d549e of _0x37e919){const _0x17bcee=_0x39c1aa['insertions'][_0x5d549e];for(const _0x2c31a4 of _0x17bcee){const _0x2ac822=this['_getVidAttributeName'](_0x2c31a4),_0x5dbf40=_0x2c31a4['item']['getAttribute'](_0x2ac822);if(_0x2edca5['has'](_0x5dbf40)){const _0x29fced=_0x2edca5['get'](_0x5dbf40);_0x745e2['has'](_0x5dbf40)||_0x745e2['set'](_0x5dbf40,{..._0x29fced}),_0x17c815['set'](_0x5dbf40,{..._0x29fced});}}}for(const _0x10545e of _0x745e2['keys']())_0x10545e>=this['_startingRevisionId']&&_0x745e2['delete'](_0x10545e);const _0x30eb10=new Map();for(const _0xf12888 of _0x37e919){let _0x2ef5e0=_0x39c1aa['insertions'][_0xf12888];for(const _0x40035e of _0x2ef5e0)if(_0x40035e['item']['is']('element','tableCell')){const _0x2ea1bd=this['_getVidAttributeName'](_0x40035e),_0x25b019=_0x40035e['item']['getAttribute'](_0x2ea1bd);if(_0x17c815['has'](_0x25b019)){const _0x14871e=_0x40035e['item']['parent']['parent']['getAttribute']('vid_start'),_0x2411a4=_0x30eb10['get'](_0x14871e)||new Set();_0x2411a4['add'](_0x17c815['get'](_0x25b019)['userId']),_0x30eb10['set'](_0x14871e,_0x2411a4);}}_0x2ef5e0=_0x39c1aa['deletions'][_0xf12888];for(const _0x25a868 of _0x2ef5e0)if(_0x25a868['item']['is']('element','tableCell')){const _0x5ad9d1=this['_getVidAttributeName'](_0x25a868),_0x525967=_0x25a868['item']['getAttribute'](_0x5ad9d1);if(_0x745e2['has'](_0x525967)){const _0x130085=_0x25a868['item']['parent']['parent']['getAttribute']('vid_start'),_0x3c4d7e=_0x30eb10['get'](_0x130085)||new Set();_0x3c4d7e['add'](_0x745e2['get'](_0x525967)['userId']),_0x30eb10['set'](_0x130085,_0x3c4d7e);}}for(const _0x13fbed of _0x30eb10['keys']())(_0x17c815['has'](_0x13fbed)||_0x745e2['has'](_0x13fbed))&&_0x30eb10['delete'](_0x13fbed);}for(const _0x195871 of _0x37e919){const _0x16cfcd=_0x39c1aa['insertions'][_0x195871];let _0x235346=null,_0x370170=null;for(const _0x33f834 of _0x16cfcd){const _0x2414c3=this['_getVidAttributeName'](_0x33f834),_0x5743fe=_0x33f834['item']['getAttribute'](_0x2414c3),_0x418c43=_0x30eb10['get'](_0x5743fe);_0x418c43&&'elementStart'==_0x33f834['type']&&(_0x235346=Array['from'](_0x418c43)[0x0],_0x370170=_0x33f834['item']['getAttribute']('vid_end')),_0x235346&&(_0x745e2['set'](_0x5743fe,{'userId':_0x235346}),_0x17c815['set'](_0x5743fe,{'userId':_0x235346})),_0x5743fe==_0x370170&&(_0x235346=null,_0x370170=null);}}const _0x336a01={},_0x4d7a51=new Set();for(const _0x7a9af5 of _0x37e919){const _0x58dded=_0x365bf9['deletions'][_0x7a9af5],_0x30753f=_0x365bf9['insertions'][_0x7a9af5];for(const {userId:_0x130bb0}of this['_touchedMarkers']['values']())null!==_0x130bb0&&_0x4d7a51['add'](_0x130bb0);for(const {userId:_0x1c92e0}of this['_touchedRoots']['values']())null!==_0x1c92e0&&_0x4d7a51['add'](_0x1c92e0);this['_markChanges'](_0x30753f,_0x39c1aa['insertions'][_0x7a9af5],_0x17c815,'insertion',_0x4d7a51),this['_markChanges'](_0x58dded,_0x39c1aa['deletions'][_0x7a9af5],_0x745e2,'deletion',_0x4d7a51),_0x336a01[_0x7a9af5]={'insertions':this['_prepareViewToSave'](_0x30753f),'deletions':this['_prepareViewToSave'](_0x58dded),'attachChange':this['_touchedRoots']['get'](_0x7a9af5)||null,'attributesBefore':_0x4abf57(this['_baseRootsAttributes']['get'](_0x7a9af5))||{},'attributesAfter':_0x4abf57(this['_diffRootsAttributes']['get'](_0x7a9af5))};}return{'diffData':_0x336a01,'authorsIds':Array['from'](_0x4d7a51)};}['_processRootBeforeSave'](_0x5b292a){for(const [,_0x47226f]of _0x5b292a['markers']){const _0x16baa7=_0x47226f['start']['getAncestors']()['filter'](_0x19a7fb=>'tableCell'==_0x19a7fb['name']);for(const _0x516075 of _0x16baa7)0x1==_0x516075['childCount']&&_0x516075['getChild'](0x0)['is']('element','paragraph')&&_0x516075['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5bc040){this['_processRootBeforeSave'](_0x5bc040);const _0x4fb1cd=this['editor']['data']['toView'](_0x5bc040,{}),_0x5e7854=Array['from'](_0x4fb1cd['getChildren']())['map'](_0x2fd3c3=>this['_getViewJson'](_0x2fd3c3));return JSON['stringify'](_0x5e7854);}['_getViewJson'](_0x49ef5b){if(_0x49ef5b['is']('$text'))return _0x49ef5b['data'];{const _0x10762b=_0x49ef5b;return{'type':Object['keys'](E)['find'](_0x528d6=>_0x49ef5b instanceof E[_0x528d6]),'name':_0x10762b['name'],'attributes':Array['from'](_0x10762b['getAttributes']()),'children':Array['from'](_0x10762b['getChildren']())['map'](_0x57d192=>this['_getViewJson'](_0x57d192))};}}['_markChanges'](_0x21946e,_0x4525f8,_0x5ecc02,_0x5f0ad9,_0x421437){let _0x27e7ae=null,_0x596abf=null,_0x1f8a0d=0x0;const _0x4368d0=this['editor']['model'];for(let _0x6dfbee=0x0;_0x6dfbee<_0x4525f8['length'];_0x6dfbee++){const _0x3be68f=this['_getVidAttributeName'](_0x4525f8[_0x6dfbee]),_0x55367c=_0x4525f8[_0x6dfbee]['item']['getAttribute'](_0x3be68f),_0x415135=_0x5ecc02['get'](_0x55367c),_0x4f5d63=_0x6dfbee==_0x4525f8['length']-0x1;(!_0x27e7ae&&_0x415135&&(_0x27e7ae=_0x415135,_0x596abf=_0x4525f8[_0x6dfbee]),_0x27e7ae&&(!_0x415135||_0x415135['userId']!=_0x27e7ae['userId']))&&(_0x1079d6(_0x415135,B(_0x596abf,_0x21946e,_0x4368d0),B(_0x4525f8[_0x6dfbee],_0x21946e,_0x4368d0)),_0x27e7ae=_0x415135||null,_0x596abf=_0x415135?_0x4525f8[_0x6dfbee]:null),_0x27e7ae&&_0x4f5d63&&_0x1079d6(_0x415135,B(_0x596abf,_0x21946e,_0x4368d0),J(_0x4525f8[_0x6dfbee],_0x21946e,_0x4368d0));}function _0x1079d6(_0x23bffb,_0x4a3f76,_0x40cfcf){const _0x48b659=_0x27e7ae['userId'],_0x5ea22f='revision:'+_0x5f0ad9+':'+_0x48b659+':'+_0x1f8a0d++,_0x1c8d82=_0x4368d0['createRange'](_0x4a3f76,_0x40cfcf);_0x21946e['markers']['set'](_0x5ea22f,_0x1c8d82),null!==_0x48b659&&_0x421437['add'](_0x48b659);}}['_getVidAttributeName'](_0x530a4a){switch(_0x530a4a['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x57b44b,_0x488caa){_0x57b44b['baseVersion']=null;for(const _0x5d7b83 in _0x57b44b){const _0x201869=_0x57b44b[_0x5d7b83];if(_0x201869 instanceof vt){const _0x47c8d4=_0x488caa['get'](_0x201869['root']['rootName']);_0x57b44b[_0x5d7b83]=this['_fixPosition'](_0x201869,_0x47c8d4);}if(_0x201869 instanceof ft){const _0x5d9648=_0x488caa['get'](_0x201869['root']['rootName']);_0x57b44b[_0x5d7b83]=this['_fixRange'](_0x201869,_0x5d9648);}'root'===_0x5d7b83&&(_0x57b44b['root']=_0x488caa['get'](_0x57b44b['root']['rootName']));}}['_fixRange'](_0x2b3d14,_0x28fd6d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2b3d14['start'],_0x28fd6d),this['_fixPosition'](_0x2b3d14['end'],_0x28fd6d));}['_fixPosition'](_0x5aee37,_0x86393b){return this['editor']['model']['createPositionFromPath'](_0x86393b,_0x5aee37['path'],_0x5aee37['stickiness']);}['_handleInsertOperation'](_0x52cf1e){const _0x98f835=this['_idsRoots']['get'](_0x52cf1e['position']['root']['rootName']),_0x24d23f=this['_fixPosition'](_0x52cf1e['position'],_0x98f835),_0x535574=null===_0x52cf1e['_authorId']?null:_0x52cf1e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x245d04=_0x24d23f['parent'],_0x28b128=this['_revisionId'],_0x244362=[];for(const _0x205f49 of _0x52cf1e['nodes'])if(_0x205f49['is']('element'))_0x244362['push'](this['_makeIdsRoot'](_0x205f49));else{for(let _0x331a78=0x0;_0x331a78<_0x205f49['offsetSize'];_0x331a78++)_0x244362['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x398279=this['_revisionId'];for(let _0x1937ea=_0x28b128;_0x1937ea<_0x398279;_0x1937ea++)this['_touched']['set'](_0x1937ea,{'userId':_0x535574});_0x245d04['_insertChild'](_0x24d23f['offset'],_0x244362);}['_handleMoveOperation'](_0x315c69){(_0x315c69=this['_cloneOperation'](_0x315c69,this['_idsRoots']))['_execute']();const _0x4e2dae=null===_0x315c69['_authorId']?null:_0x315c69['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2735f6=_0x315c69['getMovedRangeStart'](),_0x1779cd=_0x2735f6['parent'],_0x61d9bd=_0x2735f6['offset'];!function _0x1db5f7(_0x141abd,_0x1c0274,_0x27e38c,_0x1596a8){for(let _0x5d7dbc=_0x27e38c;_0x5d7dbc<_0x1596a8;_0x5d7dbc++){const _0x205500=_0x1c0274['getChild'](_0x5d7dbc);_0x205500['is']('element','$text')?_0x141abd['set'](_0x205500['getAttribute']('vid'),{'userId':_0x4e2dae}):(_0x141abd['set'](_0x205500['getAttribute']('vid_start'),{'userId':_0x4e2dae}),_0x1db5f7(_0x141abd,_0x205500,0x0,_0x205500['childCount']),_0x141abd['set'](_0x205500['getAttribute']('vid_end'),{'userId':_0x4e2dae}));}}(this['_touched'],_0x1779cd,_0x61d9bd,_0x61d9bd+_0x315c69['howMany']);}['_handleMergeOperation'](_0x58cf02){const _0x3ccd24=null===(_0x58cf02=this['_cloneOperation'](_0x58cf02,this['_idsRoots']))['_authorId']?null:_0x58cf02['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2dff03=_0x58cf02['targetPosition']['parent'],_0x5ef496=_0x58cf02['sourcePosition']['parent'],_0x10b4b9=_0x2dff03['getAttribute']('vid_end'),_0x220519=_0x5ef496['getAttribute']('vid_start');_0x2dff03['_setAttribute']('vid_end',_0x5ef496['getAttribute']('vid_end')),_0x5ef496['_setAttribute']('vid_end',_0x10b4b9),this['_touched']['set'](_0x220519,{'userId':_0x3ccd24}),this['_touched']['set'](_0x10b4b9,{'userId':_0x3ccd24}),_0x58cf02['_execute']();}['_handleSplitOperation'](_0x4a1960){const _0x38221e=null===(_0x4a1960=this['_cloneOperation'](_0x4a1960,this['_idsRoots']))['_authorId']?null:_0x4a1960['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f543f=_0x4a1960['graveyardPosition'],_0x4ae57b=_0x4a1960['splitPosition']['parent'];_0x4a1960['_execute']();const _0x4127b2=_0x4ae57b['getAttribute']('vid_end'),_0x2dda20=_0x4a1960['insertionPosition']['nodeAfter'];if(_0x3f543f){const _0x3a1f39=_0x2dda20['getAttribute']('vid_end'),_0xb5f910=_0x4ae57b['getAttribute']('vid_end');_0x4ae57b['_setAttribute']('vid_end',_0x3a1f39),_0x2dda20['_setAttribute']('vid_end',_0xb5f910),this['_touched']['set'](_0x4ae57b['getAttribute']('vid_end'),{'userId':_0x38221e}),this['_touched']['set'](_0x2dda20['getAttribute']('vid_start'),{'userId':_0x38221e});}else{const _0xf9875b=this['_revisionId']++,_0x9ef7bd=this['_revisionId']++;_0x4ae57b['_setAttribute']('vid_end',_0xf9875b),_0x2dda20['_setAttribute']('vid_start',_0x9ef7bd),_0x2dda20['_setAttribute']('vid_end',_0x4127b2),this['_touched']['set'](_0xf9875b,{'userId':_0x38221e}),this['_touched']['set'](_0x9ef7bd,{'userId':_0x38221e});}}['_handleMarkerOperation'](_0x46f007){if(!_0x46f007['affectsData'])return;const _0x127e21=(_0x46f007=this['_cloneOperation'](_0x46f007,this['_diffRoots']))['oldRange']?_0x46f007['oldRange']['root']:null,_0x5dacd1=_0x46f007['newRange']?_0x46f007['newRange']['root']:null;_0x127e21&&this['_markers']['delete'](_0x46f007['name']),_0x5dacd1&&this['_markers']['set'](_0x46f007['name'],_0x46f007['newRange']['clone']());const _0x3edccd=null===_0x46f007['_authorId']?null:_0x46f007['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4be6cd=_0x46f007['name'];if(!this['_touchedMarkers']['has'](_0x4be6cd))return void this['_touchedMarkers']['set'](_0x4be6cd,{'range':_0x46f007['oldRange'],'userId':_0x3edccd});const _0x4cf259=this['_touchedMarkers']['get'](_0x4be6cd),_0x1f8dfb=_0x4cf259['range'],_0x491961=_0x46f007['newRange'];null==_0x1f8dfb&&null==_0x491961||_0x1f8dfb&&_0x491961&&_0x1f8dfb['isEqual'](_0x491961)?this['_touchedMarkers']['delete'](_0x46f007['name']):_0x4cf259['userId']=_0x3edccd;}['_handleRootOperation'](_0x54b357,_0x233cae){this['_diffRoots']['has'](_0x54b357['rootName'])?this['_diffRoots']['get'](_0x54b357['rootName'])['_isAttached']=_0x54b357['isAdd']:(this['_diffRoots']['set'](_0x54b357['rootName'],F(_0x54b357['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x54b357['rootName'],{}),_0x233cae&&this['_idsRoots']['set'](_0x54b357['rootName'],F(_0x54b357['rootName'],!0x0)));const _0x42b129=null===_0x54b357['_authorId']?null:_0x54b357['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4fa242=this['_touchedRoots']['get'](_0x54b357['rootName']);_0x4fa242&&_0x4fa242['userId']===_0x42b129?this['_touchedRoots']['delete'](_0x54b357['rootName']):this['_touchedRoots']['set'](_0x54b357['rootName'],{'userId':_0x42b129,'isAttached':_0x54b357['isAdd']});}['_handleRootAttributeOperation'](_0x1cb202){const _0x2833b7=this['_diffRootsAttributes']['get'](_0x1cb202['root']['rootName']);null===_0x1cb202['newValue']?delete _0x2833b7[_0x1cb202['key']]:_0x2833b7[_0x1cb202['key']]=_0x1cb202['newValue'];}}function T(_0x51be5e){const _0x3b8d3b=F(_0x51be5e['rootName'],_0x51be5e['isAttached']());for(const _0x2ad4cd of _0x51be5e['getChildren']()){const _0x27543e=_0x2ad4cd['_clone'](!0x0);_0x3b8d3b['_appendChild'](_0x27543e);}return _0x3b8d3b;}function F(_0x5b7834,_0x321536=!0x0){const _0x921d9b=new gt();return _0x921d9b['rootName']=_0x5b7834,_0x921d9b['_isAttached']=_0x321536,_0x921d9b['isAttached']=()=>_0x921d9b['_isAttached'],_0x921d9b;}function B(_0x3f2419,_0x31e0c4,_0x3d9ce3){const _0x59ead3='elementEnd'==_0x3f2419['type']?_0x3d9ce3['createPositionAt'](_0x3f2419['item'],'end'):_0x3d9ce3['createPositionBefore'](_0x3f2419['item']);return _0x3d9ce3['createPositionFromPath'](_0x31e0c4,_0x59ead3['path'],_0x59ead3['stickiness']);}function J(_0x5e36cc,_0x497444,_0x3fdef9){const _0x1539ea='elementStart'==_0x5e36cc['type']?_0x3fdef9['createPositionAt'](_0x5e36cc['item'],0x0):_0x3fdef9['createPositionAfter'](_0x5e36cc['item']);return _0x3fdef9['createPositionFromPath'](_0x497444,_0x1539ea['path'],_0x1539ea['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1acbf8,_0x5e183a){super(_0x1acbf8),this['focusTracker']=new _0x42db06(),this['keystrokes']=new _0x271894(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5e183a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x482dd0(this);}['render'](){super['render'](),_0x25a94a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x49ca71=_0x3e8692=>_0x3e8692['stopPropagation']();this['keystrokes']['set']('arrowright',_0x49ca71),this['keystrokes']['set']('arrowleft',_0x49ca71),this['keystrokes']['set']('arrowup',_0x49ca71),this['keystrokes']['set']('arrowdown',_0x49ca71);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x35461c){this['revisionNameInputView']['fieldView']['element']['value']=_0x35461c['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x23cb29){const _0x50b2d0=new _0x231adc(this['locale'],_0x433401),_0x523ce2=_0x50b2d0['fieldView'];_0x523ce2['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x571fc3=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x23cb29&&(_0x571fc3+='\x20('+m(this['locale'],'optional')+')'),(_0x50b2d0['label']=_0x571fc3,_0x523ce2['on']('input',()=>{this['revisionNameInputValue']=_0x523ce2['element']['value']['trim']();}),_0x50b2d0);}}class f extends _0x5517c8{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2cf0e=this['editor'],_0x3bd2bf=_0x2cf0e['plugins']['get']('RevisionTracker');_0x2cf0e['ui']['componentFactory']['add']('revisionHistory',_0x9d8c00=>{const _0xd2d48f=_0x461af0(_0x9d8c00),_0x34b126=_0xd2d48f['panelView']['children'],_0x6bde38=new _0x396fe8(_0x9d8c00),_0x4e1c88=new _0x3b1ae9(_0x9d8c00),_0x1fd34b=new te(_0x9d8c00),_0x35964e=new _0x3b1ae9(_0x9d8c00),_0x11f38c=new te(_0x9d8c00);return _0xd2d48f['bind']('isEnabled')['to'](_0x3bd2bf,'isReady',_0x3bd2bf,'isEnabled',_0x2cf0e,'isReadOnly',(_0x2e8f62,_0x2bee29,_0x2213d3)=>_0x2e8f62&&_0x2bee29&&!_0x2213d3),_0xd2d48f['buttonView']['set']({'icon':_0x35cf4f,'label':m(_0x9d8c00,'Revision\x20history'),'tooltip':!0x0}),_0x1fd34b['set']({'label':m(_0x9d8c00,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1fd34b['bind']('isEnabled')['to'](_0x3bd2bf,'isReady',_0x3bd2bf,'isEnabled',_0x2cf0e,'isReadOnly',(_0x1cd9c8,_0x4d080c,_0x7087a5)=>_0x1cd9c8&&_0x4d080c&&!_0x7087a5),_0x1fd34b['on']('execute',()=>this['_showDialog']()),_0x11f38c['set']({'label':m(_0x9d8c00,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x11f38c['bind']('isEnabled')['to'](_0x3bd2bf,'isReady',_0x2cf0e,'isReadOnly',(_0x3d05e9,_0x1b4d3b)=>_0x3d05e9&&!_0x1b4d3b),_0x11f38c['on']('execute',()=>{_0x2cf0e['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xd2d48f['isOpen']=!0x1,_0x2cf0e['editing']['view']['focus']();}),_0x4e1c88['children']['add'](_0x1fd34b),_0x35964e['children']['add'](_0x11f38c),_0x6bde38['role']='menu',_0x6bde38['items']['addMany']([_0x4e1c88,_0x35964e]),_0x34b126['add'](_0x6bde38),_0xd2d48f;}),_0x2cf0e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x41c393=this['editor'],_0x211e21=_0x41c393['locale'],_0x1b9957=new _0x428ca0(_0x211e21),_0x2e851c=new _0x183e56(_0x211e21);_0x1b9957['buttonView']['set']({'icon':_0x35cf4f,'label':m(_0x211e21,'Revision\x20history')});const _0x4d47f2=new _0x502dbc(_0x211e21,_0x1b9957),_0x76d935=new _0x53f0b7(_0x211e21);_0x76d935['set']({'label':m(_0x211e21,'Save\x20current\x20revision')}),_0x76d935['delegate']('execute')['to'](_0x1b9957),_0x76d935['on']('execute',()=>{this['_showDialog']();}),_0x4d47f2['children']['add'](_0x76d935),_0x2e851c['items']['add'](_0x4d47f2);const _0x55e0c3=new _0x502dbc(_0x211e21,_0x1b9957),_0x3970ca=new _0x53f0b7(_0x211e21);return _0x3970ca['set']({'label':m(_0x211e21,'Open\x20revision\x20history')}),_0x3970ca['delegate']('execute')['to'](_0x1b9957),_0x3970ca['on']('execute',()=>{_0x41c393['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x55e0c3['children']['add'](_0x3970ca),_0x2e851c['items']['add'](_0x55e0c3),_0x1b9957['panelView']['children']['add'](_0x2e851c),_0x1b9957;}['_showDialog'](){const _0x1a654f=this['editor'],_0x4c9950=_0x1a654f['locale'],_0x2f5efb=_0x1a654f['plugins']['get']('Dialog'),_0x21b94b=_0x1a654f['plugins']['get']('RevisionTracker');function _0xf65e04(_0x40ac66){_0x1a654f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x40ac66['revisionName']?_0x40ac66['revisionNameInputView']['errorText']=m(_0x4c9950,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1a654f['plugins']['get'](u)['saveRevision']({'name':_0x40ac66['revisionName']}),_0x2f5efb['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xf65e04(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2f5efb['show']({'id':'revisionSave','title':m(_0x4c9950,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x1a654f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2f5efb['hide']()},{'label':m(_0x1a654f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5f2120){_0x5f2120['bind']('isEnabled')['to'](_0x21b94b,'isReady',_0x21b94b,'isEnabled',_0x1a654f,'isReadOnly',(_0x4c30fb,_0x3977ec,_0x5d8158)=>_0x4c30fb&&_0x3977ec&&!_0x5d8158);},'onExecute':()=>_0xf65e04(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x583aa2=this['editor'],_0x25ad75=_0x583aa2['locale'];this['_saveRevisionFormView']=new hs(_0x25ad75,_0x583aa2['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x339569,_0x50975b){super(_0x339569),this['_model']=_0x50975b,this['changeId']=_0x50975b['id'];const _0x5d846c=this['bindTemplate'],_0x36fcc9=m(_0x339569,_0x50975b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x50975b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x50975b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5d846c['to']('type',_0x20b0ea=>'ck-revision-change__'+_0x20b0ea)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x36fcc9}]},{'text':'\x20'+_0x50975b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4f7caf(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x3a6ca3){super(),this['id']=_0x3a6ca3['id']||_0x3aad70(),this['author']=_0x3a6ca3['author'],this['type']=_0x3a6ca3['type'],this['data']=_0x3a6ca3['data']||{},this['rootName']=_0x3a6ca3['rootName'],this['set']('createdAt',_0x3a6ca3['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2a5707,_0x775ff5){this['newRevisionId']=_0x2a5707,this['oldRevisionId']=_0x775ff5,this['changes']=new _0x1b37a4();}['_setChanges'](_0x308d80){for(const _0x4fef1b of _0x308d80)this['changes']['add'](_0x4fef1b);}}const Y={'c':_0x135f7f,'a':_0xf10c63,'e':_0xd2038a,'r':_0x35328c,'u':_0x5db413};class d extends _0x5517c8{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x49ffcb,_0x4abf6b,j];}constructor(_0x32cf89){super(_0x32cf89),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3e5cbb,_0x589471,_0x38c186)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4cedc3=>{for(const _0x432acd of this['editor']['editing']['view']['document']['roots'])_0x38c186?_0x4cedc3['removeClass']('ck-editor__editable__overlay',_0x432acd):_0x4cedc3['addClass']('ck-editor__editable__overlay',_0x432acd);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x9d6c78=>null!==_0x9d6c78),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x132079,_0x5cb937,_0x3047bd)=>_0x132079&&_0x3047bd?_0x5cb937['changes']['getIndex'](_0x3047bd):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5c0390,_0x24edf2)=>_0x5c0390?_0x24edf2['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4abf6b);}['init'](){const _0x322308=this['editor'],_0x1c55ed=new _t(_0x322308,{'direction':'backward'}),_0x3e96dc=new _t(_0x322308,{'direction':'forward'});(_0x322308['commands']['add']('showPreviousChange',_0x1c55ed),_0x322308['commands']['add']('showNextChange',_0x3e96dc),_0x322308['commands']['add']('restoreRevision',new wt(_0x322308)),this['on']('change:numberOfChanges',()=>{_0x1c55ed['refresh'](),_0x3e96dc['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x322308['enableReadOnlyMode']('revision-viewer'),_0x322308['plugins']['has']('WidgetToolbarRepository'))&&_0x322308['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4d5e1e){await this['loadRevisionData'](_0x4d5e1e);const _0x16f5cd={};for(const _0x1b456a in _0x4d5e1e['diffData']){if(_0x4d5e1e['diffData'][_0x1b456a]['attachChange']&&!_0x4d5e1e['diffData'][_0x1b456a]['attachChange']['isAttached'])continue;const _0x44c5f2=this['_removeRevisionMarkers'](JSON['parse'](_0x4d5e1e['diffData'][_0x1b456a]['insertions'])),_0x463170=this['editor']['editing']['view']['document'],_0x3a2fab=new _0x1c9f86(_0x463170,_0x44c5f2['map'](_0x31c2b3=>this['_getViewObj'](_0x31c2b3)));this['editor']['data']['processor']['useFillerType']('marked'),_0x16f5cd[_0x1b456a]=this['editor']['data']['processor']['toData'](_0x3a2fab),this['editor']['data']['processor']['useFillerType']('default');}return _0x16f5cd;}async['getRevisionRootsAttributes'](_0x4193c5){await this['loadRevisionData'](_0x4193c5);const _0x35ca3c={};for(const _0x3ff159 in _0x4193c5['diffData'])_0x4193c5['diffData'][_0x3ff159]['attachChange']&&!_0x4193c5['diffData'][_0x3ff159]['attachChange']['isAttached']||(_0x35ca3c[_0x3ff159]=_0x4193c5['diffData'][_0x3ff159]['attributesAfter']||{});return _0x35ca3c;}['_removeRevisionMarkers'](_0x4b0a1c){return(_0x4b0a1c=_0x4b0a1c['filter'](_0x31ffba=>!_0x31ffba['name']||'revision-start'!==_0x31ffba['name']&&'revision-end'!==_0x31ffba['name']))['forEach'](_0x5a76ae=>{'string'!=typeof _0x5a76ae&&(_0x5a76ae['children']=this['_removeRevisionMarkers'](_0x5a76ae['children']),_0x5a76ae['attributes']=_0x5a76ae['attributes']['filter'](_0xe47dd0=>!_0xe47dd0[0x0]['startsWith']('data-revision-')));}),_0x4b0a1c;}async['compare'](_0x11d379,_0x99fbb5,_0x278931=!0x1){if(!this['isEnabled'])return;const _0x4f9339=this['diff'],_0xb50f28=this['repository'],_0x561ad1='string'==typeof _0x11d379?_0xb50f28['getRevision'](_0x11d379):_0x11d379,_0x1763df='string'==typeof _0x99fbb5?_0xb50f28['getRevision'](_0x99fbb5):_0x99fbb5,_0x59e809=_0x561ad1['id'],_0x18cffc=_0x1763df?_0x1763df['id']:null;if(!_0x278931&&this['diff']&&this['diff']['newRevisionId']===_0x59e809&&this['diff']['oldRevisionId']===_0x18cffc)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x59e809,_0x18cffc);const _0x3d28da=this['_getRevisionsRange'](_0x561ad1,_0x1763df,!0x0)['map'](_0x29bf79=>this['loadRevisionData'](_0x29bf79));return _0x3d28da['push'](new Promise(_0x1ea74e=>{setTimeout(_0x1ea74e,0x14);})),Promise['all'](_0x3d28da)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1566f6=this['_getDiff'](_0x59e809,_0x18cffc);for(const _0x2908ca of _0x1566f6['changes'])this['_changeIdToChange']['set'](_0x2908ca['id'],_0x2908ca);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2f5adf=>{for(const _0x3198a5 of this['editor']['model']['document']['getRootNames']())_0x2f5adf['detachRoot'](_0x3198a5);for(const _0x1d906e of Object['keys'](_0x1566f6['model'])){const _0x45e2b4=_0x2f5adf['addRoot'](_0x1d906e);for(const _0x11d091 of Object['keys'](_0x1566f6['attributes'][_0x1d906e]))_0x2f5adf['setAttribute'](_0x11d091,_0x1566f6['attributes'][_0x1d906e][_0x11d091],_0x45e2b4);_0x2f5adf['insert'](_0x1566f6['model'][_0x1d906e],_0x45e2b4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1566f6['changes'])),this['isReady']=!0x0;})['catch'](_0x2c9239=>{console['error'](_0x2c9239),this['_cleanUp'](),_0x4f9339&&(this['diff']=_0x4f9339),this['isReady']=!0x0;});}['addRevisionData'](_0x4382e0,_0x47a045){const _0x50bc10=this['repository']['createRevision'](_0x4382e0);return _0x50bc10['on']('_update',(_0x2938ee,_0x3516be,_0x4be495)=>_0x47a045(_0x3516be,_0x4be495,_0x50bc10)),this['repository']['addRevision'](_0x50bc10),_0x50bc10;}['loadRevisionData'](_0x1f786c){if(!_0x1f786c||_0x1f786c['diffData'])return Promise['resolve']();{const _0x205f61=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x205f61,'revisionId':_0x1f786c['id']})['then'](_0x33bfee=>{_0x1f786c['_update']({'diffData':_0x33bfee['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4ce12c=>{for(const _0xdc33a2 of this['editor']['model']['document']['getRootNames']())_0x4ce12c['detachRoot'](_0xdc33a2);});}['_sortAndFilterDiffChanges'](_0x117302){const _0x48804b=[],_0x26dc54=new Map();for(const _0x3297e4 of this['editor']['model']['document']['getRootNames']()){const _0x474e63=this['editor']['editing']['view']['getDomRoot'](_0x3297e4);if(!_0x474e63)continue;const _0x272337=_0x474e63['getClientRects']()['item'](0x0);_0x272337&&(_0x48804b['push'](_0x3297e4),_0x26dc54['set'](_0x3297e4,_0x272337));}return _0x48804b['sort']((_0x5657d7,_0x590ade)=>{const _0x3154e8=_0x26dc54['get'](_0x5657d7),_0x448585=_0x26dc54['get'](_0x590ade);return _0x3154e8['y']-_0x448585['y']||_0x3154e8['x']-_0x448585['x'];}),(_0x117302=_0x117302['filter'](_0x3f9486=>_0x48804b['includes'](_0x3f9486['rootName'])))['sort']((_0x323264,_0x5f1630)=>_0x48804b['indexOf'](_0x323264['rootName'])-_0x48804b['indexOf'](_0x5f1630['rootName'])),_0x117302;}['_makeTape'](_0x5bf50c){const _0xd9a1b9=Array['from'](_0x5bf50c['markers'])['filter'](([_0x1b9b8e,_0x342607])=>_0x1b9b8e['startsWith']('revision:')&&!_0x342607['isCollapsed']),_0x2e00b0=Array['from'](this['editor']['model']['createRangeIn'](_0x5bf50c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xd9a1b9['length'])for(const _0x55e7bc of _0x2e00b0){const [_0x157463,_0x5e5eb5]=_0xd9a1b9[0x0],[,_0x5baaad,_0x13253f]=_0x157463['split'](':');if(_0x5e5eb5['end']['isEqual'](_0x55e7bc['nextPosition'])&&_0xd9a1b9['shift'](),(_0x55e7bc['previousPosition']['isEqual'](_0x5e5eb5['start'])||_0x55e7bc['previousPosition']['isAfter'](_0x5e5eb5['start']))&&('insertion'==_0x5baaad?_0x55e7bc['isAdded']={'userId':_0x13253f}:'deletion'==_0x5baaad&&(_0x55e7bc['isRemoved']={'userId':_0x13253f})),0x0==_0xd9a1b9['length'])break;}return _0x2e00b0;}['_refreshStartEndIndex'](_0x38760e){const _0x29a439=new Map();for(let _0x106a34=0x0;_0x106a34<_0x38760e['length'];_0x106a34++)'text'===_0x38760e[_0x106a34]['type']?(_0x38760e[_0x106a34]['item']['startIndex']=_0x106a34,_0x38760e[_0x106a34]['item']['endIndex']=_0x106a34):('elementStart'===_0x38760e[_0x106a34]['type']?_0x38760e[_0x106a34]['item']['startIndex']=_0x106a34:'elementEnd'===_0x38760e[_0x106a34]['type']&&(_0x38760e[_0x106a34]['item']['endIndex']=_0x106a34),_0x29a439['set'](_0x38760e[_0x106a34]['id'],_0x106a34));for(const _0x1751cf of _0x29a439['values']())'elementStart'===_0x38760e[_0x1751cf]['type']?_0x38760e[_0x1751cf]['item']['endIndex']=_0x29a439['get'](_0x38760e[_0x1751cf]['pairId']):'elementEnd'===_0x38760e[_0x1751cf]['type']&&(_0x38760e[_0x1751cf]['item']['startIndex']=_0x29a439['get'](_0x38760e[_0x1751cf]['pairId']));}['_processTape'](_0x44b800){for(let _0xf840b0=0x0;_0xf840b0<_0x44b800['length'];_0xf840b0++){if('elementStart'===_0x44b800[_0xf840b0]['type'])_0x44b800[_0xf840b0]['item']['startIndex']=_0xf840b0;else{if('elementEnd'===_0x44b800[_0xf840b0]['type']){_0x44b800[_0xf840b0]['item']['endIndex']=_0xf840b0;const _0x1df218=_0x44b800[_0xf840b0]['item']['startIndex'];_0x44b800[_0x1df218]['pairId']=_0x44b800[_0xf840b0]['id'],_0x44b800[_0xf840b0]['pairId']=_0x44b800[_0x1df218]['id'];}else _0x44b800[_0xf840b0]['item']['startIndex']=_0xf840b0,_0x44b800[_0xf840b0]['item']['endIndex']=_0xf840b0,_0x44b800[_0xf840b0]['pairId']=null;}_0x44b800[_0xf840b0]['markersStart']||(_0x44b800[_0xf840b0]['markersStart']=[],_0x44b800[_0xf840b0]['markersEnd']=[]);}}['_markInsertions'](_0x3cba7f,_0x2a27e4){const _0x3dddfd=_0x3cba7f['filter'](_0x515c83=>!_0x515c83['isAdded']);for(let _0x1227fb=0x0;_0x1227fb<_0x2a27e4['length'];_0x1227fb++)_0x2a27e4[_0x1227fb]['isAdded']&&(_0x3dddfd[_0x1227fb]['isAdded']=_0x2a27e4[_0x1227fb]['isAdded']);}['_makeModelFromViewString'](_0x49e525){const _0x458175=JSON['parse'](_0x49e525),_0x102a79=this['editor']['editing']['view']['document'],_0x2b5cca=new _0x1c9f86(_0x102a79,_0x458175['map'](_0x28f9b5=>this['_getViewObj'](_0x28f9b5)));return this['editor']['data']['toModel'](_0x2b5cca);}['_getViewObj'](_0x5a8026){const _0x106c03=this['editor']['editing']['view']['document'];if('string'==typeof _0x5a8026)return new _0x5b5f30(_0x106c03,_0x5a8026);{const _0x1e68d1=_0x5a8026['children']['map'](_0x5aa677=>this['_getViewObj'](_0x5aa677));return new(Y[_0x5a8026['type']]||_0x5aa52f)(_0x106c03,_0x5a8026['name'],_0x5a8026['attributes'],_0x1e68d1);}}['_getDiff'](_0x1ad956,_0x2df5c3=null){const _0x59a5ef=this['repository']['getRevision'](_0x1ad956),_0x28f7f9=_0x2df5c3?this['repository']['getRevision'](_0x2df5c3):null,_0x4ff40f=this['_getRevisionsRange'](_0x59a5ef,_0x28f7f9),_0x361dee=_0x4ff40f[_0x4ff40f['length']-0x1],_0xba452f=new Map(),_0x36a901={'model':{},'attributes':{},'changes':[]},_0x3e1eac=new Set(),_0x42b048=new Map();for(let _0x207346=_0x4ff40f['length']-0x1;_0x207346>=0x0;_0x207346--){const _0x430bee=_0x4ff40f[_0x207346];for(const _0x18120d of Object['keys'](_0x430bee['diffData']))if(_0x430bee['diffData'][_0x18120d]['attachChange']){const _0x400884=_0x430bee['diffData'][_0x18120d]['attachChange'];_0x400884['isAttached']?(_0x3e1eac['add'](_0x18120d),_0x42b048['has'](_0x18120d)&&_0x42b048['get'](_0x18120d)['userId']==_0x400884['userId']?_0x42b048['delete'](_0x18120d):_0x42b048['set'](_0x18120d,_0x400884)):_0x42b048['has'](_0x18120d)?(_0x3e1eac['delete'](_0x18120d),_0x42b048['delete'](_0x18120d)):(_0x3e1eac['add'](_0x18120d),_0x42b048['set'](_0x18120d,_0x400884));}else _0x3e1eac['add'](_0x18120d);}for(const _0x5009e2 of _0x3e1eac){const _0x4f9270=_0x42b048['has'](_0x5009e2)&&!_0x42b048['get'](_0x5009e2)['isAttached'];let _0xe353ba=_0x4f9270?_0x4ff40f['length']-0x1:0x0;const _0x4afdc9=_0x4f9270?-0x1:0x1;for(;_0x4ff40f[_0xe353ba];){const _0x80ae72=_0x4ff40f[_0xe353ba];if(_0x80ae72['diffData'][_0x5009e2]){const _0x37dc3f=_0x4f9270?_0x80ae72['diffData'][_0x5009e2]['attributesBefore']:_0x80ae72['diffData'][_0x5009e2]['attributesAfter'];_0x36a901['attributes'][_0x5009e2]=_0x37dc3f?_0x4abf57(_0x37dc3f):{};break;}_0xe353ba+=_0x4afdc9;}}for(const _0x1c92a5 of _0x4ff40f){_0x1c92a5['model']={};for(const _0x2c17dd of _0x1c92a5['authors'])_0xba452f['set'](_0x2c17dd['id'],_0x2c17dd);for(const _0x277040 of _0x3e1eac){const _0x5340b8=_0x1c92a5['diffData'][_0x277040]?_0x1c92a5['diffData'][_0x277040]['insertions']:'[]',_0x5d9b83=_0x1c92a5['diffData'][_0x277040]?_0x1c92a5['diffData'][_0x277040]['deletions']:'[]';_0x1c92a5['model'][_0x277040]={'insertions':this['_makeModelFromViewString'](_0x5340b8),'deletions':this['_makeModelFromViewString'](_0x5d9b83)};}}for(const _0x340e7e of _0x3e1eac){let _0x180a68=null,_0x12e3c8=0x0;const _0x41f0bc=new Map(Array['from'](_0x59a5ef['model'][_0x340e7e]['insertions']['markers'])['filter'](([_0x5066e8])=>!_0x5066e8['startsWith']('revision:')));let _0x493c82=0x0;for(const _0x430980 of _0x4ff40f){const _0x253d7d=this['_makeTape'](_0x430980['model'][_0x340e7e]['insertions']);_0x430980==_0x59a5ef?(_0x180a68=_0x253d7d,_0x12e3c8=_0x180a68['length'],_0x180a68['forEach'](_0x39a62b=>{_0x39a62b['id']=_0x493c82++;}),this['_processTape'](_0x180a68)):this['_markInsertions'](_0x180a68,_0x253d7d);const _0x3c1100=_0x180a68['filter'](_0x40375c=>!_0x40375c['isAdded'])['map'](_0x5952b5=>_0x5952b5['id']);let _0x581f0d=0x0;const _0x33fb1e=this['_makeTape'](_0x430980['model'][_0x340e7e]['deletions']);_0x33fb1e['forEach'](_0x2215cb=>{_0x2215cb['isRemoved']?_0x2215cb['id']=_0x12e3c8++:_0x2215cb['id']=_0x3c1100[_0x581f0d++];}),this['_processTape'](_0x33fb1e),this['_setDistance'](_0x180a68,'isAdded'),this['_setDistance'](_0x33fb1e,'isRemoved'),_0x430980==_0x59a5ef&&this['_markMarkers'](_0x180a68,_0x41f0bc),_0x180a68=this['_joinTapes'](_0x180a68,_0x33fb1e),this['_refreshStartEndIndex'](_0x180a68),this['_setDistance'](_0x180a68,'isRemoved');}_0x180a68=_0x180a68['filter'](_0x16ecf5=>!(_0x16ecf5['isAdded']&&_0x16ecf5['isRemoved']));const _0xd9ea0d=new Map(_0x361dee['model'][_0x340e7e]['deletions']['markers']),_0x492ab2=new Set(_0x41f0bc['keys']());for(const _0x4009a7 of _0xd9ea0d['keys']())_0x492ab2['delete'](_0x4009a7);this['_markSuggestions'](_0x180a68,_0x492ab2),this['_fixObsoleteTags'](_0x180a68),_0x180a68=this['_removeMissingPairs'](_0x180a68),_0x180a68=this['_markMismatchedRemovedTags'](_0x180a68),_0x180a68=this['_removeUnsupportedChanges'](_0x180a68);const {root:_0x5056fa,changes:_0x1583fe}=this['_makeModelFromTape'](_0x180a68,_0xba452f,_0x340e7e);_0x36a901['model'][_0x340e7e]=_0x5056fa;const _0x2c0a79=_0x42b048['get'](_0x340e7e);if(_0x2c0a79){const _0x4625b6=_0xba452f['get'](_0x2c0a79['userId']),_0x19044c=new r({'author':_0x4625b6,'type':_0x2c0a79['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x340e7e});_0x1583fe['unshift'](_0x19044c),_0x36a901['attributes'][_0x340e7e]['revisionHistoryAttachChange']=_0x19044c['id'];}_0x36a901['changes']=_0x36a901['changes']['concat'](_0x1583fe);}return _0x36a901;}['_markMarkers'](_0x138f4b,_0x330786){for(let _0x1c1bac=0x0;_0x1c1bac<_0x138f4b['length'];_0x1c1bac++)for(const [_0x49e13a,_0x94f666]of _0x330786)_0x94f666['start']['isEqual'](_0x138f4b[_0x1c1bac]['previousPosition'])&&_0x138f4b[_0x1c1bac]['markersStart']['push'](_0x49e13a),_0x94f666['end']['isEqual'](_0x138f4b[_0x1c1bac]['nextPosition'])&&_0x138f4b[_0x1c1bac]['markersEnd']['push'](_0x49e13a);}['_joinTapes'](_0x475c7c,_0x3e1f29){let _0x63927b=[],_0x577298=0x0,_0x29d278=0x0;for(;_0x577298<_0x475c7c['length']||_0x29d278<_0x3e1f29['length'];){const _0x2c8010=_0x475c7c[_0x577298]||{},_0x4bf39c=_0x3e1f29[_0x29d278]||{};if(_0x2c8010['id']==_0x4bf39c['id'])_0x577298++,_0x29d278++,_0x63927b['push'](_0x2c8010);else{if(_0x4bf39c['isRemoved']&&_0x2c8010['isAdded']){const {commonTape:_0x2180d2,iEnd:_0xa86578,jEnd:_0x275522}=this['_threeWayMerge'](_0x475c7c,_0x577298,_0x3e1f29,_0x29d278);_0x63927b=_0x63927b['concat'](_0x2180d2),_0x577298=_0xa86578,_0x29d278=_0x275522;}else _0x4bf39c['isRemoved']?(_0x29d278++,_0x63927b['push'](_0x4bf39c)):(_0x577298++,_0x63927b['push'](_0x2c8010));}}return _0x63927b;}['_markSuggestions'](_0x3e420e,_0x500dbb){const _0x2e724b=[];for(let _0x3d854c=0x0;_0x3d854c<_0x3e420e['length'];_0x3d854c++){for(let _0x4beb7e=0x0;_0x4beb7e<_0x3e420e[_0x3d854c]['markersStart']['length'];_0x4beb7e++){const _0x211e5a=_0x3e420e[_0x3d854c]['markersStart'][_0x4beb7e];if(!_0x500dbb['has'](_0x211e5a))continue;const {group:_0x1860a5,type:_0x3c178d,authorId:_0x589530}=_0x290554(_0x211e5a);'revision-suggestion'!=_0x1860a5||'insertion'!=_0x3c178d&&'deletion'!=_0x3c178d||(_0x2e724b['unshift']({'type':_0x3c178d,'name':_0x211e5a,'userId':_0x589530}),_0x3e420e[_0x3d854c]['markersStart']['splice'](_0x4beb7e,0x1),_0x4beb7e--);}_0x59fa62(_0x3e420e[_0x3d854c]);for(let _0x47e14f=0x0;_0x47e14f<_0x3e420e[_0x3d854c]['markersEnd']['length'];_0x47e14f++){const _0xfb4458=_0x3e420e[_0x3d854c]['markersEnd'][_0x47e14f];if(!_0x500dbb['has'](_0xfb4458))continue;const {group:_0x483a11,type:_0x5ad32d}=_0x290554(_0xfb4458);if('revision-suggestion'!=_0x483a11||'insertion'!=_0x5ad32d&&'deletion'!=_0x5ad32d)continue;_0x3e420e[_0x3d854c]['markersEnd']['splice'](_0x47e14f,0x1),_0x47e14f--;const _0x2f261a=_0x2e724b['findIndex'](_0x471c7c=>_0x471c7c['name']==_0xfb4458);_0x2f261a>-0x1&&_0x2e724b['splice'](_0x2f261a,0x1);}}function _0x290554(_0x40ebd9){const _0x3154ea=_0x40ebd9['split'](':');return{'group':_0x3154ea[0x0],'type':_0x3154ea[0x1],'subType':_0x3154ea['length']>=0x5?_0x3154ea[0x2]:null,'id':_0x3154ea['length']<0x5?_0x3154ea[0x2]:_0x3154ea[0x3],'authorId':_0x3154ea['length']<0x5?_0x3154ea[0x3]:_0x3154ea[0x4],'markerCount':0x6==_0x3154ea['length']?_0x3154ea[0x5]:null};}function _0x59fa62(_0x368468){for(let _0x40f24f=0x0;_0x40f24f<_0x2e724b['length'];_0x40f24f++){if(_0x368468['isAdded']&&'insertion'==_0x2e724b[_0x40f24f]['type'])return _0x368468['isAddSuggestion']=_0x2e724b[_0x40f24f],void delete _0x368468['isAdded'];if(!_0x368468['isAdded']&&!_0x368468['isRemoved']&&'deletion'==_0x2e724b[_0x40f24f]['type'])return void(_0x368468['isRemoveSuggestion']=_0x2e724b[_0x40f24f]);}}}['_setDistance'](_0x1c908e,_0x367703){let _0x53fbf6=0x0,_0x327524=!0x1;const _0x323c01=new Map();for(const _0x43abe7 of _0x1c908e)_0x43abe7[_0x367703]?_0x327524&&(_0x53fbf6++,_0x327524=!0x1):(_0x53fbf6++,_0x327524=!0x0),_0x323c01['set'](_0x43abe7['id'],_0x53fbf6);for(let _0x69db36=0x0;_0x69db36<_0x1c908e['length'];_0x69db36++){if('isRemoved'==_0x367703&&_0x1c908e[_0x69db36]['isAdded']||'isAdded'==_0x367703&&_0x1c908e[_0x69db36]['isRemoved'])continue;if('text'==_0x1c908e[_0x69db36]['type']){_0x1c908e[_0x69db36]['distance']=0x0;continue;}const _0x5b76e4=_0x323c01['get'](_0x1c908e[_0x69db36]['pairId']),_0x3ae779=_0x323c01['get'](_0x1c908e[_0x69db36]['id']);_0x1c908e[_0x69db36]['distance']=_0x5b76e4-_0x3ae779;}}['_getRevisionsRange'](_0x5a0d2b,_0x327608,_0x4bf003=!0x1){const _0x4a65b8=[];let _0x7a227=this['repository']['getIndex'](_0x5a0d2b),_0x233899=this['repository']['getIndex'](_0x327608);for(-0x1==_0x233899&&(_0x233899=this['repository']['_revisions']['length'],_0x4bf003=!0x1);_0x7a227<_0x233899;)_0x4a65b8['push'](this['repository']['getRevision'](_0x7a227)),_0x7a227++;return _0x4bf003&&_0x4a65b8['push'](this['repository']['getRevision'](_0x7a227)),_0x4a65b8;}['_threeWayMerge'](_0x396218,_0x51c81a,_0x377114,_0x3df210){const _0xc8684f=this['editor']['model']['schema'];let _0x1b7c76=_0x51c81a;for(;_0x396218[_0x1b7c76]&&_0x396218[_0x1b7c76]['isAdded'];)_0x1b7c76++;let _0x2afc4e=_0x3df210;for(;_0x377114[_0x2afc4e]&&_0x377114[_0x2afc4e]['isRemoved'];)_0x2afc4e++;_0x967c60(_0x396218,_0x51c81a,_0x1b7c76),_0x967c60(_0x377114,_0x3df210,_0x2afc4e);const _0x53a7d7=_0x377114['slice'](_0x3df210,_0x2afc4e)['concat'](_0x396218['slice'](_0x51c81a,_0x1b7c76));return _0x53a7d7['sort']((_0x593f11,_0xea4c96)=>_0x593f11['side']!=_0xea4c96['side']?_0x593f11['side']-_0xea4c96['side']:_0x593f11['level']!=_0xea4c96['level']?_0x593f11['level']-_0xea4c96['level']:_0x593f11['distance']!=_0xea4c96['distance']?_0xea4c96['distance']-_0x593f11['distance']:!!_0x593f11['isAdded']!=!!_0xea4c96['isAdded']?-0x1==_0x593f11['side']||0x0==_0x593f11['side']?_0x593f11['isAdded']?-0x1:0x1:_0x593f11['isAdded']?0x1:-0x1:_0x593f11['index']-_0xea4c96['index']),{'commonTape':_0x53a7d7,'iEnd':_0x1b7c76,'jEnd':_0x2afc4e};function _0x967c60(_0x1cf2c6,_0x4e54e4,_0x3b5e2c){let _0x48441d=-0x1,_0x1382cd=Number['POSITIVE_INFINITY'],_0x376670=!0x0;for(let _0x36fef4=_0x4e54e4;_0x36fef4<_0x3b5e2c;_0x36fef4++)if(_0xc8684f['isInline'](_0x1cf2c6[_0x36fef4]['item'])||(_0x376670=!0x1),_0x1cf2c6[_0x36fef4]['item']['startIndex']<_0x4e54e4&&(_0x48441d=_0x36fef4),_0x1cf2c6[_0x36fef4]['item']['endIndex']>=_0x3b5e2c){_0x1382cd=_0x36fef4;break;}_0x376670&&(_0x48441d=_0x3b5e2c-0x1);for(let _0x28a7ef=_0x4e54e4;_0x28a7ef<_0x3b5e2c;_0x28a7ef++)_0x1cf2c6[_0x28a7ef]['side']=_0x28a7ef<=_0x48441d?-0x1:_0x28a7ef<_0x1382cd?0x0:0x1,_0x1cf2c6[_0x28a7ef]['index']=_0x28a7ef;let _0x1aedb9=0x0;for(let _0x1678bf=_0x4e54e4;_0x1678bf<=_0x48441d;_0x1678bf++)0x0==_0x1cf2c6[_0x1678bf]['distance']?_0x1cf2c6[_0x1678bf]['level']=_0x1aedb9:(_0x1aedb9++,_0x1cf2c6[_0x1678bf]['level']=_0x1aedb9,_0x1aedb9++);for(let _0x62b2f3=_0x4e54e4;_0x62b2f3<_0x3b5e2c;_0x62b2f3++)0x0==_0x1cf2c6[_0x62b2f3]['side']&&(_0x1cf2c6[_0x62b2f3]['level']=_0x1aedb9);_0x1aedb9=0x0;for(let _0x33bca9=_0x3b5e2c-0x1;_0x33bca9>=_0x1382cd;_0x33bca9--)0x0==_0x1cf2c6[_0x33bca9]['distance']?_0x1cf2c6[_0x33bca9]['level']=_0x1aedb9:(_0x1aedb9--,_0x1cf2c6[_0x33bca9]['level']=_0x1aedb9,_0x1aedb9--);}}['_fixObsoleteTags'](_0x209580){const _0x2aae20=new Map(),_0x9249d4=this['editor']['model']['schema'];for(let _0x2dc8fc=0x1;_0x2dc8fc<_0x209580['length'];_0x2dc8fc++){let _0x5bf0d5,_0x8f98f3,_0x46c547;const _0x68802b=_0x209580[_0x2dc8fc],_0x221c20=_0x209580[_0x2dc8fc-0x1];if('text'==_0x68802b['type'])continue;if(_0x68802b['type']!=_0x221c20['type'])continue;if(!_0x9249d4['isBlock'](_0x221c20['item'])||_0x9249d4['isLimit'](_0x221c20['item']))continue;if(!_0x9249d4['isBlock'](_0x68802b['item'])||_0x9249d4['isLimit'](_0x68802b['item']))continue;if((_0x209580[_0x2dc8fc]['isAdded']||_0x209580[_0x2dc8fc]['isAddSuggestion'])&&_0x209580[_0x2dc8fc-0x1]['isRemoved'])_0x5bf0d5=_0x209580[_0x2dc8fc],_0x8f98f3=_0x209580[_0x2dc8fc-0x1],_0x46c547=_0x2dc8fc-0x1;else{if(!_0x209580[_0x2dc8fc]['isRemoved']||!_0x209580[_0x2dc8fc-0x1]['isAdded']&&!_0x209580[_0x2dc8fc-0x1]['isAddSuggestion'])continue;_0x5bf0d5=_0x209580[_0x2dc8fc-0x1],_0x8f98f3=_0x209580[_0x2dc8fc],_0x46c547=_0x2dc8fc;}const _0x65916a=_0x5bf0d5['level']==_0x8f98f3['level'],_0x219071=Math['abs'](_0x5bf0d5['level'])<Math['abs'](_0x8f98f3['level'])&&0x0==_0x8f98f3['distance'];(_0x65916a||_0x219071)&&(_0x2aae20['set'](_0x8f98f3['id'],_0x5bf0d5['id']),_0x209580['splice'](_0x46c547,0x1),_0x2dc8fc--,_0x5bf0d5['isAdded']=!0x1);}for(let _0x2dcbb0=0x0;_0x2dcbb0<_0x209580['length'];_0x2dcbb0++)_0x2aae20['has'](_0x209580[_0x2dcbb0]['pairId'])&&(_0x209580[_0x2dcbb0]['pairId']=_0x2aae20['get'](_0x209580[_0x2dcbb0]['pairId']));}['_removeMissingPairs'](_0x4477c2){const _0x506ef3=new Set(_0x4477c2['map'](_0x1f61c7=>_0x1f61c7['id']));for(let _0x51039a=0x0;_0x51039a<_0x4477c2['length'];_0x51039a++)_0x506ef3['has'](_0x4477c2[_0x51039a]['pairId'])||0x0==_0x4477c2[_0x51039a]['distance']||(_0x4477c2[_0x51039a]['isIncorrect']=!0x0);return _0x4477c2['filter'](_0x2bfed7=>!_0x2bfed7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x430c74){const _0x7568f4=new Set();for(let _0x4ca4a6=0x0;_0x4ca4a6<_0x430c74['length'];_0x4ca4a6++){if(_0x7568f4['has'](_0x430c74[_0x4ca4a6]['id'])&&_0x430c74[_0x4ca4a6]['isRemoved']&&(_0x430c74[_0x4ca4a6]['isIncorrect']=!0x0),_0x430c74[_0x4ca4a6]['isIncorrect'])continue;if(0x0==_0x430c74[_0x4ca4a6]['distance'])continue;if('elementStart'!=_0x430c74[_0x4ca4a6]['type'])continue;if(null==_0x430c74[_0x4ca4a6]['pairId'])continue;let _0x511c18=_0x4ca4a6+0x1,_0x5e55bb=0x0;for(;_0x430c74[_0x511c18]['id']!=_0x430c74[_0x4ca4a6]['pairId'];)'elementStart'==_0x430c74[_0x511c18]['type']?_0x5e55bb++:'elementEnd'==_0x430c74[_0x511c18]['type']&&_0x5e55bb--,_0x511c18++;if(0x0!=_0x5e55bb){if(_0x430c74[_0x4ca4a6]['isRemoved'])_0x430c74[_0x4ca4a6]['isIncorrect']=!0x0;else{for(;_0x511c18!=_0x4ca4a6;)_0x430c74[_0x511c18]['isRemoved']&&0x0!=_0x430c74[_0x511c18]['distance']&&(_0x430c74[_0x511c18]['isIncorrect']=!0x0,_0x7568f4['add'](_0x430c74[_0x511c18]['pairId'])),_0x511c18--;}}}return _0x430c74['filter'](_0x219155=>!_0x219155['isIncorrect']);}['_removeUnsupportedChanges'](_0x4cb6cc){const _0x3d7f58=this['editor']['model']['schema'];for(let _0x5b9d38=0x0;_0x5b9d38<_0x4cb6cc['length'];_0x5b9d38++){if(!(_0x4cb6cc[_0x5b9d38]['isAdded']||_0x4cb6cc[_0x5b9d38]['isAddSuggestion']||_0x4cb6cc[_0x5b9d38]['isRemoved']||_0x4cb6cc[_0x5b9d38]['isRemoveSuggestion']))continue;if(0x0==_0x4cb6cc[_0x5b9d38]['distance'])continue;const _0x3704d0=_0x4cb6cc[_0x5b9d38]['item'];_0x3d7f58['isBlock'](_0x3704d0)||_0x3d7f58['isLimit'](_0x3704d0)||(_0x4cb6cc[_0x5b9d38]['isAdded']&&delete _0x4cb6cc[_0x5b9d38]['isAdded'],_0x4cb6cc[_0x5b9d38]['isAddSuggestion']&&delete _0x4cb6cc[_0x5b9d38]['isAddSuggestion'],_0x4cb6cc[_0x5b9d38]['isRemoveSuggestion']&&delete _0x4cb6cc[_0x5b9d38]['isRemoveSuggestion'],_0x4cb6cc[_0x5b9d38]['isRemoved']&&(_0x4cb6cc[_0x5b9d38]['isIncorrect']=!0x0));}return _0x4cb6cc['filter'](_0x321da7=>!_0x321da7['isIncorrect']);}['_makeModelFromTape'](_0x69c5c5,_0x1ff54e,_0xc4ab1b){const _0x59911b=new gt(),_0x166723=[],_0x67fe3d=new Map(),_0x396330=this['editor']['model'],_0x48bc1c=_0x396330['schema'],_0x2c5ef1=[_0x59911b],_0x209f73={},_0x595438={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x26438c=null;const _0x5d1799=[0x0];for(let _0x226bdf=0x0;_0x226bdf<_0x69c5c5['length'];_0x226bdf++)if('elementStart'===_0x69c5c5[_0x226bdf]['type']){_0x69c5c5[_0x226bdf]['previousPosition']=_0x396330['createPositionFromPath'](_0x59911b,_0x5d1799);const _0xca3bd4=new ut(_0x69c5c5[_0x226bdf]['item']['name'],_0x69c5c5[_0x226bdf]['item']['getAttributes']());_0x2c5ef1[0x0]['_appendChild'](_0xca3bd4),_0x5d1799['push'](0x0),_0x2c5ef1['unshift'](_0xca3bd4),_0x69c5c5[_0x226bdf]['nextPosition']=_0x396330['createPositionFromPath'](_0x59911b,_0x5d1799);}else'elementEnd'===_0x69c5c5[_0x226bdf]['type']?(_0x2c5ef1['shift'](),_0x69c5c5[_0x226bdf]['previousPosition']=_0x396330['createPositionFromPath'](_0x59911b,_0x5d1799),_0x5d1799['pop'](),_0x5d1799[_0x5d1799['length']-0x1]++,_0x69c5c5[_0x226bdf]['nextPosition']=_0x396330['createPositionFromPath'](_0x59911b,_0x5d1799)):(_0x69c5c5[_0x226bdf]['previousPosition']=_0x396330['createPositionFromPath'](_0x59911b,_0x5d1799),_0x26438c?_0x26438c['_data']+=_0x69c5c5[_0x226bdf]['item']['data']:_0x26438c=new mt(_0x69c5c5[_0x226bdf]['item']['data'],_0x69c5c5[_0x226bdf]['item']['getAttributes']()),_0x69c5c5[_0x226bdf+0x1]&&'text'===_0x69c5c5[_0x226bdf+0x1]['type']&&_0x44135b(_0x26438c,_0x69c5c5[_0x226bdf+0x1]['item'])||(_0x2c5ef1[0x0]['_appendChild'](_0x26438c),_0x26438c=null),_0x5d1799[_0x5d1799['length']-0x1]+=_0x69c5c5[_0x226bdf]['item']['offsetSize'],_0x69c5c5[_0x226bdf]['nextPosition']=_0x396330['createPositionFromPath'](_0x59911b,_0x5d1799));for(let _0x9999a9=0x0;_0x9999a9<_0x69c5c5['length'];_0x9999a9++){const _0x46ffd4=_0x69c5c5[_0x9999a9]['previousPosition'],_0x26f297=_0x69c5c5[_0x9999a9]['nextPosition'];for(const _0x16e040 of _0x69c5c5[_0x9999a9]['markersStart'])_0x67fe3d['set'](_0x16e040,{'start':_0x46ffd4,'end':null});_0x5c49cf('isRemoveSuggestion',_0x9999a9,_0x46ffd4,_0x26f297),_0x5c49cf('isAddSuggestion',_0x9999a9,_0x46ffd4,_0x26f297),_0x5c49cf('isRemoved',_0x9999a9,_0x46ffd4,_0x26f297),_0x5c49cf('isAdded',_0x9999a9,_0x46ffd4,_0x26f297);for(const _0x54f89a of _0x69c5c5[_0x9999a9]['markersEnd']){_0x67fe3d['get'](_0x54f89a)['end']=_0x26f297;}}for(const [_0x320ca3,_0x336f3b]of _0x67fe3d){const _0x5d64d5=this['editor']['model']['createRange'](_0x336f3b['start'],_0x336f3b['end']);_0x59911b['markers']['set'](_0x320ca3,_0x5d64d5);}return _0x166723['sort']((_0x1d960f,_0x21c5a9)=>{const _0x4f8067=_0x59911b['markers']['get']('revision:'+_0x1d960f['id']),_0x46016e=_0x59911b['markers']['get']('revision:'+_0x21c5a9['id']);return _0x4f8067['start']['isBefore'](_0x46016e['start'])?-0x1:_0x4f8067['start']['isAfter'](_0x46016e['start'])?0x1:_0x4f8067['end']['isBefore'](_0x46016e['end'])?-0x1:_0x4f8067['end']['isAfter'](_0x46016e['end'])?0x1:'add'===_0x1d960f['type']?-0x1:0x1;}),{'root':_0x59911b,'changes':_0x166723};function _0x5c49cf(_0x5c6c51,_0x316c6f,_0xc28a40,_0x5eee2c){const _0x28140d=!!_0x69c5c5[_0x316c6f][_0x5c6c51],_0x2a58a5=_0x28140d?_0x69c5c5[_0x316c6f][_0x5c6c51]['userId']:null,_0x55e4c8=_0x316c6f===_0x69c5c5['length']-0x1,_0xf6e877=_0x595438[_0x5c6c51][0x0],_0x402ce4=_0x48bc1c['isObject'](_0x69c5c5[_0x316c6f]['item']);!_0x209f73[_0x5c6c51]&&_0x28140d?_0x209f73[_0x5c6c51]={'start':_0xc28a40,'tapeItem':_0x69c5c5[_0x316c6f],'userId':_0x2a58a5,'type':_0x5c6c51}:_0x209f73[_0x5c6c51]&&!_0x28140d?(_0x209f73[_0x5c6c51]['end']=_0xc28a40,_0x12e31f(_0x209f73[_0x5c6c51]),_0x209f73[_0x5c6c51]=null):_0x209f73[_0x5c6c51]&&_0x28140d&&_0x209f73[_0x5c6c51]['userId']!==_0x2a58a5&&(_0x209f73[_0x5c6c51]['end']=_0xc28a40,_0xf6e877&&_0xf6e877['userId']===_0x209f73[_0x5c6c51]['userId']||_0x12e31f(_0x209f73[_0x5c6c51]),_0x209f73[_0x5c6c51]={'start':_0xc28a40,'tapeItem':_0x69c5c5[_0x316c6f],'userId':_0x2a58a5,'type':_0x5c6c51}),_0x209f73[_0x5c6c51]&&_0x402ce4&&('elementStart'!==_0x69c5c5[_0x316c6f]['type']||_0xf6e877&&_0xf6e877['userId']===_0x2a58a5||_0x595438[_0x5c6c51]['unshift']({'userId':_0x2a58a5,'object':_0x69c5c5[_0x316c6f]['item'],'change':_0x209f73[_0x5c6c51]}),'elementEnd'===_0x69c5c5[_0x316c6f]['type']&&_0xf6e877&&_0xf6e877['object']===_0x69c5c5[_0x316c6f]['item']&&(_0x595438[_0x5c6c51]['shift'](),_0x209f73[_0x5c6c51]=_0xf6e877['change'])),_0x209f73[_0x5c6c51]&&_0x55e4c8&&(_0x209f73[_0x5c6c51]['end']=_0x5eee2c,_0x12e31f(_0x209f73[_0x5c6c51]),_0x209f73[_0x5c6c51]=null);}function _0x12e31f({start:_0x580aa6,end:_0x43beb2,tapeItem:_0x5a9fce,userId:_0x1c278e,type:_0x14de66}){const _0x47c308=_0x5a9fce['item'],_0x2f5ea5=_0x396330['schema']['isBlock'](_0x47c308)&&!_0x396330['schema']['isLimit'](_0x47c308),_0x5642e2=_0x580aa6['nodeAfter']==_0x43beb2['parent']&&_0x43beb2['isAtStart'];if(_0x2f5ea5&&_0x5642e2)return;const _0x7257a8=_0x396330['createRange'](_0x580aa6,_0x43beb2),_0x359ab4=_0x1ff54e['get'](_0x1c278e),_0x1c3a32=new r({'author':_0x359ab4,'type':'isAdded'==_0x14de66||'isAddSuggestion'==_0x14de66?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x14de66||'isRemoveSuggestion'==_0x14de66},'createdAt':new Date(),'rootName':_0xc4ab1b});_0x166723['push'](_0x1c3a32),_0x59911b['markers']['set']('revision:'+_0x1c3a32['id'],_0x7257a8);}function _0x44135b(_0x181714,_0x329a87){const _0x487044=_0x181714['getAttributes'](),_0x4e222a=_0x329a87['getAttributes']();for(const _0x8a4d11 of _0x487044){if(_0x8a4d11[0x1]!==_0x329a87['getAttribute'](_0x8a4d11[0x0]))return!0x1;_0x4e222a['next']();}return _0x4e222a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4211d5=>{const _0x5c3dcc=_0x4211d5['markerName']['split'](':')[0x1],_0x560d52=this['_getChangeFromId'](_0x5c3dcc);if(!_0x560d52)return null;const _0x19fe0b='add'==_0x560d52['type']?'insertion':'deletion',_0x3ad45a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x19fe0b];return _0x560d52['data']['isSuggestion']&&_0x3ad45a['push']('ck-suggestion-marker-'+_0x19fe0b+'-new'),this['activeChange']==_0x560d52&&_0x3ad45a['push']('ck-suggestion-marker--active'),{'classes':_0x3ad45a,'attributes':{'data-change-id':_0x5c3dcc}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3d1ba2=>{_0x3d1ba2['on']('element:pre',(_0x45e80f,_0x37854a,_0x188b9a)=>{const _0x571b41=_0x37854a['viewItem']['getChild'](0x0);if(!_0x571b41||!_0x571b41['is']('element','code'))return;if(!_0x188b9a['consumable']['consume'](_0x571b41,{'attributes':['vid_start','vid_end']}))return;const _0x12da73=_0x37854a['modelRange']['start']['nodeAfter'];_0x188b9a['writer']['setAttribute']('vid_start',_0x571b41['getAttribute']('vid_start'),_0x12da73),_0x188b9a['writer']['setAttribute']('vid_end',_0x571b41['getAttribute']('vid_end'),_0x12da73);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x247463=>{_0x247463['on']('element',(_0x251adb,_0xa40af7,_0x375c72)=>{if(!_0x375c72['consumable']['consume'](_0xa40af7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xa40af7['modelRange']['isCollapsed'])return;const _0x3b6a65=_0xa40af7['modelRange']['start']['nodeAfter'];_0x3b6a65['hasAttribute']('vid_start')||_0x3b6a65['hasAttribute']('vid')||(_0x375c72['writer']['setAttribute']('vid_start',_0xa40af7['viewItem']['getAttribute']('vid_start'),_0x3b6a65),_0x375c72['writer']['setAttribute']('vid_end',_0xa40af7['viewItem']['getAttribute']('vid_end'),_0x3b6a65));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x6ced35=>_0x6ced35['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5a2a10,[,_0x4cbfe0])=>{['vid_start','vid_end','vid']['includes'](_0x4cbfe0)&&(_0x5a2a10['return']=!0x0,_0x5a2a10['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2746a6=>{_0x2746a6['on']('attribute:vid',(_0x2ab417,_0x54b30f,_0x23279a)=>{if('\x20'!=_0x54b30f['item']['data']||_0x54b30f['item']['parent']['maxOffset']>0x1)return;if(!_0x23279a['consumable']['consume'](_0x54b30f['item'],_0x2ab417['name']))return;const _0x3ec8a6=_0x23279a['writer'],_0x159ea9=_0x23279a['mapper']['toViewRange'](_0x54b30f['range']);_0x3ec8a6['wrap'](_0x159ea9,_0x3ec8a6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x8feff5){const _0x5e184a=_0x8feff5['plugins']['get']('RevisionViewer');return(_0x4d287e,_0x18c761,_0xd830a8)=>{const _0x3c62b4=_0x18c761['markerName']['split'](':')[0x1],_0x51ba98=_0x5e184a['_getChangeFromId'](_0x3c62b4);if(!_0x51ba98)return null;const _0x30a572='add'==_0x51ba98['type']?'split':'merge';if(!_0xd830a8['consumable']['test'](_0x18c761['markerRange'],_0x4d287e['name']))return;const _0x599411=_0x18c761['markerRange']['getWalker'](),_0x5b8de0=_0x18c761['markerRange']['start'],_0x221a2b=_0x8feff5['model']['schema'];let _0xd9d4f8=null,_0x44e1c4=null,_0x3d0a46=!0x1,_0xe2ae3e=!0x1;for(const _0x5779c1 of _0x599411){const _0x1686a9=_0x5779c1['item'];_0x3d0a46=_0x3d0a46||_0x221a2b['isContent'](_0x1686a9);const _0x15eb1d=_0xd830a8['mapper']['toViewElement'](_0x1686a9);if(_0x15eb1d&&_0x15eb1d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5779c1['type']&&(_0x221a2b['isBlock'](_0x1686a9)&&!_0x221a2b['isLimit'](_0x1686a9)&&(_0x1686a9['nextSibling']||_0x5b8de0['isAtEnd']?_0xd9d4f8&&_0xd9d4f8['parent']==_0x1686a9||(_0xd9d4f8=_0x1686a9,_0x11ee9d(_0x5779c1['previousPosition']),_0xe2ae3e=!0x0):_0x44e1c4=_0x44e1c4||_0x5779c1['previousPosition']));}function _0x11ee9d(_0x1f7a93){const _0x1f7406=_0xd830a8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30a572}),_0x570823=_0xd830a8['mapper']['toViewPosition'](_0x1f7a93);_0x51ba98['data']['isSuggestion']&&_0xd830a8['writer']['addClass']('ck-suggestion-marker-'+_0x30a572+'-new',_0x1f7406),_0x5e184a['activeChange']==_0x51ba98&&_0xd830a8['writer']['addClass']('ck-suggestion-marker--active',_0x1f7406),_0xd830a8['writer']['insert'](_0x570823,_0x1f7406),_0xd830a8['mapper']['bindElementToMarker'](_0x1f7406,_0x18c761['markerName']);}_0x3d0a46||_0xe2ae3e||!_0x44e1c4||_0x11ee9d(_0x44e1c4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x551fad,_0xcc7de2,_0x44211b)=>{const _0x1b13b8=_0x44211b['mapper']['markerNameToElements'](_0xcc7de2['markerName']);if(_0x1b13b8){for(const _0x535828 of _0x1b13b8)(_0x535828['hasClass']('ck-suggestion-marker-split')||_0x535828['hasClass']('ck-suggestion-marker-merge'))&&(_0x44211b['mapper']['unbindElementFromMarkerName'](_0x535828,_0xcc7de2['markerName']),_0x44211b['writer']['remove'](_0x535828));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2ad563,_0x590a72,_0xdfa2b9)=>{const _0x5414f2=_0x590a72['markerName']['split'](':')[0x1],_0x466824=this['_getChangeFromId'](_0x5414f2);if(!_0x466824)return null;const _0x2fa1f3='add'==_0x466824['type']?'split':'merge';if(_0xdfa2b9['consumable']['test'](_0x590a72['markerRange'],_0x2ad563['name']))for(const _0x38bd32 of _0x590a72['markerRange']['getItems']()){if(!_0x38bd32['is']('element','softBreak'))continue;const _0x4059ed=_0xdfa2b9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fa1f3}),_0x5e8401=_0xdfa2b9['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x38bd32));_0x466824['data']['isSuggestion']&&_0xdfa2b9['writer']['addClass']('ck-suggestion-marker-'+_0x2fa1f3+'-new',_0x4059ed),this['activeChange']==_0x466824&&_0xdfa2b9['writer']['addClass']('ck-suggestion-marker--active',_0x4059ed),_0xdfa2b9['writer']['insert'](_0x5e8401,_0x4059ed),_0xdfa2b9['mapper']['bindElementToMarker'](_0x4059ed,_0x590a72['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x306352=>{for(const _0xc13c04 of this['editor']['model']['document']['getRootNames']()){const _0xa5f377=this['editor']['model']['document']['getRoot'](_0xc13c04),_0x3df468=this['editor']['editing']['view']['document']['getRoot'](_0xc13c04);if(_0x3df468){const _0x3b9ea9=_0xa5f377['getAttribute']('revisionHistoryAttachChange');if(_0x306352['removeAttribute']('data-change-id',_0x3df468),_0x306352['removeClass']('ck-revision-history-root-add',_0x3df468),_0x306352['removeClass']('ck-revision-history-root-remove',_0x3df468),_0x306352['removeClass']('ck-revision-history-root--active',_0x3df468),_0x3b9ea9){const _0x13de3d=this['_getChangeFromId'](_0x3b9ea9);if(!_0x13de3d)return null;_0x306352['setAttribute']('data-change-id',_0x3b9ea9,_0x3df468),_0x306352['addClass']('ck-revision-history-root-'+_0x13de3d['type'],_0x3df468),this['activeChange']==_0x13de3d&&_0x306352['addClass']('ck-revision-history-root--active',_0x3df468);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1792b1=>'revision-comment:'+_0x1792b1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x346d9e=>'revision-suggestion:'+_0x346d9e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x379c2a=>({'name':'suggestion:'+_0x379c2a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x52eec2=>{const _0x4b995f=_0x52eec2['markerName']['split'](':')[0x1];return'insertion'!=_0x4b995f&&'deletion'!=_0x4b995f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4b995f]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2ea725,_0x586f26,_0x154f0d)=>{const _0x4687a7=_0x154f0d['mapper']['markerNameToElements'](_0x586f26['markerName']);if(_0x4687a7){for(const _0x9d4170 of _0x4687a7)_0x9d4170['is']('uiElement')&&(_0x154f0d['mapper']['unbindElementFromMarkerName'](_0x9d4170,_0x586f26['markerName']),_0x154f0d['writer']['remove'](_0x9d4170));}},{'priority':'high'});}['_getChangeFromId'](_0x3f2659){return this['_changeIdToChange']['get'](_0x3f2659);}['_getViewForChange'](_0x479107){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x479107),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2af1c0,_0x27e572,_0xaac59a,_0x2f37d9)=>{_0x2f37d9&&this['_balloon']['remove'](_0x2f37d9),_0xaac59a&&(this['_balloon']['add']({'view':_0xaac59a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x178f43=this['editor']['editing'],_0x1a3248=this['_getChangeFromId'](_0xaac59a['changeId']);let _0x443074;if(_0x1a3248['data']['isOnRoot']){const _0x32315f=_0x178f43['view']['getDomRoot'](_0x1a3248['rootName']);_0x443074=Array['from'](_0x32315f['getClientRects']());}else{const _0x581627=this['editor']['model']['markers']['get']('revision:'+_0xaac59a['changeId']);_0x443074=Array['from'](_0x178f43['mapper']['markerNameToElements'](_0x581627['name']))['map'](_0x205c41=>_0x178f43['view']['domConverter']['mapViewToDom'](_0x205c41))['map'](_0x426b6a=>Array['from'](_0x426b6a['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x443074[0x0];return _0x443074['find'](_0x1eed74=>_0x1eed74['top']-0x3<=this['_activeViewTarget']['y']&&_0x1eed74['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1eed74['left']-0x3<=this['_activeViewTarget']['x']&&_0x1eed74['right']+0x3>=this['_activeViewTarget']['x'])||_0x443074[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x574bad,_0x47e1f0,_0x31e6b8,_0x28f4c3)=>{this['activeView']=_0x31e6b8?this['_getViewForChange'](_0x31e6b8):null,this['editor']['model']['change'](()=>{const _0x3d604c=this['editor']['editing'];_0x28f4c3&&(_0x28f4c3['data']['isOnRoot']?_0x3d604c['view']['change'](_0x49c1ef=>{_0x49c1ef['removeClass']('ck-revision-history-root--active',_0x3d604c['view']['document']['getRoot'](_0x28f4c3['rootName']));}):_0x3d604c['reconvertMarker']('revision:'+_0x28f4c3['id'])),_0x31e6b8&&(_0x31e6b8['data']['isOnRoot']?_0x3d604c['view']['change'](_0x370494=>{_0x370494['addClass']('ck-revision-history-root--active',_0x3d604c['view']['document']['getRoot'](_0x31e6b8['rootName']));}):_0x3d604c['reconvertMarker']('revision:'+_0x31e6b8['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3cdf42,_0x5cc138)=>{if(this['activeChange'])return;const _0x62a32d=this['_findChangeIdFromDomTarget'](_0x5cc138['target']),_0xeafbe8=this['_changeIdToChange']['get'](_0x62a32d);_0xeafbe8?(this['_activeViewTarget']={'x':_0x5cc138['domEvent']['x'],'y':_0x5cc138['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xeafbe8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4352d7,_0x490ec2)=>{const _0x2405fc=this['_findChangeIdFromDomTarget'](_0x490ec2['target']),_0xa29bdb=this['_changeIdToChange']['get'](_0x2405fc);_0xa29bdb?(this['_activeViewTarget']={'x':_0x490ec2['domEvent']['x'],'y':_0x490ec2['domEvent']['y']},_0xa29bdb===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xa29bdb):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3d3142){do{const _0x3ab58f=_0x3d3142['getAttribute']('data-change-id');if(_0x3ab58f)return _0x3ab58f;_0x3d3142=_0x3d3142['parent'];}while(_0x3d3142);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4f3867=>{for(const _0x1c8009 of this['editor']['model']['markers'])_0x4f3867['removeMarker'](_0x1c8009);});}}function Z(_0xa5834,_0x43aab7){return(_0x3bf3eb,_0xea1529,_0x5b5ee6)=>{if(!_0x5b5ee6['consumable']['test'](_0xea1529['markerRange'],_0x3bf3eb['name']))return;const _0x47893b=_0xea1529['markerRange']['getWalker'](),_0x567ede=_0xea1529['markerRange']['start'],_0x5029fc=_0xa5834['model']['schema'];let _0x47bbb5=null,_0x2e9fce=null,_0x528f98=!0x1,_0x526950=!0x1;for(const _0x4b190a of _0x47893b){const _0x49631e=_0x4b190a['item'];_0x528f98=_0x528f98||_0x5029fc['isContent'](_0x49631e);const _0x512868=_0x5b5ee6['mapper']['toViewElement'](_0x49631e);if(_0x512868&&_0x512868['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b190a['type']&&(_0x5029fc['isBlock'](_0x49631e)&&!_0x5029fc['isLimit'](_0x49631e)&&(_0x49631e['nextSibling']||_0x567ede['isAtEnd']?_0x47bbb5&&_0x47bbb5['parent']==_0x49631e||(_0x47bbb5=_0x49631e,_0x595291(_0x4b190a['previousPosition']),_0x526950=!0x0):_0x2e9fce=_0x2e9fce||_0x4b190a['previousPosition']));}function _0x595291(_0x3fab96){const _0x4d38b5=_0x5b5ee6['mapper']['toViewPosition'](_0x3fab96),_0x1b964e=_0x5b5ee6['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x43aab7});_0x5b5ee6['writer']['insert'](_0x4d38b5,_0x1b964e),_0x5b5ee6['mapper']['bindElementToMarker'](_0x1b964e,_0xea1529['markerName']);}_0x528f98||_0x526950||!_0x2e9fce||_0x595291(_0x2e9fce);};}class wt extends _0x1db4eb{constructor(_0x2dd1b1){super(_0x2dd1b1);const _0x4ee634=_0x2dd1b1['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4ee634,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4ee634,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x34d8a9=this['editor'],_0x3dcbc2=_0x34d8a9['plugins']['get'](d),_0x3529d4=_0x3dcbc2['isReady']?_0x3dcbc2['diff']['newRevisionId']:null;_0x34d8a9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3529d4);}['refresh'](){const {isReady:_0x291e41,isEnabled:_0x55db2f,repository:_0x3b5b3c,diff:_0x316ca0}=this['editor']['plugins']['get'](d),_0x220859=_0x316ca0&&_0x3b5b3c['getLaterVisibleRevision'](_0x316ca0['newRevisionId']);this['isEnabled']=_0x291e41&&_0x55db2f&&Boolean(_0x220859);}}class _t extends _0x1db4eb{['_step'];constructor(_0x4e489d,{direction:_0x3e9d27}){super(_0x4e489d);const _0x233a85=_0x4e489d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3e9d27?0x1:-0x1,this['listenTo'](_0x233a85,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x233a85,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x233a85,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5bfe97=this['editor'],_0x1a6b4e=_0x5bfe97['plugins']['get'](d),{isNavigationMode:_0x26c9ed,currentChangeNumber:_0x2c582d}=_0x1a6b4e;let _0x519569;if(_0x1a6b4e['activeChange']=_0x26c9ed?_0x1a6b4e['diff']['changes']['get'](_0x2c582d+this['_step']):_0x1a6b4e['diff']['changes']['first'],_0x1a6b4e['activeChange']['data']['isOnRoot'])_0x519569=_0x5bfe97['editing']['view']['getDomRoot'](_0x1a6b4e['activeChange']['rootName']);else{const _0x553244=_0x5bfe97['model']['markers']['get']('revision:'+_0x1a6b4e['activeChange']['id']);_0x519569=_0x126672(_0x5bfe97['editing'],_0x553244);}_0x44f96b({'target':_0x519569,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4673d0,currentChangeNumber:_0x333f41,numberOfChanges:_0x5a0d19,isReady:_0x4dabd4,isEnabled:_0x4d7b14}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4d7b14&&_0x4dabd4&&_0x5a0d19)&&(!_0x4673d0||(0x1===this['_step']?_0x333f41<_0x5a0d19-0x1:_0x333f41>0x0));}}class _i extends ts{constructor(_0x309d83){super(_0x309d83);const _0x24dab7=this['bindTemplate'],_0xdcb1d4=new te(_0x309d83),_0x1f8625=new te(_0x309d83);this['set']('isNavigationMode',!0x1),this['set']('isReady',!0x1),this['set']('currentChangeNumber',0x0),this['set']('numberOfChanges',0x0),this['set']('isForwardNavigationEnabled',!0x1),this['set']('isBackwardNavigationEnabled',!0x1),this['bind']('_isStatusLabelVisible')['to'](this,'isReady',this,'numberOfChanges',(_0x441c83,_0x594fb2)=>_0x441c83&&_0x594fb2>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x51d5ab,_0x5f1bbb,_0x48cdde,_0x12592c)=>{if(!_0x51d5ab)return m(_0x309d83,'Loading...');if(!_0x48cdde)return m(_0x309d83,'No\x20changes');const _0x3f3d02=m(_0x309d83,'NUMBER_OF_CHANGES',_0x48cdde);return _0x12592c?m(_0x309d83,'X_OF_Y_CHANGES',[_0x5f1bbb+0x1,_0x48cdde]):_0x3f3d02;}),_0xdcb1d4['set']({'label':m(_0x309d83,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x140ee6}),_0x1f8625['set']({'label':m(_0x309d83,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x710b16}),_0xdcb1d4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1f8625['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xdcb1d4['on']('execute',()=>this['fire']('execute','backward')),_0x1f8625['on']('execute',()=>this['fire']('execute','forward')),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-ui','ck-revision-history-ui__changes-navigation']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__wrapper']},'children':[{'tag':'span','attributes':{'class':['ck-revision-history-ui__changes-navigation__label',_0x24dab7['if']('_isStatusLabelVisible','ck-hidden',_0x5c44a2=>!_0x5c44a2)]},'children':[{'text':_0x24dab7['to']('isNavigationMode',_0x3c42d7=>_0x3c42d7?m(_0x309d83,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x309d83,'Total')+':\x20')}]},{'text':_0x24dab7['to']('_statusText')}]},new _0x1e098a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xdcb1d4,_0x1f8625]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x5517c8{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x496341=this['editor']['editing']['view'];_0x496341['change'](_0x51f1f3=>{for(const _0x2572be of _0x496341['document']['roots'])_0x51f1f3['addClass'](le,_0x2572be);});}['hide'](){const _0x5f3b2d=this['editor']['editing']['view'];_0x5f3b2d['change'](_0xf3fc66=>{for(const _0x5112fc of _0x5f3b2d['document']['roots'])_0xf3fc66['removeClass'](le,_0x5112fc);});}}class w extends _0x5517c8{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1aab6b=this['editor'],_0x302a4c=_0x1aab6b['plugins']['get'](d),_0x53351b=_0x1aab6b['plugins']['get'](ge);_0x1aab6b['ui']['componentFactory']['add']('exitToEditing',_0x333e1f=>{const _0x441de1=new te(_0x333e1f);return _0x441de1['set']({'label':m(_0x333e1f,'Back\x20to\x20editing'),'icon':_0x5332e8,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x441de1,'execute',()=>{_0x1aab6b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x441de1;}),_0x1aab6b['ui']['componentFactory']['add']('restoreRevision',_0x12e7d2=>{const _0x5f2680=new te(_0x12e7d2);return _0x5f2680['set']({'label':m(_0x12e7d2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5f2680['bind']('isEnabled')['to'](_0x1aab6b['commands']['get']('restoreRevision')),this['listenTo'](_0x5f2680,'execute',()=>_0x1aab6b['execute']('restoreRevision')),_0x5f2680;}),_0x1aab6b['ui']['componentFactory']['add']('changesNavigation',_0x16ab08=>{const _0x464e65=new _i(_0x16ab08),_0x1e5c4e=_0x1aab6b['commands']['get']('showPreviousChange'),_0xfae7d8=_0x1aab6b['commands']['get']('showNextChange');return _0x464e65['bind']('isBackwardNavigationEnabled')['to'](_0x1e5c4e,'isEnabled'),_0x464e65['bind']('isForwardNavigationEnabled')['to'](_0xfae7d8,'isEnabled'),_0x464e65['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x302a4c),this['listenTo'](_0x464e65,'execute',(_0x594383,_0x2c2830)=>{_0x1aab6b['execute']('forward'===_0x2c2830?'showNextChange':'showPreviousChange');}),_0x464e65;}),_0x53351b['show'](),_0x302a4c['on']('change:isReady',(_0x304822,_0x1c32c3,_0x5863fa)=>{_0x5863fa?_0x53351b['hide']():_0x53351b['show']();});}}class pt extends _0x231adc{['_resizeObserver']=null;constructor(_0x50b08c,_0x4bea28){super(_0x50b08c,_0x4bea28);const _0x1ec564=this['bindTemplate'];this['set']({'label':m(_0x50b08c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x50b08c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1ec564['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3f0e20=this['fieldView']['element'];this['_tooltipString']=_0x3f0e20['scrollWidth']>_0x3f0e20['clientWidth']&&_0x3f0e20['value']||'';}}class si extends ts{constructor(_0x1ea28e,_0x2c9f27,_0x4e61a8){super(_0x1ea28e);const _0x2b5392=new _0x5762d1();_0x2b5392['set']({'content':_0x1792fe,'viewBox':'0\x200\x2011\x2010'});const _0x1c100d=['ck','ck-revision-history-sidebar__revision-author'];_0x4e61a8&&_0x1c100d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2e91c4=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1ea28e,_0x4e61a8?'Revision\x20creator':'Revision\x20author')},'children':[_0x2b5392,_0x2c9f27['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1c100d},'children':_0x2e91c4});}}function oi(_0x5e7623,_0x34839b){const _0x1a0417=_0x5e7623['bindTemplate'],_0x33d524=_0x5e7623['locale'],_0x20fa47=_0x461af0(_0x33d524);_0x20fa47['panelPosition']='sw';const _0x3903cf=function(_0x56817d,_0x47ea50){const _0x53af62=function(_0x28b2a9,_0x2b8b18){const _0x135cd0=_0x28b2a9['locale'],_0x3d7040={'Compare\x20against\x20selected':m(_0x135cd0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x135cd0,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x135cd0,'Restore\x20this\x20revision')};return _0x2b8b18['map'](_0x5e84de=>{const _0x1b47a5=_0x3d7040[_0x5e84de['name']];return _0x1b47a5&&_0x1b47a5!==_0x5e84de['name']&&(_0x5e84de['name']=_0x1b47a5),_0x5e84de;});}(_0x56817d,_0x47ea50),_0x225f94=new _0x1b37a4();for(const _0x20ef66 of _0x53af62){const _0x17936d={'type':'button','model':new to({'label':_0x20ef66['name'],'class':_0x20ef66['class'],'withText':!0x0,'role':'menuitem','_action':_0x20ef66['action']})};_0x17936d['model']['bind']('isEnabled')['to'](_0x56817d,'isActionsDropdownOpen',_0xa5fa97=>'function'!=typeof _0x20ef66['isEnabled']||(!_0xa5fa97||_0x20ef66['isEnabled'](_0x56817d))),_0x225f94['add'](_0x17936d);}return _0x225f94;}(_0x5e7623,_0x34839b);return _0x5e7623['bind']('isActionsDropdownOpen')['to'](_0x20fa47,'isOpen'),_0x20fa47['buttonView']['set']({'label':m(_0x33d524,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xf69623}),_0x20fa47['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1a0417['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1a0417['to'](_0x505668=>_0x505668['stopPropagation']())}}),_0x20fa47['on']('execute',_0x1ed6f1=>{_0x5e7623['isReady']&&'function'==typeof _0x1ed6f1['source']['_action']&&_0x1ed6f1['source']['_action'](_0x5e7623);}),_0x570a7f(_0x20fa47,_0x3903cf,{'role':'menu'}),_0x20fa47['listenTo'](_0x5e7623,'change:isActionsDropdownOpen',(_0x49e04c,_0x1fe025,_0x13ee96)=>{if(_0x13ee96)for(const _0xc8989a of _0x20fa47['listView']['items']){const _0x248f9a=_0xc8989a['children']['first'],_0x569fad=_0x34839b['find'](_0x505cbb=>_0x505cbb['action']===_0x248f9a['_action'])['isVisible'];_0xc8989a['isVisible']=void 0x0===_0x569fad||_0x569fad(_0x5e7623);}}),_0x20fa47;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2a1e3c,_0x32caf5,_0xebddb5,_0x2c0ab7){super(_0x2a1e3c);const _0x456dd9=this['bindTemplate'],_0x1ad592=function(_0x5cf31b,_0x1dcd85){const _0x51ca1e=Array['from'](_0x1dcd85['authors'])['filter'](_0x5df8e1=>_0x5df8e1!=_0x1dcd85['creator']);return _0x1dcd85['creator']&&_0x51ca1e['unshift'](_0x1dcd85['creator']),_0x51ca1e['map'](_0x322234=>new si(_0x5cf31b,_0x322234,_0x322234==_0x1dcd85['creator']));}(_0x2a1e3c,_0x32caf5);this['id']=_0x32caf5['id'],this['_revision']=_0x32caf5,this['_requireRevisionName']=_0x2c0ab7,this['bind']('name','createdAt')['to'](_0x32caf5),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x514254=>{return _0x4437e5=_0x2a1e3c['uiLanguage'],(_0x5126e3=_0x514254)['toLocaleDateString'](_0x4437e5,{'month':'long','day':'numeric'})+',\x20'+_0x5126e3['toLocaleTimeString'](_0x4437e5,{'hour':'numeric','minute':'numeric'});var _0x4437e5,_0x5126e3;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2a1e3c,_0x433401),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5d8bad=>_0x5d8bad||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5c5cf2,_0x41f79d)=>_0x5c5cf2&&_0x41f79d),this['revisionActionsView']=_0xebddb5&&_0xebddb5['length']?oi(this,_0xebddb5):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x456dd9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x456dd9['if']('isEnabled','ck-disabled',_0x4fcd7c=>!_0x4fcd7c),_0x456dd9['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x456dd9['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x456dd9['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x456dd9['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x1ad592}]},this['revisionActionsView']],'on':{'click':_0x456dd9['to'](_0x1f986e=>{_0x1f986e['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x417651=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x417651,'change',()=>{this['_requireRevisionName']&&!_0x417651['value']||this['fire']('setName',{'id':this['id'],'name':_0x417651['value']}),_0x417651['value']||(_0x417651['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x3910f3,_0x1b0db1){const _0x509703=_0x4fdf8d['fromJSDate'](_0x3910f3)['setLocale'](_0x1b0db1),_0xe06a1d=_0x4fdf8d['local'](),_0x234117=_0xe06a1d['minus']({'days':0x1})['startOf']('day');let _0x29fc29,_0x2d0ae4;return _0x509703['hasSame'](_0xe06a1d,'day')?(_0x29fc29=_0x509703['startOf']('day')['toJSDate'](),_0x2d0ae4=_0x509703['toRelativeCalendar']()):_0x509703['hasSame'](_0x234117,'day')?(_0x29fc29=_0x234117['toJSDate'](),_0x2d0ae4=_0x509703['toRelativeCalendar']()):_0x509703['hasSame'](_0xe06a1d,'week')?(_0x29fc29=_0x509703['startOf']('week')['toJSDate'](),_0x2d0ae4=_0x509703['weekdayLong']||''):_0x509703['hasSame'](_0xe06a1d,'year')?(_0x29fc29=_0x509703['startOf']('month')['toJSDate'](),_0x2d0ae4=_0x509703['monthLong']||''):(_0x29fc29=_0x509703['startOf']('year')['toJSDate'](),_0x2d0ae4=String(_0x509703['year'])),{'startDate':_0x29fc29,'localizedPeriodName':_0x2d0ae4};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5d7307,_0x148d33,_0x1428a9,_0x34c7b7){super(_0x5d7307);const _0x48650d=ai(_0x148d33,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x148d33,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1428a9,this['_requireRevisionName']=_0x34c7b7,this['revisionViews']['delegate']('select')['to'](this),this['revisionViews']['delegate']('setName')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period']},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__label']},'children':[{'text':_0x48650d}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3f8cca){const _0x426b34=new hi(this['locale'],_0x3f8cca,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x426b34);}['removeRevision'](_0x4b84aa){const _0x76182=this['revisionViews']['find'](_0x1c6a21=>_0x1c6a21['id']===_0x4b84aa['id']);this['revisionViews']['remove'](_0x76182);}}class as extends ts{constructor(_0x32f20d){super(_0x32f20d);const _0x1ae477=new _0x5762d1();_0x1ae477['content']=_0x35cf4f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1ae477,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x32f20d,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x181717,_0x43dd3a,_0x170b15,_0x4da20d){super(_0x181717);const _0xc1f234=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x43dd3a,this['_revisionActions']=_0x170b15,this['_requireRevisionName']=_0x4da20d,this['on']('select',(_0x323bfd,_0xdd24ae)=>{this['fire']('revisionSelected',_0xdd24ae);}),this['on']('setName',(_0x485596,_0x2a0224)=>{this['fire']('revisionSetName',_0x2a0224);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x181717),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xc1f234['if']('isEnabled','ck-disabled',_0x39d91d=>!_0x39d91d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x561534 of this['_revisions'])this['_addRevision'](_0x561534);this['_revisions']['on']('add',(_0x58d59e,_0x5c711a)=>{this['_addRevision'](_0x5c711a);}),this['_revisions']['on']('remove',(_0x4e2225,_0x1940c1)=>{this['_removeRevision'](_0x1940c1);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x45a318=>_0x45a318['revisionViews']['map'](_0x471258=>_0x471258))['flat']();}['selectRevision'](_0x4673d4){for(const _0x4070f5 of this['revisionViews'])_0x4673d4&&_0x4673d4['id']===_0x4070f5['id']?_0x4070f5['select']():_0x4070f5['deselect']();}['highlightRevisions'](_0x5d282c){for(const _0x1e28a4 of this['revisionViews'])_0x5d282c['some'](({id:_0x2e5840})=>_0x2e5840===_0x1e28a4['id'])?_0x1e28a4['highlight']():_0x1e28a4['unhighlight']();}['_addRevision'](_0x9d7e1f){const _0x36cf9f=ai(_0x9d7e1f['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1ffad4=this['timePeriodViews']['get'](0x0);_0x1ffad4&&_0x1ffad4['startDate']['getTime']()===_0x36cf9f['getTime']()||(_0x1ffad4=new di(this['locale'],_0x36cf9f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1ffad4)),_0x1ffad4['addRevision'](_0x9d7e1f);}['_removeRevision'](_0x4ac3fd){const _0x14db86=ai(_0x4ac3fd['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x14db86)['removeRevision'](_0x4ac3fd);}['_getTimePeriodViewByStartDate'](_0x3c7105){return this['timePeriodViews']['find'](_0x36a578=>_0x36a578['startDate']['getTime']()===_0x3c7105['getTime']());}}class g extends _0x5517c8{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x17e9e4){super(_0x17e9e4),this['_revisionViewer']=_0x17e9e4['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x6d4ed3=this['_revisionsRepository']['_revisions'],_0xcb08a8=this['_createRevisionActions'](),_0x1ac905=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x6d4ed3,_0xcb08a8,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x23ca12,_0xd989a0)=>{_0xd989a0['revisionViews']['on']('add',(_0x516645,_0x1eaa4b)=>{_0x1eaa4b['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x1ac905['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x377091=this['_revisionsRepository']['getRevision'](0x0);if(_0x377091){const _0x1b165a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x377091['id']);this['_revisionViewer']['compare'](_0x377091,_0x1b165a);}}['_handleRevisionSelected'](_0x11ac1a,_0x288431){const _0x4fbe55=this['_revisionsRepository']['getRevision'](_0x288431['id']),_0x5dba52=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4fbe55['id']);this['_revisionViewer']['compare'](_0x4fbe55,_0x5dba52);}['_handleRevisionSetName'](_0x2a6c55,_0x333430){this['_revisionsRepository']['getRevision'](_0x333430['id'])['setName'](_0x333430['name']);}['_handleDiffChange'](_0x23a9a8,_0x343275,_0xe269e6){const _0x2c1c0f=this['_revisionsRepository']['getRevisionsInDiff'](_0xe269e6);_0x2c1c0f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2c1c0f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2c1c0f[0x0]));}['_createRevisionActions'](){const _0x560e89=this['editor'],_0x142155=g['availableRevisionActions'],_0x346f20=_0x560e89['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x346f20['length'])return _0x346f20['map'](_0x2b66e7=>{const _0x58de3d='string'==typeof _0x2b66e7?Object['assign']({},_0x142155[_0x2b66e7]):_0x2b66e7;return _0x58de3d['action']=_0x58de3d['action']['bind'](this,_0x560e89),_0x58de3d['isVisible']&&(_0x58de3d['isVisible']=_0x58de3d['isVisible']['bind'](this,_0x560e89)),_0x58de3d;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xd9f45d},_0x528283)=>{const _0x2402ee=_0xd9f45d['get'](d),_0x30143c=_0x2402ee['repository'];let _0x1b3ade=_0x2402ee['diff']['newRevisionId'],_0x4220a7=_0x528283['id'];_0x30143c['getIndex'](_0x1b3ade)>_0x30143c['getIndex'](_0x4220a7)&&([_0x1b3ade,_0x4220a7]=[_0x4220a7,_0x1b3ade]),_0x2402ee['compare'](_0x1b3ade,_0x4220a7);},'isVisible':({plugins:_0x80756b},_0x43083f)=>{const _0x220b92=_0x80756b['get'](d);return!(_0x220b92['repository']['getRevisionsInDiff'](_0x220b92['diff'])['length']>0x2)&&!_0x43083f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xa3f3c6,{id:_0x246b88})=>{_0xa3f3c6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x246b88);},'isVisible':({plugins:_0x13494b},_0x402ff3)=>!!_0x13494b['get'](d)['repository']['getLaterVisibleRevision'](_0x402ff3['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x255899},{id:_0x558c3b,revisionNameView:_0xf877})=>{const _0x1fed5a=_0x255899['get'](d),_0x54a9fa=_0x1fed5a['repository']['getEarlierVisibleRevision'](_0x558c3b);_0x1fed5a['compare'](_0x558c3b,_0x54a9fa),_0xf877['focus'](),_0xf877['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x48aee3,_0x1b8efe){super(_0x48aee3),this['_view']=_0x1b8efe,this['_toolbarConfig']=ot(_0x48aee3['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1d99c7){const _0x4d0ce5=this['editor'],_0x5678be=this['view'],_0x5b550e=_0x4d0ce5['editing']['view'],_0x248039=_0x5678be['editable'],_0x2c7ba0=_0x5b550e['document']['getRoot']();_0x248039['name']=_0x2c7ba0['rootName'],_0x5678be['render']();const _0x4b74a7=_0x248039['element'];this['setEditableElement'](_0x248039['name'],_0x4b74a7),_0x5678be['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5b550e['attachDomRoot'](_0x4b74a7),this['_elementReplacer']['replace'](_0x1d99c7,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x420f90=this['view'],_0x9593f9=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x9593f9['detachDomRoot'](_0x420f90['editable']['name']),_0x420f90['destroy']();}['_initToolbar'](){const _0x3fa352=this['view'];_0x3fa352['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3fa352['stickyPanel']['limiterElement']=_0x3fa352['element'],_0x3fa352['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5c6bcd})=>_0x5c6bcd),_0x3fa352['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3fa352['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1f539b,_0x2119d1,_0x5a27ea={}){super(_0x1f539b),this['stickyPanel']=new lt(_0x1f539b),this['toolbar']=new nt(_0x1f539b,{'shouldGroupWhenFull':_0x5a27ea['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x1f539b,_0x2119d1);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x46cc90,_0x5bd093){super(_0x5bd093),this['sourceElement']=_0x46cc90,this['model']['document']['createRoot']();const _0x35eb23=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x35eb23);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x237afa,_0x10ffd5){const _0xc9a39=new this(_0x237afa,_0x10ffd5);return await _0xc9a39['initPlugins'](),await _0xc9a39['ui']['init'](_0x237afa),await _0xc9a39['data']['init'](_0xc9a39['config']['get']('initialData')||''),_0xc9a39['fire']('ready'),_0xc9a39;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x4c6b5c{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x131af0){function _0x19bb95(_0x1c25f0){return _0x1c25f0['map'](_0x18214f=>String['fromCharCode'](_0x18214f))['join']('');}super(_0x131af0),this['result']='end',_0x131af0[_0x19bb95([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x19bb95([0x76,0x69,0x65,0x77])][_0x19bb95([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x19bb95([0x61,0x75,0x74,0x6f]),_0x131af0[_0x19bb95([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x19bb95([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x19bb95([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x19bb95([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x19bb95([0x6f,0x6b])});}}class k extends _0x4c6b5c{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2cd63f){if(super(_0x2cd63f),!this['editor']['config']['get']('revisionHistory'))throw new _0x15aa9e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4bb2e6=>this['_showRevisionViewer']({..._0x4bb2e6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3127ba=>this['_closeRevisionViewer'](_0x3127ba)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x410da1=>this['_restoreRevision'](_0x410da1)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x53002a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x53002a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x570f4e){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x570f4e);}['getRevision'](_0x21ceb6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x21ceb6);}['getRevisions'](_0x5bf7ab){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5bf7ab||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x46133f=this['editor'],_0x379826=_0xd6b65a(_0x46133f,p),_0x572d44=_0x46133f['plugins']['get']('RevisionTracker'),_0x4e40b7=_0x46133f['plugins']['get']('Users')['users'];return _0x379826['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x379826['lazyRoots'],(_0x379826['plugins']['push'](Rt,d,w,class extends _0x4c6b5c{static get['requires'](){return[d,'Users'];}['init'](){const _0xdf2861=this['editor']['plugins']['get']('Users');for(const _0x58ffea of _0x4e40b7)_0x58ffea['isAnonymous']||_0xdf2861['getUser'](_0x58ffea['id'])||_0xdf2861['addUser'](_0x58ffea);const _0x1213f7=_0x572d44['repository']['getRevisions']();let _0x18190c=null;const _0x4d3e06=this['editor']['plugins']['get']('RevisionViewer');_0x4d3e06['adapter']=_0x572d44['adapter'],_0x4d3e06['bind']('isEnabled')['to'](_0x572d44),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x46133f,'isReadOnly',_0x5d7d61=>!_0x5d7d61);for(const _0xbbd419 of _0x1213f7){const _0x4945ac=null===_0xbbd419['creator'];if(_0x4945ac&&_0xbbd419['toVersion']===_0xbbd419['fromVersion'])continue;const _0x424c12=_0xbbd419['toJSON']();_0x4d3e06['addRevisionData'](_0x424c12,(_0x112bb0,_0x37affd,_0x104918)=>{if(_0x4945ac){if(_0x18190c)_0x18190c['_update'](_0x112bb0,_0x37affd);else{if(!_0x37affd){const _0x37b703=_0x104918['toJSON']();_0x37b703['id']=_0x4cbb6f(),_0x572d44['saveRevision'](_0x37b703,_0x104918['toVersion'])['then'](_0x15ad8e=>{_0x18190c=_0x15ad8e;});}}}else _0xbbd419['_update'](_0x112bb0,_0x37affd);});}}},g),_0x379826);}['_enhanceShowRevisionViewerCallback'](){const _0x2cb38c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x554a08=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x58f48e=this['editor']['plugins']['get']('Autosave');await _0x58f48e['save']();}else await _0x554a08['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1d70f4=this['editor']['plugins']['get']('Dialog');_0x1d70f4['isOpen']&&_0x1d70f4['hide']();}const _0x5a433e=this['_getRevisionViewerEditorConfig']();return _0x2cb38c(_0x5a433e)['then'](_0x5766c5=>{return(this['_viewerEditor']=_0x5766c5,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5766c5;})['catch'](_0x569cba=>(console['error'](_0x569cba),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x16c39b=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x16c39b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x357040=this['editor']['plugins']['get']('Annotations');_0x357040['refreshVisibility'](),_0x357040['refreshPositioning']();}})));}['_showRevisionViewer'](_0x48f047){const _0x305f99=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4e8e49=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3725d2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3725d2,_0x48f047)['then'](_0x16b6b5=>(_0x4e8e49['style']['display']='block',_0x305f99['style']['display']='none',_0x16b6b5));}['_closeRevisionViewer'](_0x16aa93){const _0x22cec0=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x22cec0['style']['display']='',_0x16aa93['destroy']();}async['_restoreRevision'](_0x5316dc){const _0x4ae161=this['editor'],_0x2c7a6c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x48c9f1=_0x4ae161['plugins']['get']('RevisionTracker'),_0x27e86a=_0x2c7a6c['repository']['getRevision'](_0x5316dc);let _0x54dbab,_0x4e76d5,_0x566336;try{_0x54dbab=await _0x2c7a6c['getRevisionData'](_0x27e86a),_0x4e76d5=await _0x2c7a6c['getRevisionRootsAttributes'](_0x27e86a);}catch(_0x2b1e18){return void console['error'](_0x2b1e18);}_0x4ae161['model']['change'](_0x97ba37=>{for(const _0x264b93 of Array['from'](_0x4ae161['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x97ba37['removeMarker'](_0x264b93);}),_0x2c7a6c['isReady']=!0x1,_0x4ae161['model']['enqueueChange'](_0x13c405=>{_0x13c405['setSelection'](null),_0x13c405['removeSelectionAttribute'](_0x4ae161['model']['document']['selection']['getAttributeKeys']());const _0x585e1f=Object['keys'](_0x54dbab);for(const _0x1fd143 of _0x4ae161['model']['document']['roots'])'$graveyard'!=_0x1fd143['rootName']&&_0x1fd143['isAttached']()&&!_0x585e1f['includes'](_0x1fd143['rootName'])&&_0x13c405['detachRoot'](_0x1fd143);for(const _0x21e11f of _0x585e1f){let _0x1c1567=_0x4ae161['model']['document']['getRoot'](_0x21e11f);_0x1c1567&&_0x1c1567['isAttached']()||(_0x1c1567=_0x13c405['addRoot'](_0x21e11f));const _0x5e51a0=_0x4e76d5[_0x21e11f],_0x1f7d3a=Object['keys'](_0x5e51a0),_0x26e1d9=_0x54dbab[_0x21e11f];for(const _0x4bb6f4 of _0x1c1567['getAttributeKeys']())_0x1f7d3a['includes'](_0x4bb6f4)||_0x13c405['removeAttribute'](_0x4bb6f4,_0x1c1567);for(const _0x100d89 of _0x1f7d3a)_0x13c405['setAttribute'](_0x100d89,_0x4e76d5[_0x21e11f][_0x100d89],_0x1c1567);_0x13c405['remove'](_0x13c405['createRangeIn'](_0x1c1567)),_0x13c405['insert'](_0x4ae161['data']['parse'](_0x26e1d9,_0x1c1567),_0x1c1567,0x0);}});const _0x273f68=m(_0x4ae161['locale'],'Restored');if(_0x27e86a['name'])_0x566336=-0x1==_0x27e86a['name']['indexOf'](_0x273f68)?_0x273f68+':\x20'+_0x27e86a['name']:_0x27e86a['name'];else _0x566336=_0x273f68+':\x20'+(_0x27e86a['createdAt']['toLocaleDateString'](_0x4ae161['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x27e86a['createdAt']['toLocaleTimeString'](_0x4ae161['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x48c9f1['saveRevision']({'name':_0x566336}),_0x2c7a6c['isReady']=!0x0,_0x4ae161['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1f0895){super(_0x1f0895),this['_revisionViewer']=_0x1f0895['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3ee2d9=this['_revisionsRepository']['_revisions'],_0x366e0d=this['_createRevisionActions'](),_0x15e48d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x3ee2d9,_0x366e0d,this['editor']['config']['get']('revisionHistory.requireRevisionName')),this['_sidebarView']['on']('revisionSelected',this['_handleRevisionSelected']['bind'](this)),this['_sidebarView']['on']('revisionSetName',this['_handleRevisionSetName']['bind'](this)),this['_sidebarView']['bind']('isEnabled')['to'](this['_revisionViewer']),this['_sidebarView']['timePeriodViews']['on']('add',(_0x111da7,_0x44e0cb)=>{_0x44e0cb['revisionViews']['on']('add',(_0x214995,_0x4e4040)=>{_0x4e4040['bind']('isEnabled','isReady')['to'](this['_revisionViewer']);});}),this['_sidebarView']['render'](),this['listenTo'](this['editor']['data'],'ready',this['_handleEditorDataReady']['bind'](this)),this['listenTo'](this['_revisionViewer'],'change:diff',this['_handleDiffChange']['bind'](this)),_0x15e48d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x550886=this['_revisionsRepository']['getRevision'](0x0);if(_0x550886){const _0x390ba5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x550886['id']);this['_revisionViewer']['compare'](_0x550886,_0x390ba5);}}['_handleRevisionSelected'](_0x5090ad,_0x2206ab){const _0x2708de=this['_revisionsRepository']['getRevision'](_0x2206ab['id']),_0x3886bb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2708de['id']);this['_revisionViewer']['compare'](_0x2708de,_0x3886bb);}['_handleRevisionSetName'](_0x3f295a,_0x489917){this['_revisionsRepository']['getRevision'](_0x489917['id'])['setName'](_0x489917['name']);}['_handleDiffChange'](_0x2621e9,_0x2aaefe,_0xdbd4b4){const _0x4a8759=this['_revisionsRepository']['getRevisionsInDiff'](_0xdbd4b4);_0x4a8759['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4a8759),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4a8759[0x0]));}['_createRevisionActions'](){const _0x178db2=this['editor'],_0x7bea4a=g['availableRevisionActions'],_0x10d560=_0x178db2['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x10d560['length'])return _0x10d560['map'](_0x1c493b=>{const _0x1e9575='string'==typeof _0x1c493b?Object['assign']({},_0x7bea4a[_0x1c493b]):_0x1c493b;return _0x1e9575['action']=_0x1e9575['action']['bind'](this,_0x178db2),_0x1e9575['isVisible']&&(_0x1e9575['isVisible']=_0x1e9575['isVisible']['bind'](this,_0x178db2)),_0x1e9575;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5f158f},_0x1e717f)=>{const _0x420675=_0x5f158f['get'](d),_0x4b323a=_0x420675['repository'];let _0xeb54b9=_0x420675['diff']['newRevisionId'],_0x35626b=_0x1e717f['id'];_0x4b323a['getIndex'](_0xeb54b9)>_0x4b323a['getIndex'](_0x35626b)&&([_0xeb54b9,_0x35626b]=[_0x35626b,_0xeb54b9]),_0x420675['compare'](_0xeb54b9,_0x35626b);},'isVisible':({plugins:_0x7df777},_0x2a7fe1)=>{const _0x30005e=_0x7df777['get'](d);return!(_0x30005e['repository']['getRevisionsInDiff'](_0x30005e['diff'])['length']>0x2)&&!_0x2a7fe1['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5bb57f,{id:_0x930725})=>{_0x5bb57f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x930725);},'isVisible':({plugins:_0xd1170d},_0x378ebc)=>!!_0xd1170d['get'](d)['repository']['getLaterVisibleRevision'](_0x378ebc['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x21358c},{id:_0x3e9e10,revisionNameView:_0x14d818})=>{const _0x4f8876=_0x21358c['get'](d),_0x12504e=_0x4f8876['repository']['getEarlierVisibleRevision'](_0x3e9e10);_0x4f8876['compare'](_0x3e9e10,_0x12504e),_0x14d818['focus'](),_0x14d818['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x11eee4,_0x5c1177){super(_0x11eee4),this['_view']=_0x5c1177,this['_toolbarConfig']=ot(_0x11eee4['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x52cbe7){const _0x1b5f6e=this['editor'],_0x336855=this['view'],_0xa326e6=_0x1b5f6e['editing']['view'],_0x27fea7=_0x336855['editable'],_0x38a431=_0xa326e6['document']['getRoot']();_0x27fea7['name']=_0x38a431['rootName'],_0x336855['render']();const _0x25a775=_0x27fea7['element'];this['setEditableElement'](_0x27fea7['name'],_0x25a775),_0x336855['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xa326e6['attachDomRoot'](_0x25a775),this['_elementReplacer']['replace'](_0x52cbe7,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x387700=this['view'],_0x28cd1d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x28cd1d['detachDomRoot'](_0x387700['editable']['name']),_0x387700['destroy']();}['_initToolbar'](){const _0x4d3e25=this['view'];_0x4d3e25['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4d3e25['stickyPanel']['limiterElement']=_0x4d3e25['element'],_0x4d3e25['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x55b5d7})=>_0x55b5d7),_0x4d3e25['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4d3e25['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x560b70,_0x3fb208,_0x3697fe={}){super(_0x560b70),this['stickyPanel']=new lt(_0x560b70),this['toolbar']=new nt(_0x560b70,{'shouldGroupWhenFull':_0x3697fe['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x560b70,_0x3fb208);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3ece45,_0x87d10d){super(_0x87d10d),this['sourceElement']=_0x3ece45,this['model']['document']['createRoot']();const _0x407948=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x407948);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x59f837,_0xc41b1e){const _0x4e37fc=new this(_0x59f837,_0xc41b1e);return await _0x4e37fc['initPlugins'](),await _0x4e37fc['ui']['init'](_0x59f837),await _0x4e37fc['data']['init'](_0x4e37fc['config']['get']('initialData')||''),_0x4e37fc['fire']('ready'),_0x4e37fc;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x5517c8{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3d9bc7){function _0x231b3d(_0x12e2bd){return _0x12e2bd['map'](_0x42abc7=>String['fromCharCode'](_0x42abc7))['join']('');}super(_0x3d9bc7),this['result']='end',_0x3d9bc7[_0x231b3d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x231b3d([0x76,0x69,0x65,0x77])][_0x231b3d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x231b3d([0x61,0x75,0x74,0x6f]),_0x3d9bc7[_0x231b3d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x231b3d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x231b3d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x231b3d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x231b3d([0x6f,0x6b])});}}class k extends _0x5517c8{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x375f67){if(super(_0x375f67),!this['editor']['config']['get']('revisionHistory'))throw new _0x1d0ae3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x38b628=>this['_showRevisionViewer']({..._0x38b628,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5e3751=>this['_closeRevisionViewer'](_0x5e3751)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x398708=>this['_restoreRevision'](_0x398708)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x119f15){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x119f15;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x56d0d0){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x56d0d0);}['getRevision'](_0x1b41f7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1b41f7);}['getRevisions'](_0x55bb4a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x55bb4a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1d70a2=this['editor'],_0x9d5776=_0x8852d7(_0x1d70a2,p),_0x3e5fc8=_0x1d70a2['plugins']['get']('RevisionTracker'),_0x1d7442=_0x1d70a2['plugins']['get']('Users')['users'];return _0x9d5776['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x9d5776['lazyRoots'],(_0x9d5776['plugins']['push'](bt,d,w,class extends _0x5517c8{static get['requires'](){return[d,'Users'];}['init'](){const _0x28dbf3=this['editor']['plugins']['get']('Users');for(const _0x33ae05 of _0x1d7442)_0x33ae05['isAnonymous']||_0x28dbf3['getUser'](_0x33ae05['id'])||_0x28dbf3['addUser'](_0x33ae05);const _0x4c6c17=_0x3e5fc8['repository']['getRevisions']();let _0x5cc366=null;const _0x27ef54=this['editor']['plugins']['get']('RevisionViewer');_0x27ef54['adapter']=_0x3e5fc8['adapter'],_0x27ef54['bind']('isEnabled')['to'](_0x3e5fc8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1d70a2,'isReadOnly',_0x11aa89=>!_0x11aa89);for(const _0x5de5e5 of _0x4c6c17){const _0x399275=null===_0x5de5e5['creator'];if(_0x399275&&_0x5de5e5['toVersion']===_0x5de5e5['fromVersion'])continue;const _0x51d9c5=_0x5de5e5['toJSON']();_0x27ef54['addRevisionData'](_0x51d9c5,(_0x52aea4,_0x3e6104,_0x2e9289)=>{if(_0x399275){if(_0x5cc366)_0x5cc366['_update'](_0x52aea4,_0x3e6104);else{if(!_0x3e6104){const _0x101920=_0x2e9289['toJSON']();_0x101920['id']=_0x3aad70(),_0x3e5fc8['saveRevision'](_0x101920,_0x2e9289['toVersion'])['then'](_0x1843fc=>{_0x5cc366=_0x1843fc;});}}}else _0x5de5e5['_update'](_0x52aea4,_0x3e6104);});}}},g),_0x9d5776);}['_enhanceShowRevisionViewerCallback'](){const _0x56ff3f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5d03b2=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x41493d=this['editor']['plugins']['get']('Autosave');await _0x41493d['save']();}else await _0x5d03b2['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x385178=this['editor']['plugins']['get']('Dialog');_0x385178['isOpen']&&_0x385178['hide']();}const _0x149e8f=this['_getRevisionViewerEditorConfig']();return _0x56ff3f(_0x149e8f)['then'](_0x1a3ed6=>{return(this['_viewerEditor']=_0x1a3ed6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1a3ed6;})['catch'](_0x5714b0=>(console['error'](_0x5714b0),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3d571e=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3d571e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x7b86ec=this['editor']['plugins']['get']('Annotations');_0x7b86ec['refreshVisibility'](),_0x7b86ec['refreshPositioning']();}})));}['_showRevisionViewer'](_0x6d2af4){const _0xde370d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5ce90f=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xefa72b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xefa72b,_0x6d2af4)['then'](_0x12dc16=>(_0x5ce90f['style']['display']='block',_0xde370d['style']['display']='none',_0x12dc16));}['_closeRevisionViewer'](_0xb76ee1){const _0xe1f80b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xe1f80b['style']['display']='',_0xb76ee1['destroy']();}async['_restoreRevision'](_0x4db5e1){const _0x468aaf=this['editor'],_0x2643ac=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4fd3ac=_0x468aaf['plugins']['get']('RevisionTracker'),_0xecde14=_0x2643ac['repository']['getRevision'](_0x4db5e1);let _0x1308ee,_0xafff6c,_0x3e4a70;try{_0x1308ee=await _0x2643ac['getRevisionData'](_0xecde14),_0xafff6c=await _0x2643ac['getRevisionRootsAttributes'](_0xecde14);}catch(_0x458d4b){return void console['error'](_0x458d4b);}_0x468aaf['model']['change'](_0x33e125=>{for(const _0x415598 of Array['from'](_0x468aaf['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x33e125['removeMarker'](_0x415598);}),_0x2643ac['isReady']=!0x1,_0x468aaf['model']['enqueueChange'](_0x8ba8be=>{_0x8ba8be['setSelection'](null),_0x8ba8be['removeSelectionAttribute'](_0x468aaf['model']['document']['selection']['getAttributeKeys']());const _0x16a51c=Object['keys'](_0x1308ee);for(const _0x35808a of _0x468aaf['model']['document']['roots'])'$graveyard'!=_0x35808a['rootName']&&_0x35808a['isAttached']()&&!_0x16a51c['includes'](_0x35808a['rootName'])&&_0x8ba8be['detachRoot'](_0x35808a);for(const _0x419ab9 of _0x16a51c){let _0x5a0529=_0x468aaf['model']['document']['getRoot'](_0x419ab9);_0x5a0529&&_0x5a0529['isAttached']()||(_0x5a0529=_0x8ba8be['addRoot'](_0x419ab9));const _0x431008=_0xafff6c[_0x419ab9],_0x38fe7b=Object['keys'](_0x431008),_0x263987=_0x1308ee[_0x419ab9];for(const _0xe8961d of _0x5a0529['getAttributeKeys']())_0x38fe7b['includes'](_0xe8961d)||_0x8ba8be['removeAttribute'](_0xe8961d,_0x5a0529);for(const _0x5a8706 of _0x38fe7b)_0x8ba8be['setAttribute'](_0x5a8706,_0xafff6c[_0x419ab9][_0x5a8706],_0x5a0529);_0x8ba8be['remove'](_0x8ba8be['createRangeIn'](_0x5a0529)),_0x8ba8be['insert'](_0x468aaf['data']['parse'](_0x263987,_0x5a0529),_0x5a0529,0x0);}});const _0xc8ffbf=m(_0x468aaf['locale'],'Restored');if(_0xecde14['name'])_0x3e4a70=-0x1==_0xecde14['name']['indexOf'](_0xc8ffbf)?_0xc8ffbf+':\x20'+_0xecde14['name']:_0xecde14['name'];else _0x3e4a70=_0xc8ffbf+':\x20'+(_0xecde14['createdAt']['toLocaleDateString'](_0x468aaf['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xecde14['createdAt']['toLocaleTimeString'](_0x468aaf['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4fd3ac['saveRevision']({'name':_0x3e4a70}),_0x2643ac['isReady']=!0x0,_0x468aaf['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};