@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250219.0 → 0.0.0-nightly-next-20250219.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 (183) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/revision-history.js +1 -1
  3. package/ckeditor5-metadata.json +1 -1
  4. package/dist/index.js +6 -6
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +12 -11
  150. package/src/changeitem.js +2 -2
  151. package/src/editor/revisionviewereditor.js +2 -2
  152. package/src/editor/revisionviewereditorui.js +1 -1
  153. package/src/editor/revisionviewereditoruiview.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/revision.js +2 -2
  156. package/src/revisiondiff.js +1 -1
  157. package/src/revisionhistory.js +1 -1
  158. package/src/revisionsrepository.js +1 -1
  159. package/src/revisiontracker.js +1 -1
  160. package/src/revisionviewer.js +1 -1
  161. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  162. package/src/ui/revision/revisionauthorview.js +1 -1
  163. package/src/ui/revision/revisionnameview.js +1 -1
  164. package/src/ui/revision/revisionview.js +2 -2
  165. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  166. package/src/ui/revision/subrevisionview.js +1 -1
  167. package/src/ui/revision/utils.js +1 -1
  168. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  174. package/src/ui/revisionssidebar/utils.js +1 -1
  175. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  176. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  177. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  178. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  179. package/src/utils/common-translations.js +1 -1
  180. package/theme/icons/arrow-down.svg +0 -1
  181. package/theme/icons/arrow-up.svg +0 -1
  182. package/theme/icons/revision-history.svg +0 -1
  183. package/theme/icons/user.svg +0 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x48b3ab,uid as _0x50c4bd,Collection as _0x49a1a4,logWarning as _0x2bbd01,FocusTracker as _0x54b2eb,KeystrokeHandler as _0x2b63c0,scrollViewportToShowTarget as _0x28d2ba,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x1b87bd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4765f8,set as _0xafdb45,unset as _0x51b68a,isEqual as _0x448515}from'lodash-es';import{Plugin as _0x987c78,PendingActions as _0x2e5594,icons as _0x390aaa,Command as _0x51a0f9,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x113f94,getMarkerDomElement as _0x3af131,ConfirmMixin as _0x3c04e2,sanitizeEditorConfig as _0x34e18d}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5066aa,Element as ft,Range as vt,ViewUIElement as _0x16d167,ViewRawElement as _0x70664,ViewEmptyElement as _0x17c524,ViewAttributeElement as _0x346229,ViewContainerElement as _0x5a10e1,Position as gt,ViewText as _0x285b76,ViewElement as _0x1a14c8,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x143daf,injectCssTransitionDisabler as ts,submitHandler as _0x5194aa,LabeledFieldView as nt,createLabeledInputText as _0x2425f4,createDropdown as _0x4d4a7c,ListView as te,ListItemView as _0x4876c6,ButtonView as _0x14e070,MenuBarMenuView as _0x731cc6,MenuBarMenuListView as _0x5e0ef6,MenuBarMenuListItemView as _0xdfa774,MenuBarMenuListItemButtonView as _0x4a6f6a,ContextualBalloon as _0x42e91c,ToolbarSeparatorView as _0x544fb9,IconView as _0x34704c,addListToDropdown as _0x398829,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x3cf74a}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x48b3ab(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5ee0c3){super(),this['id']=_0x5ee0c3['id']||_0x50c4bd(),this['creator']=_0x5ee0c3['creator']||null,this['authors']=_0x5ee0c3['authors']||[],this['diffData']=_0x5ee0c3['diffData']||null,this['toVersion']=_0x5ee0c3['toVersion']||0x0,this['fromVersion']=_0x5ee0c3['fromVersion']||0x0,this['set']('name',_0x5ee0c3['name']||''),this['set']('createdAt',_0x5ee0c3['createdAt']||new Date()),this['set']('attributes',_0x5ee0c3['attributes']||{});}['setName'](_0x22e50d){this['_update']({'name':_0x22e50d});}['setAttribute'](_0x37f34d,_0x17222d){const _0x40643e=_0x4765f8(this['attributes']);_0xafdb45(_0x40643e,_0x37f34d,_0x17222d),this['_update']({'attributes':_0x40643e});}['removeAttribute'](_0x30403d){const _0xbb6fce=_0x4765f8(this['attributes']);_0x51b68a(_0xbb6fce,_0x30403d),this['_update']({'attributes':_0xbb6fce});}['_update'](_0x46c61b,_0x794118=!0x1){let _0x2b3d48=!0x1;const _0x3c456b={'id':this['id']},_0x1b2046=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2d95b0 of _0x1b2046){const _0x5c473a=_0x46c61b[_0x2d95b0];void 0x0!==_0x5c473a&&_0x5c473a!==this[_0x2d95b0]&&(this[_0x2d95b0]=_0x5c473a,_0x3c456b[_0x2d95b0]=_0x5c473a,_0x2b3d48=!0x0);}_0x2b3d48&&(_0x3c456b['authors']&&(_0x3c456b['authorsIds']=_0x3c456b['authors']['map'](_0x5a669f=>_0x5a669f['id']),delete _0x3c456b['authors']),this['fire']('_update',_0x3c456b,_0x794118));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x263ac8=>_0x263ac8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x987c78{['_revisions'];static get['requires'](){return[_0x113f94];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5fd809){super(_0x5fd809),this['_revisions']=new _0x49a1a4();}['afterInit'](){!async function(_0x47dbdb){const _0x3bc3ef=_0x54dac8([0x75,0x42,0x34,0x6f,0x4a,0x73,0x45,0x6b,0x35,0x77,0x43,0x64,0x52,0x41,0x37,0x65,0x6e,0x36,0x48,0x4e,0x59,0x69,0x39,0x4d,0x70,0x55,0x72,0x32,0x31,0x66,0x30,0x47,0x4c,0x62,0x76,0x6c,0x51,0x58,0x71,0x6d,0x63,0x4f,0x79,0x5a,0x50,0x56,0x44,0x74,0x67,0x38,0x46,0x68,0x7a,0x78,0x54,0x61,0x57,0x4b,0x49,0x6a,0x53,0x33]),_0x3891e5=0xeb829,_0xb6269e=0xa41f70c,_0x4329a4=0xa46a8fc^_0xb6269e,_0xbe8345=window[_0x54dac8([0x44,0x61,0x74,0x65])][_0x54dac8([0x6e,0x6f,0x77])](),_0x208c4e=_0x47dbdb[_0x54dac8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3c32b7=new window[(_0x54dac8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x286d3d=>{_0x208c4e[_0x54dac8([0x6f,0x6e,0x63,0x65])](_0x54dac8([0x72,0x65,0x61,0x64,0x79]),_0x286d3d);}),_0x166fe6={[_0x54dac8([0x6b,0x74,0x79])]:_0x54dac8([0x45,0x43]),[_0x54dac8([0x75,0x73,0x65])]:_0x54dac8([0x73,0x69,0x67]),[_0x54dac8([0x63,0x72,0x76])]:_0x54dac8([0x50,0x2d,0x32,0x35,0x36]),[_0x54dac8([0x78])]:_0x54dac8([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]),[_0x54dac8([0x79])]:_0x54dac8([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]),[_0x54dac8([0x61,0x6c,0x67])]:_0x54dac8([0x45,0x53,0x32,0x35,0x36])},_0x5018c6=_0x208c4e[_0x54dac8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54dac8([0x67,0x65,0x74])](_0x54dac8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4d5477(){let _0x1cbd3b,_0x152456=null,_0x2f720b=null;try{if(_0x5018c6==_0x54dac8([0x47,0x50,0x4c]))return _0x54dac8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cbd3b=_0x7b76e3(),!_0x1cbd3b)return _0x54dac8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cbd3b[_0x54dac8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f720b=_0x5e3370(_0x1cbd3b[_0x54dac8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cbd3b[_0x54dac8([0x6a,0x74,0x69])])),await _0x14580f()?_0x19ce0c()?_0x46f9de()?_0x54dac8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17d8ba()?(_0x1cbd3b[_0x54dac8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54dac8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x152456=_0x290c8b(_0x54dac8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cbd3b[_0x54dac8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54dac8([0x74,0x72,0x69,0x61,0x6c])&&(_0x152456=_0x290c8b(_0x54dac8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xef3588()):_0x54dac8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54dac8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54dac8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x34afd4){return _0x54dac8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x46f9de(){const _0x149c30=[_0x54dac8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54dac8([0x74,0x72,0x69,0x61,0x6c])][_0x54dac8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cbd3b[_0x54dac8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xbe8345/0x3e8:0xe10*_0x4329a4;return _0x1cbd3b[_0x54dac8([0x65,0x78,0x70])]<_0x149c30;}function _0x19ce0c(){const _0x1bdb88=_0x1cbd3b[_0x54dac8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1bdb88)return!0x1;if(_0x1bdb88[_0x54dac8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dac8([0x2a])))return!0x0;if(_0x1bdb88[_0x54dac8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dac8([0x52,0x48])))return!0x0;if(_0x1bdb88[_0x54dac8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dac8([0x52,0x52,0x48]))){if(_0x5d553e())return!0x0;if(_0x5e186f()||_0x393320())return!0x0;}return!0x1;}function _0x17d8ba(){const _0x2dd4b8=_0x1cbd3b[_0x54dac8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2dd4b8||0x0==_0x2dd4b8[_0x54dac8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1c7afa}=new URL(window[_0x54dac8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2dd4b8[_0x54dac8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c7afa))return!0x0;const _0x508553=_0x1c7afa[_0x54dac8([0x73,0x70,0x6c,0x69,0x74])](_0x54dac8([0x2e]));return _0x2dd4b8[_0x54dac8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x510c8d=>_0x510c8d[_0x54dac8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54dac8([0x2a])))[_0x54dac8([0x6d,0x61,0x70])](_0x5125ae=>_0x5125ae[_0x54dac8([0x73,0x70,0x6c,0x69,0x74])](_0x54dac8([0x2e])))[_0x54dac8([0x73,0x6f,0x6d,0x65])](_0x3b4ccc=>_0x508553[_0x54dac8([0x65,0x76,0x65,0x72,0x79])]((_0x477b3f,_0x504816)=>_0x3b4ccc[_0x504816]===_0x477b3f||_0x3b4ccc[_0x504816]===_0x54dac8([0x2a])));}function _0xef3588(){return _0x152456&&_0x2f720b?new window[(_0x54dac8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44a636,_0x44b68f)=>{_0x152456[_0x54dac8([0x74,0x68,0x65,0x6e])](_0x44a636,_0x44b68f),_0x2f720b[_0x54dac8([0x74,0x68,0x65,0x6e])](_0x5008b1=>{_0x5008b1!=_0x54dac8([0x56,0x61,0x6c,0x69,0x64])&&_0x44a636(_0x5008b1);},_0x44b68f);}):_0x152456||_0x2f720b||_0x54dac8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5e3370(_0x28f17f,_0x597060){return new window[(_0x54dac8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53ba27=>{if(_0x51094d())return _0x53ba27(_0x54dac8([0x56,0x61,0x6c,0x69,0x64]));_0x5d812a(),_0x208c4e[_0x54dac8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54dac8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x413594=!0x1;const _0x3ed042=_0x50c4bd();function _0xc0842f(_0x2d0ad3){return!!_0x2d0ad3&&(typeof _0x2d0ad3===_0x54dac8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d0ad3===_0x54dac8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d0ad3[_0x54dac8([0x74,0x68,0x65,0x6e])]===_0x54dac8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d0ad3[_0x54dac8([0x63,0x61,0x74,0x63,0x68])]===_0x54dac8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc0a7ec(_0xd58b4d){_0xf92bd1(_0xd58b4d)[_0x54dac8([0x74,0x68,0x65,0x6e])](_0x5ecab9=>{if(!_0x5ecab9||_0x5ecab9[_0x54dac8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54dac8([0x6f,0x6b]))return _0x54dac8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44c60c(_0x254b92(_0x3ed042+_0x597060))!=_0x5ecab9[_0x54dac8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54dac8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54dac8([0x56,0x61,0x6c,0x69,0x64]);})[_0x54dac8([0x74,0x68,0x65,0x6e])](_0x1690c7=>(_0x18bc6b(),_0x1690c7),()=>{const _0x27b5f0=_0x50e20f();return null==_0x27b5f0?(_0x18bc6b(),_0x54dac8([0x56,0x61,0x6c,0x69,0x64])):_0x54dac8(_0xbe8345-_0x27b5f0>(0x2e4d730c^_0xb6269e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54dac8([0x74,0x68,0x65,0x6e])](_0x53ba27)[_0x54dac8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x53ba27(_0x54dac8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x33e374=0xa77198c^_0xb6269e;function _0x18bc6b(){const _0x34351c=_0x54dac8([0x6c,0x6c,0x63,0x74,0x2d])+_0x44c60c(_0x254b92(_0x28f17f)),_0x4d890b=_0x137117(_0x44c60c(window[_0x54dac8([0x4d,0x61,0x74,0x68])][_0x54dac8([0x63,0x65,0x69,0x6c])](_0xbe8345/_0x33e374)));window[_0x54dac8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54dac8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34351c,_0x4d890b);}function _0x50e20f(){const _0x4b52ab=_0x54dac8([0x6c,0x6c,0x63,0x74,0x2d])+_0x44c60c(_0x254b92(_0x28f17f)),_0x49b959=window[_0x54dac8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54dac8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b52ab);return _0x49b959?window[_0x54dac8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x137117(_0x49b959),0x10)*_0x33e374:null;}function _0xf92bd1(_0x5d1457){return new window[(_0x54dac8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21448c,_0x1ddb89)=>{_0x5d1457[_0x54dac8([0x74,0x68,0x65,0x6e])](_0x21448c,_0x1ddb89),window[_0x54dac8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ddb89,0xa4023cc^_0xb6269e);});}}_0x208c4e[_0x54dac8([0x6f,0x6e])](_0x54dac8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b2545,_0x3a61c0)=>{if(_0x3a61c0[0x0]!=_0x28f17f)return _0x53ba27(_0x54dac8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3a61c0[0x1]={..._0x3a61c0[0x1],[_0x54dac8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ed042};},{[_0x54dac8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54dac8([0x68,0x69,0x67,0x68])}),_0x208c4e[_0x54dac8([0x6f,0x6e])](_0x54dac8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1e5972=>{_0xc0842f(_0x1e5972[_0x54dac8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x413594=!0x0,_0xc0a7ec(_0x1e5972[_0x54dac8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54dac8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54dac8([0x6c,0x6f,0x77])}),_0x3c32b7[_0x54dac8([0x74,0x68,0x65,0x6e])](()=>{_0x413594||_0x53ba27(_0x54dac8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x51094d(){return _0x208c4e[_0x54dac8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54dac8([0x76,0x69,0x65,0x77])][_0x54dac8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54dac8([0x61,0x75,0x74,0x6f]);}function _0x5d812a(){_0x208c4e[_0x54dac8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54dac8([0x76,0x69,0x65,0x77])][_0x54dac8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54dac8([0x61,0x75,0x74,0x6f]);}}function _0x290c8b(_0x4656c3){const _0x17718c=[new window[(_0x54dac8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5edf92=>setTimeout(_0x5edf92,0xa48c9c0^_0xb6269e)),_0x3c32b7[_0x54dac8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54dac8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50dd94=>{const _0x51b72e=0xa41f70b^_0xb6269e,_0x1a684f=_0x47dbdb[_0x54dac8([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3be8a6(){_0x1a684f[_0x54dac8([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x51b72e&&_0x50dd94();}_0x3be8a6(),_0x1a684f[_0x54dac8([0x6f,0x6e])](_0x54dac8([0x61,0x64,0x64]),_0x3be8a6);})),new window[(_0x54dac8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ff0d9=>{function _0x49b20c(){for(const _0x4f4c5e in window)if(window[_0x54dac8([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x54dac8([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4f4c5e))&&window[_0x4f4c5e]==_0x3891e5)return _0x4ff0d9();_0x208c4e[_0x54dac8([0x73,0x74,0x61,0x74,0x65])]!=_0x54dac8([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x54dac8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49b20c,0xa41e484^_0xb6269e);}_0x4517e5(_0x54dac8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x49b20c();})];return window[_0x54dac8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54dac8([0x72,0x61,0x63,0x65])](_0x17718c)[_0x54dac8([0x74,0x68,0x65,0x6e])](()=>_0x4656c3);}async function _0x51c907(){if(await _0x3c32b7,_0x4517e5(_0x54dac8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x382985=_0x47dbdb[_0x54dac8([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x42af80=_0x47dbdb[_0x54dac8([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])](_0x382985[_0x54dac8([0x69,0x64])]),_0x372197=_0x12c884(_0x54dac8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x372197[_0x54dac8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x382985['id'],_0x42af80?_0x42af80['id']:null,!0x0),_0x372197[_0x54dac8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x54dac8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x372197[_0x54dac8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x372197[_0x54dac8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5b5307,void(_0x372197[_0x54dac8([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5b5307);}if(_0x4517e5(_0x54dac8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x48bb69=_0x12c884(_0x54dac8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x48bb69[_0x54dac8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x54dac8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x48bb69[_0x54dac8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x48bb69[_0x54dac8([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5b5307,_0x48bb69[_0x54dac8([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5b5307;}_0x208c4e[_0x54dac8([0x6d,0x6f,0x64,0x65,0x6c])][_0x54dac8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5b5307,_0x208c4e[_0x54dac8([0x6d,0x6f,0x64,0x65,0x6c])][_0x54dac8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5b5307,_0x208c4e[_0x54dac8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54dac8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5d553e(){return _0x4517e5(_0x54dac8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x12c884(_0x54dac8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x54dac8([0x73,0x74,0x61,0x74,0x65])]==_0x54dac8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5e186f(){return _0x4517e5(_0x54dac8([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 _0x393320(){return _0x4517e5(_0x54dac8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x246417(_0x5d1356){const _0x3c71a9=_0x5a5a17();_0x208c4e[_0x3c71a9]=_0x54dac8([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])+_0x5d1356,_0x5d1356[_0x54dac8([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x54dac8([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5a5a17()]=_0x3891e5),_0x5d1356!=_0x54dac8([0x56,0x61,0x6c,0x69,0x64])&&_0x51c907();}function _0x5a5a17(){const _0x3a2d4c=window[_0x54dac8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54dac8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54dac8([0x6e,0x6f,0x77])]())[_0x54dac8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54dac8([0x2e]),'');let _0x216b0d=_0x54dac8([0x75]);for(let _0x564f95=0x0;_0x564f95<_0x3a2d4c[_0x54dac8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x564f95+=0x2){let _0x5e56a2=window[_0x54dac8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3a2d4c[_0x54dac8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x564f95,_0x564f95+0x2));_0x5e56a2>=_0x3bc3ef[_0x54dac8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e56a2-=_0x3bc3ef[_0x54dac8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x216b0d+=_0x3bc3ef[_0x5e56a2];}return _0x216b0d;}function _0x7b76e3(){const _0x4bf9b6=_0x5018c6[_0x54dac8([0x73,0x70,0x6c,0x69,0x74])](_0x54dac8([0x2e]));if(0x3!=_0x4bf9b6[_0x54dac8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d8ac6(_0x4bf9b6[0x1]);function _0x1d8ac6(_0x396423){const _0x277ca2=_0xc7a259(_0x396423);return _0x277ca2&&_0x32c42e()?_0x277ca2:null;function _0x32c42e(){const _0x45f112=_0x277ca2[_0x54dac8([0x6a,0x74,0x69])],_0x2ed424=window[_0x54dac8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45f112[_0x54dac8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x45f112[_0x54dac8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x42d40b={..._0x277ca2,[_0x54dac8([0x6a,0x74,0x69])]:_0x45f112[_0x54dac8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x45f112[_0x54dac8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x42d40b[_0x54dac8([0x76,0x63])],_0x254b92(_0x42d40b)==_0x2ed424;}}}async function _0x14580f(){let _0x56a72a=!0x0;try{const _0x3ea942=_0x5018c6[_0x54dac8([0x73,0x70,0x6c,0x69,0x74])](_0x54dac8([0x2e])),[_0x3691dc,_0x1bd281,_0xe6f0b7]=_0x3ea942;return _0x3647ab(_0x3691dc),await _0x3113a3(_0x3691dc,_0x1bd281,_0xe6f0b7),_0x56a72a;}catch(_0x4b91c2){return!0x1;}function _0x3647ab(_0x3cfd83){const _0x599760=_0xc7a259(_0x3cfd83);_0x599760&&_0x599760[_0x54dac8([0x61,0x6c,0x67])]==_0x54dac8([0x45,0x53,0x32,0x35,0x36])||(_0x56a72a=!0x1);}async function _0x3113a3(_0xe33c2d,_0x347312,_0xeb1561){const _0x429f80=window[_0x54dac8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54dac8([0x66,0x72,0x6f,0x6d])](_0x54592f(_0xeb1561),_0x10f580=>_0x10f580[_0x54dac8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x204ca8=new window[(_0x54dac8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54dac8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xe33c2d+_0x54dac8([0x2e])+_0x347312),_0x81b9de=window[_0x54dac8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54dac8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x81b9de)return;const _0x4b544d=await _0x81b9de[_0x54dac8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54dac8([0x6a,0x77,0x6b]),_0x166fe6,{[_0x54dac8([0x6e,0x61,0x6d,0x65])]:_0x54dac8([0x45,0x43,0x44,0x53,0x41]),[_0x54dac8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54dac8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54dac8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x81b9de[_0x54dac8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54dac8([0x6e,0x61,0x6d,0x65])]:_0x54dac8([0x45,0x43,0x44,0x53,0x41]),[_0x54dac8([0x68,0x61,0x73,0x68])]:{[_0x54dac8([0x6e,0x61,0x6d,0x65])]:_0x54dac8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4b544d,_0x429f80,_0x204ca8)||(_0x56a72a=!0x1);}}function _0xc7a259(_0xdc2d4d){return _0xdc2d4d[_0x54dac8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54dac8([0x65,0x79]))?JSON[_0x54dac8([0x70,0x61,0x72,0x73,0x65])](_0x54592f(_0xdc2d4d)):null;}function _0x54592f(_0x436d75){return window[_0x54dac8([0x61,0x74,0x6f,0x62])](_0x436d75[_0x54dac8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54dac8([0x2b]))[_0x54dac8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54dac8([0x2f])));}function _0x254b92(_0x5660d2){let _0x3ab893=0x1505;function _0x21e366(_0x801e85){for(let _0x2de732=0x0;_0x2de732<_0x801e85[_0x54dac8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2de732++){const _0x200cff=_0x801e85[_0x54dac8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2de732);_0x3ab893=(_0x3ab893<<0x5)+_0x3ab893+_0x200cff,_0x3ab893&=_0x3ab893;}}function _0x303f2a(_0x15abd5){Array[_0x54dac8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15abd5)?_0x15abd5[_0x54dac8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x303f2a):_0x15abd5&&typeof _0x15abd5==_0x54dac8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54dac8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15abd5)[_0x54dac8([0x73,0x6f,0x72,0x74])]()[_0x54dac8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38db26,_0x3e3907])=>{_0x21e366(_0x38db26),_0x303f2a(_0x3e3907);}):_0x21e366(window[_0x54dac8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15abd5));}return _0x303f2a(_0x5660d2),_0x3ab893>>>0x0;}function _0x44c60c(_0x18c7dd){return _0x18c7dd[_0x54dac8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54dac8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54dac8([0x30]));}function _0x137117(_0x4eb65f){return _0x4eb65f[_0x54dac8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54dac8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54dac8([0x6a,0x6f,0x69,0x6e])]('');}function _0x4517e5(_0x415422){return _0x208c4e[_0x54dac8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54dac8([0x68,0x61,0x73])](_0x415422);}function _0x12c884(_0x3ce42a){return _0x208c4e[_0x54dac8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54dac8([0x67,0x65,0x74])](_0x3ce42a);}function _0x5b5307(){}function _0x54dac8(_0x1d7ea1){return _0x1d7ea1['map'](_0x450905=>String['fromCharCode'](_0x450905))['join']('');}_0x246417(await _0x4d5477());}(this);}['createRevision'](_0x2ed432){const _0x49a6d9=this['editor']['plugins']['get']('Users');return new a({'id':_0x2ed432['id'],'name':_0x2ed432['name'],'creator':_0x2ed432['creatorId']?_0x49a6d9['getUser'](_0x2ed432['creatorId']):null,'diffData':_0x2ed432['diffData']||_0x2ed432['data'],'authors':_0x2ed432['authorsIds']['map'](_0x1bedd6=>_0x49a6d9['getUser'](_0x1bedd6)),'createdAt':new Date(_0x2ed432['createdAt']),'attributes':_0x2ed432['attributes'],'fromVersion':_0x2ed432['fromVersion'],'toVersion':_0x2ed432['toVersion']});}['addRevision'](_0x28f71c,_0x41a98d=0x0){this['_revisions']['add'](_0x28f71c,_0x41a98d);}['getRevision'](_0x1c4a46){return this['_revisions']['get'](_0x1c4a46);}['getRevisions'](_0x2be6df={'toJSON':!0x1}){const _0x2167b9=Array['from'](this['_revisions']);return _0x2167b9['reverse'](),_0x2be6df['toJSON']?_0x2167b9['map'](_0x86d7cb=>_0x86d7cb['toJSON']()):_0x2167b9;}['getIndex'](_0x2e167e){return this['_revisions']['getIndex'](_0x2e167e);}['getEarlierVisibleRevision'](_0x30586c){const [,_0x66b17]=this['getRevisionsIterator'](_0x30586c,{'direction':'earlier'});return _0x66b17;}['getLaterVisibleRevision'](_0x40062f){const [,_0x2ee613]=this['getRevisionsIterator'](_0x40062f,{'direction':'later'});return _0x2ee613;}['getRevisionsInDiff'](_0x38de46){const _0x320553=[];for(const _0x155e20 of this['getRevisionsIterator'](_0x38de46['newRevisionId']))if(_0x320553['push'](_0x155e20),_0x155e20['id']===_0x38de46['oldRevisionId'])break;return _0x320553;}*['getRevisionsIterator'](_0xed0bd4,{direction:_0x2b1a18='earlier',filter:_0x114041=()=>!0x0}={}){const _0x1ab64b='earlier'===_0x2b1a18?0x1:-0x1;let _0x261b49=this['_revisions']['get'](_0xed0bd4),_0x2d27e5=this['getIndex'](_0x261b49);for(yield _0x261b49;_0x261b49;){if(_0x2d27e5+=_0x1ab64b,_0x261b49=this['getRevision'](_0x2d27e5),!_0x261b49)return;_0x114041(_0x261b49)&&(yield _0x261b49);}}}function m(_0x3803a9,_0x2c51bb,_0x35cd9d){const t=_0x3803a9['t'];switch(_0x2c51bb){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'},_0x35cd9d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x35cd9d);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 P={'c':_0x5a10e1,'a':_0x346229,'e':_0x17c524,'r':_0x70664,'u':_0x16d167};class l extends _0x987c78{['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[_0x113f94,j,_0x2e5594];}constructor(_0x5dfe93){super(_0x5dfe93),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 _0x13db70=_0x50c4bd();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x13db70},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 _0x250366=this['repository']['getRevision'](0x0),_0x3da37a=_0x250366&&null===_0x250366['creator']?_0x250366:null;if(this['_continueCurrentRevision']=!!_0x3da37a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x32f78d=this['_source']['getCurrentRevisionId'](),_0x364304=this['repository']['getRevision'](_0x32f78d);if(_0x364304)this['_startingVersion']=_0x364304['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x101fd4=this['_source']['history']['_operations']['find'](_0x5110ed=>!_0x5110ed['_isInit']),_0x4d0616=_0x101fd4?_0x101fd4['baseVersion']:this['_source']['history']['version'];_0x250366?(_0x250366['toVersion']<_0x4d0616&&_0x250366['_update']({'toVersion':_0x4d0616}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3da37a['id'],this['_startingVersion']=_0x3da37a['fromVersion']):(this['_startingVersion']=_0x250366['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4d0616,this['_continueCurrentRevision']=!0x1);}}else _0x3da37a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3da37a['toVersion'],this['editor']['model']['document']['history']['version']),_0x3da37a['fromVersion']===_0x3da37a['toVersion']?(0x0!==_0x3da37a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3da37a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3da37a['id'],this['_startingVersion']=_0x3da37a['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',_0x220ffa=>!_0x220ffa),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43936d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x14eddc;for(const _0x34112a in _0x43936d){const _0x990b8=_0x34112a,_0x18bf9b=_0x43936d[_0x990b8];if('revisionHistoryLicenseKeyValid'==_0x18bf9b||'revisionHistoryLicenseKeyInvalid'==_0x18bf9b||'revisionHistoryLicenseKeyExpired'==_0x18bf9b||'revisionHistoryLicenseKeyDomainLimit'==_0x18bf9b||'revisionHistoryLicenseKeyNotAllowed'==_0x18bf9b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x18bf9b||'revisionHistoryLicenseKeyTrialLimit'==_0x18bf9b||'revisionHistoryLicenseKeyUsageLimit'==_0x18bf9b){delete _0x43936d[_0x990b8],_0x14eddc=_0x18bf9b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x14eddc&&_0x43936d['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x14eddc&&_0x43936d['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x14eddc&&_0x43936d['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x14eddc&&_0x43936d['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x14eddc&&_0x43936d['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x14eddc&&_0x43936d['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x14eddc&&_0x43936d['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xf3ca72=this['repository']['getRevision'](0x0),_0x16d1ea=await this['getRevisionDocumentData'](_0xf3ca72),_0x1ac79d=await this['getRevisionRootsAttributes'](_0xf3ca72);this['_replaceEditorDataWithRevisionData'](_0x16d1ea,_0x1ac79d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x105ae0){this['_source']=_0x105ae0;}async['update'](){const _0x1b6da1=await this['_source']['getLatestVersion']();if(_0x1b6da1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2166eb=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b6da1});_0x2166eb['authors']=_0x2166eb['authorsIds']['map'](_0x364dc6=>this['editor']['plugins']['get']('Users')['getUser'](_0x364dc6)),this['currentRevision']['_update'](_0x2166eb);}}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'](_0xd1325e={},_0x1324a8=null){const _0x1359e2=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1324a8>this['currentRevision']['toVersion']&&(_0x1324a8=null),null===_0x1324a8&&(_0x1324a8=await this['_source']['getLatestVersion']());const _0x1a37f2=this['_getFromVersion'](_0x1324a8),_0x630011=this['buildRevisionData']({'from':_0x1a37f2,'to':_0x1324a8});if(this['currentRevision']['toVersion']<_0x1324a8){const _0x3a4c6a=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1324a8,'to':_0x1324a8});_0x3a4c6a['authors']=[],_0x3a4c6a['authorsIds']=[],_0x3a4c6a['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3a4c6a,!0x0),delete _0x3a4c6a['authors'],_0x1359e2['push'](_0x3a4c6a);}_0xd1325e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xd1325e['name']=_0xd1325e['name']||null,_0xd1325e['id']=_0xd1325e['id']||_0x50c4bd(),_0xd1325e={..._0xd1325e,..._0x630011};const _0x43d347=this['addRevisionData'](_0xd1325e);_0x1359e2['push'](_0xd1325e);const _0x463a58=this['repository']['getIndex'](_0x43d347);if(0x0!==_0x463a58){const _0x5dfb63=this['repository']['getRevision'](_0x463a58-0x1);if(_0x5dfb63['fromVersion']!==_0x1324a8){const _0x2a9130=this['_revisionDataBuilder']['getData'](_0x1324a8,_0x5dfb63['toVersion']),_0x409bd7={'id':_0x5dfb63['id'],'diffData':_0x2a9130['diffData'],'authorsIds':_0x2a9130['authorsIds'],'authors':_0x2a9130['authorsIds']['map'](_0x3c09fc=>this['editor']['plugins']['get']('Users')['getUser'](_0x3c09fc)),'fromVersion':_0x1324a8};_0x5dfb63===this['currentRevision']&&(_0x409bd7['createdAt']=new Date(_0xd1325e['createdAt']['getTime']()+0xa)),_0x5dfb63['_update'](_0x409bd7,!0x0),delete _0x409bd7['authors'],_0x1359e2['push'](_0x409bd7);}}if(this['adapter']){for(const _0x4ed339 of _0x1359e2)this['_bufferUpdate'](_0x4ed339['id'],_0x4ed339,!0x0);this['sendBufferedUpdates']();}return _0x43d347;}['addRevisionData'](_0x579297){const _0x14911a=this['repository']['createRevision'](_0x579297);return this['adapter']&&_0x14911a['on']('_update',(_0x4962f7,_0x20984a,_0x4621ce)=>{_0x4621ce||(this['_bufferUpdate'](_0x20984a['id'],_0x20984a,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x14911a,this['_findInsertionIndex'](_0x14911a)),_0x14911a;}async['getRevisionDocumentData'](_0x901afc){await this['_loadRevisionData'](_0x901afc);const _0x143add={};for(const _0x5a525d in _0x901afc['diffData']){if(_0x901afc['diffData'][_0x5a525d]['attachChange']&&!_0x901afc['diffData'][_0x5a525d]['attachChange']['isAttached'])continue;const _0x2510cb=this['_removeRevisionMarkers'](JSON['parse'](_0x901afc['diffData'][_0x5a525d]['insertions'])),_0x3d069f=this['editor']['editing']['view']['document'],_0x5adc05=new _0x5066aa(_0x3d069f,_0x2510cb['map'](_0x439c36=>C(_0x439c36,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x143add[_0x5a525d]=this['editor']['data']['processor']['toData'](_0x5adc05),this['editor']['data']['processor']['useFillerType']('default');}return _0x143add;}async['getRevisionRootsAttributes'](_0x4c6deb){await this['_loadRevisionData'](_0x4c6deb);const _0x4c83c1={};for(const _0x525210 in _0x4c6deb['diffData'])_0x4c6deb['diffData'][_0x525210]['attachChange']&&!_0x4c6deb['diffData'][_0x525210]['attachChange']['isAttached']||(_0x4c83c1[_0x525210]=_0x4c6deb['diffData'][_0x525210]['attributesAfter']||{});return _0x4c83c1;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x375962=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x20c578=0x0;_0x20c578<_0x375962['length'];_0x20c578++){const _0x2eb897=_0x375962[_0x20c578];let _0x3b359d=!0x1;for(const _0x5f235d of Object['keys'](_0x2eb897))void 0x0===_0x2eb897[_0x5f235d]?delete _0x2eb897[_0x5f235d]:'id'!==_0x5f235d&&(_0x3b359d=!0x0);_0x3b359d||(_0x375962[_0x20c578]=null);}if(_0x375962=_0x375962['filter'](_0x4ad4ea=>null!==_0x4ad4ea),!_0x375962['length'])return;for(let _0x273949=0x0;_0x273949<_0x375962['length'];_0x273949++){const _0x1c484=_0x375962[_0x273949];void 0x0!==_0x1c484['fromVersion']&&void 0x0===_0x1c484['toVersion']&&(_0x1c484['toVersion']=this['repository']['getRevision'](_0x1c484['id'])['toVersion']),void 0x0!==_0x1c484['toVersion']&&void 0x0===_0x1c484['fromVersion']&&(_0x1c484['fromVersion']=this['repository']['getRevision'](_0x1c484['id'])['fromVersion']);}const _0x5c14ef=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x375962,_0x5c14ef)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x35e8c9=>{if(_0x35e8c9){for(const _0x1833eb of _0x35e8c9)this['setRevisionData']({'id':_0x1833eb['id'],'createdAt':_0x1833eb['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3de1e9,_0x300bb7){let _0x4f7840=this['editor']['config']['get']('initialData'),_0x5f0765=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4f7840){_0x4f7840={};for(const _0x53bd29 of this['editor']['model']['document']['getRootNames']())_0x4f7840[_0x53bd29]='';}if('string'==typeof _0x4f7840&&(_0x4f7840={'main':_0x4f7840}),void 0x0===_0x5f0765){_0x5f0765={};for(const _0x30698a of this['editor']['model']['document']['getRootNames']())_0x5f0765[_0x30698a]={};}let _0x595315=!0x1;const _0x367494=Object['keys'](_0x4f7840),_0x48f3a5=Object['keys'](_0x3de1e9);for(const _0x52a0d7 of _0x367494){if(_0x4f7840[_0x52a0d7]!==_0x3de1e9[_0x52a0d7]&&''!==_0x4f7840[_0x52a0d7]['trim']()){_0x595315=!0x0;break;}if(!_0x448515(_0x5f0765[_0x52a0d7],_0x300bb7[_0x52a0d7])&&Object['keys'](_0x5f0765[_0x52a0d7])['length']>0x0){_0x595315=!0x0;break;}}_0x595315||(_0x595315=_0x48f3a5['some'](_0x40a405=>!this['editor']['model']['document']['getRoot'](_0x40a405))),_0x595315&&_0x2bbd01('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4f7840,'editorRootsAttributes':_0x5f0765,'revisionData':_0x3de1e9,'revisionRootsAttributes':_0x300bb7}),this['editor']['config']['set']('initialData',_0x3de1e9),this['editor']['config']['set']('rootsAttributes',_0x300bb7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x30a7cb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x30a7cb['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2315b3){const _0x2ffba7=this['repository']['getRevisions']();_0x2ffba7['reverse']();let _0x868d41=0x0;for(;_0x868d41<_0x2ffba7['length'];){const _0x2f39be=_0x2ffba7[_0x868d41];if(_0x2f39be===this['currentRevision']){_0x868d41++;continue;}if(_0x2f39be['id']===this['_initialRevisionId'])break;const _0x4ebeb3=_0x2315b3['toVersion']-_0x2f39be['toVersion']||_0x2315b3['fromVersion']-_0x2f39be['fromVersion'];if(_0x4ebeb3>0x0)break;if(_0x4ebeb3<0x0)_0x868d41++;else{if(!_0x2315b3['creator']&&_0x2f39be['creator'])break;if(_0x2f39be['creator']||!_0x2315b3['creator']){if(_0x2315b3['createdAt']>_0x2f39be['createdAt'])break;_0x868d41++;}else _0x868d41++;}}return _0x868d41;}['setRevisionData'](_0xc39af){const _0x5f0740=this['repository']['getRevision'](_0xc39af['id']);if(_0xc39af['createdAt']&&(_0xc39af['createdAt']=new Date(_0xc39af['createdAt'])),_0xc39af['authorsIds']){const _0xc271d8=this['editor']['plugins']['get']('Users');_0xc39af['authors']=_0xc39af['authorsIds']['map'](_0x2179d2=>_0xc271d8['getUser'](_0x2179d2));}_0x5f0740['_update'](_0xc39af,!0x0);}['buildRevisionData']({revision:_0x8b1575=null,from:_0x5756b9=null,to:_0x5e0bfc=null}){_0x5756b9=null!==_0x5756b9?_0x5756b9:_0x8b1575['fromVersion'],_0x5e0bfc=null!==_0x5e0bfc?_0x5e0bfc:_0x8b1575['toVersion'];const _0x5f11d5=this['_revisionDataBuilder']['getData'](_0x5756b9,_0x5e0bfc),_0x484270={'diffData':_0x5f11d5['diffData'],'authorsIds':_0x5f11d5['authorsIds'],'fromVersion':_0x5756b9,'toVersion':_0x5e0bfc};if(!_0x8b1575||_0x5e0bfc!==_0x8b1575['toVersion']){const _0x5031df=_0x5e0bfc-0x1,_0xf736be=this['_source']['history']['getOperation'](_0x5031df);_0x484270['createdAt']=_0xf736be&&_0xf736be['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5756b9===this['_loadedStateData']['fromVersion']){for(const _0x342201 of this['_loadedStateData']['authors'])_0x484270['authorsIds']['includes'](_0x342201['id'])||_0x484270['authorsIds']['push'](_0x342201['id']);}return _0x484270;}['_loadRevisionData'](_0x35af12){if(!_0x35af12||_0x35af12['diffData'])return Promise['resolve']();{const _0x2eb1f3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2eb1f3,'revisionId':_0x35af12['id']})['then'](_0x1b03ea=>{_0x35af12['diffData']=_0x1b03ea['diffData'];});}}['_bufferUpdate'](_0x3f5c94,_0x4f4212,_0x3cce7d){if(this['_bufferedUpdates']['has'](_0x3f5c94)){const _0x1cabaa=this['_bufferedUpdates']['get'](_0x3f5c94);_0x4f4212=_0x3cce7d?{..._0x1cabaa,..._0x4f4212}:{..._0x4f4212,..._0x1cabaa};}this['_bufferedUpdates']['set'](_0x3f5c94,_0x4f4212);}['_getFromVersion'](_0x22c8e5){const _0x4f8b50=this['repository']['getRevisions']();_0x4f8b50['reverse'](),_0x4f8b50['shift']();const _0x113e52=_0x4f8b50['find'](_0x4e67da=>_0x4e67da['toVersion']<=_0x22c8e5)['toVersion'];return _0x113e52<this['_startingVersion']?this['_startingVersion']:_0x113e52;}['_createInitialRevision'](_0x260d55){const _0x3a189f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3a189f)this['_initialRevisionId']=_0x3a189f['id'];else{const _0x2f6484=!this['editor']['model']['document']['roots']['find'](_0x1d0838=>this['editor']['model']['hasContent'](_0x1d0838)),_0x1654bf=this['editor']['plugins']['get']('Users')['me']['id'],_0x12b3f0=m(this['editor']['locale'],_0x2f6484?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x260d55,'to':_0x260d55,'id':this['_initialRevisionId'],'name':_0x12b3f0,'creatorId':_0x1654bf});}}['_createCurrentRevision'](_0x3bf1b7){const _0x5c3cc4=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5c3cc4),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3bf1b7,'to':_0x3bf1b7,'id':_0x5c3cc4,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5a465b,from:_0x267470,to:_0x1d1782,creatorId:_0x27ee9b,id:_0x4692da}){const _0x28cfa7=this['buildRevisionData']({'from':_0x267470,'to':_0x1d1782});_0x28cfa7['name']=_0x5a465b,_0x28cfa7['creatorId']=_0x27ee9b,_0x28cfa7['id']=_0x4692da;const _0x4acd60=this['addRevisionData'](_0x28cfa7);return this['adapter']&&this['_bufferUpdate'](_0x28cfa7['id'],_0x28cfa7,!0x0),_0x4acd60;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2b5f4f){return(_0x2b5f4f=_0x2b5f4f['filter'](_0x384291=>!_0x384291['name']||'revision-start'!==_0x384291['name']&&'revision-end'!==_0x384291['name']))['forEach'](_0x21d754=>{'string'!=typeof _0x21d754&&(_0x21d754['children']=this['_removeRevisionMarkers'](_0x21d754['children']),_0x21d754['attributes']=_0x21d754['attributes']['filter'](_0x499c73=>!_0x499c73[0x0]['startsWith']('data-revision-')));}),_0x2b5f4f;}}function C(_0x246af9,_0x404c89){const _0x33cbb9=_0x404c89['editing']['view']['document'];if('string'==typeof _0x246af9)return new _0x285b76(_0x33cbb9,_0x246af9);{const _0x4be2c9=_0x246af9['children']['map'](_0x5d19ae=>C(_0x5d19ae,_0x404c89));return new(P[_0x246af9['type']]||_0x1a14c8)(_0x33cbb9,_0x246af9['name'],_0x246af9['attributes'],_0x4be2c9);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1a8676){this['editor']=_0x1a8676,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'](_0x362006){this['source']=_0x362006;const _0x4aaaf4=new Map(),_0x25df3d=new Map(),_0x10eb2f=this['editor']['model']['document']['roots']['map'](_0x2af767=>_0x2af767['rootName']);for(const _0x34550b of _0x10eb2f){const _0x4b0f52=this['editor']['model']['document']['getRoot'](_0x34550b),_0x248d00=T(_0x4b0f52);_0x4aaaf4['set'](_0x34550b,_0x248d00),_0x25df3d['set'](_0x34550b,Object['fromEntries'](_0x4b0f52['getAttributes']()));}const _0x579ac0=Array['from'](this['editor']['model']['markers'])['map'](_0x5bd7fb=>[_0x5bd7fb['name'],_0x5bd7fb['getRange']()]),_0x2d82ee=this['source']['version'];this['_saveMetaData'](_0x2d82ee,_0x4aaaf4,_0x579ac0,_0x25df3d),this['_startingRevisionId']=this['_revisionId'];const _0x260861=new Map(),_0x426fe3=new Map();for(const _0x507425 of _0x10eb2f){const _0xa45bf8=F(_0x507425);_0x260861['set'](_0x507425,_0xa45bf8),_0x426fe3['set'](_0x507425,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x260861,[],_0x426fe3);}['getData'](_0x4584f8,_0x137525){if(this['_lastFrom']===_0x4584f8&&this['_lastTo']<=_0x137525)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x137525,!0x0);else{if(!this['_savedMetaData']['has'](_0x4584f8)){const _0x18954d=this['_getPreviousFrom'](_0x4584f8);this['_calculateMetaData'](_0x18954d,_0x4584f8,!0x1);}this['_calculateMetaData'](_0x4584f8,_0x137525,!0x0);}return this['_lastFrom']=_0x4584f8,this['_lastTo']=_0x137525,this['_getState']();}['loadState'](_0x214cf1){this['_reset'](),this['_lastFrom']=_0x214cf1['fromVersion'],this['_lastTo']=_0x214cf1['toVersion'];for(const _0x468d2a in _0x214cf1['diffData']){const _0x279b3a=_0x214cf1['diffData'][_0x468d2a]['attachChange'],_0x3592d0=_0x4765f8(_0x214cf1['diffData'][_0x468d2a]['attributesBefore'])||{},_0x180b5b=this['_makeModelFromViewString'](_0x214cf1['diffData'][_0x468d2a]['deletions']);_0x180b5b['rootName']=_0x468d2a,_0x180b5b['_isAttached']=!_0x279b3a||!_0x279b3a['isAttached'],_0x180b5b['isAttached']=()=>_0x180b5b['_isAttached'],this['_baseRoots']['set'](_0x468d2a,_0x180b5b),this['_baseRootsAttributes']['set'](_0x468d2a,_0x3592d0),_0x279b3a&&this['_touchedRoots']['set'](_0x468d2a,_0x279b3a);const _0xb7491=this['_makeIdsRoot'](_0x180b5b);this['_baseIdsRoots']['set'](_0x468d2a,_0xb7491);for(const [_0x16048c,_0x1ca35f]of _0x180b5b['markers']){if(!_0x16048c['startsWith']('revision:'))continue;const _0xa9a7d9=_0x16048c['split'](':')[0x2];for(const _0xebec82 of _0x1ca35f['getWalker']({'singleCharacters':!0x0})){const _0x1c1192=this['_getVidAttributeName'](_0xebec82),_0x2e47bd='elementEnd'==_0xebec82['type']?_0xebec82['previousPosition']['path']['slice'](0x0,-0x1):_0xebec82['previousPosition']['path'],_0x5a5a1b=_0xb7491['getNodeByPath'](_0x2e47bd)['getAttribute'](_0x1c1192);this['_touched']['set'](_0x5a5a1b,{'userId':_0xa9a7d9});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4aa75e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x550c02=>!this['_touched']['has'](_0x550c02));let _0x170ada=0x0;const _0x2f92d3=new Map();for(const _0x3989a4 in _0x214cf1['diffData']){const _0x3703ea=_0x214cf1['diffData'][_0x3989a4]['attachChange'],_0x351714=_0x4765f8(_0x214cf1['diffData'][_0x3989a4]['attributesAfter'])||{},_0x91108f=this['_makeModelFromViewString'](_0x214cf1['diffData'][_0x3989a4]['insertions']);_0x91108f['rootName']=_0x3989a4,_0x91108f['_isAttached']=!_0x3703ea||_0x3703ea['isAttached'],_0x91108f['isAttached']=()=>_0x91108f['_isAttached'],this['_diffRoots']['set'](_0x3989a4,_0x91108f),this['_diffRootsAttributes']['set'](_0x3989a4,_0x351714);const _0x3a05bb=this['_makeIdsRoot'](_0x91108f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3989a4,_0x3a05bb),_0x2f92d3['set'](_0x3989a4,_0x91108f['isAttached']()?_0x351714:{});for(const [_0x34e705,_0x4243a2]of _0x91108f['markers']){if(!_0x34e705['startsWith']('revision:'))continue;const _0x5941ba=_0x34e705['split'](':')[0x2];for(const _0x12f203 of _0x4243a2['getWalker']({'singleCharacters':!0x0})){const _0x355d6b=this['_getVidAttributeName'](_0x12f203),_0x4cf544=this['_revisionId']++,_0x3c417d='elementEnd'==_0x12f203['type']?_0x12f203['previousPosition']['path']['slice'](0x0,-0x1):_0x12f203['previousPosition']['path'];_0x3a05bb['getNodeByPath'](_0x3c417d)['_setAttribute'](_0x355d6b,_0x4cf544),this['_touched']['set'](_0x4cf544,{'userId':_0x5941ba});}}for(const _0x2fbe96 of this['editor']['model']['createRangeIn'](_0x91108f)['getWalker']({'singleCharacters':!0x0})){const _0x22b2ac=this['_getVidAttributeName'](_0x2fbe96),_0x5426a1='elementEnd'==_0x2fbe96['type']?_0x2fbe96['previousPosition']['path']['slice'](0x0,-0x1):_0x2fbe96['previousPosition']['path'],_0x3e71e2=_0x3a05bb['getNodeByPath'](_0x5426a1);_0x3e71e2['getAttribute'](_0x22b2ac)>0x0||_0x3e71e2['_setAttribute'](_0x22b2ac,_0x4aa75e[_0x170ada++]);}for(const [_0x293db3,_0x142f26]of _0x91108f['markers'])_0x293db3['startsWith']('revision:')||this['_markers']['set'](_0x293db3,_0x142f26);}const _0x26d347=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x26d347),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x26d347,0x1));const _0x417d0d=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x417d0d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x417d0d,0x1));const _0x1b9693=Array['from'](this['_diffRoots'])['map'](([_0x296e65,_0x467379])=>[_0x296e65,T(_0x467379)]);this['_saveMetaData'](this['_lastTo'],_0x1b9693,this['_markers'],_0x2f92d3);}['_makeModelFromViewString'](_0x534211){const _0x5921e6=JSON['parse'](_0x534211),_0x10d733=this['editor']['editing']['view']['document'],_0x1e292c=new _0x5066aa(_0x10d733,_0x5921e6['map'](_0xa6d2c1=>C(_0xa6d2c1,this['editor'])));return this['editor']['data']['toModel'](_0x1e292c);}['_saveMetaData'](_0x488d65,_0x3974cf,_0x1a7e1e,_0x58fc71){const _0x1e404a=new Map(_0x3974cf),_0x34b9c6=new Map(_0x4765f8(_0x58fc71)),_0x3622d5=new Map();for(const [_0x2203a7,_0x47a421]of _0x1a7e1e)_0x3622d5['set'](_0x2203a7,{'start':_0x47a421['start']['clone'](),'end':_0x47a421['end']['clone'](),'rootName':_0x47a421['root']['rootName']});this['_savedMetaData']['set'](_0x488d65,{'roots':_0x1e404a,'markers':_0x3622d5,'rootsAttributes':_0x34b9c6});}['_removeMetaData'](_0x4d8333){this['_savedMetaData']['delete'](_0x4d8333);}['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'](_0x34bfcd,_0x16d5ea=null){let _0x5e28cd=null;_0x34bfcd['is']('documentFragment')||(_0x5e28cd=new ft(_0x34bfcd['name'],{'vid_start':null===_0x16d5ea?this['_revisionId']++:_0x16d5ea++}));const _0x4bc0c6=[];for(const _0x5718bb of _0x34bfcd['getChildren']())if(_0x5718bb['is']('element')){_0x4bc0c6['push'](this['_makeIdsRoot'](_0x5718bb,_0x16d5ea));const _0x54c535=_0x4bc0c6[_0x4bc0c6['length']-0x1];null!==_0x16d5ea&&(_0x16d5ea=_0x54c535['is']('element','$text')?_0x54c535['getAttribute']('vid')+0x1:_0x54c535['getAttribute']('vid_end')+0x1);}else{for(let _0x487598=0x0;_0x487598<_0x5718bb['offsetSize'];_0x487598++)_0x4bc0c6['push'](new ft('$text',{'vid':null===_0x16d5ea?this['_revisionId']++:_0x16d5ea++}));}if(_0x34bfcd['is']('documentFragment')){const _0x49e244=F(_0x34bfcd['rootName']);return _0x49e244['_insertChild'](0x0,_0x4bc0c6),_0x49e244;}return _0x5e28cd['_setAttribute']('vid_end',null===_0x16d5ea?this['_revisionId']++:_0x16d5ea++),_0x5e28cd['_insertChild'](0x0,_0x4bc0c6),_0x5e28cd;}['_calculateMetaData'](_0x1fb902,_0x388785,_0x3e9a7e){this['_reset']();const {roots:_0x5d233d,markers:_0x28b887,rootsAttributes:_0x570bc8}=this['_savedMetaData']['get'](_0x1fb902);this['_baseRoots']=new Map(_0x5d233d),this['_baseRootsAttributes']=new Map(_0x4765f8(_0x570bc8));for(const [_0x2fb267,_0x4e75d6]of this['_baseRoots'])if('$graveyard'!==_0x2fb267&&(this['_diffRoots']['set'](_0x2fb267,T(_0x4e75d6)),this['_diffRootsAttributes']=new Map(_0x4765f8(_0x570bc8)),_0x3e9a7e)){const _0x44d56d=this['_revisionId'];this['_idsRoots']['set'](_0x2fb267,this['_makeIdsRoot'](_0x4e75d6)),this['_baseIdsRoots']['set'](_0x2fb267,this['_makeIdsRoot'](_0x4e75d6,_0x44d56d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3e9a7e&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x68ca17,_0x5b836b]of _0x28b887){const _0x5d162e=this['_baseRoots']['get'](_0x5b836b['rootName']),_0x227796=this['_diffRoots']['get'](_0x5b836b['rootName']),_0x35a926=new vt(this['_fixPosition'](_0x5b836b['start'],_0x5d162e),this['_fixPosition'](_0x5b836b['end'],_0x5d162e)),_0x5310f3=this['_fixRange'](_0x35a926,_0x227796);_0x5d162e['markers']['set'](_0x68ca17,_0x35a926),this['_markers']['set'](_0x68ca17,_0x5310f3);}this['_applyOperations'](_0x1fb902,_0x388785,_0x3e9a7e);}['_applyOperations'](_0x15063d,_0x317123,_0x313af5){for(const _0xb065c2 of this['source']['getOperations'](_0x15063d,_0x317123))this['_handleOperation'](_0xb065c2,_0x313af5);for(const _0x5c318e of this['_diffRoots']['values']())_0x5c318e['markers']['clear']();for(const [_0x168557,_0x523f15]of this['_markers']){this['_diffRoots']['get'](_0x523f15['root']['rootName'])['markers']['set'](_0x168557,_0x523f15['clone']());}const _0x1fbc50=new Map(),_0x51071b=new Map();for(const [_0x234d32,_0x2d6b56]of this['_diffRoots'])_0x1fbc50['set'](_0x234d32,T(_0x2d6b56)),_0x51071b['set'](_0x234d32,this['_diffRootsAttributes']['get'](_0x234d32));this['_saveMetaData'](_0x317123,_0x1fbc50,this['_markers'],_0x51071b);}['_getPreviousFrom'](_0x56f284){const _0x1abbdd=Array['from'](this['_savedMetaData']['keys']());_0x1abbdd['sort']((_0x1ef470,_0x2e29c5)=>_0x1ef470-_0x2e29c5),_0x1abbdd['reverse']();for(const _0x5cebac of _0x1abbdd)if(_0x5cebac<_0x56f284)return _0x5cebac;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x335e57,_0x27734f){const _0x48fcab=Array['from'](_0x27734f['markers'])['map'](([_0x593f38,_0x445f51])=>[_0x593f38,this['_fixRange'](_0x445f51,_0x335e57)]);_0x335e57['markers']=new Map(_0x48fcab);}['_transformMarkers'](_0x1f28d1){for(const _0x2cfe42 of this['_markers']['values']()){const _0x66f85f=_0x2cfe42['getTransformedByOperation'](_0x1f28d1),_0x3d4bc2=vt['_createFromRanges'](_0x66f85f);_0x2cfe42['start']=_0x3d4bc2['start'],_0x2cfe42['end']=_0x3d4bc2['end'];}}['_handleOperation'](_0xe009e6,_0x19d6e3){if('addRoot'!=_0xe009e6['type']&&'detachRoot'!=_0xe009e6['type']){if('insert'==_0xe009e6['type']){const _0x3cb9c5=_0xe009e6['position']['root']['rootName'];this['_diffRoots']['has'](_0x3cb9c5)||(this['_diffRoots']['set'](_0x3cb9c5,F(_0x3cb9c5,!0x0)),this['_diffRootsAttributes']['set'](_0x3cb9c5,{}),_0x19d6e3&&this['_idsRoots']['set'](_0x3cb9c5,F(_0x3cb9c5,!0x0)));}else{if('addRootAttribute'==_0xe009e6['type']||'removeRootAttribute'==_0xe009e6['type']||'changeRootAttribute'==_0xe009e6['type'])return void this['_handleRootAttributeOperation'](_0xe009e6);'marker'==_0xe009e6['type']&&this['_handleMarkerOperation'](_0xe009e6);}if('marker'!==_0xe009e6['type']){const _0x1f3a64=this['_cloneOperation'](_0xe009e6,this['_diffRoots']);_0x1f3a64['_execute'](),this['_transformMarkers'](_0x1f3a64);}if(_0x19d6e3)switch(_0xe009e6['type']){case'insert':this['_handleInsertOperation'](_0xe009e6);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xe009e6);break;case'merge':this['_handleMergeOperation'](_0xe009e6);break;case'split':this['_handleSplitOperation'](_0xe009e6);}}else this['_handleRootOperation'](_0xe009e6,_0x19d6e3);}['_cloneOperation'](_0x486d23,_0xc2973){const _0x3ca019=_0x486d23['clone']();return _0x3ca019['_authorId']=_0x486d23['_authorId'],this['_fixOperation'](_0x3ca019,_0xc2973),_0x3ca019;}['_getBaseVids'](_0x40ccbf){return _0x40ccbf['map'](_0xa67e93=>{const _0x26baa9=this['_getVidAttributeName'](_0xa67e93);return Number(_0xa67e93['item']['getAttribute'](_0x26baa9));});}['_generateTape'](_0x4f1f56,_0x15eb34){if(_0x4f1f56['is']('element','$text'))_0x15eb34['push']({'item':_0x4f1f56,'type':'text'});else{_0x4f1f56['is']('element')&&_0x15eb34['push']({'item':_0x4f1f56,'type':'elementStart'});for(const _0x52e55c of _0x4f1f56['getChildren']())this['_generateTape'](_0x52e55c,_0x15eb34);_0x4f1f56['is']('element')&&_0x15eb34['push']({'item':_0x4f1f56,'type':'elementEnd'});}return _0x15eb34;}['_getState'](){const _0x2044c8=new Map(this['_touched']),_0x3fcd92=new Map(_0x2044c8),_0x18a9d1=new Map(),_0x3a2a1b={'insertions':{},'deletions':{}},_0x6d659={'insertions':{},'deletions':{}},_0x58126f=new Map(),_0x54a637=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x54a637['delete']('$graveyard');for(const _0x214022 of _0x54a637){const _0x7a18a9=this['_diffRoots']['get'](_0x214022)||F(_0x214022,!0x1),_0x47d468=this['_baseRoots']['get'](_0x214022)||F(_0x214022,!0x1);_0x7a18a9['isAttached']()||_0x47d468['isAttached']()?(_0x3a2a1b['insertions'][_0x214022]=T(_0x7a18a9),_0x3a2a1b['deletions'][_0x214022]=T(_0x47d468),this['_copyMarkers'](_0x3a2a1b['deletions'][_0x214022],_0x47d468),this['_copyMarkers'](_0x3a2a1b['insertions'][_0x214022],_0x7a18a9),_0x6d659['insertions'][_0x214022]=this['_generateTape'](this['_idsRoots']['get'](_0x214022),[]),_0x6d659['deletions'][_0x214022]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x214022)||F(_0x214022,!0x1),[])):_0x54a637['delete'](_0x214022);}for(const _0x50d72e of _0x54a637){const _0x11ef8a=_0x6d659['insertions'][_0x50d72e];for(const _0xfba800 of _0x11ef8a){const _0x39431c=this['_getVidAttributeName'](_0xfba800),_0x5b6b4d=_0xfba800['item']['getAttribute'](_0x39431c);_0x3fcd92['delete'](_0x5b6b4d),_0x5b6b4d>=this['_startingRevisionId']&&_0x18a9d1['set'](_0x5b6b4d,_0x2044c8['get'](_0x5b6b4d));}}for(const _0x32f010 of _0x54a637){const _0x1d1a4f=_0x6d659['insertions'][_0x32f010],_0xbbe1fe=this['_getBaseVids'](_0x6d659['deletions'][_0x32f010]);let _0x530d91=0x0;for(const _0x4c6815 of _0x1d1a4f){const _0x48accb=this['_getVidAttributeName'](_0x4c6815),_0xa37e98=_0x4c6815['item']['getAttribute'](_0x48accb);if(!_0x18a9d1['has'](_0xa37e98)&&!_0x58126f['has'](_0xa37e98)){if(_0x3fcd92['has'](_0xa37e98))_0x530d91++;else{if(_0xa37e98!=_0xbbe1fe[_0x530d91]){const _0x3f3038=_0x2044c8['get'](_0xa37e98)||_0x2044c8['get'](_0xbbe1fe[_0x530d91]);for(;_0xa37e98!=_0xbbe1fe[_0x530d91];)_0x3fcd92['has'](_0xbbe1fe[_0x530d91])||(_0x58126f['set'](_0xbbe1fe[_0x530d91],_0x3f3038),_0x2044c8['set'](_0xbbe1fe[_0x530d91],_0x3f3038)),_0x530d91++;}_0x530d91++;}}}}for(const _0x1c7f8a of _0x54a637){const _0x154080=_0x6d659['insertions'][_0x1c7f8a];for(const _0x41ce28 of _0x154080){const _0x3a130c=this['_getVidAttributeName'](_0x41ce28),_0x1a437c=_0x41ce28['item']['getAttribute'](_0x3a130c);if(_0x58126f['has'](_0x1a437c)){const _0x49aa23=_0x58126f['get'](_0x1a437c);_0x3fcd92['has'](_0x1a437c)||_0x3fcd92['set'](_0x1a437c,{..._0x49aa23}),_0x18a9d1['set'](_0x1a437c,{..._0x49aa23});}}}for(const _0x49c983 of _0x3fcd92['keys']())_0x49c983>=this['_startingRevisionId']&&_0x3fcd92['delete'](_0x49c983);const _0x454727=new Map();for(const _0x2d4406 of _0x54a637){let _0x276ea6=_0x6d659['insertions'][_0x2d4406];for(const _0x4adf76 of _0x276ea6)if(_0x4adf76['item']['is']('element','tableCell')){const _0x16de01=this['_getVidAttributeName'](_0x4adf76),_0x36bff6=_0x4adf76['item']['getAttribute'](_0x16de01);if(_0x18a9d1['has'](_0x36bff6)){const _0x3131a9=_0x4adf76['item']['parent']['parent']['getAttribute']('vid_start'),_0x103794=_0x454727['get'](_0x3131a9)||new Set();_0x103794['add'](_0x18a9d1['get'](_0x36bff6)['userId']),_0x454727['set'](_0x3131a9,_0x103794);}}_0x276ea6=_0x6d659['deletions'][_0x2d4406];for(const _0x5e752c of _0x276ea6)if(_0x5e752c['item']['is']('element','tableCell')){const _0x2abe93=this['_getVidAttributeName'](_0x5e752c),_0x12aa2e=_0x5e752c['item']['getAttribute'](_0x2abe93);if(_0x3fcd92['has'](_0x12aa2e)){const _0x33ae24=_0x5e752c['item']['parent']['parent']['getAttribute']('vid_start'),_0x2c92d0=_0x454727['get'](_0x33ae24)||new Set();_0x2c92d0['add'](_0x3fcd92['get'](_0x12aa2e)['userId']),_0x454727['set'](_0x33ae24,_0x2c92d0);}}for(const _0x5e0b85 of _0x454727['keys']())(_0x18a9d1['has'](_0x5e0b85)||_0x3fcd92['has'](_0x5e0b85))&&_0x454727['delete'](_0x5e0b85);}for(const _0x4cc52a of _0x54a637){const _0xe6d33a=_0x6d659['insertions'][_0x4cc52a];let _0x6e8f44=null,_0x2884b2=null;for(const _0x130ade of _0xe6d33a){const _0x41a15d=this['_getVidAttributeName'](_0x130ade),_0x203a5a=_0x130ade['item']['getAttribute'](_0x41a15d),_0x533a72=_0x454727['get'](_0x203a5a);_0x533a72&&'elementStart'==_0x130ade['type']&&(_0x6e8f44=Array['from'](_0x533a72)[0x0],_0x2884b2=_0x130ade['item']['getAttribute']('vid_end')),_0x6e8f44&&(_0x3fcd92['set'](_0x203a5a,{'userId':_0x6e8f44}),_0x18a9d1['set'](_0x203a5a,{'userId':_0x6e8f44})),_0x203a5a==_0x2884b2&&(_0x6e8f44=null,_0x2884b2=null);}}const _0x1b64d8={},_0x13670f=new Set();for(const _0x32ec58 of _0x54a637){const _0x4ec21a=_0x3a2a1b['deletions'][_0x32ec58],_0x379a33=_0x3a2a1b['insertions'][_0x32ec58];for(const {userId:_0x5301e7}of this['_touchedMarkers']['values']())null!==_0x5301e7&&_0x13670f['add'](_0x5301e7);for(const {userId:_0xe9982a}of this['_touchedRoots']['values']())null!==_0xe9982a&&_0x13670f['add'](_0xe9982a);this['_markChanges'](_0x379a33,_0x6d659['insertions'][_0x32ec58],_0x18a9d1,'insertion',_0x13670f),this['_markChanges'](_0x4ec21a,_0x6d659['deletions'][_0x32ec58],_0x3fcd92,'deletion',_0x13670f),_0x1b64d8[_0x32ec58]={'insertions':this['_prepareViewToSave'](_0x379a33),'deletions':this['_prepareViewToSave'](_0x4ec21a),'attachChange':this['_touchedRoots']['get'](_0x32ec58)||null,'attributesBefore':_0x4765f8(this['_baseRootsAttributes']['get'](_0x32ec58))||{},'attributesAfter':_0x4765f8(this['_diffRootsAttributes']['get'](_0x32ec58))};}return{'diffData':_0x1b64d8,'authorsIds':Array['from'](_0x13670f)};}['_processRootBeforeSave'](_0x107ad1){for(const [,_0x449666]of _0x107ad1['markers']){const _0x2a2fd0=_0x449666['start']['getAncestors']()['filter'](_0x1b4a89=>'tableCell'==_0x1b4a89['name']);for(const _0x275cdc of _0x2a2fd0)0x1==_0x275cdc['childCount']&&_0x275cdc['getChild'](0x0)['is']('element','paragraph')&&_0x275cdc['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x882c8f){this['_processRootBeforeSave'](_0x882c8f);const _0x1101af=this['editor']['data']['toView'](_0x882c8f,{}),_0x281a66=Array['from'](_0x1101af['getChildren']())['map'](_0x5bc6a8=>this['_getViewJson'](_0x5bc6a8));return JSON['stringify'](_0x281a66);}['_getViewJson'](_0x80755c){if(_0x80755c['is']('$text'))return _0x80755c['data'];{const _0x1548ab=_0x80755c;return{'type':Object['keys'](P)['find'](_0x31fb45=>_0x80755c instanceof P[_0x31fb45]),'name':_0x1548ab['name'],'attributes':Array['from'](_0x1548ab['getAttributes']()),'children':Array['from'](_0x1548ab['getChildren']())['map'](_0x3f2143=>this['_getViewJson'](_0x3f2143))};}}['_markChanges'](_0x1dec08,_0x577627,_0x1efed8,_0x3cf162,_0x226fa8){let _0x4dc358=null,_0x53a9cc=null,_0x14754b=0x0;const _0x2b2884=this['editor']['model'];for(let _0xdfb72d=0x0;_0xdfb72d<_0x577627['length'];_0xdfb72d++){const _0x3712e5=this['_getVidAttributeName'](_0x577627[_0xdfb72d]),_0x58765c=_0x577627[_0xdfb72d]['item']['getAttribute'](_0x3712e5),_0x90a33c=_0x1efed8['get'](_0x58765c),_0x15a9aa=_0xdfb72d==_0x577627['length']-0x1;(!_0x4dc358&&_0x90a33c&&(_0x4dc358=_0x90a33c,_0x53a9cc=_0x577627[_0xdfb72d]),_0x4dc358&&(!_0x90a33c||_0x90a33c['userId']!=_0x4dc358['userId']))&&(_0x101d39(_0x90a33c,B(_0x53a9cc,_0x1dec08,_0x2b2884),B(_0x577627[_0xdfb72d],_0x1dec08,_0x2b2884)),_0x4dc358=_0x90a33c||null,_0x53a9cc=_0x90a33c?_0x577627[_0xdfb72d]:null),_0x4dc358&&_0x15a9aa&&_0x101d39(_0x90a33c,B(_0x53a9cc,_0x1dec08,_0x2b2884),J(_0x577627[_0xdfb72d],_0x1dec08,_0x2b2884));}function _0x101d39(_0x95f102,_0x51569b,_0x42b40a){const _0x5ced14=_0x4dc358['userId'],_0x122881='revision:'+_0x3cf162+':'+_0x5ced14+':'+_0x14754b++,_0x12a444=_0x2b2884['createRange'](_0x51569b,_0x42b40a);_0x1dec08['markers']['set'](_0x122881,_0x12a444),null!==_0x5ced14&&_0x226fa8['add'](_0x5ced14);}}['_getVidAttributeName'](_0x306061){switch(_0x306061['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2f2a81,_0x28d33e){_0x2f2a81['baseVersion']=null;for(const _0x333278 in _0x2f2a81){const _0x40b37d=_0x2f2a81[_0x333278];if(_0x40b37d instanceof gt){const _0x509d8b=_0x28d33e['get'](_0x40b37d['root']['rootName']);_0x2f2a81[_0x333278]=this['_fixPosition'](_0x40b37d,_0x509d8b);}if(_0x40b37d instanceof vt){const _0xd1dc26=_0x28d33e['get'](_0x40b37d['root']['rootName']);_0x2f2a81[_0x333278]=this['_fixRange'](_0x40b37d,_0xd1dc26);}'root'===_0x333278&&(_0x2f2a81['root']=_0x28d33e['get'](_0x2f2a81['root']['rootName']));}}['_fixRange'](_0x17e141,_0x3a29e0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x17e141['start'],_0x3a29e0),this['_fixPosition'](_0x17e141['end'],_0x3a29e0));}['_fixPosition'](_0xdfa617,_0x9aef60){return this['editor']['model']['createPositionFromPath'](_0x9aef60,_0xdfa617['path'],_0xdfa617['stickiness']);}['_handleInsertOperation'](_0x4ea6c7){const _0x41a7bf=this['_idsRoots']['get'](_0x4ea6c7['position']['root']['rootName']),_0x532f33=this['_fixPosition'](_0x4ea6c7['position'],_0x41a7bf),_0x5e8733=null===_0x4ea6c7['_authorId']?null:_0x4ea6c7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4051da=_0x532f33['parent'],_0x4616e9=this['_revisionId'],_0x1b0f5a=[];for(const _0x2bdcdc of _0x4ea6c7['nodes'])if(_0x2bdcdc['is']('element'))_0x1b0f5a['push'](this['_makeIdsRoot'](_0x2bdcdc));else{for(let _0x32af3e=0x0;_0x32af3e<_0x2bdcdc['offsetSize'];_0x32af3e++)_0x1b0f5a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5a0b7e=this['_revisionId'];for(let _0x5c6967=_0x4616e9;_0x5c6967<_0x5a0b7e;_0x5c6967++)this['_touched']['set'](_0x5c6967,{'userId':_0x5e8733});_0x4051da['_insertChild'](_0x532f33['offset'],_0x1b0f5a);}['_handleMoveOperation'](_0x95d84b){(_0x95d84b=this['_cloneOperation'](_0x95d84b,this['_idsRoots']))['_execute']();const _0x2c1383=null===_0x95d84b['_authorId']?null:_0x95d84b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x551c8a=_0x95d84b['getMovedRangeStart'](),_0x3631a3=_0x551c8a['parent'],_0x4573ca=_0x551c8a['offset'];!function _0x3f91a4(_0x553374,_0x396dcb,_0x21a32d,_0xb181b8){for(let _0x366973=_0x21a32d;_0x366973<_0xb181b8;_0x366973++){const _0x3ac405=_0x396dcb['getChild'](_0x366973);_0x3ac405['is']('element','$text')?_0x553374['set'](_0x3ac405['getAttribute']('vid'),{'userId':_0x2c1383}):(_0x553374['set'](_0x3ac405['getAttribute']('vid_start'),{'userId':_0x2c1383}),_0x3f91a4(_0x553374,_0x3ac405,0x0,_0x3ac405['childCount']),_0x553374['set'](_0x3ac405['getAttribute']('vid_end'),{'userId':_0x2c1383}));}}(this['_touched'],_0x3631a3,_0x4573ca,_0x4573ca+_0x95d84b['howMany']);}['_handleMergeOperation'](_0x4e4af1){const _0x36be7e=null===(_0x4e4af1=this['_cloneOperation'](_0x4e4af1,this['_idsRoots']))['_authorId']?null:_0x4e4af1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15b8a2=_0x4e4af1['targetPosition']['parent'],_0x43c801=_0x4e4af1['sourcePosition']['parent'],_0x4e2f13=_0x15b8a2['getAttribute']('vid_end'),_0x148a38=_0x43c801['getAttribute']('vid_start');_0x15b8a2['_setAttribute']('vid_end',_0x43c801['getAttribute']('vid_end')),_0x43c801['_setAttribute']('vid_end',_0x4e2f13),this['_touched']['set'](_0x148a38,{'userId':_0x36be7e}),this['_touched']['set'](_0x4e2f13,{'userId':_0x36be7e}),_0x4e4af1['_execute']();}['_handleSplitOperation'](_0x41670c){const _0x2862d3=null===(_0x41670c=this['_cloneOperation'](_0x41670c,this['_idsRoots']))['_authorId']?null:_0x41670c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x197fa6=_0x41670c['graveyardPosition'],_0x3cf709=_0x41670c['splitPosition']['parent'];_0x41670c['_execute']();const _0x4b793b=_0x3cf709['getAttribute']('vid_end'),_0x2d61b8=_0x41670c['insertionPosition']['nodeAfter'];if(_0x197fa6){const _0x15931f=_0x2d61b8['getAttribute']('vid_end'),_0x4e865f=_0x3cf709['getAttribute']('vid_end');_0x3cf709['_setAttribute']('vid_end',_0x15931f),_0x2d61b8['_setAttribute']('vid_end',_0x4e865f),this['_touched']['set'](_0x3cf709['getAttribute']('vid_end'),{'userId':_0x2862d3}),this['_touched']['set'](_0x2d61b8['getAttribute']('vid_start'),{'userId':_0x2862d3});}else{const _0x46a0e2=this['_revisionId']++,_0x58c4e1=this['_revisionId']++;_0x3cf709['_setAttribute']('vid_end',_0x46a0e2),_0x2d61b8['_setAttribute']('vid_start',_0x58c4e1),_0x2d61b8['_setAttribute']('vid_end',_0x4b793b),this['_touched']['set'](_0x46a0e2,{'userId':_0x2862d3}),this['_touched']['set'](_0x58c4e1,{'userId':_0x2862d3});}}['_handleMarkerOperation'](_0x1b2fa4){if(!_0x1b2fa4['affectsData'])return;const _0x177470=(_0x1b2fa4=this['_cloneOperation'](_0x1b2fa4,this['_diffRoots']))['oldRange']?_0x1b2fa4['oldRange']['root']:null,_0xeb5823=_0x1b2fa4['newRange']?_0x1b2fa4['newRange']['root']:null;_0x177470&&this['_markers']['delete'](_0x1b2fa4['name']),_0xeb5823&&this['_markers']['set'](_0x1b2fa4['name'],_0x1b2fa4['newRange']['clone']());const _0x1299e7=null===_0x1b2fa4['_authorId']?null:_0x1b2fa4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xf7c0d5=_0x1b2fa4['name'];if(!this['_touchedMarkers']['has'](_0xf7c0d5))return void this['_touchedMarkers']['set'](_0xf7c0d5,{'range':_0x1b2fa4['oldRange'],'userId':_0x1299e7});const _0x1cc4c4=this['_touchedMarkers']['get'](_0xf7c0d5),_0x115178=_0x1cc4c4['range'],_0x477ad0=_0x1b2fa4['newRange'];null==_0x115178&&null==_0x477ad0||_0x115178&&_0x477ad0&&_0x115178['isEqual'](_0x477ad0)?this['_touchedMarkers']['delete'](_0x1b2fa4['name']):_0x1cc4c4['userId']=_0x1299e7;}['_handleRootOperation'](_0x425c5e,_0x30166b){this['_diffRoots']['has'](_0x425c5e['rootName'])?this['_diffRoots']['get'](_0x425c5e['rootName'])['_isAttached']=_0x425c5e['isAdd']:(this['_diffRoots']['set'](_0x425c5e['rootName'],F(_0x425c5e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x425c5e['rootName'],{}),_0x30166b&&this['_idsRoots']['set'](_0x425c5e['rootName'],F(_0x425c5e['rootName'],!0x0)));const _0x1bcaad=null===_0x425c5e['_authorId']?null:_0x425c5e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c02cb=this['_touchedRoots']['get'](_0x425c5e['rootName']);_0x5c02cb&&_0x5c02cb['userId']===_0x1bcaad?this['_touchedRoots']['delete'](_0x425c5e['rootName']):this['_touchedRoots']['set'](_0x425c5e['rootName'],{'userId':_0x1bcaad,'isAttached':_0x425c5e['isAdd']});}['_handleRootAttributeOperation'](_0x200165){const _0x35ff7a=this['_diffRootsAttributes']['get'](_0x200165['root']['rootName']);null===_0x200165['newValue']?delete _0x35ff7a[_0x200165['key']]:_0x35ff7a[_0x200165['key']]=_0x200165['newValue'];}}function T(_0x2a0627){const _0x2ef181=F(_0x2a0627['rootName'],_0x2a0627['isAttached']());for(const _0x5c25e6 of _0x2a0627['getChildren']()){const _0x94a69b=_0x5c25e6['_clone'](!0x0);_0x2ef181['_appendChild'](_0x94a69b);}return _0x2ef181;}function F(_0x59ae38,_0x159d27=!0x0){const _0x4fe6e6=new mt();return _0x4fe6e6['rootName']=_0x59ae38,_0x4fe6e6['_isAttached']=_0x159d27,_0x4fe6e6['isAttached']=()=>_0x4fe6e6['_isAttached'],_0x4fe6e6;}function B(_0x1e5318,_0x4e3b51,_0x27835a){const _0x1eaf9f='elementEnd'==_0x1e5318['type']?_0x27835a['createPositionAt'](_0x1e5318['item'],'end'):_0x27835a['createPositionBefore'](_0x1e5318['item']);return _0x27835a['createPositionFromPath'](_0x4e3b51,_0x1eaf9f['path'],_0x1eaf9f['stickiness']);}function J(_0x205662,_0x2d0ccc,_0x263eeb){const _0x36872b='elementStart'==_0x205662['type']?_0x263eeb['createPositionAt'](_0x205662['item'],0x0):_0x263eeb['createPositionAfter'](_0x205662['item']);return _0x263eeb['createPositionFromPath'](_0x2d0ccc,_0x36872b['path'],_0x36872b['stickiness']);}class ns extends _0x143daf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xd8176b,_0x3feb4c){super(_0xd8176b),this['focusTracker']=new _0x54b2eb(),this['keystrokes']=new _0x2b63c0(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3feb4c),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'](),_0x5194aa({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1c0ad4=_0x4f799a=>_0x4f799a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1c0ad4),this['keystrokes']['set']('arrowleft',_0x1c0ad4),this['keystrokes']['set']('arrowup',_0x1c0ad4),this['keystrokes']['set']('arrowdown',_0x1c0ad4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xdbbd67){this['revisionNameInputView']['fieldView']['element']['value']=_0xdbbd67['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1fdfe2){const _0x3c2d25=new nt(this['locale'],_0x2425f4),_0x238d3e=_0x3c2d25['fieldView'];_0x238d3e['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x57f5a6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1fdfe2&&(_0x57f5a6+='\x20('+m(this['locale'],'optional')+')'),(_0x3c2d25['label']=_0x57f5a6,_0x238d3e['on']('input',()=>{this['revisionNameInputValue']=_0x238d3e['element']['value']['trim']();}),_0x3c2d25);}}class u extends _0x987c78{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xbfba44=this['editor'],_0x1894fe=_0xbfba44['plugins']['get']('RevisionTracker');_0xbfba44['ui']['componentFactory']['add']('revisionHistory',_0x23e964=>{const _0x36a853=_0x4d4a7c(_0x23e964),_0x559111=_0x36a853['panelView']['children'],_0x3691ce=new te(_0x23e964),_0x3f43d1=new _0x4876c6(_0x23e964),_0x1fa240=new _0x14e070(_0x23e964),_0x5ce8f7=new _0x4876c6(_0x23e964),_0x5776a5=new _0x14e070(_0x23e964);return _0x36a853['bind']('isEnabled')['to'](_0x1894fe,'isReady',_0x1894fe,'isEnabled',_0xbfba44,'isReadOnly',(_0x58e549,_0x10553e,_0x1239fc)=>_0x58e549&&_0x10553e&&!_0x1239fc),_0x36a853['buttonView']['set']({'icon':_0x390aaa['history'],'label':m(_0x23e964,'Revision\x20history'),'tooltip':!0x0}),_0x1fa240['set']({'label':m(_0x23e964,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1fa240['bind']('isEnabled')['to'](_0x1894fe,'isReady',_0x1894fe,'isEnabled',_0xbfba44,'isReadOnly',(_0x46a8c8,_0x172e7d,_0x43ca5c)=>_0x46a8c8&&_0x172e7d&&!_0x43ca5c),_0x1fa240['on']('execute',()=>this['_showDialog']()),_0x5776a5['set']({'label':m(_0x23e964,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5776a5['bind']('isEnabled')['to'](_0x1894fe,'isReady',_0xbfba44,'isReadOnly',(_0x508d92,_0x141635)=>_0x508d92&&!_0x141635),_0x5776a5['on']('execute',()=>{_0xbfba44['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x36a853['isOpen']=!0x1,_0xbfba44['editing']['view']['focus']();}),_0x3f43d1['children']['add'](_0x1fa240),_0x5ce8f7['children']['add'](_0x5776a5),_0x3691ce['role']='menu',_0x3691ce['items']['addMany']([_0x3f43d1,_0x5ce8f7]),_0x559111['add'](_0x3691ce),_0x36a853;}),_0xbfba44['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x22b336=this['editor'],_0x289a75=_0x22b336['locale'],_0x17a576=new _0x731cc6(_0x289a75),_0x1b8f29=new _0x5e0ef6(_0x289a75);_0x17a576['buttonView']['set']({'icon':_0x390aaa['history'],'label':m(_0x289a75,'Revision\x20history')});const _0x1f5a36=new _0xdfa774(_0x289a75,_0x17a576),_0x281248=new _0x4a6f6a(_0x289a75);_0x281248['set']({'label':m(_0x289a75,'Save\x20current\x20revision')}),_0x281248['delegate']('execute')['to'](_0x17a576),_0x281248['on']('execute',()=>{this['_showDialog']();}),_0x1f5a36['children']['add'](_0x281248),_0x1b8f29['items']['add'](_0x1f5a36);const _0x35fa8f=new _0xdfa774(_0x289a75,_0x17a576),_0x23de52=new _0x4a6f6a(_0x289a75);return _0x23de52['set']({'label':m(_0x289a75,'Open\x20revision\x20history')}),_0x23de52['delegate']('execute')['to'](_0x17a576),_0x23de52['on']('execute',()=>{_0x22b336['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x35fa8f['children']['add'](_0x23de52),_0x1b8f29['items']['add'](_0x35fa8f),_0x17a576['panelView']['children']['add'](_0x1b8f29),_0x17a576;}['_showDialog'](){const _0x3e4971=this['editor'],_0x233819=_0x3e4971['locale'],_0x35f486=_0x3e4971['plugins']['get']('Dialog'),_0x5520d2=_0x3e4971['plugins']['get']('RevisionTracker');function _0x24ae52(_0x20f352){_0x3e4971['config']['get']('revisionHistory.requireRevisionName')&&''===_0x20f352['revisionName']?_0x20f352['revisionNameInputView']['errorText']=m(_0x233819,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3e4971['plugins']['get'](l)['saveRevision']({'name':_0x20f352['revisionName']}),_0x35f486['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x24ae52(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x35f486['show']({'id':'revisionSave','title':m(_0x233819,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x3e4971['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x35f486['hide']()},{'label':m(_0x3e4971['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x53df89){_0x53df89['bind']('isEnabled')['to'](_0x5520d2,'isReady',_0x5520d2,'isEnabled',_0x3e4971,'isReadOnly',(_0x30661f,_0x4f8b3a,_0x2769f8)=>_0x30661f&&_0x4f8b3a&&!_0x2769f8);},'onExecute':()=>_0x24ae52(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3f3498=this['editor'],_0x155c75=_0x3f3498['locale'];this['_saveRevisionFormView']=new ns(_0x155c75,_0x3f3498['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x143daf{['changeId'];['_model'];constructor(_0x5189f6,_0x2a584c){super(_0x5189f6),this['_model']=_0x2a584c,this['changeId']=_0x2a584c['id'];const _0x1eacd2=this['bindTemplate'],_0x4f809a=m(_0x5189f6,_0x2a584c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2a584c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2a584c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1eacd2['to']('type',_0x57c89a=>'ck-revision-change__'+_0x57c89a)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4f809a}]},{'text':'\x20'+_0x2a584c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x48b3ab(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x2a59a0){super(),this['id']=_0x2a59a0['id']||_0x50c4bd(),this['author']=_0x2a59a0['author'],this['type']=_0x2a59a0['type'],this['data']=_0x2a59a0['data']||{},this['rootName']=_0x2a59a0['rootName'],this['set']('createdAt',_0x2a59a0['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x14f991,_0x1df95d){this['newRevisionId']=_0x14f991,this['oldRevisionId']=_0x1df95d,this['changes']=new _0x49a1a4();}['_setChanges'](_0x2931a5){for(const _0x249745 of _0x2931a5)this['changes']['add'](_0x249745);}}const Y={'c':_0x5a10e1,'a':_0x346229,'e':_0x17c524,'r':_0x70664,'u':_0x16d167};class d extends _0x987c78{['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[_0x113f94,_0x42e91c,j];}constructor(_0x246bdb){super(_0x246bdb),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',(_0x37486f,_0x189b51,_0xec5424)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3bd9e8=>{for(const _0x2f7201 of this['editor']['editing']['view']['document']['roots'])_0xec5424?_0x3bd9e8['removeClass']('ck-editor__editable__overlay',_0x2f7201):_0x3bd9e8['addClass']('ck-editor__editable__overlay',_0x2f7201);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x137000=>null!==_0x137000),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5162e1,_0x545fdf,_0x51c897)=>_0x5162e1&&_0x51c897?_0x545fdf['changes']['getIndex'](_0x51c897):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1527b6,_0x21a4c9)=>_0x1527b6?_0x21a4c9['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x42e91c);}['init'](){const _0x4b9959=this['editor'],_0x44e746=new yt(_0x4b9959,{'direction':'backward'}),_0x5ebbf4=new yt(_0x4b9959,{'direction':'forward'});(_0x4b9959['commands']['add']('showPreviousChange',_0x44e746),_0x4b9959['commands']['add']('showNextChange',_0x5ebbf4),_0x4b9959['commands']['add']('restoreRevision',new _t(_0x4b9959)),this['on']('change:numberOfChanges',()=>{_0x44e746['refresh'](),_0x5ebbf4['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4b9959['enableReadOnlyMode']('revision-viewer'),_0x4b9959['plugins']['has']('WidgetToolbarRepository'))&&_0x4b9959['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5556c4){await this['loadRevisionData'](_0x5556c4);const _0x1fb1f1={};for(const _0xdcb8ad in _0x5556c4['diffData']){if(_0x5556c4['diffData'][_0xdcb8ad]['attachChange']&&!_0x5556c4['diffData'][_0xdcb8ad]['attachChange']['isAttached'])continue;const _0x1c0a76=this['_removeRevisionMarkers'](JSON['parse'](_0x5556c4['diffData'][_0xdcb8ad]['insertions'])),_0x146b58=this['editor']['editing']['view']['document'],_0x1263aa=new _0x5066aa(_0x146b58,_0x1c0a76['map'](_0x35553d=>this['_getViewObj'](_0x35553d)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1fb1f1[_0xdcb8ad]=this['editor']['data']['processor']['toData'](_0x1263aa),this['editor']['data']['processor']['useFillerType']('default');}return _0x1fb1f1;}async['getRevisionRootsAttributes'](_0x3d427c){await this['loadRevisionData'](_0x3d427c);const _0x4ea353={};for(const _0x14b797 in _0x3d427c['diffData'])_0x3d427c['diffData'][_0x14b797]['attachChange']&&!_0x3d427c['diffData'][_0x14b797]['attachChange']['isAttached']||(_0x4ea353[_0x14b797]=_0x3d427c['diffData'][_0x14b797]['attributesAfter']||{});return _0x4ea353;}['_removeRevisionMarkers'](_0x3e4dda){return(_0x3e4dda=_0x3e4dda['filter'](_0x3b1202=>!_0x3b1202['name']||'revision-start'!==_0x3b1202['name']&&'revision-end'!==_0x3b1202['name']))['forEach'](_0x5653c0=>{'string'!=typeof _0x5653c0&&(_0x5653c0['children']=this['_removeRevisionMarkers'](_0x5653c0['children']),_0x5653c0['attributes']=_0x5653c0['attributes']['filter'](_0x56b9c=>!_0x56b9c[0x0]['startsWith']('data-revision-')));}),_0x3e4dda;}async['compare'](_0x258928,_0x1e0b53,_0x515695=!0x1){if(!this['isEnabled'])return;const _0x2c2729=this['diff'],_0x41d676=this['repository'],_0x2a497f='string'==typeof _0x258928?_0x41d676['getRevision'](_0x258928):_0x258928,_0x4651b9='string'==typeof _0x1e0b53?_0x41d676['getRevision'](_0x1e0b53):_0x1e0b53,_0x3447d5=_0x2a497f['id'],_0x2ddb4e=_0x4651b9?_0x4651b9['id']:null;if(!_0x515695&&this['diff']&&this['diff']['newRevisionId']===_0x3447d5&&this['diff']['oldRevisionId']===_0x2ddb4e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3447d5,_0x2ddb4e);const _0x510ba7=this['_getRevisionsRange'](_0x2a497f,_0x4651b9,!0x0)['map'](_0x422755=>this['loadRevisionData'](_0x422755));return _0x510ba7['push'](new Promise(_0x3c7cf9=>{setTimeout(_0x3c7cf9,0x14);})),Promise['all'](_0x510ba7)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4017f2=this['_getDiff'](_0x3447d5,_0x2ddb4e);for(const _0x5f002e of _0x4017f2['changes'])this['_changeIdToChange']['set'](_0x5f002e['id'],_0x5f002e);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x10ff02=>{for(const _0x5ab906 of this['editor']['model']['document']['getRootNames']())_0x10ff02['detachRoot'](_0x5ab906);for(const _0x305222 of Object['keys'](_0x4017f2['model'])){const _0x46182a=_0x10ff02['addRoot'](_0x305222);for(const _0x207124 of Object['keys'](_0x4017f2['attributes'][_0x305222]))_0x10ff02['setAttribute'](_0x207124,_0x4017f2['attributes'][_0x305222][_0x207124],_0x46182a);_0x10ff02['insert'](_0x4017f2['model'][_0x305222],_0x46182a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4017f2['changes'])),this['isReady']=!0x0;})['catch'](_0x3e6696=>{console['error'](_0x3e6696),this['_cleanUp'](),_0x2c2729&&(this['diff']=_0x2c2729),this['isReady']=!0x0;});}['addRevisionData'](_0x307157,_0x171898){const _0x608bf9=this['repository']['createRevision'](_0x307157);return _0x608bf9['on']('_update',(_0x4461fa,_0x4d6f09,_0x45f914)=>_0x171898(_0x4d6f09,_0x45f914,_0x608bf9)),this['repository']['addRevision'](_0x608bf9),_0x608bf9;}['loadRevisionData'](_0x1afdc2){if(!_0x1afdc2||_0x1afdc2['diffData'])return Promise['resolve']();{const _0x383e27=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x383e27,'revisionId':_0x1afdc2['id']})['then'](_0x11f74d=>{_0x1afdc2['_update']({'diffData':_0x11f74d['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},_0x42c5aa=>{for(const _0x52f732 of this['editor']['model']['document']['getRootNames']())_0x42c5aa['detachRoot'](_0x52f732);});}['_sortAndFilterDiffChanges'](_0x398c7e){const _0x291419=[],_0xed52c6=new Map();for(const _0xc2cd58 of this['editor']['model']['document']['getRootNames']()){const _0x35d48c=this['editor']['editing']['view']['getDomRoot'](_0xc2cd58);if(!_0x35d48c)continue;const _0x3bfe31=_0x35d48c['getClientRects']()['item'](0x0);_0x3bfe31&&(_0x291419['push'](_0xc2cd58),_0xed52c6['set'](_0xc2cd58,_0x3bfe31));}return _0x291419['sort']((_0x466164,_0x50de00)=>{const _0x3b5b9d=_0xed52c6['get'](_0x466164),_0x3e6a18=_0xed52c6['get'](_0x50de00);return _0x3b5b9d['y']-_0x3e6a18['y']||_0x3b5b9d['x']-_0x3e6a18['x'];}),(_0x398c7e=_0x398c7e['filter'](_0xe5c5ca=>_0x291419['includes'](_0xe5c5ca['rootName'])))['sort']((_0x42d347,_0x17a4a6)=>_0x291419['indexOf'](_0x42d347['rootName'])-_0x291419['indexOf'](_0x17a4a6['rootName'])),_0x398c7e;}['_makeTape'](_0x59861a){const _0x5e17b9=Array['from'](_0x59861a['markers'])['filter'](([_0x3e2d05,_0x505fa3])=>_0x3e2d05['startsWith']('revision:')&&!_0x505fa3['isCollapsed']),_0x3a134e=Array['from'](this['editor']['model']['createRangeIn'](_0x59861a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5e17b9['length'])for(const _0x4c0c0f of _0x3a134e){const [_0x5923fd,_0x20121a]=_0x5e17b9[0x0],[,_0x143cac,_0x41e7f3]=_0x5923fd['split'](':');if(_0x20121a['end']['isEqual'](_0x4c0c0f['nextPosition'])&&_0x5e17b9['shift'](),(_0x4c0c0f['previousPosition']['isEqual'](_0x20121a['start'])||_0x4c0c0f['previousPosition']['isAfter'](_0x20121a['start']))&&('insertion'==_0x143cac?_0x4c0c0f['isAdded']={'userId':_0x41e7f3}:'deletion'==_0x143cac&&(_0x4c0c0f['isRemoved']={'userId':_0x41e7f3})),0x0==_0x5e17b9['length'])break;}return _0x3a134e;}['_refreshStartEndIndex'](_0x40b41b){const _0x715214=new Map();for(let _0x152265=0x0;_0x152265<_0x40b41b['length'];_0x152265++)'text'===_0x40b41b[_0x152265]['type']?(_0x40b41b[_0x152265]['item']['startIndex']=_0x152265,_0x40b41b[_0x152265]['item']['endIndex']=_0x152265):('elementStart'===_0x40b41b[_0x152265]['type']?_0x40b41b[_0x152265]['item']['startIndex']=_0x152265:'elementEnd'===_0x40b41b[_0x152265]['type']&&(_0x40b41b[_0x152265]['item']['endIndex']=_0x152265),_0x715214['set'](_0x40b41b[_0x152265]['id'],_0x152265));for(const _0x364b58 of _0x715214['values']())'elementStart'===_0x40b41b[_0x364b58]['type']?_0x40b41b[_0x364b58]['item']['endIndex']=_0x715214['get'](_0x40b41b[_0x364b58]['pairId']):'elementEnd'===_0x40b41b[_0x364b58]['type']&&(_0x40b41b[_0x364b58]['item']['startIndex']=_0x715214['get'](_0x40b41b[_0x364b58]['pairId']));}['_processTape'](_0x3922d8){for(let _0x18a5f6=0x0;_0x18a5f6<_0x3922d8['length'];_0x18a5f6++){if('elementStart'===_0x3922d8[_0x18a5f6]['type'])_0x3922d8[_0x18a5f6]['item']['startIndex']=_0x18a5f6;else{if('elementEnd'===_0x3922d8[_0x18a5f6]['type']){_0x3922d8[_0x18a5f6]['item']['endIndex']=_0x18a5f6;const _0x5cf8ff=_0x3922d8[_0x18a5f6]['item']['startIndex'];_0x3922d8[_0x5cf8ff]['pairId']=_0x3922d8[_0x18a5f6]['id'],_0x3922d8[_0x18a5f6]['pairId']=_0x3922d8[_0x5cf8ff]['id'];}else _0x3922d8[_0x18a5f6]['item']['startIndex']=_0x18a5f6,_0x3922d8[_0x18a5f6]['item']['endIndex']=_0x18a5f6,_0x3922d8[_0x18a5f6]['pairId']=null;}_0x3922d8[_0x18a5f6]['markersStart']||(_0x3922d8[_0x18a5f6]['markersStart']=[],_0x3922d8[_0x18a5f6]['markersEnd']=[]);}}['_markInsertions'](_0x492f52,_0x35121e){const _0x41065d=_0x492f52['filter'](_0x288daf=>!_0x288daf['isAdded']);for(let _0x396196=0x0;_0x396196<_0x35121e['length'];_0x396196++)_0x35121e[_0x396196]['isAdded']&&(_0x41065d[_0x396196]['isAdded']=_0x35121e[_0x396196]['isAdded']);}['_makeModelFromViewString'](_0x5333b2){const _0x9973a9=JSON['parse'](_0x5333b2),_0x3c8d66=this['editor']['editing']['view']['document'],_0x1160d9=new _0x5066aa(_0x3c8d66,_0x9973a9['map'](_0xae27b0=>this['_getViewObj'](_0xae27b0)));return this['editor']['data']['toModel'](_0x1160d9);}['_getViewObj'](_0xa3c23c){const _0x4b0fea=this['editor']['editing']['view']['document'];if('string'==typeof _0xa3c23c)return new _0x285b76(_0x4b0fea,_0xa3c23c);{const _0x181513=_0xa3c23c['children']['map'](_0x4326a3=>this['_getViewObj'](_0x4326a3));return new(Y[_0xa3c23c['type']]||_0x1a14c8)(_0x4b0fea,_0xa3c23c['name'],_0xa3c23c['attributes'],_0x181513);}}['_getDiff'](_0xc9c000,_0x57d59d=null){const _0x2d8c70=this['repository']['getRevision'](_0xc9c000),_0x1b4acf=_0x57d59d?this['repository']['getRevision'](_0x57d59d):null,_0x109500=this['_getRevisionsRange'](_0x2d8c70,_0x1b4acf),_0x2c0b35=_0x109500[_0x109500['length']-0x1],_0x505eaf=new Map(),_0x524261={'model':{},'attributes':{},'changes':[]},_0x180e01=new Set(),_0x304bce=new Map();for(let _0x406ab9=_0x109500['length']-0x1;_0x406ab9>=0x0;_0x406ab9--){const _0x5bb8e5=_0x109500[_0x406ab9];for(const _0x1661eb of Object['keys'](_0x5bb8e5['diffData']))if(_0x5bb8e5['diffData'][_0x1661eb]['attachChange']){const _0x56be12=_0x5bb8e5['diffData'][_0x1661eb]['attachChange'];_0x56be12['isAttached']?(_0x180e01['add'](_0x1661eb),_0x304bce['has'](_0x1661eb)&&_0x304bce['get'](_0x1661eb)['userId']==_0x56be12['userId']?_0x304bce['delete'](_0x1661eb):_0x304bce['set'](_0x1661eb,_0x56be12)):_0x304bce['has'](_0x1661eb)?(_0x180e01['delete'](_0x1661eb),_0x304bce['delete'](_0x1661eb)):(_0x180e01['add'](_0x1661eb),_0x304bce['set'](_0x1661eb,_0x56be12));}else _0x180e01['add'](_0x1661eb);}for(const _0x2b4392 of _0x180e01){const _0xa8d265=_0x304bce['has'](_0x2b4392)&&!_0x304bce['get'](_0x2b4392)['isAttached'];let _0xef573d=_0xa8d265?_0x109500['length']-0x1:0x0;const _0x180d72=_0xa8d265?-0x1:0x1;for(;_0x109500[_0xef573d];){const _0xe499be=_0x109500[_0xef573d];if(_0xe499be['diffData'][_0x2b4392]){const _0xfc9ea8=_0xa8d265?_0xe499be['diffData'][_0x2b4392]['attributesBefore']:_0xe499be['diffData'][_0x2b4392]['attributesAfter'];_0x524261['attributes'][_0x2b4392]=_0xfc9ea8?_0x4765f8(_0xfc9ea8):{};break;}_0xef573d+=_0x180d72;}}for(const _0x5d176f of _0x109500){_0x5d176f['model']={};for(const _0x56c513 of _0x5d176f['authors'])_0x505eaf['set'](_0x56c513['id'],_0x56c513);for(const _0x1c55c1 of _0x180e01){const _0x4e9b0e=_0x5d176f['diffData'][_0x1c55c1]?_0x5d176f['diffData'][_0x1c55c1]['insertions']:'[]',_0x7d195d=_0x5d176f['diffData'][_0x1c55c1]?_0x5d176f['diffData'][_0x1c55c1]['deletions']:'[]';_0x5d176f['model'][_0x1c55c1]={'insertions':this['_makeModelFromViewString'](_0x4e9b0e),'deletions':this['_makeModelFromViewString'](_0x7d195d)};}}for(const _0x53366f of _0x180e01){let _0x396779=null,_0x5ed8=0x0;const _0x2e32e9=new Map(Array['from'](_0x2d8c70['model'][_0x53366f]['insertions']['markers'])['filter'](([_0x27fa67])=>!_0x27fa67['startsWith']('revision:')));let _0x302069=0x0;for(const _0x11db65 of _0x109500){const _0x2750ca=this['_makeTape'](_0x11db65['model'][_0x53366f]['insertions']);_0x11db65==_0x2d8c70?(_0x396779=_0x2750ca,_0x5ed8=_0x396779['length'],_0x396779['forEach'](_0x42bd84=>{_0x42bd84['id']=_0x302069++;}),this['_processTape'](_0x396779)):this['_markInsertions'](_0x396779,_0x2750ca);const _0x38de88=_0x396779['filter'](_0x2a901b=>!_0x2a901b['isAdded'])['map'](_0x30de17=>_0x30de17['id']);let _0x555b92=0x0;const _0x4ae185=this['_makeTape'](_0x11db65['model'][_0x53366f]['deletions']);_0x4ae185['forEach'](_0x428ce9=>{_0x428ce9['isRemoved']?_0x428ce9['id']=_0x5ed8++:_0x428ce9['id']=_0x38de88[_0x555b92++];}),this['_processTape'](_0x4ae185),this['_setDistance'](_0x396779,'isAdded'),this['_setDistance'](_0x4ae185,'isRemoved'),_0x11db65==_0x2d8c70&&this['_markMarkers'](_0x396779,_0x2e32e9),_0x396779=this['_joinTapes'](_0x396779,_0x4ae185),this['_refreshStartEndIndex'](_0x396779),this['_setDistance'](_0x396779,'isRemoved');}_0x396779=_0x396779['filter'](_0x4c3013=>!(_0x4c3013['isAdded']&&_0x4c3013['isRemoved']));const _0x1b3d2a=new Map(_0x2c0b35['model'][_0x53366f]['deletions']['markers']),_0x3716de=new Set(_0x2e32e9['keys']());for(const _0x50a2cb of _0x1b3d2a['keys']())_0x3716de['delete'](_0x50a2cb);this['_markSuggestions'](_0x396779,_0x3716de),this['_fixObsoleteTags'](_0x396779),_0x396779=this['_removeMissingPairs'](_0x396779),_0x396779=this['_markMismatchedRemovedTags'](_0x396779),_0x396779=this['_removeUnsupportedChanges'](_0x396779);const {root:_0x313d8e,changes:_0x88e314}=this['_makeModelFromTape'](_0x396779,_0x505eaf,_0x53366f);_0x524261['model'][_0x53366f]=_0x313d8e;const _0x17af0d=_0x304bce['get'](_0x53366f);if(_0x17af0d){const _0x266c4b=_0x505eaf['get'](_0x17af0d['userId']),_0x520cd4=new r({'author':_0x266c4b,'type':_0x17af0d['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x53366f});_0x88e314['unshift'](_0x520cd4),_0x524261['attributes'][_0x53366f]['revisionHistoryAttachChange']=_0x520cd4['id'];}_0x524261['changes']=_0x524261['changes']['concat'](_0x88e314);}return _0x524261;}['_markMarkers'](_0x3c0f7e,_0x582582){for(let _0x5c2601=0x0;_0x5c2601<_0x3c0f7e['length'];_0x5c2601++)for(const [_0x30e131,_0x42d10b]of _0x582582)_0x42d10b['start']['isEqual'](_0x3c0f7e[_0x5c2601]['previousPosition'])&&_0x3c0f7e[_0x5c2601]['markersStart']['push'](_0x30e131),_0x42d10b['end']['isEqual'](_0x3c0f7e[_0x5c2601]['nextPosition'])&&_0x3c0f7e[_0x5c2601]['markersEnd']['push'](_0x30e131);}['_joinTapes'](_0x1bc5b6,_0x373eaa){let _0x3a3ba4=[],_0x3dde83=0x0,_0x563943=0x0;for(;_0x3dde83<_0x1bc5b6['length']||_0x563943<_0x373eaa['length'];){const _0xea58f0=_0x1bc5b6[_0x3dde83]||{},_0x11910d=_0x373eaa[_0x563943]||{};if(_0xea58f0['id']==_0x11910d['id'])_0x3dde83++,_0x563943++,_0x3a3ba4['push'](_0xea58f0);else{if(_0x11910d['isRemoved']&&_0xea58f0['isAdded']){const {commonTape:_0x43a85c,iEnd:_0x108f82,jEnd:_0x4ffa58}=this['_threeWayMerge'](_0x1bc5b6,_0x3dde83,_0x373eaa,_0x563943);_0x3a3ba4=_0x3a3ba4['concat'](_0x43a85c),_0x3dde83=_0x108f82,_0x563943=_0x4ffa58;}else _0x11910d['isRemoved']?(_0x563943++,_0x3a3ba4['push'](_0x11910d)):(_0x3dde83++,_0x3a3ba4['push'](_0xea58f0));}}return _0x3a3ba4;}['_markSuggestions'](_0x3f45ca,_0xb9f273){const _0x474fff=[];for(let _0x34b611=0x0;_0x34b611<_0x3f45ca['length'];_0x34b611++){for(let _0x5c2057=0x0;_0x5c2057<_0x3f45ca[_0x34b611]['markersStart']['length'];_0x5c2057++){const _0x4bff6b=_0x3f45ca[_0x34b611]['markersStart'][_0x5c2057];if(!_0xb9f273['has'](_0x4bff6b))continue;const {group:_0x21dff8,type:_0x1730b5,authorId:_0x2f2a4a}=_0xf4fdfe(_0x4bff6b);'revision-suggestion'!=_0x21dff8||'insertion'!=_0x1730b5&&'deletion'!=_0x1730b5||(_0x474fff['unshift']({'type':_0x1730b5,'name':_0x4bff6b,'userId':_0x2f2a4a}),_0x3f45ca[_0x34b611]['markersStart']['splice'](_0x5c2057,0x1),_0x5c2057--);}_0x42ae1a(_0x3f45ca[_0x34b611]);for(let _0x8f5e03=0x0;_0x8f5e03<_0x3f45ca[_0x34b611]['markersEnd']['length'];_0x8f5e03++){const _0x41bbe8=_0x3f45ca[_0x34b611]['markersEnd'][_0x8f5e03];if(!_0xb9f273['has'](_0x41bbe8))continue;const {group:_0x156056,type:_0x2cada0}=_0xf4fdfe(_0x41bbe8);if('revision-suggestion'!=_0x156056||'insertion'!=_0x2cada0&&'deletion'!=_0x2cada0)continue;_0x3f45ca[_0x34b611]['markersEnd']['splice'](_0x8f5e03,0x1),_0x8f5e03--;const _0x20370e=_0x474fff['findIndex'](_0x1e7889=>_0x1e7889['name']==_0x41bbe8);_0x20370e>-0x1&&_0x474fff['splice'](_0x20370e,0x1);}}function _0xf4fdfe(_0x51f6fa){const _0x23dfa1=_0x51f6fa['split'](':');return{'group':_0x23dfa1[0x0],'type':_0x23dfa1[0x1],'subType':_0x23dfa1['length']>=0x5?_0x23dfa1[0x2]:null,'id':_0x23dfa1['length']<0x5?_0x23dfa1[0x2]:_0x23dfa1[0x3],'authorId':_0x23dfa1['length']<0x5?_0x23dfa1[0x3]:_0x23dfa1[0x4],'markerCount':0x6==_0x23dfa1['length']?_0x23dfa1[0x5]:null};}function _0x42ae1a(_0x5dd8e6){for(let _0x42683e=0x0;_0x42683e<_0x474fff['length'];_0x42683e++){if(_0x5dd8e6['isAdded']&&'insertion'==_0x474fff[_0x42683e]['type'])return _0x5dd8e6['isAddSuggestion']=_0x474fff[_0x42683e],void delete _0x5dd8e6['isAdded'];if(!_0x5dd8e6['isAdded']&&!_0x5dd8e6['isRemoved']&&'deletion'==_0x474fff[_0x42683e]['type'])return void(_0x5dd8e6['isRemoveSuggestion']=_0x474fff[_0x42683e]);}}}['_setDistance'](_0x447d8f,_0x1a04b6){let _0x17b9fa=0x0,_0x3b8f44=!0x1;const _0x3925db=new Map();for(const _0x5d17d7 of _0x447d8f)_0x5d17d7[_0x1a04b6]?_0x3b8f44&&(_0x17b9fa++,_0x3b8f44=!0x1):(_0x17b9fa++,_0x3b8f44=!0x0),_0x3925db['set'](_0x5d17d7['id'],_0x17b9fa);for(let _0x2e9f34=0x0;_0x2e9f34<_0x447d8f['length'];_0x2e9f34++){if('isRemoved'==_0x1a04b6&&_0x447d8f[_0x2e9f34]['isAdded']||'isAdded'==_0x1a04b6&&_0x447d8f[_0x2e9f34]['isRemoved'])continue;if('text'==_0x447d8f[_0x2e9f34]['type']){_0x447d8f[_0x2e9f34]['distance']=0x0;continue;}const _0x29e7aa=_0x3925db['get'](_0x447d8f[_0x2e9f34]['pairId']),_0x52040f=_0x3925db['get'](_0x447d8f[_0x2e9f34]['id']);_0x447d8f[_0x2e9f34]['distance']=_0x29e7aa-_0x52040f;}}['_getRevisionsRange'](_0x4057e5,_0x440e67,_0x2d2286=!0x1){const _0x37def4=[];let _0x7b62c=this['repository']['getIndex'](_0x4057e5),_0x1b68eb=this['repository']['getIndex'](_0x440e67);for(-0x1==_0x1b68eb&&(_0x1b68eb=this['repository']['_revisions']['length'],_0x2d2286=!0x1);_0x7b62c<_0x1b68eb;)_0x37def4['push'](this['repository']['getRevision'](_0x7b62c)),_0x7b62c++;return _0x2d2286&&_0x37def4['push'](this['repository']['getRevision'](_0x7b62c)),_0x37def4;}['_threeWayMerge'](_0x159d64,_0x18be65,_0x2eaabc,_0x4cd71d){const _0x1e2db7=this['editor']['model']['schema'];let _0x1d2353=_0x18be65;for(;_0x159d64[_0x1d2353]&&_0x159d64[_0x1d2353]['isAdded'];)_0x1d2353++;let _0xbcd8fa=_0x4cd71d;for(;_0x2eaabc[_0xbcd8fa]&&_0x2eaabc[_0xbcd8fa]['isRemoved'];)_0xbcd8fa++;_0xa1f556(_0x159d64,_0x18be65,_0x1d2353),_0xa1f556(_0x2eaabc,_0x4cd71d,_0xbcd8fa);const _0x5981a5=_0x2eaabc['slice'](_0x4cd71d,_0xbcd8fa)['concat'](_0x159d64['slice'](_0x18be65,_0x1d2353));return _0x5981a5['sort']((_0x4c6f14,_0x2679b4)=>_0x4c6f14['side']!=_0x2679b4['side']?_0x4c6f14['side']-_0x2679b4['side']:_0x4c6f14['level']!=_0x2679b4['level']?_0x4c6f14['level']-_0x2679b4['level']:_0x4c6f14['distance']!=_0x2679b4['distance']?_0x2679b4['distance']-_0x4c6f14['distance']:!!_0x4c6f14['isAdded']!=!!_0x2679b4['isAdded']?-0x1==_0x4c6f14['side']||0x0==_0x4c6f14['side']?_0x4c6f14['isAdded']?-0x1:0x1:_0x4c6f14['isAdded']?0x1:-0x1:_0x4c6f14['index']-_0x2679b4['index']),{'commonTape':_0x5981a5,'iEnd':_0x1d2353,'jEnd':_0xbcd8fa};function _0xa1f556(_0x12656a,_0x27378d,_0x5f58ac){let _0x409aa5=-0x1,_0x29fc94=Number['POSITIVE_INFINITY'],_0x7800de=!0x0;for(let _0x33c088=_0x27378d;_0x33c088<_0x5f58ac;_0x33c088++)if(_0x1e2db7['isInline'](_0x12656a[_0x33c088]['item'])||(_0x7800de=!0x1),_0x12656a[_0x33c088]['item']['startIndex']<_0x27378d&&(_0x409aa5=_0x33c088),_0x12656a[_0x33c088]['item']['endIndex']>=_0x5f58ac){_0x29fc94=_0x33c088;break;}_0x7800de&&(_0x409aa5=_0x5f58ac-0x1);for(let _0x2037eb=_0x27378d;_0x2037eb<_0x5f58ac;_0x2037eb++)_0x12656a[_0x2037eb]['side']=_0x2037eb<=_0x409aa5?-0x1:_0x2037eb<_0x29fc94?0x0:0x1,_0x12656a[_0x2037eb]['index']=_0x2037eb;let _0x4c7ba1=0x0;for(let _0x1ce125=_0x27378d;_0x1ce125<=_0x409aa5;_0x1ce125++)0x0==_0x12656a[_0x1ce125]['distance']?_0x12656a[_0x1ce125]['level']=_0x4c7ba1:(_0x4c7ba1++,_0x12656a[_0x1ce125]['level']=_0x4c7ba1,_0x4c7ba1++);for(let _0x898376=_0x27378d;_0x898376<_0x5f58ac;_0x898376++)0x0==_0x12656a[_0x898376]['side']&&(_0x12656a[_0x898376]['level']=_0x4c7ba1);_0x4c7ba1=0x0;for(let _0x200997=_0x5f58ac-0x1;_0x200997>=_0x29fc94;_0x200997--)0x0==_0x12656a[_0x200997]['distance']?_0x12656a[_0x200997]['level']=_0x4c7ba1:(_0x4c7ba1--,_0x12656a[_0x200997]['level']=_0x4c7ba1,_0x4c7ba1--);}}['_fixObsoleteTags'](_0x51846d){const _0x402b7c=new Map(),_0x1c752e=this['editor']['model']['schema'];for(let _0x4a5131=0x1;_0x4a5131<_0x51846d['length'];_0x4a5131++){let _0x50ce37,_0x3b3e80,_0xd5e2a3;const _0x1a0947=_0x51846d[_0x4a5131],_0x32dff3=_0x51846d[_0x4a5131-0x1];if('text'==_0x1a0947['type'])continue;if(_0x1a0947['type']!=_0x32dff3['type'])continue;if(!_0x1c752e['isBlock'](_0x32dff3['item'])||_0x1c752e['isLimit'](_0x32dff3['item']))continue;if(!_0x1c752e['isBlock'](_0x1a0947['item'])||_0x1c752e['isLimit'](_0x1a0947['item']))continue;if((_0x51846d[_0x4a5131]['isAdded']||_0x51846d[_0x4a5131]['isAddSuggestion'])&&_0x51846d[_0x4a5131-0x1]['isRemoved'])_0x50ce37=_0x51846d[_0x4a5131],_0x3b3e80=_0x51846d[_0x4a5131-0x1],_0xd5e2a3=_0x4a5131-0x1;else{if(!_0x51846d[_0x4a5131]['isRemoved']||!_0x51846d[_0x4a5131-0x1]['isAdded']&&!_0x51846d[_0x4a5131-0x1]['isAddSuggestion'])continue;_0x50ce37=_0x51846d[_0x4a5131-0x1],_0x3b3e80=_0x51846d[_0x4a5131],_0xd5e2a3=_0x4a5131;}const _0x428f0a=_0x50ce37['level']==_0x3b3e80['level'],_0x5f4348=Math['abs'](_0x50ce37['level'])<Math['abs'](_0x3b3e80['level'])&&0x0==_0x3b3e80['distance'];(_0x428f0a||_0x5f4348)&&(_0x402b7c['set'](_0x3b3e80['id'],_0x50ce37['id']),_0x51846d['splice'](_0xd5e2a3,0x1),_0x4a5131--,_0x50ce37['isAdded']=!0x1);}for(let _0x1b5c4a=0x0;_0x1b5c4a<_0x51846d['length'];_0x1b5c4a++)_0x402b7c['has'](_0x51846d[_0x1b5c4a]['pairId'])&&(_0x51846d[_0x1b5c4a]['pairId']=_0x402b7c['get'](_0x51846d[_0x1b5c4a]['pairId']));}['_removeMissingPairs'](_0x46080f){const _0x3904ff=new Set(_0x46080f['map'](_0x1deede=>_0x1deede['id']));for(let _0x588f15=0x0;_0x588f15<_0x46080f['length'];_0x588f15++)_0x3904ff['has'](_0x46080f[_0x588f15]['pairId'])||0x0==_0x46080f[_0x588f15]['distance']||(_0x46080f[_0x588f15]['isIncorrect']=!0x0);return _0x46080f['filter'](_0x38ade1=>!_0x38ade1['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1b458f){const _0x47f373=new Set();for(let _0x3593a8=0x0;_0x3593a8<_0x1b458f['length'];_0x3593a8++){if(_0x47f373['has'](_0x1b458f[_0x3593a8]['id'])&&_0x1b458f[_0x3593a8]['isRemoved']&&(_0x1b458f[_0x3593a8]['isIncorrect']=!0x0),_0x1b458f[_0x3593a8]['isIncorrect'])continue;if(0x0==_0x1b458f[_0x3593a8]['distance'])continue;if('elementStart'!=_0x1b458f[_0x3593a8]['type'])continue;if(null==_0x1b458f[_0x3593a8]['pairId'])continue;let _0x5b4657=_0x3593a8+0x1,_0x54323a=0x0;for(;_0x1b458f[_0x5b4657]['id']!=_0x1b458f[_0x3593a8]['pairId'];)'elementStart'==_0x1b458f[_0x5b4657]['type']?_0x54323a++:'elementEnd'==_0x1b458f[_0x5b4657]['type']&&_0x54323a--,_0x5b4657++;if(0x0!=_0x54323a){if(_0x1b458f[_0x3593a8]['isRemoved'])_0x1b458f[_0x3593a8]['isIncorrect']=!0x0;else{for(;_0x5b4657!=_0x3593a8;)_0x1b458f[_0x5b4657]['isRemoved']&&0x0!=_0x1b458f[_0x5b4657]['distance']&&(_0x1b458f[_0x5b4657]['isIncorrect']=!0x0,_0x47f373['add'](_0x1b458f[_0x5b4657]['pairId'])),_0x5b4657--;}}}return _0x1b458f['filter'](_0x4b4b3d=>!_0x4b4b3d['isIncorrect']);}['_removeUnsupportedChanges'](_0x47cf84){const _0xde3b86=this['editor']['model']['schema'];for(let _0x1046e9=0x0;_0x1046e9<_0x47cf84['length'];_0x1046e9++){if(!(_0x47cf84[_0x1046e9]['isAdded']||_0x47cf84[_0x1046e9]['isAddSuggestion']||_0x47cf84[_0x1046e9]['isRemoved']||_0x47cf84[_0x1046e9]['isRemoveSuggestion']))continue;if(0x0==_0x47cf84[_0x1046e9]['distance'])continue;const _0xb26f9b=_0x47cf84[_0x1046e9]['item'];_0xde3b86['isBlock'](_0xb26f9b)||_0xde3b86['isLimit'](_0xb26f9b)||(_0x47cf84[_0x1046e9]['isAdded']&&delete _0x47cf84[_0x1046e9]['isAdded'],_0x47cf84[_0x1046e9]['isAddSuggestion']&&delete _0x47cf84[_0x1046e9]['isAddSuggestion'],_0x47cf84[_0x1046e9]['isRemoveSuggestion']&&delete _0x47cf84[_0x1046e9]['isRemoveSuggestion'],_0x47cf84[_0x1046e9]['isRemoved']&&(_0x47cf84[_0x1046e9]['isIncorrect']=!0x0));}return _0x47cf84['filter'](_0x223d3a=>!_0x223d3a['isIncorrect']);}['_makeModelFromTape'](_0x4d89d3,_0x4e2c6b,_0x399f46){const _0x2cf7a5=new mt(),_0x5ac5b1=[],_0x227c8c=new Map(),_0x41329e=this['editor']['model'],_0x2ab01a=_0x41329e['schema'],_0x176a10=[_0x2cf7a5],_0x345b02={},_0x4abf1e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xde9245=null;const _0x2e76f0=[0x0];for(let _0x13ab94=0x0;_0x13ab94<_0x4d89d3['length'];_0x13ab94++)if('elementStart'===_0x4d89d3[_0x13ab94]['type']){_0x4d89d3[_0x13ab94]['previousPosition']=_0x41329e['createPositionFromPath'](_0x2cf7a5,_0x2e76f0);const _0x3ee4df=new ft(_0x4d89d3[_0x13ab94]['item']['name'],_0x4d89d3[_0x13ab94]['item']['getAttributes']());_0x176a10[0x0]['_appendChild'](_0x3ee4df),_0x2e76f0['push'](0x0),_0x176a10['unshift'](_0x3ee4df),_0x4d89d3[_0x13ab94]['nextPosition']=_0x41329e['createPositionFromPath'](_0x2cf7a5,_0x2e76f0);}else'elementEnd'===_0x4d89d3[_0x13ab94]['type']?(_0x176a10['shift'](),_0x4d89d3[_0x13ab94]['previousPosition']=_0x41329e['createPositionFromPath'](_0x2cf7a5,_0x2e76f0),_0x2e76f0['pop'](),_0x2e76f0[_0x2e76f0['length']-0x1]++,_0x4d89d3[_0x13ab94]['nextPosition']=_0x41329e['createPositionFromPath'](_0x2cf7a5,_0x2e76f0)):(_0x4d89d3[_0x13ab94]['previousPosition']=_0x41329e['createPositionFromPath'](_0x2cf7a5,_0x2e76f0),_0xde9245?_0xde9245['_data']+=_0x4d89d3[_0x13ab94]['item']['data']:_0xde9245=new wt(_0x4d89d3[_0x13ab94]['item']['data'],_0x4d89d3[_0x13ab94]['item']['getAttributes']()),_0x4d89d3[_0x13ab94+0x1]&&'text'===_0x4d89d3[_0x13ab94+0x1]['type']&&_0xfe2d5(_0xde9245,_0x4d89d3[_0x13ab94+0x1]['item'])||(_0x176a10[0x0]['_appendChild'](_0xde9245),_0xde9245=null),_0x2e76f0[_0x2e76f0['length']-0x1]+=_0x4d89d3[_0x13ab94]['item']['offsetSize'],_0x4d89d3[_0x13ab94]['nextPosition']=_0x41329e['createPositionFromPath'](_0x2cf7a5,_0x2e76f0));for(let _0x3e039f=0x0;_0x3e039f<_0x4d89d3['length'];_0x3e039f++){const _0x40a6e0=_0x4d89d3[_0x3e039f]['previousPosition'],_0x1e462b=_0x4d89d3[_0x3e039f]['nextPosition'];for(const _0x1130db of _0x4d89d3[_0x3e039f]['markersStart'])_0x227c8c['set'](_0x1130db,{'start':_0x40a6e0,'end':null});_0x322be7('isRemoveSuggestion',_0x3e039f,_0x40a6e0,_0x1e462b),_0x322be7('isAddSuggestion',_0x3e039f,_0x40a6e0,_0x1e462b),_0x322be7('isRemoved',_0x3e039f,_0x40a6e0,_0x1e462b),_0x322be7('isAdded',_0x3e039f,_0x40a6e0,_0x1e462b);for(const _0x1b7371 of _0x4d89d3[_0x3e039f]['markersEnd']){_0x227c8c['get'](_0x1b7371)['end']=_0x1e462b;}}for(const [_0x37c674,_0x54c6fc]of _0x227c8c){const _0xfec519=this['editor']['model']['createRange'](_0x54c6fc['start'],_0x54c6fc['end']);_0x2cf7a5['markers']['set'](_0x37c674,_0xfec519);}return _0x5ac5b1['sort']((_0x356824,_0x136928)=>{const _0x1560f5=_0x2cf7a5['markers']['get']('revision:'+_0x356824['id']),_0x293dba=_0x2cf7a5['markers']['get']('revision:'+_0x136928['id']);return _0x1560f5['start']['isBefore'](_0x293dba['start'])?-0x1:_0x1560f5['start']['isAfter'](_0x293dba['start'])?0x1:_0x1560f5['end']['isBefore'](_0x293dba['end'])?-0x1:_0x1560f5['end']['isAfter'](_0x293dba['end'])?0x1:'add'===_0x356824['type']?-0x1:0x1;}),{'root':_0x2cf7a5,'changes':_0x5ac5b1};function _0x322be7(_0x38b06c,_0x1a3f28,_0x441cd1,_0x31bb75){const _0x1ea697=!!_0x4d89d3[_0x1a3f28][_0x38b06c],_0x38e1ee=_0x1ea697?_0x4d89d3[_0x1a3f28][_0x38b06c]['userId']:null,_0x542846=_0x1a3f28===_0x4d89d3['length']-0x1,_0x169466=_0x4abf1e[_0x38b06c][0x0],_0x4548c2=_0x2ab01a['isObject'](_0x4d89d3[_0x1a3f28]['item']);!_0x345b02[_0x38b06c]&&_0x1ea697?_0x345b02[_0x38b06c]={'start':_0x441cd1,'tapeItem':_0x4d89d3[_0x1a3f28],'userId':_0x38e1ee,'type':_0x38b06c}:_0x345b02[_0x38b06c]&&!_0x1ea697?(_0x345b02[_0x38b06c]['end']=_0x441cd1,_0x5239cd(_0x345b02[_0x38b06c]),_0x345b02[_0x38b06c]=null):_0x345b02[_0x38b06c]&&_0x1ea697&&_0x345b02[_0x38b06c]['userId']!==_0x38e1ee&&(_0x345b02[_0x38b06c]['end']=_0x441cd1,_0x169466&&_0x169466['userId']===_0x345b02[_0x38b06c]['userId']||_0x5239cd(_0x345b02[_0x38b06c]),_0x345b02[_0x38b06c]={'start':_0x441cd1,'tapeItem':_0x4d89d3[_0x1a3f28],'userId':_0x38e1ee,'type':_0x38b06c}),_0x345b02[_0x38b06c]&&_0x4548c2&&('elementStart'!==_0x4d89d3[_0x1a3f28]['type']||_0x169466&&_0x169466['userId']===_0x38e1ee||_0x4abf1e[_0x38b06c]['unshift']({'userId':_0x38e1ee,'object':_0x4d89d3[_0x1a3f28]['item'],'change':_0x345b02[_0x38b06c]}),'elementEnd'===_0x4d89d3[_0x1a3f28]['type']&&_0x169466&&_0x169466['object']===_0x4d89d3[_0x1a3f28]['item']&&(_0x4abf1e[_0x38b06c]['shift'](),_0x345b02[_0x38b06c]=_0x169466['change'])),_0x345b02[_0x38b06c]&&_0x542846&&(_0x345b02[_0x38b06c]['end']=_0x31bb75,_0x5239cd(_0x345b02[_0x38b06c]),_0x345b02[_0x38b06c]=null);}function _0x5239cd({start:_0x4efedf,end:_0xe8dcdc,tapeItem:_0x150b93,userId:_0x99343c,type:_0x1370d3}){const _0x4af776=_0x150b93['item'],_0xa97641=_0x41329e['schema']['isBlock'](_0x4af776)&&!_0x41329e['schema']['isLimit'](_0x4af776),_0x4a6d98=_0x4efedf['nodeAfter']==_0xe8dcdc['parent']&&_0xe8dcdc['isAtStart'];if(_0xa97641&&_0x4a6d98)return;const _0x3d405a=_0x41329e['createRange'](_0x4efedf,_0xe8dcdc),_0xf585b5=_0x4e2c6b['get'](_0x99343c),_0x10b897=new r({'author':_0xf585b5,'type':'isAdded'==_0x1370d3||'isAddSuggestion'==_0x1370d3?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1370d3||'isRemoveSuggestion'==_0x1370d3},'createdAt':new Date(),'rootName':_0x399f46});_0x5ac5b1['push'](_0x10b897),_0x2cf7a5['markers']['set']('revision:'+_0x10b897['id'],_0x3d405a);}function _0xfe2d5(_0x3c4b8f,_0x31dd5b){const _0x39916a=_0x3c4b8f['getAttributes'](),_0x209205=_0x31dd5b['getAttributes']();for(const _0x45e6d9 of _0x39916a){if(_0x45e6d9[0x1]!==_0x31dd5b['getAttribute'](_0x45e6d9[0x0]))return!0x1;_0x209205['next']();}return _0x209205['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xb7c414=>{const _0x2e4db4=_0xb7c414['markerName']['split'](':')[0x1],_0x3f597e=this['_getChangeFromId'](_0x2e4db4);if(!_0x3f597e)return null;const _0x370db3='add'==_0x3f597e['type']?'insertion':'deletion',_0xdd6dc6=['ck-suggestion-marker','ck-suggestion-marker-'+_0x370db3];return _0x3f597e['data']['isSuggestion']&&_0xdd6dc6['push']('ck-suggestion-marker-'+_0x370db3+'-new'),this['activeChange']==_0x3f597e&&_0xdd6dc6['push']('ck-suggestion-marker--active'),{'classes':_0xdd6dc6,'attributes':{'data-change-id':_0x2e4db4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2d2abc=>{_0x2d2abc['on']('element:pre',(_0x478d43,_0x3d2534,_0x137416)=>{const _0x45a071=_0x3d2534['viewItem']['getChild'](0x0);if(!_0x45a071||!_0x45a071['is']('element','code'))return;if(!_0x137416['consumable']['consume'](_0x45a071,{'attributes':['vid_start','vid_end']}))return;const _0x1e946c=_0x3d2534['modelRange']['start']['nodeAfter'];_0x137416['writer']['setAttribute']('vid_start',_0x45a071['getAttribute']('vid_start'),_0x1e946c),_0x137416['writer']['setAttribute']('vid_end',_0x45a071['getAttribute']('vid_end'),_0x1e946c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2ecddf=>{_0x2ecddf['on']('element',(_0x3896a2,_0x493578,_0x37c51a)=>{if(!_0x37c51a['consumable']['consume'](_0x493578['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x493578['modelRange']['isCollapsed'])return;const _0x530eec=_0x493578['modelRange']['start']['nodeAfter'];_0x530eec['hasAttribute']('vid_start')||_0x530eec['hasAttribute']('vid')||(_0x37c51a['writer']['setAttribute']('vid_start',_0x493578['viewItem']['getAttribute']('vid_start'),_0x530eec),_0x37c51a['writer']['setAttribute']('vid_end',_0x493578['viewItem']['getAttribute']('vid_end'),_0x530eec));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x31965b=>_0x31965b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x384f29,[,_0x5339bf])=>{['vid_start','vid_end','vid']['includes'](_0x5339bf)&&(_0x384f29['return']=!0x0,_0x384f29['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4fed4b=>{_0x4fed4b['on']('attribute:vid',(_0x59e124,_0x34f92b,_0x177b37)=>{if('\x20'!=_0x34f92b['item']['data']||_0x34f92b['item']['parent']['maxOffset']>0x1)return;if(!_0x177b37['consumable']['consume'](_0x34f92b['item'],_0x59e124['name']))return;const _0x3f2f14=_0x177b37['writer'],_0x465cf4=_0x177b37['mapper']['toViewRange'](_0x34f92b['range']);_0x3f2f14['wrap'](_0x465cf4,_0x3f2f14['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xcb3653){const _0x2da923=_0xcb3653['plugins']['get']('RevisionViewer');return(_0x469861,_0x942e75,_0x5cde88)=>{const _0x109ffe=_0x942e75['markerName']['split'](':')[0x1],_0x51b34e=_0x2da923['_getChangeFromId'](_0x109ffe);if(!_0x51b34e)return null;const _0x56d435='add'==_0x51b34e['type']?'split':'merge';if(!_0x5cde88['consumable']['test'](_0x942e75['markerRange'],_0x469861['name']))return;const _0x27fed9=_0x942e75['markerRange']['getWalker'](),_0x48bb3a=_0x942e75['markerRange']['start'],_0x117240=_0xcb3653['model']['schema'];let _0x171b74=null,_0x28ddf4=null,_0x148b3c=!0x1,_0x4ab112=!0x1;for(const _0x36c39d of _0x27fed9){const _0x21ac64=_0x36c39d['item'];_0x148b3c=_0x148b3c||_0x117240['isContent'](_0x21ac64);const _0x3bf332=_0x5cde88['mapper']['toViewElement'](_0x21ac64);if(_0x3bf332&&_0x3bf332['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x36c39d['type']&&(_0x117240['isBlock'](_0x21ac64)&&!_0x117240['isLimit'](_0x21ac64)&&(_0x21ac64['nextSibling']||_0x48bb3a['isAtEnd']?_0x171b74&&_0x171b74['parent']==_0x21ac64||(_0x171b74=_0x21ac64,_0x233eda(_0x36c39d['previousPosition']),_0x4ab112=!0x0):_0x28ddf4=_0x28ddf4||_0x36c39d['previousPosition']));}function _0x233eda(_0x5895e6){const _0x27e57c=_0x5cde88['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56d435}),_0x331be5=_0x5cde88['mapper']['toViewPosition'](_0x5895e6);_0x51b34e['data']['isSuggestion']&&_0x5cde88['writer']['addClass']('ck-suggestion-marker-'+_0x56d435+'-new',_0x27e57c),_0x2da923['activeChange']==_0x51b34e&&_0x5cde88['writer']['addClass']('ck-suggestion-marker--active',_0x27e57c),_0x5cde88['writer']['insert'](_0x331be5,_0x27e57c),_0x5cde88['mapper']['bindElementToMarker'](_0x27e57c,_0x942e75['markerName']);}_0x148b3c||_0x4ab112||!_0x28ddf4||_0x233eda(_0x28ddf4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x59a327,_0x12afb8,_0x4fdece)=>{const _0x1eb118=_0x4fdece['mapper']['markerNameToElements'](_0x12afb8['markerName']);if(_0x1eb118){for(const _0x4aff79 of _0x1eb118)(_0x4aff79['hasClass']('ck-suggestion-marker-split')||_0x4aff79['hasClass']('ck-suggestion-marker-merge'))&&(_0x4fdece['mapper']['unbindElementFromMarkerName'](_0x4aff79,_0x12afb8['markerName']),_0x4fdece['writer']['remove'](_0x4aff79));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3965cb,_0xb32362,_0x27ad7d)=>{const _0x872710=_0xb32362['markerName']['split'](':')[0x1],_0x120b81=this['_getChangeFromId'](_0x872710);if(!_0x120b81)return null;const _0x4dee37='add'==_0x120b81['type']?'split':'merge';if(_0x27ad7d['consumable']['test'](_0xb32362['markerRange'],_0x3965cb['name']))for(const _0x12e8e1 of _0xb32362['markerRange']['getItems']()){if(!_0x12e8e1['is']('element','softBreak'))continue;const _0xa8e63b=_0x27ad7d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4dee37}),_0x31f146=_0x27ad7d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x12e8e1));_0x120b81['data']['isSuggestion']&&_0x27ad7d['writer']['addClass']('ck-suggestion-marker-'+_0x4dee37+'-new',_0xa8e63b),this['activeChange']==_0x120b81&&_0x27ad7d['writer']['addClass']('ck-suggestion-marker--active',_0xa8e63b),_0x27ad7d['writer']['insert'](_0x31f146,_0xa8e63b),_0x27ad7d['mapper']['bindElementToMarker'](_0xa8e63b,_0xb32362['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x21c243=>{for(const _0xc42a92 of this['editor']['model']['document']['getRootNames']()){const _0x2b4d3e=this['editor']['model']['document']['getRoot'](_0xc42a92),_0x1ab09e=this['editor']['editing']['view']['document']['getRoot'](_0xc42a92);if(_0x1ab09e){const _0x28e545=_0x2b4d3e['getAttribute']('revisionHistoryAttachChange');if(_0x21c243['removeAttribute']('data-change-id',_0x1ab09e),_0x21c243['removeClass']('ck-revision-history-root-add',_0x1ab09e),_0x21c243['removeClass']('ck-revision-history-root-remove',_0x1ab09e),_0x21c243['removeClass']('ck-revision-history-root--active',_0x1ab09e),_0x28e545){const _0x54de02=this['_getChangeFromId'](_0x28e545);if(!_0x54de02)return null;_0x21c243['setAttribute']('data-change-id',_0x28e545,_0x1ab09e),_0x21c243['addClass']('ck-revision-history-root-'+_0x54de02['type'],_0x1ab09e),this['activeChange']==_0x54de02&&_0x21c243['addClass']('ck-revision-history-root--active',_0x1ab09e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2c1acf=>'revision-comment:'+_0x2c1acf,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2a4009=>'revision-suggestion:'+_0x2a4009,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5639f3=>({'name':'suggestion:'+_0x5639f3,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x42550f=>{const _0xc15d05=_0x42550f['markerName']['split'](':')[0x1];return'insertion'!=_0xc15d05&&'deletion'!=_0xc15d05?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xc15d05]};}}),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',(_0x6baf1a,_0x11bb2e,_0x28b7c5)=>{const _0x2b68f8=_0x28b7c5['mapper']['markerNameToElements'](_0x11bb2e['markerName']);if(_0x2b68f8){for(const _0x507e09 of _0x2b68f8)_0x507e09['is']('uiElement')&&(_0x28b7c5['mapper']['unbindElementFromMarkerName'](_0x507e09,_0x11bb2e['markerName']),_0x28b7c5['writer']['remove'](_0x507e09));}},{'priority':'high'});}['_getChangeFromId'](_0x3a1489){return this['_changeIdToChange']['get'](_0x3a1489);}['_getViewForChange'](_0x48620f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x48620f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x8872df,_0x48deee,_0xc47ea7,_0x53bec4)=>{_0x53bec4&&this['_balloon']['remove'](_0x53bec4),_0xc47ea7&&(this['_balloon']['add']({'view':_0xc47ea7,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2876b9=this['editor']['editing'],_0x18fe18=this['_getChangeFromId'](_0xc47ea7['changeId']);let _0x241662;if(_0x18fe18['data']['isOnRoot']){const _0x13ada4=_0x2876b9['view']['getDomRoot'](_0x18fe18['rootName']);_0x241662=Array['from'](_0x13ada4['getClientRects']());}else{const _0x49a797=this['editor']['model']['markers']['get']('revision:'+_0xc47ea7['changeId']);_0x241662=Array['from'](_0x2876b9['mapper']['markerNameToElements'](_0x49a797['name']))['map'](_0x169837=>_0x2876b9['view']['domConverter']['mapViewToDom'](_0x169837))['map'](_0x2c3a84=>Array['from'](_0x2c3a84['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x241662[0x0];return _0x241662['find'](_0x2f4400=>_0x2f4400['top']-0x3<=this['_activeViewTarget']['y']&&_0x2f4400['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2f4400['left']-0x3<=this['_activeViewTarget']['x']&&_0x2f4400['right']+0x3>=this['_activeViewTarget']['x'])||_0x241662[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3657a9,_0x326a9b,_0x37718b,_0x91b6fb)=>{this['activeView']=_0x37718b?this['_getViewForChange'](_0x37718b):null,this['editor']['model']['change'](()=>{const _0xd9cf32=this['editor']['editing'];_0x91b6fb&&(_0x91b6fb['data']['isOnRoot']?_0xd9cf32['view']['change'](_0x1bdc33=>{_0x1bdc33['removeClass']('ck-revision-history-root--active',_0xd9cf32['view']['document']['getRoot'](_0x91b6fb['rootName']));}):_0xd9cf32['reconvertMarker']('revision:'+_0x91b6fb['id'])),_0x37718b&&(_0x37718b['data']['isOnRoot']?_0xd9cf32['view']['change'](_0x2fe411=>{_0x2fe411['addClass']('ck-revision-history-root--active',_0xd9cf32['view']['document']['getRoot'](_0x37718b['rootName']));}):_0xd9cf32['reconvertMarker']('revision:'+_0x37718b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3b1c6a,_0x4d0724)=>{if(this['activeChange'])return;const _0x4e6af4=this['_findChangeIdFromDomTarget'](_0x4d0724['target']),_0x15b7a7=this['_changeIdToChange']['get'](_0x4e6af4);_0x15b7a7?(this['_activeViewTarget']={'x':_0x4d0724['domEvent']['x'],'y':_0x4d0724['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x15b7a7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x426548,_0x1cc6bc)=>{const _0x5dc0ab=this['_findChangeIdFromDomTarget'](_0x1cc6bc['target']),_0x4cef39=this['_changeIdToChange']['get'](_0x5dc0ab);_0x4cef39?(this['_activeViewTarget']={'x':_0x1cc6bc['domEvent']['x'],'y':_0x1cc6bc['domEvent']['y']},_0x4cef39===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4cef39):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x123536){do{const _0x3f3d33=_0x123536['getAttribute']('data-change-id');if(_0x3f3d33)return _0x3f3d33;_0x123536=_0x123536['parent'];}while(_0x123536);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1362d0=>{for(const _0x4c9524 of this['editor']['model']['markers'])_0x1362d0['removeMarker'](_0x4c9524);});}}function Z(_0x5d1320,_0x392d28){return(_0x210c6d,_0xcc8dbd,_0x5d705d)=>{if(!_0x5d705d['consumable']['test'](_0xcc8dbd['markerRange'],_0x210c6d['name']))return;const _0x23ca31=_0xcc8dbd['markerRange']['getWalker'](),_0x8945e6=_0xcc8dbd['markerRange']['start'],_0x145bc5=_0x5d1320['model']['schema'];let _0x564356=null,_0x37a547=null,_0x138398=!0x1,_0x5efa9a=!0x1;for(const _0x2748fb of _0x23ca31){const _0x17835c=_0x2748fb['item'];_0x138398=_0x138398||_0x145bc5['isContent'](_0x17835c);const _0x49c493=_0x5d705d['mapper']['toViewElement'](_0x17835c);if(_0x49c493&&_0x49c493['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2748fb['type']&&(_0x145bc5['isBlock'](_0x17835c)&&!_0x145bc5['isLimit'](_0x17835c)&&(_0x17835c['nextSibling']||_0x8945e6['isAtEnd']?_0x564356&&_0x564356['parent']==_0x17835c||(_0x564356=_0x17835c,_0x5043f3(_0x2748fb['previousPosition']),_0x5efa9a=!0x0):_0x37a547=_0x37a547||_0x2748fb['previousPosition']));}function _0x5043f3(_0xcf622b){const _0x55abc3=_0x5d705d['mapper']['toViewPosition'](_0xcf622b),_0xdc7f74=_0x5d705d['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x392d28});_0x5d705d['writer']['insert'](_0x55abc3,_0xdc7f74),_0x5d705d['mapper']['bindElementToMarker'](_0xdc7f74,_0xcc8dbd['markerName']);}_0x138398||_0x5efa9a||!_0x37a547||_0x5043f3(_0x37a547);};}class _t extends _0x51a0f9{constructor(_0x297444){super(_0x297444);const _0x500f4f=_0x297444['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x500f4f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x500f4f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x30bcd6=this['editor'],_0x3604c1=_0x30bcd6['plugins']['get'](d),_0x3d0db5=_0x3604c1['isReady']?_0x3604c1['diff']['newRevisionId']:null;_0x30bcd6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3d0db5);}['refresh'](){const {isReady:_0x280938,isEnabled:_0x16fe9c,repository:_0x255ba4,diff:_0xbcace1}=this['editor']['plugins']['get'](d),_0x2eb13e=_0xbcace1&&_0x255ba4['getLaterVisibleRevision'](_0xbcace1['newRevisionId']);this['isEnabled']=_0x280938&&_0x16fe9c&&Boolean(_0x2eb13e);}}class yt extends _0x51a0f9{['_step'];constructor(_0x54f5e8,{direction:_0xdca4cb}){super(_0x54f5e8);const _0x54a811=_0x54f5e8['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xdca4cb?0x1:-0x1,this['listenTo'](_0x54a811,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x54a811,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x54a811,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2eda61=this['editor'],_0x29f8b6=_0x2eda61['plugins']['get'](d),{isNavigationMode:_0x1b09b4,currentChangeNumber:_0x53789c}=_0x29f8b6;let _0x1ad081;if(_0x29f8b6['activeChange']=_0x1b09b4?_0x29f8b6['diff']['changes']['get'](_0x53789c+this['_step']):_0x29f8b6['diff']['changes']['first'],_0x29f8b6['activeChange']['data']['isOnRoot'])_0x1ad081=_0x2eda61['editing']['view']['getDomRoot'](_0x29f8b6['activeChange']['rootName']);else{const _0x10b2cc=_0x2eda61['model']['markers']['get']('revision:'+_0x29f8b6['activeChange']['id']);_0x1ad081=_0x3af131(_0x2eda61['editing'],_0x10b2cc);}_0x28d2ba({'target':_0x1ad081,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3015ed,currentChangeNumber:_0x15a758,numberOfChanges:_0x12ea6b,isReady:_0xd71da,isEnabled:_0x26fada}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x26fada&&_0xd71da&&_0x12ea6b)&&(!_0x3015ed||(0x1===this['_step']?_0x15a758<_0x12ea6b-0x1:_0x15a758>0x0));}}class di extends _0x143daf{constructor(_0x53453c){super(_0x53453c);const _0x5223ab=this['bindTemplate'],_0xbd978=new _0x14e070(_0x53453c),_0x24d8a2=new _0x14e070(_0x53453c);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',(_0x2ae753,_0x3c4c9a)=>_0x2ae753&&_0x3c4c9a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3654a4,_0x1cffa2,_0x48fe04,_0x480e34)=>{if(!_0x3654a4)return m(_0x53453c,'Loading...');if(!_0x48fe04)return m(_0x53453c,'No\x20changes');const _0x523aa9=m(_0x53453c,'NUMBER_OF_CHANGES',_0x48fe04);return _0x480e34?m(_0x53453c,'X_OF_Y_CHANGES',[_0x1cffa2+0x1,_0x48fe04]):_0x523aa9;}),_0xbd978['set']({'label':m(_0x53453c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x24d8a2['set']({'label':m(_0x53453c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0xbd978['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x24d8a2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xbd978['on']('execute',()=>this['fire']('execute','backward')),_0x24d8a2['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',_0x5223ab['if']('_isStatusLabelVisible','ck-hidden',_0x388f0a=>!_0x388f0a)]},'children':[{'text':_0x5223ab['to']('isNavigationMode',_0x5397e1=>_0x5397e1?m(_0x53453c,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x53453c,'Total')+':\x20')}]},{'text':_0x5223ab['to']('_statusText')}]},new _0x544fb9(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xbd978,_0x24d8a2]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x987c78{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x39abc3=this['editor']['editing']['view'];_0x39abc3['change'](_0x1d4c3a=>{for(const _0x2c0064 of _0x39abc3['document']['roots'])_0x1d4c3a['addClass'](ce,_0x2c0064);});}['hide'](){const _0x557714=this['editor']['editing']['view'];_0x557714['change'](_0x4c4da9=>{for(const _0x58489d of _0x557714['document']['roots'])_0x4c4da9['removeClass'](ce,_0x58489d);});}}class g extends _0x987c78{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x132bd8=this['editor'],_0x5c96ab=_0x132bd8['plugins']['get'](d),_0x10e483=_0x132bd8['plugins']['get'](ae);_0x132bd8['ui']['componentFactory']['add']('exitToEditing',_0x4de861=>{const _0x2b9bb8=new _0x14e070(_0x4de861);return _0x2b9bb8['set']({'label':m(_0x4de861,'Back\x20to\x20editing'),'icon':_0x390aaa['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2b9bb8,'execute',()=>{_0x132bd8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2b9bb8;}),_0x132bd8['ui']['componentFactory']['add']('restoreRevision',_0x6d100d=>{const _0x812697=new _0x14e070(_0x6d100d);return _0x812697['set']({'label':m(_0x6d100d,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x812697['bind']('isEnabled')['to'](_0x132bd8['commands']['get']('restoreRevision')),this['listenTo'](_0x812697,'execute',()=>_0x132bd8['execute']('restoreRevision')),_0x812697;}),_0x132bd8['ui']['componentFactory']['add']('changesNavigation',_0x1e8f0a=>{const _0x2e9a04=new di(_0x1e8f0a),_0x481732=_0x132bd8['commands']['get']('showPreviousChange'),_0x134143=_0x132bd8['commands']['get']('showNextChange');return _0x2e9a04['bind']('isBackwardNavigationEnabled')['to'](_0x481732,'isEnabled'),_0x2e9a04['bind']('isForwardNavigationEnabled')['to'](_0x134143,'isEnabled'),_0x2e9a04['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5c96ab),this['listenTo'](_0x2e9a04,'execute',(_0x5be5bd,_0x21e1d4)=>{_0x132bd8['execute']('forward'===_0x21e1d4?'showNextChange':'showPreviousChange');}),_0x2e9a04;}),_0x10e483['show'](),_0x5c96ab['on']('change:isReady',(_0x52b88a,_0x3d3202,_0x42f1a5)=>{_0x42f1a5?_0x10e483['hide']():_0x10e483['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x1fa769,_0x4a4976){super(_0x1fa769,_0x4a4976);const _0x290497=this['bindTemplate'];this['set']({'label':m(_0x1fa769,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1fa769,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x290497['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 _0x30e8d6=this['fieldView']['element'];this['_tooltipString']=_0x30e8d6['scrollWidth']>_0x30e8d6['clientWidth']&&_0x30e8d6['value']||'';}}class ti extends _0x143daf{constructor(_0x2ca475,_0x316230,_0x2e095a){super(_0x2ca475);const _0x3e0ea3=new _0x34704c();_0x3e0ea3['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x160302=['ck','ck-revision-history-sidebar__revision-author'];_0x2e095a&&_0x160302['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5c8d30=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2ca475,_0x2e095a?'Revision\x20creator':'Revision\x20author')},'children':[_0x3e0ea3,_0x316230['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x160302},'children':_0x5c8d30});}}function ni(_0x435788,_0x23a843){const _0x2e5284=_0x435788['bindTemplate'],_0x27c369=_0x435788['locale'],_0x224f4e=_0x4d4a7c(_0x27c369);_0x224f4e['panelPosition']='sw';const _0x29b3e9=function(_0x5bb852,_0x4c02e5){const _0x5269e3=function(_0x3a0714,_0x49c6a0){const _0x192fd1=_0x3a0714['locale'],_0x1d04a0={'Compare\x20against\x20selected':m(_0x192fd1,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x192fd1,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x192fd1,'Restore\x20this\x20revision')};return _0x49c6a0['map'](_0x256118=>{const _0x1a127c=_0x1d04a0[_0x256118['name']];return _0x1a127c&&_0x1a127c!==_0x256118['name']&&(_0x256118['name']=_0x1a127c),_0x256118;});}(_0x5bb852,_0x4c02e5),_0xaaa8a4=new _0x49a1a4();for(const _0x526f82 of _0x5269e3){const _0x37777b={'type':'button','model':new to({'label':_0x526f82['name'],'class':_0x526f82['class'],'withText':!0x0,'role':'menuitem','_action':_0x526f82['action']})};_0x37777b['model']['bind']('isEnabled')['to'](_0x5bb852,'isActionsDropdownOpen',_0x56425d=>'function'!=typeof _0x526f82['isEnabled']||(!_0x56425d||_0x526f82['isEnabled'](_0x5bb852))),_0xaaa8a4['add'](_0x37777b);}return _0xaaa8a4;}(_0x435788,_0x23a843);return _0x435788['bind']('isActionsDropdownOpen')['to'](_0x224f4e,'isOpen'),_0x224f4e['buttonView']['set']({'label':m(_0x27c369,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x390aaa['threeVerticalDots']}),_0x224f4e['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2e5284['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2e5284['to'](_0x4928eb=>_0x4928eb['stopPropagation']())}}),_0x224f4e['on']('execute',_0x383245=>{_0x435788['isReady']&&'function'==typeof _0x383245['source']['_action']&&_0x383245['source']['_action'](_0x435788);}),_0x398829(_0x224f4e,_0x29b3e9,{'role':'menu'}),_0x224f4e['listenTo'](_0x435788,'change:isActionsDropdownOpen',(_0x4243b9,_0x5968fa,_0x2e5665)=>{if(_0x2e5665)for(const _0x286c97 of _0x224f4e['listView']['items']){const _0x3fc09f=_0x286c97['children']['first'],_0x9047=_0x23a843['find'](_0x3efd66=>_0x3efd66['action']===_0x3fc09f['_action'])['isVisible'];_0x286c97['isVisible']=void 0x0===_0x9047||_0x9047(_0x435788);}}),_0x224f4e;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x3c04e2(_0x143daf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x10180c,_0x3097d9,_0x2f33ac,_0x54b5bf){super(_0x10180c);const _0x3b2ef0=this['bindTemplate'],_0xa0304d=function(_0x171fa4,_0x3bb1d4){const _0x40eaf1=Array['from'](_0x3bb1d4['authors'])['filter'](_0x2ece77=>_0x2ece77!=_0x3bb1d4['creator']);return _0x3bb1d4['creator']&&_0x40eaf1['unshift'](_0x3bb1d4['creator']),_0x40eaf1['map'](_0x1c15b8=>new ti(_0x171fa4,_0x1c15b8,_0x1c15b8==_0x3bb1d4['creator']));}(_0x10180c,_0x3097d9);this['id']=_0x3097d9['id'],this['_revision']=_0x3097d9,this['_requireRevisionName']=_0x54b5bf,this['bind']('name','createdAt')['to'](_0x3097d9),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xd28c01=>{return _0x319ce6=_0x10180c['uiLanguage'],(_0x3e93e1=_0xd28c01)['toLocaleDateString'](_0x319ce6,{'month':'long','day':'numeric'})+',\x20'+_0x3e93e1['toLocaleTimeString'](_0x319ce6,{'hour':'numeric','minute':'numeric'});var _0x319ce6,_0x3e93e1;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x10180c,_0x2425f4),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x200b80=>_0x200b80||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x37b480,_0x30f932)=>_0x37b480&&_0x30f932),this['revisionActionsView']=_0x2f33ac&&_0x2f33ac['length']?ni(this,_0x2f33ac):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3b2ef0['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3b2ef0['if']('isEnabled','ck-disabled',_0x2905c3=>!_0x2905c3),_0x3b2ef0['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3b2ef0['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3b2ef0['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':_0x3b2ef0['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':_0xa0304d}]},this['revisionActionsView']],'on':{'click':_0x3b2ef0['to'](_0x25ef92=>{_0x25ef92['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x499821=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x499821,'change',()=>{this['_requireRevisionName']&&!_0x499821['value']||this['fire']('setName',{'id':this['id'],'name':_0x499821['value']}),_0x499821['value']||(_0x499821['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(_0x1515bf,_0x21ada8){const _0x48bd55=_0x3cf74a['fromJSDate'](_0x1515bf)['setLocale'](_0x21ada8),_0x2001a6=_0x3cf74a['local'](),_0x29e384=_0x2001a6['minus']({'days':0x1})['startOf']('day');let _0x5d6a21,_0x34faf1;return _0x48bd55['hasSame'](_0x2001a6,'day')?(_0x5d6a21=_0x48bd55['startOf']('day')['toJSDate'](),_0x34faf1=_0x48bd55['toRelativeCalendar']()):_0x48bd55['hasSame'](_0x29e384,'day')?(_0x5d6a21=_0x29e384['toJSDate'](),_0x34faf1=_0x48bd55['toRelativeCalendar']()):_0x48bd55['hasSame'](_0x2001a6,'week')?(_0x5d6a21=_0x48bd55['startOf']('week')['toJSDate'](),_0x34faf1=_0x48bd55['weekdayLong']||''):_0x48bd55['hasSame'](_0x2001a6,'year')?(_0x5d6a21=_0x48bd55['startOf']('month')['toJSDate'](),_0x34faf1=_0x48bd55['monthLong']||''):(_0x5d6a21=_0x48bd55['startOf']('year')['toJSDate'](),_0x34faf1=String(_0x48bd55['year'])),{'startDate':_0x5d6a21,'localizedPeriodName':_0x34faf1};}class vi extends _0x143daf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x35ae6b,_0x2385cb,_0x23f44f,_0x5b3e01){super(_0x35ae6b);const _0x250682=mi(_0x2385cb,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2385cb,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x23f44f,this['_requireRevisionName']=_0x5b3e01,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':_0x250682}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x24f6d2){const _0x5387c8=new ai(this['locale'],_0x24f6d2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5387c8);}['removeRevision'](_0x236cfa){const _0x35923f=this['revisionViews']['find'](_0x2a5a89=>_0x2a5a89['id']===_0x236cfa['id']);this['revisionViews']['remove'](_0x35923f);}}class as extends _0x143daf{constructor(_0x1a7f69){super(_0x1a7f69);const _0x553abb=new _0x34704c();_0x553abb['content']=_0x390aaa['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x553abb,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1a7f69,'Revision\x20history')]}]});}}class li extends _0x143daf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x374fe5,_0x5acdb3,_0x3ebc58,_0xfcb259){super(_0x374fe5);const _0x137a6e=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5acdb3,this['_revisionActions']=_0x3ebc58,this['_requireRevisionName']=_0xfcb259,this['on']('select',(_0x46f665,_0x2c2aca)=>{this['fire']('revisionSelected',_0x2c2aca);}),this['on']('setName',(_0x13234b,_0x4edf48)=>{this['fire']('revisionSetName',_0x4edf48);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x374fe5),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x137a6e['if']('isEnabled','ck-disabled',_0x582c18=>!_0x582c18)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1ac267 of this['_revisions'])this['_addRevision'](_0x1ac267);this['_revisions']['on']('add',(_0x906d91,_0x3249dd)=>{this['_addRevision'](_0x3249dd);}),this['_revisions']['on']('remove',(_0x30f1e2,_0x4915c8)=>{this['_removeRevision'](_0x4915c8);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x35c100=>_0x35c100['revisionViews']['map'](_0x43ee20=>_0x43ee20))['flat']();}['selectRevision'](_0x2a3872){for(const _0x4ceacd of this['revisionViews'])_0x2a3872&&_0x2a3872['id']===_0x4ceacd['id']?_0x4ceacd['select']():_0x4ceacd['deselect']();}['highlightRevisions'](_0x3e0afd){for(const _0x227094 of this['revisionViews'])_0x3e0afd['some'](({id:_0x2c3342})=>_0x2c3342===_0x227094['id'])?_0x227094['highlight']():_0x227094['unhighlight']();}['_addRevision'](_0x52a6d8){const _0x46716d=mi(_0x52a6d8['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x580620=this['timePeriodViews']['get'](0x0);_0x580620&&_0x580620['startDate']['getTime']()===_0x46716d['getTime']()||(_0x580620=new vi(this['locale'],_0x46716d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x580620)),_0x580620['addRevision'](_0x52a6d8);}['_removeRevision'](_0x52c4ec){const _0x324a7a=mi(_0x52c4ec['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x324a7a)['removeRevision'](_0x52c4ec);}['_getTimePeriodViewByStartDate'](_0x307690){return this['timePeriodViews']['find'](_0x23a3c0=>_0x23a3c0['startDate']['getTime']()===_0x307690['getTime']());}}class w extends _0x987c78{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x122d77,uid as _0x26ec69,Collection as _0x35d588,logWarning as _0x2e97d8,FocusTracker as _0x2fa1d4,KeystrokeHandler as _0x28165a,scrollViewportToShowTarget as _0x248613,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x233041}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4c51a9,set as _0x3fce89,unset as _0x1f588a,isEqual as _0x444116}from'es-toolkit/compat';import{Plugin as _0x1b3b72,PendingActions as _0x5e4ec4,Command as _0x4f6e52,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x440b0a,getMarkerDomElement as _0x18151f,ConfirmMixin as _0x1e0d94,sanitizeEditorConfig as _0x13be12}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x290c5e,Element as ut,Range as ft,ViewUIElement as _0x2e158c,ViewRawElement as _0x50fc29,ViewEmptyElement as _0xbcd520,ViewAttributeElement as _0x37234a,ViewContainerElement as _0x5bd0fa,Position as vt,ViewText as _0x2c8453,ViewElement as _0x34046a,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x47b65b,IconChevronUp as _0x1e14a0,IconChevronDown as _0x5e5440,IconUndo as _0x422683,IconUser as _0x4b5c20,IconThreeVerticalDots as _0x1e6a30}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x646829,injectCssTransitionDisabler as ts,submitHandler as _0x5d124a,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x2b8694,ListView as _0x1848d4,ListItemView as _0xea1274,ButtonView as _0x3e960e,MenuBarMenuView as _0x28acf8,MenuBarMenuListView as _0x3a45c2,MenuBarMenuListItemView as _0x59df58,MenuBarMenuListItemButtonView as _0x604b5c,ContextualBalloon as _0xb68efe,ToolbarSeparatorView as _0x1df1ed,IconView as _0x1011e4,addListToDropdown as _0x1338b3,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 _0xd95469}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x122d77(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x153a88){super(),this['id']=_0x153a88['id']||_0x26ec69(),this['creator']=_0x153a88['creator']||null,this['authors']=_0x153a88['authors']||[],this['diffData']=_0x153a88['diffData']||null,this['toVersion']=_0x153a88['toVersion']||0x0,this['fromVersion']=_0x153a88['fromVersion']||0x0,this['set']('name',_0x153a88['name']||''),this['set']('createdAt',_0x153a88['createdAt']||new Date()),this['set']('attributes',_0x153a88['attributes']||{});}['setName'](_0x3c8613){this['_update']({'name':_0x3c8613});}['setAttribute'](_0x6408ab,_0x438c10){const _0x5d47eb=_0x4c51a9(this['attributes']);_0x3fce89(_0x5d47eb,_0x6408ab,_0x438c10),this['_update']({'attributes':_0x5d47eb});}['removeAttribute'](_0x374107){const _0x7f6a9a=_0x4c51a9(this['attributes']);_0x1f588a(_0x7f6a9a,_0x374107),this['_update']({'attributes':_0x7f6a9a});}['_update'](_0x1d21b4,_0x2e881d=!0x1){let _0x452124=!0x1;const _0x30da42={'id':this['id']},_0x45fe3e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x27693d of _0x45fe3e){const _0x5743af=_0x1d21b4[_0x27693d];void 0x0!==_0x5743af&&_0x5743af!==this[_0x27693d]&&(this[_0x27693d]=_0x5743af,_0x30da42[_0x27693d]=_0x5743af,_0x452124=!0x0);}_0x452124&&(_0x30da42['authors']&&(_0x30da42['authorsIds']=_0x30da42['authors']['map'](_0x1f6de9=>_0x1f6de9['id']),delete _0x30da42['authors']),this['fire']('_update',_0x30da42,_0x2e881d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4ec283=>_0x4ec283['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1b3b72{['_revisions'];static get['requires'](){return[_0x440b0a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x402d25){super(_0x402d25),this['_revisions']=new _0x35d588();}['afterInit'](){!async function(_0x3065fe){const _0x59552b=_0x16a1b0([0x74,0x30,0x77,0x48,0x45,0x37,0x66,0x52,0x58,0x36,0x6a,0x51,0x57,0x33,0x47,0x72,0x62,0x76,0x39,0x34,0x44,0x75,0x64,0x6c,0x67,0x7a,0x4e,0x6d,0x43,0x50,0x73,0x4f,0x53,0x31,0x5a,0x41,0x63,0x68,0x71,0x61,0x4b,0x55,0x78,0x46,0x59,0x70,0x54,0x38,0x6b,0x32,0x35,0x4a,0x56,0x79,0x6e,0x49,0x4c,0x4d,0x69,0x42,0x6f,0x65]),_0x373972=0xeb829,_0x162627=0xd92f00a,_0x4298fc=0xd95affa^_0x162627,_0x167fea=window[_0x16a1b0([0x44,0x61,0x74,0x65])][_0x16a1b0([0x6e,0x6f,0x77])](),_0x402eee=_0x3065fe[_0x16a1b0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c0dd3=new window[(_0x16a1b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcf07e5=>{_0x402eee[_0x16a1b0([0x6f,0x6e,0x63,0x65])](_0x16a1b0([0x72,0x65,0x61,0x64,0x79]),_0xcf07e5);}),_0x3931b8={[_0x16a1b0([0x6b,0x74,0x79])]:_0x16a1b0([0x45,0x43]),[_0x16a1b0([0x75,0x73,0x65])]:_0x16a1b0([0x73,0x69,0x67]),[_0x16a1b0([0x63,0x72,0x76])]:_0x16a1b0([0x50,0x2d,0x32,0x35,0x36]),[_0x16a1b0([0x78])]:_0x16a1b0([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]),[_0x16a1b0([0x79])]:_0x16a1b0([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]),[_0x16a1b0([0x61,0x6c,0x67])]:_0x16a1b0([0x45,0x53,0x32,0x35,0x36])},_0x10a6ae=_0x402eee[_0x16a1b0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16a1b0([0x67,0x65,0x74])](_0x16a1b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x13f5dd(){let _0x18c29e,_0x1946e0=null,_0x8df193=null;try{if(_0x10a6ae==_0x16a1b0([0x47,0x50,0x4c]))return _0x16a1b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x18c29e=_0x2b07cd(),!_0x18c29e)return _0x16a1b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x18c29e[_0x16a1b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x8df193=_0x5ae59e(_0x18c29e[_0x16a1b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x18c29e[_0x16a1b0([0x6a,0x74,0x69])])),await _0x3c06dc()?_0x915afc()?_0x2899a8()?_0x16a1b0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17ea5e()?(_0x18c29e[_0x16a1b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16a1b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1946e0=_0x25b2a9(_0x16a1b0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x18c29e[_0x16a1b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16a1b0([0x74,0x72,0x69,0x61,0x6c])&&(_0x1946e0=_0x25b2a9(_0x16a1b0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ef446()):_0x16a1b0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16a1b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16a1b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x24b8d2){return _0x16a1b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2899a8(){const _0x56db76=[_0x16a1b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16a1b0([0x74,0x72,0x69,0x61,0x6c])][_0x16a1b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18c29e[_0x16a1b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x167fea/0x3e8:0xe10*_0x4298fc;return _0x18c29e[_0x16a1b0([0x65,0x78,0x70])]<_0x56db76;}function _0x915afc(){const _0x1cf6d4=_0x18c29e[_0x16a1b0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1cf6d4)return!0x1;if(_0x1cf6d4[_0x16a1b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16a1b0([0x2a])))return!0x0;if(_0x1cf6d4[_0x16a1b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16a1b0([0x52,0x48])))return!0x0;if(_0x1cf6d4[_0x16a1b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16a1b0([0x52,0x52,0x48]))){if(_0x45198f())return!0x0;if(_0xa1b5ca()||_0x398d3f())return!0x0;}return!0x1;}function _0x17ea5e(){const _0x7337f5=_0x18c29e[_0x16a1b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x7337f5||0x0==_0x7337f5[_0x16a1b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2548d2}=new URL(window[_0x16a1b0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x7337f5[_0x16a1b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2548d2))return!0x0;const _0x439b3c=_0x2548d2[_0x16a1b0([0x73,0x70,0x6c,0x69,0x74])](_0x16a1b0([0x2e]));return _0x7337f5[_0x16a1b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b793b=>_0x2b793b[_0x16a1b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16a1b0([0x2a])))[_0x16a1b0([0x6d,0x61,0x70])](_0x29b1b5=>_0x29b1b5[_0x16a1b0([0x73,0x70,0x6c,0x69,0x74])](_0x16a1b0([0x2e])))[_0x16a1b0([0x73,0x6f,0x6d,0x65])](_0x5c2cb4=>_0x439b3c[_0x16a1b0([0x65,0x76,0x65,0x72,0x79])]((_0x4cfee0,_0x2d145a)=>_0x5c2cb4[_0x2d145a]===_0x4cfee0||_0x5c2cb4[_0x2d145a]===_0x16a1b0([0x2a])));}function _0x5ef446(){return _0x1946e0&&_0x8df193?new window[(_0x16a1b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2c3812,_0x13e92b)=>{_0x1946e0[_0x16a1b0([0x74,0x68,0x65,0x6e])](_0x2c3812,_0x13e92b),_0x8df193[_0x16a1b0([0x74,0x68,0x65,0x6e])](_0x51c833=>{_0x51c833!=_0x16a1b0([0x56,0x61,0x6c,0x69,0x64])&&_0x2c3812(_0x51c833);},_0x13e92b);}):_0x1946e0||_0x8df193||_0x16a1b0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ae59e(_0x367526,_0x2a4ab6){return new window[(_0x16a1b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48c576=>{if(_0x56e804())return _0x48c576(_0x16a1b0([0x56,0x61,0x6c,0x69,0x64]));_0x3ff3af(),_0x402eee[_0x16a1b0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16a1b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a2407=!0x1;const _0x1e19c7=_0x26ec69();function _0x288acb(_0x596288){return!!_0x596288&&(typeof _0x596288===_0x16a1b0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x596288===_0x16a1b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x596288[_0x16a1b0([0x74,0x68,0x65,0x6e])]===_0x16a1b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x596288[_0x16a1b0([0x63,0x61,0x74,0x63,0x68])]===_0x16a1b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1bcaf7(_0x1e580a){_0x1769fd(_0x1e580a)[_0x16a1b0([0x74,0x68,0x65,0x6e])](_0x39b237=>{if(!_0x39b237||_0x39b237[_0x16a1b0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16a1b0([0x6f,0x6b]))return _0x16a1b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x55745e(_0x1633b7(_0x1e19c7+_0x2a4ab6))!=_0x39b237[_0x16a1b0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16a1b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16a1b0([0x56,0x61,0x6c,0x69,0x64]);})[_0x16a1b0([0x74,0x68,0x65,0x6e])](_0x3551c1=>(_0x4976b9(),_0x3551c1),()=>{const _0x1afea1=_0x2c1f75();return null==_0x1afea1?(_0x4976b9(),_0x16a1b0([0x56,0x61,0x6c,0x69,0x64])):_0x16a1b0(_0x167fea-_0x1afea1>(0x299e740a^_0x162627)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16a1b0([0x74,0x68,0x65,0x6e])](_0x48c576)[_0x16a1b0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48c576(_0x16a1b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe7fbb=0xda41e8a^_0x162627;function _0x4976b9(){const _0x23ffa9=_0x16a1b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x55745e(_0x1633b7(_0x367526)),_0x79a89d=_0x428faf(_0x55745e(window[_0x16a1b0([0x4d,0x61,0x74,0x68])][_0x16a1b0([0x63,0x65,0x69,0x6c])](_0x167fea/_0xe7fbb)));window[_0x16a1b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16a1b0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23ffa9,_0x79a89d);}function _0x2c1f75(){const _0x46974e=_0x16a1b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x55745e(_0x1633b7(_0x367526)),_0x4696c7=window[_0x16a1b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16a1b0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46974e);return _0x4696c7?window[_0x16a1b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x428faf(_0x4696c7),0x10)*_0xe7fbb:null;}function _0x1769fd(_0x35a326){return new window[(_0x16a1b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b4b7a,_0x1541cf)=>{_0x35a326[_0x16a1b0([0x74,0x68,0x65,0x6e])](_0x1b4b7a,_0x1541cf),window[_0x16a1b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1541cf,0xd9324ca^_0x162627);});}}_0x402eee[_0x16a1b0([0x6f,0x6e])](_0x16a1b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5cac4a,_0x16f0e3)=>{if(_0x16f0e3[0x0]!=_0x367526)return _0x48c576(_0x16a1b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x16f0e3[0x1]={..._0x16f0e3[0x1],[_0x16a1b0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e19c7};},{[_0x16a1b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16a1b0([0x68,0x69,0x67,0x68])}),_0x402eee[_0x16a1b0([0x6f,0x6e])](_0x16a1b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x263872=>{_0x288acb(_0x263872[_0x16a1b0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a2407=!0x0,_0x1bcaf7(_0x263872[_0x16a1b0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16a1b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16a1b0([0x6c,0x6f,0x77])}),_0x4c0dd3[_0x16a1b0([0x74,0x68,0x65,0x6e])](()=>{_0x2a2407||_0x48c576(_0x16a1b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56e804(){return _0x402eee[_0x16a1b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16a1b0([0x76,0x69,0x65,0x77])][_0x16a1b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16a1b0([0x61,0x75,0x74,0x6f]);}function _0x3ff3af(){_0x402eee[_0x16a1b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16a1b0([0x76,0x69,0x65,0x77])][_0x16a1b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16a1b0([0x61,0x75,0x74,0x6f]);}}function _0x25b2a9(_0x3a5506){const _0x58fb76=[new window[(_0x16a1b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x476b63=>setTimeout(_0x476b63,0xd9bcec6^_0x162627)),_0x4c0dd3[_0x16a1b0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16a1b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ac858=>{const _0x2dcdb0=0xd92f00d^_0x162627,_0x4ca140=_0x3065fe[_0x16a1b0([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x54c48c(){_0x4ca140[_0x16a1b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2dcdb0&&_0x1ac858();}_0x54c48c(),_0x4ca140[_0x16a1b0([0x6f,0x6e])](_0x16a1b0([0x61,0x64,0x64]),_0x54c48c);})),new window[(_0x16a1b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b485c=>{function _0x3d9a26(){for(const _0x1d1e0d in window)if(window[_0x16a1b0([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x16a1b0([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1d1e0d))&&window[_0x1d1e0d]==_0x373972)return _0x4b485c();_0x402eee[_0x16a1b0([0x73,0x74,0x61,0x74,0x65])]!=_0x16a1b0([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x16a1b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d9a26,0xd92e382^_0x162627);}_0x37a0fa(_0x16a1b0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x3d9a26();})];return window[_0x16a1b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16a1b0([0x72,0x61,0x63,0x65])](_0x58fb76)[_0x16a1b0([0x74,0x68,0x65,0x6e])](()=>_0x3a5506);}async function _0x481f8c(){if(await _0x4c0dd3,_0x37a0fa(_0x16a1b0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1b8081=_0x3065fe[_0x16a1b0([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x58d8ed=_0x3065fe[_0x16a1b0([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])](_0x1b8081[_0x16a1b0([0x69,0x64])]),_0x1f7fc8=_0x220894(_0x16a1b0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1f7fc8[_0x16a1b0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1b8081['id'],_0x58d8ed?_0x58d8ed['id']:null,!0x0),_0x1f7fc8[_0x16a1b0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x16a1b0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f7fc8[_0x16a1b0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f7fc8[_0x16a1b0([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x33379c,void(_0x1f7fc8[_0x16a1b0([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x33379c);}if(_0x37a0fa(_0x16a1b0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1c7e5c=_0x220894(_0x16a1b0([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1c7e5c[_0x16a1b0([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x16a1b0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1c7e5c[_0x16a1b0([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1c7e5c[_0x16a1b0([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x33379c,_0x1c7e5c[_0x16a1b0([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x33379c;}_0x402eee[_0x16a1b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x16a1b0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x33379c,_0x402eee[_0x16a1b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x16a1b0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x33379c,_0x402eee[_0x16a1b0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16a1b0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45198f(){return _0x37a0fa(_0x16a1b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x220894(_0x16a1b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x16a1b0([0x73,0x74,0x61,0x74,0x65])]==_0x16a1b0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa1b5ca(){return _0x37a0fa(_0x16a1b0([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 _0x398d3f(){return _0x37a0fa(_0x16a1b0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x632e02(_0xce2393){const _0x441351=_0xc5201d();_0x402eee[_0x441351]=_0x16a1b0([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])+_0xce2393,_0xce2393[_0x16a1b0([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x16a1b0([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xc5201d()]=_0x373972),_0xce2393!=_0x16a1b0([0x56,0x61,0x6c,0x69,0x64])&&_0x481f8c();}function _0xc5201d(){const _0x24b9a0=window[_0x16a1b0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16a1b0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16a1b0([0x6e,0x6f,0x77])]())[_0x16a1b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16a1b0([0x2e]),'');let _0x383e10=_0x16a1b0([0x74]);for(let _0x684ad8=0x0;_0x684ad8<_0x24b9a0[_0x16a1b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x684ad8+=0x2){let _0x4640a6=window[_0x16a1b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24b9a0[_0x16a1b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x684ad8,_0x684ad8+0x2));_0x4640a6>=_0x59552b[_0x16a1b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4640a6-=_0x59552b[_0x16a1b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x383e10+=_0x59552b[_0x4640a6];}return _0x383e10;}function _0x2b07cd(){const _0x5e82f7=_0x10a6ae[_0x16a1b0([0x73,0x70,0x6c,0x69,0x74])](_0x16a1b0([0x2e]));if(0x3!=_0x5e82f7[_0x16a1b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1c7d7d(_0x5e82f7[0x1]);function _0x1c7d7d(_0x58e461){const _0x182841=_0x3ce844(_0x58e461);return _0x182841&&_0x5dbabb()?_0x182841:null;function _0x5dbabb(){const _0xcbef4e=_0x182841[_0x16a1b0([0x6a,0x74,0x69])],_0x29cc99=window[_0x16a1b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcbef4e[_0x16a1b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcbef4e[_0x16a1b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x801960={..._0x182841,[_0x16a1b0([0x6a,0x74,0x69])]:_0xcbef4e[_0x16a1b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xcbef4e[_0x16a1b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x801960[_0x16a1b0([0x76,0x63])],_0x1633b7(_0x801960)==_0x29cc99;}}}async function _0x3c06dc(){let _0x4ce9b4=!0x0;try{const _0xc449db=_0x10a6ae[_0x16a1b0([0x73,0x70,0x6c,0x69,0x74])](_0x16a1b0([0x2e])),[_0x11790c,_0x8b3492,_0x180bfa]=_0xc449db;return _0x10f30b(_0x11790c),await _0x2ee1d1(_0x11790c,_0x8b3492,_0x180bfa),_0x4ce9b4;}catch(_0x7c2a92){return!0x1;}function _0x10f30b(_0x221de0){const _0x18441d=_0x3ce844(_0x221de0);_0x18441d&&_0x18441d[_0x16a1b0([0x61,0x6c,0x67])]==_0x16a1b0([0x45,0x53,0x32,0x35,0x36])||(_0x4ce9b4=!0x1);}async function _0x2ee1d1(_0x1002fe,_0xc4e100,_0x5ed979){const _0x33f531=window[_0x16a1b0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16a1b0([0x66,0x72,0x6f,0x6d])](_0x585119(_0x5ed979),_0x4d3f78=>_0x4d3f78[_0x16a1b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20c896=new window[(_0x16a1b0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16a1b0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1002fe+_0x16a1b0([0x2e])+_0xc4e100),_0x5ecc9e=window[_0x16a1b0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16a1b0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ecc9e)return;const _0x55fc1c=await _0x5ecc9e[_0x16a1b0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16a1b0([0x6a,0x77,0x6b]),_0x3931b8,{[_0x16a1b0([0x6e,0x61,0x6d,0x65])]:_0x16a1b0([0x45,0x43,0x44,0x53,0x41]),[_0x16a1b0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16a1b0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16a1b0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ecc9e[_0x16a1b0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16a1b0([0x6e,0x61,0x6d,0x65])]:_0x16a1b0([0x45,0x43,0x44,0x53,0x41]),[_0x16a1b0([0x68,0x61,0x73,0x68])]:{[_0x16a1b0([0x6e,0x61,0x6d,0x65])]:_0x16a1b0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x55fc1c,_0x33f531,_0x20c896)||(_0x4ce9b4=!0x1);}}function _0x3ce844(_0x591018){return _0x591018[_0x16a1b0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16a1b0([0x65,0x79]))?JSON[_0x16a1b0([0x70,0x61,0x72,0x73,0x65])](_0x585119(_0x591018)):null;}function _0x585119(_0x7cb899){return window[_0x16a1b0([0x61,0x74,0x6f,0x62])](_0x7cb899[_0x16a1b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16a1b0([0x2b]))[_0x16a1b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16a1b0([0x2f])));}function _0x1633b7(_0x1eedd8){let _0x164b75=0x1505;function _0x83f68(_0x2e6fa9){for(let _0x58d551=0x0;_0x58d551<_0x2e6fa9[_0x16a1b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x58d551++){const _0x15c22a=_0x2e6fa9[_0x16a1b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x58d551);_0x164b75=(_0x164b75<<0x5)+_0x164b75+_0x15c22a,_0x164b75&=_0x164b75;}}function _0xa8001e(_0x4b9e8f){Array[_0x16a1b0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b9e8f)?_0x4b9e8f[_0x16a1b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xa8001e):_0x4b9e8f&&typeof _0x4b9e8f==_0x16a1b0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16a1b0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b9e8f)[_0x16a1b0([0x73,0x6f,0x72,0x74])]()[_0x16a1b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4949cd,_0x5eb05d])=>{_0x83f68(_0x4949cd),_0xa8001e(_0x5eb05d);}):_0x83f68(window[_0x16a1b0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b9e8f));}return _0xa8001e(_0x1eedd8),_0x164b75>>>0x0;}function _0x55745e(_0x696ddc){return _0x696ddc[_0x16a1b0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16a1b0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16a1b0([0x30]));}function _0x428faf(_0x7e7d97){return _0x7e7d97[_0x16a1b0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16a1b0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16a1b0([0x6a,0x6f,0x69,0x6e])]('');}function _0x37a0fa(_0x2ee5e7){return _0x402eee[_0x16a1b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x16a1b0([0x68,0x61,0x73])](_0x2ee5e7);}function _0x220894(_0x242bde){return _0x402eee[_0x16a1b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x16a1b0([0x67,0x65,0x74])](_0x242bde);}function _0x33379c(){}function _0x16a1b0(_0x2179b7){return _0x2179b7['map'](_0x1b2c59=>String['fromCharCode'](_0x1b2c59))['join']('');}_0x632e02(await _0x13f5dd());}(this);}['createRevision'](_0x43310f){const _0x3e9c21=this['editor']['plugins']['get']('Users');return new h({'id':_0x43310f['id'],'name':_0x43310f['name'],'creator':_0x43310f['creatorId']?_0x3e9c21['getUser'](_0x43310f['creatorId']):null,'diffData':_0x43310f['diffData']||_0x43310f['data'],'authors':_0x43310f['authorsIds']['map'](_0x1521d8=>_0x3e9c21['getUser'](_0x1521d8)),'createdAt':new Date(_0x43310f['createdAt']),'attributes':_0x43310f['attributes'],'fromVersion':_0x43310f['fromVersion'],'toVersion':_0x43310f['toVersion']});}['addRevision'](_0x2faee1,_0xe2faff=0x0){this['_revisions']['add'](_0x2faee1,_0xe2faff);}['getRevision'](_0x2081f2){return this['_revisions']['get'](_0x2081f2);}['getRevisions'](_0x498c46={'toJSON':!0x1}){const _0x33564d=Array['from'](this['_revisions']);return _0x33564d['reverse'](),_0x498c46['toJSON']?_0x33564d['map'](_0x481959=>_0x481959['toJSON']()):_0x33564d;}['getIndex'](_0x3e2732){return this['_revisions']['getIndex'](_0x3e2732);}['getEarlierVisibleRevision'](_0x274b59){const [,_0x5c7489]=this['getRevisionsIterator'](_0x274b59,{'direction':'earlier'});return _0x5c7489;}['getLaterVisibleRevision'](_0x4ab30a){const [,_0x170292]=this['getRevisionsIterator'](_0x4ab30a,{'direction':'later'});return _0x170292;}['getRevisionsInDiff'](_0x2b37e5){const _0x3a5f8a=[];for(const _0x4a600a of this['getRevisionsIterator'](_0x2b37e5['newRevisionId']))if(_0x3a5f8a['push'](_0x4a600a),_0x4a600a['id']===_0x2b37e5['oldRevisionId'])break;return _0x3a5f8a;}*['getRevisionsIterator'](_0x56a5d6,{direction:_0x54cfe1='earlier',filter:_0x5962e5=()=>!0x0}={}){const _0x1e8bc1='earlier'===_0x54cfe1?0x1:-0x1;let _0x251025=this['_revisions']['get'](_0x56a5d6),_0x166419=this['getIndex'](_0x251025);for(yield _0x251025;_0x251025;){if(_0x166419+=_0x1e8bc1,_0x251025=this['getRevision'](_0x166419),!_0x251025)return;_0x5962e5(_0x251025)&&(yield _0x251025);}}}function m(_0x53b5f1,_0x18cd8c,_0x17d590){const t=_0x53b5f1['t'];switch(_0x18cd8c){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'},_0x17d590);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x17d590);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':_0x5bd0fa,'a':_0x37234a,'e':_0xbcd520,'r':_0x50fc29,'u':_0x2e158c};class u extends _0x1b3b72{['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[_0x440b0a,j,_0x5e4ec4];}constructor(_0x221cc4){super(_0x221cc4),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 _0x2cfd41=_0x26ec69();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2cfd41},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 _0x5b7158=this['repository']['getRevision'](0x0),_0x2213e6=_0x5b7158&&null===_0x5b7158['creator']?_0x5b7158:null;if(this['_continueCurrentRevision']=!!_0x2213e6&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x30fcb7=this['_source']['getCurrentRevisionId'](),_0xfca22c=this['repository']['getRevision'](_0x30fcb7);if(_0xfca22c)this['_startingVersion']=_0xfca22c['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3967e3=this['_source']['history']['_operations']['find'](_0x4795ab=>!_0x4795ab['_isInit']),_0x35fe19=_0x3967e3?_0x3967e3['baseVersion']:this['_source']['history']['version'];_0x5b7158?(_0x5b7158['toVersion']<_0x35fe19&&_0x5b7158['_update']({'toVersion':_0x35fe19}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2213e6['id'],this['_startingVersion']=_0x2213e6['fromVersion']):(this['_startingVersion']=_0x5b7158['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x35fe19,this['_continueCurrentRevision']=!0x1);}}else _0x2213e6&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2213e6['toVersion'],this['editor']['model']['document']['history']['version']),_0x2213e6['fromVersion']===_0x2213e6['toVersion']?(0x0!==_0x2213e6['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2213e6['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2213e6['id'],this['_startingVersion']=_0x2213e6['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',_0x22b658=>!_0x22b658),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4f7cb0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4d7720;for(const _0x455a4c in _0x4f7cb0){const _0x1ab73d=_0x455a4c,_0x483099=_0x4f7cb0[_0x1ab73d];if('revisionHistoryLicenseKeyValid'==_0x483099||'revisionHistoryLicenseKeyInvalid'==_0x483099||'revisionHistoryLicenseKeyExpired'==_0x483099||'revisionHistoryLicenseKeyDomainLimit'==_0x483099||'revisionHistoryLicenseKeyNotAllowed'==_0x483099||'revisionHistoryLicenseKeyEvaluationLimit'==_0x483099||'revisionHistoryLicenseKeyTrialLimit'==_0x483099||'revisionHistoryLicenseKeyUsageLimit'==_0x483099){delete _0x4f7cb0[_0x1ab73d],_0x4d7720=_0x483099,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4d7720&&_0x4f7cb0['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4d7720&&_0x4f7cb0['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4d7720&&_0x4f7cb0['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4d7720&&_0x4f7cb0['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4d7720&&_0x4f7cb0['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4d7720&&_0x4f7cb0['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4d7720&&_0x4f7cb0['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x32ecbb=this['repository']['getRevision'](0x0),_0x55f231=await this['getRevisionDocumentData'](_0x32ecbb),_0x312bf2=await this['getRevisionRootsAttributes'](_0x32ecbb);this['_replaceEditorDataWithRevisionData'](_0x55f231,_0x312bf2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x1420d8){this['_source']=_0x1420d8;}async['update'](){const _0x2c538e=await this['_source']['getLatestVersion']();if(_0x2c538e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x21afa2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2c538e});_0x21afa2['authors']=_0x21afa2['authorsIds']['map'](_0x2e722d=>this['editor']['plugins']['get']('Users')['getUser'](_0x2e722d)),this['currentRevision']['_update'](_0x21afa2);}}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'](_0x2fe406={},_0x1a0123=null){const _0x1a0a1f=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1a0123>this['currentRevision']['toVersion']&&(_0x1a0123=null),null===_0x1a0123&&(_0x1a0123=await this['_source']['getLatestVersion']());const _0x43ff3d=this['_getFromVersion'](_0x1a0123),_0x5d2fd9=this['buildRevisionData']({'from':_0x43ff3d,'to':_0x1a0123});if(this['currentRevision']['toVersion']<_0x1a0123){const _0x283fa1=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1a0123,'to':_0x1a0123});_0x283fa1['authors']=[],_0x283fa1['authorsIds']=[],_0x283fa1['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x283fa1,!0x0),delete _0x283fa1['authors'],_0x1a0a1f['push'](_0x283fa1);}_0x2fe406['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2fe406['name']=_0x2fe406['name']||null,_0x2fe406['id']=_0x2fe406['id']||_0x26ec69(),_0x2fe406={..._0x2fe406,..._0x5d2fd9};const _0x3ac9ec=this['addRevisionData'](_0x2fe406);_0x1a0a1f['push'](_0x2fe406);const _0x5ecdbc=this['repository']['getIndex'](_0x3ac9ec);if(0x0!==_0x5ecdbc){const _0x476726=this['repository']['getRevision'](_0x5ecdbc-0x1);if(_0x476726['fromVersion']!==_0x1a0123){const _0x2be1d0=this['_revisionDataBuilder']['getData'](_0x1a0123,_0x476726['toVersion']),_0x250010={'id':_0x476726['id'],'diffData':_0x2be1d0['diffData'],'authorsIds':_0x2be1d0['authorsIds'],'authors':_0x2be1d0['authorsIds']['map'](_0x298d15=>this['editor']['plugins']['get']('Users')['getUser'](_0x298d15)),'fromVersion':_0x1a0123};_0x476726===this['currentRevision']&&(_0x250010['createdAt']=new Date(_0x2fe406['createdAt']['getTime']()+0xa)),_0x476726['_update'](_0x250010,!0x0),delete _0x250010['authors'],_0x1a0a1f['push'](_0x250010);}}if(this['adapter']){for(const _0x443177 of _0x1a0a1f)this['_bufferUpdate'](_0x443177['id'],_0x443177,!0x0);this['sendBufferedUpdates']();}return _0x3ac9ec;}['addRevisionData'](_0x18896f){const _0x1d6462=this['repository']['createRevision'](_0x18896f);return this['adapter']&&_0x1d6462['on']('_update',(_0x2cd8e1,_0x45a7a2,_0x57fc54)=>{_0x57fc54||(this['_bufferUpdate'](_0x45a7a2['id'],_0x45a7a2,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1d6462,this['_findInsertionIndex'](_0x1d6462)),_0x1d6462;}async['getRevisionDocumentData'](_0x28e123){await this['_loadRevisionData'](_0x28e123);const _0x3c18f8={};for(const _0x5b9064 in _0x28e123['diffData']){if(_0x28e123['diffData'][_0x5b9064]['attachChange']&&!_0x28e123['diffData'][_0x5b9064]['attachChange']['isAttached'])continue;const _0x59478f=this['_removeRevisionMarkers'](JSON['parse'](_0x28e123['diffData'][_0x5b9064]['insertions'])),_0xb31364=this['editor']['editing']['view']['document'],_0x11942f=new _0x290c5e(_0xb31364,_0x59478f['map'](_0xf62276=>P(_0xf62276,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3c18f8[_0x5b9064]=this['editor']['data']['processor']['toData'](_0x11942f),this['editor']['data']['processor']['useFillerType']('default');}return _0x3c18f8;}async['getRevisionRootsAttributes'](_0x5d59be){await this['_loadRevisionData'](_0x5d59be);const _0x3fd93c={};for(const _0x3f15ef in _0x5d59be['diffData'])_0x5d59be['diffData'][_0x3f15ef]['attachChange']&&!_0x5d59be['diffData'][_0x3f15ef]['attachChange']['isAttached']||(_0x3fd93c[_0x3f15ef]=_0x5d59be['diffData'][_0x3f15ef]['attributesAfter']||{});return _0x3fd93c;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x574335=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3e552d=0x0;_0x3e552d<_0x574335['length'];_0x3e552d++){const _0x1253a2=_0x574335[_0x3e552d];let _0x2f6d95=!0x1;for(const _0x217b10 of Object['keys'](_0x1253a2))void 0x0===_0x1253a2[_0x217b10]?delete _0x1253a2[_0x217b10]:'id'!==_0x217b10&&(_0x2f6d95=!0x0);_0x2f6d95||(_0x574335[_0x3e552d]=null);}if(_0x574335=_0x574335['filter'](_0x23cea9=>null!==_0x23cea9),!_0x574335['length'])return;for(let _0x59e520=0x0;_0x59e520<_0x574335['length'];_0x59e520++){const _0x28f73f=_0x574335[_0x59e520];void 0x0!==_0x28f73f['fromVersion']&&void 0x0===_0x28f73f['toVersion']&&(_0x28f73f['toVersion']=this['repository']['getRevision'](_0x28f73f['id'])['toVersion']),void 0x0!==_0x28f73f['toVersion']&&void 0x0===_0x28f73f['fromVersion']&&(_0x28f73f['fromVersion']=this['repository']['getRevision'](_0x28f73f['id'])['fromVersion']);}const _0x4f6e20=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x574335,_0x4f6e20)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x40bdb0=>{if(_0x40bdb0){for(const _0x1bd835 of _0x40bdb0)this['setRevisionData']({'id':_0x1bd835['id'],'createdAt':_0x1bd835['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x13d6f6,_0x367fbc){let _0x3d61d1=this['editor']['config']['get']('initialData'),_0x198ad3=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3d61d1){_0x3d61d1={};for(const _0x16e1ce of this['editor']['model']['document']['getRootNames']())_0x3d61d1[_0x16e1ce]='';}if('string'==typeof _0x3d61d1&&(_0x3d61d1={'main':_0x3d61d1}),void 0x0===_0x198ad3){_0x198ad3={};for(const _0x2a0fb1 of this['editor']['model']['document']['getRootNames']())_0x198ad3[_0x2a0fb1]={};}let _0x58ec79=!0x1;const _0x320d44=Object['keys'](_0x3d61d1),_0x1dcca1=Object['keys'](_0x13d6f6);for(const _0x1cc384 of _0x320d44){if(_0x3d61d1[_0x1cc384]!==_0x13d6f6[_0x1cc384]&&''!==_0x3d61d1[_0x1cc384]['trim']()){_0x58ec79=!0x0;break;}if(!_0x444116(_0x198ad3[_0x1cc384],_0x367fbc[_0x1cc384])&&Object['keys'](_0x198ad3[_0x1cc384])['length']>0x0){_0x58ec79=!0x0;break;}}_0x58ec79||(_0x58ec79=_0x1dcca1['some'](_0x3a7b80=>!this['editor']['model']['document']['getRoot'](_0x3a7b80))),_0x58ec79&&_0x2e97d8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3d61d1,'editorRootsAttributes':_0x198ad3,'revisionData':_0x13d6f6,'revisionRootsAttributes':_0x367fbc}),this['editor']['config']['set']('initialData',_0x13d6f6),this['editor']['config']['set']('rootsAttributes',_0x367fbc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5be96b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5be96b['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2d8271){const _0x3b408d=this['repository']['getRevisions']();_0x3b408d['reverse']();let _0xa1c2b=0x0;for(;_0xa1c2b<_0x3b408d['length'];){const _0x59c4b4=_0x3b408d[_0xa1c2b];if(_0x59c4b4===this['currentRevision']){_0xa1c2b++;continue;}if(_0x59c4b4['id']===this['_initialRevisionId'])break;const _0x2fd1a9=_0x2d8271['toVersion']-_0x59c4b4['toVersion']||_0x2d8271['fromVersion']-_0x59c4b4['fromVersion'];if(_0x2fd1a9>0x0)break;if(_0x2fd1a9<0x0)_0xa1c2b++;else{if(!_0x2d8271['creator']&&_0x59c4b4['creator'])break;if(_0x59c4b4['creator']||!_0x2d8271['creator']){if(_0x2d8271['createdAt']>_0x59c4b4['createdAt'])break;_0xa1c2b++;}else _0xa1c2b++;}}return _0xa1c2b;}['setRevisionData'](_0x2ac5ca){const _0x921e9e=this['repository']['getRevision'](_0x2ac5ca['id']);if(_0x2ac5ca['createdAt']&&(_0x2ac5ca['createdAt']=new Date(_0x2ac5ca['createdAt'])),_0x2ac5ca['authorsIds']){const _0x4c1d3e=this['editor']['plugins']['get']('Users');_0x2ac5ca['authors']=_0x2ac5ca['authorsIds']['map'](_0x26fe5f=>_0x4c1d3e['getUser'](_0x26fe5f));}_0x921e9e['_update'](_0x2ac5ca,!0x0);}['buildRevisionData']({revision:_0x4ad8ad=null,from:_0x243ded=null,to:_0x47ba88=null}){_0x243ded=null!==_0x243ded?_0x243ded:_0x4ad8ad['fromVersion'],_0x47ba88=null!==_0x47ba88?_0x47ba88:_0x4ad8ad['toVersion'];const _0x56e871=this['_revisionDataBuilder']['getData'](_0x243ded,_0x47ba88),_0x635319={'diffData':_0x56e871['diffData'],'authorsIds':_0x56e871['authorsIds'],'fromVersion':_0x243ded,'toVersion':_0x47ba88};if(!_0x4ad8ad||_0x47ba88!==_0x4ad8ad['toVersion']){const _0x49ad4d=_0x47ba88-0x1,_0xe29962=this['_source']['history']['getOperation'](_0x49ad4d);_0x635319['createdAt']=_0xe29962&&_0xe29962['createdAt']||new Date();}if(this['_loadedStateData']&&_0x243ded===this['_loadedStateData']['fromVersion']){for(const _0x4c3b5b of this['_loadedStateData']['authors'])_0x635319['authorsIds']['includes'](_0x4c3b5b['id'])||_0x635319['authorsIds']['push'](_0x4c3b5b['id']);}return _0x635319;}['_loadRevisionData'](_0x1185d5){if(!_0x1185d5||_0x1185d5['diffData'])return Promise['resolve']();{const _0x556919=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x556919,'revisionId':_0x1185d5['id']})['then'](_0x1dc22d=>{_0x1185d5['diffData']=_0x1dc22d['diffData'];});}}['_bufferUpdate'](_0x2184fc,_0x3ec471,_0x8f1a09){if(this['_bufferedUpdates']['has'](_0x2184fc)){const _0x4d5554=this['_bufferedUpdates']['get'](_0x2184fc);_0x3ec471=_0x8f1a09?{..._0x4d5554,..._0x3ec471}:{..._0x3ec471,..._0x4d5554};}this['_bufferedUpdates']['set'](_0x2184fc,_0x3ec471);}['_getFromVersion'](_0x1bad5f){const _0x39e8aa=this['repository']['getRevisions']();_0x39e8aa['reverse'](),_0x39e8aa['shift']();const _0x46dbca=_0x39e8aa['find'](_0x5a60e4=>_0x5a60e4['toVersion']<=_0x1bad5f)['toVersion'];return _0x46dbca<this['_startingVersion']?this['_startingVersion']:_0x46dbca;}['_createInitialRevision'](_0x6532f1){const _0x3480d7=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3480d7)this['_initialRevisionId']=_0x3480d7['id'];else{const _0x13de2e=!this['editor']['model']['document']['roots']['find'](_0x58eac3=>this['editor']['model']['hasContent'](_0x58eac3)),_0x3fa348=this['editor']['plugins']['get']('Users')['me']['id'],_0x1cb57d=m(this['editor']['locale'],_0x13de2e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x6532f1,'to':_0x6532f1,'id':this['_initialRevisionId'],'name':_0x1cb57d,'creatorId':_0x3fa348});}}['_createCurrentRevision'](_0x1f9716){const _0x479f81=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x479f81),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1f9716,'to':_0x1f9716,'id':_0x479f81,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4a1747,from:_0x3cf729,to:_0x516f37,creatorId:_0x358375,id:_0x251fad}){const _0x3041bf=this['buildRevisionData']({'from':_0x3cf729,'to':_0x516f37});_0x3041bf['name']=_0x4a1747,_0x3041bf['creatorId']=_0x358375,_0x3041bf['id']=_0x251fad;const _0x51ff14=this['addRevisionData'](_0x3041bf);return this['adapter']&&this['_bufferUpdate'](_0x3041bf['id'],_0x3041bf,!0x0),_0x51ff14;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xfbc024){return(_0xfbc024=_0xfbc024['filter'](_0x52b7ce=>!_0x52b7ce['name']||'revision-start'!==_0x52b7ce['name']&&'revision-end'!==_0x52b7ce['name']))['forEach'](_0x496ae9=>{'string'!=typeof _0x496ae9&&(_0x496ae9['children']=this['_removeRevisionMarkers'](_0x496ae9['children']),_0x496ae9['attributes']=_0x496ae9['attributes']['filter'](_0x3fd9dd=>!_0x3fd9dd[0x0]['startsWith']('data-revision-')));}),_0xfbc024;}}function P(_0x3be13b,_0x36dfc2){const _0x3db4fa=_0x36dfc2['editing']['view']['document'];if('string'==typeof _0x3be13b)return new _0x2c8453(_0x3db4fa,_0x3be13b);{const _0x5ce709=_0x3be13b['children']['map'](_0x61f5a7=>P(_0x61f5a7,_0x36dfc2));return new(E[_0x3be13b['type']]||_0x34046a)(_0x3db4fa,_0x3be13b['name'],_0x3be13b['attributes'],_0x5ce709);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x775652){this['editor']=_0x775652,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'](_0x235026){this['source']=_0x235026;const _0x337452=new Map(),_0x4c0251=new Map(),_0x111c6c=this['editor']['model']['document']['roots']['map'](_0x1968fc=>_0x1968fc['rootName']);for(const _0x419b38 of _0x111c6c){const _0x265eee=this['editor']['model']['document']['getRoot'](_0x419b38),_0x42bcdd=T(_0x265eee);_0x337452['set'](_0x419b38,_0x42bcdd),_0x4c0251['set'](_0x419b38,Object['fromEntries'](_0x265eee['getAttributes']()));}const _0x3d530f=Array['from'](this['editor']['model']['markers'])['map'](_0x406a9e=>[_0x406a9e['name'],_0x406a9e['getRange']()]),_0x551aee=this['source']['version'];this['_saveMetaData'](_0x551aee,_0x337452,_0x3d530f,_0x4c0251),this['_startingRevisionId']=this['_revisionId'];const _0x54962b=new Map(),_0x12f42c=new Map();for(const _0x359e78 of _0x111c6c){const _0x5db0dd=F(_0x359e78);_0x54962b['set'](_0x359e78,_0x5db0dd),_0x12f42c['set'](_0x359e78,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x54962b,[],_0x12f42c);}['getData'](_0x12a346,_0xb20f7d){if(this['_lastFrom']===_0x12a346&&this['_lastTo']<=_0xb20f7d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xb20f7d,!0x0);else{if(!this['_savedMetaData']['has'](_0x12a346)){const _0x4537fb=this['_getPreviousFrom'](_0x12a346);this['_calculateMetaData'](_0x4537fb,_0x12a346,!0x1);}this['_calculateMetaData'](_0x12a346,_0xb20f7d,!0x0);}return this['_lastFrom']=_0x12a346,this['_lastTo']=_0xb20f7d,this['_getState']();}['loadState'](_0x191a7){this['_reset'](),this['_lastFrom']=_0x191a7['fromVersion'],this['_lastTo']=_0x191a7['toVersion'];for(const _0x1cda2b in _0x191a7['diffData']){const _0x1ec311=_0x191a7['diffData'][_0x1cda2b]['attachChange'],_0x34fa6d=_0x4c51a9(_0x191a7['diffData'][_0x1cda2b]['attributesBefore'])||{},_0x420fbc=this['_makeModelFromViewString'](_0x191a7['diffData'][_0x1cda2b]['deletions']);_0x420fbc['rootName']=_0x1cda2b,_0x420fbc['_isAttached']=!_0x1ec311||!_0x1ec311['isAttached'],_0x420fbc['isAttached']=()=>_0x420fbc['_isAttached'],this['_baseRoots']['set'](_0x1cda2b,_0x420fbc),this['_baseRootsAttributes']['set'](_0x1cda2b,_0x34fa6d),_0x1ec311&&this['_touchedRoots']['set'](_0x1cda2b,_0x1ec311);const _0x3b583a=this['_makeIdsRoot'](_0x420fbc);this['_baseIdsRoots']['set'](_0x1cda2b,_0x3b583a);for(const [_0x9fc858,_0xae6483]of _0x420fbc['markers']){if(!_0x9fc858['startsWith']('revision:'))continue;const _0x523043=_0x9fc858['split'](':')[0x2];for(const _0x28617e of _0xae6483['getWalker']({'singleCharacters':!0x0})){const _0x14eafa=this['_getVidAttributeName'](_0x28617e),_0xea04da='elementEnd'==_0x28617e['type']?_0x28617e['previousPosition']['path']['slice'](0x0,-0x1):_0x28617e['previousPosition']['path'],_0x5eb006=_0x3b583a['getNodeByPath'](_0xea04da)['getAttribute'](_0x14eafa);this['_touched']['set'](_0x5eb006,{'userId':_0x523043});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4204e6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x58732d=>!this['_touched']['has'](_0x58732d));let _0x12be8a=0x0;const _0x1140f2=new Map();for(const _0x2ecd72 in _0x191a7['diffData']){const _0x5135ef=_0x191a7['diffData'][_0x2ecd72]['attachChange'],_0x1649f2=_0x4c51a9(_0x191a7['diffData'][_0x2ecd72]['attributesAfter'])||{},_0x4c8614=this['_makeModelFromViewString'](_0x191a7['diffData'][_0x2ecd72]['insertions']);_0x4c8614['rootName']=_0x2ecd72,_0x4c8614['_isAttached']=!_0x5135ef||_0x5135ef['isAttached'],_0x4c8614['isAttached']=()=>_0x4c8614['_isAttached'],this['_diffRoots']['set'](_0x2ecd72,_0x4c8614),this['_diffRootsAttributes']['set'](_0x2ecd72,_0x1649f2);const _0x38fc40=this['_makeIdsRoot'](_0x4c8614,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2ecd72,_0x38fc40),_0x1140f2['set'](_0x2ecd72,_0x4c8614['isAttached']()?_0x1649f2:{});for(const [_0x19aca0,_0x28aa4f]of _0x4c8614['markers']){if(!_0x19aca0['startsWith']('revision:'))continue;const _0x3bbd21=_0x19aca0['split'](':')[0x2];for(const _0xc5fd7 of _0x28aa4f['getWalker']({'singleCharacters':!0x0})){const _0x2a5891=this['_getVidAttributeName'](_0xc5fd7),_0x341a31=this['_revisionId']++,_0x3d4b45='elementEnd'==_0xc5fd7['type']?_0xc5fd7['previousPosition']['path']['slice'](0x0,-0x1):_0xc5fd7['previousPosition']['path'];_0x38fc40['getNodeByPath'](_0x3d4b45)['_setAttribute'](_0x2a5891,_0x341a31),this['_touched']['set'](_0x341a31,{'userId':_0x3bbd21});}}for(const _0x44643c of this['editor']['model']['createRangeIn'](_0x4c8614)['getWalker']({'singleCharacters':!0x0})){const _0x16780c=this['_getVidAttributeName'](_0x44643c),_0x5f37b1='elementEnd'==_0x44643c['type']?_0x44643c['previousPosition']['path']['slice'](0x0,-0x1):_0x44643c['previousPosition']['path'],_0x529d9e=_0x38fc40['getNodeByPath'](_0x5f37b1);_0x529d9e['getAttribute'](_0x16780c)>0x0||_0x529d9e['_setAttribute'](_0x16780c,_0x4204e6[_0x12be8a++]);}for(const [_0x176d38,_0x435248]of _0x4c8614['markers'])_0x176d38['startsWith']('revision:')||this['_markers']['set'](_0x176d38,_0x435248);}const _0x35d6cb=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x35d6cb),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x35d6cb,0x1));const _0x27eb43=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x27eb43),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x27eb43,0x1));const _0x175039=Array['from'](this['_diffRoots'])['map'](([_0x19ff0d,_0x3c98f1])=>[_0x19ff0d,T(_0x3c98f1)]);this['_saveMetaData'](this['_lastTo'],_0x175039,this['_markers'],_0x1140f2);}['_makeModelFromViewString'](_0x4d1ac7){const _0x1aa5cc=JSON['parse'](_0x4d1ac7),_0x494f11=this['editor']['editing']['view']['document'],_0x1d142c=new _0x290c5e(_0x494f11,_0x1aa5cc['map'](_0x552b4c=>P(_0x552b4c,this['editor'])));return this['editor']['data']['toModel'](_0x1d142c);}['_saveMetaData'](_0x22da59,_0x166fbf,_0xc55cad,_0x2f522a){const _0x433343=new Map(_0x166fbf),_0x403e5c=new Map(_0x4c51a9(_0x2f522a)),_0x98ab36=new Map();for(const [_0x1e14f9,_0x35e7e6]of _0xc55cad)_0x98ab36['set'](_0x1e14f9,{'start':_0x35e7e6['start']['clone'](),'end':_0x35e7e6['end']['clone'](),'rootName':_0x35e7e6['root']['rootName']});this['_savedMetaData']['set'](_0x22da59,{'roots':_0x433343,'markers':_0x98ab36,'rootsAttributes':_0x403e5c});}['_removeMetaData'](_0x2a3e35){this['_savedMetaData']['delete'](_0x2a3e35);}['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'](_0x5a7094,_0x3a9975=null){let _0x5b8d79=null;_0x5a7094['is']('documentFragment')||(_0x5b8d79=new ut(_0x5a7094['name'],{'vid_start':null===_0x3a9975?this['_revisionId']++:_0x3a9975++}));const _0x453a67=[];for(const _0x5d9b76 of _0x5a7094['getChildren']())if(_0x5d9b76['is']('element')){_0x453a67['push'](this['_makeIdsRoot'](_0x5d9b76,_0x3a9975));const _0x57decc=_0x453a67[_0x453a67['length']-0x1];null!==_0x3a9975&&(_0x3a9975=_0x57decc['is']('element','$text')?_0x57decc['getAttribute']('vid')+0x1:_0x57decc['getAttribute']('vid_end')+0x1);}else{for(let _0x28d42f=0x0;_0x28d42f<_0x5d9b76['offsetSize'];_0x28d42f++)_0x453a67['push'](new ut('$text',{'vid':null===_0x3a9975?this['_revisionId']++:_0x3a9975++}));}if(_0x5a7094['is']('documentFragment')){const _0x7b496b=F(_0x5a7094['rootName']);return _0x7b496b['_insertChild'](0x0,_0x453a67),_0x7b496b;}return _0x5b8d79['_setAttribute']('vid_end',null===_0x3a9975?this['_revisionId']++:_0x3a9975++),_0x5b8d79['_insertChild'](0x0,_0x453a67),_0x5b8d79;}['_calculateMetaData'](_0x2c9f0f,_0x516ee8,_0x272984){this['_reset']();const {roots:_0x353734,markers:_0xe83874,rootsAttributes:_0x51c4be}=this['_savedMetaData']['get'](_0x2c9f0f);this['_baseRoots']=new Map(_0x353734),this['_baseRootsAttributes']=new Map(_0x4c51a9(_0x51c4be));for(const [_0x37e950,_0x52cc31]of this['_baseRoots'])if('$graveyard'!==_0x37e950&&(this['_diffRoots']['set'](_0x37e950,T(_0x52cc31)),this['_diffRootsAttributes']=new Map(_0x4c51a9(_0x51c4be)),_0x272984)){const _0x4e5ffa=this['_revisionId'];this['_idsRoots']['set'](_0x37e950,this['_makeIdsRoot'](_0x52cc31)),this['_baseIdsRoots']['set'](_0x37e950,this['_makeIdsRoot'](_0x52cc31,_0x4e5ffa));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x272984&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xa462ac,_0x1ac9ae]of _0xe83874){const _0x553323=this['_baseRoots']['get'](_0x1ac9ae['rootName']),_0x32147e=this['_diffRoots']['get'](_0x1ac9ae['rootName']),_0x4cefe7=new ft(this['_fixPosition'](_0x1ac9ae['start'],_0x553323),this['_fixPosition'](_0x1ac9ae['end'],_0x553323)),_0x207b39=this['_fixRange'](_0x4cefe7,_0x32147e);_0x553323['markers']['set'](_0xa462ac,_0x4cefe7),this['_markers']['set'](_0xa462ac,_0x207b39);}this['_applyOperations'](_0x2c9f0f,_0x516ee8,_0x272984);}['_applyOperations'](_0x3e9ae3,_0x330f38,_0x2a0122){for(const _0x31e7ef of this['source']['getOperations'](_0x3e9ae3,_0x330f38))this['_handleOperation'](_0x31e7ef,_0x2a0122);for(const _0x405d3b of this['_diffRoots']['values']())_0x405d3b['markers']['clear']();for(const [_0x2c40e9,_0x3c8409]of this['_markers']){this['_diffRoots']['get'](_0x3c8409['root']['rootName'])['markers']['set'](_0x2c40e9,_0x3c8409['clone']());}const _0x2120db=new Map(),_0x1654f1=new Map();for(const [_0x3538d3,_0x29c2ae]of this['_diffRoots'])_0x2120db['set'](_0x3538d3,T(_0x29c2ae)),_0x1654f1['set'](_0x3538d3,this['_diffRootsAttributes']['get'](_0x3538d3));this['_saveMetaData'](_0x330f38,_0x2120db,this['_markers'],_0x1654f1);}['_getPreviousFrom'](_0x5cca03){const _0x1441f9=Array['from'](this['_savedMetaData']['keys']());_0x1441f9['sort']((_0x97bf98,_0x4afc62)=>_0x97bf98-_0x4afc62),_0x1441f9['reverse']();for(const _0x5741ae of _0x1441f9)if(_0x5741ae<_0x5cca03)return _0x5741ae;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x35b350,_0x2cbcc2){const _0x2470bb=Array['from'](_0x2cbcc2['markers'])['map'](([_0x511463,_0x514d8a])=>[_0x511463,this['_fixRange'](_0x514d8a,_0x35b350)]);_0x35b350['markers']=new Map(_0x2470bb);}['_transformMarkers'](_0x35c81b){for(const _0x16b451 of this['_markers']['values']()){const _0x2bda75=_0x16b451['getTransformedByOperation'](_0x35c81b),_0x3ac3d9=ft['_createFromRanges'](_0x2bda75);_0x16b451['start']=_0x3ac3d9['start'],_0x16b451['end']=_0x3ac3d9['end'];}}['_handleOperation'](_0x4607bb,_0x44028a){if('addRoot'!=_0x4607bb['type']&&'detachRoot'!=_0x4607bb['type']){if('insert'==_0x4607bb['type']){const _0x2aeab3=_0x4607bb['position']['root']['rootName'];this['_diffRoots']['has'](_0x2aeab3)||(this['_diffRoots']['set'](_0x2aeab3,F(_0x2aeab3,!0x0)),this['_diffRootsAttributes']['set'](_0x2aeab3,{}),_0x44028a&&this['_idsRoots']['set'](_0x2aeab3,F(_0x2aeab3,!0x0)));}else{if('addRootAttribute'==_0x4607bb['type']||'removeRootAttribute'==_0x4607bb['type']||'changeRootAttribute'==_0x4607bb['type'])return void this['_handleRootAttributeOperation'](_0x4607bb);'marker'==_0x4607bb['type']&&this['_handleMarkerOperation'](_0x4607bb);}if('marker'!==_0x4607bb['type']){const _0x36f502=this['_cloneOperation'](_0x4607bb,this['_diffRoots']);_0x36f502['_execute'](),this['_transformMarkers'](_0x36f502);}if(_0x44028a)switch(_0x4607bb['type']){case'insert':this['_handleInsertOperation'](_0x4607bb);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4607bb);break;case'merge':this['_handleMergeOperation'](_0x4607bb);break;case'split':this['_handleSplitOperation'](_0x4607bb);}}else this['_handleRootOperation'](_0x4607bb,_0x44028a);}['_cloneOperation'](_0x110201,_0x3371a8){const _0x3fd66c=_0x110201['clone']();return _0x3fd66c['_authorId']=_0x110201['_authorId'],this['_fixOperation'](_0x3fd66c,_0x3371a8),_0x3fd66c;}['_getBaseVids'](_0x3a1d84){return _0x3a1d84['map'](_0x279682=>{const _0x456bec=this['_getVidAttributeName'](_0x279682);return Number(_0x279682['item']['getAttribute'](_0x456bec));});}['_generateTape'](_0x3a8f22,_0x2d6357){if(_0x3a8f22['is']('element','$text'))_0x2d6357['push']({'item':_0x3a8f22,'type':'text'});else{_0x3a8f22['is']('element')&&_0x2d6357['push']({'item':_0x3a8f22,'type':'elementStart'});for(const _0x3d1c84 of _0x3a8f22['getChildren']())this['_generateTape'](_0x3d1c84,_0x2d6357);_0x3a8f22['is']('element')&&_0x2d6357['push']({'item':_0x3a8f22,'type':'elementEnd'});}return _0x2d6357;}['_getState'](){const _0x11ee46=new Map(this['_touched']),_0x29046a=new Map(_0x11ee46),_0x3dddee=new Map(),_0xbf2e9c={'insertions':{},'deletions':{}},_0x58f9bd={'insertions':{},'deletions':{}},_0x596da3=new Map(),_0x3ebc80=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3ebc80['delete']('$graveyard');for(const _0xf16674 of _0x3ebc80){const _0x5ce6b7=this['_diffRoots']['get'](_0xf16674)||F(_0xf16674,!0x1),_0xe30e03=this['_baseRoots']['get'](_0xf16674)||F(_0xf16674,!0x1);_0x5ce6b7['isAttached']()||_0xe30e03['isAttached']()?(_0xbf2e9c['insertions'][_0xf16674]=T(_0x5ce6b7),_0xbf2e9c['deletions'][_0xf16674]=T(_0xe30e03),this['_copyMarkers'](_0xbf2e9c['deletions'][_0xf16674],_0xe30e03),this['_copyMarkers'](_0xbf2e9c['insertions'][_0xf16674],_0x5ce6b7),_0x58f9bd['insertions'][_0xf16674]=this['_generateTape'](this['_idsRoots']['get'](_0xf16674),[]),_0x58f9bd['deletions'][_0xf16674]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xf16674)||F(_0xf16674,!0x1),[])):_0x3ebc80['delete'](_0xf16674);}for(const _0x5b808b of _0x3ebc80){const _0x14a9ee=_0x58f9bd['insertions'][_0x5b808b];for(const _0x5a540d of _0x14a9ee){const _0x5651e4=this['_getVidAttributeName'](_0x5a540d),_0x20b6a5=_0x5a540d['item']['getAttribute'](_0x5651e4);_0x29046a['delete'](_0x20b6a5),_0x20b6a5>=this['_startingRevisionId']&&_0x3dddee['set'](_0x20b6a5,_0x11ee46['get'](_0x20b6a5));}}for(const _0x5e554d of _0x3ebc80){const _0x5f0143=_0x58f9bd['insertions'][_0x5e554d],_0x4a7595=this['_getBaseVids'](_0x58f9bd['deletions'][_0x5e554d]);let _0x1ea9f4=0x0;for(const _0x32f078 of _0x5f0143){const _0x3678e3=this['_getVidAttributeName'](_0x32f078),_0x1521f6=_0x32f078['item']['getAttribute'](_0x3678e3);if(!_0x3dddee['has'](_0x1521f6)&&!_0x596da3['has'](_0x1521f6)){if(_0x29046a['has'](_0x1521f6))_0x1ea9f4++;else{if(_0x1521f6!=_0x4a7595[_0x1ea9f4]){const _0x5c54fa=_0x11ee46['get'](_0x1521f6)||_0x11ee46['get'](_0x4a7595[_0x1ea9f4]);for(;_0x1521f6!=_0x4a7595[_0x1ea9f4];)_0x29046a['has'](_0x4a7595[_0x1ea9f4])||(_0x596da3['set'](_0x4a7595[_0x1ea9f4],_0x5c54fa),_0x11ee46['set'](_0x4a7595[_0x1ea9f4],_0x5c54fa)),_0x1ea9f4++;}_0x1ea9f4++;}}}}for(const _0x16b441 of _0x3ebc80){const _0x3c4df5=_0x58f9bd['insertions'][_0x16b441];for(const _0x22e252 of _0x3c4df5){const _0x3733ca=this['_getVidAttributeName'](_0x22e252),_0x576d69=_0x22e252['item']['getAttribute'](_0x3733ca);if(_0x596da3['has'](_0x576d69)){const _0x3af795=_0x596da3['get'](_0x576d69);_0x29046a['has'](_0x576d69)||_0x29046a['set'](_0x576d69,{..._0x3af795}),_0x3dddee['set'](_0x576d69,{..._0x3af795});}}}for(const _0x56d95c of _0x29046a['keys']())_0x56d95c>=this['_startingRevisionId']&&_0x29046a['delete'](_0x56d95c);const _0x21a9b8=new Map();for(const _0x18d98f of _0x3ebc80){let _0x2b8f0f=_0x58f9bd['insertions'][_0x18d98f];for(const _0x945196 of _0x2b8f0f)if(_0x945196['item']['is']('element','tableCell')){const _0x13316a=this['_getVidAttributeName'](_0x945196),_0x354df3=_0x945196['item']['getAttribute'](_0x13316a);if(_0x3dddee['has'](_0x354df3)){const _0x4bf1e5=_0x945196['item']['parent']['parent']['getAttribute']('vid_start'),_0xd55d73=_0x21a9b8['get'](_0x4bf1e5)||new Set();_0xd55d73['add'](_0x3dddee['get'](_0x354df3)['userId']),_0x21a9b8['set'](_0x4bf1e5,_0xd55d73);}}_0x2b8f0f=_0x58f9bd['deletions'][_0x18d98f];for(const _0x263379 of _0x2b8f0f)if(_0x263379['item']['is']('element','tableCell')){const _0x1795f5=this['_getVidAttributeName'](_0x263379),_0x59e7bd=_0x263379['item']['getAttribute'](_0x1795f5);if(_0x29046a['has'](_0x59e7bd)){const _0x1bcc24=_0x263379['item']['parent']['parent']['getAttribute']('vid_start'),_0x4aa582=_0x21a9b8['get'](_0x1bcc24)||new Set();_0x4aa582['add'](_0x29046a['get'](_0x59e7bd)['userId']),_0x21a9b8['set'](_0x1bcc24,_0x4aa582);}}for(const _0x211c05 of _0x21a9b8['keys']())(_0x3dddee['has'](_0x211c05)||_0x29046a['has'](_0x211c05))&&_0x21a9b8['delete'](_0x211c05);}for(const _0x53195b of _0x3ebc80){const _0x58c386=_0x58f9bd['insertions'][_0x53195b];let _0x5356c3=null,_0x1ebb90=null;for(const _0x1bad0f of _0x58c386){const _0x516ce1=this['_getVidAttributeName'](_0x1bad0f),_0x4c304b=_0x1bad0f['item']['getAttribute'](_0x516ce1),_0x4e6dee=_0x21a9b8['get'](_0x4c304b);_0x4e6dee&&'elementStart'==_0x1bad0f['type']&&(_0x5356c3=Array['from'](_0x4e6dee)[0x0],_0x1ebb90=_0x1bad0f['item']['getAttribute']('vid_end')),_0x5356c3&&(_0x29046a['set'](_0x4c304b,{'userId':_0x5356c3}),_0x3dddee['set'](_0x4c304b,{'userId':_0x5356c3})),_0x4c304b==_0x1ebb90&&(_0x5356c3=null,_0x1ebb90=null);}}const _0x245e47={},_0x2650ee=new Set();for(const _0x2c4e99 of _0x3ebc80){const _0x3ddc04=_0xbf2e9c['deletions'][_0x2c4e99],_0xddfee7=_0xbf2e9c['insertions'][_0x2c4e99];for(const {userId:_0xe5cab9}of this['_touchedMarkers']['values']())null!==_0xe5cab9&&_0x2650ee['add'](_0xe5cab9);for(const {userId:_0x21f38f}of this['_touchedRoots']['values']())null!==_0x21f38f&&_0x2650ee['add'](_0x21f38f);this['_markChanges'](_0xddfee7,_0x58f9bd['insertions'][_0x2c4e99],_0x3dddee,'insertion',_0x2650ee),this['_markChanges'](_0x3ddc04,_0x58f9bd['deletions'][_0x2c4e99],_0x29046a,'deletion',_0x2650ee),_0x245e47[_0x2c4e99]={'insertions':this['_prepareViewToSave'](_0xddfee7),'deletions':this['_prepareViewToSave'](_0x3ddc04),'attachChange':this['_touchedRoots']['get'](_0x2c4e99)||null,'attributesBefore':_0x4c51a9(this['_baseRootsAttributes']['get'](_0x2c4e99))||{},'attributesAfter':_0x4c51a9(this['_diffRootsAttributes']['get'](_0x2c4e99))};}return{'diffData':_0x245e47,'authorsIds':Array['from'](_0x2650ee)};}['_processRootBeforeSave'](_0x4548d3){for(const [,_0x22da4f]of _0x4548d3['markers']){const _0x37b5e9=_0x22da4f['start']['getAncestors']()['filter'](_0x1c4809=>'tableCell'==_0x1c4809['name']);for(const _0x25a185 of _0x37b5e9)0x1==_0x25a185['childCount']&&_0x25a185['getChild'](0x0)['is']('element','paragraph')&&_0x25a185['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x30518f){this['_processRootBeforeSave'](_0x30518f);const _0x589a9b=this['editor']['data']['toView'](_0x30518f,{}),_0x49f602=Array['from'](_0x589a9b['getChildren']())['map'](_0x3563c4=>this['_getViewJson'](_0x3563c4));return JSON['stringify'](_0x49f602);}['_getViewJson'](_0x16935a){if(_0x16935a['is']('$text'))return _0x16935a['data'];{const _0x1781c0=_0x16935a;return{'type':Object['keys'](E)['find'](_0x11ac31=>_0x16935a instanceof E[_0x11ac31]),'name':_0x1781c0['name'],'attributes':Array['from'](_0x1781c0['getAttributes']()),'children':Array['from'](_0x1781c0['getChildren']())['map'](_0x3f01fa=>this['_getViewJson'](_0x3f01fa))};}}['_markChanges'](_0x74e8c,_0x3e4026,_0x3c108e,_0x3fd610,_0x38c708){let _0x52623a=null,_0x36687f=null,_0x415c30=0x0;const _0x292f57=this['editor']['model'];for(let _0x5024bb=0x0;_0x5024bb<_0x3e4026['length'];_0x5024bb++){const _0xca2c23=this['_getVidAttributeName'](_0x3e4026[_0x5024bb]),_0x2d73d4=_0x3e4026[_0x5024bb]['item']['getAttribute'](_0xca2c23),_0x5efb92=_0x3c108e['get'](_0x2d73d4),_0x41484f=_0x5024bb==_0x3e4026['length']-0x1;(!_0x52623a&&_0x5efb92&&(_0x52623a=_0x5efb92,_0x36687f=_0x3e4026[_0x5024bb]),_0x52623a&&(!_0x5efb92||_0x5efb92['userId']!=_0x52623a['userId']))&&(_0x40754a(_0x5efb92,B(_0x36687f,_0x74e8c,_0x292f57),B(_0x3e4026[_0x5024bb],_0x74e8c,_0x292f57)),_0x52623a=_0x5efb92||null,_0x36687f=_0x5efb92?_0x3e4026[_0x5024bb]:null),_0x52623a&&_0x41484f&&_0x40754a(_0x5efb92,B(_0x36687f,_0x74e8c,_0x292f57),J(_0x3e4026[_0x5024bb],_0x74e8c,_0x292f57));}function _0x40754a(_0xda134,_0x1ccfcc,_0x88d1f){const _0x2ec259=_0x52623a['userId'],_0x28d397='revision:'+_0x3fd610+':'+_0x2ec259+':'+_0x415c30++,_0x2f5aa7=_0x292f57['createRange'](_0x1ccfcc,_0x88d1f);_0x74e8c['markers']['set'](_0x28d397,_0x2f5aa7),null!==_0x2ec259&&_0x38c708['add'](_0x2ec259);}}['_getVidAttributeName'](_0x1f6380){switch(_0x1f6380['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1f4c2e,_0x362abf){_0x1f4c2e['baseVersion']=null;for(const _0x399172 in _0x1f4c2e){const _0x547592=_0x1f4c2e[_0x399172];if(_0x547592 instanceof vt){const _0x29d304=_0x362abf['get'](_0x547592['root']['rootName']);_0x1f4c2e[_0x399172]=this['_fixPosition'](_0x547592,_0x29d304);}if(_0x547592 instanceof ft){const _0x4cdc73=_0x362abf['get'](_0x547592['root']['rootName']);_0x1f4c2e[_0x399172]=this['_fixRange'](_0x547592,_0x4cdc73);}'root'===_0x399172&&(_0x1f4c2e['root']=_0x362abf['get'](_0x1f4c2e['root']['rootName']));}}['_fixRange'](_0x27161d,_0x5a0c36){return this['editor']['model']['createRange'](this['_fixPosition'](_0x27161d['start'],_0x5a0c36),this['_fixPosition'](_0x27161d['end'],_0x5a0c36));}['_fixPosition'](_0x300a27,_0x48e7c1){return this['editor']['model']['createPositionFromPath'](_0x48e7c1,_0x300a27['path'],_0x300a27['stickiness']);}['_handleInsertOperation'](_0x461513){const _0x5bad35=this['_idsRoots']['get'](_0x461513['position']['root']['rootName']),_0x3de021=this['_fixPosition'](_0x461513['position'],_0x5bad35),_0x198bd0=null===_0x461513['_authorId']?null:_0x461513['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f413d=_0x3de021['parent'],_0x17be2a=this['_revisionId'],_0x56eba3=[];for(const _0x24e0a7 of _0x461513['nodes'])if(_0x24e0a7['is']('element'))_0x56eba3['push'](this['_makeIdsRoot'](_0x24e0a7));else{for(let _0x29f0d9=0x0;_0x29f0d9<_0x24e0a7['offsetSize'];_0x29f0d9++)_0x56eba3['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3f88db=this['_revisionId'];for(let _0x5077a8=_0x17be2a;_0x5077a8<_0x3f88db;_0x5077a8++)this['_touched']['set'](_0x5077a8,{'userId':_0x198bd0});_0x3f413d['_insertChild'](_0x3de021['offset'],_0x56eba3);}['_handleMoveOperation'](_0x27a498){(_0x27a498=this['_cloneOperation'](_0x27a498,this['_idsRoots']))['_execute']();const _0x4c078e=null===_0x27a498['_authorId']?null:_0x27a498['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x178d09=_0x27a498['getMovedRangeStart'](),_0x449aa1=_0x178d09['parent'],_0x3ca13d=_0x178d09['offset'];!function _0x4d69ec(_0x182ce7,_0x4b60e3,_0x3c8282,_0x1839a2){for(let _0x4d49c8=_0x3c8282;_0x4d49c8<_0x1839a2;_0x4d49c8++){const _0x49f35a=_0x4b60e3['getChild'](_0x4d49c8);_0x49f35a['is']('element','$text')?_0x182ce7['set'](_0x49f35a['getAttribute']('vid'),{'userId':_0x4c078e}):(_0x182ce7['set'](_0x49f35a['getAttribute']('vid_start'),{'userId':_0x4c078e}),_0x4d69ec(_0x182ce7,_0x49f35a,0x0,_0x49f35a['childCount']),_0x182ce7['set'](_0x49f35a['getAttribute']('vid_end'),{'userId':_0x4c078e}));}}(this['_touched'],_0x449aa1,_0x3ca13d,_0x3ca13d+_0x27a498['howMany']);}['_handleMergeOperation'](_0x688935){const _0x585af1=null===(_0x688935=this['_cloneOperation'](_0x688935,this['_idsRoots']))['_authorId']?null:_0x688935['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x173e48=_0x688935['targetPosition']['parent'],_0x42d2c4=_0x688935['sourcePosition']['parent'],_0x3abd2a=_0x173e48['getAttribute']('vid_end'),_0x272a9f=_0x42d2c4['getAttribute']('vid_start');_0x173e48['_setAttribute']('vid_end',_0x42d2c4['getAttribute']('vid_end')),_0x42d2c4['_setAttribute']('vid_end',_0x3abd2a),this['_touched']['set'](_0x272a9f,{'userId':_0x585af1}),this['_touched']['set'](_0x3abd2a,{'userId':_0x585af1}),_0x688935['_execute']();}['_handleSplitOperation'](_0x7f41b2){const _0x5e5e65=null===(_0x7f41b2=this['_cloneOperation'](_0x7f41b2,this['_idsRoots']))['_authorId']?null:_0x7f41b2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5bffb1=_0x7f41b2['graveyardPosition'],_0x148ae8=_0x7f41b2['splitPosition']['parent'];_0x7f41b2['_execute']();const _0x174f7f=_0x148ae8['getAttribute']('vid_end'),_0x49fcbf=_0x7f41b2['insertionPosition']['nodeAfter'];if(_0x5bffb1){const _0x3fc7db=_0x49fcbf['getAttribute']('vid_end'),_0x394c4c=_0x148ae8['getAttribute']('vid_end');_0x148ae8['_setAttribute']('vid_end',_0x3fc7db),_0x49fcbf['_setAttribute']('vid_end',_0x394c4c),this['_touched']['set'](_0x148ae8['getAttribute']('vid_end'),{'userId':_0x5e5e65}),this['_touched']['set'](_0x49fcbf['getAttribute']('vid_start'),{'userId':_0x5e5e65});}else{const _0x4f6b57=this['_revisionId']++,_0x392a2f=this['_revisionId']++;_0x148ae8['_setAttribute']('vid_end',_0x4f6b57),_0x49fcbf['_setAttribute']('vid_start',_0x392a2f),_0x49fcbf['_setAttribute']('vid_end',_0x174f7f),this['_touched']['set'](_0x4f6b57,{'userId':_0x5e5e65}),this['_touched']['set'](_0x392a2f,{'userId':_0x5e5e65});}}['_handleMarkerOperation'](_0x274e6d){if(!_0x274e6d['affectsData'])return;const _0x80ec55=(_0x274e6d=this['_cloneOperation'](_0x274e6d,this['_diffRoots']))['oldRange']?_0x274e6d['oldRange']['root']:null,_0x512cf9=_0x274e6d['newRange']?_0x274e6d['newRange']['root']:null;_0x80ec55&&this['_markers']['delete'](_0x274e6d['name']),_0x512cf9&&this['_markers']['set'](_0x274e6d['name'],_0x274e6d['newRange']['clone']());const _0x2426de=null===_0x274e6d['_authorId']?null:_0x274e6d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37b2a6=_0x274e6d['name'];if(!this['_touchedMarkers']['has'](_0x37b2a6))return void this['_touchedMarkers']['set'](_0x37b2a6,{'range':_0x274e6d['oldRange'],'userId':_0x2426de});const _0x20e082=this['_touchedMarkers']['get'](_0x37b2a6),_0x495b1c=_0x20e082['range'],_0x5f22b6=_0x274e6d['newRange'];null==_0x495b1c&&null==_0x5f22b6||_0x495b1c&&_0x5f22b6&&_0x495b1c['isEqual'](_0x5f22b6)?this['_touchedMarkers']['delete'](_0x274e6d['name']):_0x20e082['userId']=_0x2426de;}['_handleRootOperation'](_0x57ff88,_0x56e5c2){this['_diffRoots']['has'](_0x57ff88['rootName'])?this['_diffRoots']['get'](_0x57ff88['rootName'])['_isAttached']=_0x57ff88['isAdd']:(this['_diffRoots']['set'](_0x57ff88['rootName'],F(_0x57ff88['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x57ff88['rootName'],{}),_0x56e5c2&&this['_idsRoots']['set'](_0x57ff88['rootName'],F(_0x57ff88['rootName'],!0x0)));const _0x1e5b51=null===_0x57ff88['_authorId']?null:_0x57ff88['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2776b0=this['_touchedRoots']['get'](_0x57ff88['rootName']);_0x2776b0&&_0x2776b0['userId']===_0x1e5b51?this['_touchedRoots']['delete'](_0x57ff88['rootName']):this['_touchedRoots']['set'](_0x57ff88['rootName'],{'userId':_0x1e5b51,'isAttached':_0x57ff88['isAdd']});}['_handleRootAttributeOperation'](_0x63e271){const _0x189044=this['_diffRootsAttributes']['get'](_0x63e271['root']['rootName']);null===_0x63e271['newValue']?delete _0x189044[_0x63e271['key']]:_0x189044[_0x63e271['key']]=_0x63e271['newValue'];}}function T(_0x220f36){const _0x4a08c7=F(_0x220f36['rootName'],_0x220f36['isAttached']());for(const _0x2a3f80 of _0x220f36['getChildren']()){const _0x189f97=_0x2a3f80['_clone'](!0x0);_0x4a08c7['_appendChild'](_0x189f97);}return _0x4a08c7;}function F(_0x21cae8,_0x417b2a=!0x0){const _0x1ac92c=new gt();return _0x1ac92c['rootName']=_0x21cae8,_0x1ac92c['_isAttached']=_0x417b2a,_0x1ac92c['isAttached']=()=>_0x1ac92c['_isAttached'],_0x1ac92c;}function B(_0x58048c,_0x55c544,_0x262315){const _0x3ef83f='elementEnd'==_0x58048c['type']?_0x262315['createPositionAt'](_0x58048c['item'],'end'):_0x262315['createPositionBefore'](_0x58048c['item']);return _0x262315['createPositionFromPath'](_0x55c544,_0x3ef83f['path'],_0x3ef83f['stickiness']);}function J(_0x296c62,_0x443ffc,_0x4bae60){const _0x5c73aa='elementStart'==_0x296c62['type']?_0x4bae60['createPositionAt'](_0x296c62['item'],0x0):_0x4bae60['createPositionAfter'](_0x296c62['item']);return _0x4bae60['createPositionFromPath'](_0x443ffc,_0x5c73aa['path'],_0x5c73aa['stickiness']);}class hs extends _0x646829{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x434433,_0x59dea0){super(_0x434433),this['focusTracker']=new _0x2fa1d4(),this['keystrokes']=new _0x28165a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x59dea0),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'](),_0x5d124a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x59916f=_0x35fdd3=>_0x35fdd3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x59916f),this['keystrokes']['set']('arrowleft',_0x59916f),this['keystrokes']['set']('arrowup',_0x59916f),this['keystrokes']['set']('arrowdown',_0x59916f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x18daa6){this['revisionNameInputView']['fieldView']['element']['value']=_0x18daa6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x271f4e){const _0xee987d=new at(this['locale'],ti),_0x3b0680=_0xee987d['fieldView'];_0x3b0680['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xf1b2fb=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x271f4e&&(_0xf1b2fb+='\x20('+m(this['locale'],'optional')+')'),(_0xee987d['label']=_0xf1b2fb,_0x3b0680['on']('input',()=>{this['revisionNameInputValue']=_0x3b0680['element']['value']['trim']();}),_0xee987d);}}class f extends _0x1b3b72{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x218186=this['editor'],_0x5076b7=_0x218186['plugins']['get']('RevisionTracker');_0x218186['ui']['componentFactory']['add']('revisionHistory',_0x178dcf=>{const _0x1e4cfd=_0x2b8694(_0x178dcf),_0x39b2e1=_0x1e4cfd['panelView']['children'],_0x2d24dc=new _0x1848d4(_0x178dcf),_0x21a261=new _0xea1274(_0x178dcf),_0x478da5=new _0x3e960e(_0x178dcf),_0x978475=new _0xea1274(_0x178dcf),_0x1308eb=new _0x3e960e(_0x178dcf);return _0x1e4cfd['bind']('isEnabled')['to'](_0x5076b7,'isReady',_0x5076b7,'isEnabled',_0x218186,'isReadOnly',(_0x30be24,_0x3385a3,_0x2d8e98)=>_0x30be24&&_0x3385a3&&!_0x2d8e98),_0x1e4cfd['buttonView']['set']({'icon':_0x47b65b,'label':m(_0x178dcf,'Revision\x20history'),'tooltip':!0x0}),_0x478da5['set']({'label':m(_0x178dcf,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x478da5['bind']('isEnabled')['to'](_0x5076b7,'isReady',_0x5076b7,'isEnabled',_0x218186,'isReadOnly',(_0x2c4c56,_0x53451a,_0x345c64)=>_0x2c4c56&&_0x53451a&&!_0x345c64),_0x478da5['on']('execute',()=>this['_showDialog']()),_0x1308eb['set']({'label':m(_0x178dcf,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1308eb['bind']('isEnabled')['to'](_0x5076b7,'isReady',_0x218186,'isReadOnly',(_0x27617b,_0x3b5b27)=>_0x27617b&&!_0x3b5b27),_0x1308eb['on']('execute',()=>{_0x218186['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1e4cfd['isOpen']=!0x1,_0x218186['editing']['view']['focus']();}),_0x21a261['children']['add'](_0x478da5),_0x978475['children']['add'](_0x1308eb),_0x2d24dc['role']='menu',_0x2d24dc['items']['addMany']([_0x21a261,_0x978475]),_0x39b2e1['add'](_0x2d24dc),_0x1e4cfd;}),_0x218186['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x31597b=this['editor'],_0x43e785=_0x31597b['locale'],_0x19a0f3=new _0x28acf8(_0x43e785),_0x586ef2=new _0x3a45c2(_0x43e785);_0x19a0f3['buttonView']['set']({'icon':_0x47b65b,'label':m(_0x43e785,'Revision\x20history')});const _0x483c8b=new _0x59df58(_0x43e785,_0x19a0f3),_0x46e7bf=new _0x604b5c(_0x43e785);_0x46e7bf['set']({'label':m(_0x43e785,'Save\x20current\x20revision')}),_0x46e7bf['delegate']('execute')['to'](_0x19a0f3),_0x46e7bf['on']('execute',()=>{this['_showDialog']();}),_0x483c8b['children']['add'](_0x46e7bf),_0x586ef2['items']['add'](_0x483c8b);const _0x2aee0c=new _0x59df58(_0x43e785,_0x19a0f3),_0x175954=new _0x604b5c(_0x43e785);return _0x175954['set']({'label':m(_0x43e785,'Open\x20revision\x20history')}),_0x175954['delegate']('execute')['to'](_0x19a0f3),_0x175954['on']('execute',()=>{_0x31597b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2aee0c['children']['add'](_0x175954),_0x586ef2['items']['add'](_0x2aee0c),_0x19a0f3['panelView']['children']['add'](_0x586ef2),_0x19a0f3;}['_showDialog'](){const _0x510071=this['editor'],_0x54ef58=_0x510071['locale'],_0x4d8933=_0x510071['plugins']['get']('Dialog'),_0x3d31c4=_0x510071['plugins']['get']('RevisionTracker');function _0x5b0286(_0x13bcd5){_0x510071['config']['get']('revisionHistory.requireRevisionName')&&''===_0x13bcd5['revisionName']?_0x13bcd5['revisionNameInputView']['errorText']=m(_0x54ef58,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x510071['plugins']['get'](u)['saveRevision']({'name':_0x13bcd5['revisionName']}),_0x4d8933['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5b0286(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4d8933['show']({'id':'revisionSave','title':m(_0x54ef58,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x510071['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4d8933['hide']()},{'label':m(_0x510071['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x410df1){_0x410df1['bind']('isEnabled')['to'](_0x3d31c4,'isReady',_0x3d31c4,'isEnabled',_0x510071,'isReadOnly',(_0x3e1d46,_0x14f404,_0x324024)=>_0x3e1d46&&_0x14f404&&!_0x324024);},'onExecute':()=>_0x5b0286(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2b4fb1=this['editor'],_0x2d31f9=_0x2b4fb1['locale'];this['_saveRevisionFormView']=new hs(_0x2d31f9,_0x2b4fb1['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x646829{['changeId'];['_model'];constructor(_0x499235,_0x59e71f){super(_0x499235),this['_model']=_0x59e71f,this['changeId']=_0x59e71f['id'];const _0x240106=this['bindTemplate'],_0x1ca4c0=m(_0x499235,_0x59e71f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x59e71f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x59e71f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x240106['to']('type',_0x1bc842=>'ck-revision-change__'+_0x1bc842)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1ca4c0}]},{'text':'\x20'+_0x59e71f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x122d77(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x536fe1){super(),this['id']=_0x536fe1['id']||_0x26ec69(),this['author']=_0x536fe1['author'],this['type']=_0x536fe1['type'],this['data']=_0x536fe1['data']||{},this['rootName']=_0x536fe1['rootName'],this['set']('createdAt',_0x536fe1['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(_0x3e9619,_0x5c6cf2){this['newRevisionId']=_0x3e9619,this['oldRevisionId']=_0x5c6cf2,this['changes']=new _0x35d588();}['_setChanges'](_0x9e796){for(const _0x47a7ed of _0x9e796)this['changes']['add'](_0x47a7ed);}}const Y={'c':_0x5bd0fa,'a':_0x37234a,'e':_0xbcd520,'r':_0x50fc29,'u':_0x2e158c};class d extends _0x1b3b72{['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[_0x440b0a,_0xb68efe,j];}constructor(_0x520a58){super(_0x520a58),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',(_0x3180b9,_0x3da75f,_0x46be8a)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x340cfb=>{for(const _0x1adedd of this['editor']['editing']['view']['document']['roots'])_0x46be8a?_0x340cfb['removeClass']('ck-editor__editable__overlay',_0x1adedd):_0x340cfb['addClass']('ck-editor__editable__overlay',_0x1adedd);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xabeb7=>null!==_0xabeb7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1c9c8c,_0x4b88ae,_0x319e07)=>_0x1c9c8c&&_0x319e07?_0x4b88ae['changes']['getIndex'](_0x319e07):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3ffd41,_0x24d697)=>_0x3ffd41?_0x24d697['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xb68efe);}['init'](){const _0x48ec3f=this['editor'],_0x35364f=new yt(_0x48ec3f,{'direction':'backward'}),_0x5c069b=new yt(_0x48ec3f,{'direction':'forward'});(_0x48ec3f['commands']['add']('showPreviousChange',_0x35364f),_0x48ec3f['commands']['add']('showNextChange',_0x5c069b),_0x48ec3f['commands']['add']('restoreRevision',new _t(_0x48ec3f)),this['on']('change:numberOfChanges',()=>{_0x35364f['refresh'](),_0x5c069b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x48ec3f['enableReadOnlyMode']('revision-viewer'),_0x48ec3f['plugins']['has']('WidgetToolbarRepository'))&&_0x48ec3f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xa5b2a5){await this['loadRevisionData'](_0xa5b2a5);const _0x57125d={};for(const _0x3be2ac in _0xa5b2a5['diffData']){if(_0xa5b2a5['diffData'][_0x3be2ac]['attachChange']&&!_0xa5b2a5['diffData'][_0x3be2ac]['attachChange']['isAttached'])continue;const _0x3dc79d=this['_removeRevisionMarkers'](JSON['parse'](_0xa5b2a5['diffData'][_0x3be2ac]['insertions'])),_0x3efecd=this['editor']['editing']['view']['document'],_0x19b2ec=new _0x290c5e(_0x3efecd,_0x3dc79d['map'](_0x3805d6=>this['_getViewObj'](_0x3805d6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x57125d[_0x3be2ac]=this['editor']['data']['processor']['toData'](_0x19b2ec),this['editor']['data']['processor']['useFillerType']('default');}return _0x57125d;}async['getRevisionRootsAttributes'](_0x7c7510){await this['loadRevisionData'](_0x7c7510);const _0x4299dd={};for(const _0x3d53f0 in _0x7c7510['diffData'])_0x7c7510['diffData'][_0x3d53f0]['attachChange']&&!_0x7c7510['diffData'][_0x3d53f0]['attachChange']['isAttached']||(_0x4299dd[_0x3d53f0]=_0x7c7510['diffData'][_0x3d53f0]['attributesAfter']||{});return _0x4299dd;}['_removeRevisionMarkers'](_0x267e1a){return(_0x267e1a=_0x267e1a['filter'](_0x45a776=>!_0x45a776['name']||'revision-start'!==_0x45a776['name']&&'revision-end'!==_0x45a776['name']))['forEach'](_0x58b44e=>{'string'!=typeof _0x58b44e&&(_0x58b44e['children']=this['_removeRevisionMarkers'](_0x58b44e['children']),_0x58b44e['attributes']=_0x58b44e['attributes']['filter'](_0x1e1527=>!_0x1e1527[0x0]['startsWith']('data-revision-')));}),_0x267e1a;}async['compare'](_0xe9d6e0,_0x5c3e34,_0x260c0c=!0x1){if(!this['isEnabled'])return;const _0x27409b=this['diff'],_0x40d6da=this['repository'],_0x415176='string'==typeof _0xe9d6e0?_0x40d6da['getRevision'](_0xe9d6e0):_0xe9d6e0,_0x5196c3='string'==typeof _0x5c3e34?_0x40d6da['getRevision'](_0x5c3e34):_0x5c3e34,_0x44e044=_0x415176['id'],_0x466cb6=_0x5196c3?_0x5196c3['id']:null;if(!_0x260c0c&&this['diff']&&this['diff']['newRevisionId']===_0x44e044&&this['diff']['oldRevisionId']===_0x466cb6)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x44e044,_0x466cb6);const _0x52ae19=this['_getRevisionsRange'](_0x415176,_0x5196c3,!0x0)['map'](_0x122b3f=>this['loadRevisionData'](_0x122b3f));return _0x52ae19['push'](new Promise(_0x9ac01c=>{setTimeout(_0x9ac01c,0x14);})),Promise['all'](_0x52ae19)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xb7ac9d=this['_getDiff'](_0x44e044,_0x466cb6);for(const _0x1c5dc7 of _0xb7ac9d['changes'])this['_changeIdToChange']['set'](_0x1c5dc7['id'],_0x1c5dc7);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2920e9=>{for(const _0x3d5d18 of this['editor']['model']['document']['getRootNames']())_0x2920e9['detachRoot'](_0x3d5d18);for(const _0x4aef7c of Object['keys'](_0xb7ac9d['model'])){const _0x15fe64=_0x2920e9['addRoot'](_0x4aef7c);for(const _0x5a93b5 of Object['keys'](_0xb7ac9d['attributes'][_0x4aef7c]))_0x2920e9['setAttribute'](_0x5a93b5,_0xb7ac9d['attributes'][_0x4aef7c][_0x5a93b5],_0x15fe64);_0x2920e9['insert'](_0xb7ac9d['model'][_0x4aef7c],_0x15fe64,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xb7ac9d['changes'])),this['isReady']=!0x0;})['catch'](_0x116bf7=>{console['error'](_0x116bf7),this['_cleanUp'](),_0x27409b&&(this['diff']=_0x27409b),this['isReady']=!0x0;});}['addRevisionData'](_0x361ea5,_0x1cb421){const _0x20e57b=this['repository']['createRevision'](_0x361ea5);return _0x20e57b['on']('_update',(_0x4f5f8a,_0x140db6,_0x490c97)=>_0x1cb421(_0x140db6,_0x490c97,_0x20e57b)),this['repository']['addRevision'](_0x20e57b),_0x20e57b;}['loadRevisionData'](_0x514816){if(!_0x514816||_0x514816['diffData'])return Promise['resolve']();{const _0x2d3d57=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2d3d57,'revisionId':_0x514816['id']})['then'](_0x2e94c5=>{_0x514816['_update']({'diffData':_0x2e94c5['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},_0x4230ba=>{for(const _0x2e44f8 of this['editor']['model']['document']['getRootNames']())_0x4230ba['detachRoot'](_0x2e44f8);});}['_sortAndFilterDiffChanges'](_0x2c7d84){const _0x1afa23=[],_0x44351c=new Map();for(const _0x4d287c of this['editor']['model']['document']['getRootNames']()){const _0x1dfb9d=this['editor']['editing']['view']['getDomRoot'](_0x4d287c);if(!_0x1dfb9d)continue;const _0x169eb5=_0x1dfb9d['getClientRects']()['item'](0x0);_0x169eb5&&(_0x1afa23['push'](_0x4d287c),_0x44351c['set'](_0x4d287c,_0x169eb5));}return _0x1afa23['sort']((_0x260056,_0x35d221)=>{const _0x2e6cf5=_0x44351c['get'](_0x260056),_0x2385b5=_0x44351c['get'](_0x35d221);return _0x2e6cf5['y']-_0x2385b5['y']||_0x2e6cf5['x']-_0x2385b5['x'];}),(_0x2c7d84=_0x2c7d84['filter'](_0x950d3e=>_0x1afa23['includes'](_0x950d3e['rootName'])))['sort']((_0x1d0d14,_0xf2dca)=>_0x1afa23['indexOf'](_0x1d0d14['rootName'])-_0x1afa23['indexOf'](_0xf2dca['rootName'])),_0x2c7d84;}['_makeTape'](_0x5cdfd9){const _0x1a6270=Array['from'](_0x5cdfd9['markers'])['filter'](([_0x3889ec,_0x568ad7])=>_0x3889ec['startsWith']('revision:')&&!_0x568ad7['isCollapsed']),_0xf30d0c=Array['from'](this['editor']['model']['createRangeIn'](_0x5cdfd9)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1a6270['length'])for(const _0x2d44fb of _0xf30d0c){const [_0x18a496,_0x9ea13c]=_0x1a6270[0x0],[,_0x13b8c6,_0x84f498]=_0x18a496['split'](':');if(_0x9ea13c['end']['isEqual'](_0x2d44fb['nextPosition'])&&_0x1a6270['shift'](),(_0x2d44fb['previousPosition']['isEqual'](_0x9ea13c['start'])||_0x2d44fb['previousPosition']['isAfter'](_0x9ea13c['start']))&&('insertion'==_0x13b8c6?_0x2d44fb['isAdded']={'userId':_0x84f498}:'deletion'==_0x13b8c6&&(_0x2d44fb['isRemoved']={'userId':_0x84f498})),0x0==_0x1a6270['length'])break;}return _0xf30d0c;}['_refreshStartEndIndex'](_0x2c81a0){const _0x5c27c6=new Map();for(let _0x55b081=0x0;_0x55b081<_0x2c81a0['length'];_0x55b081++)'text'===_0x2c81a0[_0x55b081]['type']?(_0x2c81a0[_0x55b081]['item']['startIndex']=_0x55b081,_0x2c81a0[_0x55b081]['item']['endIndex']=_0x55b081):('elementStart'===_0x2c81a0[_0x55b081]['type']?_0x2c81a0[_0x55b081]['item']['startIndex']=_0x55b081:'elementEnd'===_0x2c81a0[_0x55b081]['type']&&(_0x2c81a0[_0x55b081]['item']['endIndex']=_0x55b081),_0x5c27c6['set'](_0x2c81a0[_0x55b081]['id'],_0x55b081));for(const _0x266980 of _0x5c27c6['values']())'elementStart'===_0x2c81a0[_0x266980]['type']?_0x2c81a0[_0x266980]['item']['endIndex']=_0x5c27c6['get'](_0x2c81a0[_0x266980]['pairId']):'elementEnd'===_0x2c81a0[_0x266980]['type']&&(_0x2c81a0[_0x266980]['item']['startIndex']=_0x5c27c6['get'](_0x2c81a0[_0x266980]['pairId']));}['_processTape'](_0x15fe1a){for(let _0x1d017c=0x0;_0x1d017c<_0x15fe1a['length'];_0x1d017c++){if('elementStart'===_0x15fe1a[_0x1d017c]['type'])_0x15fe1a[_0x1d017c]['item']['startIndex']=_0x1d017c;else{if('elementEnd'===_0x15fe1a[_0x1d017c]['type']){_0x15fe1a[_0x1d017c]['item']['endIndex']=_0x1d017c;const _0x2bd69d=_0x15fe1a[_0x1d017c]['item']['startIndex'];_0x15fe1a[_0x2bd69d]['pairId']=_0x15fe1a[_0x1d017c]['id'],_0x15fe1a[_0x1d017c]['pairId']=_0x15fe1a[_0x2bd69d]['id'];}else _0x15fe1a[_0x1d017c]['item']['startIndex']=_0x1d017c,_0x15fe1a[_0x1d017c]['item']['endIndex']=_0x1d017c,_0x15fe1a[_0x1d017c]['pairId']=null;}_0x15fe1a[_0x1d017c]['markersStart']||(_0x15fe1a[_0x1d017c]['markersStart']=[],_0x15fe1a[_0x1d017c]['markersEnd']=[]);}}['_markInsertions'](_0x254943,_0x38b5ce){const _0x1ccf0a=_0x254943['filter'](_0x11bd63=>!_0x11bd63['isAdded']);for(let _0x5cbe37=0x0;_0x5cbe37<_0x38b5ce['length'];_0x5cbe37++)_0x38b5ce[_0x5cbe37]['isAdded']&&(_0x1ccf0a[_0x5cbe37]['isAdded']=_0x38b5ce[_0x5cbe37]['isAdded']);}['_makeModelFromViewString'](_0x1bc243){const _0x2d8b13=JSON['parse'](_0x1bc243),_0x3a67bc=this['editor']['editing']['view']['document'],_0x27f7b0=new _0x290c5e(_0x3a67bc,_0x2d8b13['map'](_0x3e16b8=>this['_getViewObj'](_0x3e16b8)));return this['editor']['data']['toModel'](_0x27f7b0);}['_getViewObj'](_0x46bba5){const _0x41c612=this['editor']['editing']['view']['document'];if('string'==typeof _0x46bba5)return new _0x2c8453(_0x41c612,_0x46bba5);{const _0x1ae7a9=_0x46bba5['children']['map'](_0x3a0a18=>this['_getViewObj'](_0x3a0a18));return new(Y[_0x46bba5['type']]||_0x34046a)(_0x41c612,_0x46bba5['name'],_0x46bba5['attributes'],_0x1ae7a9);}}['_getDiff'](_0x5a5e34,_0x2f0172=null){const _0xf7186f=this['repository']['getRevision'](_0x5a5e34),_0x57b8ad=_0x2f0172?this['repository']['getRevision'](_0x2f0172):null,_0x473e76=this['_getRevisionsRange'](_0xf7186f,_0x57b8ad),_0x3d2544=_0x473e76[_0x473e76['length']-0x1],_0x56ce2a=new Map(),_0x1345e5={'model':{},'attributes':{},'changes':[]},_0x9bd9d=new Set(),_0x117d35=new Map();for(let _0x4f7f60=_0x473e76['length']-0x1;_0x4f7f60>=0x0;_0x4f7f60--){const _0x5b0326=_0x473e76[_0x4f7f60];for(const _0x38d22d of Object['keys'](_0x5b0326['diffData']))if(_0x5b0326['diffData'][_0x38d22d]['attachChange']){const _0x20ad33=_0x5b0326['diffData'][_0x38d22d]['attachChange'];_0x20ad33['isAttached']?(_0x9bd9d['add'](_0x38d22d),_0x117d35['has'](_0x38d22d)&&_0x117d35['get'](_0x38d22d)['userId']==_0x20ad33['userId']?_0x117d35['delete'](_0x38d22d):_0x117d35['set'](_0x38d22d,_0x20ad33)):_0x117d35['has'](_0x38d22d)?(_0x9bd9d['delete'](_0x38d22d),_0x117d35['delete'](_0x38d22d)):(_0x9bd9d['add'](_0x38d22d),_0x117d35['set'](_0x38d22d,_0x20ad33));}else _0x9bd9d['add'](_0x38d22d);}for(const _0x32b258 of _0x9bd9d){const _0x2a1901=_0x117d35['has'](_0x32b258)&&!_0x117d35['get'](_0x32b258)['isAttached'];let _0x1ac8f5=_0x2a1901?_0x473e76['length']-0x1:0x0;const _0x2082ec=_0x2a1901?-0x1:0x1;for(;_0x473e76[_0x1ac8f5];){const _0x1579dc=_0x473e76[_0x1ac8f5];if(_0x1579dc['diffData'][_0x32b258]){const _0x121e7e=_0x2a1901?_0x1579dc['diffData'][_0x32b258]['attributesBefore']:_0x1579dc['diffData'][_0x32b258]['attributesAfter'];_0x1345e5['attributes'][_0x32b258]=_0x121e7e?_0x4c51a9(_0x121e7e):{};break;}_0x1ac8f5+=_0x2082ec;}}for(const _0x57e78e of _0x473e76){_0x57e78e['model']={};for(const _0x580f6a of _0x57e78e['authors'])_0x56ce2a['set'](_0x580f6a['id'],_0x580f6a);for(const _0x176846 of _0x9bd9d){const _0x47910e=_0x57e78e['diffData'][_0x176846]?_0x57e78e['diffData'][_0x176846]['insertions']:'[]',_0xd24045=_0x57e78e['diffData'][_0x176846]?_0x57e78e['diffData'][_0x176846]['deletions']:'[]';_0x57e78e['model'][_0x176846]={'insertions':this['_makeModelFromViewString'](_0x47910e),'deletions':this['_makeModelFromViewString'](_0xd24045)};}}for(const _0x433f36 of _0x9bd9d){let _0x120464=null,_0x4ea95d=0x0;const _0x5cf1a3=new Map(Array['from'](_0xf7186f['model'][_0x433f36]['insertions']['markers'])['filter'](([_0x290221])=>!_0x290221['startsWith']('revision:')));let _0x5ac53c=0x0;for(const _0x3d0619 of _0x473e76){const _0x4551a0=this['_makeTape'](_0x3d0619['model'][_0x433f36]['insertions']);_0x3d0619==_0xf7186f?(_0x120464=_0x4551a0,_0x4ea95d=_0x120464['length'],_0x120464['forEach'](_0x46e03b=>{_0x46e03b['id']=_0x5ac53c++;}),this['_processTape'](_0x120464)):this['_markInsertions'](_0x120464,_0x4551a0);const _0x3eb4db=_0x120464['filter'](_0x261177=>!_0x261177['isAdded'])['map'](_0x2a2ac9=>_0x2a2ac9['id']);let _0x5cd227=0x0;const _0x4b56d6=this['_makeTape'](_0x3d0619['model'][_0x433f36]['deletions']);_0x4b56d6['forEach'](_0x4009f7=>{_0x4009f7['isRemoved']?_0x4009f7['id']=_0x4ea95d++:_0x4009f7['id']=_0x3eb4db[_0x5cd227++];}),this['_processTape'](_0x4b56d6),this['_setDistance'](_0x120464,'isAdded'),this['_setDistance'](_0x4b56d6,'isRemoved'),_0x3d0619==_0xf7186f&&this['_markMarkers'](_0x120464,_0x5cf1a3),_0x120464=this['_joinTapes'](_0x120464,_0x4b56d6),this['_refreshStartEndIndex'](_0x120464),this['_setDistance'](_0x120464,'isRemoved');}_0x120464=_0x120464['filter'](_0x4c13ba=>!(_0x4c13ba['isAdded']&&_0x4c13ba['isRemoved']));const _0x4eedd7=new Map(_0x3d2544['model'][_0x433f36]['deletions']['markers']),_0x1dd4b4=new Set(_0x5cf1a3['keys']());for(const _0x2bd9e1 of _0x4eedd7['keys']())_0x1dd4b4['delete'](_0x2bd9e1);this['_markSuggestions'](_0x120464,_0x1dd4b4),this['_fixObsoleteTags'](_0x120464),_0x120464=this['_removeMissingPairs'](_0x120464),_0x120464=this['_markMismatchedRemovedTags'](_0x120464),_0x120464=this['_removeUnsupportedChanges'](_0x120464);const {root:_0x48b417,changes:_0x5e955f}=this['_makeModelFromTape'](_0x120464,_0x56ce2a,_0x433f36);_0x1345e5['model'][_0x433f36]=_0x48b417;const _0xad8c25=_0x117d35['get'](_0x433f36);if(_0xad8c25){const _0x4e8ffd=_0x56ce2a['get'](_0xad8c25['userId']),_0xc8e500=new r({'author':_0x4e8ffd,'type':_0xad8c25['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x433f36});_0x5e955f['unshift'](_0xc8e500),_0x1345e5['attributes'][_0x433f36]['revisionHistoryAttachChange']=_0xc8e500['id'];}_0x1345e5['changes']=_0x1345e5['changes']['concat'](_0x5e955f);}return _0x1345e5;}['_markMarkers'](_0x4482ba,_0x5a9ef3){for(let _0x1dae79=0x0;_0x1dae79<_0x4482ba['length'];_0x1dae79++)for(const [_0x2b3fa7,_0x2a86c9]of _0x5a9ef3)_0x2a86c9['start']['isEqual'](_0x4482ba[_0x1dae79]['previousPosition'])&&_0x4482ba[_0x1dae79]['markersStart']['push'](_0x2b3fa7),_0x2a86c9['end']['isEqual'](_0x4482ba[_0x1dae79]['nextPosition'])&&_0x4482ba[_0x1dae79]['markersEnd']['push'](_0x2b3fa7);}['_joinTapes'](_0x48a3ba,_0x46ea30){let _0x16de0b=[],_0x3aba2e=0x0,_0x3eb100=0x0;for(;_0x3aba2e<_0x48a3ba['length']||_0x3eb100<_0x46ea30['length'];){const _0xb84e9e=_0x48a3ba[_0x3aba2e]||{},_0x1dd735=_0x46ea30[_0x3eb100]||{};if(_0xb84e9e['id']==_0x1dd735['id'])_0x3aba2e++,_0x3eb100++,_0x16de0b['push'](_0xb84e9e);else{if(_0x1dd735['isRemoved']&&_0xb84e9e['isAdded']){const {commonTape:_0x2fedcc,iEnd:_0x25af27,jEnd:_0x4b653e}=this['_threeWayMerge'](_0x48a3ba,_0x3aba2e,_0x46ea30,_0x3eb100);_0x16de0b=_0x16de0b['concat'](_0x2fedcc),_0x3aba2e=_0x25af27,_0x3eb100=_0x4b653e;}else _0x1dd735['isRemoved']?(_0x3eb100++,_0x16de0b['push'](_0x1dd735)):(_0x3aba2e++,_0x16de0b['push'](_0xb84e9e));}}return _0x16de0b;}['_markSuggestions'](_0x370437,_0x3e394b){const _0x88bd68=[];for(let _0x33ab3a=0x0;_0x33ab3a<_0x370437['length'];_0x33ab3a++){for(let _0x43d268=0x0;_0x43d268<_0x370437[_0x33ab3a]['markersStart']['length'];_0x43d268++){const _0x2bd633=_0x370437[_0x33ab3a]['markersStart'][_0x43d268];if(!_0x3e394b['has'](_0x2bd633))continue;const {group:_0xf87f5,type:_0x418a1a,authorId:_0x1d171e}=_0x39db0f(_0x2bd633);'revision-suggestion'!=_0xf87f5||'insertion'!=_0x418a1a&&'deletion'!=_0x418a1a||(_0x88bd68['unshift']({'type':_0x418a1a,'name':_0x2bd633,'userId':_0x1d171e}),_0x370437[_0x33ab3a]['markersStart']['splice'](_0x43d268,0x1),_0x43d268--);}_0x2f39ac(_0x370437[_0x33ab3a]);for(let _0x3a29d2=0x0;_0x3a29d2<_0x370437[_0x33ab3a]['markersEnd']['length'];_0x3a29d2++){const _0x2b9aef=_0x370437[_0x33ab3a]['markersEnd'][_0x3a29d2];if(!_0x3e394b['has'](_0x2b9aef))continue;const {group:_0x47b12b,type:_0x426641}=_0x39db0f(_0x2b9aef);if('revision-suggestion'!=_0x47b12b||'insertion'!=_0x426641&&'deletion'!=_0x426641)continue;_0x370437[_0x33ab3a]['markersEnd']['splice'](_0x3a29d2,0x1),_0x3a29d2--;const _0x12dad3=_0x88bd68['findIndex'](_0x229eed=>_0x229eed['name']==_0x2b9aef);_0x12dad3>-0x1&&_0x88bd68['splice'](_0x12dad3,0x1);}}function _0x39db0f(_0x244f7f){const _0x30b75e=_0x244f7f['split'](':');return{'group':_0x30b75e[0x0],'type':_0x30b75e[0x1],'subType':_0x30b75e['length']>=0x5?_0x30b75e[0x2]:null,'id':_0x30b75e['length']<0x5?_0x30b75e[0x2]:_0x30b75e[0x3],'authorId':_0x30b75e['length']<0x5?_0x30b75e[0x3]:_0x30b75e[0x4],'markerCount':0x6==_0x30b75e['length']?_0x30b75e[0x5]:null};}function _0x2f39ac(_0x585f96){for(let _0x1194be=0x0;_0x1194be<_0x88bd68['length'];_0x1194be++){if(_0x585f96['isAdded']&&'insertion'==_0x88bd68[_0x1194be]['type'])return _0x585f96['isAddSuggestion']=_0x88bd68[_0x1194be],void delete _0x585f96['isAdded'];if(!_0x585f96['isAdded']&&!_0x585f96['isRemoved']&&'deletion'==_0x88bd68[_0x1194be]['type'])return void(_0x585f96['isRemoveSuggestion']=_0x88bd68[_0x1194be]);}}}['_setDistance'](_0x546d15,_0x4568db){let _0x4abf1f=0x0,_0x4dc37a=!0x1;const _0x3bde2d=new Map();for(const _0x58d497 of _0x546d15)_0x58d497[_0x4568db]?_0x4dc37a&&(_0x4abf1f++,_0x4dc37a=!0x1):(_0x4abf1f++,_0x4dc37a=!0x0),_0x3bde2d['set'](_0x58d497['id'],_0x4abf1f);for(let _0x3925cf=0x0;_0x3925cf<_0x546d15['length'];_0x3925cf++){if('isRemoved'==_0x4568db&&_0x546d15[_0x3925cf]['isAdded']||'isAdded'==_0x4568db&&_0x546d15[_0x3925cf]['isRemoved'])continue;if('text'==_0x546d15[_0x3925cf]['type']){_0x546d15[_0x3925cf]['distance']=0x0;continue;}const _0x4925b5=_0x3bde2d['get'](_0x546d15[_0x3925cf]['pairId']),_0x36ffbc=_0x3bde2d['get'](_0x546d15[_0x3925cf]['id']);_0x546d15[_0x3925cf]['distance']=_0x4925b5-_0x36ffbc;}}['_getRevisionsRange'](_0x438f9d,_0x2ad29e,_0x4d415d=!0x1){const _0x808334=[];let _0x107848=this['repository']['getIndex'](_0x438f9d),_0x179561=this['repository']['getIndex'](_0x2ad29e);for(-0x1==_0x179561&&(_0x179561=this['repository']['_revisions']['length'],_0x4d415d=!0x1);_0x107848<_0x179561;)_0x808334['push'](this['repository']['getRevision'](_0x107848)),_0x107848++;return _0x4d415d&&_0x808334['push'](this['repository']['getRevision'](_0x107848)),_0x808334;}['_threeWayMerge'](_0x3c6391,_0x25398f,_0x424ef2,_0x25ed39){const _0x5e4328=this['editor']['model']['schema'];let _0x43f921=_0x25398f;for(;_0x3c6391[_0x43f921]&&_0x3c6391[_0x43f921]['isAdded'];)_0x43f921++;let _0xc2347d=_0x25ed39;for(;_0x424ef2[_0xc2347d]&&_0x424ef2[_0xc2347d]['isRemoved'];)_0xc2347d++;_0x472979(_0x3c6391,_0x25398f,_0x43f921),_0x472979(_0x424ef2,_0x25ed39,_0xc2347d);const _0x54715d=_0x424ef2['slice'](_0x25ed39,_0xc2347d)['concat'](_0x3c6391['slice'](_0x25398f,_0x43f921));return _0x54715d['sort']((_0x40f088,_0x5ca793)=>_0x40f088['side']!=_0x5ca793['side']?_0x40f088['side']-_0x5ca793['side']:_0x40f088['level']!=_0x5ca793['level']?_0x40f088['level']-_0x5ca793['level']:_0x40f088['distance']!=_0x5ca793['distance']?_0x5ca793['distance']-_0x40f088['distance']:!!_0x40f088['isAdded']!=!!_0x5ca793['isAdded']?-0x1==_0x40f088['side']||0x0==_0x40f088['side']?_0x40f088['isAdded']?-0x1:0x1:_0x40f088['isAdded']?0x1:-0x1:_0x40f088['index']-_0x5ca793['index']),{'commonTape':_0x54715d,'iEnd':_0x43f921,'jEnd':_0xc2347d};function _0x472979(_0x32572d,_0x16c79c,_0x1535e7){let _0x507f16=-0x1,_0x3c8e1e=Number['POSITIVE_INFINITY'],_0x5c52e4=!0x0;for(let _0x29cd2e=_0x16c79c;_0x29cd2e<_0x1535e7;_0x29cd2e++)if(_0x5e4328['isInline'](_0x32572d[_0x29cd2e]['item'])||(_0x5c52e4=!0x1),_0x32572d[_0x29cd2e]['item']['startIndex']<_0x16c79c&&(_0x507f16=_0x29cd2e),_0x32572d[_0x29cd2e]['item']['endIndex']>=_0x1535e7){_0x3c8e1e=_0x29cd2e;break;}_0x5c52e4&&(_0x507f16=_0x1535e7-0x1);for(let _0x2fd2b1=_0x16c79c;_0x2fd2b1<_0x1535e7;_0x2fd2b1++)_0x32572d[_0x2fd2b1]['side']=_0x2fd2b1<=_0x507f16?-0x1:_0x2fd2b1<_0x3c8e1e?0x0:0x1,_0x32572d[_0x2fd2b1]['index']=_0x2fd2b1;let _0x3255e2=0x0;for(let _0x4dd9cf=_0x16c79c;_0x4dd9cf<=_0x507f16;_0x4dd9cf++)0x0==_0x32572d[_0x4dd9cf]['distance']?_0x32572d[_0x4dd9cf]['level']=_0x3255e2:(_0x3255e2++,_0x32572d[_0x4dd9cf]['level']=_0x3255e2,_0x3255e2++);for(let _0x2dac1b=_0x16c79c;_0x2dac1b<_0x1535e7;_0x2dac1b++)0x0==_0x32572d[_0x2dac1b]['side']&&(_0x32572d[_0x2dac1b]['level']=_0x3255e2);_0x3255e2=0x0;for(let _0xaa0069=_0x1535e7-0x1;_0xaa0069>=_0x3c8e1e;_0xaa0069--)0x0==_0x32572d[_0xaa0069]['distance']?_0x32572d[_0xaa0069]['level']=_0x3255e2:(_0x3255e2--,_0x32572d[_0xaa0069]['level']=_0x3255e2,_0x3255e2--);}}['_fixObsoleteTags'](_0x521aff){const _0x5a25d4=new Map(),_0x3c9b27=this['editor']['model']['schema'];for(let _0x4d8e4a=0x1;_0x4d8e4a<_0x521aff['length'];_0x4d8e4a++){let _0x2920d7,_0x3dec1e,_0x3d8f53;const _0xbf149d=_0x521aff[_0x4d8e4a],_0x174660=_0x521aff[_0x4d8e4a-0x1];if('text'==_0xbf149d['type'])continue;if(_0xbf149d['type']!=_0x174660['type'])continue;if(!_0x3c9b27['isBlock'](_0x174660['item'])||_0x3c9b27['isLimit'](_0x174660['item']))continue;if(!_0x3c9b27['isBlock'](_0xbf149d['item'])||_0x3c9b27['isLimit'](_0xbf149d['item']))continue;if((_0x521aff[_0x4d8e4a]['isAdded']||_0x521aff[_0x4d8e4a]['isAddSuggestion'])&&_0x521aff[_0x4d8e4a-0x1]['isRemoved'])_0x2920d7=_0x521aff[_0x4d8e4a],_0x3dec1e=_0x521aff[_0x4d8e4a-0x1],_0x3d8f53=_0x4d8e4a-0x1;else{if(!_0x521aff[_0x4d8e4a]['isRemoved']||!_0x521aff[_0x4d8e4a-0x1]['isAdded']&&!_0x521aff[_0x4d8e4a-0x1]['isAddSuggestion'])continue;_0x2920d7=_0x521aff[_0x4d8e4a-0x1],_0x3dec1e=_0x521aff[_0x4d8e4a],_0x3d8f53=_0x4d8e4a;}const _0x21f105=_0x2920d7['level']==_0x3dec1e['level'],_0x1f5afe=Math['abs'](_0x2920d7['level'])<Math['abs'](_0x3dec1e['level'])&&0x0==_0x3dec1e['distance'];(_0x21f105||_0x1f5afe)&&(_0x5a25d4['set'](_0x3dec1e['id'],_0x2920d7['id']),_0x521aff['splice'](_0x3d8f53,0x1),_0x4d8e4a--,_0x2920d7['isAdded']=!0x1);}for(let _0x581277=0x0;_0x581277<_0x521aff['length'];_0x581277++)_0x5a25d4['has'](_0x521aff[_0x581277]['pairId'])&&(_0x521aff[_0x581277]['pairId']=_0x5a25d4['get'](_0x521aff[_0x581277]['pairId']));}['_removeMissingPairs'](_0x42cba7){const _0x5c08d9=new Set(_0x42cba7['map'](_0x15dbab=>_0x15dbab['id']));for(let _0x249851=0x0;_0x249851<_0x42cba7['length'];_0x249851++)_0x5c08d9['has'](_0x42cba7[_0x249851]['pairId'])||0x0==_0x42cba7[_0x249851]['distance']||(_0x42cba7[_0x249851]['isIncorrect']=!0x0);return _0x42cba7['filter'](_0x21e83e=>!_0x21e83e['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2c2292){const _0x3a4ba2=new Set();for(let _0x45a694=0x0;_0x45a694<_0x2c2292['length'];_0x45a694++){if(_0x3a4ba2['has'](_0x2c2292[_0x45a694]['id'])&&_0x2c2292[_0x45a694]['isRemoved']&&(_0x2c2292[_0x45a694]['isIncorrect']=!0x0),_0x2c2292[_0x45a694]['isIncorrect'])continue;if(0x0==_0x2c2292[_0x45a694]['distance'])continue;if('elementStart'!=_0x2c2292[_0x45a694]['type'])continue;if(null==_0x2c2292[_0x45a694]['pairId'])continue;let _0xd1b61a=_0x45a694+0x1,_0x25bc03=0x0;for(;_0x2c2292[_0xd1b61a]['id']!=_0x2c2292[_0x45a694]['pairId'];)'elementStart'==_0x2c2292[_0xd1b61a]['type']?_0x25bc03++:'elementEnd'==_0x2c2292[_0xd1b61a]['type']&&_0x25bc03--,_0xd1b61a++;if(0x0!=_0x25bc03){if(_0x2c2292[_0x45a694]['isRemoved'])_0x2c2292[_0x45a694]['isIncorrect']=!0x0;else{for(;_0xd1b61a!=_0x45a694;)_0x2c2292[_0xd1b61a]['isRemoved']&&0x0!=_0x2c2292[_0xd1b61a]['distance']&&(_0x2c2292[_0xd1b61a]['isIncorrect']=!0x0,_0x3a4ba2['add'](_0x2c2292[_0xd1b61a]['pairId'])),_0xd1b61a--;}}}return _0x2c2292['filter'](_0x2c2193=>!_0x2c2193['isIncorrect']);}['_removeUnsupportedChanges'](_0x43fe59){const _0x7981f1=this['editor']['model']['schema'];for(let _0x512c14=0x0;_0x512c14<_0x43fe59['length'];_0x512c14++){if(!(_0x43fe59[_0x512c14]['isAdded']||_0x43fe59[_0x512c14]['isAddSuggestion']||_0x43fe59[_0x512c14]['isRemoved']||_0x43fe59[_0x512c14]['isRemoveSuggestion']))continue;if(0x0==_0x43fe59[_0x512c14]['distance'])continue;const _0x3185d7=_0x43fe59[_0x512c14]['item'];_0x7981f1['isBlock'](_0x3185d7)||_0x7981f1['isLimit'](_0x3185d7)||(_0x43fe59[_0x512c14]['isAdded']&&delete _0x43fe59[_0x512c14]['isAdded'],_0x43fe59[_0x512c14]['isAddSuggestion']&&delete _0x43fe59[_0x512c14]['isAddSuggestion'],_0x43fe59[_0x512c14]['isRemoveSuggestion']&&delete _0x43fe59[_0x512c14]['isRemoveSuggestion'],_0x43fe59[_0x512c14]['isRemoved']&&(_0x43fe59[_0x512c14]['isIncorrect']=!0x0));}return _0x43fe59['filter'](_0x14012b=>!_0x14012b['isIncorrect']);}['_makeModelFromTape'](_0x407acb,_0x2b5799,_0x320466){const _0x3655ac=new gt(),_0x14757a=[],_0xacd5f=new Map(),_0x1d6948=this['editor']['model'],_0x3ab943=_0x1d6948['schema'],_0x5d9cc0=[_0x3655ac],_0x5069ff={},_0x4fb1f5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xda9a2f=null;const _0x9a50d4=[0x0];for(let _0x2a1967=0x0;_0x2a1967<_0x407acb['length'];_0x2a1967++)if('elementStart'===_0x407acb[_0x2a1967]['type']){_0x407acb[_0x2a1967]['previousPosition']=_0x1d6948['createPositionFromPath'](_0x3655ac,_0x9a50d4);const _0x40a8cb=new ut(_0x407acb[_0x2a1967]['item']['name'],_0x407acb[_0x2a1967]['item']['getAttributes']());_0x5d9cc0[0x0]['_appendChild'](_0x40a8cb),_0x9a50d4['push'](0x0),_0x5d9cc0['unshift'](_0x40a8cb),_0x407acb[_0x2a1967]['nextPosition']=_0x1d6948['createPositionFromPath'](_0x3655ac,_0x9a50d4);}else'elementEnd'===_0x407acb[_0x2a1967]['type']?(_0x5d9cc0['shift'](),_0x407acb[_0x2a1967]['previousPosition']=_0x1d6948['createPositionFromPath'](_0x3655ac,_0x9a50d4),_0x9a50d4['pop'](),_0x9a50d4[_0x9a50d4['length']-0x1]++,_0x407acb[_0x2a1967]['nextPosition']=_0x1d6948['createPositionFromPath'](_0x3655ac,_0x9a50d4)):(_0x407acb[_0x2a1967]['previousPosition']=_0x1d6948['createPositionFromPath'](_0x3655ac,_0x9a50d4),_0xda9a2f?_0xda9a2f['_data']+=_0x407acb[_0x2a1967]['item']['data']:_0xda9a2f=new wt(_0x407acb[_0x2a1967]['item']['data'],_0x407acb[_0x2a1967]['item']['getAttributes']()),_0x407acb[_0x2a1967+0x1]&&'text'===_0x407acb[_0x2a1967+0x1]['type']&&_0xca07bd(_0xda9a2f,_0x407acb[_0x2a1967+0x1]['item'])||(_0x5d9cc0[0x0]['_appendChild'](_0xda9a2f),_0xda9a2f=null),_0x9a50d4[_0x9a50d4['length']-0x1]+=_0x407acb[_0x2a1967]['item']['offsetSize'],_0x407acb[_0x2a1967]['nextPosition']=_0x1d6948['createPositionFromPath'](_0x3655ac,_0x9a50d4));for(let _0x18f58b=0x0;_0x18f58b<_0x407acb['length'];_0x18f58b++){const _0x133f63=_0x407acb[_0x18f58b]['previousPosition'],_0x448428=_0x407acb[_0x18f58b]['nextPosition'];for(const _0x597e4a of _0x407acb[_0x18f58b]['markersStart'])_0xacd5f['set'](_0x597e4a,{'start':_0x133f63,'end':null});_0xdcdb6d('isRemoveSuggestion',_0x18f58b,_0x133f63,_0x448428),_0xdcdb6d('isAddSuggestion',_0x18f58b,_0x133f63,_0x448428),_0xdcdb6d('isRemoved',_0x18f58b,_0x133f63,_0x448428),_0xdcdb6d('isAdded',_0x18f58b,_0x133f63,_0x448428);for(const _0x580616 of _0x407acb[_0x18f58b]['markersEnd']){_0xacd5f['get'](_0x580616)['end']=_0x448428;}}for(const [_0x5642c0,_0x598614]of _0xacd5f){const _0x3787b3=this['editor']['model']['createRange'](_0x598614['start'],_0x598614['end']);_0x3655ac['markers']['set'](_0x5642c0,_0x3787b3);}return _0x14757a['sort']((_0x40c415,_0x401819)=>{const _0x48981d=_0x3655ac['markers']['get']('revision:'+_0x40c415['id']),_0x1d93c3=_0x3655ac['markers']['get']('revision:'+_0x401819['id']);return _0x48981d['start']['isBefore'](_0x1d93c3['start'])?-0x1:_0x48981d['start']['isAfter'](_0x1d93c3['start'])?0x1:_0x48981d['end']['isBefore'](_0x1d93c3['end'])?-0x1:_0x48981d['end']['isAfter'](_0x1d93c3['end'])?0x1:'add'===_0x40c415['type']?-0x1:0x1;}),{'root':_0x3655ac,'changes':_0x14757a};function _0xdcdb6d(_0x35d327,_0x44a70d,_0x55b9c4,_0x5ed0b4){const _0x8ae12f=!!_0x407acb[_0x44a70d][_0x35d327],_0x331ea4=_0x8ae12f?_0x407acb[_0x44a70d][_0x35d327]['userId']:null,_0x2ea31d=_0x44a70d===_0x407acb['length']-0x1,_0x2868d8=_0x4fb1f5[_0x35d327][0x0],_0x187fc0=_0x3ab943['isObject'](_0x407acb[_0x44a70d]['item']);!_0x5069ff[_0x35d327]&&_0x8ae12f?_0x5069ff[_0x35d327]={'start':_0x55b9c4,'tapeItem':_0x407acb[_0x44a70d],'userId':_0x331ea4,'type':_0x35d327}:_0x5069ff[_0x35d327]&&!_0x8ae12f?(_0x5069ff[_0x35d327]['end']=_0x55b9c4,_0x5d37aa(_0x5069ff[_0x35d327]),_0x5069ff[_0x35d327]=null):_0x5069ff[_0x35d327]&&_0x8ae12f&&_0x5069ff[_0x35d327]['userId']!==_0x331ea4&&(_0x5069ff[_0x35d327]['end']=_0x55b9c4,_0x2868d8&&_0x2868d8['userId']===_0x5069ff[_0x35d327]['userId']||_0x5d37aa(_0x5069ff[_0x35d327]),_0x5069ff[_0x35d327]={'start':_0x55b9c4,'tapeItem':_0x407acb[_0x44a70d],'userId':_0x331ea4,'type':_0x35d327}),_0x5069ff[_0x35d327]&&_0x187fc0&&('elementStart'!==_0x407acb[_0x44a70d]['type']||_0x2868d8&&_0x2868d8['userId']===_0x331ea4||_0x4fb1f5[_0x35d327]['unshift']({'userId':_0x331ea4,'object':_0x407acb[_0x44a70d]['item'],'change':_0x5069ff[_0x35d327]}),'elementEnd'===_0x407acb[_0x44a70d]['type']&&_0x2868d8&&_0x2868d8['object']===_0x407acb[_0x44a70d]['item']&&(_0x4fb1f5[_0x35d327]['shift'](),_0x5069ff[_0x35d327]=_0x2868d8['change'])),_0x5069ff[_0x35d327]&&_0x2ea31d&&(_0x5069ff[_0x35d327]['end']=_0x5ed0b4,_0x5d37aa(_0x5069ff[_0x35d327]),_0x5069ff[_0x35d327]=null);}function _0x5d37aa({start:_0x25bd37,end:_0x588b71,tapeItem:_0x4e604c,userId:_0xfbd1fd,type:_0x4182be}){const _0x10bf3f=_0x4e604c['item'],_0x47a736=_0x1d6948['schema']['isBlock'](_0x10bf3f)&&!_0x1d6948['schema']['isLimit'](_0x10bf3f),_0x40835d=_0x25bd37['nodeAfter']==_0x588b71['parent']&&_0x588b71['isAtStart'];if(_0x47a736&&_0x40835d)return;const _0x9a13d3=_0x1d6948['createRange'](_0x25bd37,_0x588b71),_0x3563b2=_0x2b5799['get'](_0xfbd1fd),_0x597949=new r({'author':_0x3563b2,'type':'isAdded'==_0x4182be||'isAddSuggestion'==_0x4182be?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4182be||'isRemoveSuggestion'==_0x4182be},'createdAt':new Date(),'rootName':_0x320466});_0x14757a['push'](_0x597949),_0x3655ac['markers']['set']('revision:'+_0x597949['id'],_0x9a13d3);}function _0xca07bd(_0x20a4f9,_0x3ba9b6){const _0x251bbe=_0x20a4f9['getAttributes'](),_0x3cc730=_0x3ba9b6['getAttributes']();for(const _0x2ebd59 of _0x251bbe){if(_0x2ebd59[0x1]!==_0x3ba9b6['getAttribute'](_0x2ebd59[0x0]))return!0x1;_0x3cc730['next']();}return _0x3cc730['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x559ed2=>{const _0x33d9ac=_0x559ed2['markerName']['split'](':')[0x1],_0xb4363f=this['_getChangeFromId'](_0x33d9ac);if(!_0xb4363f)return null;const _0x549fb1='add'==_0xb4363f['type']?'insertion':'deletion',_0xf1684d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x549fb1];return _0xb4363f['data']['isSuggestion']&&_0xf1684d['push']('ck-suggestion-marker-'+_0x549fb1+'-new'),this['activeChange']==_0xb4363f&&_0xf1684d['push']('ck-suggestion-marker--active'),{'classes':_0xf1684d,'attributes':{'data-change-id':_0x33d9ac}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1adfc2=>{_0x1adfc2['on']('element:pre',(_0x2decb4,_0x421ff1,_0x8987e0)=>{const _0xd78c02=_0x421ff1['viewItem']['getChild'](0x0);if(!_0xd78c02||!_0xd78c02['is']('element','code'))return;if(!_0x8987e0['consumable']['consume'](_0xd78c02,{'attributes':['vid_start','vid_end']}))return;const _0x3f760e=_0x421ff1['modelRange']['start']['nodeAfter'];_0x8987e0['writer']['setAttribute']('vid_start',_0xd78c02['getAttribute']('vid_start'),_0x3f760e),_0x8987e0['writer']['setAttribute']('vid_end',_0xd78c02['getAttribute']('vid_end'),_0x3f760e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x578f58=>{_0x578f58['on']('element',(_0x3ecc0a,_0x2b9de1,_0x52cfd4)=>{if(!_0x52cfd4['consumable']['consume'](_0x2b9de1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2b9de1['modelRange']['isCollapsed'])return;const _0x3e274e=_0x2b9de1['modelRange']['start']['nodeAfter'];_0x3e274e['hasAttribute']('vid_start')||_0x3e274e['hasAttribute']('vid')||(_0x52cfd4['writer']['setAttribute']('vid_start',_0x2b9de1['viewItem']['getAttribute']('vid_start'),_0x3e274e),_0x52cfd4['writer']['setAttribute']('vid_end',_0x2b9de1['viewItem']['getAttribute']('vid_end'),_0x3e274e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2d659b=>_0x2d659b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5c7aa3,[,_0x3f3221])=>{['vid_start','vid_end','vid']['includes'](_0x3f3221)&&(_0x5c7aa3['return']=!0x0,_0x5c7aa3['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x58bab9=>{_0x58bab9['on']('attribute:vid',(_0x4906dd,_0x11c0c4,_0x371f69)=>{if('\x20'!=_0x11c0c4['item']['data']||_0x11c0c4['item']['parent']['maxOffset']>0x1)return;if(!_0x371f69['consumable']['consume'](_0x11c0c4['item'],_0x4906dd['name']))return;const _0x103611=_0x371f69['writer'],_0x321594=_0x371f69['mapper']['toViewRange'](_0x11c0c4['range']);_0x103611['wrap'](_0x321594,_0x103611['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x18c1bb){const _0x1881a8=_0x18c1bb['plugins']['get']('RevisionViewer');return(_0x5c6860,_0x58d53f,_0x38661e)=>{const _0x4bf7f3=_0x58d53f['markerName']['split'](':')[0x1],_0x1dca66=_0x1881a8['_getChangeFromId'](_0x4bf7f3);if(!_0x1dca66)return null;const _0x463150='add'==_0x1dca66['type']?'split':'merge';if(!_0x38661e['consumable']['test'](_0x58d53f['markerRange'],_0x5c6860['name']))return;const _0x79a1f0=_0x58d53f['markerRange']['getWalker'](),_0x1f0be7=_0x58d53f['markerRange']['start'],_0x570617=_0x18c1bb['model']['schema'];let _0x55b4cc=null,_0x35238a=null,_0xe5b5f9=!0x1,_0xfeee28=!0x1;for(const _0x378883 of _0x79a1f0){const _0x34ec8d=_0x378883['item'];_0xe5b5f9=_0xe5b5f9||_0x570617['isContent'](_0x34ec8d);const _0x5dbaa8=_0x38661e['mapper']['toViewElement'](_0x34ec8d);if(_0x5dbaa8&&_0x5dbaa8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x378883['type']&&(_0x570617['isBlock'](_0x34ec8d)&&!_0x570617['isLimit'](_0x34ec8d)&&(_0x34ec8d['nextSibling']||_0x1f0be7['isAtEnd']?_0x55b4cc&&_0x55b4cc['parent']==_0x34ec8d||(_0x55b4cc=_0x34ec8d,_0x5f048c(_0x378883['previousPosition']),_0xfeee28=!0x0):_0x35238a=_0x35238a||_0x378883['previousPosition']));}function _0x5f048c(_0x1d5f24){const _0x2aea21=_0x38661e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x463150}),_0x46aa88=_0x38661e['mapper']['toViewPosition'](_0x1d5f24);_0x1dca66['data']['isSuggestion']&&_0x38661e['writer']['addClass']('ck-suggestion-marker-'+_0x463150+'-new',_0x2aea21),_0x1881a8['activeChange']==_0x1dca66&&_0x38661e['writer']['addClass']('ck-suggestion-marker--active',_0x2aea21),_0x38661e['writer']['insert'](_0x46aa88,_0x2aea21),_0x38661e['mapper']['bindElementToMarker'](_0x2aea21,_0x58d53f['markerName']);}_0xe5b5f9||_0xfeee28||!_0x35238a||_0x5f048c(_0x35238a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x37d7b0,_0x2422a5,_0x59c760)=>{const _0x51ceba=_0x59c760['mapper']['markerNameToElements'](_0x2422a5['markerName']);if(_0x51ceba){for(const _0x5c32d7 of _0x51ceba)(_0x5c32d7['hasClass']('ck-suggestion-marker-split')||_0x5c32d7['hasClass']('ck-suggestion-marker-merge'))&&(_0x59c760['mapper']['unbindElementFromMarkerName'](_0x5c32d7,_0x2422a5['markerName']),_0x59c760['writer']['remove'](_0x5c32d7));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x17983e,_0x5db2e4,_0x3c3b4f)=>{const _0x19c0f8=_0x5db2e4['markerName']['split'](':')[0x1],_0x29a9ac=this['_getChangeFromId'](_0x19c0f8);if(!_0x29a9ac)return null;const _0x601d77='add'==_0x29a9ac['type']?'split':'merge';if(_0x3c3b4f['consumable']['test'](_0x5db2e4['markerRange'],_0x17983e['name']))for(const _0x4f97ad of _0x5db2e4['markerRange']['getItems']()){if(!_0x4f97ad['is']('element','softBreak'))continue;const _0x3b51a4=_0x3c3b4f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x601d77}),_0x183304=_0x3c3b4f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4f97ad));_0x29a9ac['data']['isSuggestion']&&_0x3c3b4f['writer']['addClass']('ck-suggestion-marker-'+_0x601d77+'-new',_0x3b51a4),this['activeChange']==_0x29a9ac&&_0x3c3b4f['writer']['addClass']('ck-suggestion-marker--active',_0x3b51a4),_0x3c3b4f['writer']['insert'](_0x183304,_0x3b51a4),_0x3c3b4f['mapper']['bindElementToMarker'](_0x3b51a4,_0x5db2e4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x516a60=>{for(const _0x2708bf of this['editor']['model']['document']['getRootNames']()){const _0x485b8b=this['editor']['model']['document']['getRoot'](_0x2708bf),_0x333a88=this['editor']['editing']['view']['document']['getRoot'](_0x2708bf);if(_0x333a88){const _0x1330b5=_0x485b8b['getAttribute']('revisionHistoryAttachChange');if(_0x516a60['removeAttribute']('data-change-id',_0x333a88),_0x516a60['removeClass']('ck-revision-history-root-add',_0x333a88),_0x516a60['removeClass']('ck-revision-history-root-remove',_0x333a88),_0x516a60['removeClass']('ck-revision-history-root--active',_0x333a88),_0x1330b5){const _0x4e2090=this['_getChangeFromId'](_0x1330b5);if(!_0x4e2090)return null;_0x516a60['setAttribute']('data-change-id',_0x1330b5,_0x333a88),_0x516a60['addClass']('ck-revision-history-root-'+_0x4e2090['type'],_0x333a88),this['activeChange']==_0x4e2090&&_0x516a60['addClass']('ck-revision-history-root--active',_0x333a88);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x549efb=>'revision-comment:'+_0x549efb,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5eb955=>'revision-suggestion:'+_0x5eb955,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x310588=>({'name':'suggestion:'+_0x310588,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x18ae94=>{const _0x353954=_0x18ae94['markerName']['split'](':')[0x1];return'insertion'!=_0x353954&&'deletion'!=_0x353954?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x353954]};}}),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',(_0x44ffc4,_0x5605c6,_0x18a284)=>{const _0x66cd9d=_0x18a284['mapper']['markerNameToElements'](_0x5605c6['markerName']);if(_0x66cd9d){for(const _0x37e1b6 of _0x66cd9d)_0x37e1b6['is']('uiElement')&&(_0x18a284['mapper']['unbindElementFromMarkerName'](_0x37e1b6,_0x5605c6['markerName']),_0x18a284['writer']['remove'](_0x37e1b6));}},{'priority':'high'});}['_getChangeFromId'](_0x12f78a){return this['_changeIdToChange']['get'](_0x12f78a);}['_getViewForChange'](_0x39bfa1){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x39bfa1),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2ecf69,_0x47afa4,_0x5e3968,_0x1afbee)=>{_0x1afbee&&this['_balloon']['remove'](_0x1afbee),_0x5e3968&&(this['_balloon']['add']({'view':_0x5e3968,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1a7f1d=this['editor']['editing'],_0x3ebed5=this['_getChangeFromId'](_0x5e3968['changeId']);let _0x40a80f;if(_0x3ebed5['data']['isOnRoot']){const _0x1160e4=_0x1a7f1d['view']['getDomRoot'](_0x3ebed5['rootName']);_0x40a80f=Array['from'](_0x1160e4['getClientRects']());}else{const _0x3fa7a7=this['editor']['model']['markers']['get']('revision:'+_0x5e3968['changeId']);_0x40a80f=Array['from'](_0x1a7f1d['mapper']['markerNameToElements'](_0x3fa7a7['name']))['map'](_0x7d9b88=>_0x1a7f1d['view']['domConverter']['mapViewToDom'](_0x7d9b88))['map'](_0x1742d7=>Array['from'](_0x1742d7['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x40a80f[0x0];return _0x40a80f['find'](_0x4409fa=>_0x4409fa['top']-0x3<=this['_activeViewTarget']['y']&&_0x4409fa['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4409fa['left']-0x3<=this['_activeViewTarget']['x']&&_0x4409fa['right']+0x3>=this['_activeViewTarget']['x'])||_0x40a80f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1479a3,_0xb303bb,_0xb63b88,_0x43e57b)=>{this['activeView']=_0xb63b88?this['_getViewForChange'](_0xb63b88):null,this['editor']['model']['change'](()=>{const _0x3bef5b=this['editor']['editing'];_0x43e57b&&(_0x43e57b['data']['isOnRoot']?_0x3bef5b['view']['change'](_0x11f1c0=>{_0x11f1c0['removeClass']('ck-revision-history-root--active',_0x3bef5b['view']['document']['getRoot'](_0x43e57b['rootName']));}):_0x3bef5b['reconvertMarker']('revision:'+_0x43e57b['id'])),_0xb63b88&&(_0xb63b88['data']['isOnRoot']?_0x3bef5b['view']['change'](_0x21a991=>{_0x21a991['addClass']('ck-revision-history-root--active',_0x3bef5b['view']['document']['getRoot'](_0xb63b88['rootName']));}):_0x3bef5b['reconvertMarker']('revision:'+_0xb63b88['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x209fde,_0x29a35a)=>{if(this['activeChange'])return;const _0x4b3824=this['_findChangeIdFromDomTarget'](_0x29a35a['target']),_0x418fa5=this['_changeIdToChange']['get'](_0x4b3824);_0x418fa5?(this['_activeViewTarget']={'x':_0x29a35a['domEvent']['x'],'y':_0x29a35a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x418fa5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3dc342,_0x5cf08f)=>{const _0x5928b6=this['_findChangeIdFromDomTarget'](_0x5cf08f['target']),_0x333b2e=this['_changeIdToChange']['get'](_0x5928b6);_0x333b2e?(this['_activeViewTarget']={'x':_0x5cf08f['domEvent']['x'],'y':_0x5cf08f['domEvent']['y']},_0x333b2e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x333b2e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x19df2a){do{const _0x3bf1cd=_0x19df2a['getAttribute']('data-change-id');if(_0x3bf1cd)return _0x3bf1cd;_0x19df2a=_0x19df2a['parent'];}while(_0x19df2a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1457a0=>{for(const _0x1f6080 of this['editor']['model']['markers'])_0x1457a0['removeMarker'](_0x1f6080);});}}function Z(_0x11d398,_0x2ffa50){return(_0x702db9,_0x368191,_0x5c02be)=>{if(!_0x5c02be['consumable']['test'](_0x368191['markerRange'],_0x702db9['name']))return;const _0x497a94=_0x368191['markerRange']['getWalker'](),_0x457f1a=_0x368191['markerRange']['start'],_0x1e1c6a=_0x11d398['model']['schema'];let _0x49ac40=null,_0x2bad7b=null,_0x578f47=!0x1,_0x482e3e=!0x1;for(const _0x477d76 of _0x497a94){const _0x12d9dd=_0x477d76['item'];_0x578f47=_0x578f47||_0x1e1c6a['isContent'](_0x12d9dd);const _0x5d92d2=_0x5c02be['mapper']['toViewElement'](_0x12d9dd);if(_0x5d92d2&&_0x5d92d2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x477d76['type']&&(_0x1e1c6a['isBlock'](_0x12d9dd)&&!_0x1e1c6a['isLimit'](_0x12d9dd)&&(_0x12d9dd['nextSibling']||_0x457f1a['isAtEnd']?_0x49ac40&&_0x49ac40['parent']==_0x12d9dd||(_0x49ac40=_0x12d9dd,_0x3d3f03(_0x477d76['previousPosition']),_0x482e3e=!0x0):_0x2bad7b=_0x2bad7b||_0x477d76['previousPosition']));}function _0x3d3f03(_0x4524b3){const _0x1e5a68=_0x5c02be['mapper']['toViewPosition'](_0x4524b3),_0x1ad4b8=_0x5c02be['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2ffa50});_0x5c02be['writer']['insert'](_0x1e5a68,_0x1ad4b8),_0x5c02be['mapper']['bindElementToMarker'](_0x1ad4b8,_0x368191['markerName']);}_0x578f47||_0x482e3e||!_0x2bad7b||_0x3d3f03(_0x2bad7b);};}class _t extends _0x4f6e52{constructor(_0x270705){super(_0x270705);const _0x189d89=_0x270705['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x189d89,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x189d89,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x450030=this['editor'],_0x3a9da2=_0x450030['plugins']['get'](d),_0x2fc9a0=_0x3a9da2['isReady']?_0x3a9da2['diff']['newRevisionId']:null;_0x450030['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2fc9a0);}['refresh'](){const {isReady:_0x3c5e70,isEnabled:_0x4a28c1,repository:_0x5ab7d9,diff:_0x2bf13f}=this['editor']['plugins']['get'](d),_0x5707f5=_0x2bf13f&&_0x5ab7d9['getLaterVisibleRevision'](_0x2bf13f['newRevisionId']);this['isEnabled']=_0x3c5e70&&_0x4a28c1&&Boolean(_0x5707f5);}}class yt extends _0x4f6e52{['_step'];constructor(_0x2aec0f,{direction:_0xaf9542}){super(_0x2aec0f);const _0x1a3d9f=_0x2aec0f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xaf9542?0x1:-0x1,this['listenTo'](_0x1a3d9f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1a3d9f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1a3d9f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x172c48=this['editor'],_0x1660ba=_0x172c48['plugins']['get'](d),{isNavigationMode:_0x42b790,currentChangeNumber:_0x7f57db}=_0x1660ba;let _0x33625d;if(_0x1660ba['activeChange']=_0x42b790?_0x1660ba['diff']['changes']['get'](_0x7f57db+this['_step']):_0x1660ba['diff']['changes']['first'],_0x1660ba['activeChange']['data']['isOnRoot'])_0x33625d=_0x172c48['editing']['view']['getDomRoot'](_0x1660ba['activeChange']['rootName']);else{const _0x5a5916=_0x172c48['model']['markers']['get']('revision:'+_0x1660ba['activeChange']['id']);_0x33625d=_0x18151f(_0x172c48['editing'],_0x5a5916);}_0x248613({'target':_0x33625d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x378fd2,currentChangeNumber:_0x288b16,numberOfChanges:_0x2cf13c,isReady:_0x2212bd,isEnabled:_0xac46fa}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xac46fa&&_0x2212bd&&_0x2cf13c)&&(!_0x378fd2||(0x1===this['_step']?_0x288b16<_0x2cf13c-0x1:_0x288b16>0x0));}}class bi extends _0x646829{constructor(_0x4d9860){super(_0x4d9860);const _0x5357c6=this['bindTemplate'],_0x46fc3a=new _0x3e960e(_0x4d9860),_0x3c9e7d=new _0x3e960e(_0x4d9860);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',(_0x39809d,_0x1bf546)=>_0x39809d&&_0x1bf546>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x267cd8,_0x2b7ccd,_0x2d7914,_0x119bc2)=>{if(!_0x267cd8)return m(_0x4d9860,'Loading...');if(!_0x2d7914)return m(_0x4d9860,'No\x20changes');const _0x512f44=m(_0x4d9860,'NUMBER_OF_CHANGES',_0x2d7914);return _0x119bc2?m(_0x4d9860,'X_OF_Y_CHANGES',[_0x2b7ccd+0x1,_0x2d7914]):_0x512f44;}),_0x46fc3a['set']({'label':m(_0x4d9860,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1e14a0}),_0x3c9e7d['set']({'label':m(_0x4d9860,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5e5440}),_0x46fc3a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3c9e7d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x46fc3a['on']('execute',()=>this['fire']('execute','backward')),_0x3c9e7d['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',_0x5357c6['if']('_isStatusLabelVisible','ck-hidden',_0x2a3fbb=>!_0x2a3fbb)]},'children':[{'text':_0x5357c6['to']('isNavigationMode',_0x401d9e=>_0x401d9e?m(_0x4d9860,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4d9860,'Total')+':\x20')}]},{'text':_0x5357c6['to']('_statusText')}]},new _0x1df1ed(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x46fc3a,_0x3c9e7d]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x1b3b72{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x39b6f2=this['editor']['editing']['view'];_0x39b6f2['change'](_0x2ab5d0=>{for(const _0x432fba of _0x39b6f2['document']['roots'])_0x2ab5d0['addClass'](ie,_0x432fba);});}['hide'](){const _0x5b1713=this['editor']['editing']['view'];_0x5b1713['change'](_0x5cf4dc=>{for(const _0x302c46 of _0x5b1713['document']['roots'])_0x5cf4dc['removeClass'](ie,_0x302c46);});}}class w extends _0x1b3b72{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x1118c8=this['editor'],_0x1d6898=_0x1118c8['plugins']['get'](d),_0x391c05=_0x1118c8['plugins']['get'](te);_0x1118c8['ui']['componentFactory']['add']('exitToEditing',_0x386941=>{const _0xe113de=new _0x3e960e(_0x386941);return _0xe113de['set']({'label':m(_0x386941,'Back\x20to\x20editing'),'icon':_0x422683,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xe113de,'execute',()=>{_0x1118c8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xe113de;}),_0x1118c8['ui']['componentFactory']['add']('restoreRevision',_0x47100b=>{const _0x28fccf=new _0x3e960e(_0x47100b);return _0x28fccf['set']({'label':m(_0x47100b,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x28fccf['bind']('isEnabled')['to'](_0x1118c8['commands']['get']('restoreRevision')),this['listenTo'](_0x28fccf,'execute',()=>_0x1118c8['execute']('restoreRevision')),_0x28fccf;}),_0x1118c8['ui']['componentFactory']['add']('changesNavigation',_0x49904b=>{const _0x569441=new bi(_0x49904b),_0x989b0f=_0x1118c8['commands']['get']('showPreviousChange'),_0x560944=_0x1118c8['commands']['get']('showNextChange');return _0x569441['bind']('isBackwardNavigationEnabled')['to'](_0x989b0f,'isEnabled'),_0x569441['bind']('isForwardNavigationEnabled')['to'](_0x560944,'isEnabled'),_0x569441['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1d6898),this['listenTo'](_0x569441,'execute',(_0x114fc9,_0xd4249d)=>{_0x1118c8['execute']('forward'===_0xd4249d?'showNextChange':'showPreviousChange');}),_0x569441;}),_0x391c05['show'](),_0x1d6898['on']('change:isReady',(_0x2a78e3,_0x212474,_0x37f14b)=>{_0x37f14b?_0x391c05['hide']():_0x391c05['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x1ffdea,_0x4aec7e){super(_0x1ffdea,_0x4aec7e);const _0x5e77ea=this['bindTemplate'];this['set']({'label':m(_0x1ffdea,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1ffdea,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5e77ea['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 _0x3344a2=this['fieldView']['element'];this['_tooltipString']=_0x3344a2['scrollWidth']>_0x3344a2['clientWidth']&&_0x3344a2['value']||'';}}class oi extends _0x646829{constructor(_0x4a19e4,_0x13b5f9,_0x21d4b8){super(_0x4a19e4);const _0x5c6aac=new _0x1011e4();_0x5c6aac['set']({'content':_0x4b5c20,'viewBox':'0\x200\x2011\x2010'});const _0x4bc3f4=['ck','ck-revision-history-sidebar__revision-author'];_0x21d4b8&&_0x4bc3f4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x259a4f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4a19e4,_0x21d4b8?'Revision\x20creator':'Revision\x20author')},'children':[_0x5c6aac,_0x13b5f9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4bc3f4},'children':_0x259a4f});}}function ni(_0x2fa51c,_0x3e2bb4){const _0x1967e1=_0x2fa51c['bindTemplate'],_0x3e9c29=_0x2fa51c['locale'],_0x188a05=_0x2b8694(_0x3e9c29);_0x188a05['panelPosition']='sw';const _0xb907a4=function(_0xf979d1,_0x3bae79){const _0x5a4448=function(_0x557fb3,_0x4192ac){const _0x80ad89=_0x557fb3['locale'],_0xf7522c={'Compare\x20against\x20selected':m(_0x80ad89,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x80ad89,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x80ad89,'Restore\x20this\x20revision')};return _0x4192ac['map'](_0x4205a0=>{const _0x234295=_0xf7522c[_0x4205a0['name']];return _0x234295&&_0x234295!==_0x4205a0['name']&&(_0x4205a0['name']=_0x234295),_0x4205a0;});}(_0xf979d1,_0x3bae79),_0x1c138f=new _0x35d588();for(const _0x304099 of _0x5a4448){const _0x5d6e96={'type':'button','model':new to({'label':_0x304099['name'],'class':_0x304099['class'],'withText':!0x0,'role':'menuitem','_action':_0x304099['action']})};_0x5d6e96['model']['bind']('isEnabled')['to'](_0xf979d1,'isActionsDropdownOpen',_0x1a4da2=>'function'!=typeof _0x304099['isEnabled']||(!_0x1a4da2||_0x304099['isEnabled'](_0xf979d1))),_0x1c138f['add'](_0x5d6e96);}return _0x1c138f;}(_0x2fa51c,_0x3e2bb4);return _0x2fa51c['bind']('isActionsDropdownOpen')['to'](_0x188a05,'isOpen'),_0x188a05['buttonView']['set']({'label':m(_0x3e9c29,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1e6a30}),_0x188a05['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1967e1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1967e1['to'](_0x51fe68=>_0x51fe68['stopPropagation']())}}),_0x188a05['on']('execute',_0x20f1b0=>{_0x2fa51c['isReady']&&'function'==typeof _0x20f1b0['source']['_action']&&_0x20f1b0['source']['_action'](_0x2fa51c);}),_0x1338b3(_0x188a05,_0xb907a4,{'role':'menu'}),_0x188a05['listenTo'](_0x2fa51c,'change:isActionsDropdownOpen',(_0x16f73e,_0x39ec1e,_0x1c64a9)=>{if(_0x1c64a9)for(const _0x4898f6 of _0x188a05['listView']['items']){const _0xfd8f83=_0x4898f6['children']['first'],_0x14d4d9=_0x3e2bb4['find'](_0x2c6d18=>_0x2c6d18['action']===_0xfd8f83['_action'])['isVisible'];_0x4898f6['isVisible']=void 0x0===_0x14d4d9||_0x14d4d9(_0x2fa51c);}}),_0x188a05;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x1e0d94(_0x646829){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3c9999,_0x40284a,_0x47ae36,_0xad8eed){super(_0x3c9999);const _0x35aab7=this['bindTemplate'],_0xc372bc=function(_0x31db2b,_0x543488){const _0x128755=Array['from'](_0x543488['authors'])['filter'](_0x4aa2af=>_0x4aa2af!=_0x543488['creator']);return _0x543488['creator']&&_0x128755['unshift'](_0x543488['creator']),_0x128755['map'](_0x33b7cf=>new oi(_0x31db2b,_0x33b7cf,_0x33b7cf==_0x543488['creator']));}(_0x3c9999,_0x40284a);this['id']=_0x40284a['id'],this['_revision']=_0x40284a,this['_requireRevisionName']=_0xad8eed,this['bind']('name','createdAt')['to'](_0x40284a),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x43e120=>{return _0x5dd061=_0x3c9999['uiLanguage'],(_0x18f09c=_0x43e120)['toLocaleDateString'](_0x5dd061,{'month':'long','day':'numeric'})+',\x20'+_0x18f09c['toLocaleTimeString'](_0x5dd061,{'hour':'numeric','minute':'numeric'});var _0x5dd061,_0x18f09c;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x3c9999,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x4c8d14=>_0x4c8d14||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x54f021,_0x6b74da)=>_0x54f021&&_0x6b74da),this['revisionActionsView']=_0x47ae36&&_0x47ae36['length']?ni(this,_0x47ae36):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x35aab7['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x35aab7['if']('isEnabled','ck-disabled',_0x29e3ea=>!_0x29e3ea),_0x35aab7['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x35aab7['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x35aab7['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':_0x35aab7['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':_0xc372bc}]},this['revisionActionsView']],'on':{'click':_0x35aab7['to'](_0x9dda62=>{_0x9dda62['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x342ed4=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x342ed4,'change',()=>{this['_requireRevisionName']&&!_0x342ed4['value']||this['fire']('setName',{'id':this['id'],'name':_0x342ed4['value']}),_0x342ed4['value']||(_0x342ed4['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x3bd3e1,_0x42ef08){const _0x5d7a55=_0xd95469['fromJSDate'](_0x3bd3e1)['setLocale'](_0x42ef08),_0x27587a=_0xd95469['local'](),_0x3995a7=_0x27587a['minus']({'days':0x1})['startOf']('day');let _0x179e7d,_0x29cb3e;return _0x5d7a55['hasSame'](_0x27587a,'day')?(_0x179e7d=_0x5d7a55['startOf']('day')['toJSDate'](),_0x29cb3e=_0x5d7a55['toRelativeCalendar']()):_0x5d7a55['hasSame'](_0x3995a7,'day')?(_0x179e7d=_0x3995a7['toJSDate'](),_0x29cb3e=_0x5d7a55['toRelativeCalendar']()):_0x5d7a55['hasSame'](_0x27587a,'week')?(_0x179e7d=_0x5d7a55['startOf']('week')['toJSDate'](),_0x29cb3e=_0x5d7a55['weekdayLong']||''):_0x5d7a55['hasSame'](_0x27587a,'year')?(_0x179e7d=_0x5d7a55['startOf']('month')['toJSDate'](),_0x29cb3e=_0x5d7a55['monthLong']||''):(_0x179e7d=_0x5d7a55['startOf']('year')['toJSDate'](),_0x29cb3e=String(_0x5d7a55['year'])),{'startDate':_0x179e7d,'localizedPeriodName':_0x29cb3e};}class mi extends _0x646829{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4cb55a,_0x18df61,_0x1fd897,_0x537bf4){super(_0x4cb55a);const _0x3380ae=vi(_0x18df61,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x18df61,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1fd897,this['_requireRevisionName']=_0x537bf4,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':_0x3380ae}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x699b52){const _0x319886=new ai(this['locale'],_0x699b52,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x319886);}['removeRevision'](_0x3257e9){const _0x228df5=this['revisionViews']['find'](_0x59a8d4=>_0x59a8d4['id']===_0x3257e9['id']);this['revisionViews']['remove'](_0x228df5);}}class is extends _0x646829{constructor(_0x3791cd){super(_0x3791cd);const _0x153461=new _0x1011e4();_0x153461['content']=_0x47b65b,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x153461,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3791cd,'Revision\x20history')]}]});}}class di extends _0x646829{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x388d49,_0x4ce610,_0x4acd5c,_0x290b33){super(_0x388d49);const _0x10e777=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4ce610,this['_revisionActions']=_0x4acd5c,this['_requireRevisionName']=_0x290b33,this['on']('select',(_0x258123,_0x553c0d)=>{this['fire']('revisionSelected',_0x553c0d);}),this['on']('setName',(_0x40f851,_0x35eabc)=>{this['fire']('revisionSetName',_0x35eabc);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new is(_0x388d49),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x10e777['if']('isEnabled','ck-disabled',_0xec4a86=>!_0xec4a86)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x5504ec of this['_revisions'])this['_addRevision'](_0x5504ec);this['_revisions']['on']('add',(_0x322776,_0x253822)=>{this['_addRevision'](_0x253822);}),this['_revisions']['on']('remove',(_0x416585,_0x5a7468)=>{this['_removeRevision'](_0x5a7468);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x130a89=>_0x130a89['revisionViews']['map'](_0x27ed59=>_0x27ed59))['flat']();}['selectRevision'](_0xcf810d){for(const _0x18dd23 of this['revisionViews'])_0xcf810d&&_0xcf810d['id']===_0x18dd23['id']?_0x18dd23['select']():_0x18dd23['deselect']();}['highlightRevisions'](_0x1c6514){for(const _0x5943b5 of this['revisionViews'])_0x1c6514['some'](({id:_0x2f866b})=>_0x2f866b===_0x5943b5['id'])?_0x5943b5['highlight']():_0x5943b5['unhighlight']();}['_addRevision'](_0x2ef11e){const _0x5c457c=vi(_0x2ef11e['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x279a81=this['timePeriodViews']['get'](0x0);_0x279a81&&_0x279a81['startDate']['getTime']()===_0x5c457c['getTime']()||(_0x279a81=new mi(this['locale'],_0x5c457c,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x279a81)),_0x279a81['addRevision'](_0x2ef11e);}['_removeRevision'](_0x6f2855){const _0x460c45=vi(_0x6f2855['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x460c45)['removeRevision'](_0x6f2855);}['_getTimePeriodViewByStartDate'](_0xaaf9c9){return this['timePeriodViews']['find'](_0x479617=>_0x479617['startDate']['getTime']()===_0xaaf9c9['getTime']());}}class g extends _0x1b3b72{['_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(_0x3df69c){super(_0x3df69c),this['_revisionViewer']=_0x3df69c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2d9661=this['_revisionsRepository']['_revisions'],_0x3580eb=this['_createRevisionActions'](),_0x20c412=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x2d9661,_0x3580eb,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',(_0xb82146,_0xbfcb83)=>{_0xbfcb83['revisionViews']['on']('add',(_0x54cfef,_0x432af4)=>{_0x432af4['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)),_0x20c412['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1a38f0=this['_revisionsRepository']['getRevision'](0x0);if(_0x1a38f0){const _0x2470c0=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1a38f0['id']);this['_revisionViewer']['compare'](_0x1a38f0,_0x2470c0);}}['_handleRevisionSelected'](_0x4a7121,_0x8b7d0d){const _0x8e2648=this['_revisionsRepository']['getRevision'](_0x8b7d0d['id']),_0x3d75fc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x8e2648['id']);this['_revisionViewer']['compare'](_0x8e2648,_0x3d75fc);}['_handleRevisionSetName'](_0x11432d,_0x3ab75b){this['_revisionsRepository']['getRevision'](_0x3ab75b['id'])['setName'](_0x3ab75b['name']);}['_handleDiffChange'](_0x5109d6,_0x2bec87,_0x29fb91){const _0x44b619=this['_revisionsRepository']['getRevisionsInDiff'](_0x29fb91);_0x44b619['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x44b619),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x44b619[0x0]));}['_createRevisionActions'](){const _0x29f8ab=this['editor'],_0x29cbd9=w['availableRevisionActions'],_0x50bbc1=_0x29f8ab['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x50bbc1['length'])return _0x50bbc1['map'](_0x51818e=>{const _0x3ec38f='string'==typeof _0x51818e?Object['assign']({},_0x29cbd9[_0x51818e]):_0x51818e;return _0x3ec38f['action']=_0x3ec38f['action']['bind'](this,_0x29f8ab),_0x3ec38f['isVisible']&&(_0x3ec38f['isVisible']=_0x3ec38f['isVisible']['bind'](this,_0x29f8ab)),_0x3ec38f;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x51d40b},_0x216f9f)=>{const _0x22b0ef=_0x51d40b['get'](d),_0x15dad4=_0x22b0ef['repository'];let _0x5d6480=_0x22b0ef['diff']['newRevisionId'],_0xfbbafe=_0x216f9f['id'];_0x15dad4['getIndex'](_0x5d6480)>_0x15dad4['getIndex'](_0xfbbafe)&&([_0x5d6480,_0xfbbafe]=[_0xfbbafe,_0x5d6480]),_0x22b0ef['compare'](_0x5d6480,_0xfbbafe);},'isVisible':({plugins:_0x4b74a8},_0x2c649e)=>{const _0x5c446c=_0x4b74a8['get'](d);return!(_0x5c446c['repository']['getRevisionsInDiff'](_0x5c446c['diff'])['length']>0x2)&&!_0x2c649e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3581e0,{id:_0xa9907a})=>{_0x3581e0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xa9907a);},'isVisible':({plugins:_0x91caac},_0x477415)=>!!_0x91caac['get'](d)['repository']['getLaterVisibleRevision'](_0x477415['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x3aef38},{id:_0xf14c1f,revisionNameView:_0x248663})=>{const _0x4c7baf=_0x3aef38['get'](d),_0xc96069=_0x4c7baf['repository']['getEarlierVisibleRevision'](_0xf14c1f);_0x4c7baf['compare'](_0xf14c1f,_0xc96069),_0x248663['focus'](),_0x248663['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1bfa95,_0x251f8e){super(_0x1bfa95),this['_view']=_0x251f8e,this['_toolbarConfig']=ot(_0x1bfa95['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3b2940){const _0x433d8c=this['editor'],_0x4cb00a=this['view'],_0x239591=_0x433d8c['editing']['view'],_0x3d9604=_0x4cb00a['editable'],_0x428fc4=_0x239591['document']['getRoot']();_0x3d9604['name']=_0x428fc4['rootName'],_0x4cb00a['render']();const _0x130a39=_0x3d9604['element'];this['setEditableElement'](_0x3d9604['name'],_0x130a39),_0x4cb00a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x239591['attachDomRoot'](_0x130a39),this['_elementReplacer']['replace'](_0x3b2940,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1c267d=this['view'],_0xe627df=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xe627df['detachDomRoot'](_0x1c267d['editable']['name']),_0x1c267d['destroy']();}['_initToolbar'](){const _0x3c600a=this['view'];_0x3c600a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3c600a['stickyPanel']['limiterElement']=_0x3c600a['element'],_0x3c600a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2c8311})=>_0x2c8311),_0x3c600a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3c600a['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x477622,_0x579a83,_0x1bbef4={}){super(_0x477622),this['stickyPanel']=new ut(_0x477622),this['toolbar']=new lt(_0x477622,{'shouldGroupWhenFull':_0x1bbef4['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x477622,_0x579a83);}['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(_0x48e667,_0x16a0ec){super(_0x16a0ec),this['sourceElement']=_0x48e667,this['model']['document']['createRoot']();const _0x541775=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x541775);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1a5036,_0x376d86){const _0x2c1de8=new this(_0x1a5036,_0x376d86);return await _0x2c1de8['initPlugins'](),await _0x2c1de8['ui']['init'](_0x1a5036),await _0x2c1de8['data']['init'](_0x2c1de8['config']['get']('initialData')||''),_0x2c1de8['fire']('ready'),_0x2c1de8;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x987c78{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x21808d){function _0x59b2b3(_0x405dfe){return _0x405dfe['map'](_0x2f36b3=>String['fromCharCode'](_0x2f36b3))['join']('');}super(_0x21808d),this['result']='end',_0x21808d[_0x59b2b3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x59b2b3([0x76,0x69,0x65,0x77])][_0x59b2b3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x59b2b3([0x61,0x75,0x74,0x6f]),_0x21808d[_0x59b2b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x59b2b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x59b2b3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x59b2b3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x59b2b3([0x6f,0x6b])});}}class k extends _0x987c78{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x31d4a){if(super(_0x31d4a),!this['editor']['config']['get']('revisionHistory'))throw new _0x1b87bd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x411dda=>this['_showRevisionViewer']({..._0x411dda,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xd7e7b8=>this['_closeRevisionViewer'](_0xd7e7b8)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x162cea=>this['_restoreRevision'](_0x162cea)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x533ac2){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x533ac2;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5dad85){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5dad85);}['getRevision'](_0x655363){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x655363);}['getRevisions'](_0xc59ea4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xc59ea4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x595dd4=this['editor'],_0x5d0ed7=_0x34e18d(_0x595dd4,p),_0x3099f0=_0x595dd4['plugins']['get']('RevisionTracker'),_0x1ee1c2=_0x595dd4['plugins']['get']('Users')['users'];return _0x5d0ed7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5d0ed7['lazyRoots'],(_0x5d0ed7['plugins']['push'](Rt,d,g,class extends _0x987c78{static get['requires'](){return[d,'Users'];}['init'](){const _0x2f96ad=this['editor']['plugins']['get']('Users');for(const _0x317210 of _0x1ee1c2)_0x317210['isAnonymous']||_0x2f96ad['getUser'](_0x317210['id'])||_0x2f96ad['addUser'](_0x317210);const _0x5b6624=_0x3099f0['repository']['getRevisions']();let _0x397d57=null;const _0x32e795=this['editor']['plugins']['get']('RevisionViewer');_0x32e795['adapter']=_0x3099f0['adapter'],_0x32e795['bind']('isEnabled')['to'](_0x3099f0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x595dd4,'isReadOnly',_0x478bc0=>!_0x478bc0);for(const _0x222d31 of _0x5b6624){const _0x26fb50=null===_0x222d31['creator'];if(_0x26fb50&&_0x222d31['toVersion']===_0x222d31['fromVersion'])continue;const _0x2c3ef9=_0x222d31['toJSON']();_0x32e795['addRevisionData'](_0x2c3ef9,(_0x231658,_0x1059dc,_0x2e3ed3)=>{if(_0x26fb50){if(_0x397d57)_0x397d57['_update'](_0x231658,_0x1059dc);else{if(!_0x1059dc){const _0x3fa92d=_0x2e3ed3['toJSON']();_0x3fa92d['id']=_0x50c4bd(),_0x3099f0['saveRevision'](_0x3fa92d,_0x2e3ed3['toVersion'])['then'](_0x112d0a=>{_0x397d57=_0x112d0a;});}}}else _0x222d31['_update'](_0x231658,_0x1059dc);});}}},w),_0x5d0ed7);}['_enhanceShowRevisionViewerCallback'](){const _0x232b6d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x9486a5=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x524adf=this['editor']['plugins']['get']('Autosave');await _0x524adf['save']();}else await _0x9486a5['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x314ec7=this['editor']['plugins']['get']('Dialog');_0x314ec7['isOpen']&&_0x314ec7['hide']();}const _0x5e26f7=this['_getRevisionViewerEditorConfig']();return _0x232b6d(_0x5e26f7)['then'](_0x34ff83=>{return(this['_viewerEditor']=_0x34ff83,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x34ff83;})['catch'](_0x5e98fb=>(console['error'](_0x5e98fb),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4f3a56=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'](),_0x4f3a56(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xd86b81=this['editor']['plugins']['get']('Annotations');_0xd86b81['refreshVisibility'](),_0xd86b81['refreshPositioning']();}})));}['_showRevisionViewer'](_0x439cfd){const _0x1653ec=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1cd87c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4503a7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x4503a7,_0x439cfd)['then'](_0x1dd9f0=>(_0x1cd87c['style']['display']='block',_0x1653ec['style']['display']='none',_0x1dd9f0));}['_closeRevisionViewer'](_0x66c44a){const _0x364dc5=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x364dc5['style']['display']='',_0x66c44a['destroy']();}async['_restoreRevision'](_0x3a6543){const _0x4190c0=this['editor'],_0x19ecf2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x59924e=_0x4190c0['plugins']['get']('RevisionTracker'),_0x38cc72=_0x19ecf2['repository']['getRevision'](_0x3a6543);let _0x4fdd5e,_0x2829c3,_0x2f18b8;try{_0x4fdd5e=await _0x19ecf2['getRevisionData'](_0x38cc72),_0x2829c3=await _0x19ecf2['getRevisionRootsAttributes'](_0x38cc72);}catch(_0xd0f0fb){return void console['error'](_0xd0f0fb);}_0x4190c0['model']['change'](_0x198bd6=>{for(const _0x434e53 of Array['from'](_0x4190c0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x198bd6['removeMarker'](_0x434e53);}),_0x19ecf2['isReady']=!0x1,_0x4190c0['model']['enqueueChange'](_0x186d51=>{_0x186d51['setSelection'](null),_0x186d51['removeSelectionAttribute'](_0x4190c0['model']['document']['selection']['getAttributeKeys']());const _0xc1f0=Object['keys'](_0x4fdd5e);for(const _0x1c8966 of _0x4190c0['model']['document']['roots'])'$graveyard'!=_0x1c8966['rootName']&&_0x1c8966['isAttached']()&&!_0xc1f0['includes'](_0x1c8966['rootName'])&&_0x186d51['detachRoot'](_0x1c8966);for(const _0x2f888e of _0xc1f0){let _0x1e05b0=_0x4190c0['model']['document']['getRoot'](_0x2f888e);_0x1e05b0&&_0x1e05b0['isAttached']()||(_0x1e05b0=_0x186d51['addRoot'](_0x2f888e));const _0x57c1c3=_0x2829c3[_0x2f888e],_0x3e2833=Object['keys'](_0x57c1c3),_0x439a4f=_0x4fdd5e[_0x2f888e];for(const _0x3d886e of _0x1e05b0['getAttributeKeys']())_0x3e2833['includes'](_0x3d886e)||_0x186d51['removeAttribute'](_0x3d886e,_0x1e05b0);for(const _0x5c3198 of _0x3e2833)_0x186d51['setAttribute'](_0x5c3198,_0x2829c3[_0x2f888e][_0x5c3198],_0x1e05b0);_0x186d51['remove'](_0x186d51['createRangeIn'](_0x1e05b0)),_0x186d51['insert'](_0x4190c0['data']['parse'](_0x439a4f,_0x1e05b0),_0x1e05b0,0x0);}});const _0x50159f=m(_0x4190c0['locale'],'Restored');if(_0x38cc72['name'])_0x2f18b8=-0x1==_0x38cc72['name']['indexOf'](_0x50159f)?_0x50159f+':\x20'+_0x38cc72['name']:_0x38cc72['name'];else _0x2f18b8=_0x50159f+':\x20'+(_0x38cc72['createdAt']['toLocaleDateString'](_0x4190c0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x38cc72['createdAt']['toLocaleTimeString'](_0x4190c0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x59924e['saveRevision']({'name':_0x2f18b8}),_0x19ecf2['isReady']=!0x0,_0x4190c0['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x35c8e5){super(_0x35c8e5),this['_revisionViewer']=_0x35c8e5['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1387e1=this['_revisionsRepository']['_revisions'],_0x42a032=this['_createRevisionActions'](),_0x2e86d1=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x1387e1,_0x42a032,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',(_0x37afd8,_0x5980de)=>{_0x5980de['revisionViews']['on']('add',(_0x465a81,_0xfdb8a9)=>{_0xfdb8a9['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)),_0x2e86d1['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x138732=this['_revisionsRepository']['getRevision'](0x0);if(_0x138732){const _0x2f7cd1=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x138732['id']);this['_revisionViewer']['compare'](_0x138732,_0x2f7cd1);}}['_handleRevisionSelected'](_0x92b5c2,_0x3aa62b){const _0x304c1b=this['_revisionsRepository']['getRevision'](_0x3aa62b['id']),_0x358b48=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x304c1b['id']);this['_revisionViewer']['compare'](_0x304c1b,_0x358b48);}['_handleRevisionSetName'](_0x2c9d1e,_0x1fc57e){this['_revisionsRepository']['getRevision'](_0x1fc57e['id'])['setName'](_0x1fc57e['name']);}['_handleDiffChange'](_0x118d46,_0x146149,_0x508eaa){const _0x3bb7e5=this['_revisionsRepository']['getRevisionsInDiff'](_0x508eaa);_0x3bb7e5['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3bb7e5),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3bb7e5[0x0]));}['_createRevisionActions'](){const _0x330d76=this['editor'],_0x4ce874=g['availableRevisionActions'],_0x2c0147=_0x330d76['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2c0147['length'])return _0x2c0147['map'](_0x3d75a1=>{const _0x35ed81='string'==typeof _0x3d75a1?Object['assign']({},_0x4ce874[_0x3d75a1]):_0x3d75a1;return _0x35ed81['action']=_0x35ed81['action']['bind'](this,_0x330d76),_0x35ed81['isVisible']&&(_0x35ed81['isVisible']=_0x35ed81['isVisible']['bind'](this,_0x330d76)),_0x35ed81;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4e457e},_0x2a2936)=>{const _0x33de44=_0x4e457e['get'](d),_0x105eb1=_0x33de44['repository'];let _0x12c594=_0x33de44['diff']['newRevisionId'],_0x535575=_0x2a2936['id'];_0x105eb1['getIndex'](_0x12c594)>_0x105eb1['getIndex'](_0x535575)&&([_0x12c594,_0x535575]=[_0x535575,_0x12c594]),_0x33de44['compare'](_0x12c594,_0x535575);},'isVisible':({plugins:_0x1dea1c},_0x41459f)=>{const _0x1cb056=_0x1dea1c['get'](d);return!(_0x1cb056['repository']['getRevisionsInDiff'](_0x1cb056['diff'])['length']>0x2)&&!_0x41459f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4ff214,{id:_0x1e126c})=>{_0x4ff214['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1e126c);},'isVisible':({plugins:_0x544652},_0x551bd0)=>!!_0x544652['get'](d)['repository']['getLaterVisibleRevision'](_0x551bd0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5b90d9},{id:_0x615085,revisionNameView:_0x2142d6})=>{const _0x2e32eb=_0x5b90d9['get'](d),_0x5a885b=_0x2e32eb['repository']['getEarlierVisibleRevision'](_0x615085);_0x2e32eb['compare'](_0x615085,_0x5a885b),_0x2142d6['focus'](),_0x2142d6['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x346513,_0x11196c){super(_0x346513),this['_view']=_0x11196c,this['_toolbarConfig']=ot(_0x346513['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2eebc7){const _0x49d571=this['editor'],_0x4797d3=this['view'],_0x205d47=_0x49d571['editing']['view'],_0x4a9121=_0x4797d3['editable'],_0x29de3e=_0x205d47['document']['getRoot']();_0x4a9121['name']=_0x29de3e['rootName'],_0x4797d3['render']();const _0x2377a7=_0x4a9121['element'];this['setEditableElement'](_0x4a9121['name'],_0x2377a7),_0x4797d3['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x205d47['attachDomRoot'](_0x2377a7),this['_elementReplacer']['replace'](_0x2eebc7,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5b9ed5=this['view'],_0xd364e2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xd364e2['detachDomRoot'](_0x5b9ed5['editable']['name']),_0x5b9ed5['destroy']();}['_initToolbar'](){const _0x52dc4a=this['view'];_0x52dc4a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x52dc4a['stickyPanel']['limiterElement']=_0x52dc4a['element'],_0x52dc4a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2d1a6d})=>_0x2d1a6d),_0x52dc4a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x52dc4a['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x35cec1,_0x3df32f,_0x23741d={}){super(_0x35cec1),this['stickyPanel']=new lt(_0x35cec1),this['toolbar']=new nt(_0x35cec1,{'shouldGroupWhenFull':_0x23741d['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x35cec1,_0x3df32f);}['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(_0x4b102b,_0x9cc83d){super(_0x9cc83d),this['sourceElement']=_0x4b102b,this['model']['document']['createRoot']();const _0x20b034=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x20b034);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x48f7e4,_0x397dce){const _0x1160e3=new this(_0x48f7e4,_0x397dce);return await _0x1160e3['initPlugins'](),await _0x1160e3['ui']['init'](_0x48f7e4),await _0x1160e3['data']['init'](_0x1160e3['config']['get']('initialData')||''),_0x1160e3['fire']('ready'),_0x1160e3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x1b3b72{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3580e0){function _0xa7dc01(_0x55c381){return _0x55c381['map'](_0x5cf97f=>String['fromCharCode'](_0x5cf97f))['join']('');}super(_0x3580e0),this['result']='end',_0x3580e0[_0xa7dc01([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa7dc01([0x76,0x69,0x65,0x77])][_0xa7dc01([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa7dc01([0x61,0x75,0x74,0x6f]),_0x3580e0[_0xa7dc01([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xa7dc01([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa7dc01([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xa7dc01([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xa7dc01([0x6f,0x6b])});}}class k extends _0x1b3b72{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x1e4095){if(super(_0x1e4095),!this['editor']['config']['get']('revisionHistory'))throw new _0x233041('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xee9ea=>this['_showRevisionViewer']({..._0xee9ea,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3d8741=>this['_closeRevisionViewer'](_0x3d8741)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x17e108=>this['_restoreRevision'](_0x17e108)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x30bb31){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x30bb31;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x463fa1){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x463fa1);}['getRevision'](_0x1d0d70){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1d0d70);}['getRevisions'](_0x1f8ce2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1f8ce2||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2b9ac3=this['editor'],_0x2adc59=_0x13be12(_0x2b9ac3,p),_0x1a8c01=_0x2b9ac3['plugins']['get']('RevisionTracker'),_0x11c988=_0x2b9ac3['plugins']['get']('Users')['users'];return _0x2adc59['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2adc59['lazyRoots'],(_0x2adc59['plugins']['push'](Rt,d,w,class extends _0x1b3b72{static get['requires'](){return[d,'Users'];}['init'](){const _0xfe7084=this['editor']['plugins']['get']('Users');for(const _0x1fcb5c of _0x11c988)_0x1fcb5c['isAnonymous']||_0xfe7084['getUser'](_0x1fcb5c['id'])||_0xfe7084['addUser'](_0x1fcb5c);const _0x3fec9a=_0x1a8c01['repository']['getRevisions']();let _0x22e5a8=null;const _0x400355=this['editor']['plugins']['get']('RevisionViewer');_0x400355['adapter']=_0x1a8c01['adapter'],_0x400355['bind']('isEnabled')['to'](_0x1a8c01),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2b9ac3,'isReadOnly',_0x50e25c=>!_0x50e25c);for(const _0x85147 of _0x3fec9a){const _0x3a1bd8=null===_0x85147['creator'];if(_0x3a1bd8&&_0x85147['toVersion']===_0x85147['fromVersion'])continue;const _0x141b39=_0x85147['toJSON']();_0x400355['addRevisionData'](_0x141b39,(_0xa1b55b,_0x122727,_0x379089)=>{if(_0x3a1bd8){if(_0x22e5a8)_0x22e5a8['_update'](_0xa1b55b,_0x122727);else{if(!_0x122727){const _0x209141=_0x379089['toJSON']();_0x209141['id']=_0x26ec69(),_0x1a8c01['saveRevision'](_0x209141,_0x379089['toVersion'])['then'](_0x17e93e=>{_0x22e5a8=_0x17e93e;});}}}else _0x85147['_update'](_0xa1b55b,_0x122727);});}}},g),_0x2adc59);}['_enhanceShowRevisionViewerCallback'](){const _0x4d750f=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x262a9d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3be746=this['editor']['plugins']['get']('Autosave');await _0x3be746['save']();}else await _0x262a9d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1496ba=this['editor']['plugins']['get']('Dialog');_0x1496ba['isOpen']&&_0x1496ba['hide']();}const _0xa31b60=this['_getRevisionViewerEditorConfig']();return _0x4d750f(_0xa31b60)['then'](_0x3598fb=>{return(this['_viewerEditor']=_0x3598fb,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3598fb;})['catch'](_0x3e7488=>(console['error'](_0x3e7488),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3c3b33=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'](),_0x3c3b33(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3fe28d=this['editor']['plugins']['get']('Annotations');_0x3fe28d['refreshVisibility'](),_0x3fe28d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5186b8){const _0x134ec1=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x156823=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x260963=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x260963,_0x5186b8)['then'](_0x48681b=>(_0x156823['style']['display']='block',_0x134ec1['style']['display']='none',_0x48681b));}['_closeRevisionViewer'](_0x19f9c7){const _0x216d64=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x216d64['style']['display']='',_0x19f9c7['destroy']();}async['_restoreRevision'](_0x3c56ee){const _0x1dffb2=this['editor'],_0x28dbef=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x42cec4=_0x1dffb2['plugins']['get']('RevisionTracker'),_0x273b4f=_0x28dbef['repository']['getRevision'](_0x3c56ee);let _0x2285b5,_0x172c4b,_0x312353;try{_0x2285b5=await _0x28dbef['getRevisionData'](_0x273b4f),_0x172c4b=await _0x28dbef['getRevisionRootsAttributes'](_0x273b4f);}catch(_0x605990){return void console['error'](_0x605990);}_0x1dffb2['model']['change'](_0x3cfd53=>{for(const _0x8eeffc of Array['from'](_0x1dffb2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3cfd53['removeMarker'](_0x8eeffc);}),_0x28dbef['isReady']=!0x1,_0x1dffb2['model']['enqueueChange'](_0x3c0a53=>{_0x3c0a53['setSelection'](null),_0x3c0a53['removeSelectionAttribute'](_0x1dffb2['model']['document']['selection']['getAttributeKeys']());const _0x1166c4=Object['keys'](_0x2285b5);for(const _0x55fa99 of _0x1dffb2['model']['document']['roots'])'$graveyard'!=_0x55fa99['rootName']&&_0x55fa99['isAttached']()&&!_0x1166c4['includes'](_0x55fa99['rootName'])&&_0x3c0a53['detachRoot'](_0x55fa99);for(const _0x5b1ffb of _0x1166c4){let _0x4a79c2=_0x1dffb2['model']['document']['getRoot'](_0x5b1ffb);_0x4a79c2&&_0x4a79c2['isAttached']()||(_0x4a79c2=_0x3c0a53['addRoot'](_0x5b1ffb));const _0x3f6b0b=_0x172c4b[_0x5b1ffb],_0x1c6ae1=Object['keys'](_0x3f6b0b),_0x615ff3=_0x2285b5[_0x5b1ffb];for(const _0x2e880e of _0x4a79c2['getAttributeKeys']())_0x1c6ae1['includes'](_0x2e880e)||_0x3c0a53['removeAttribute'](_0x2e880e,_0x4a79c2);for(const _0x30b43e of _0x1c6ae1)_0x3c0a53['setAttribute'](_0x30b43e,_0x172c4b[_0x5b1ffb][_0x30b43e],_0x4a79c2);_0x3c0a53['remove'](_0x3c0a53['createRangeIn'](_0x4a79c2)),_0x3c0a53['insert'](_0x1dffb2['data']['parse'](_0x615ff3,_0x4a79c2),_0x4a79c2,0x0);}});const _0xf8e931=m(_0x1dffb2['locale'],'Restored');if(_0x273b4f['name'])_0x312353=-0x1==_0x273b4f['name']['indexOf'](_0xf8e931)?_0xf8e931+':\x20'+_0x273b4f['name']:_0x273b4f['name'];else _0x312353=_0xf8e931+':\x20'+(_0x273b4f['createdAt']['toLocaleDateString'](_0x1dffb2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x273b4f['createdAt']['toLocaleTimeString'](_0x1dffb2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x42cec4['saveRevision']({'name':_0x312353}),_0x28dbef['isReady']=!0x0,_0x1dffb2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};