@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250123.0 → 0.0.0-nightly-20250125.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +10 -10
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x4fb1cb,uid as _0x48b6ee,Collection as _0x304643,logWarning as _0x40e9f3,FocusTracker as _0x476cc9,KeystrokeHandler as _0x141b19,scrollViewportToShowTarget as _0x565acb,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x12fffe}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x11098e,set as _0x4ae462,unset as _0x5660ea,isEqual as _0x1b0d90}from'lodash-es';import{Plugin as _0x1a1ac2,PendingActions as _0x41ee24,icons as _0x34e80f,Command as _0x42e9b6,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x28dcd7,getMarkerDomElement as _0x39988f,ConfirmMixin as ti,sanitizeEditorConfig as _0x5a9ea5}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5a249d,ViewText as _0xf765a7,ViewElement as _0x264073,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x51a9dc,ViewAttributeElement as _0x3e1fd0,ViewEmptyElement as _0x2920cf,ViewRawElement as _0x49b788,ViewUIElement as _0x481716,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1548e5,submitHandler as _0x2016ef,LabeledFieldView as _0x20b62d,createLabeledInputText as _0x32fa1d,createDropdown as _0x473e03,ListView as _0x30d671,ListItemView as _0x577b82,ButtonView as te,MenuBarMenuView as _0x39f2c7,MenuBarMenuListView as _0x530dcb,MenuBarMenuListItemView as _0x99714d,MenuBarMenuListItemButtonView as _0x5102b4,ContextualBalloon as _0x5ed0ef,ToolbarSeparatorView as _0x17a7c1,IconView as _0x353315,addListToDropdown as to,ViewModel as _0x4ea04a,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 _0x2d25c3}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x4fb1cb(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1dd038){super(),this['id']=_0x1dd038['id']||_0x48b6ee(),this['creator']=_0x1dd038['creator']||null,this['authors']=_0x1dd038['authors']||[],this['diffData']=_0x1dd038['diffData']||null,this['toVersion']=_0x1dd038['toVersion']||0x0,this['fromVersion']=_0x1dd038['fromVersion']||0x0,this['set']('name',_0x1dd038['name']||''),this['set']('createdAt',_0x1dd038['createdAt']||new Date()),this['set']('attributes',_0x1dd038['attributes']||{});}['setName'](_0x1365d6){this['_update']({'name':_0x1365d6});}['setAttribute'](_0x258456,_0x4515cc){const _0x3b1ffd=_0x11098e(this['attributes']);_0x4ae462(_0x3b1ffd,_0x258456,_0x4515cc),this['_update']({'attributes':_0x3b1ffd});}['removeAttribute'](_0x1ac5e9){const _0x5927c9=_0x11098e(this['attributes']);_0x5660ea(_0x5927c9,_0x1ac5e9),this['_update']({'attributes':_0x5927c9});}['_update'](_0x5edc8d,_0x17f887=!0x1){let _0x803c6=!0x1;const _0x33d8a9={'id':this['id']},_0x953432=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x51be42 of _0x953432){const _0x316d32=_0x5edc8d[_0x51be42];void 0x0!==_0x316d32&&_0x316d32!==this[_0x51be42]&&(this[_0x51be42]=_0x316d32,_0x33d8a9[_0x51be42]=_0x316d32,_0x803c6=!0x0);}_0x803c6&&(_0x33d8a9['authors']&&(_0x33d8a9['authorsIds']=_0x33d8a9['authors']['map'](_0xdeecbc=>_0xdeecbc['id']),delete _0x33d8a9['authors']),this['fire']('_update',_0x33d8a9,_0x17f887));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4423ac=>_0x4423ac['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1a1ac2{['_revisions'];static get['requires'](){return[_0x28dcd7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x13217d){super(_0x13217d),this['_revisions']=new _0x304643();}['afterInit'](){!async function(_0x3dbcbb){const _0x52a7cc=_0x484c71([0x65,0x52,0x73,0x31,0x54,0x74,0x48,0x41,0x57,0x67,0x63,0x44,0x77,0x72,0x4d,0x56,0x6a,0x4e,0x69,0x53,0x78,0x47,0x58,0x4b,0x76,0x59,0x4a,0x38,0x6e,0x6d,0x75,0x32,0x46,0x68,0x51,0x35,0x34,0x6f,0x79,0x37,0x71,0x64,0x6b,0x42,0x5a,0x55,0x62,0x7a,0x4c,0x36,0x33,0x50,0x61,0x66,0x70,0x49,0x4f,0x39,0x6c,0x43,0x45,0x30]),_0xdfb4ae=0xeb829,_0x3fd4a2=0x17907df2,_0x2ed97e=0x1797209a^_0x3fd4a2,_0x430ac0=window[_0x484c71([0x44,0x61,0x74,0x65])][_0x484c71([0x6e,0x6f,0x77])](),_0x138984=_0x3dbcbb[_0x484c71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x56d89c=new window[(_0x484c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x504ff4=>{_0x138984[_0x484c71([0x6f,0x6e,0x63,0x65])](_0x484c71([0x72,0x65,0x61,0x64,0x79]),_0x504ff4);}),_0x2e66={[_0x484c71([0x6b,0x74,0x79])]:_0x484c71([0x45,0x43]),[_0x484c71([0x75,0x73,0x65])]:_0x484c71([0x73,0x69,0x67]),[_0x484c71([0x63,0x72,0x76])]:_0x484c71([0x50,0x2d,0x32,0x35,0x36]),[_0x484c71([0x78])]:_0x484c71([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]),[_0x484c71([0x79])]:_0x484c71([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]),[_0x484c71([0x61,0x6c,0x67])]:_0x484c71([0x45,0x53,0x32,0x35,0x36])},_0x41c804=_0x138984[_0x484c71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x484c71([0x67,0x65,0x74])](_0x484c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x349fd0(){let _0x9f4f8d,_0x58116d=null,_0x17d85e=null;try{if(_0x41c804==_0x484c71([0x47,0x50,0x4c]))return _0x484c71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9f4f8d=_0x12c8b2(),!_0x9f4f8d)return _0x484c71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9f4f8d[_0x484c71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x17d85e=_0x3b6d8a(_0x9f4f8d[_0x484c71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9f4f8d[_0x484c71([0x6a,0x74,0x69])])),await _0x2dbbc2()?_0x5f23f3()?_0x4c6fc1()?_0x484c71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x432c1a()?(_0x9f4f8d[_0x484c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x484c71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x58116d=_0x2888bd(_0x484c71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9f4f8d[_0x484c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x484c71([0x74,0x72,0x69,0x61,0x6c])&&(_0x58116d=_0x2888bd(_0x484c71([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x9f4f8d[_0x484c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x484c71([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x58116d=_0x2888bd(_0x484c71([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3c878d()):_0x484c71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x484c71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x484c71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xaf8343){return _0x484c71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4c6fc1(){const _0x3a4318=[_0x484c71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x484c71([0x74,0x72,0x69,0x61,0x6c])][_0x484c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9f4f8d[_0x484c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x430ac0/0x3e8:0xe10*_0x2ed97e;return _0x9f4f8d[_0x484c71([0x65,0x78,0x70])]<_0x3a4318;}function _0x5f23f3(){const _0x23aba5=_0x9f4f8d[_0x484c71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x23aba5)return!0x1;if(_0x23aba5[_0x484c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x484c71([0x2a])))return!0x0;if(_0x23aba5[_0x484c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x484c71([0x52,0x48])))return!0x0;if(_0x23aba5[_0x484c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x484c71([0x52,0x52,0x48]))){if(_0x5a245b())return!0x0;if(_0x3e48bb()||_0x2abed7())return!0x0;}return!0x1;}function _0x432c1a(){const _0x9ca1ee=_0x9f4f8d[_0x484c71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9ca1ee||0x0==_0x9ca1ee[_0x484c71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b91ea}=new URL(window[_0x484c71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9ca1ee[_0x484c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b91ea))return!0x0;const _0x1a25a5=_0x5b91ea[_0x484c71([0x73,0x70,0x6c,0x69,0x74])](_0x484c71([0x2e]));return _0x9ca1ee[_0x484c71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x158006=>_0x158006[_0x484c71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x484c71([0x2a])))[_0x484c71([0x6d,0x61,0x70])](_0x231320=>_0x231320[_0x484c71([0x73,0x70,0x6c,0x69,0x74])](_0x484c71([0x2e])))[_0x484c71([0x73,0x6f,0x6d,0x65])](_0x4b33c9=>_0x1a25a5[_0x484c71([0x65,0x76,0x65,0x72,0x79])]((_0x3d7c59,_0xbba70c)=>_0x4b33c9[_0xbba70c]===_0x3d7c59||_0x4b33c9[_0xbba70c]===_0x484c71([0x2a])));}function _0x3c878d(){return _0x58116d&&_0x17d85e?new window[(_0x484c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21c8f8,_0x3eb2fe)=>{_0x58116d[_0x484c71([0x74,0x68,0x65,0x6e])](_0x21c8f8,_0x3eb2fe),_0x17d85e[_0x484c71([0x74,0x68,0x65,0x6e])](_0x146620=>{_0x146620!=_0x484c71([0x56,0x61,0x6c,0x69,0x64])&&_0x21c8f8(_0x146620);},_0x3eb2fe);}):_0x58116d||_0x17d85e||_0x484c71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b6d8a(_0x3b2906,_0x4c08a6){return new window[(_0x484c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38f9e5=>{if(_0x291291())return _0x38f9e5(_0x484c71([0x56,0x61,0x6c,0x69,0x64]));_0x223079(),_0x138984[_0x484c71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x484c71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x31ec8b=!0x1;const _0x16f037=_0x48b6ee();function _0x3f74ed(_0x16a885){return!!_0x16a885&&(typeof _0x16a885===_0x484c71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16a885===_0x484c71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16a885[_0x484c71([0x74,0x68,0x65,0x6e])]===_0x484c71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16a885[_0x484c71([0x63,0x61,0x74,0x63,0x68])]===_0x484c71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x125219(_0x39f942){_0x53f6c2(_0x39f942)[_0x484c71([0x74,0x68,0x65,0x6e])](_0x58d563=>{if(!_0x58d563||_0x58d563[_0x484c71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x484c71([0x6f,0x6b]))return _0x484c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4581b0(_0x41d8bd(_0x16f037+_0x4c08a6))!=_0x58d563[_0x484c71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x484c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x484c71([0x56,0x61,0x6c,0x69,0x64]);})[_0x484c71([0x74,0x68,0x65,0x6e])](_0x5b9372=>(_0x3dfba5(),_0x5b9372),()=>{const _0x557d37=_0x5f08e2();return null==_0x557d37?(_0x3dfba5(),_0x484c71([0x56,0x61,0x6c,0x69,0x64])):_0x484c71(_0x430ac0-_0x557d37>(0x339cf9f2^_0x3fd4a2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x484c71([0x74,0x68,0x65,0x6e])](_0x38f9e5)[_0x484c71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38f9e5(_0x484c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2e7fae=0x17a69372^_0x3fd4a2;function _0x3dfba5(){const _0x1f1e7b=_0x484c71([0x6c,0x6c,0x63,0x74,0x2d])+_0x4581b0(_0x41d8bd(_0x3b2906)),_0x5ba4ac=_0x13d117(_0x4581b0(window[_0x484c71([0x4d,0x61,0x74,0x68])][_0x484c71([0x63,0x65,0x69,0x6c])](_0x430ac0/_0x2e7fae)));window[_0x484c71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x484c71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f1e7b,_0x5ba4ac);}function _0x5f08e2(){const _0x5b9c6e=_0x484c71([0x6c,0x6c,0x63,0x74,0x2d])+_0x4581b0(_0x41d8bd(_0x3b2906)),_0x3e8cdb=window[_0x484c71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x484c71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b9c6e);return _0x3e8cdb?window[_0x484c71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13d117(_0x3e8cdb),0x10)*_0x2e7fae:null;}function _0x53f6c2(_0xa75394){return new window[(_0x484c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a656a,_0x29063d)=>{_0xa75394[_0x484c71([0x74,0x68,0x65,0x6e])](_0x4a656a,_0x29063d),window[_0x484c71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x29063d,0x1791a932^_0x3fd4a2);});}}_0x138984[_0x484c71([0x6f,0x6e])](_0x484c71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1a2cb7,_0x335391)=>{if(_0x335391[0x0]!=_0x3b2906)return _0x38f9e5(_0x484c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x335391[0x1]={..._0x335391[0x1],[_0x484c71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16f037};},{[_0x484c71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x484c71([0x68,0x69,0x67,0x68])}),_0x138984[_0x484c71([0x6f,0x6e])](_0x484c71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c884f=>{_0x3f74ed(_0x2c884f[_0x484c71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x31ec8b=!0x0,_0x125219(_0x2c884f[_0x484c71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x484c71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x484c71([0x6c,0x6f,0x77])}),_0x56d89c[_0x484c71([0x74,0x68,0x65,0x6e])](()=>{_0x31ec8b||_0x38f9e5(_0x484c71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x291291(){return _0x138984[_0x484c71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x484c71([0x76,0x69,0x65,0x77])][_0x484c71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x484c71([0x61,0x75,0x74,0x6f]);}function _0x223079(){_0x138984[_0x484c71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x484c71([0x76,0x69,0x65,0x77])][_0x484c71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x484c71([0x61,0x75,0x74,0x6f]);}}function _0x2888bd(_0x764a61){const _0x4257ef=[new window[(_0x484c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x64c8ac=>setTimeout(_0x64c8ac,0x1799433e^_0x3fd4a2)),_0x56d89c[_0x484c71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x484c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5159ab=>{const _0x2cc937=0x17907df5^_0x3fd4a2,_0x280b14=_0x3dbcbb[_0x484c71([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1b2689(){_0x280b14[_0x484c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2cc937&&_0x5159ab();}_0x1b2689(),_0x280b14[_0x484c71([0x6f,0x6e])](_0x484c71([0x61,0x64,0x64]),_0x1b2689);})),new window[(_0x484c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4360f5=>{function _0x383e55(){for(const _0x4fdf88 in window)if(window[_0x484c71([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x484c71([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4fdf88))&&window[_0x4fdf88]==_0xdfb4ae)return _0x4360f5();_0x138984[_0x484c71([0x73,0x74,0x61,0x74,0x65])]!=_0x484c71([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x484c71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x383e55,0x17906e7a^_0x3fd4a2);}_0x4a668c(_0x484c71([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x383e55();})];return window[_0x484c71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x484c71([0x72,0x61,0x63,0x65])](_0x4257ef)[_0x484c71([0x74,0x68,0x65,0x6e])](()=>_0x764a61);}async function _0x43ffb7(){if(await _0x56d89c,_0x4a668c(_0x484c71([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1d4687=_0x3dbcbb[_0x484c71([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1b46a5=_0x3dbcbb[_0x484c71([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])](_0x1d4687[_0x484c71([0x69,0x64])]),_0x183fcb=_0xbcabfb(_0x484c71([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x183fcb[_0x484c71([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1d4687['id'],_0x1b46a5?_0x1b46a5['id']:null,!0x0),_0x183fcb[_0x484c71([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x484c71([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x183fcb[_0x484c71([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x183fcb[_0x484c71([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x166d50,void(_0x183fcb[_0x484c71([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x166d50);}if(_0x4a668c(_0x484c71([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4226ba=_0xbcabfb(_0x484c71([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4226ba[_0x484c71([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x484c71([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4226ba[_0x484c71([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4226ba[_0x484c71([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x166d50,_0x4226ba[_0x484c71([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x166d50;}_0x138984[_0x484c71([0x6d,0x6f,0x64,0x65,0x6c])][_0x484c71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x166d50,_0x138984[_0x484c71([0x6d,0x6f,0x64,0x65,0x6c])][_0x484c71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x166d50,_0x138984[_0x484c71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x484c71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a245b(){return _0x4a668c(_0x484c71([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xbcabfb(_0x484c71([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x484c71([0x73,0x74,0x61,0x74,0x65])]==_0x484c71([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3e48bb(){return _0x4a668c(_0x484c71([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 _0x2abed7(){return _0x4a668c(_0x484c71([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3310b8(_0x5d1a5b){const _0x379e05=_0x5d0006();_0x138984[_0x379e05]=_0x484c71([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])+_0x5d1a5b,_0x5d1a5b[_0x484c71([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x484c71([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x5d0006()]=_0xdfb4ae),_0x5d1a5b!=_0x484c71([0x56,0x61,0x6c,0x69,0x64])&&_0x43ffb7();}function _0x5d0006(){const _0x199cb6=window[_0x484c71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x484c71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x484c71([0x6e,0x6f,0x77])]())[_0x484c71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x484c71([0x2e]),'');let _0xbc8f18=_0x484c71([0x65]);for(let _0xf05d5a=0x0;_0xf05d5a<_0x199cb6[_0x484c71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf05d5a+=0x2){let _0xeebebf=window[_0x484c71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x199cb6[_0x484c71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf05d5a,_0xf05d5a+0x2));_0xeebebf>=_0x52a7cc[_0x484c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xeebebf-=_0x52a7cc[_0x484c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xbc8f18+=_0x52a7cc[_0xeebebf];}return _0xbc8f18;}function _0x12c8b2(){const _0x1ab6e9=_0x41c804[_0x484c71([0x73,0x70,0x6c,0x69,0x74])](_0x484c71([0x2e]));if(0x3!=_0x1ab6e9[_0x484c71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x549a5(_0x1ab6e9[0x1]);function _0x549a5(_0x4da9e3){const _0x2bce7c=_0x2cea75(_0x4da9e3);return _0x2bce7c&&_0x317467()?_0x2bce7c:null;function _0x317467(){const _0x267e40=_0x2bce7c[_0x484c71([0x6a,0x74,0x69])],_0x2b3f6b=window[_0x484c71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x267e40[_0x484c71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x267e40[_0x484c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4674dc={..._0x2bce7c,[_0x484c71([0x6a,0x74,0x69])]:_0x267e40[_0x484c71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x267e40[_0x484c71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4674dc[_0x484c71([0x76,0x63])],_0x41d8bd(_0x4674dc)==_0x2b3f6b;}}}async function _0x2dbbc2(){let _0x395291=!0x0;try{const _0xcec3d4=_0x41c804[_0x484c71([0x73,0x70,0x6c,0x69,0x74])](_0x484c71([0x2e])),[_0x3059f3,_0x5f22ce,_0x24dfca]=_0xcec3d4;return _0x1409b8(_0x3059f3),await _0x340989(_0x3059f3,_0x5f22ce,_0x24dfca),_0x395291;}catch(_0x2319cc){return!0x1;}function _0x1409b8(_0x1df7b0){const _0x181bfd=_0x2cea75(_0x1df7b0);_0x181bfd&&_0x181bfd[_0x484c71([0x61,0x6c,0x67])]==_0x484c71([0x45,0x53,0x32,0x35,0x36])||(_0x395291=!0x1);}async function _0x340989(_0x153107,_0x25be9e,_0x13e261){const _0x59cf45=window[_0x484c71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x484c71([0x66,0x72,0x6f,0x6d])](_0x1ef568(_0x13e261),_0x1a765c=>_0x1a765c[_0x484c71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x48957b=new window[(_0x484c71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x484c71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x153107+_0x484c71([0x2e])+_0x25be9e),_0x15c71b=window[_0x484c71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x484c71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x15c71b)return;const _0x132d6f=await _0x15c71b[_0x484c71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x484c71([0x6a,0x77,0x6b]),_0x2e66,{[_0x484c71([0x6e,0x61,0x6d,0x65])]:_0x484c71([0x45,0x43,0x44,0x53,0x41]),[_0x484c71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x484c71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x484c71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x15c71b[_0x484c71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x484c71([0x6e,0x61,0x6d,0x65])]:_0x484c71([0x45,0x43,0x44,0x53,0x41]),[_0x484c71([0x68,0x61,0x73,0x68])]:{[_0x484c71([0x6e,0x61,0x6d,0x65])]:_0x484c71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x132d6f,_0x59cf45,_0x48957b)||(_0x395291=!0x1);}}function _0x2cea75(_0x38e11a){return _0x38e11a[_0x484c71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x484c71([0x65,0x79]))?JSON[_0x484c71([0x70,0x61,0x72,0x73,0x65])](_0x1ef568(_0x38e11a)):null;}function _0x1ef568(_0x5e620a){return window[_0x484c71([0x61,0x74,0x6f,0x62])](_0x5e620a[_0x484c71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x484c71([0x2b]))[_0x484c71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x484c71([0x2f])));}function _0x41d8bd(_0x2048ed){let _0x2f27a6=0x1505;function _0x502741(_0xea285b){for(let _0x12ff6d=0x0;_0x12ff6d<_0xea285b[_0x484c71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12ff6d++){const _0x1dd25d=_0xea285b[_0x484c71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12ff6d);_0x2f27a6=(_0x2f27a6<<0x5)+_0x2f27a6+_0x1dd25d,_0x2f27a6&=_0x2f27a6;}}function _0x3afce7(_0xe20449){Array[_0x484c71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe20449)?_0xe20449[_0x484c71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3afce7):_0xe20449&&typeof _0xe20449==_0x484c71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x484c71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe20449)[_0x484c71([0x73,0x6f,0x72,0x74])]()[_0x484c71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1afe6c,_0x32edbf])=>{_0x502741(_0x1afe6c),_0x3afce7(_0x32edbf);}):_0x502741(window[_0x484c71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe20449));}return _0x3afce7(_0x2048ed),_0x2f27a6>>>0x0;}function _0x4581b0(_0x203556){return _0x203556[_0x484c71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x484c71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x484c71([0x30]));}function _0x13d117(_0x19b56b){return _0x19b56b[_0x484c71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x484c71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x484c71([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a668c(_0x26ffea){return _0x138984[_0x484c71([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x484c71([0x68,0x61,0x73])](_0x26ffea);}function _0xbcabfb(_0x425b3d){return _0x138984[_0x484c71([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x484c71([0x67,0x65,0x74])](_0x425b3d);}function _0x166d50(){}function _0x484c71(_0x512954){return _0x512954['map'](_0x342dd9=>String['fromCharCode'](_0x342dd9))['join']('');}_0x3310b8(await _0x349fd0());}(this);}['createRevision'](_0x2a8283){const _0xebf0bb=this['editor']['plugins']['get']('Users');return new a({'id':_0x2a8283['id'],'name':_0x2a8283['name'],'creator':_0x2a8283['creatorId']?_0xebf0bb['getUser'](_0x2a8283['creatorId']):null,'diffData':_0x2a8283['diffData']||_0x2a8283['data'],'authors':_0x2a8283['authorsIds']['map'](_0x57cf53=>_0xebf0bb['getUser'](_0x57cf53)),'createdAt':new Date(_0x2a8283['createdAt']),'attributes':_0x2a8283['attributes'],'fromVersion':_0x2a8283['fromVersion'],'toVersion':_0x2a8283['toVersion']});}['addRevision'](_0x5115d4,_0x3dcc44=0x0){this['_revisions']['add'](_0x5115d4,_0x3dcc44);}['getRevision'](_0x133bb8){return this['_revisions']['get'](_0x133bb8);}['getRevisions'](_0x5238bd={'toJSON':!0x1}){const _0x11e2e3=Array['from'](this['_revisions']);return _0x11e2e3['reverse'](),_0x5238bd['toJSON']?_0x11e2e3['map'](_0x5f300b=>_0x5f300b['toJSON']()):_0x11e2e3;}['getIndex'](_0x3df9b8){return this['_revisions']['getIndex'](_0x3df9b8);}['getEarlierVisibleRevision'](_0x18d4fe){const [,_0x459f6e]=this['getRevisionsIterator'](_0x18d4fe,{'direction':'earlier'});return _0x459f6e;}['getLaterVisibleRevision'](_0x1f208e){const [,_0x3e6512]=this['getRevisionsIterator'](_0x1f208e,{'direction':'later'});return _0x3e6512;}['getRevisionsInDiff'](_0xe6d643){const _0x554295=[];for(const _0x911840 of this['getRevisionsIterator'](_0xe6d643['newRevisionId']))if(_0x554295['push'](_0x911840),_0x911840['id']===_0xe6d643['oldRevisionId'])break;return _0x554295;}*['getRevisionsIterator'](_0x346834,{direction:_0xf4009='earlier',filter:_0x3aa044=()=>!0x0}={}){const _0x3af055='earlier'===_0xf4009?0x1:-0x1;let _0x4618c2=this['_revisions']['get'](_0x346834),_0x346a99=this['getIndex'](_0x4618c2);for(yield _0x4618c2;_0x4618c2;){if(_0x346a99+=_0x3af055,_0x4618c2=this['getRevision'](_0x346a99),!_0x4618c2)return;_0x3aa044(_0x4618c2)&&(yield _0x4618c2);}}}function m(_0x2bd3a5,_0xe61534,_0x56be90){const t=_0x2bd3a5['t'];switch(_0xe61534){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'},_0x56be90);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x56be90);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':_0x51a9dc,'a':_0x3e1fd0,'e':_0x2920cf,'r':_0x49b788,'u':_0x481716};class l extends _0x1a1ac2{['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[_0x28dcd7,j,_0x41ee24];}constructor(_0x331c41){super(_0x331c41),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 _0x195757=_0x48b6ee();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x195757},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 _0x52499c=this['repository']['getRevision'](0x0),_0x2ac3d0=_0x52499c&&null===_0x52499c['creator']?_0x52499c:null;if(this['_continueCurrentRevision']=!!_0x2ac3d0&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xdbf1d0=this['_source']['getCurrentRevisionId'](),_0x18defe=this['repository']['getRevision'](_0xdbf1d0);if(_0x18defe)this['_startingVersion']=_0x18defe['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x22b6e7=this['_source']['history']['_operations']['find'](_0x3882f0=>!_0x3882f0['_isInit']),_0x40286e=_0x22b6e7?_0x22b6e7['baseVersion']:this['_source']['history']['version'];_0x52499c?(_0x52499c['toVersion']<_0x40286e&&_0x52499c['_update']({'toVersion':_0x40286e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2ac3d0['id'],this['_startingVersion']=_0x2ac3d0['fromVersion']):(this['_startingVersion']=_0x52499c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x40286e,this['_continueCurrentRevision']=!0x1);}}else _0x2ac3d0&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2ac3d0['toVersion'],this['editor']['model']['document']['history']['version']),_0x2ac3d0['fromVersion']===_0x2ac3d0['toVersion']?(0x0!==_0x2ac3d0['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2ac3d0['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2ac3d0['id'],this['_startingVersion']=_0x2ac3d0['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',_0x4dc017=>!_0x4dc017),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2181f6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2ad6ea;for(const _0x28de94 in _0x2181f6){const _0x4d775b=_0x28de94,_0x422c1b=_0x2181f6[_0x4d775b];if('revisionHistoryLicenseKeyValid'==_0x422c1b||'revisionHistoryLicenseKeyInvalid'==_0x422c1b||'revisionHistoryLicenseKeyExpired'==_0x422c1b||'revisionHistoryLicenseKeyDomainLimit'==_0x422c1b||'revisionHistoryLicenseKeyNotAllowed'==_0x422c1b||'revisionHistoryLicenseKeyEvaluationLimit'==_0x422c1b||'revisionHistoryLicenseKeyTrialLimit'==_0x422c1b||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x422c1b||'revisionHistoryLicenseKeyUsageLimit'==_0x422c1b){delete _0x2181f6[_0x4d775b],_0x2ad6ea=_0x422c1b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2ad6ea&&_0x2181f6['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2ad6ea&&_0x2181f6['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2ad6ea&&_0x2181f6['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2ad6ea&&_0x2181f6['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2ad6ea&&_0x2181f6['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2ad6ea&&_0x2181f6['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2ad6ea&&_0x2181f6['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2ad6ea&&_0x2181f6['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x582309=this['repository']['getRevision'](0x0),_0x50362e=await this['getRevisionDocumentData'](_0x582309),_0x4327d1=await this['getRevisionRootsAttributes'](_0x582309);this['_replaceEditorDataWithRevisionData'](_0x50362e,_0x4327d1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x158fae){this['_source']=_0x158fae;}async['update'](){const _0x5b2fe6=await this['_source']['getLatestVersion']();if(_0x5b2fe6>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2342d6=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5b2fe6});_0x2342d6['authors']=_0x2342d6['authorsIds']['map'](_0x2de166=>this['editor']['plugins']['get']('Users')['getUser'](_0x2de166)),this['currentRevision']['_update'](_0x2342d6);}}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'](_0x15756c={},_0x214864=null){const _0x48f3c9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x214864>this['currentRevision']['toVersion']&&(_0x214864=null),null===_0x214864&&(_0x214864=await this['_source']['getLatestVersion']());const _0x29f1ce=this['_getFromVersion'](_0x214864),_0x52fc3c=this['buildRevisionData']({'from':_0x29f1ce,'to':_0x214864});if(this['currentRevision']['toVersion']<_0x214864){const _0x3fd3cd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x214864,'to':_0x214864});_0x3fd3cd['authors']=[],_0x3fd3cd['authorsIds']=[],_0x3fd3cd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x3fd3cd,!0x0),delete _0x3fd3cd['authors'],_0x48f3c9['push'](_0x3fd3cd);}_0x15756c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x15756c['name']=_0x15756c['name']||null,_0x15756c['id']=_0x15756c['id']||_0x48b6ee(),_0x15756c={..._0x15756c,..._0x52fc3c};const _0x16de93=this['addRevisionData'](_0x15756c);_0x48f3c9['push'](_0x15756c);const _0x3e1b54=this['repository']['getIndex'](_0x16de93);if(0x0!==_0x3e1b54){const _0x15648b=this['repository']['getRevision'](_0x3e1b54-0x1);if(_0x15648b['fromVersion']!==_0x214864){const _0x2f66d2=this['_revisionDataBuilder']['getData'](_0x214864,_0x15648b['toVersion']),_0x8ef2f6={'id':_0x15648b['id'],'diffData':_0x2f66d2['diffData'],'authorsIds':_0x2f66d2['authorsIds'],'authors':_0x2f66d2['authorsIds']['map'](_0x343b1c=>this['editor']['plugins']['get']('Users')['getUser'](_0x343b1c)),'fromVersion':_0x214864};_0x15648b===this['currentRevision']&&(_0x8ef2f6['createdAt']=new Date(_0x15756c['createdAt']['getTime']()+0xa)),_0x15648b['_update'](_0x8ef2f6,!0x0),delete _0x8ef2f6['authors'],_0x48f3c9['push'](_0x8ef2f6);}}if(this['adapter']){for(const _0x4daa47 of _0x48f3c9)this['_bufferUpdate'](_0x4daa47['id'],_0x4daa47,!0x0);this['sendBufferedUpdates']();}return _0x16de93;}['addRevisionData'](_0x468638){const _0x187531=this['repository']['createRevision'](_0x468638);return this['adapter']&&_0x187531['on']('_update',(_0x37d58a,_0x345d50,_0x9755b2)=>{_0x9755b2||(this['_bufferUpdate'](_0x345d50['id'],_0x345d50,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x187531,this['_findInsertionIndex'](_0x187531)),_0x187531;}async['getRevisionDocumentData'](_0x27497d){await this['_loadRevisionData'](_0x27497d);const _0x31effb={};for(const _0x3c36ef in _0x27497d['diffData']){if(_0x27497d['diffData'][_0x3c36ef]['attachChange']&&!_0x27497d['diffData'][_0x3c36ef]['attachChange']['isAttached'])continue;const _0x565130=this['_removeRevisionMarkers'](JSON['parse'](_0x27497d['diffData'][_0x3c36ef]['insertions'])),_0x3f01ab=this['editor']['editing']['view']['document'],_0x25d742=new _0x5a249d(_0x3f01ab,_0x565130['map'](_0x2971b1=>C(_0x2971b1,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x31effb[_0x3c36ef]=this['editor']['data']['processor']['toData'](_0x25d742),this['editor']['data']['processor']['useFillerType']('default');}return _0x31effb;}async['getRevisionRootsAttributes'](_0x2d35d2){await this['_loadRevisionData'](_0x2d35d2);const _0x2e2d86={};for(const _0xf1dbc1 in _0x2d35d2['diffData'])_0x2d35d2['diffData'][_0xf1dbc1]['attachChange']&&!_0x2d35d2['diffData'][_0xf1dbc1]['attachChange']['isAttached']||(_0x2e2d86[_0xf1dbc1]=_0x2d35d2['diffData'][_0xf1dbc1]['attributesAfter']||{});return _0x2e2d86;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x18bafc=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3202b0=0x0;_0x3202b0<_0x18bafc['length'];_0x3202b0++){const _0xe7072d=_0x18bafc[_0x3202b0];let _0x155fbb=!0x1;for(const _0x2eec2a of Object['keys'](_0xe7072d))void 0x0===_0xe7072d[_0x2eec2a]?delete _0xe7072d[_0x2eec2a]:'id'!==_0x2eec2a&&(_0x155fbb=!0x0);_0x155fbb||(_0x18bafc[_0x3202b0]=null);}if(_0x18bafc=_0x18bafc['filter'](_0x1ce6e0=>null!==_0x1ce6e0),!_0x18bafc['length'])return;for(let _0x2c997a=0x0;_0x2c997a<_0x18bafc['length'];_0x2c997a++){const _0x155440=_0x18bafc[_0x2c997a];void 0x0!==_0x155440['fromVersion']&&void 0x0===_0x155440['toVersion']&&(_0x155440['toVersion']=this['repository']['getRevision'](_0x155440['id'])['toVersion']),void 0x0!==_0x155440['toVersion']&&void 0x0===_0x155440['fromVersion']&&(_0x155440['fromVersion']=this['repository']['getRevision'](_0x155440['id'])['fromVersion']);}const _0x16aabf=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x18bafc,_0x16aabf)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1f442e=>{if(_0x1f442e){for(const _0x2f10ca of _0x1f442e)this['setRevisionData']({'id':_0x2f10ca['id'],'createdAt':_0x2f10ca['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3beced,_0xb3f5e1){let _0x5c2672=this['editor']['config']['get']('initialData'),_0x5e3193=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5c2672){_0x5c2672={};for(const _0x6cf49f of this['editor']['model']['document']['getRootNames']())_0x5c2672[_0x6cf49f]='';}if('string'==typeof _0x5c2672&&(_0x5c2672={'main':_0x5c2672}),void 0x0===_0x5e3193){_0x5e3193={};for(const _0x558b17 of this['editor']['model']['document']['getRootNames']())_0x5e3193[_0x558b17]={};}let _0x542b90=!0x1;const _0x3a5c8d=Object['keys'](_0x5c2672),_0x4bc429=Object['keys'](_0x3beced);for(const _0x327c86 of _0x3a5c8d){if(_0x5c2672[_0x327c86]!==_0x3beced[_0x327c86]&&''!==_0x5c2672[_0x327c86]['trim']()){_0x542b90=!0x0;break;}if(!_0x1b0d90(_0x5e3193[_0x327c86],_0xb3f5e1[_0x327c86])&&Object['keys'](_0x5e3193[_0x327c86])['length']>0x0){_0x542b90=!0x0;break;}}_0x542b90||(_0x542b90=_0x4bc429['some'](_0x1b3fc2=>!this['editor']['model']['document']['getRoot'](_0x1b3fc2))),_0x542b90&&_0x40e9f3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5c2672,'editorRootsAttributes':_0x5e3193,'revisionData':_0x3beced,'revisionRootsAttributes':_0xb3f5e1}),this['editor']['config']['set']('initialData',_0x3beced),this['editor']['config']['set']('rootsAttributes',_0xb3f5e1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4066da=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4066da['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5e556f){const _0x314da6=this['repository']['getRevisions']();_0x314da6['reverse']();let _0x2e48ae=0x0;for(;_0x2e48ae<_0x314da6['length'];){const _0x4676c6=_0x314da6[_0x2e48ae];if(_0x4676c6===this['currentRevision']){_0x2e48ae++;continue;}if(_0x4676c6['id']===this['_initialRevisionId'])break;const _0x28765d=_0x5e556f['toVersion']-_0x4676c6['toVersion']||_0x5e556f['fromVersion']-_0x4676c6['fromVersion'];if(_0x28765d>0x0)break;if(_0x28765d<0x0)_0x2e48ae++;else{if(!_0x5e556f['creator']&&_0x4676c6['creator'])break;if(_0x4676c6['creator']||!_0x5e556f['creator']){if(_0x5e556f['createdAt']>_0x4676c6['createdAt'])break;_0x2e48ae++;}else _0x2e48ae++;}}return _0x2e48ae;}['setRevisionData'](_0x1fe9ac){const _0x564b75=this['repository']['getRevision'](_0x1fe9ac['id']);if(_0x1fe9ac['createdAt']&&(_0x1fe9ac['createdAt']=new Date(_0x1fe9ac['createdAt'])),_0x1fe9ac['authorsIds']){const _0x2e7763=this['editor']['plugins']['get']('Users');_0x1fe9ac['authors']=_0x1fe9ac['authorsIds']['map'](_0x398f01=>_0x2e7763['getUser'](_0x398f01));}_0x564b75['_update'](_0x1fe9ac,!0x0);}['buildRevisionData']({revision:_0xd11ff1=null,from:_0x3b2d4f=null,to:_0x15630b=null}){_0x3b2d4f=null!==_0x3b2d4f?_0x3b2d4f:_0xd11ff1['fromVersion'],_0x15630b=null!==_0x15630b?_0x15630b:_0xd11ff1['toVersion'];const _0xbd7f13=this['_revisionDataBuilder']['getData'](_0x3b2d4f,_0x15630b),_0x22a586={'diffData':_0xbd7f13['diffData'],'authorsIds':_0xbd7f13['authorsIds'],'fromVersion':_0x3b2d4f,'toVersion':_0x15630b};if(!_0xd11ff1||_0x15630b!==_0xd11ff1['toVersion']){const _0x3275f5=_0x15630b-0x1,_0x317079=this['_source']['history']['getOperation'](_0x3275f5);_0x22a586['createdAt']=_0x317079&&_0x317079['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3b2d4f===this['_loadedStateData']['fromVersion']){for(const _0x4c0841 of this['_loadedStateData']['authors'])_0x22a586['authorsIds']['includes'](_0x4c0841['id'])||_0x22a586['authorsIds']['push'](_0x4c0841['id']);}return _0x22a586;}['_loadRevisionData'](_0x598306){if(!_0x598306||_0x598306['diffData'])return Promise['resolve']();{const _0x3e9822=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3e9822,'revisionId':_0x598306['id']})['then'](_0x1ef0b0=>{_0x598306['diffData']=_0x1ef0b0['diffData'];});}}['_bufferUpdate'](_0x5d0852,_0x40c398,_0x4079ed){if(this['_bufferedUpdates']['has'](_0x5d0852)){const _0x3fd54f=this['_bufferedUpdates']['get'](_0x5d0852);_0x40c398=_0x4079ed?{..._0x3fd54f,..._0x40c398}:{..._0x40c398,..._0x3fd54f};}this['_bufferedUpdates']['set'](_0x5d0852,_0x40c398);}['_getFromVersion'](_0x531927){const _0x11cf87=this['repository']['getRevisions']();_0x11cf87['reverse'](),_0x11cf87['shift']();const _0x46aa1c=_0x11cf87['find'](_0x3e4684=>_0x3e4684['toVersion']<=_0x531927)['toVersion'];return _0x46aa1c<this['_startingVersion']?this['_startingVersion']:_0x46aa1c;}['_createInitialRevision'](_0x359265){const _0x36882f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x36882f)this['_initialRevisionId']=_0x36882f['id'];else{const _0xe578e3=!this['editor']['model']['document']['roots']['find'](_0x5a4316=>this['editor']['model']['hasContent'](_0x5a4316)),_0x3afb3b=this['editor']['plugins']['get']('Users')['me']['id'],_0x600f06=m(this['editor']['locale'],_0xe578e3?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x359265,'to':_0x359265,'id':this['_initialRevisionId'],'name':_0x600f06,'creatorId':_0x3afb3b});}}['_createCurrentRevision'](_0x3a4843){const _0xe6e2b3=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xe6e2b3),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3a4843,'to':_0x3a4843,'id':_0xe6e2b3,'name':'','creatorId':null}));}['_makeRevision']({name:_0x18eba5,from:_0x542ff8,to:_0x2e9c13,creatorId:_0x9ce734,id:_0x3ea012}){const _0x497f97=this['buildRevisionData']({'from':_0x542ff8,'to':_0x2e9c13});_0x497f97['name']=_0x18eba5,_0x497f97['creatorId']=_0x9ce734,_0x497f97['id']=_0x3ea012;const _0x5b373c=this['addRevisionData'](_0x497f97);return this['adapter']&&this['_bufferUpdate'](_0x497f97['id'],_0x497f97,!0x0),_0x5b373c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x92f203){return(_0x92f203=_0x92f203['filter'](_0x57cdda=>!_0x57cdda['name']||'revision-start'!==_0x57cdda['name']&&'revision-end'!==_0x57cdda['name']))['forEach'](_0xdc495e=>{'string'!=typeof _0xdc495e&&(_0xdc495e['children']=this['_removeRevisionMarkers'](_0xdc495e['children']),_0xdc495e['attributes']=_0xdc495e['attributes']['filter'](_0x4fb385=>!_0x4fb385[0x0]['startsWith']('data-revision-')));}),_0x92f203;}}function C(_0x5d86e2,_0xb7877){const _0x35fbf0=_0xb7877['editing']['view']['document'];if('string'==typeof _0x5d86e2)return new _0xf765a7(_0x35fbf0,_0x5d86e2);{const _0x1e748b=_0x5d86e2['children']['map'](_0xb55ac5=>C(_0xb55ac5,_0xb7877));return new(P[_0x5d86e2['type']]||_0x264073)(_0x35fbf0,_0x5d86e2['name'],_0x5d86e2['attributes'],_0x1e748b);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x496909){this['editor']=_0x496909,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'](_0x165f4b){this['source']=_0x165f4b;const _0x5de65a=new Map(),_0xe99db9=new Map(),_0x321a5a=this['editor']['model']['document']['roots']['map'](_0x29a195=>_0x29a195['rootName']);for(const _0x4dbfc9 of _0x321a5a){const _0x4fd82e=this['editor']['model']['document']['getRoot'](_0x4dbfc9),_0x2af5bf=T(_0x4fd82e);_0x5de65a['set'](_0x4dbfc9,_0x2af5bf),_0xe99db9['set'](_0x4dbfc9,Object['fromEntries'](_0x4fd82e['getAttributes']()));}const _0x3f15ad=Array['from'](this['editor']['model']['markers'])['map'](_0x2b5c6c=>[_0x2b5c6c['name'],_0x2b5c6c['getRange']()]),_0x49491b=this['source']['version'];this['_saveMetaData'](_0x49491b,_0x5de65a,_0x3f15ad,_0xe99db9),this['_startingRevisionId']=this['_revisionId'];const _0x1dc4c4=new Map(),_0x2e2383=new Map();for(const _0x582926 of _0x321a5a){const _0x510aff=F(_0x582926);_0x1dc4c4['set'](_0x582926,_0x510aff),_0x2e2383['set'](_0x582926,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1dc4c4,[],_0x2e2383);}['getData'](_0x38b237,_0x2e5b4f){if(this['_lastFrom']===_0x38b237&&this['_lastTo']<=_0x2e5b4f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2e5b4f,!0x0);else{if(!this['_savedMetaData']['has'](_0x38b237)){const _0x3c7a0b=this['_getPreviousFrom'](_0x38b237);this['_calculateMetaData'](_0x3c7a0b,_0x38b237,!0x1);}this['_calculateMetaData'](_0x38b237,_0x2e5b4f,!0x0);}return this['_lastFrom']=_0x38b237,this['_lastTo']=_0x2e5b4f,this['_getState']();}['loadState'](_0xe8ef0d){this['_reset'](),this['_lastFrom']=_0xe8ef0d['fromVersion'],this['_lastTo']=_0xe8ef0d['toVersion'];for(const _0x2761af in _0xe8ef0d['diffData']){const _0x58114d=_0xe8ef0d['diffData'][_0x2761af]['attachChange'],_0x53afe5=_0x11098e(_0xe8ef0d['diffData'][_0x2761af]['attributesBefore'])||{},_0x3e8cdf=this['_makeModelFromViewString'](_0xe8ef0d['diffData'][_0x2761af]['deletions']);_0x3e8cdf['rootName']=_0x2761af,_0x3e8cdf['_isAttached']=!_0x58114d||!_0x58114d['isAttached'],_0x3e8cdf['isAttached']=()=>_0x3e8cdf['_isAttached'],this['_baseRoots']['set'](_0x2761af,_0x3e8cdf),this['_baseRootsAttributes']['set'](_0x2761af,_0x53afe5),_0x58114d&&this['_touchedRoots']['set'](_0x2761af,_0x58114d);const _0x3f0a60=this['_makeIdsRoot'](_0x3e8cdf);this['_baseIdsRoots']['set'](_0x2761af,_0x3f0a60);for(const [_0x26f4dd,_0x3390e4]of _0x3e8cdf['markers']){if(!_0x26f4dd['startsWith']('revision:'))continue;const _0x527204=_0x26f4dd['split'](':')[0x2];for(const _0x295010 of _0x3390e4['getWalker']({'singleCharacters':!0x0})){const _0x3d8ce3=this['_getVidAttributeName'](_0x295010),_0x373f92='elementEnd'==_0x295010['type']?_0x295010['previousPosition']['path']['slice'](0x0,-0x1):_0x295010['previousPosition']['path'],_0x23c868=_0x3f0a60['getNodeByPath'](_0x373f92)['getAttribute'](_0x3d8ce3);this['_touched']['set'](_0x23c868,{'userId':_0x527204});}}}this['_startingRevisionId']=this['_revisionId'];const _0x54f531=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3ff0d6=>!this['_touched']['has'](_0x3ff0d6));let _0x3bdad7=0x0;const _0x1fc0ca=new Map();for(const _0x427cf5 in _0xe8ef0d['diffData']){const _0x148ad1=_0xe8ef0d['diffData'][_0x427cf5]['attachChange'],_0x57bbc7=_0x11098e(_0xe8ef0d['diffData'][_0x427cf5]['attributesAfter'])||{},_0x1d0d54=this['_makeModelFromViewString'](_0xe8ef0d['diffData'][_0x427cf5]['insertions']);_0x1d0d54['rootName']=_0x427cf5,_0x1d0d54['_isAttached']=!_0x148ad1||_0x148ad1['isAttached'],_0x1d0d54['isAttached']=()=>_0x1d0d54['_isAttached'],this['_diffRoots']['set'](_0x427cf5,_0x1d0d54),this['_diffRootsAttributes']['set'](_0x427cf5,_0x57bbc7);const _0x1182c9=this['_makeIdsRoot'](_0x1d0d54,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x427cf5,_0x1182c9),_0x1fc0ca['set'](_0x427cf5,_0x1d0d54['isAttached']()?_0x57bbc7:{});for(const [_0x218b8f,_0x2c2ea9]of _0x1d0d54['markers']){if(!_0x218b8f['startsWith']('revision:'))continue;const _0x5c8277=_0x218b8f['split'](':')[0x2];for(const _0x144960 of _0x2c2ea9['getWalker']({'singleCharacters':!0x0})){const _0xf1ae37=this['_getVidAttributeName'](_0x144960),_0x15325d=this['_revisionId']++,_0x12c9ca='elementEnd'==_0x144960['type']?_0x144960['previousPosition']['path']['slice'](0x0,-0x1):_0x144960['previousPosition']['path'];_0x1182c9['getNodeByPath'](_0x12c9ca)['_setAttribute'](_0xf1ae37,_0x15325d),this['_touched']['set'](_0x15325d,{'userId':_0x5c8277});}}for(const _0x26f5d7 of this['editor']['model']['createRangeIn'](_0x1d0d54)['getWalker']({'singleCharacters':!0x0})){const _0x24abbd=this['_getVidAttributeName'](_0x26f5d7),_0x644a87='elementEnd'==_0x26f5d7['type']?_0x26f5d7['previousPosition']['path']['slice'](0x0,-0x1):_0x26f5d7['previousPosition']['path'],_0x1cf11b=_0x1182c9['getNodeByPath'](_0x644a87);_0x1cf11b['getAttribute'](_0x24abbd)>0x0||_0x1cf11b['_setAttribute'](_0x24abbd,_0x54f531[_0x3bdad7++]);}for(const [_0x96c57f,_0x41eb12]of _0x1d0d54['markers'])_0x96c57f['startsWith']('revision:')||this['_markers']['set'](_0x96c57f,_0x41eb12);}const _0x27f834=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x27f834),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x27f834,0x1));const _0x252638=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x252638),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x252638,0x1));const _0x1cec45=Array['from'](this['_diffRoots'])['map'](([_0x2a5a57,_0x4bdd9a])=>[_0x2a5a57,T(_0x4bdd9a)]);this['_saveMetaData'](this['_lastTo'],_0x1cec45,this['_markers'],_0x1fc0ca);}['_makeModelFromViewString'](_0x1c0fcf){const _0x3739d4=JSON['parse'](_0x1c0fcf),_0x591772=this['editor']['editing']['view']['document'],_0x139942=new _0x5a249d(_0x591772,_0x3739d4['map'](_0x3803bb=>C(_0x3803bb,this['editor'])));return this['editor']['data']['toModel'](_0x139942);}['_saveMetaData'](_0x1df173,_0x152493,_0x3a0e5b,_0x1ca382){const _0x519a3d=new Map(_0x152493),_0x3818ef=new Map(_0x11098e(_0x1ca382)),_0x1b1194=new Map();for(const [_0x4bd048,_0x3da393]of _0x3a0e5b)_0x1b1194['set'](_0x4bd048,{'start':_0x3da393['start']['clone'](),'end':_0x3da393['end']['clone'](),'rootName':_0x3da393['root']['rootName']});this['_savedMetaData']['set'](_0x1df173,{'roots':_0x519a3d,'markers':_0x1b1194,'rootsAttributes':_0x3818ef});}['_removeMetaData'](_0x2aeed6){this['_savedMetaData']['delete'](_0x2aeed6);}['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'](_0x5d7fef,_0x3ca64c=null){let _0x321b8a=null;_0x5d7fef['is']('documentFragment')||(_0x321b8a=new ft(_0x5d7fef['name'],{'vid_start':null===_0x3ca64c?this['_revisionId']++:_0x3ca64c++}));const _0x4a5814=[];for(const _0x6581b5 of _0x5d7fef['getChildren']())if(_0x6581b5['is']('element')){_0x4a5814['push'](this['_makeIdsRoot'](_0x6581b5,_0x3ca64c));const _0x2463a4=_0x4a5814[_0x4a5814['length']-0x1];null!==_0x3ca64c&&(_0x3ca64c=_0x2463a4['is']('element','$text')?_0x2463a4['getAttribute']('vid')+0x1:_0x2463a4['getAttribute']('vid_end')+0x1);}else{for(let _0xf778ca=0x0;_0xf778ca<_0x6581b5['offsetSize'];_0xf778ca++)_0x4a5814['push'](new ft('$text',{'vid':null===_0x3ca64c?this['_revisionId']++:_0x3ca64c++}));}if(_0x5d7fef['is']('documentFragment')){const _0x3b59de=F(_0x5d7fef['rootName']);return _0x3b59de['_insertChild'](0x0,_0x4a5814),_0x3b59de;}return _0x321b8a['_setAttribute']('vid_end',null===_0x3ca64c?this['_revisionId']++:_0x3ca64c++),_0x321b8a['_insertChild'](0x0,_0x4a5814),_0x321b8a;}['_calculateMetaData'](_0x372279,_0x312afd,_0x37654c){this['_reset']();const {roots:_0xe5562,markers:_0x14c96d,rootsAttributes:_0xd27d7d}=this['_savedMetaData']['get'](_0x372279);this['_baseRoots']=new Map(_0xe5562),this['_baseRootsAttributes']=new Map(_0x11098e(_0xd27d7d));for(const [_0x135145,_0x168da2]of this['_baseRoots'])if('$graveyard'!==_0x135145&&(this['_diffRoots']['set'](_0x135145,T(_0x168da2)),this['_diffRootsAttributes']=new Map(_0x11098e(_0xd27d7d)),_0x37654c)){const _0x5932b2=this['_revisionId'];this['_idsRoots']['set'](_0x135145,this['_makeIdsRoot'](_0x168da2)),this['_baseIdsRoots']['set'](_0x135145,this['_makeIdsRoot'](_0x168da2,_0x5932b2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x37654c&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x152728,_0x4d8aea]of _0x14c96d){const _0x251fd1=this['_baseRoots']['get'](_0x4d8aea['rootName']),_0x463ad7=this['_diffRoots']['get'](_0x4d8aea['rootName']),_0x3d269f=new vt(this['_fixPosition'](_0x4d8aea['start'],_0x251fd1),this['_fixPosition'](_0x4d8aea['end'],_0x251fd1)),_0x42f3ca=this['_fixRange'](_0x3d269f,_0x463ad7);_0x251fd1['markers']['set'](_0x152728,_0x3d269f),this['_markers']['set'](_0x152728,_0x42f3ca);}this['_applyOperations'](_0x372279,_0x312afd,_0x37654c);}['_applyOperations'](_0x3374e9,_0x4866ce,_0x51527d){for(const _0x400f3f of this['source']['getOperations'](_0x3374e9,_0x4866ce))this['_handleOperation'](_0x400f3f,_0x51527d);for(const _0x4dae74 of this['_diffRoots']['values']())_0x4dae74['markers']['clear']();for(const [_0x315461,_0x372953]of this['_markers']){this['_diffRoots']['get'](_0x372953['root']['rootName'])['markers']['set'](_0x315461,_0x372953['clone']());}const _0x4ac737=new Map(),_0x30e48a=new Map();for(const [_0x4597a6,_0x318200]of this['_diffRoots'])_0x4ac737['set'](_0x4597a6,T(_0x318200)),_0x30e48a['set'](_0x4597a6,this['_diffRootsAttributes']['get'](_0x4597a6));this['_saveMetaData'](_0x4866ce,_0x4ac737,this['_markers'],_0x30e48a);}['_getPreviousFrom'](_0x17c298){const _0x4274a5=Array['from'](this['_savedMetaData']['keys']());_0x4274a5['sort']((_0x356a6e,_0x560d05)=>_0x356a6e-_0x560d05),_0x4274a5['reverse']();for(const _0x2da068 of _0x4274a5)if(_0x2da068<_0x17c298)return _0x2da068;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4b3d1a,_0x53467d){const _0x298eb2=Array['from'](_0x53467d['markers'])['map'](([_0x397b88,_0x56e6d2])=>[_0x397b88,this['_fixRange'](_0x56e6d2,_0x4b3d1a)]);_0x4b3d1a['markers']=new Map(_0x298eb2);}['_transformMarkers'](_0x4a0952){for(const _0x1b9f90 of this['_markers']['values']()){const _0x392873=_0x1b9f90['getTransformedByOperation'](_0x4a0952),_0x1233da=vt['_createFromRanges'](_0x392873);_0x1b9f90['start']=_0x1233da['start'],_0x1b9f90['end']=_0x1233da['end'];}}['_handleOperation'](_0x6f6974,_0x4729d6){if('addRoot'!=_0x6f6974['type']&&'detachRoot'!=_0x6f6974['type']){if('insert'==_0x6f6974['type']){const _0x3aa622=_0x6f6974['position']['root']['rootName'];this['_diffRoots']['has'](_0x3aa622)||(this['_diffRoots']['set'](_0x3aa622,F(_0x3aa622,!0x0)),this['_diffRootsAttributes']['set'](_0x3aa622,{}),_0x4729d6&&this['_idsRoots']['set'](_0x3aa622,F(_0x3aa622,!0x0)));}else{if('addRootAttribute'==_0x6f6974['type']||'removeRootAttribute'==_0x6f6974['type']||'changeRootAttribute'==_0x6f6974['type'])return void this['_handleRootAttributeOperation'](_0x6f6974);'marker'==_0x6f6974['type']&&this['_handleMarkerOperation'](_0x6f6974);}if('marker'!==_0x6f6974['type']){const _0x2c3733=this['_cloneOperation'](_0x6f6974,this['_diffRoots']);_0x2c3733['_execute'](),this['_transformMarkers'](_0x2c3733);}if(_0x4729d6)switch(_0x6f6974['type']){case'insert':this['_handleInsertOperation'](_0x6f6974);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x6f6974);break;case'merge':this['_handleMergeOperation'](_0x6f6974);break;case'split':this['_handleSplitOperation'](_0x6f6974);}}else this['_handleRootOperation'](_0x6f6974,_0x4729d6);}['_cloneOperation'](_0x7680dc,_0x4b148c){const _0xf58dd2=_0x7680dc['clone']();return _0xf58dd2['_authorId']=_0x7680dc['_authorId'],this['_fixOperation'](_0xf58dd2,_0x4b148c),_0xf58dd2;}['_getBaseVids'](_0x35df02){return _0x35df02['map'](_0x2eb83b=>{const _0x811297=this['_getVidAttributeName'](_0x2eb83b);return Number(_0x2eb83b['item']['getAttribute'](_0x811297));});}['_generateTape'](_0x21830e,_0x13f85c){if(_0x21830e['is']('element','$text'))_0x13f85c['push']({'item':_0x21830e,'type':'text'});else{_0x21830e['is']('element')&&_0x13f85c['push']({'item':_0x21830e,'type':'elementStart'});for(const _0x214d61 of _0x21830e['getChildren']())this['_generateTape'](_0x214d61,_0x13f85c);_0x21830e['is']('element')&&_0x13f85c['push']({'item':_0x21830e,'type':'elementEnd'});}return _0x13f85c;}['_getState'](){const _0x31d4fc=new Map(this['_touched']),_0x2cb178=new Map(_0x31d4fc),_0x32a334=new Map(),_0x37e357={'insertions':{},'deletions':{}},_0x5088c1={'insertions':{},'deletions':{}},_0x52cf25=new Map(),_0x1c6fe3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x1c6fe3['delete']('$graveyard');for(const _0x414cd0 of _0x1c6fe3){const _0x369713=this['_diffRoots']['get'](_0x414cd0)||F(_0x414cd0,!0x1),_0x236ff1=this['_baseRoots']['get'](_0x414cd0)||F(_0x414cd0,!0x1);_0x369713['isAttached']()||_0x236ff1['isAttached']()?(_0x37e357['insertions'][_0x414cd0]=T(_0x369713),_0x37e357['deletions'][_0x414cd0]=T(_0x236ff1),this['_copyMarkers'](_0x37e357['deletions'][_0x414cd0],_0x236ff1),this['_copyMarkers'](_0x37e357['insertions'][_0x414cd0],_0x369713),_0x5088c1['insertions'][_0x414cd0]=this['_generateTape'](this['_idsRoots']['get'](_0x414cd0),[]),_0x5088c1['deletions'][_0x414cd0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x414cd0)||F(_0x414cd0,!0x1),[])):_0x1c6fe3['delete'](_0x414cd0);}for(const _0x42ae10 of _0x1c6fe3){const _0x5b9cea=_0x5088c1['insertions'][_0x42ae10];for(const _0x510919 of _0x5b9cea){const _0x3b9296=this['_getVidAttributeName'](_0x510919),_0x112dca=_0x510919['item']['getAttribute'](_0x3b9296);_0x2cb178['delete'](_0x112dca),_0x112dca>=this['_startingRevisionId']&&_0x32a334['set'](_0x112dca,_0x31d4fc['get'](_0x112dca));}}for(const _0x380b3e of _0x1c6fe3){const _0x5a249c=_0x5088c1['insertions'][_0x380b3e],_0x1e5fcd=this['_getBaseVids'](_0x5088c1['deletions'][_0x380b3e]);let _0x41e76d=0x0;for(const _0x2a9704 of _0x5a249c){const _0x35171b=this['_getVidAttributeName'](_0x2a9704),_0x508c6c=_0x2a9704['item']['getAttribute'](_0x35171b);if(!_0x32a334['has'](_0x508c6c)&&!_0x52cf25['has'](_0x508c6c)){if(_0x2cb178['has'](_0x508c6c))_0x41e76d++;else{if(_0x508c6c!=_0x1e5fcd[_0x41e76d]){const _0x5d5150=_0x31d4fc['get'](_0x508c6c)||_0x31d4fc['get'](_0x1e5fcd[_0x41e76d]);for(;_0x508c6c!=_0x1e5fcd[_0x41e76d];)_0x2cb178['has'](_0x1e5fcd[_0x41e76d])||(_0x52cf25['set'](_0x1e5fcd[_0x41e76d],_0x5d5150),_0x31d4fc['set'](_0x1e5fcd[_0x41e76d],_0x5d5150)),_0x41e76d++;}_0x41e76d++;}}}}for(const _0x25db92 of _0x1c6fe3){const _0x179a74=_0x5088c1['insertions'][_0x25db92];for(const _0x13ab46 of _0x179a74){const _0x4511d6=this['_getVidAttributeName'](_0x13ab46),_0x5b7a8a=_0x13ab46['item']['getAttribute'](_0x4511d6);if(_0x52cf25['has'](_0x5b7a8a)){const _0x29f55b=_0x52cf25['get'](_0x5b7a8a);_0x2cb178['has'](_0x5b7a8a)||_0x2cb178['set'](_0x5b7a8a,{..._0x29f55b}),_0x32a334['set'](_0x5b7a8a,{..._0x29f55b});}}}for(const _0x344ad6 of _0x2cb178['keys']())_0x344ad6>=this['_startingRevisionId']&&_0x2cb178['delete'](_0x344ad6);const _0xb34324=new Map();for(const _0x44f39c of _0x1c6fe3){let _0x1a1d63=_0x5088c1['insertions'][_0x44f39c];for(const _0x39b0cc of _0x1a1d63)if(_0x39b0cc['item']['is']('element','tableCell')){const _0x411d45=this['_getVidAttributeName'](_0x39b0cc),_0x26704b=_0x39b0cc['item']['getAttribute'](_0x411d45);if(_0x32a334['has'](_0x26704b)){const _0x1c7ea3=_0x39b0cc['item']['parent']['parent']['getAttribute']('vid_start'),_0x55a9f4=_0xb34324['get'](_0x1c7ea3)||new Set();_0x55a9f4['add'](_0x32a334['get'](_0x26704b)['userId']),_0xb34324['set'](_0x1c7ea3,_0x55a9f4);}}_0x1a1d63=_0x5088c1['deletions'][_0x44f39c];for(const _0x10504e of _0x1a1d63)if(_0x10504e['item']['is']('element','tableCell')){const _0x3f58ab=this['_getVidAttributeName'](_0x10504e),_0x495f80=_0x10504e['item']['getAttribute'](_0x3f58ab);if(_0x2cb178['has'](_0x495f80)){const _0x206581=_0x10504e['item']['parent']['parent']['getAttribute']('vid_start'),_0x2f08a3=_0xb34324['get'](_0x206581)||new Set();_0x2f08a3['add'](_0x2cb178['get'](_0x495f80)['userId']),_0xb34324['set'](_0x206581,_0x2f08a3);}}for(const _0x5bc768 of _0xb34324['keys']())(_0x32a334['has'](_0x5bc768)||_0x2cb178['has'](_0x5bc768))&&_0xb34324['delete'](_0x5bc768);}for(const _0x5914e4 of _0x1c6fe3){const _0x5e7454=_0x5088c1['insertions'][_0x5914e4];let _0x1fd09a=null,_0x9664e3=null;for(const _0x56f594 of _0x5e7454){const _0x3896c4=this['_getVidAttributeName'](_0x56f594),_0x1513bf=_0x56f594['item']['getAttribute'](_0x3896c4),_0x2416c8=_0xb34324['get'](_0x1513bf);_0x2416c8&&'elementStart'==_0x56f594['type']&&(_0x1fd09a=Array['from'](_0x2416c8)[0x0],_0x9664e3=_0x56f594['item']['getAttribute']('vid_end')),_0x1fd09a&&(_0x2cb178['set'](_0x1513bf,{'userId':_0x1fd09a}),_0x32a334['set'](_0x1513bf,{'userId':_0x1fd09a})),_0x1513bf==_0x9664e3&&(_0x1fd09a=null,_0x9664e3=null);}}const _0xb4c6f7={},_0x288605=new Set();for(const _0x34af29 of _0x1c6fe3){const _0x3ebb50=_0x37e357['deletions'][_0x34af29],_0xa3e02e=_0x37e357['insertions'][_0x34af29];for(const {userId:_0x13f972}of this['_touchedMarkers']['values']())null!==_0x13f972&&_0x288605['add'](_0x13f972);for(const {userId:_0x299e5a}of this['_touchedRoots']['values']())null!==_0x299e5a&&_0x288605['add'](_0x299e5a);this['_markChanges'](_0xa3e02e,_0x5088c1['insertions'][_0x34af29],_0x32a334,'insertion',_0x288605),this['_markChanges'](_0x3ebb50,_0x5088c1['deletions'][_0x34af29],_0x2cb178,'deletion',_0x288605),_0xb4c6f7[_0x34af29]={'insertions':this['_prepareViewToSave'](_0xa3e02e),'deletions':this['_prepareViewToSave'](_0x3ebb50),'attachChange':this['_touchedRoots']['get'](_0x34af29)||null,'attributesBefore':_0x11098e(this['_baseRootsAttributes']['get'](_0x34af29))||{},'attributesAfter':_0x11098e(this['_diffRootsAttributes']['get'](_0x34af29))};}return{'diffData':_0xb4c6f7,'authorsIds':Array['from'](_0x288605)};}['_processRootBeforeSave'](_0x114b72){for(const [,_0x1c6bd7]of _0x114b72['markers']){const _0x246b46=_0x1c6bd7['start']['getAncestors']()['filter'](_0x522c60=>'tableCell'==_0x522c60['name']);for(const _0x1ff16e of _0x246b46)0x1==_0x1ff16e['childCount']&&_0x1ff16e['getChild'](0x0)['is']('element','paragraph')&&_0x1ff16e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2fa082){this['_processRootBeforeSave'](_0x2fa082);const _0x5115e6=this['editor']['data']['toView'](_0x2fa082,{}),_0x24101b=Array['from'](_0x5115e6['getChildren']())['map'](_0x55ce99=>this['_getViewJson'](_0x55ce99));return JSON['stringify'](_0x24101b);}['_getViewJson'](_0x3aed00){if(_0x3aed00['is']('$text'))return _0x3aed00['data'];{const _0x4f5fd4=_0x3aed00;return{'type':Object['keys'](P)['find'](_0x418202=>_0x3aed00 instanceof P[_0x418202]),'name':_0x4f5fd4['name'],'attributes':Array['from'](_0x4f5fd4['getAttributes']()),'children':Array['from'](_0x4f5fd4['getChildren']())['map'](_0xf15e19=>this['_getViewJson'](_0xf15e19))};}}['_markChanges'](_0x5c0e56,_0x2ce1bb,_0x36ba34,_0x3677e3,_0x40c167){let _0x5b0d7b=null,_0x39dbe9=null,_0xe4de2f=0x0;const _0x364bc6=this['editor']['model'];for(let _0x2fb3f8=0x0;_0x2fb3f8<_0x2ce1bb['length'];_0x2fb3f8++){const _0x529980=this['_getVidAttributeName'](_0x2ce1bb[_0x2fb3f8]),_0x19c295=_0x2ce1bb[_0x2fb3f8]['item']['getAttribute'](_0x529980),_0x52df8a=_0x36ba34['get'](_0x19c295),_0x1f3e25=_0x2fb3f8==_0x2ce1bb['length']-0x1;(!_0x5b0d7b&&_0x52df8a&&(_0x5b0d7b=_0x52df8a,_0x39dbe9=_0x2ce1bb[_0x2fb3f8]),_0x5b0d7b&&(!_0x52df8a||_0x52df8a['userId']!=_0x5b0d7b['userId']))&&(_0x3671c2(_0x52df8a,B(_0x39dbe9,_0x5c0e56,_0x364bc6),B(_0x2ce1bb[_0x2fb3f8],_0x5c0e56,_0x364bc6)),_0x5b0d7b=_0x52df8a||null,_0x39dbe9=_0x52df8a?_0x2ce1bb[_0x2fb3f8]:null),_0x5b0d7b&&_0x1f3e25&&_0x3671c2(_0x52df8a,B(_0x39dbe9,_0x5c0e56,_0x364bc6),J(_0x2ce1bb[_0x2fb3f8],_0x5c0e56,_0x364bc6));}function _0x3671c2(_0x34767c,_0x134248,_0x3e1f04){const _0x2c5927=_0x5b0d7b['userId'],_0x4c677a='revision:'+_0x3677e3+':'+_0x2c5927+':'+_0xe4de2f++,_0x4303f4=_0x364bc6['createRange'](_0x134248,_0x3e1f04);_0x5c0e56['markers']['set'](_0x4c677a,_0x4303f4),null!==_0x2c5927&&_0x40c167['add'](_0x2c5927);}}['_getVidAttributeName'](_0x29d18d){switch(_0x29d18d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5c70fc,_0x1988d6){_0x5c70fc['baseVersion']=null;for(const _0x2ef9e9 in _0x5c70fc){const _0x49a6da=_0x5c70fc[_0x2ef9e9];if(_0x49a6da instanceof gt){const _0x1edba0=_0x1988d6['get'](_0x49a6da['root']['rootName']);_0x5c70fc[_0x2ef9e9]=this['_fixPosition'](_0x49a6da,_0x1edba0);}if(_0x49a6da instanceof vt){const _0x4d730e=_0x1988d6['get'](_0x49a6da['root']['rootName']);_0x5c70fc[_0x2ef9e9]=this['_fixRange'](_0x49a6da,_0x4d730e);}'root'===_0x2ef9e9&&(_0x5c70fc['root']=_0x1988d6['get'](_0x5c70fc['root']['rootName']));}}['_fixRange'](_0xa39415,_0x1249be){return this['editor']['model']['createRange'](this['_fixPosition'](_0xa39415['start'],_0x1249be),this['_fixPosition'](_0xa39415['end'],_0x1249be));}['_fixPosition'](_0x437c90,_0x255282){return this['editor']['model']['createPositionFromPath'](_0x255282,_0x437c90['path'],_0x437c90['stickiness']);}['_handleInsertOperation'](_0x13672d){const _0x278c3a=this['_idsRoots']['get'](_0x13672d['position']['root']['rootName']),_0x5ec6bb=this['_fixPosition'](_0x13672d['position'],_0x278c3a),_0x4798d6=null===_0x13672d['_authorId']?null:_0x13672d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x286ce8=_0x5ec6bb['parent'],_0x55949b=this['_revisionId'],_0x272088=[];for(const _0x188f38 of _0x13672d['nodes'])if(_0x188f38['is']('element'))_0x272088['push'](this['_makeIdsRoot'](_0x188f38));else{for(let _0x2ce617=0x0;_0x2ce617<_0x188f38['offsetSize'];_0x2ce617++)_0x272088['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0xf9fdff=this['_revisionId'];for(let _0x969ddb=_0x55949b;_0x969ddb<_0xf9fdff;_0x969ddb++)this['_touched']['set'](_0x969ddb,{'userId':_0x4798d6});_0x286ce8['_insertChild'](_0x5ec6bb['offset'],_0x272088);}['_handleMoveOperation'](_0x370a81){(_0x370a81=this['_cloneOperation'](_0x370a81,this['_idsRoots']))['_execute']();const _0xf53171=null===_0x370a81['_authorId']?null:_0x370a81['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8f6ccf=_0x370a81['getMovedRangeStart'](),_0x388119=_0x8f6ccf['parent'],_0xc1099d=_0x8f6ccf['offset'];!function _0x5bec65(_0x1670ac,_0xbde163,_0x24e7f6,_0x2f2591){for(let _0x4e573c=_0x24e7f6;_0x4e573c<_0x2f2591;_0x4e573c++){const _0x5a41ea=_0xbde163['getChild'](_0x4e573c);_0x5a41ea['is']('element','$text')?_0x1670ac['set'](_0x5a41ea['getAttribute']('vid'),{'userId':_0xf53171}):(_0x1670ac['set'](_0x5a41ea['getAttribute']('vid_start'),{'userId':_0xf53171}),_0x5bec65(_0x1670ac,_0x5a41ea,0x0,_0x5a41ea['childCount']),_0x1670ac['set'](_0x5a41ea['getAttribute']('vid_end'),{'userId':_0xf53171}));}}(this['_touched'],_0x388119,_0xc1099d,_0xc1099d+_0x370a81['howMany']);}['_handleMergeOperation'](_0x2aac8f){const _0x109c96=null===(_0x2aac8f=this['_cloneOperation'](_0x2aac8f,this['_idsRoots']))['_authorId']?null:_0x2aac8f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x468229=_0x2aac8f['targetPosition']['parent'],_0x45d276=_0x2aac8f['sourcePosition']['parent'],_0x2862d9=_0x468229['getAttribute']('vid_end'),_0x49d1a6=_0x45d276['getAttribute']('vid_start');_0x468229['_setAttribute']('vid_end',_0x45d276['getAttribute']('vid_end')),_0x45d276['_setAttribute']('vid_end',_0x2862d9),this['_touched']['set'](_0x49d1a6,{'userId':_0x109c96}),this['_touched']['set'](_0x2862d9,{'userId':_0x109c96}),_0x2aac8f['_execute']();}['_handleSplitOperation'](_0x2dc9b3){const _0xeb982e=null===(_0x2dc9b3=this['_cloneOperation'](_0x2dc9b3,this['_idsRoots']))['_authorId']?null:_0x2dc9b3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x275415=_0x2dc9b3['graveyardPosition'],_0x3371c6=_0x2dc9b3['splitPosition']['parent'];_0x2dc9b3['_execute']();const _0x7c5b1a=_0x3371c6['getAttribute']('vid_end'),_0x3c8796=_0x2dc9b3['insertionPosition']['nodeAfter'];if(_0x275415){const _0x4d3854=_0x3c8796['getAttribute']('vid_end'),_0x22946b=_0x3371c6['getAttribute']('vid_end');_0x3371c6['_setAttribute']('vid_end',_0x4d3854),_0x3c8796['_setAttribute']('vid_end',_0x22946b),this['_touched']['set'](_0x3371c6['getAttribute']('vid_end'),{'userId':_0xeb982e}),this['_touched']['set'](_0x3c8796['getAttribute']('vid_start'),{'userId':_0xeb982e});}else{const _0x151a2d=this['_revisionId']++,_0x199361=this['_revisionId']++;_0x3371c6['_setAttribute']('vid_end',_0x151a2d),_0x3c8796['_setAttribute']('vid_start',_0x199361),_0x3c8796['_setAttribute']('vid_end',_0x7c5b1a),this['_touched']['set'](_0x151a2d,{'userId':_0xeb982e}),this['_touched']['set'](_0x199361,{'userId':_0xeb982e});}}['_handleMarkerOperation'](_0x4c9262){if(!_0x4c9262['affectsData'])return;const _0x5eba46=(_0x4c9262=this['_cloneOperation'](_0x4c9262,this['_diffRoots']))['oldRange']?_0x4c9262['oldRange']['root']:null,_0x4b65b1=_0x4c9262['newRange']?_0x4c9262['newRange']['root']:null;_0x5eba46&&this['_markers']['delete'](_0x4c9262['name']),_0x4b65b1&&this['_markers']['set'](_0x4c9262['name'],_0x4c9262['newRange']['clone']());const _0x55606d=null===_0x4c9262['_authorId']?null:_0x4c9262['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44008d=_0x4c9262['name'];if(!this['_touchedMarkers']['has'](_0x44008d))return void this['_touchedMarkers']['set'](_0x44008d,{'range':_0x4c9262['oldRange'],'userId':_0x55606d});const _0x57ab78=this['_touchedMarkers']['get'](_0x44008d),_0x3553c3=_0x57ab78['range'],_0x2e0048=_0x4c9262['newRange'];null==_0x3553c3&&null==_0x2e0048||_0x3553c3&&_0x2e0048&&_0x3553c3['isEqual'](_0x2e0048)?this['_touchedMarkers']['delete'](_0x4c9262['name']):_0x57ab78['userId']=_0x55606d;}['_handleRootOperation'](_0x1b1847,_0xf3c0ed){this['_diffRoots']['has'](_0x1b1847['rootName'])?this['_diffRoots']['get'](_0x1b1847['rootName'])['_isAttached']=_0x1b1847['isAdd']:(this['_diffRoots']['set'](_0x1b1847['rootName'],F(_0x1b1847['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1b1847['rootName'],{}),_0xf3c0ed&&this['_idsRoots']['set'](_0x1b1847['rootName'],F(_0x1b1847['rootName'],!0x0)));const _0x1eeb88=null===_0x1b1847['_authorId']?null:_0x1b1847['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1a286c=this['_touchedRoots']['get'](_0x1b1847['rootName']);_0x1a286c&&_0x1a286c['userId']===_0x1eeb88?this['_touchedRoots']['delete'](_0x1b1847['rootName']):this['_touchedRoots']['set'](_0x1b1847['rootName'],{'userId':_0x1eeb88,'isAttached':_0x1b1847['isAdd']});}['_handleRootAttributeOperation'](_0x2ce799){const _0x185c60=this['_diffRootsAttributes']['get'](_0x2ce799['root']['rootName']);null===_0x2ce799['newValue']?delete _0x185c60[_0x2ce799['key']]:_0x185c60[_0x2ce799['key']]=_0x2ce799['newValue'];}}function T(_0x530343){const _0x2294b1=F(_0x530343['rootName'],_0x530343['isAttached']());for(const _0xc43e99 of _0x530343['getChildren']()){const _0x169b79=_0xc43e99['_clone'](!0x0);_0x2294b1['_appendChild'](_0x169b79);}return _0x2294b1;}function F(_0x12ec22,_0x34ec94=!0x0){const _0x5f440f=new mt();return _0x5f440f['rootName']=_0x12ec22,_0x5f440f['_isAttached']=_0x34ec94,_0x5f440f['isAttached']=()=>_0x5f440f['_isAttached'],_0x5f440f;}function B(_0x48dc38,_0x4eb965,_0x232ac9){const _0x2387a2='elementEnd'==_0x48dc38['type']?_0x232ac9['createPositionAt'](_0x48dc38['item'],'end'):_0x232ac9['createPositionBefore'](_0x48dc38['item']);return _0x232ac9['createPositionFromPath'](_0x4eb965,_0x2387a2['path'],_0x2387a2['stickiness']);}function J(_0x4fa82d,_0xc88ba5,_0x5b95a2){const _0x21de4b='elementStart'==_0x4fa82d['type']?_0x5b95a2['createPositionAt'](_0x4fa82d['item'],0x0):_0x5b95a2['createPositionAfter'](_0x4fa82d['item']);return _0x5b95a2['createPositionFromPath'](_0xc88ba5,_0x21de4b['path'],_0x21de4b['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x27d867,_0x3510ad){super(_0x27d867),this['focusTracker']=new _0x476cc9(),this['keystrokes']=new _0x141b19(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3510ad),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1548e5(this);}['render'](){super['render'](),_0x2016ef({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x246527=_0x3c35dd=>_0x3c35dd['stopPropagation']();this['keystrokes']['set']('arrowright',_0x246527),this['keystrokes']['set']('arrowleft',_0x246527),this['keystrokes']['set']('arrowup',_0x246527),this['keystrokes']['set']('arrowdown',_0x246527);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x164e78){this['revisionNameInputView']['fieldView']['element']['value']=_0x164e78['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x597e5f){const _0x3bb68c=new _0x20b62d(this['locale'],_0x32fa1d),_0x487cc=_0x3bb68c['fieldView'];_0x487cc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x34d303=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x597e5f&&(_0x34d303+='\x20('+m(this['locale'],'optional')+')'),(_0x3bb68c['label']=_0x34d303,_0x487cc['on']('input',()=>{this['revisionNameInputValue']=_0x487cc['element']['value']['trim']();}),_0x3bb68c);}}class u extends _0x1a1ac2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x162349=this['editor'],_0xe7818b=_0x162349['plugins']['get']('RevisionTracker');_0x162349['ui']['componentFactory']['add']('revisionHistory',_0x385394=>{const _0x1b3f58=_0x473e03(_0x385394),_0x2bad16=_0x1b3f58['panelView']['children'],_0x2cdb03=new _0x30d671(_0x385394),_0x310f0b=new _0x577b82(_0x385394),_0x472e4f=new te(_0x385394),_0x91c30c=new _0x577b82(_0x385394),_0x3b6ac9=new te(_0x385394);return _0x1b3f58['bind']('isEnabled')['to'](_0xe7818b,'isReady',_0xe7818b,'isEnabled',_0x162349,'isReadOnly',(_0x204f3e,_0x444edb,_0x26be7d)=>_0x204f3e&&_0x444edb&&!_0x26be7d),_0x1b3f58['buttonView']['set']({'icon':_0x34e80f['history'],'label':m(_0x385394,'Revision\x20history'),'tooltip':!0x0}),_0x472e4f['set']({'label':m(_0x385394,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x472e4f['bind']('isEnabled')['to'](_0xe7818b,'isReady',_0xe7818b,'isEnabled',_0x162349,'isReadOnly',(_0x324e23,_0x550ee9,_0x3e410e)=>_0x324e23&&_0x550ee9&&!_0x3e410e),_0x472e4f['on']('execute',()=>this['_showDialog']()),_0x3b6ac9['set']({'label':m(_0x385394,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3b6ac9['bind']('isEnabled')['to'](_0xe7818b,'isReady',_0x162349,'isReadOnly',(_0x8edb80,_0x54ad41)=>_0x8edb80&&!_0x54ad41),_0x3b6ac9['on']('execute',()=>{_0x162349['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1b3f58['isOpen']=!0x1,_0x162349['editing']['view']['focus']();}),_0x310f0b['children']['add'](_0x472e4f),_0x91c30c['children']['add'](_0x3b6ac9),_0x2cdb03['role']='menu',_0x2cdb03['items']['addMany']([_0x310f0b,_0x91c30c]),_0x2bad16['add'](_0x2cdb03),_0x1b3f58;}),_0x162349['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xd6641b=this['editor'],_0x5c8d99=_0xd6641b['locale'],_0x4df23b=new _0x39f2c7(_0x5c8d99),_0x261d29=new _0x530dcb(_0x5c8d99);_0x4df23b['buttonView']['set']({'icon':_0x34e80f['history'],'label':m(_0x5c8d99,'Revision\x20history')});const _0x670f97=new _0x99714d(_0x5c8d99,_0x4df23b),_0x2c97ee=new _0x5102b4(_0x5c8d99);_0x2c97ee['set']({'label':m(_0x5c8d99,'Save\x20current\x20revision')}),_0x2c97ee['delegate']('execute')['to'](_0x4df23b),_0x2c97ee['on']('execute',()=>{this['_showDialog']();}),_0x670f97['children']['add'](_0x2c97ee),_0x261d29['items']['add'](_0x670f97);const _0x4c6580=new _0x99714d(_0x5c8d99,_0x4df23b),_0x5b2644=new _0x5102b4(_0x5c8d99);return _0x5b2644['set']({'label':m(_0x5c8d99,'Open\x20revision\x20history')}),_0x5b2644['delegate']('execute')['to'](_0x4df23b),_0x5b2644['on']('execute',()=>{_0xd6641b['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4c6580['children']['add'](_0x5b2644),_0x261d29['items']['add'](_0x4c6580),_0x4df23b['panelView']['children']['add'](_0x261d29),_0x4df23b;}['_showDialog'](){const _0x4dc355=this['editor'],_0x39f561=_0x4dc355['locale'],_0x36e8f7=_0x4dc355['plugins']['get']('Dialog'),_0x5cb9c6=_0x4dc355['plugins']['get']('RevisionTracker');function _0x13c658(_0x320de5){_0x4dc355['config']['get']('revisionHistory.requireRevisionName')&&''===_0x320de5['revisionName']?_0x320de5['revisionNameInputView']['errorText']=m(_0x39f561,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4dc355['plugins']['get'](l)['saveRevision']({'name':_0x320de5['revisionName']}),_0x36e8f7['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x13c658(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x36e8f7['show']({'id':'revisionSave','title':m(_0x39f561,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x4dc355['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x36e8f7['hide']()},{'label':m(_0x4dc355['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xc3049c){_0xc3049c['bind']('isEnabled')['to'](_0x5cb9c6,'isReady',_0x5cb9c6,'isEnabled',_0x4dc355,'isReadOnly',(_0x19f53f,_0x3a9d08,_0xf12b42)=>_0x19f53f&&_0x3a9d08&&!_0xf12b42);},'onExecute':()=>_0x13c658(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x535a9b=this['editor'],_0x1295be=_0x535a9b['locale'];this['_saveRevisionFormView']=new hs(_0x1295be,_0x535a9b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x5c80ee,_0x3f6b22){super(_0x5c80ee),this['_model']=_0x3f6b22,this['changeId']=_0x3f6b22['id'];const _0x478703=this['bindTemplate'],_0x131de2=m(_0x5c80ee,_0x3f6b22['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3f6b22['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3f6b22['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x478703['to']('type',_0x470262=>'ck-revision-change__'+_0x470262)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x131de2}]},{'text':'\x20'+_0x3f6b22['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x4fb1cb(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5b2f60){super(),this['id']=_0x5b2f60['id']||_0x48b6ee(),this['author']=_0x5b2f60['author'],this['type']=_0x5b2f60['type'],this['data']=_0x5b2f60['data']||{},this['rootName']=_0x5b2f60['rootName'],this['set']('createdAt',_0x5b2f60['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(_0x1c164f,_0x3701b1){this['newRevisionId']=_0x1c164f,this['oldRevisionId']=_0x3701b1,this['changes']=new _0x304643();}['_setChanges'](_0x574da9){for(const _0x3b65c1 of _0x574da9)this['changes']['add'](_0x3b65c1);}}const Y={'c':_0x51a9dc,'a':_0x3e1fd0,'e':_0x2920cf,'r':_0x49b788,'u':_0x481716};class d extends _0x1a1ac2{['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[_0x28dcd7,_0x5ed0ef,j];}constructor(_0x345111){super(_0x345111),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',(_0x1f1253,_0x1ad9d4,_0x1386e6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x421588=>{for(const _0x55d261 of this['editor']['editing']['view']['document']['roots'])_0x1386e6?_0x421588['removeClass']('ck-editor__editable__overlay',_0x55d261):_0x421588['addClass']('ck-editor__editable__overlay',_0x55d261);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x203a24=>null!==_0x203a24),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x83444c,_0x396ab8,_0x5600da)=>_0x83444c&&_0x5600da?_0x396ab8['changes']['getIndex'](_0x5600da):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x429f56,_0xd3f0ea)=>_0x429f56?_0xd3f0ea['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5ed0ef);}['init'](){const _0x30c2ad=this['editor'],_0x1e8e05=new _t(_0x30c2ad,{'direction':'backward'}),_0x3d8eb3=new _t(_0x30c2ad,{'direction':'forward'});(_0x30c2ad['commands']['add']('showPreviousChange',_0x1e8e05),_0x30c2ad['commands']['add']('showNextChange',_0x3d8eb3),_0x30c2ad['commands']['add']('restoreRevision',new pt(_0x30c2ad)),this['on']('change:numberOfChanges',()=>{_0x1e8e05['refresh'](),_0x3d8eb3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x30c2ad['enableReadOnlyMode']('revision-viewer'),_0x30c2ad['plugins']['has']('WidgetToolbarRepository'))&&_0x30c2ad['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2a6f3e){await this['loadRevisionData'](_0x2a6f3e);const _0x30ef39={};for(const _0x43e3d8 in _0x2a6f3e['diffData']){if(_0x2a6f3e['diffData'][_0x43e3d8]['attachChange']&&!_0x2a6f3e['diffData'][_0x43e3d8]['attachChange']['isAttached'])continue;const _0x7174c3=this['_removeRevisionMarkers'](JSON['parse'](_0x2a6f3e['diffData'][_0x43e3d8]['insertions'])),_0x50cd58=this['editor']['editing']['view']['document'],_0x58a0da=new _0x5a249d(_0x50cd58,_0x7174c3['map'](_0x352bed=>this['_getViewObj'](_0x352bed)));this['editor']['data']['processor']['useFillerType']('marked'),_0x30ef39[_0x43e3d8]=this['editor']['data']['processor']['toData'](_0x58a0da),this['editor']['data']['processor']['useFillerType']('default');}return _0x30ef39;}async['getRevisionRootsAttributes'](_0x27caec){await this['loadRevisionData'](_0x27caec);const _0x36dfa8={};for(const _0xe0f000 in _0x27caec['diffData'])_0x27caec['diffData'][_0xe0f000]['attachChange']&&!_0x27caec['diffData'][_0xe0f000]['attachChange']['isAttached']||(_0x36dfa8[_0xe0f000]=_0x27caec['diffData'][_0xe0f000]['attributesAfter']||{});return _0x36dfa8;}['_removeRevisionMarkers'](_0x5b9e49){return(_0x5b9e49=_0x5b9e49['filter'](_0x14b1af=>!_0x14b1af['name']||'revision-start'!==_0x14b1af['name']&&'revision-end'!==_0x14b1af['name']))['forEach'](_0x440b51=>{'string'!=typeof _0x440b51&&(_0x440b51['children']=this['_removeRevisionMarkers'](_0x440b51['children']),_0x440b51['attributes']=_0x440b51['attributes']['filter'](_0x338180=>!_0x338180[0x0]['startsWith']('data-revision-')));}),_0x5b9e49;}async['compare'](_0x4b2427,_0x27b75a,_0x3667e1=!0x1){if(!this['isEnabled'])return;const _0x42f8ba=this['diff'],_0x46e416=this['repository'],_0x4e210d='string'==typeof _0x4b2427?_0x46e416['getRevision'](_0x4b2427):_0x4b2427,_0x594157='string'==typeof _0x27b75a?_0x46e416['getRevision'](_0x27b75a):_0x27b75a,_0x1fa647=_0x4e210d['id'],_0x35b279=_0x594157?_0x594157['id']:null;if(!_0x3667e1&&this['diff']&&this['diff']['newRevisionId']===_0x1fa647&&this['diff']['oldRevisionId']===_0x35b279)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1fa647,_0x35b279);const _0xb24e2a=this['_getRevisionsRange'](_0x4e210d,_0x594157,!0x0)['map'](_0x59f694=>this['loadRevisionData'](_0x59f694));return _0xb24e2a['push'](new Promise(_0x5aeb92=>{setTimeout(_0x5aeb92,0x14);})),Promise['all'](_0xb24e2a)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4611b0=this['_getDiff'](_0x1fa647,_0x35b279);for(const _0x1d4b52 of _0x4611b0['changes'])this['_changeIdToChange']['set'](_0x1d4b52['id'],_0x1d4b52);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x6fed73=>{for(const _0x5633af of this['editor']['model']['document']['getRootNames']())_0x6fed73['detachRoot'](_0x5633af);for(const _0x3e1311 of Object['keys'](_0x4611b0['model'])){const _0xadf424=_0x6fed73['addRoot'](_0x3e1311);for(const _0x24bfde of Object['keys'](_0x4611b0['attributes'][_0x3e1311]))_0x6fed73['setAttribute'](_0x24bfde,_0x4611b0['attributes'][_0x3e1311][_0x24bfde],_0xadf424);_0x6fed73['insert'](_0x4611b0['model'][_0x3e1311],_0xadf424,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4611b0['changes'])),this['isReady']=!0x0;})['catch'](_0x1db50c=>{console['error'](_0x1db50c),this['_cleanUp'](),_0x42f8ba&&(this['diff']=_0x42f8ba),this['isReady']=!0x0;});}['addRevisionData'](_0x242497,_0x5eee5d){const _0x342091=this['repository']['createRevision'](_0x242497);return _0x342091['on']('_update',(_0x416b6d,_0x15f30d,_0x5622a7)=>_0x5eee5d(_0x15f30d,_0x5622a7,_0x342091)),this['repository']['addRevision'](_0x342091),_0x342091;}['loadRevisionData'](_0x405047){if(!_0x405047||_0x405047['diffData'])return Promise['resolve']();{const _0x5dee7d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5dee7d,'revisionId':_0x405047['id']})['then'](_0x1d6090=>{_0x405047['_update']({'diffData':_0x1d6090['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},_0x1d7776=>{for(const _0x359993 of this['editor']['model']['document']['getRootNames']())_0x1d7776['detachRoot'](_0x359993);});}['_sortAndFilterDiffChanges'](_0x1718e4){const _0x25e6aa=[],_0x19ba24=new Map();for(const _0x5b689c of this['editor']['model']['document']['getRootNames']()){const _0x7214fd=this['editor']['editing']['view']['getDomRoot'](_0x5b689c);if(!_0x7214fd)continue;const _0x229e12=_0x7214fd['getClientRects']()['item'](0x0);_0x229e12&&(_0x25e6aa['push'](_0x5b689c),_0x19ba24['set'](_0x5b689c,_0x229e12));}return _0x25e6aa['sort']((_0x1bb1cb,_0x449254)=>{const _0xc99041=_0x19ba24['get'](_0x1bb1cb),_0x5863e7=_0x19ba24['get'](_0x449254);return _0xc99041['y']-_0x5863e7['y']||_0xc99041['x']-_0x5863e7['x'];}),(_0x1718e4=_0x1718e4['filter'](_0x5507b6=>_0x25e6aa['includes'](_0x5507b6['rootName'])))['sort']((_0x239dc2,_0x3a1114)=>_0x25e6aa['indexOf'](_0x239dc2['rootName'])-_0x25e6aa['indexOf'](_0x3a1114['rootName'])),_0x1718e4;}['_makeTape'](_0x1ebfc8){const _0x11ea9e=Array['from'](_0x1ebfc8['markers'])['filter'](([_0x5c187e,_0x15f70b])=>_0x5c187e['startsWith']('revision:')&&!_0x15f70b['isCollapsed']),_0x56ca84=Array['from'](this['editor']['model']['createRangeIn'](_0x1ebfc8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x11ea9e['length'])for(const _0x1e73b9 of _0x56ca84){const [_0x47016a,_0x4777d2]=_0x11ea9e[0x0],[,_0x10c66d,_0x34fa84]=_0x47016a['split'](':');if(_0x4777d2['end']['isEqual'](_0x1e73b9['nextPosition'])&&_0x11ea9e['shift'](),(_0x1e73b9['previousPosition']['isEqual'](_0x4777d2['start'])||_0x1e73b9['previousPosition']['isAfter'](_0x4777d2['start']))&&('insertion'==_0x10c66d?_0x1e73b9['isAdded']={'userId':_0x34fa84}:'deletion'==_0x10c66d&&(_0x1e73b9['isRemoved']={'userId':_0x34fa84})),0x0==_0x11ea9e['length'])break;}return _0x56ca84;}['_refreshStartEndIndex'](_0x156998){const _0x557a08=new Map();for(let _0x7add3b=0x0;_0x7add3b<_0x156998['length'];_0x7add3b++)'text'===_0x156998[_0x7add3b]['type']?(_0x156998[_0x7add3b]['item']['startIndex']=_0x7add3b,_0x156998[_0x7add3b]['item']['endIndex']=_0x7add3b):('elementStart'===_0x156998[_0x7add3b]['type']?_0x156998[_0x7add3b]['item']['startIndex']=_0x7add3b:'elementEnd'===_0x156998[_0x7add3b]['type']&&(_0x156998[_0x7add3b]['item']['endIndex']=_0x7add3b),_0x557a08['set'](_0x156998[_0x7add3b]['id'],_0x7add3b));for(const _0x56cf99 of _0x557a08['values']())'elementStart'===_0x156998[_0x56cf99]['type']?_0x156998[_0x56cf99]['item']['endIndex']=_0x557a08['get'](_0x156998[_0x56cf99]['pairId']):'elementEnd'===_0x156998[_0x56cf99]['type']&&(_0x156998[_0x56cf99]['item']['startIndex']=_0x557a08['get'](_0x156998[_0x56cf99]['pairId']));}['_processTape'](_0x52e3fb){for(let _0x1b914d=0x0;_0x1b914d<_0x52e3fb['length'];_0x1b914d++){if('elementStart'===_0x52e3fb[_0x1b914d]['type'])_0x52e3fb[_0x1b914d]['item']['startIndex']=_0x1b914d;else{if('elementEnd'===_0x52e3fb[_0x1b914d]['type']){_0x52e3fb[_0x1b914d]['item']['endIndex']=_0x1b914d;const _0x41ce4d=_0x52e3fb[_0x1b914d]['item']['startIndex'];_0x52e3fb[_0x41ce4d]['pairId']=_0x52e3fb[_0x1b914d]['id'],_0x52e3fb[_0x1b914d]['pairId']=_0x52e3fb[_0x41ce4d]['id'];}else _0x52e3fb[_0x1b914d]['item']['startIndex']=_0x1b914d,_0x52e3fb[_0x1b914d]['item']['endIndex']=_0x1b914d,_0x52e3fb[_0x1b914d]['pairId']=null;}_0x52e3fb[_0x1b914d]['markersStart']||(_0x52e3fb[_0x1b914d]['markersStart']=[],_0x52e3fb[_0x1b914d]['markersEnd']=[]);}}['_markInsertions'](_0x2b1362,_0x57f2cf){const _0xac9431=_0x2b1362['filter'](_0x4996d1=>!_0x4996d1['isAdded']);for(let _0x5bc0be=0x0;_0x5bc0be<_0x57f2cf['length'];_0x5bc0be++)_0x57f2cf[_0x5bc0be]['isAdded']&&(_0xac9431[_0x5bc0be]['isAdded']=_0x57f2cf[_0x5bc0be]['isAdded']);}['_makeModelFromViewString'](_0x201885){const _0x14b46a=JSON['parse'](_0x201885),_0x3c340f=this['editor']['editing']['view']['document'],_0x352bfb=new _0x5a249d(_0x3c340f,_0x14b46a['map'](_0x2015bb=>this['_getViewObj'](_0x2015bb)));return this['editor']['data']['toModel'](_0x352bfb);}['_getViewObj'](_0x501f82){const _0x5f0db6=this['editor']['editing']['view']['document'];if('string'==typeof _0x501f82)return new _0xf765a7(_0x5f0db6,_0x501f82);{const _0x575aff=_0x501f82['children']['map'](_0x4fee03=>this['_getViewObj'](_0x4fee03));return new(Y[_0x501f82['type']]||_0x264073)(_0x5f0db6,_0x501f82['name'],_0x501f82['attributes'],_0x575aff);}}['_getDiff'](_0x376c7e,_0x85e4fa=null){const _0x5cb80c=this['repository']['getRevision'](_0x376c7e),_0x15db8d=_0x85e4fa?this['repository']['getRevision'](_0x85e4fa):null,_0x171bc5=this['_getRevisionsRange'](_0x5cb80c,_0x15db8d),_0x3713ed=_0x171bc5[_0x171bc5['length']-0x1],_0x5e0a04=new Map(),_0x87d749={'model':{},'attributes':{},'changes':[]},_0x292dfd=new Set(),_0x55c945=new Map();for(let _0x13c8d4=_0x171bc5['length']-0x1;_0x13c8d4>=0x0;_0x13c8d4--){const _0x586532=_0x171bc5[_0x13c8d4];for(const _0x30e783 of Object['keys'](_0x586532['diffData']))if(_0x586532['diffData'][_0x30e783]['attachChange']){const _0x44593d=_0x586532['diffData'][_0x30e783]['attachChange'];_0x44593d['isAttached']?(_0x292dfd['add'](_0x30e783),_0x55c945['has'](_0x30e783)&&_0x55c945['get'](_0x30e783)['userId']==_0x44593d['userId']?_0x55c945['delete'](_0x30e783):_0x55c945['set'](_0x30e783,_0x44593d)):_0x55c945['has'](_0x30e783)?(_0x292dfd['delete'](_0x30e783),_0x55c945['delete'](_0x30e783)):(_0x292dfd['add'](_0x30e783),_0x55c945['set'](_0x30e783,_0x44593d));}else _0x292dfd['add'](_0x30e783);}for(const _0x4fcb91 of _0x292dfd){const _0x16d6ef=_0x55c945['has'](_0x4fcb91)&&!_0x55c945['get'](_0x4fcb91)['isAttached'];let _0x28608d=_0x16d6ef?_0x171bc5['length']-0x1:0x0;const _0x551855=_0x16d6ef?-0x1:0x1;for(;_0x171bc5[_0x28608d];){const _0x1f6885=_0x171bc5[_0x28608d];if(_0x1f6885['diffData'][_0x4fcb91]){const _0x4d4d99=_0x16d6ef?_0x1f6885['diffData'][_0x4fcb91]['attributesBefore']:_0x1f6885['diffData'][_0x4fcb91]['attributesAfter'];_0x87d749['attributes'][_0x4fcb91]=_0x4d4d99?_0x11098e(_0x4d4d99):{};break;}_0x28608d+=_0x551855;}}for(const _0xd56384 of _0x171bc5){_0xd56384['model']={};for(const _0xc71475 of _0xd56384['authors'])_0x5e0a04['set'](_0xc71475['id'],_0xc71475);for(const _0x44c451 of _0x292dfd){const _0x435d8c=_0xd56384['diffData'][_0x44c451]?_0xd56384['diffData'][_0x44c451]['insertions']:'[]',_0x47fdd2=_0xd56384['diffData'][_0x44c451]?_0xd56384['diffData'][_0x44c451]['deletions']:'[]';_0xd56384['model'][_0x44c451]={'insertions':this['_makeModelFromViewString'](_0x435d8c),'deletions':this['_makeModelFromViewString'](_0x47fdd2)};}}for(const _0x2dee6c of _0x292dfd){let _0xeee734=null,_0x4ce8b6=0x0;const _0x5b05a3=new Map(Array['from'](_0x5cb80c['model'][_0x2dee6c]['insertions']['markers'])['filter'](([_0x597956])=>!_0x597956['startsWith']('revision:')));let _0x3bd089=0x0;for(const _0x36b727 of _0x171bc5){const _0x4be4df=this['_makeTape'](_0x36b727['model'][_0x2dee6c]['insertions']);_0x36b727==_0x5cb80c?(_0xeee734=_0x4be4df,_0x4ce8b6=_0xeee734['length'],_0xeee734['forEach'](_0x101da1=>{_0x101da1['id']=_0x3bd089++;}),this['_processTape'](_0xeee734)):this['_markInsertions'](_0xeee734,_0x4be4df);const _0x2dcba5=_0xeee734['filter'](_0x36e236=>!_0x36e236['isAdded'])['map'](_0x2dad75=>_0x2dad75['id']);let _0x354b0a=0x0;const _0x57707b=this['_makeTape'](_0x36b727['model'][_0x2dee6c]['deletions']);_0x57707b['forEach'](_0x4b26ab=>{_0x4b26ab['isRemoved']?_0x4b26ab['id']=_0x4ce8b6++:_0x4b26ab['id']=_0x2dcba5[_0x354b0a++];}),this['_processTape'](_0x57707b),this['_setDistance'](_0xeee734,'isAdded'),this['_setDistance'](_0x57707b,'isRemoved'),_0x36b727==_0x5cb80c&&this['_markMarkers'](_0xeee734,_0x5b05a3),_0xeee734=this['_joinTapes'](_0xeee734,_0x57707b),this['_refreshStartEndIndex'](_0xeee734),this['_setDistance'](_0xeee734,'isRemoved');}_0xeee734=_0xeee734['filter'](_0x464a47=>!(_0x464a47['isAdded']&&_0x464a47['isRemoved']));const _0x796f15=new Map(_0x3713ed['model'][_0x2dee6c]['deletions']['markers']),_0x11994b=new Set(_0x5b05a3['keys']());for(const _0x29720d of _0x796f15['keys']())_0x11994b['delete'](_0x29720d);this['_markSuggestions'](_0xeee734,_0x11994b),this['_fixObsoleteTags'](_0xeee734),_0xeee734=this['_removeMissingPairs'](_0xeee734),_0xeee734=this['_markMismatchedRemovedTags'](_0xeee734),_0xeee734=this['_removeUnsupportedChanges'](_0xeee734);const {root:_0x5a1c54,changes:_0x160fa2}=this['_makeModelFromTape'](_0xeee734,_0x5e0a04,_0x2dee6c);_0x87d749['model'][_0x2dee6c]=_0x5a1c54;const _0x5950d3=_0x55c945['get'](_0x2dee6c);if(_0x5950d3){const _0x23c146=_0x5e0a04['get'](_0x5950d3['userId']),_0x3fc888=new r({'author':_0x23c146,'type':_0x5950d3['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2dee6c});_0x160fa2['unshift'](_0x3fc888),_0x87d749['attributes'][_0x2dee6c]['revisionHistoryAttachChange']=_0x3fc888['id'];}_0x87d749['changes']=_0x87d749['changes']['concat'](_0x160fa2);}return _0x87d749;}['_markMarkers'](_0x11897e,_0x562298){for(let _0x1ef728=0x0;_0x1ef728<_0x11897e['length'];_0x1ef728++)for(const [_0x4c0457,_0x1df0ef]of _0x562298)_0x1df0ef['start']['isEqual'](_0x11897e[_0x1ef728]['previousPosition'])&&_0x11897e[_0x1ef728]['markersStart']['push'](_0x4c0457),_0x1df0ef['end']['isEqual'](_0x11897e[_0x1ef728]['nextPosition'])&&_0x11897e[_0x1ef728]['markersEnd']['push'](_0x4c0457);}['_joinTapes'](_0x273d89,_0x31ecf9){let _0x5c5c45=[],_0x364d9d=0x0,_0x862b99=0x0;for(;_0x364d9d<_0x273d89['length']||_0x862b99<_0x31ecf9['length'];){const _0x1e94a1=_0x273d89[_0x364d9d]||{},_0x351124=_0x31ecf9[_0x862b99]||{};if(_0x1e94a1['id']==_0x351124['id'])_0x364d9d++,_0x862b99++,_0x5c5c45['push'](_0x1e94a1);else{if(_0x351124['isRemoved']&&_0x1e94a1['isAdded']){const {commonTape:_0x3c7b0b,iEnd:_0x9e1a58,jEnd:_0xe79dc5}=this['_threeWayMerge'](_0x273d89,_0x364d9d,_0x31ecf9,_0x862b99);_0x5c5c45=_0x5c5c45['concat'](_0x3c7b0b),_0x364d9d=_0x9e1a58,_0x862b99=_0xe79dc5;}else _0x351124['isRemoved']?(_0x862b99++,_0x5c5c45['push'](_0x351124)):(_0x364d9d++,_0x5c5c45['push'](_0x1e94a1));}}return _0x5c5c45;}['_markSuggestions'](_0x3f54c3,_0x5d5d69){const _0x4e77ce=[];for(let _0x4c2383=0x0;_0x4c2383<_0x3f54c3['length'];_0x4c2383++){for(let _0x5d3d8d=0x0;_0x5d3d8d<_0x3f54c3[_0x4c2383]['markersStart']['length'];_0x5d3d8d++){const _0x2e4c85=_0x3f54c3[_0x4c2383]['markersStart'][_0x5d3d8d];if(!_0x5d5d69['has'](_0x2e4c85))continue;const {group:_0x4c5051,type:_0x36fdbd,authorId:_0x7572cd}=_0x11d2cc(_0x2e4c85);'revision-suggestion'!=_0x4c5051||'insertion'!=_0x36fdbd&&'deletion'!=_0x36fdbd||(_0x4e77ce['unshift']({'type':_0x36fdbd,'name':_0x2e4c85,'userId':_0x7572cd}),_0x3f54c3[_0x4c2383]['markersStart']['splice'](_0x5d3d8d,0x1),_0x5d3d8d--);}_0x2ad695(_0x3f54c3[_0x4c2383]);for(let _0x4693f2=0x0;_0x4693f2<_0x3f54c3[_0x4c2383]['markersEnd']['length'];_0x4693f2++){const _0x4b9f08=_0x3f54c3[_0x4c2383]['markersEnd'][_0x4693f2];if(!_0x5d5d69['has'](_0x4b9f08))continue;const {group:_0x3fd6b8,type:_0x3f0e15}=_0x11d2cc(_0x4b9f08);if('revision-suggestion'!=_0x3fd6b8||'insertion'!=_0x3f0e15&&'deletion'!=_0x3f0e15)continue;_0x3f54c3[_0x4c2383]['markersEnd']['splice'](_0x4693f2,0x1),_0x4693f2--;const _0x39393b=_0x4e77ce['findIndex'](_0x4dc4e5=>_0x4dc4e5['name']==_0x4b9f08);_0x39393b>-0x1&&_0x4e77ce['splice'](_0x39393b,0x1);}}function _0x11d2cc(_0xfb8c23){const _0x334cb5=_0xfb8c23['split'](':');return{'group':_0x334cb5[0x0],'type':_0x334cb5[0x1],'subType':_0x334cb5['length']>=0x5?_0x334cb5[0x2]:null,'id':_0x334cb5['length']<0x5?_0x334cb5[0x2]:_0x334cb5[0x3],'authorId':_0x334cb5['length']<0x5?_0x334cb5[0x3]:_0x334cb5[0x4],'markerCount':0x6==_0x334cb5['length']?_0x334cb5[0x5]:null};}function _0x2ad695(_0x1420b6){for(let _0x9f4381=0x0;_0x9f4381<_0x4e77ce['length'];_0x9f4381++){if(_0x1420b6['isAdded']&&'insertion'==_0x4e77ce[_0x9f4381]['type'])return _0x1420b6['isAddSuggestion']=_0x4e77ce[_0x9f4381],void delete _0x1420b6['isAdded'];if(!_0x1420b6['isAdded']&&!_0x1420b6['isRemoved']&&'deletion'==_0x4e77ce[_0x9f4381]['type'])return void(_0x1420b6['isRemoveSuggestion']=_0x4e77ce[_0x9f4381]);}}}['_setDistance'](_0x16696b,_0x52facd){let _0x4779a1=0x0,_0x5ccc72=!0x1;const _0x3ac9a4=new Map();for(const _0x2052fe of _0x16696b)_0x2052fe[_0x52facd]?_0x5ccc72&&(_0x4779a1++,_0x5ccc72=!0x1):(_0x4779a1++,_0x5ccc72=!0x0),_0x3ac9a4['set'](_0x2052fe['id'],_0x4779a1);for(let _0x4bafa3=0x0;_0x4bafa3<_0x16696b['length'];_0x4bafa3++){if('isRemoved'==_0x52facd&&_0x16696b[_0x4bafa3]['isAdded']||'isAdded'==_0x52facd&&_0x16696b[_0x4bafa3]['isRemoved'])continue;if('text'==_0x16696b[_0x4bafa3]['type']){_0x16696b[_0x4bafa3]['distance']=0x0;continue;}const _0x5d4a09=_0x3ac9a4['get'](_0x16696b[_0x4bafa3]['pairId']),_0x64999f=_0x3ac9a4['get'](_0x16696b[_0x4bafa3]['id']);_0x16696b[_0x4bafa3]['distance']=_0x5d4a09-_0x64999f;}}['_getRevisionsRange'](_0x4d3ec9,_0x3bc79a,_0x553f62=!0x1){const _0x45858a=[];let _0x3e7754=this['repository']['getIndex'](_0x4d3ec9),_0x48bdd4=this['repository']['getIndex'](_0x3bc79a);for(-0x1==_0x48bdd4&&(_0x48bdd4=this['repository']['_revisions']['length'],_0x553f62=!0x1);_0x3e7754<_0x48bdd4;)_0x45858a['push'](this['repository']['getRevision'](_0x3e7754)),_0x3e7754++;return _0x553f62&&_0x45858a['push'](this['repository']['getRevision'](_0x3e7754)),_0x45858a;}['_threeWayMerge'](_0x650ddc,_0x42cfa9,_0x1df163,_0x3f4d00){const _0x29479f=this['editor']['model']['schema'];let _0xa98093=_0x42cfa9;for(;_0x650ddc[_0xa98093]&&_0x650ddc[_0xa98093]['isAdded'];)_0xa98093++;let _0x584033=_0x3f4d00;for(;_0x1df163[_0x584033]&&_0x1df163[_0x584033]['isRemoved'];)_0x584033++;_0x34b78f(_0x650ddc,_0x42cfa9,_0xa98093),_0x34b78f(_0x1df163,_0x3f4d00,_0x584033);const _0x236f3e=_0x1df163['slice'](_0x3f4d00,_0x584033)['concat'](_0x650ddc['slice'](_0x42cfa9,_0xa98093));return _0x236f3e['sort']((_0x17aad8,_0xcb3afb)=>_0x17aad8['side']!=_0xcb3afb['side']?_0x17aad8['side']-_0xcb3afb['side']:_0x17aad8['level']!=_0xcb3afb['level']?_0x17aad8['level']-_0xcb3afb['level']:_0x17aad8['distance']!=_0xcb3afb['distance']?_0xcb3afb['distance']-_0x17aad8['distance']:!!_0x17aad8['isAdded']!=!!_0xcb3afb['isAdded']?-0x1==_0x17aad8['side']||0x0==_0x17aad8['side']?_0x17aad8['isAdded']?-0x1:0x1:_0x17aad8['isAdded']?0x1:-0x1:_0x17aad8['index']-_0xcb3afb['index']),{'commonTape':_0x236f3e,'iEnd':_0xa98093,'jEnd':_0x584033};function _0x34b78f(_0xb68247,_0x52cb7a,_0x456ba1){let _0x5abd88=-0x1,_0x4c9d52=Number['POSITIVE_INFINITY'],_0x3082a4=!0x0;for(let _0x22b9dd=_0x52cb7a;_0x22b9dd<_0x456ba1;_0x22b9dd++)if(_0x29479f['isInline'](_0xb68247[_0x22b9dd]['item'])||(_0x3082a4=!0x1),_0xb68247[_0x22b9dd]['item']['startIndex']<_0x52cb7a&&(_0x5abd88=_0x22b9dd),_0xb68247[_0x22b9dd]['item']['endIndex']>=_0x456ba1){_0x4c9d52=_0x22b9dd;break;}_0x3082a4&&(_0x5abd88=_0x456ba1-0x1);for(let _0x56a163=_0x52cb7a;_0x56a163<_0x456ba1;_0x56a163++)_0xb68247[_0x56a163]['side']=_0x56a163<=_0x5abd88?-0x1:_0x56a163<_0x4c9d52?0x0:0x1,_0xb68247[_0x56a163]['index']=_0x56a163;let _0x46f81=0x0;for(let _0x4adb25=_0x52cb7a;_0x4adb25<=_0x5abd88;_0x4adb25++)0x0==_0xb68247[_0x4adb25]['distance']?_0xb68247[_0x4adb25]['level']=_0x46f81:(_0x46f81++,_0xb68247[_0x4adb25]['level']=_0x46f81,_0x46f81++);for(let _0x41de98=_0x52cb7a;_0x41de98<_0x456ba1;_0x41de98++)0x0==_0xb68247[_0x41de98]['side']&&(_0xb68247[_0x41de98]['level']=_0x46f81);_0x46f81=0x0;for(let _0x524287=_0x456ba1-0x1;_0x524287>=_0x4c9d52;_0x524287--)0x0==_0xb68247[_0x524287]['distance']?_0xb68247[_0x524287]['level']=_0x46f81:(_0x46f81--,_0xb68247[_0x524287]['level']=_0x46f81,_0x46f81--);}}['_fixObsoleteTags'](_0x8d4b8d){const _0x56657e=new Map(),_0x5bfa36=this['editor']['model']['schema'];for(let _0x1333f7=0x1;_0x1333f7<_0x8d4b8d['length'];_0x1333f7++){let _0x5a6106,_0x1b86cf,_0x47e2cb;const _0x35bf07=_0x8d4b8d[_0x1333f7],_0x1740b3=_0x8d4b8d[_0x1333f7-0x1];if('text'==_0x35bf07['type'])continue;if(_0x35bf07['type']!=_0x1740b3['type'])continue;if(!_0x5bfa36['isBlock'](_0x1740b3['item'])||_0x5bfa36['isLimit'](_0x1740b3['item']))continue;if(!_0x5bfa36['isBlock'](_0x35bf07['item'])||_0x5bfa36['isLimit'](_0x35bf07['item']))continue;if((_0x8d4b8d[_0x1333f7]['isAdded']||_0x8d4b8d[_0x1333f7]['isAddSuggestion'])&&_0x8d4b8d[_0x1333f7-0x1]['isRemoved'])_0x5a6106=_0x8d4b8d[_0x1333f7],_0x1b86cf=_0x8d4b8d[_0x1333f7-0x1],_0x47e2cb=_0x1333f7-0x1;else{if(!_0x8d4b8d[_0x1333f7]['isRemoved']||!_0x8d4b8d[_0x1333f7-0x1]['isAdded']&&!_0x8d4b8d[_0x1333f7-0x1]['isAddSuggestion'])continue;_0x5a6106=_0x8d4b8d[_0x1333f7-0x1],_0x1b86cf=_0x8d4b8d[_0x1333f7],_0x47e2cb=_0x1333f7;}const _0x3f8377=_0x5a6106['level']==_0x1b86cf['level'],_0x2d4770=Math['abs'](_0x5a6106['level'])<Math['abs'](_0x1b86cf['level'])&&0x0==_0x1b86cf['distance'];(_0x3f8377||_0x2d4770)&&(_0x56657e['set'](_0x1b86cf['id'],_0x5a6106['id']),_0x8d4b8d['splice'](_0x47e2cb,0x1),_0x1333f7--,_0x5a6106['isAdded']=!0x1);}for(let _0x1bc269=0x0;_0x1bc269<_0x8d4b8d['length'];_0x1bc269++)_0x56657e['has'](_0x8d4b8d[_0x1bc269]['pairId'])&&(_0x8d4b8d[_0x1bc269]['pairId']=_0x56657e['get'](_0x8d4b8d[_0x1bc269]['pairId']));}['_removeMissingPairs'](_0x46a434){const _0x5ab23c=new Set(_0x46a434['map'](_0x2f755f=>_0x2f755f['id']));for(let _0x51dcdb=0x0;_0x51dcdb<_0x46a434['length'];_0x51dcdb++)_0x5ab23c['has'](_0x46a434[_0x51dcdb]['pairId'])||0x0==_0x46a434[_0x51dcdb]['distance']||(_0x46a434[_0x51dcdb]['isIncorrect']=!0x0);return _0x46a434['filter'](_0x466aae=>!_0x466aae['isIncorrect']);}['_markMismatchedRemovedTags'](_0x327d34){const _0x44e7ff=new Set();for(let _0x33fa74=0x0;_0x33fa74<_0x327d34['length'];_0x33fa74++){if(_0x44e7ff['has'](_0x327d34[_0x33fa74]['id'])&&_0x327d34[_0x33fa74]['isRemoved']&&(_0x327d34[_0x33fa74]['isIncorrect']=!0x0),_0x327d34[_0x33fa74]['isIncorrect'])continue;if(0x0==_0x327d34[_0x33fa74]['distance'])continue;if('elementStart'!=_0x327d34[_0x33fa74]['type'])continue;if(null==_0x327d34[_0x33fa74]['pairId'])continue;let _0x4ba817=_0x33fa74+0x1,_0x178880=0x0;for(;_0x327d34[_0x4ba817]['id']!=_0x327d34[_0x33fa74]['pairId'];)'elementStart'==_0x327d34[_0x4ba817]['type']?_0x178880++:'elementEnd'==_0x327d34[_0x4ba817]['type']&&_0x178880--,_0x4ba817++;if(0x0!=_0x178880){if(_0x327d34[_0x33fa74]['isRemoved'])_0x327d34[_0x33fa74]['isIncorrect']=!0x0;else{for(;_0x4ba817!=_0x33fa74;)_0x327d34[_0x4ba817]['isRemoved']&&0x0!=_0x327d34[_0x4ba817]['distance']&&(_0x327d34[_0x4ba817]['isIncorrect']=!0x0,_0x44e7ff['add'](_0x327d34[_0x4ba817]['pairId'])),_0x4ba817--;}}}return _0x327d34['filter'](_0x16a718=>!_0x16a718['isIncorrect']);}['_removeUnsupportedChanges'](_0xf4e03c){const _0x421164=this['editor']['model']['schema'];for(let _0x31e9f0=0x0;_0x31e9f0<_0xf4e03c['length'];_0x31e9f0++){if(!(_0xf4e03c[_0x31e9f0]['isAdded']||_0xf4e03c[_0x31e9f0]['isAddSuggestion']||_0xf4e03c[_0x31e9f0]['isRemoved']||_0xf4e03c[_0x31e9f0]['isRemoveSuggestion']))continue;if(0x0==_0xf4e03c[_0x31e9f0]['distance'])continue;const _0x44c832=_0xf4e03c[_0x31e9f0]['item'];_0x421164['isBlock'](_0x44c832)||_0x421164['isLimit'](_0x44c832)||(_0xf4e03c[_0x31e9f0]['isAdded']&&delete _0xf4e03c[_0x31e9f0]['isAdded'],_0xf4e03c[_0x31e9f0]['isAddSuggestion']&&delete _0xf4e03c[_0x31e9f0]['isAddSuggestion'],_0xf4e03c[_0x31e9f0]['isRemoveSuggestion']&&delete _0xf4e03c[_0x31e9f0]['isRemoveSuggestion'],_0xf4e03c[_0x31e9f0]['isRemoved']&&(_0xf4e03c[_0x31e9f0]['isIncorrect']=!0x0));}return _0xf4e03c['filter'](_0x3faf1d=>!_0x3faf1d['isIncorrect']);}['_makeModelFromTape'](_0x5e3ae6,_0x37c140,_0xd74d7e){const _0xf7b3f6=new mt(),_0x4b9b31=[],_0x48e810=new Map(),_0x572386=this['editor']['model'],_0xdf311b=_0x572386['schema'],_0x4c8df4=[_0xf7b3f6],_0x4be6ef={},_0x2e25a5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x13ac8a=null;const _0x450000=[0x0];for(let _0x55dd33=0x0;_0x55dd33<_0x5e3ae6['length'];_0x55dd33++)if('elementStart'===_0x5e3ae6[_0x55dd33]['type']){_0x5e3ae6[_0x55dd33]['previousPosition']=_0x572386['createPositionFromPath'](_0xf7b3f6,_0x450000);const _0x59147d=new ft(_0x5e3ae6[_0x55dd33]['item']['name'],_0x5e3ae6[_0x55dd33]['item']['getAttributes']());_0x4c8df4[0x0]['_appendChild'](_0x59147d),_0x450000['push'](0x0),_0x4c8df4['unshift'](_0x59147d),_0x5e3ae6[_0x55dd33]['nextPosition']=_0x572386['createPositionFromPath'](_0xf7b3f6,_0x450000);}else'elementEnd'===_0x5e3ae6[_0x55dd33]['type']?(_0x4c8df4['shift'](),_0x5e3ae6[_0x55dd33]['previousPosition']=_0x572386['createPositionFromPath'](_0xf7b3f6,_0x450000),_0x450000['pop'](),_0x450000[_0x450000['length']-0x1]++,_0x5e3ae6[_0x55dd33]['nextPosition']=_0x572386['createPositionFromPath'](_0xf7b3f6,_0x450000)):(_0x5e3ae6[_0x55dd33]['previousPosition']=_0x572386['createPositionFromPath'](_0xf7b3f6,_0x450000),_0x13ac8a?_0x13ac8a['_data']+=_0x5e3ae6[_0x55dd33]['item']['data']:_0x13ac8a=new wt(_0x5e3ae6[_0x55dd33]['item']['data'],_0x5e3ae6[_0x55dd33]['item']['getAttributes']()),_0x5e3ae6[_0x55dd33+0x1]&&'text'===_0x5e3ae6[_0x55dd33+0x1]['type']&&_0x57e5d2(_0x13ac8a,_0x5e3ae6[_0x55dd33+0x1]['item'])||(_0x4c8df4[0x0]['_appendChild'](_0x13ac8a),_0x13ac8a=null),_0x450000[_0x450000['length']-0x1]+=_0x5e3ae6[_0x55dd33]['item']['offsetSize'],_0x5e3ae6[_0x55dd33]['nextPosition']=_0x572386['createPositionFromPath'](_0xf7b3f6,_0x450000));for(let _0x4dceaf=0x0;_0x4dceaf<_0x5e3ae6['length'];_0x4dceaf++){const _0x36e17d=_0x5e3ae6[_0x4dceaf]['previousPosition'],_0x1c52d0=_0x5e3ae6[_0x4dceaf]['nextPosition'];for(const _0x9676eb of _0x5e3ae6[_0x4dceaf]['markersStart'])_0x48e810['set'](_0x9676eb,{'start':_0x36e17d,'end':null});_0x217e2a('isRemoveSuggestion',_0x4dceaf,_0x36e17d,_0x1c52d0),_0x217e2a('isAddSuggestion',_0x4dceaf,_0x36e17d,_0x1c52d0),_0x217e2a('isRemoved',_0x4dceaf,_0x36e17d,_0x1c52d0),_0x217e2a('isAdded',_0x4dceaf,_0x36e17d,_0x1c52d0);for(const _0x395823 of _0x5e3ae6[_0x4dceaf]['markersEnd']){_0x48e810['get'](_0x395823)['end']=_0x1c52d0;}}for(const [_0x27c861,_0x3fa752]of _0x48e810){const _0x21ebe5=this['editor']['model']['createRange'](_0x3fa752['start'],_0x3fa752['end']);_0xf7b3f6['markers']['set'](_0x27c861,_0x21ebe5);}return _0x4b9b31['sort']((_0x22d45b,_0x3e4e1e)=>{const _0x5c2b30=_0xf7b3f6['markers']['get']('revision:'+_0x22d45b['id']),_0x57769e=_0xf7b3f6['markers']['get']('revision:'+_0x3e4e1e['id']);return _0x5c2b30['start']['isBefore'](_0x57769e['start'])?-0x1:_0x5c2b30['start']['isAfter'](_0x57769e['start'])?0x1:_0x5c2b30['end']['isBefore'](_0x57769e['end'])?-0x1:_0x5c2b30['end']['isAfter'](_0x57769e['end'])?0x1:'add'===_0x22d45b['type']?-0x1:0x1;}),{'root':_0xf7b3f6,'changes':_0x4b9b31};function _0x217e2a(_0x3fd0fc,_0x3a48ad,_0x1d3bc3,_0x2ac543){const _0x4853d9=!!_0x5e3ae6[_0x3a48ad][_0x3fd0fc],_0x33db51=_0x4853d9?_0x5e3ae6[_0x3a48ad][_0x3fd0fc]['userId']:null,_0x4fe0b4=_0x3a48ad===_0x5e3ae6['length']-0x1,_0x236018=_0x2e25a5[_0x3fd0fc][0x0],_0x4f0e1c=_0xdf311b['isObject'](_0x5e3ae6[_0x3a48ad]['item']);!_0x4be6ef[_0x3fd0fc]&&_0x4853d9?_0x4be6ef[_0x3fd0fc]={'start':_0x1d3bc3,'tapeItem':_0x5e3ae6[_0x3a48ad],'userId':_0x33db51,'type':_0x3fd0fc}:_0x4be6ef[_0x3fd0fc]&&!_0x4853d9?(_0x4be6ef[_0x3fd0fc]['end']=_0x1d3bc3,_0x51fece(_0x4be6ef[_0x3fd0fc]),_0x4be6ef[_0x3fd0fc]=null):_0x4be6ef[_0x3fd0fc]&&_0x4853d9&&_0x4be6ef[_0x3fd0fc]['userId']!==_0x33db51&&(_0x4be6ef[_0x3fd0fc]['end']=_0x1d3bc3,_0x236018&&_0x236018['userId']===_0x4be6ef[_0x3fd0fc]['userId']||_0x51fece(_0x4be6ef[_0x3fd0fc]),_0x4be6ef[_0x3fd0fc]={'start':_0x1d3bc3,'tapeItem':_0x5e3ae6[_0x3a48ad],'userId':_0x33db51,'type':_0x3fd0fc}),_0x4be6ef[_0x3fd0fc]&&_0x4f0e1c&&('elementStart'!==_0x5e3ae6[_0x3a48ad]['type']||_0x236018&&_0x236018['userId']===_0x33db51||_0x2e25a5[_0x3fd0fc]['unshift']({'userId':_0x33db51,'object':_0x5e3ae6[_0x3a48ad]['item'],'change':_0x4be6ef[_0x3fd0fc]}),'elementEnd'===_0x5e3ae6[_0x3a48ad]['type']&&_0x236018&&_0x236018['object']===_0x5e3ae6[_0x3a48ad]['item']&&(_0x2e25a5[_0x3fd0fc]['shift'](),_0x4be6ef[_0x3fd0fc]=_0x236018['change'])),_0x4be6ef[_0x3fd0fc]&&_0x4fe0b4&&(_0x4be6ef[_0x3fd0fc]['end']=_0x2ac543,_0x51fece(_0x4be6ef[_0x3fd0fc]),_0x4be6ef[_0x3fd0fc]=null);}function _0x51fece({start:_0x21df53,end:_0x2ded10,tapeItem:_0x17a260,userId:_0xbd737f,type:_0xe422b5}){const _0x36336c=_0x17a260['item'],_0x2bdbee=_0x572386['schema']['isBlock'](_0x36336c)&&!_0x572386['schema']['isLimit'](_0x36336c),_0x234726=_0x21df53['nodeAfter']==_0x2ded10['parent']&&_0x2ded10['isAtStart'];if(_0x2bdbee&&_0x234726)return;const _0x44955a=_0x572386['createRange'](_0x21df53,_0x2ded10),_0x228a44=_0x37c140['get'](_0xbd737f),_0x5f1060=new r({'author':_0x228a44,'type':'isAdded'==_0xe422b5||'isAddSuggestion'==_0xe422b5?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xe422b5||'isRemoveSuggestion'==_0xe422b5},'createdAt':new Date(),'rootName':_0xd74d7e});_0x4b9b31['push'](_0x5f1060),_0xf7b3f6['markers']['set']('revision:'+_0x5f1060['id'],_0x44955a);}function _0x57e5d2(_0x43662d,_0x3043b4){const _0x18bce1=_0x43662d['getAttributes'](),_0x26ef7a=_0x3043b4['getAttributes']();for(const _0x4a2689 of _0x18bce1){if(_0x4a2689[0x1]!==_0x3043b4['getAttribute'](_0x4a2689[0x0]))return!0x1;_0x26ef7a['next']();}return _0x26ef7a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x21b6d0=>{const _0x32d065=_0x21b6d0['markerName']['split'](':')[0x1],_0x3257f5=this['_getChangeFromId'](_0x32d065);if(!_0x3257f5)return null;const _0x3add5b='add'==_0x3257f5['type']?'insertion':'deletion',_0x467713=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3add5b];return _0x3257f5['data']['isSuggestion']&&_0x467713['push']('ck-suggestion-marker-'+_0x3add5b+'-new'),this['activeChange']==_0x3257f5&&_0x467713['push']('ck-suggestion-marker--active'),{'classes':_0x467713,'attributes':{'data-change-id':_0x32d065}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e5131=>{_0x5e5131['on']('element:pre',(_0x15e10d,_0x23a5d9,_0x41025b)=>{const _0x167582=_0x23a5d9['viewItem']['getChild'](0x0);if(!_0x167582||!_0x167582['is']('element','code'))return;if(!_0x41025b['consumable']['consume'](_0x167582,{'attributes':['vid_start','vid_end']}))return;const _0x28b769=_0x23a5d9['modelRange']['start']['nodeAfter'];_0x41025b['writer']['setAttribute']('vid_start',_0x167582['getAttribute']('vid_start'),_0x28b769),_0x41025b['writer']['setAttribute']('vid_end',_0x167582['getAttribute']('vid_end'),_0x28b769);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x114a2b=>{_0x114a2b['on']('element',(_0x2bfcc6,_0x539e85,_0x58c515)=>{if(!_0x58c515['consumable']['consume'](_0x539e85['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x539e85['modelRange']['isCollapsed'])return;const _0x4cc59c=_0x539e85['modelRange']['start']['nodeAfter'];_0x4cc59c['hasAttribute']('vid_start')||_0x4cc59c['hasAttribute']('vid')||(_0x58c515['writer']['setAttribute']('vid_start',_0x539e85['viewItem']['getAttribute']('vid_start'),_0x4cc59c),_0x58c515['writer']['setAttribute']('vid_end',_0x539e85['viewItem']['getAttribute']('vid_end'),_0x4cc59c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x28948d=>_0x28948d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x54f671,[,_0xf799d9])=>{['vid_start','vid_end','vid']['includes'](_0xf799d9)&&(_0x54f671['return']=!0x0,_0x54f671['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2d7f88=>{_0x2d7f88['on']('attribute:vid',(_0x2b8526,_0x48c26c,_0xba1931)=>{if('\x20'!=_0x48c26c['item']['data']||_0x48c26c['item']['parent']['maxOffset']>0x1)return;if(!_0xba1931['consumable']['consume'](_0x48c26c['item'],_0x2b8526['name']))return;const _0x23ef46=_0xba1931['writer'],_0xb03b50=_0xba1931['mapper']['toViewRange'](_0x48c26c['range']);_0x23ef46['wrap'](_0xb03b50,_0x23ef46['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x35b0a2){const _0x4614a6=_0x35b0a2['plugins']['get']('RevisionViewer');return(_0x204293,_0x30af12,_0x359382)=>{const _0x5b2282=_0x30af12['markerName']['split'](':')[0x1],_0xda3a3f=_0x4614a6['_getChangeFromId'](_0x5b2282);if(!_0xda3a3f)return null;const _0x130d71='add'==_0xda3a3f['type']?'split':'merge';if(!_0x359382['consumable']['test'](_0x30af12['markerRange'],_0x204293['name']))return;const _0x194c86=_0x30af12['markerRange']['getWalker'](),_0xef418a=_0x30af12['markerRange']['start'],_0x824389=_0x35b0a2['model']['schema'];let _0x5c3ad8=null,_0x275918=null,_0x52d617=!0x1,_0x2474b2=!0x1;for(const _0x582c62 of _0x194c86){const _0x525485=_0x582c62['item'];_0x52d617=_0x52d617||_0x824389['isContent'](_0x525485);const _0x17aa14=_0x359382['mapper']['toViewElement'](_0x525485);if(_0x17aa14&&_0x17aa14['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x582c62['type']&&(_0x824389['isBlock'](_0x525485)&&!_0x824389['isLimit'](_0x525485)&&(_0x525485['nextSibling']||_0xef418a['isAtEnd']?_0x5c3ad8&&_0x5c3ad8['parent']==_0x525485||(_0x5c3ad8=_0x525485,_0x4cf610(_0x582c62['previousPosition']),_0x2474b2=!0x0):_0x275918=_0x275918||_0x582c62['previousPosition']));}function _0x4cf610(_0x44f655){const _0xe61b4=_0x359382['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x130d71}),_0x5df320=_0x359382['mapper']['toViewPosition'](_0x44f655);_0xda3a3f['data']['isSuggestion']&&_0x359382['writer']['addClass']('ck-suggestion-marker-'+_0x130d71+'-new',_0xe61b4),_0x4614a6['activeChange']==_0xda3a3f&&_0x359382['writer']['addClass']('ck-suggestion-marker--active',_0xe61b4),_0x359382['writer']['insert'](_0x5df320,_0xe61b4),_0x359382['mapper']['bindElementToMarker'](_0xe61b4,_0x30af12['markerName']);}_0x52d617||_0x2474b2||!_0x275918||_0x4cf610(_0x275918);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x46511f,_0x2ebfac,_0x3765ff)=>{const _0xbdf84f=_0x3765ff['mapper']['markerNameToElements'](_0x2ebfac['markerName']);if(_0xbdf84f){for(const _0x598a6d of _0xbdf84f)(_0x598a6d['hasClass']('ck-suggestion-marker-split')||_0x598a6d['hasClass']('ck-suggestion-marker-merge'))&&(_0x3765ff['mapper']['unbindElementFromMarkerName'](_0x598a6d,_0x2ebfac['markerName']),_0x3765ff['writer']['remove'](_0x598a6d));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x43ecb4,_0x35dc19,_0x585be5)=>{const _0x2ce1ed=_0x35dc19['markerName']['split'](':')[0x1],_0x3aae59=this['_getChangeFromId'](_0x2ce1ed);if(!_0x3aae59)return null;const _0x4674ec='add'==_0x3aae59['type']?'split':'merge';if(_0x585be5['consumable']['test'](_0x35dc19['markerRange'],_0x43ecb4['name']))for(const _0x2adb13 of _0x35dc19['markerRange']['getItems']()){if(!_0x2adb13['is']('element','softBreak'))continue;const _0x5bd76a=_0x585be5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4674ec}),_0x124492=_0x585be5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2adb13));_0x3aae59['data']['isSuggestion']&&_0x585be5['writer']['addClass']('ck-suggestion-marker-'+_0x4674ec+'-new',_0x5bd76a),this['activeChange']==_0x3aae59&&_0x585be5['writer']['addClass']('ck-suggestion-marker--active',_0x5bd76a),_0x585be5['writer']['insert'](_0x124492,_0x5bd76a),_0x585be5['mapper']['bindElementToMarker'](_0x5bd76a,_0x35dc19['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x32e937=>{for(const _0x356c48 of this['editor']['model']['document']['getRootNames']()){const _0x5b3a59=this['editor']['model']['document']['getRoot'](_0x356c48),_0x3ff8a3=this['editor']['editing']['view']['document']['getRoot'](_0x356c48);if(_0x3ff8a3){const _0xee80c=_0x5b3a59['getAttribute']('revisionHistoryAttachChange');if(_0x32e937['removeAttribute']('data-change-id',_0x3ff8a3),_0x32e937['removeClass']('ck-revision-history-root-add',_0x3ff8a3),_0x32e937['removeClass']('ck-revision-history-root-remove',_0x3ff8a3),_0x32e937['removeClass']('ck-revision-history-root--active',_0x3ff8a3),_0xee80c){const _0x437784=this['_getChangeFromId'](_0xee80c);if(!_0x437784)return null;_0x32e937['setAttribute']('data-change-id',_0xee80c,_0x3ff8a3),_0x32e937['addClass']('ck-revision-history-root-'+_0x437784['type'],_0x3ff8a3),this['activeChange']==_0x437784&&_0x32e937['addClass']('ck-revision-history-root--active',_0x3ff8a3);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2eff15=>'revision-comment:'+_0x2eff15,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xff099a=>'revision-suggestion:'+_0xff099a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3f122b=>({'name':'suggestion:'+_0x3f122b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x40c529=>{const _0x16e0db=_0x40c529['markerName']['split'](':')[0x1];return'insertion'!=_0x16e0db&&'deletion'!=_0x16e0db?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x16e0db]};}}),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',(_0x26b549,_0x407f17,_0x204054)=>{const _0xb6a118=_0x204054['mapper']['markerNameToElements'](_0x407f17['markerName']);if(_0xb6a118){for(const _0x16ef23 of _0xb6a118)_0x16ef23['is']('uiElement')&&(_0x204054['mapper']['unbindElementFromMarkerName'](_0x16ef23,_0x407f17['markerName']),_0x204054['writer']['remove'](_0x16ef23));}},{'priority':'high'});}['_getChangeFromId'](_0x4dd0a4){return this['_changeIdToChange']['get'](_0x4dd0a4);}['_getViewForChange'](_0x225d0e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x225d0e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x26504f,_0xfd8909,_0x3080e9,_0x441ae3)=>{_0x441ae3&&this['_balloon']['remove'](_0x441ae3),_0x3080e9&&(this['_balloon']['add']({'view':_0x3080e9,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x511aeb=this['editor']['editing'],_0x408dbf=this['_getChangeFromId'](_0x3080e9['changeId']);let _0xd186e3;if(_0x408dbf['data']['isOnRoot']){const _0x3d1c3d=_0x511aeb['view']['getDomRoot'](_0x408dbf['rootName']);_0xd186e3=Array['from'](_0x3d1c3d['getClientRects']());}else{const _0x6575b8=this['editor']['model']['markers']['get']('revision:'+_0x3080e9['changeId']);_0xd186e3=Array['from'](_0x511aeb['mapper']['markerNameToElements'](_0x6575b8['name']))['map'](_0x157937=>_0x511aeb['view']['domConverter']['mapViewToDom'](_0x157937))['map'](_0xdbd68f=>Array['from'](_0xdbd68f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xd186e3[0x0];return _0xd186e3['find'](_0x4378d4=>_0x4378d4['top']-0x3<=this['_activeViewTarget']['y']&&_0x4378d4['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4378d4['left']-0x3<=this['_activeViewTarget']['x']&&_0x4378d4['right']+0x3>=this['_activeViewTarget']['x'])||_0xd186e3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1ad5a0,_0x159603,_0x414795,_0x77e0b6)=>{this['activeView']=_0x414795?this['_getViewForChange'](_0x414795):null,this['editor']['model']['change'](()=>{const _0x1d3ee2=this['editor']['editing'];_0x77e0b6&&(_0x77e0b6['data']['isOnRoot']?_0x1d3ee2['view']['change'](_0x38bcd5=>{_0x38bcd5['removeClass']('ck-revision-history-root--active',_0x1d3ee2['view']['document']['getRoot'](_0x77e0b6['rootName']));}):_0x1d3ee2['reconvertMarker']('revision:'+_0x77e0b6['id'])),_0x414795&&(_0x414795['data']['isOnRoot']?_0x1d3ee2['view']['change'](_0x345219=>{_0x345219['addClass']('ck-revision-history-root--active',_0x1d3ee2['view']['document']['getRoot'](_0x414795['rootName']));}):_0x1d3ee2['reconvertMarker']('revision:'+_0x414795['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x10e282,_0xfa6c76)=>{if(this['activeChange'])return;const _0xb967fa=this['_findChangeIdFromDomTarget'](_0xfa6c76['target']),_0x132def=this['_changeIdToChange']['get'](_0xb967fa);_0x132def?(this['_activeViewTarget']={'x':_0xfa6c76['domEvent']['x'],'y':_0xfa6c76['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x132def)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x52518f,_0x57dad6)=>{const _0x43b0bd=this['_findChangeIdFromDomTarget'](_0x57dad6['target']),_0x5ba402=this['_changeIdToChange']['get'](_0x43b0bd);_0x5ba402?(this['_activeViewTarget']={'x':_0x57dad6['domEvent']['x'],'y':_0x57dad6['domEvent']['y']},_0x5ba402===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5ba402):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xa6924){do{const _0x42f836=_0xa6924['getAttribute']('data-change-id');if(_0x42f836)return _0x42f836;_0xa6924=_0xa6924['parent'];}while(_0xa6924);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x31cca8=>{for(const _0x208dd3 of this['editor']['model']['markers'])_0x31cca8['removeMarker'](_0x208dd3);});}}function Z(_0x5da76f,_0x9ca8d){return(_0x3c62f3,_0x32ee92,_0x980f0f)=>{if(!_0x980f0f['consumable']['test'](_0x32ee92['markerRange'],_0x3c62f3['name']))return;const _0x778278=_0x32ee92['markerRange']['getWalker'](),_0x3fecaa=_0x32ee92['markerRange']['start'],_0x273c44=_0x5da76f['model']['schema'];let _0x37f707=null,_0x2889b9=null,_0x1713c6=!0x1,_0x3c0045=!0x1;for(const _0x47f026 of _0x778278){const _0x33f475=_0x47f026['item'];_0x1713c6=_0x1713c6||_0x273c44['isContent'](_0x33f475);const _0x2c0ce0=_0x980f0f['mapper']['toViewElement'](_0x33f475);if(_0x2c0ce0&&_0x2c0ce0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47f026['type']&&(_0x273c44['isBlock'](_0x33f475)&&!_0x273c44['isLimit'](_0x33f475)&&(_0x33f475['nextSibling']||_0x3fecaa['isAtEnd']?_0x37f707&&_0x37f707['parent']==_0x33f475||(_0x37f707=_0x33f475,_0x55e74c(_0x47f026['previousPosition']),_0x3c0045=!0x0):_0x2889b9=_0x2889b9||_0x47f026['previousPosition']));}function _0x55e74c(_0x189831){const _0x45e543=_0x980f0f['mapper']['toViewPosition'](_0x189831),_0x519f01=_0x980f0f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x9ca8d});_0x980f0f['writer']['insert'](_0x45e543,_0x519f01),_0x980f0f['mapper']['bindElementToMarker'](_0x519f01,_0x32ee92['markerName']);}_0x1713c6||_0x3c0045||!_0x2889b9||_0x55e74c(_0x2889b9);};}class pt extends _0x42e9b6{constructor(_0x399175){super(_0x399175);const _0x268f4d=_0x399175['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x268f4d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x268f4d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x859d3=this['editor'],_0x13a627=_0x859d3['plugins']['get'](d),_0x18eff6=_0x13a627['isReady']?_0x13a627['diff']['newRevisionId']:null;_0x859d3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x18eff6);}['refresh'](){const {isReady:_0xa62b5b,isEnabled:_0x519aa5,repository:_0x162b0d,diff:_0x261d2a}=this['editor']['plugins']['get'](d),_0x354acf=_0x261d2a&&_0x162b0d['getLaterVisibleRevision'](_0x261d2a['newRevisionId']);this['isEnabled']=_0xa62b5b&&_0x519aa5&&Boolean(_0x354acf);}}class _t extends _0x42e9b6{['_step'];constructor(_0x42b0f5,{direction:_0x30a8ad}){super(_0x42b0f5);const _0x39af5d=_0x42b0f5['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x30a8ad?0x1:-0x1,this['listenTo'](_0x39af5d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x39af5d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x39af5d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x252cf3=this['editor'],_0x1d5f35=_0x252cf3['plugins']['get'](d),{isNavigationMode:_0x472807,currentChangeNumber:_0x159655}=_0x1d5f35;let _0x3c3488;if(_0x1d5f35['activeChange']=_0x472807?_0x1d5f35['diff']['changes']['get'](_0x159655+this['_step']):_0x1d5f35['diff']['changes']['first'],_0x1d5f35['activeChange']['data']['isOnRoot'])_0x3c3488=_0x252cf3['editing']['view']['getDomRoot'](_0x1d5f35['activeChange']['rootName']);else{const _0x3fb81c=_0x252cf3['model']['markers']['get']('revision:'+_0x1d5f35['activeChange']['id']);_0x3c3488=_0x39988f(_0x252cf3['editing'],_0x3fb81c);}_0x565acb({'target':_0x3c3488,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x454312,currentChangeNumber:_0xba74e4,numberOfChanges:_0x37ac47,isReady:_0x18e0ba,isEnabled:_0x4f05be}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4f05be&&_0x18e0ba&&_0x37ac47)&&(!_0x454312||(0x1===this['_step']?_0xba74e4<_0x37ac47-0x1:_0xba74e4>0x0));}}class ui extends ts{constructor(_0x130c4e){super(_0x130c4e);const _0x39af45=this['bindTemplate'],_0x5dc9fd=new te(_0x130c4e),_0x3a6ce4=new te(_0x130c4e);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',(_0x16e6c9,_0x13652f)=>_0x16e6c9&&_0x13652f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x52aa22,_0x427901,_0x1ca95b,_0x1ccbb9)=>{if(!_0x52aa22)return m(_0x130c4e,'Loading...');if(!_0x1ca95b)return m(_0x130c4e,'No\x20changes');const _0x4f2a84=m(_0x130c4e,'NUMBER_OF_CHANGES',_0x1ca95b);return _0x1ccbb9?m(_0x130c4e,'X_OF_Y_CHANGES',[_0x427901+0x1,_0x1ca95b]):_0x4f2a84;}),_0x5dc9fd['set']({'label':m(_0x130c4e,'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'}),_0x3a6ce4['set']({'label':m(_0x130c4e,'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'}),_0x5dc9fd['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3a6ce4['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5dc9fd['on']('execute',()=>this['fire']('execute','backward')),_0x3a6ce4['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',_0x39af45['if']('_isStatusLabelVisible','ck-hidden',_0x55cbf5=>!_0x55cbf5)]},'children':[{'text':_0x39af45['to']('isNavigationMode',_0xc9ea12=>_0xc9ea12?m(_0x130c4e,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x130c4e,'Total')+':\x20')}]},{'text':_0x39af45['to']('_statusText')}]},new _0x17a7c1(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5dc9fd,_0x3a6ce4]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x1a1ac2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2d821e=this['editor']['editing']['view'];_0x2d821e['change'](_0x426e2a=>{for(const _0x3ae0fb of _0x2d821e['document']['roots'])_0x426e2a['addClass'](le,_0x3ae0fb);});}['hide'](){const _0x2ac40a=this['editor']['editing']['view'];_0x2ac40a['change'](_0x547e4d=>{for(const _0x5653a3 of _0x2ac40a['document']['roots'])_0x547e4d['removeClass'](le,_0x5653a3);});}}class g extends _0x1a1ac2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x621603=this['editor'],_0x364cb1=_0x621603['plugins']['get'](d),_0x3e0629=_0x621603['plugins']['get'](de);_0x621603['ui']['componentFactory']['add']('exitToEditing',_0x5ed651=>{const _0x44df57=new te(_0x5ed651);return _0x44df57['set']({'label':m(_0x5ed651,'Back\x20to\x20editing'),'icon':_0x34e80f['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x44df57,'execute',()=>{_0x621603['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x44df57;}),_0x621603['ui']['componentFactory']['add']('restoreRevision',_0x2a9603=>{const _0x549e12=new te(_0x2a9603);return _0x549e12['set']({'label':m(_0x2a9603,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x549e12['bind']('isEnabled')['to'](_0x621603['commands']['get']('restoreRevision')),this['listenTo'](_0x549e12,'execute',()=>_0x621603['execute']('restoreRevision')),_0x549e12;}),_0x621603['ui']['componentFactory']['add']('changesNavigation',_0x3824f4=>{const _0x293918=new ui(_0x3824f4),_0x3d8ba6=_0x621603['commands']['get']('showPreviousChange'),_0x2e260b=_0x621603['commands']['get']('showNextChange');return _0x293918['bind']('isBackwardNavigationEnabled')['to'](_0x3d8ba6,'isEnabled'),_0x293918['bind']('isForwardNavigationEnabled')['to'](_0x2e260b,'isEnabled'),_0x293918['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x364cb1),this['listenTo'](_0x293918,'execute',(_0x110a4b,_0xfc751f)=>{_0x621603['execute']('forward'===_0xfc751f?'showNextChange':'showPreviousChange');}),_0x293918;}),_0x3e0629['show'](),_0x364cb1['on']('change:isReady',(_0x1e3c02,_0x5014b0,_0x2c7718)=>{_0x2c7718?_0x3e0629['hide']():_0x3e0629['show']();});}}class at extends _0x20b62d{['_resizeObserver']=null;constructor(_0x38c01f,_0x4ed91b){super(_0x38c01f,_0x4ed91b);const _0x3716d1=this['bindTemplate'];this['set']({'label':m(_0x38c01f,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x38c01f,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3716d1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x360bcf=this['fieldView']['element'];this['_tooltipString']=_0x360bcf['scrollWidth']>_0x360bcf['clientWidth']&&_0x360bcf['value']||'';}}class ri extends ts{constructor(_0x4ae08a,_0x1432d0,_0x109615){super(_0x4ae08a);const _0x20cd28=new _0x353315();_0x20cd28['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 _0x308d6c=['ck','ck-revision-history-sidebar__revision-author'];_0x109615&&_0x308d6c['push']('ck-revision-history-sidebar__revision-author_creator');const _0xe72036=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4ae08a,_0x109615?'Revision\x20creator':'Revision\x20author')},'children':[_0x20cd28,_0x1432d0['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x308d6c},'children':_0xe72036});}}function oi(_0x15aab7,_0x233a08){const _0x7f13f7=_0x15aab7['bindTemplate'],_0x4502bd=_0x15aab7['locale'],_0x49a3d8=_0x473e03(_0x4502bd);_0x49a3d8['panelPosition']='sw';const _0x3936c2=function(_0xdc4906,_0x4410bf){const _0x236d3a=function(_0x15de31,_0x437be8){const _0x5a044e=_0x15de31['locale'],_0x11a424={'Compare\x20against\x20selected':m(_0x5a044e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5a044e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5a044e,'Restore\x20this\x20revision')};return _0x437be8['map'](_0x1aa7d8=>{const _0x1a939c=_0x11a424[_0x1aa7d8['name']];return _0x1a939c&&_0x1a939c!==_0x1aa7d8['name']&&(_0x1aa7d8['name']=_0x1a939c),_0x1aa7d8;});}(_0xdc4906,_0x4410bf),_0x238f6e=new _0x304643();for(const _0x1c97ff of _0x236d3a){const _0x118b62={'type':'button','model':new _0x4ea04a({'label':_0x1c97ff['name'],'class':_0x1c97ff['class'],'withText':!0x0,'role':'menuitem','_action':_0x1c97ff['action']})};_0x118b62['model']['bind']('isEnabled')['to'](_0xdc4906,'isActionsDropdownOpen',_0x1c494d=>'function'!=typeof _0x1c97ff['isEnabled']||(!_0x1c494d||_0x1c97ff['isEnabled'](_0xdc4906))),_0x238f6e['add'](_0x118b62);}return _0x238f6e;}(_0x15aab7,_0x233a08);return _0x15aab7['bind']('isActionsDropdownOpen')['to'](_0x49a3d8,'isOpen'),_0x49a3d8['buttonView']['set']({'label':m(_0x4502bd,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x34e80f['threeVerticalDots']}),_0x49a3d8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x7f13f7['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x7f13f7['to'](_0x24ff30=>_0x24ff30['stopPropagation']())}}),_0x49a3d8['on']('execute',_0x350bcf=>{_0x15aab7['isReady']&&'function'==typeof _0x350bcf['source']['_action']&&_0x350bcf['source']['_action'](_0x15aab7);}),to(_0x49a3d8,_0x3936c2,{'role':'menu'}),_0x49a3d8['listenTo'](_0x15aab7,'change:isActionsDropdownOpen',(_0x27b7f3,_0x125470,_0x30be81)=>{if(_0x30be81)for(const _0xe51a06 of _0x49a3d8['listView']['items']){const _0x1c9dd0=_0xe51a06['children']['first'],_0x53ce6e=_0x233a08['find'](_0x32bd35=>_0x32bd35['action']===_0x1c9dd0['_action'])['isVisible'];_0xe51a06['isVisible']=void 0x0===_0x53ce6e||_0x53ce6e(_0x15aab7);}}),_0x49a3d8;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1cac47,_0x25522f,_0x9b6bd3,_0x154b3c){super(_0x1cac47);const _0x4dc7e4=this['bindTemplate'],_0x893048=function(_0xa2c73d,_0x52a0d5){const _0x22ce6f=Array['from'](_0x52a0d5['authors'])['filter'](_0x37eca5=>_0x37eca5!=_0x52a0d5['creator']);return _0x52a0d5['creator']&&_0x22ce6f['unshift'](_0x52a0d5['creator']),_0x22ce6f['map'](_0x31e0dc=>new ri(_0xa2c73d,_0x31e0dc,_0x31e0dc==_0x52a0d5['creator']));}(_0x1cac47,_0x25522f);this['id']=_0x25522f['id'],this['_revision']=_0x25522f,this['_requireRevisionName']=_0x154b3c,this['bind']('name','createdAt')['to'](_0x25522f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x26a46e=>{return _0x52e10c=_0x1cac47['uiLanguage'],(_0x305cc6=_0x26a46e)['toLocaleDateString'](_0x52e10c,{'month':'long','day':'numeric'})+',\x20'+_0x305cc6['toLocaleTimeString'](_0x52e10c,{'hour':'numeric','minute':'numeric'});var _0x52e10c,_0x305cc6;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x1cac47,_0x32fa1d),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x120547=>_0x120547||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xa9b010,_0x37ac72)=>_0xa9b010&&_0x37ac72),this['revisionActionsView']=_0x9b6bd3&&_0x9b6bd3['length']?oi(this,_0x9b6bd3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4dc7e4['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4dc7e4['if']('isEnabled','ck-disabled',_0xe0ee80=>!_0xe0ee80),_0x4dc7e4['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4dc7e4['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4dc7e4['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':_0x4dc7e4['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':_0x893048}]},this['revisionActionsView']],'on':{'click':_0x4dc7e4['to'](_0x38c060=>{_0x38c060['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xe79893=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xe79893,'change',()=>{this['_requireRevisionName']&&!_0xe79893['value']||this['fire']('setName',{'id':this['id'],'name':_0xe79893['value']}),_0xe79893['value']||(_0xe79893['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(_0x17e7ac,_0xc35ea4){const _0x3319c2=_0x2d25c3['fromJSDate'](_0x17e7ac)['setLocale'](_0xc35ea4),_0x553665=_0x2d25c3['local'](),_0x252ee3=_0x553665['minus']({'days':0x1})['startOf']('day');let _0x14d1b3,_0x2abbae;return _0x3319c2['hasSame'](_0x553665,'day')?(_0x14d1b3=_0x3319c2['startOf']('day')['toJSDate'](),_0x2abbae=_0x3319c2['toRelativeCalendar']()):_0x3319c2['hasSame'](_0x252ee3,'day')?(_0x14d1b3=_0x252ee3['toJSDate'](),_0x2abbae=_0x3319c2['toRelativeCalendar']()):_0x3319c2['hasSame'](_0x553665,'week')?(_0x14d1b3=_0x3319c2['startOf']('week')['toJSDate'](),_0x2abbae=_0x3319c2['weekdayLong']||''):_0x3319c2['hasSame'](_0x553665,'year')?(_0x14d1b3=_0x3319c2['startOf']('month')['toJSDate'](),_0x2abbae=_0x3319c2['monthLong']||''):(_0x14d1b3=_0x3319c2['startOf']('year')['toJSDate'](),_0x2abbae=String(_0x3319c2['year'])),{'startDate':_0x14d1b3,'localizedPeriodName':_0x2abbae};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x55e4d7,_0x441e10,_0x2e6448,_0x555ea4){super(_0x55e4d7);const _0x574fc6=mi(_0x441e10,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x441e10,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2e6448,this['_requireRevisionName']=_0x555ea4,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':_0x574fc6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3bd4d7){const _0x385dbb=new hi(this['locale'],_0x3bd4d7,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x385dbb);}['removeRevision'](_0x1d820b){const _0x506567=this['revisionViews']['find'](_0x44ad7d=>_0x44ad7d['id']===_0x1d820b['id']);this['revisionViews']['remove'](_0x506567);}}class as extends ts{constructor(_0x1c5b17){super(_0x1c5b17);const _0x4929a5=new _0x353315();_0x4929a5['content']=_0x34e80f['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4929a5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1c5b17,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xcae485,_0xb27f5a,_0x3dfe39,_0x3b5ed8){super(_0xcae485);const _0x1a0139=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xb27f5a,this['_revisionActions']=_0x3dfe39,this['_requireRevisionName']=_0x3b5ed8,this['on']('select',(_0x351514,_0x4e676d)=>{this['fire']('revisionSelected',_0x4e676d);}),this['on']('setName',(_0x14d0fd,_0x2a2e02)=>{this['fire']('revisionSetName',_0x2a2e02);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xcae485),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1a0139['if']('isEnabled','ck-disabled',_0x240fda=>!_0x240fda)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2ff2b8 of this['_revisions'])this['_addRevision'](_0x2ff2b8);this['_revisions']['on']('add',(_0x3a5405,_0x2d80dc)=>{this['_addRevision'](_0x2d80dc);}),this['_revisions']['on']('remove',(_0x93b002,_0x8d8359)=>{this['_removeRevision'](_0x8d8359);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x51a79c=>_0x51a79c['revisionViews']['map'](_0x3beadf=>_0x3beadf))['flat']();}['selectRevision'](_0x1cdc63){for(const _0x112615 of this['revisionViews'])_0x1cdc63&&_0x1cdc63['id']===_0x112615['id']?_0x112615['select']():_0x112615['deselect']();}['highlightRevisions'](_0x223b54){for(const _0x555b7d of this['revisionViews'])_0x223b54['some'](({id:_0x58be7b})=>_0x58be7b===_0x555b7d['id'])?_0x555b7d['highlight']():_0x555b7d['unhighlight']();}['_addRevision'](_0x1d1e6a){const _0x3df23a=mi(_0x1d1e6a['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x50c50e=this['timePeriodViews']['get'](0x0);_0x50c50e&&_0x50c50e['startDate']['getTime']()===_0x3df23a['getTime']()||(_0x50c50e=new vi(this['locale'],_0x3df23a,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x50c50e)),_0x50c50e['addRevision'](_0x1d1e6a);}['_removeRevision'](_0x164abd){const _0x1f1e63=mi(_0x164abd['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1f1e63)['removeRevision'](_0x164abd);}['_getTimePeriodViewByStartDate'](_0x59d152){return this['timePeriodViews']['find'](_0x2bfc63=>_0x2bfc63['startDate']['getTime']()===_0x59d152['getTime']());}}class w extends _0x1a1ac2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x5ec8ed,uid as _0x2db367,Collection as _0x2ea1f0,logWarning as _0x127d13,FocusTracker as _0x2ca15a,KeystrokeHandler as _0x584f6d,scrollViewportToShowTarget as _0x5b930d,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x8bd142}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x43a474,set as _0x42337c,unset as _0xb3c0d0,isEqual as _0x40f962}from'lodash-es';import{Plugin as _0x19d40b,PendingActions as _0x41ce12,icons as _0x46ecca,Command as _0x1a2773,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x2b50cc,getMarkerDomElement as _0x427ab3,ConfirmMixin as ti,sanitizeEditorConfig as _0x5aab15}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x460b1e,ViewText as _0x2adbf7,ViewElement as _0x9d4bdd,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x5c019d,ViewAttributeElement as _0x2a12b9,ViewEmptyElement as _0xa92834,ViewRawElement as _0x17c041,ViewUIElement as _0x574306,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x34e50f,submitHandler as _0x1370dc,LabeledFieldView as _0x4b212a,createLabeledInputText as _0x2ab85,createDropdown as _0xe9c734,ListView as _0x5de502,ListItemView as _0x3456ba,ButtonView as te,MenuBarMenuView as _0xf539ea,MenuBarMenuListView as _0x1b4b65,MenuBarMenuListItemView as _0x5383f4,MenuBarMenuListItemButtonView as _0x4188a5,ContextualBalloon as _0x1651d4,ToolbarSeparatorView as _0x2b7b9e,IconView as _0x4c6be9,addListToDropdown as to,ViewModel as _0x1f2b3f,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 _0x17f126}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x5ec8ed(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4ff843){super(),this['id']=_0x4ff843['id']||_0x2db367(),this['creator']=_0x4ff843['creator']||null,this['authors']=_0x4ff843['authors']||[],this['diffData']=_0x4ff843['diffData']||null,this['toVersion']=_0x4ff843['toVersion']||0x0,this['fromVersion']=_0x4ff843['fromVersion']||0x0,this['set']('name',_0x4ff843['name']||''),this['set']('createdAt',_0x4ff843['createdAt']||new Date()),this['set']('attributes',_0x4ff843['attributes']||{});}['setName'](_0x49967a){this['_update']({'name':_0x49967a});}['setAttribute'](_0x52971b,_0x4d27d5){const _0xef1b7e=_0x43a474(this['attributes']);_0x42337c(_0xef1b7e,_0x52971b,_0x4d27d5),this['_update']({'attributes':_0xef1b7e});}['removeAttribute'](_0x1b437a){const _0x3d4469=_0x43a474(this['attributes']);_0xb3c0d0(_0x3d4469,_0x1b437a),this['_update']({'attributes':_0x3d4469});}['_update'](_0x7ac24e,_0x359cb5=!0x1){let _0x3fdeb2=!0x1;const _0x1531cd={'id':this['id']},_0x42aa27=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5bd8d3 of _0x42aa27){const _0x5a4f1e=_0x7ac24e[_0x5bd8d3];void 0x0!==_0x5a4f1e&&_0x5a4f1e!==this[_0x5bd8d3]&&(this[_0x5bd8d3]=_0x5a4f1e,_0x1531cd[_0x5bd8d3]=_0x5a4f1e,_0x3fdeb2=!0x0);}_0x3fdeb2&&(_0x1531cd['authors']&&(_0x1531cd['authorsIds']=_0x1531cd['authors']['map'](_0xa6f6ba=>_0xa6f6ba['id']),delete _0x1531cd['authors']),this['fire']('_update',_0x1531cd,_0x359cb5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x155d3e=>_0x155d3e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x19d40b{['_revisions'];static get['requires'](){return[_0x2b50cc];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x65c69f){super(_0x65c69f),this['_revisions']=new _0x2ea1f0();}['afterInit'](){!async function(_0x15f5f1){const _0x36b6ff=_0x3763be([0x6a,0x45,0x49,0x6c,0x35,0x38,0x73,0x53,0x6e,0x37,0x75,0x46,0x50,0x67,0x5a,0x72,0x33,0x6d,0x32,0x74,0x58,0x4f,0x43,0x54,0x71,0x39,0x44,0x63,0x76,0x65,0x51,0x68,0x56,0x6f,0x4e,0x36,0x42,0x47,0x7a,0x41,0x61,0x66,0x31,0x6b,0x64,0x52,0x57,0x69,0x34,0x62,0x55,0x4c,0x4a,0x70,0x48,0x4b,0x4d,0x77,0x30,0x59,0x78,0x79]),_0x5467f5=0xeb829,_0x3fa3b4=0x4e73a442,_0x265242=0x4e74f9da^_0x3fa3b4,_0x2d6e1a=window[_0x3763be([0x44,0x61,0x74,0x65])][_0x3763be([0x6e,0x6f,0x77])](),_0x5ab1bc=_0x15f5f1[_0x3763be([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d1bbc=new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17907e=>{_0x5ab1bc[_0x3763be([0x6f,0x6e,0x63,0x65])](_0x3763be([0x72,0x65,0x61,0x64,0x79]),_0x17907e);}),_0x307c03={[_0x3763be([0x6b,0x74,0x79])]:_0x3763be([0x45,0x43]),[_0x3763be([0x75,0x73,0x65])]:_0x3763be([0x73,0x69,0x67]),[_0x3763be([0x63,0x72,0x76])]:_0x3763be([0x50,0x2d,0x32,0x35,0x36]),[_0x3763be([0x78])]:_0x3763be([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]),[_0x3763be([0x79])]:_0x3763be([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]),[_0x3763be([0x61,0x6c,0x67])]:_0x3763be([0x45,0x53,0x32,0x35,0x36])},_0x4ce7a5=_0x5ab1bc[_0x3763be([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3763be([0x67,0x65,0x74])](_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49c207(){let _0x266cb5,_0x5e68db=null,_0x4e6b1e=null;try{if(_0x4ce7a5==_0x3763be([0x47,0x50,0x4c]))return _0x3763be([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x266cb5=_0x529554(),!_0x266cb5)return _0x3763be([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x266cb5[_0x3763be([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e6b1e=_0x4fd9b2(_0x266cb5[_0x3763be([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x266cb5[_0x3763be([0x6a,0x74,0x69])])),await _0x4697c6()?_0x51ae62()?_0x49e3c6()?_0x3763be([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e17be()?(_0x266cb5[_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3763be([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e68db=_0x4b7b6f(_0x3763be([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x266cb5[_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3763be([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e68db=_0x4b7b6f(_0x3763be([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x266cb5[_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3763be([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x5e68db=_0x4b7b6f(_0x3763be([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x983064()):_0x3763be([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3763be([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3763be([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x56951a){return _0x3763be([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49e3c6(){const _0x41409a=[_0x3763be([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3763be([0x74,0x72,0x69,0x61,0x6c])][_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x266cb5[_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d6e1a/0x3e8:0xe10*_0x265242;return _0x266cb5[_0x3763be([0x65,0x78,0x70])]<_0x41409a;}function _0x51ae62(){const _0x25c678=_0x266cb5[_0x3763be([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x25c678)return!0x1;if(_0x25c678[_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3763be([0x2a])))return!0x0;if(_0x25c678[_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3763be([0x52,0x48])))return!0x0;if(_0x25c678[_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3763be([0x52,0x52,0x48]))){if(_0x192462())return!0x0;if(_0x36bf3c()||_0xaa8682())return!0x0;}return!0x1;}function _0x1e17be(){const _0x32d8ee=_0x266cb5[_0x3763be([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32d8ee||0x0==_0x32d8ee[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x150504}=new URL(window[_0x3763be([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32d8ee[_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x150504))return!0x0;const _0x5a303c=_0x150504[_0x3763be([0x73,0x70,0x6c,0x69,0x74])](_0x3763be([0x2e]));return _0x32d8ee[_0x3763be([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1452cb=>_0x1452cb[_0x3763be([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3763be([0x2a])))[_0x3763be([0x6d,0x61,0x70])](_0x2e555e=>_0x2e555e[_0x3763be([0x73,0x70,0x6c,0x69,0x74])](_0x3763be([0x2e])))[_0x3763be([0x73,0x6f,0x6d,0x65])](_0x2c20f4=>_0x5a303c[_0x3763be([0x65,0x76,0x65,0x72,0x79])]((_0x5785a5,_0x787266)=>_0x2c20f4[_0x787266]===_0x5785a5||_0x2c20f4[_0x787266]===_0x3763be([0x2a])));}function _0x983064(){return _0x5e68db&&_0x4e6b1e?new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46b830,_0x3f16ee)=>{_0x5e68db[_0x3763be([0x74,0x68,0x65,0x6e])](_0x46b830,_0x3f16ee),_0x4e6b1e[_0x3763be([0x74,0x68,0x65,0x6e])](_0x56ecb3=>{_0x56ecb3!=_0x3763be([0x56,0x61,0x6c,0x69,0x64])&&_0x46b830(_0x56ecb3);},_0x3f16ee);}):_0x5e68db||_0x4e6b1e||_0x3763be([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4fd9b2(_0x57fe45,_0x4c6221){return new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x36f4c5=>{if(_0x40cd3d())return _0x36f4c5(_0x3763be([0x56,0x61,0x6c,0x69,0x64]));_0x158bb8(),_0x5ab1bc[_0x3763be([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3763be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf7d3ac=!0x1;const _0x45ea13=_0x2db367();function _0x3df779(_0x52a077){return!!_0x52a077&&(typeof _0x52a077===_0x3763be([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x52a077===_0x3763be([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x52a077[_0x3763be([0x74,0x68,0x65,0x6e])]===_0x3763be([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x52a077[_0x3763be([0x63,0x61,0x74,0x63,0x68])]===_0x3763be([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46c0ce(_0x59df28){_0x4e5914(_0x59df28)[_0x3763be([0x74,0x68,0x65,0x6e])](_0x5e2846=>{if(!_0x5e2846||_0x5e2846[_0x3763be([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3763be([0x6f,0x6b]))return _0x3763be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1689e2(_0x362c8a(_0x45ea13+_0x4c6221))!=_0x5e2846[_0x3763be([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3763be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3763be([0x56,0x61,0x6c,0x69,0x64]);})[_0x3763be([0x74,0x68,0x65,0x6e])](_0xa267fd=>(_0x593e1a(),_0xa267fd),()=>{const _0x51a1c8=_0x444bc0();return null==_0x51a1c8?(_0x593e1a(),_0x3763be([0x56,0x61,0x6c,0x69,0x64])):_0x3763be(_0x2d6e1a-_0x51a1c8>(0x6a7f2042^_0x3fa3b4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3763be([0x74,0x68,0x65,0x6e])](_0x36f4c5)[_0x3763be([0x63,0x61,0x74,0x63,0x68])](()=>{_0x36f4c5(_0x3763be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4e562a=0x4e454ac2^_0x3fa3b4;function _0x593e1a(){const _0x50ca8f=_0x3763be([0x6c,0x6c,0x63,0x74,0x2d])+_0x1689e2(_0x362c8a(_0x57fe45)),_0x13d12c=_0x3bb69d(_0x1689e2(window[_0x3763be([0x4d,0x61,0x74,0x68])][_0x3763be([0x63,0x65,0x69,0x6c])](_0x2d6e1a/_0x4e562a)));window[_0x3763be([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3763be([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x50ca8f,_0x13d12c);}function _0x444bc0(){const _0x4b528c=_0x3763be([0x6c,0x6c,0x63,0x74,0x2d])+_0x1689e2(_0x362c8a(_0x57fe45)),_0x47134f=window[_0x3763be([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3763be([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b528c);return _0x47134f?window[_0x3763be([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bb69d(_0x47134f),0x10)*_0x4e562a:null;}function _0x4e5914(_0x9fed9e){return new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16f804,_0xe609aa)=>{_0x9fed9e[_0x3763be([0x74,0x68,0x65,0x6e])](_0x16f804,_0xe609aa),window[_0x3763be([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe609aa,0x4e727082^_0x3fa3b4);});}}_0x5ab1bc[_0x3763be([0x6f,0x6e])](_0x3763be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa536ae,_0x5ab018)=>{if(_0x5ab018[0x0]!=_0x57fe45)return _0x36f4c5(_0x3763be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ab018[0x1]={..._0x5ab018[0x1],[_0x3763be([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x45ea13};},{[_0x3763be([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3763be([0x68,0x69,0x67,0x68])}),_0x5ab1bc[_0x3763be([0x6f,0x6e])](_0x3763be([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x498f9a=>{_0x3df779(_0x498f9a[_0x3763be([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf7d3ac=!0x0,_0x46c0ce(_0x498f9a[_0x3763be([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3763be([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3763be([0x6c,0x6f,0x77])}),_0x3d1bbc[_0x3763be([0x74,0x68,0x65,0x6e])](()=>{_0xf7d3ac||_0x36f4c5(_0x3763be([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x40cd3d(){return _0x5ab1bc[_0x3763be([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3763be([0x76,0x69,0x65,0x77])][_0x3763be([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3763be([0x61,0x75,0x74,0x6f]);}function _0x158bb8(){_0x5ab1bc[_0x3763be([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3763be([0x76,0x69,0x65,0x77])][_0x3763be([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3763be([0x61,0x75,0x74,0x6f]);}}function _0x4b7b6f(_0x39e9e1){const _0x36d1fa=[new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d0f03=>setTimeout(_0x5d0f03,0x4e7a9a8e^_0x3fa3b4)),_0x3d1bbc[_0x3763be([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37f29e=>{const _0x534464=0x4e73a445^_0x3fa3b4,_0x583ec7=_0x15f5f1[_0x3763be([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3cfc67(){_0x583ec7[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x534464&&_0x37f29e();}_0x3cfc67(),_0x583ec7[_0x3763be([0x6f,0x6e])](_0x3763be([0x61,0x64,0x64]),_0x3cfc67);})),new window[(_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x587601=>{function _0x51a4a3(){for(const _0x17bcba in window)if(window[_0x3763be([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3763be([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x17bcba))&&window[_0x17bcba]==_0x5467f5)return _0x587601();_0x5ab1bc[_0x3763be([0x73,0x74,0x61,0x74,0x65])]!=_0x3763be([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3763be([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x51a4a3,0x4e73b7ca^_0x3fa3b4);}_0x375ea4(_0x3763be([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x51a4a3();})];return window[_0x3763be([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3763be([0x72,0x61,0x63,0x65])](_0x36d1fa)[_0x3763be([0x74,0x68,0x65,0x6e])](()=>_0x39e9e1);}async function _0x4d8ce0(){if(await _0x3d1bbc,_0x375ea4(_0x3763be([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4a7e0e=_0x15f5f1[_0x3763be([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4886ab=_0x15f5f1[_0x3763be([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])](_0x4a7e0e[_0x3763be([0x69,0x64])]),_0x431f93=_0x226ff4(_0x3763be([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x431f93[_0x3763be([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4a7e0e['id'],_0x4886ab?_0x4886ab['id']:null,!0x0),_0x431f93[_0x3763be([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3763be([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x431f93[_0x3763be([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x431f93[_0x3763be([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x214e0f,void(_0x431f93[_0x3763be([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x214e0f);}if(_0x375ea4(_0x3763be([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x27a2ff=_0x226ff4(_0x3763be([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x27a2ff[_0x3763be([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3763be([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x27a2ff[_0x3763be([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x27a2ff[_0x3763be([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x214e0f,_0x27a2ff[_0x3763be([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x214e0f;}_0x5ab1bc[_0x3763be([0x6d,0x6f,0x64,0x65,0x6c])][_0x3763be([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x214e0f,_0x5ab1bc[_0x3763be([0x6d,0x6f,0x64,0x65,0x6c])][_0x3763be([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x214e0f,_0x5ab1bc[_0x3763be([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3763be([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x192462(){return _0x375ea4(_0x3763be([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x226ff4(_0x3763be([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3763be([0x73,0x74,0x61,0x74,0x65])]==_0x3763be([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x36bf3c(){return _0x375ea4(_0x3763be([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 _0xaa8682(){return _0x375ea4(_0x3763be([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x30f9ca(_0x3152e8){const _0xd3d5b1=_0xf1bd16();_0x5ab1bc[_0xd3d5b1]=_0x3763be([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])+_0x3152e8,_0x3152e8[_0x3763be([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3763be([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0xf1bd16()]=_0x5467f5),_0x3152e8!=_0x3763be([0x56,0x61,0x6c,0x69,0x64])&&_0x4d8ce0();}function _0xf1bd16(){const _0x2eff33=window[_0x3763be([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3763be([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3763be([0x6e,0x6f,0x77])]())[_0x3763be([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3763be([0x2e]),'');let _0x24c6e7=_0x3763be([0x6a]);for(let _0x523d5b=0x0;_0x523d5b<_0x2eff33[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x523d5b+=0x2){let _0x563cb3=window[_0x3763be([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2eff33[_0x3763be([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x523d5b,_0x523d5b+0x2));_0x563cb3>=_0x36b6ff[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x563cb3-=_0x36b6ff[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24c6e7+=_0x36b6ff[_0x563cb3];}return _0x24c6e7;}function _0x529554(){const _0x20c1ee=_0x4ce7a5[_0x3763be([0x73,0x70,0x6c,0x69,0x74])](_0x3763be([0x2e]));if(0x3!=_0x20c1ee[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21f0ba(_0x20c1ee[0x1]);function _0x21f0ba(_0x2f1e60){const _0x1ad0ef=_0x35c78e(_0x2f1e60);return _0x1ad0ef&&_0x42e903()?_0x1ad0ef:null;function _0x42e903(){const _0x360a1d=_0x1ad0ef[_0x3763be([0x6a,0x74,0x69])],_0x38d921=window[_0x3763be([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x360a1d[_0x3763be([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x360a1d[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4481b1={..._0x1ad0ef,[_0x3763be([0x6a,0x74,0x69])]:_0x360a1d[_0x3763be([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x360a1d[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4481b1[_0x3763be([0x76,0x63])],_0x362c8a(_0x4481b1)==_0x38d921;}}}async function _0x4697c6(){let _0x3ed14d=!0x0;try{const _0x27749b=_0x4ce7a5[_0x3763be([0x73,0x70,0x6c,0x69,0x74])](_0x3763be([0x2e])),[_0x1e1522,_0x4b582e,_0x4e65e5]=_0x27749b;return _0x5eee78(_0x1e1522),await _0xc6a65a(_0x1e1522,_0x4b582e,_0x4e65e5),_0x3ed14d;}catch(_0x2402e2){return!0x1;}function _0x5eee78(_0x2cad6e){const _0x5ddd65=_0x35c78e(_0x2cad6e);_0x5ddd65&&_0x5ddd65[_0x3763be([0x61,0x6c,0x67])]==_0x3763be([0x45,0x53,0x32,0x35,0x36])||(_0x3ed14d=!0x1);}async function _0xc6a65a(_0x498a35,_0x4e04d0,_0x5a44cd){const _0x7d430e=window[_0x3763be([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3763be([0x66,0x72,0x6f,0x6d])](_0x35100c(_0x5a44cd),_0x476624=>_0x476624[_0x3763be([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x438198=new window[(_0x3763be([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3763be([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x498a35+_0x3763be([0x2e])+_0x4e04d0),_0x290214=window[_0x3763be([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3763be([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x290214)return;const _0x4320f2=await _0x290214[_0x3763be([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3763be([0x6a,0x77,0x6b]),_0x307c03,{[_0x3763be([0x6e,0x61,0x6d,0x65])]:_0x3763be([0x45,0x43,0x44,0x53,0x41]),[_0x3763be([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3763be([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3763be([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x290214[_0x3763be([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3763be([0x6e,0x61,0x6d,0x65])]:_0x3763be([0x45,0x43,0x44,0x53,0x41]),[_0x3763be([0x68,0x61,0x73,0x68])]:{[_0x3763be([0x6e,0x61,0x6d,0x65])]:_0x3763be([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4320f2,_0x7d430e,_0x438198)||(_0x3ed14d=!0x1);}}function _0x35c78e(_0x22b569){return _0x22b569[_0x3763be([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3763be([0x65,0x79]))?JSON[_0x3763be([0x70,0x61,0x72,0x73,0x65])](_0x35100c(_0x22b569)):null;}function _0x35100c(_0x2c2182){return window[_0x3763be([0x61,0x74,0x6f,0x62])](_0x2c2182[_0x3763be([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3763be([0x2b]))[_0x3763be([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3763be([0x2f])));}function _0x362c8a(_0x3fc3b5){let _0x2c5128=0x1505;function _0x37c23c(_0x5dc4cc){for(let _0x797c96=0x0;_0x797c96<_0x5dc4cc[_0x3763be([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x797c96++){const _0xaab67e=_0x5dc4cc[_0x3763be([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x797c96);_0x2c5128=(_0x2c5128<<0x5)+_0x2c5128+_0xaab67e,_0x2c5128&=_0x2c5128;}}function _0x5b8aba(_0x548b19){Array[_0x3763be([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x548b19)?_0x548b19[_0x3763be([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5b8aba):_0x548b19&&typeof _0x548b19==_0x3763be([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3763be([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x548b19)[_0x3763be([0x73,0x6f,0x72,0x74])]()[_0x3763be([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x8f1c4d,_0x1d8682])=>{_0x37c23c(_0x8f1c4d),_0x5b8aba(_0x1d8682);}):_0x37c23c(window[_0x3763be([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x548b19));}return _0x5b8aba(_0x3fc3b5),_0x2c5128>>>0x0;}function _0x1689e2(_0x3dd582){return _0x3dd582[_0x3763be([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3763be([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3763be([0x30]));}function _0x3bb69d(_0xf08a5d){return _0xf08a5d[_0x3763be([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3763be([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3763be([0x6a,0x6f,0x69,0x6e])]('');}function _0x375ea4(_0x3048d6){return _0x5ab1bc[_0x3763be([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3763be([0x68,0x61,0x73])](_0x3048d6);}function _0x226ff4(_0x2e3d3c){return _0x5ab1bc[_0x3763be([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3763be([0x67,0x65,0x74])](_0x2e3d3c);}function _0x214e0f(){}function _0x3763be(_0x538444){return _0x538444['map'](_0x4de284=>String['fromCharCode'](_0x4de284))['join']('');}_0x30f9ca(await _0x49c207());}(this);}['createRevision'](_0x245f34){const _0x397fad=this['editor']['plugins']['get']('Users');return new a({'id':_0x245f34['id'],'name':_0x245f34['name'],'creator':_0x245f34['creatorId']?_0x397fad['getUser'](_0x245f34['creatorId']):null,'diffData':_0x245f34['diffData']||_0x245f34['data'],'authors':_0x245f34['authorsIds']['map'](_0x3a23e4=>_0x397fad['getUser'](_0x3a23e4)),'createdAt':new Date(_0x245f34['createdAt']),'attributes':_0x245f34['attributes'],'fromVersion':_0x245f34['fromVersion'],'toVersion':_0x245f34['toVersion']});}['addRevision'](_0x20a311,_0x557164=0x0){this['_revisions']['add'](_0x20a311,_0x557164);}['getRevision'](_0x5d30db){return this['_revisions']['get'](_0x5d30db);}['getRevisions'](_0x3d1788={'toJSON':!0x1}){const _0x4f5316=Array['from'](this['_revisions']);return _0x4f5316['reverse'](),_0x3d1788['toJSON']?_0x4f5316['map'](_0x3f2b07=>_0x3f2b07['toJSON']()):_0x4f5316;}['getIndex'](_0x5ffc1b){return this['_revisions']['getIndex'](_0x5ffc1b);}['getEarlierVisibleRevision'](_0x5545d0){const [,_0x57aa3e]=this['getRevisionsIterator'](_0x5545d0,{'direction':'earlier'});return _0x57aa3e;}['getLaterVisibleRevision'](_0x4c5381){const [,_0x5b10b4]=this['getRevisionsIterator'](_0x4c5381,{'direction':'later'});return _0x5b10b4;}['getRevisionsInDiff'](_0x3fd552){const _0x518233=[];for(const _0x5e1378 of this['getRevisionsIterator'](_0x3fd552['newRevisionId']))if(_0x518233['push'](_0x5e1378),_0x5e1378['id']===_0x3fd552['oldRevisionId'])break;return _0x518233;}*['getRevisionsIterator'](_0x447b88,{direction:_0x5b495b='earlier',filter:_0x55e8e0=()=>!0x0}={}){const _0x61802c='earlier'===_0x5b495b?0x1:-0x1;let _0x57abbd=this['_revisions']['get'](_0x447b88),_0x536355=this['getIndex'](_0x57abbd);for(yield _0x57abbd;_0x57abbd;){if(_0x536355+=_0x61802c,_0x57abbd=this['getRevision'](_0x536355),!_0x57abbd)return;_0x55e8e0(_0x57abbd)&&(yield _0x57abbd);}}}function m(_0x5254cb,_0x598d3f,_0x418c55){const t=_0x5254cb['t'];switch(_0x598d3f){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'},_0x418c55);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x418c55);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':_0x5c019d,'a':_0x2a12b9,'e':_0xa92834,'r':_0x17c041,'u':_0x574306};class l extends _0x19d40b{['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[_0x2b50cc,j,_0x41ce12];}constructor(_0x45a2ca){super(_0x45a2ca),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 _0x4e658e=_0x2db367();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4e658e},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 _0x5bd136=this['repository']['getRevision'](0x0),_0x463442=_0x5bd136&&null===_0x5bd136['creator']?_0x5bd136:null;if(this['_continueCurrentRevision']=!!_0x463442&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3072f8=this['_source']['getCurrentRevisionId'](),_0x1e3aff=this['repository']['getRevision'](_0x3072f8);if(_0x1e3aff)this['_startingVersion']=_0x1e3aff['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x174821=this['_source']['history']['_operations']['find'](_0x2f5e41=>!_0x2f5e41['_isInit']),_0x3517a8=_0x174821?_0x174821['baseVersion']:this['_source']['history']['version'];_0x5bd136?(_0x5bd136['toVersion']<_0x3517a8&&_0x5bd136['_update']({'toVersion':_0x3517a8}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x463442['id'],this['_startingVersion']=_0x463442['fromVersion']):(this['_startingVersion']=_0x5bd136['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3517a8,this['_continueCurrentRevision']=!0x1);}}else _0x463442&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x463442['toVersion'],this['editor']['model']['document']['history']['version']),_0x463442['fromVersion']===_0x463442['toVersion']?(0x0!==_0x463442['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x463442['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x463442['id'],this['_startingVersion']=_0x463442['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',_0x70f377=>!_0x70f377),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x512dbd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2808b9;for(const _0x480dec in _0x512dbd){const _0x13f5ab=_0x480dec,_0x2b4895=_0x512dbd[_0x13f5ab];if('revisionHistoryLicenseKeyValid'==_0x2b4895||'revisionHistoryLicenseKeyInvalid'==_0x2b4895||'revisionHistoryLicenseKeyExpired'==_0x2b4895||'revisionHistoryLicenseKeyDomainLimit'==_0x2b4895||'revisionHistoryLicenseKeyNotAllowed'==_0x2b4895||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2b4895||'revisionHistoryLicenseKeyTrialLimit'==_0x2b4895||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2b4895||'revisionHistoryLicenseKeyUsageLimit'==_0x2b4895){delete _0x512dbd[_0x13f5ab],_0x2808b9=_0x2b4895,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2808b9&&_0x512dbd['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2808b9&&_0x512dbd['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2808b9&&_0x512dbd['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2808b9&&_0x512dbd['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2808b9&&_0x512dbd['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2808b9&&_0x512dbd['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2808b9&&_0x512dbd['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2808b9&&_0x512dbd['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x585151=this['repository']['getRevision'](0x0),_0x1ec440=await this['getRevisionDocumentData'](_0x585151),_0x395a02=await this['getRevisionRootsAttributes'](_0x585151);this['_replaceEditorDataWithRevisionData'](_0x1ec440,_0x395a02);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2b7e6c){this['_source']=_0x2b7e6c;}async['update'](){const _0x241c28=await this['_source']['getLatestVersion']();if(_0x241c28>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4639db=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x241c28});_0x4639db['authors']=_0x4639db['authorsIds']['map'](_0x5aa61a=>this['editor']['plugins']['get']('Users')['getUser'](_0x5aa61a)),this['currentRevision']['_update'](_0x4639db);}}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'](_0x58ae27={},_0x3c1dfe=null){const _0x2131a5=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3c1dfe>this['currentRevision']['toVersion']&&(_0x3c1dfe=null),null===_0x3c1dfe&&(_0x3c1dfe=await this['_source']['getLatestVersion']());const _0x514a6a=this['_getFromVersion'](_0x3c1dfe),_0x21952f=this['buildRevisionData']({'from':_0x514a6a,'to':_0x3c1dfe});if(this['currentRevision']['toVersion']<_0x3c1dfe){const _0x16f6b1=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3c1dfe,'to':_0x3c1dfe});_0x16f6b1['authors']=[],_0x16f6b1['authorsIds']=[],_0x16f6b1['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x16f6b1,!0x0),delete _0x16f6b1['authors'],_0x2131a5['push'](_0x16f6b1);}_0x58ae27['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x58ae27['name']=_0x58ae27['name']||null,_0x58ae27['id']=_0x58ae27['id']||_0x2db367(),_0x58ae27={..._0x58ae27,..._0x21952f};const _0x244c08=this['addRevisionData'](_0x58ae27);_0x2131a5['push'](_0x58ae27);const _0x5af3fb=this['repository']['getIndex'](_0x244c08);if(0x0!==_0x5af3fb){const _0x5784ff=this['repository']['getRevision'](_0x5af3fb-0x1);if(_0x5784ff['fromVersion']!==_0x3c1dfe){const _0x61be66=this['_revisionDataBuilder']['getData'](_0x3c1dfe,_0x5784ff['toVersion']),_0x57c33d={'id':_0x5784ff['id'],'diffData':_0x61be66['diffData'],'authorsIds':_0x61be66['authorsIds'],'authors':_0x61be66['authorsIds']['map'](_0x2ced7a=>this['editor']['plugins']['get']('Users')['getUser'](_0x2ced7a)),'fromVersion':_0x3c1dfe};_0x5784ff===this['currentRevision']&&(_0x57c33d['createdAt']=new Date(_0x58ae27['createdAt']['getTime']()+0xa)),_0x5784ff['_update'](_0x57c33d,!0x0),delete _0x57c33d['authors'],_0x2131a5['push'](_0x57c33d);}}if(this['adapter']){for(const _0x523c0c of _0x2131a5)this['_bufferUpdate'](_0x523c0c['id'],_0x523c0c,!0x0);this['sendBufferedUpdates']();}return _0x244c08;}['addRevisionData'](_0x27f02a){const _0xd8efa9=this['repository']['createRevision'](_0x27f02a);return this['adapter']&&_0xd8efa9['on']('_update',(_0x41dbc6,_0xcc3815,_0x5e6912)=>{_0x5e6912||(this['_bufferUpdate'](_0xcc3815['id'],_0xcc3815,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xd8efa9,this['_findInsertionIndex'](_0xd8efa9)),_0xd8efa9;}async['getRevisionDocumentData'](_0x278dd0){await this['_loadRevisionData'](_0x278dd0);const _0x466c37={};for(const _0x2514e1 in _0x278dd0['diffData']){if(_0x278dd0['diffData'][_0x2514e1]['attachChange']&&!_0x278dd0['diffData'][_0x2514e1]['attachChange']['isAttached'])continue;const _0x4fb524=this['_removeRevisionMarkers'](JSON['parse'](_0x278dd0['diffData'][_0x2514e1]['insertions'])),_0x33e45f=this['editor']['editing']['view']['document'],_0x438014=new _0x460b1e(_0x33e45f,_0x4fb524['map'](_0x313e09=>C(_0x313e09,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x466c37[_0x2514e1]=this['editor']['data']['processor']['toData'](_0x438014),this['editor']['data']['processor']['useFillerType']('default');}return _0x466c37;}async['getRevisionRootsAttributes'](_0x3b6bd9){await this['_loadRevisionData'](_0x3b6bd9);const _0x143bbd={};for(const _0x5abaac in _0x3b6bd9['diffData'])_0x3b6bd9['diffData'][_0x5abaac]['attachChange']&&!_0x3b6bd9['diffData'][_0x5abaac]['attachChange']['isAttached']||(_0x143bbd[_0x5abaac]=_0x3b6bd9['diffData'][_0x5abaac]['attributesAfter']||{});return _0x143bbd;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5397ec=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0xd50b36=0x0;_0xd50b36<_0x5397ec['length'];_0xd50b36++){const _0x968e4e=_0x5397ec[_0xd50b36];let _0x53b599=!0x1;for(const _0x482da6 of Object['keys'](_0x968e4e))void 0x0===_0x968e4e[_0x482da6]?delete _0x968e4e[_0x482da6]:'id'!==_0x482da6&&(_0x53b599=!0x0);_0x53b599||(_0x5397ec[_0xd50b36]=null);}if(_0x5397ec=_0x5397ec['filter'](_0x5404a5=>null!==_0x5404a5),!_0x5397ec['length'])return;for(let _0xd07206=0x0;_0xd07206<_0x5397ec['length'];_0xd07206++){const _0x13ad60=_0x5397ec[_0xd07206];void 0x0!==_0x13ad60['fromVersion']&&void 0x0===_0x13ad60['toVersion']&&(_0x13ad60['toVersion']=this['repository']['getRevision'](_0x13ad60['id'])['toVersion']),void 0x0!==_0x13ad60['toVersion']&&void 0x0===_0x13ad60['fromVersion']&&(_0x13ad60['fromVersion']=this['repository']['getRevision'](_0x13ad60['id'])['fromVersion']);}const _0x84aa9b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5397ec,_0x84aa9b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xd3e077=>{if(_0xd3e077){for(const _0x21976f of _0xd3e077)this['setRevisionData']({'id':_0x21976f['id'],'createdAt':_0x21976f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1a6dbd,_0x5213aa){let _0x3ec794=this['editor']['config']['get']('initialData'),_0x404c81=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3ec794){_0x3ec794={};for(const _0x2bd4bb of this['editor']['model']['document']['getRootNames']())_0x3ec794[_0x2bd4bb]='';}if('string'==typeof _0x3ec794&&(_0x3ec794={'main':_0x3ec794}),void 0x0===_0x404c81){_0x404c81={};for(const _0x2f1cc4 of this['editor']['model']['document']['getRootNames']())_0x404c81[_0x2f1cc4]={};}let _0x4d07a0=!0x1;const _0x56e45c=Object['keys'](_0x3ec794),_0x1447ff=Object['keys'](_0x1a6dbd);for(const _0xbc194f of _0x56e45c){if(_0x3ec794[_0xbc194f]!==_0x1a6dbd[_0xbc194f]&&''!==_0x3ec794[_0xbc194f]['trim']()){_0x4d07a0=!0x0;break;}if(!_0x40f962(_0x404c81[_0xbc194f],_0x5213aa[_0xbc194f])&&Object['keys'](_0x404c81[_0xbc194f])['length']>0x0){_0x4d07a0=!0x0;break;}}_0x4d07a0||(_0x4d07a0=_0x1447ff['some'](_0x3ef866=>!this['editor']['model']['document']['getRoot'](_0x3ef866))),_0x4d07a0&&_0x127d13('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3ec794,'editorRootsAttributes':_0x404c81,'revisionData':_0x1a6dbd,'revisionRootsAttributes':_0x5213aa}),this['editor']['config']['set']('initialData',_0x1a6dbd),this['editor']['config']['set']('rootsAttributes',_0x5213aa);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3365db=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3365db['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x56024a){const _0xdb134a=this['repository']['getRevisions']();_0xdb134a['reverse']();let _0x88c347=0x0;for(;_0x88c347<_0xdb134a['length'];){const _0x3b8a20=_0xdb134a[_0x88c347];if(_0x3b8a20===this['currentRevision']){_0x88c347++;continue;}if(_0x3b8a20['id']===this['_initialRevisionId'])break;const _0x4a385b=_0x56024a['toVersion']-_0x3b8a20['toVersion']||_0x56024a['fromVersion']-_0x3b8a20['fromVersion'];if(_0x4a385b>0x0)break;if(_0x4a385b<0x0)_0x88c347++;else{if(!_0x56024a['creator']&&_0x3b8a20['creator'])break;if(_0x3b8a20['creator']||!_0x56024a['creator']){if(_0x56024a['createdAt']>_0x3b8a20['createdAt'])break;_0x88c347++;}else _0x88c347++;}}return _0x88c347;}['setRevisionData'](_0x42e8d2){const _0x4d2352=this['repository']['getRevision'](_0x42e8d2['id']);if(_0x42e8d2['createdAt']&&(_0x42e8d2['createdAt']=new Date(_0x42e8d2['createdAt'])),_0x42e8d2['authorsIds']){const _0x28fc28=this['editor']['plugins']['get']('Users');_0x42e8d2['authors']=_0x42e8d2['authorsIds']['map'](_0x52c521=>_0x28fc28['getUser'](_0x52c521));}_0x4d2352['_update'](_0x42e8d2,!0x0);}['buildRevisionData']({revision:_0x4e65a9=null,from:_0x365852=null,to:_0x295433=null}){_0x365852=null!==_0x365852?_0x365852:_0x4e65a9['fromVersion'],_0x295433=null!==_0x295433?_0x295433:_0x4e65a9['toVersion'];const _0x310e38=this['_revisionDataBuilder']['getData'](_0x365852,_0x295433),_0x213192={'diffData':_0x310e38['diffData'],'authorsIds':_0x310e38['authorsIds'],'fromVersion':_0x365852,'toVersion':_0x295433};if(!_0x4e65a9||_0x295433!==_0x4e65a9['toVersion']){const _0x5d1014=_0x295433-0x1,_0x16e231=this['_source']['history']['getOperation'](_0x5d1014);_0x213192['createdAt']=_0x16e231&&_0x16e231['createdAt']||new Date();}if(this['_loadedStateData']&&_0x365852===this['_loadedStateData']['fromVersion']){for(const _0x4aec46 of this['_loadedStateData']['authors'])_0x213192['authorsIds']['includes'](_0x4aec46['id'])||_0x213192['authorsIds']['push'](_0x4aec46['id']);}return _0x213192;}['_loadRevisionData'](_0x4b76cc){if(!_0x4b76cc||_0x4b76cc['diffData'])return Promise['resolve']();{const _0x1efa2d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1efa2d,'revisionId':_0x4b76cc['id']})['then'](_0x57ae55=>{_0x4b76cc['diffData']=_0x57ae55['diffData'];});}}['_bufferUpdate'](_0x31d7ad,_0x1f1f1a,_0x34aedc){if(this['_bufferedUpdates']['has'](_0x31d7ad)){const _0x5abf73=this['_bufferedUpdates']['get'](_0x31d7ad);_0x1f1f1a=_0x34aedc?{..._0x5abf73,..._0x1f1f1a}:{..._0x1f1f1a,..._0x5abf73};}this['_bufferedUpdates']['set'](_0x31d7ad,_0x1f1f1a);}['_getFromVersion'](_0x2b1355){const _0x409688=this['repository']['getRevisions']();_0x409688['reverse'](),_0x409688['shift']();const _0x2c3305=_0x409688['find'](_0x471cb5=>_0x471cb5['toVersion']<=_0x2b1355)['toVersion'];return _0x2c3305<this['_startingVersion']?this['_startingVersion']:_0x2c3305;}['_createInitialRevision'](_0x12ecc3){const _0x4a54bb=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4a54bb)this['_initialRevisionId']=_0x4a54bb['id'];else{const _0x37dd6b=!this['editor']['model']['document']['roots']['find'](_0x1dc409=>this['editor']['model']['hasContent'](_0x1dc409)),_0x956ee4=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f0fac=m(this['editor']['locale'],_0x37dd6b?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x12ecc3,'to':_0x12ecc3,'id':this['_initialRevisionId'],'name':_0x5f0fac,'creatorId':_0x956ee4});}}['_createCurrentRevision'](_0x5663dc){const _0x49c987=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x49c987),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5663dc,'to':_0x5663dc,'id':_0x49c987,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5e8d6d,from:_0x2e58ec,to:_0x4b323c,creatorId:_0x532d2f,id:_0x11c8a5}){const _0xd2d3bb=this['buildRevisionData']({'from':_0x2e58ec,'to':_0x4b323c});_0xd2d3bb['name']=_0x5e8d6d,_0xd2d3bb['creatorId']=_0x532d2f,_0xd2d3bb['id']=_0x11c8a5;const _0x2fbbb9=this['addRevisionData'](_0xd2d3bb);return this['adapter']&&this['_bufferUpdate'](_0xd2d3bb['id'],_0xd2d3bb,!0x0),_0x2fbbb9;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x50aff4){return(_0x50aff4=_0x50aff4['filter'](_0x5cee6e=>!_0x5cee6e['name']||'revision-start'!==_0x5cee6e['name']&&'revision-end'!==_0x5cee6e['name']))['forEach'](_0x57c31e=>{'string'!=typeof _0x57c31e&&(_0x57c31e['children']=this['_removeRevisionMarkers'](_0x57c31e['children']),_0x57c31e['attributes']=_0x57c31e['attributes']['filter'](_0x1fa746=>!_0x1fa746[0x0]['startsWith']('data-revision-')));}),_0x50aff4;}}function C(_0x334468,_0x87e3fc){const _0x36dd4f=_0x87e3fc['editing']['view']['document'];if('string'==typeof _0x334468)return new _0x2adbf7(_0x36dd4f,_0x334468);{const _0x3f6748=_0x334468['children']['map'](_0x47ffa0=>C(_0x47ffa0,_0x87e3fc));return new(P[_0x334468['type']]||_0x9d4bdd)(_0x36dd4f,_0x334468['name'],_0x334468['attributes'],_0x3f6748);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x21c7a3){this['editor']=_0x21c7a3,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'](_0x37e0d4){this['source']=_0x37e0d4;const _0x5e5f6b=new Map(),_0x4d66d9=new Map(),_0x3a7cd9=this['editor']['model']['document']['roots']['map'](_0x3a10ed=>_0x3a10ed['rootName']);for(const _0x49fc25 of _0x3a7cd9){const _0x12abaa=this['editor']['model']['document']['getRoot'](_0x49fc25),_0x5cbb25=T(_0x12abaa);_0x5e5f6b['set'](_0x49fc25,_0x5cbb25),_0x4d66d9['set'](_0x49fc25,Object['fromEntries'](_0x12abaa['getAttributes']()));}const _0x35652c=Array['from'](this['editor']['model']['markers'])['map'](_0x37ddce=>[_0x37ddce['name'],_0x37ddce['getRange']()]),_0x38d7d1=this['source']['version'];this['_saveMetaData'](_0x38d7d1,_0x5e5f6b,_0x35652c,_0x4d66d9),this['_startingRevisionId']=this['_revisionId'];const _0x57a3d5=new Map(),_0x3ab05a=new Map();for(const _0x36bdb2 of _0x3a7cd9){const _0x489281=F(_0x36bdb2);_0x57a3d5['set'](_0x36bdb2,_0x489281),_0x3ab05a['set'](_0x36bdb2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x57a3d5,[],_0x3ab05a);}['getData'](_0x48eeda,_0x59350c){if(this['_lastFrom']===_0x48eeda&&this['_lastTo']<=_0x59350c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x59350c,!0x0);else{if(!this['_savedMetaData']['has'](_0x48eeda)){const _0x248658=this['_getPreviousFrom'](_0x48eeda);this['_calculateMetaData'](_0x248658,_0x48eeda,!0x1);}this['_calculateMetaData'](_0x48eeda,_0x59350c,!0x0);}return this['_lastFrom']=_0x48eeda,this['_lastTo']=_0x59350c,this['_getState']();}['loadState'](_0x20649d){this['_reset'](),this['_lastFrom']=_0x20649d['fromVersion'],this['_lastTo']=_0x20649d['toVersion'];for(const _0x8b61e5 in _0x20649d['diffData']){const _0x1682a0=_0x20649d['diffData'][_0x8b61e5]['attachChange'],_0xbf6daa=_0x43a474(_0x20649d['diffData'][_0x8b61e5]['attributesBefore'])||{},_0x5729b1=this['_makeModelFromViewString'](_0x20649d['diffData'][_0x8b61e5]['deletions']);_0x5729b1['rootName']=_0x8b61e5,_0x5729b1['_isAttached']=!_0x1682a0||!_0x1682a0['isAttached'],_0x5729b1['isAttached']=()=>_0x5729b1['_isAttached'],this['_baseRoots']['set'](_0x8b61e5,_0x5729b1),this['_baseRootsAttributes']['set'](_0x8b61e5,_0xbf6daa),_0x1682a0&&this['_touchedRoots']['set'](_0x8b61e5,_0x1682a0);const _0x19c78a=this['_makeIdsRoot'](_0x5729b1);this['_baseIdsRoots']['set'](_0x8b61e5,_0x19c78a);for(const [_0x42ecb8,_0x5b31d5]of _0x5729b1['markers']){if(!_0x42ecb8['startsWith']('revision:'))continue;const _0x57ebdb=_0x42ecb8['split'](':')[0x2];for(const _0x1707ef of _0x5b31d5['getWalker']({'singleCharacters':!0x0})){const _0x334936=this['_getVidAttributeName'](_0x1707ef),_0x513afa='elementEnd'==_0x1707ef['type']?_0x1707ef['previousPosition']['path']['slice'](0x0,-0x1):_0x1707ef['previousPosition']['path'],_0x11c9c9=_0x19c78a['getNodeByPath'](_0x513afa)['getAttribute'](_0x334936);this['_touched']['set'](_0x11c9c9,{'userId':_0x57ebdb});}}}this['_startingRevisionId']=this['_revisionId'];const _0x128f93=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x130015=>!this['_touched']['has'](_0x130015));let _0x3cb9f7=0x0;const _0xc004ca=new Map();for(const _0x4a6dcd in _0x20649d['diffData']){const _0x55c173=_0x20649d['diffData'][_0x4a6dcd]['attachChange'],_0xe1479a=_0x43a474(_0x20649d['diffData'][_0x4a6dcd]['attributesAfter'])||{},_0x163bc1=this['_makeModelFromViewString'](_0x20649d['diffData'][_0x4a6dcd]['insertions']);_0x163bc1['rootName']=_0x4a6dcd,_0x163bc1['_isAttached']=!_0x55c173||_0x55c173['isAttached'],_0x163bc1['isAttached']=()=>_0x163bc1['_isAttached'],this['_diffRoots']['set'](_0x4a6dcd,_0x163bc1),this['_diffRootsAttributes']['set'](_0x4a6dcd,_0xe1479a);const _0x455f71=this['_makeIdsRoot'](_0x163bc1,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4a6dcd,_0x455f71),_0xc004ca['set'](_0x4a6dcd,_0x163bc1['isAttached']()?_0xe1479a:{});for(const [_0xa802e3,_0x513fc2]of _0x163bc1['markers']){if(!_0xa802e3['startsWith']('revision:'))continue;const _0x30541f=_0xa802e3['split'](':')[0x2];for(const _0x367908 of _0x513fc2['getWalker']({'singleCharacters':!0x0})){const _0x3cfcf1=this['_getVidAttributeName'](_0x367908),_0x474811=this['_revisionId']++,_0x40b332='elementEnd'==_0x367908['type']?_0x367908['previousPosition']['path']['slice'](0x0,-0x1):_0x367908['previousPosition']['path'];_0x455f71['getNodeByPath'](_0x40b332)['_setAttribute'](_0x3cfcf1,_0x474811),this['_touched']['set'](_0x474811,{'userId':_0x30541f});}}for(const _0x41af0b of this['editor']['model']['createRangeIn'](_0x163bc1)['getWalker']({'singleCharacters':!0x0})){const _0x22f5c1=this['_getVidAttributeName'](_0x41af0b),_0x242843='elementEnd'==_0x41af0b['type']?_0x41af0b['previousPosition']['path']['slice'](0x0,-0x1):_0x41af0b['previousPosition']['path'],_0x1dc08f=_0x455f71['getNodeByPath'](_0x242843);_0x1dc08f['getAttribute'](_0x22f5c1)>0x0||_0x1dc08f['_setAttribute'](_0x22f5c1,_0x128f93[_0x3cb9f7++]);}for(const [_0x34a105,_0x1d1d52]of _0x163bc1['markers'])_0x34a105['startsWith']('revision:')||this['_markers']['set'](_0x34a105,_0x1d1d52);}const _0x28d693=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x28d693),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x28d693,0x1));const _0x38848a=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x38848a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x38848a,0x1));const _0x2d58c5=Array['from'](this['_diffRoots'])['map'](([_0x166e61,_0x5bffc3])=>[_0x166e61,T(_0x5bffc3)]);this['_saveMetaData'](this['_lastTo'],_0x2d58c5,this['_markers'],_0xc004ca);}['_makeModelFromViewString'](_0x9656bd){const _0x108a7f=JSON['parse'](_0x9656bd),_0x4db5cc=this['editor']['editing']['view']['document'],_0x14102a=new _0x460b1e(_0x4db5cc,_0x108a7f['map'](_0x49de4c=>C(_0x49de4c,this['editor'])));return this['editor']['data']['toModel'](_0x14102a);}['_saveMetaData'](_0x465d8d,_0x1b47d9,_0x2b0c00,_0x15ef73){const _0x1ad8c7=new Map(_0x1b47d9),_0x2532e2=new Map(_0x43a474(_0x15ef73)),_0x80d7ae=new Map();for(const [_0x467f5d,_0x404de4]of _0x2b0c00)_0x80d7ae['set'](_0x467f5d,{'start':_0x404de4['start']['clone'](),'end':_0x404de4['end']['clone'](),'rootName':_0x404de4['root']['rootName']});this['_savedMetaData']['set'](_0x465d8d,{'roots':_0x1ad8c7,'markers':_0x80d7ae,'rootsAttributes':_0x2532e2});}['_removeMetaData'](_0x2a2dbf){this['_savedMetaData']['delete'](_0x2a2dbf);}['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'](_0x796718,_0x470485=null){let _0x4f8d2e=null;_0x796718['is']('documentFragment')||(_0x4f8d2e=new ft(_0x796718['name'],{'vid_start':null===_0x470485?this['_revisionId']++:_0x470485++}));const _0x11aa40=[];for(const _0x1a49c4 of _0x796718['getChildren']())if(_0x1a49c4['is']('element')){_0x11aa40['push'](this['_makeIdsRoot'](_0x1a49c4,_0x470485));const _0x4106eb=_0x11aa40[_0x11aa40['length']-0x1];null!==_0x470485&&(_0x470485=_0x4106eb['is']('element','$text')?_0x4106eb['getAttribute']('vid')+0x1:_0x4106eb['getAttribute']('vid_end')+0x1);}else{for(let _0x3d518c=0x0;_0x3d518c<_0x1a49c4['offsetSize'];_0x3d518c++)_0x11aa40['push'](new ft('$text',{'vid':null===_0x470485?this['_revisionId']++:_0x470485++}));}if(_0x796718['is']('documentFragment')){const _0x24d9e=F(_0x796718['rootName']);return _0x24d9e['_insertChild'](0x0,_0x11aa40),_0x24d9e;}return _0x4f8d2e['_setAttribute']('vid_end',null===_0x470485?this['_revisionId']++:_0x470485++),_0x4f8d2e['_insertChild'](0x0,_0x11aa40),_0x4f8d2e;}['_calculateMetaData'](_0x5ca3bd,_0x1c9a0a,_0x19b1ca){this['_reset']();const {roots:_0x5d19de,markers:_0x18ca71,rootsAttributes:_0x58a60e}=this['_savedMetaData']['get'](_0x5ca3bd);this['_baseRoots']=new Map(_0x5d19de),this['_baseRootsAttributes']=new Map(_0x43a474(_0x58a60e));for(const [_0x168905,_0x438044]of this['_baseRoots'])if('$graveyard'!==_0x168905&&(this['_diffRoots']['set'](_0x168905,T(_0x438044)),this['_diffRootsAttributes']=new Map(_0x43a474(_0x58a60e)),_0x19b1ca)){const _0x50053d=this['_revisionId'];this['_idsRoots']['set'](_0x168905,this['_makeIdsRoot'](_0x438044)),this['_baseIdsRoots']['set'](_0x168905,this['_makeIdsRoot'](_0x438044,_0x50053d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x19b1ca&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2bee3,_0x25b60b]of _0x18ca71){const _0x384be6=this['_baseRoots']['get'](_0x25b60b['rootName']),_0x4bb4f7=this['_diffRoots']['get'](_0x25b60b['rootName']),_0xfd8a9a=new vt(this['_fixPosition'](_0x25b60b['start'],_0x384be6),this['_fixPosition'](_0x25b60b['end'],_0x384be6)),_0x323308=this['_fixRange'](_0xfd8a9a,_0x4bb4f7);_0x384be6['markers']['set'](_0x2bee3,_0xfd8a9a),this['_markers']['set'](_0x2bee3,_0x323308);}this['_applyOperations'](_0x5ca3bd,_0x1c9a0a,_0x19b1ca);}['_applyOperations'](_0x19db06,_0x23270a,_0xea83b8){for(const _0x74af7a of this['source']['getOperations'](_0x19db06,_0x23270a))this['_handleOperation'](_0x74af7a,_0xea83b8);for(const _0x1b28cf of this['_diffRoots']['values']())_0x1b28cf['markers']['clear']();for(const [_0x4a99ab,_0x37eef2]of this['_markers']){this['_diffRoots']['get'](_0x37eef2['root']['rootName'])['markers']['set'](_0x4a99ab,_0x37eef2['clone']());}const _0x19f62b=new Map(),_0x5e54e4=new Map();for(const [_0x4cde60,_0x57a790]of this['_diffRoots'])_0x19f62b['set'](_0x4cde60,T(_0x57a790)),_0x5e54e4['set'](_0x4cde60,this['_diffRootsAttributes']['get'](_0x4cde60));this['_saveMetaData'](_0x23270a,_0x19f62b,this['_markers'],_0x5e54e4);}['_getPreviousFrom'](_0xee89c1){const _0x4c91af=Array['from'](this['_savedMetaData']['keys']());_0x4c91af['sort']((_0x490009,_0x30db65)=>_0x490009-_0x30db65),_0x4c91af['reverse']();for(const _0x17e390 of _0x4c91af)if(_0x17e390<_0xee89c1)return _0x17e390;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x42bbe7,_0x460d33){const _0x1a0c54=Array['from'](_0x460d33['markers'])['map'](([_0x335f53,_0x3a787b])=>[_0x335f53,this['_fixRange'](_0x3a787b,_0x42bbe7)]);_0x42bbe7['markers']=new Map(_0x1a0c54);}['_transformMarkers'](_0x9f5036){for(const _0x31d8f4 of this['_markers']['values']()){const _0x3efab2=_0x31d8f4['getTransformedByOperation'](_0x9f5036),_0xee11e5=vt['_createFromRanges'](_0x3efab2);_0x31d8f4['start']=_0xee11e5['start'],_0x31d8f4['end']=_0xee11e5['end'];}}['_handleOperation'](_0x466e48,_0x130a70){if('addRoot'!=_0x466e48['type']&&'detachRoot'!=_0x466e48['type']){if('insert'==_0x466e48['type']){const _0x27433a=_0x466e48['position']['root']['rootName'];this['_diffRoots']['has'](_0x27433a)||(this['_diffRoots']['set'](_0x27433a,F(_0x27433a,!0x0)),this['_diffRootsAttributes']['set'](_0x27433a,{}),_0x130a70&&this['_idsRoots']['set'](_0x27433a,F(_0x27433a,!0x0)));}else{if('addRootAttribute'==_0x466e48['type']||'removeRootAttribute'==_0x466e48['type']||'changeRootAttribute'==_0x466e48['type'])return void this['_handleRootAttributeOperation'](_0x466e48);'marker'==_0x466e48['type']&&this['_handleMarkerOperation'](_0x466e48);}if('marker'!==_0x466e48['type']){const _0x2e02ee=this['_cloneOperation'](_0x466e48,this['_diffRoots']);_0x2e02ee['_execute'](),this['_transformMarkers'](_0x2e02ee);}if(_0x130a70)switch(_0x466e48['type']){case'insert':this['_handleInsertOperation'](_0x466e48);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x466e48);break;case'merge':this['_handleMergeOperation'](_0x466e48);break;case'split':this['_handleSplitOperation'](_0x466e48);}}else this['_handleRootOperation'](_0x466e48,_0x130a70);}['_cloneOperation'](_0x3cba15,_0x15ceed){const _0x1b858f=_0x3cba15['clone']();return _0x1b858f['_authorId']=_0x3cba15['_authorId'],this['_fixOperation'](_0x1b858f,_0x15ceed),_0x1b858f;}['_getBaseVids'](_0x10d42d){return _0x10d42d['map'](_0x497bad=>{const _0xa88fbe=this['_getVidAttributeName'](_0x497bad);return Number(_0x497bad['item']['getAttribute'](_0xa88fbe));});}['_generateTape'](_0x346ba2,_0x34d14b){if(_0x346ba2['is']('element','$text'))_0x34d14b['push']({'item':_0x346ba2,'type':'text'});else{_0x346ba2['is']('element')&&_0x34d14b['push']({'item':_0x346ba2,'type':'elementStart'});for(const _0x45fc2d of _0x346ba2['getChildren']())this['_generateTape'](_0x45fc2d,_0x34d14b);_0x346ba2['is']('element')&&_0x34d14b['push']({'item':_0x346ba2,'type':'elementEnd'});}return _0x34d14b;}['_getState'](){const _0x45d75d=new Map(this['_touched']),_0x20fc38=new Map(_0x45d75d),_0x168139=new Map(),_0x111149={'insertions':{},'deletions':{}},_0x5074c9={'insertions':{},'deletions':{}},_0x13337a=new Map(),_0x24830f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x24830f['delete']('$graveyard');for(const _0x81f746 of _0x24830f){const _0x805857=this['_diffRoots']['get'](_0x81f746)||F(_0x81f746,!0x1),_0x1c2f9e=this['_baseRoots']['get'](_0x81f746)||F(_0x81f746,!0x1);_0x805857['isAttached']()||_0x1c2f9e['isAttached']()?(_0x111149['insertions'][_0x81f746]=T(_0x805857),_0x111149['deletions'][_0x81f746]=T(_0x1c2f9e),this['_copyMarkers'](_0x111149['deletions'][_0x81f746],_0x1c2f9e),this['_copyMarkers'](_0x111149['insertions'][_0x81f746],_0x805857),_0x5074c9['insertions'][_0x81f746]=this['_generateTape'](this['_idsRoots']['get'](_0x81f746),[]),_0x5074c9['deletions'][_0x81f746]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x81f746)||F(_0x81f746,!0x1),[])):_0x24830f['delete'](_0x81f746);}for(const _0x521b00 of _0x24830f){const _0xf929e8=_0x5074c9['insertions'][_0x521b00];for(const _0x22b8e0 of _0xf929e8){const _0x2c9724=this['_getVidAttributeName'](_0x22b8e0),_0x3c7425=_0x22b8e0['item']['getAttribute'](_0x2c9724);_0x20fc38['delete'](_0x3c7425),_0x3c7425>=this['_startingRevisionId']&&_0x168139['set'](_0x3c7425,_0x45d75d['get'](_0x3c7425));}}for(const _0x552c34 of _0x24830f){const _0x49f9bc=_0x5074c9['insertions'][_0x552c34],_0x277b3c=this['_getBaseVids'](_0x5074c9['deletions'][_0x552c34]);let _0x16e036=0x0;for(const _0x191dec of _0x49f9bc){const _0x11c3af=this['_getVidAttributeName'](_0x191dec),_0x3b3b53=_0x191dec['item']['getAttribute'](_0x11c3af);if(!_0x168139['has'](_0x3b3b53)&&!_0x13337a['has'](_0x3b3b53)){if(_0x20fc38['has'](_0x3b3b53))_0x16e036++;else{if(_0x3b3b53!=_0x277b3c[_0x16e036]){const _0x595824=_0x45d75d['get'](_0x3b3b53)||_0x45d75d['get'](_0x277b3c[_0x16e036]);for(;_0x3b3b53!=_0x277b3c[_0x16e036];)_0x20fc38['has'](_0x277b3c[_0x16e036])||(_0x13337a['set'](_0x277b3c[_0x16e036],_0x595824),_0x45d75d['set'](_0x277b3c[_0x16e036],_0x595824)),_0x16e036++;}_0x16e036++;}}}}for(const _0x157b3c of _0x24830f){const _0x10529e=_0x5074c9['insertions'][_0x157b3c];for(const _0x4fac7f of _0x10529e){const _0x19cb76=this['_getVidAttributeName'](_0x4fac7f),_0x4f73e9=_0x4fac7f['item']['getAttribute'](_0x19cb76);if(_0x13337a['has'](_0x4f73e9)){const _0x487071=_0x13337a['get'](_0x4f73e9);_0x20fc38['has'](_0x4f73e9)||_0x20fc38['set'](_0x4f73e9,{..._0x487071}),_0x168139['set'](_0x4f73e9,{..._0x487071});}}}for(const _0x3aa787 of _0x20fc38['keys']())_0x3aa787>=this['_startingRevisionId']&&_0x20fc38['delete'](_0x3aa787);const _0x2e707a=new Map();for(const _0x8a93e7 of _0x24830f){let _0x5e1abb=_0x5074c9['insertions'][_0x8a93e7];for(const _0x25b90c of _0x5e1abb)if(_0x25b90c['item']['is']('element','tableCell')){const _0x14a44c=this['_getVidAttributeName'](_0x25b90c),_0x339a53=_0x25b90c['item']['getAttribute'](_0x14a44c);if(_0x168139['has'](_0x339a53)){const _0x18833d=_0x25b90c['item']['parent']['parent']['getAttribute']('vid_start'),_0x365353=_0x2e707a['get'](_0x18833d)||new Set();_0x365353['add'](_0x168139['get'](_0x339a53)['userId']),_0x2e707a['set'](_0x18833d,_0x365353);}}_0x5e1abb=_0x5074c9['deletions'][_0x8a93e7];for(const _0xf11ca0 of _0x5e1abb)if(_0xf11ca0['item']['is']('element','tableCell')){const _0xe7fab7=this['_getVidAttributeName'](_0xf11ca0),_0x459d45=_0xf11ca0['item']['getAttribute'](_0xe7fab7);if(_0x20fc38['has'](_0x459d45)){const _0x2e4029=_0xf11ca0['item']['parent']['parent']['getAttribute']('vid_start'),_0x9eed17=_0x2e707a['get'](_0x2e4029)||new Set();_0x9eed17['add'](_0x20fc38['get'](_0x459d45)['userId']),_0x2e707a['set'](_0x2e4029,_0x9eed17);}}for(const _0x655dcb of _0x2e707a['keys']())(_0x168139['has'](_0x655dcb)||_0x20fc38['has'](_0x655dcb))&&_0x2e707a['delete'](_0x655dcb);}for(const _0x30025c of _0x24830f){const _0x3e3c2f=_0x5074c9['insertions'][_0x30025c];let _0x2b6a4e=null,_0x33eb24=null;for(const _0x5e28b8 of _0x3e3c2f){const _0x1c02df=this['_getVidAttributeName'](_0x5e28b8),_0x53be0e=_0x5e28b8['item']['getAttribute'](_0x1c02df),_0x3ef32d=_0x2e707a['get'](_0x53be0e);_0x3ef32d&&'elementStart'==_0x5e28b8['type']&&(_0x2b6a4e=Array['from'](_0x3ef32d)[0x0],_0x33eb24=_0x5e28b8['item']['getAttribute']('vid_end')),_0x2b6a4e&&(_0x20fc38['set'](_0x53be0e,{'userId':_0x2b6a4e}),_0x168139['set'](_0x53be0e,{'userId':_0x2b6a4e})),_0x53be0e==_0x33eb24&&(_0x2b6a4e=null,_0x33eb24=null);}}const _0x27702e={},_0x3a28df=new Set();for(const _0x384de3 of _0x24830f){const _0x1adabb=_0x111149['deletions'][_0x384de3],_0x4c1942=_0x111149['insertions'][_0x384de3];for(const {userId:_0x401934}of this['_touchedMarkers']['values']())null!==_0x401934&&_0x3a28df['add'](_0x401934);for(const {userId:_0x1296e7}of this['_touchedRoots']['values']())null!==_0x1296e7&&_0x3a28df['add'](_0x1296e7);this['_markChanges'](_0x4c1942,_0x5074c9['insertions'][_0x384de3],_0x168139,'insertion',_0x3a28df),this['_markChanges'](_0x1adabb,_0x5074c9['deletions'][_0x384de3],_0x20fc38,'deletion',_0x3a28df),_0x27702e[_0x384de3]={'insertions':this['_prepareViewToSave'](_0x4c1942),'deletions':this['_prepareViewToSave'](_0x1adabb),'attachChange':this['_touchedRoots']['get'](_0x384de3)||null,'attributesBefore':_0x43a474(this['_baseRootsAttributes']['get'](_0x384de3))||{},'attributesAfter':_0x43a474(this['_diffRootsAttributes']['get'](_0x384de3))};}return{'diffData':_0x27702e,'authorsIds':Array['from'](_0x3a28df)};}['_processRootBeforeSave'](_0x138dff){for(const [,_0x4f39e4]of _0x138dff['markers']){const _0x2cbf35=_0x4f39e4['start']['getAncestors']()['filter'](_0x48778b=>'tableCell'==_0x48778b['name']);for(const _0x5e1c4d of _0x2cbf35)0x1==_0x5e1c4d['childCount']&&_0x5e1c4d['getChild'](0x0)['is']('element','paragraph')&&_0x5e1c4d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x38e8e5){this['_processRootBeforeSave'](_0x38e8e5);const _0x8917bf=this['editor']['data']['toView'](_0x38e8e5,{}),_0x60ac31=Array['from'](_0x8917bf['getChildren']())['map'](_0x273c49=>this['_getViewJson'](_0x273c49));return JSON['stringify'](_0x60ac31);}['_getViewJson'](_0x2abf4f){if(_0x2abf4f['is']('$text'))return _0x2abf4f['data'];{const _0x437e93=_0x2abf4f;return{'type':Object['keys'](P)['find'](_0x53e399=>_0x2abf4f instanceof P[_0x53e399]),'name':_0x437e93['name'],'attributes':Array['from'](_0x437e93['getAttributes']()),'children':Array['from'](_0x437e93['getChildren']())['map'](_0x2c736d=>this['_getViewJson'](_0x2c736d))};}}['_markChanges'](_0x321a9e,_0x4b6336,_0x2b32ce,_0x188afa,_0x451aba){let _0x4d45af=null,_0x790aad=null,_0xf9cdc5=0x0;const _0x191dfe=this['editor']['model'];for(let _0x117ad0=0x0;_0x117ad0<_0x4b6336['length'];_0x117ad0++){const _0x26a5a8=this['_getVidAttributeName'](_0x4b6336[_0x117ad0]),_0x4bfd54=_0x4b6336[_0x117ad0]['item']['getAttribute'](_0x26a5a8),_0x597e44=_0x2b32ce['get'](_0x4bfd54),_0x134b28=_0x117ad0==_0x4b6336['length']-0x1;(!_0x4d45af&&_0x597e44&&(_0x4d45af=_0x597e44,_0x790aad=_0x4b6336[_0x117ad0]),_0x4d45af&&(!_0x597e44||_0x597e44['userId']!=_0x4d45af['userId']))&&(_0x5f55b0(_0x597e44,B(_0x790aad,_0x321a9e,_0x191dfe),B(_0x4b6336[_0x117ad0],_0x321a9e,_0x191dfe)),_0x4d45af=_0x597e44||null,_0x790aad=_0x597e44?_0x4b6336[_0x117ad0]:null),_0x4d45af&&_0x134b28&&_0x5f55b0(_0x597e44,B(_0x790aad,_0x321a9e,_0x191dfe),J(_0x4b6336[_0x117ad0],_0x321a9e,_0x191dfe));}function _0x5f55b0(_0x140080,_0x57d8bc,_0x833cf0){const _0x141c23=_0x4d45af['userId'],_0x4c597a='revision:'+_0x188afa+':'+_0x141c23+':'+_0xf9cdc5++,_0x5dda68=_0x191dfe['createRange'](_0x57d8bc,_0x833cf0);_0x321a9e['markers']['set'](_0x4c597a,_0x5dda68),null!==_0x141c23&&_0x451aba['add'](_0x141c23);}}['_getVidAttributeName'](_0x83fd2){switch(_0x83fd2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2c40df,_0x16df9e){_0x2c40df['baseVersion']=null;for(const _0x36d2b4 in _0x2c40df){const _0x319328=_0x2c40df[_0x36d2b4];if(_0x319328 instanceof gt){const _0x16e184=_0x16df9e['get'](_0x319328['root']['rootName']);_0x2c40df[_0x36d2b4]=this['_fixPosition'](_0x319328,_0x16e184);}if(_0x319328 instanceof vt){const _0x19e97e=_0x16df9e['get'](_0x319328['root']['rootName']);_0x2c40df[_0x36d2b4]=this['_fixRange'](_0x319328,_0x19e97e);}'root'===_0x36d2b4&&(_0x2c40df['root']=_0x16df9e['get'](_0x2c40df['root']['rootName']));}}['_fixRange'](_0x1baeac,_0x31c6de){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1baeac['start'],_0x31c6de),this['_fixPosition'](_0x1baeac['end'],_0x31c6de));}['_fixPosition'](_0x27c316,_0xace0f3){return this['editor']['model']['createPositionFromPath'](_0xace0f3,_0x27c316['path'],_0x27c316['stickiness']);}['_handleInsertOperation'](_0x26b0fe){const _0x557ddb=this['_idsRoots']['get'](_0x26b0fe['position']['root']['rootName']),_0x26809c=this['_fixPosition'](_0x26b0fe['position'],_0x557ddb),_0x164717=null===_0x26b0fe['_authorId']?null:_0x26b0fe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17261e=_0x26809c['parent'],_0x357c40=this['_revisionId'],_0x511f5a=[];for(const _0x4a44b1 of _0x26b0fe['nodes'])if(_0x4a44b1['is']('element'))_0x511f5a['push'](this['_makeIdsRoot'](_0x4a44b1));else{for(let _0x174625=0x0;_0x174625<_0x4a44b1['offsetSize'];_0x174625++)_0x511f5a['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x471c23=this['_revisionId'];for(let _0x554d86=_0x357c40;_0x554d86<_0x471c23;_0x554d86++)this['_touched']['set'](_0x554d86,{'userId':_0x164717});_0x17261e['_insertChild'](_0x26809c['offset'],_0x511f5a);}['_handleMoveOperation'](_0x306927){(_0x306927=this['_cloneOperation'](_0x306927,this['_idsRoots']))['_execute']();const _0x1c0bba=null===_0x306927['_authorId']?null:_0x306927['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x939a8d=_0x306927['getMovedRangeStart'](),_0x18ffdd=_0x939a8d['parent'],_0x3b9ccf=_0x939a8d['offset'];!function _0x2d1fb0(_0x8dc97e,_0x5c2558,_0x2269e2,_0x77477a){for(let _0x5c4af3=_0x2269e2;_0x5c4af3<_0x77477a;_0x5c4af3++){const _0x26e162=_0x5c2558['getChild'](_0x5c4af3);_0x26e162['is']('element','$text')?_0x8dc97e['set'](_0x26e162['getAttribute']('vid'),{'userId':_0x1c0bba}):(_0x8dc97e['set'](_0x26e162['getAttribute']('vid_start'),{'userId':_0x1c0bba}),_0x2d1fb0(_0x8dc97e,_0x26e162,0x0,_0x26e162['childCount']),_0x8dc97e['set'](_0x26e162['getAttribute']('vid_end'),{'userId':_0x1c0bba}));}}(this['_touched'],_0x18ffdd,_0x3b9ccf,_0x3b9ccf+_0x306927['howMany']);}['_handleMergeOperation'](_0x15c6d7){const _0xe098f9=null===(_0x15c6d7=this['_cloneOperation'](_0x15c6d7,this['_idsRoots']))['_authorId']?null:_0x15c6d7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x376a7d=_0x15c6d7['targetPosition']['parent'],_0x3d906b=_0x15c6d7['sourcePosition']['parent'],_0x541c18=_0x376a7d['getAttribute']('vid_end'),_0x58655f=_0x3d906b['getAttribute']('vid_start');_0x376a7d['_setAttribute']('vid_end',_0x3d906b['getAttribute']('vid_end')),_0x3d906b['_setAttribute']('vid_end',_0x541c18),this['_touched']['set'](_0x58655f,{'userId':_0xe098f9}),this['_touched']['set'](_0x541c18,{'userId':_0xe098f9}),_0x15c6d7['_execute']();}['_handleSplitOperation'](_0x1ab697){const _0x15885e=null===(_0x1ab697=this['_cloneOperation'](_0x1ab697,this['_idsRoots']))['_authorId']?null:_0x1ab697['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26a6c1=_0x1ab697['graveyardPosition'],_0x3de5db=_0x1ab697['splitPosition']['parent'];_0x1ab697['_execute']();const _0x4fd0c1=_0x3de5db['getAttribute']('vid_end'),_0x4f577b=_0x1ab697['insertionPosition']['nodeAfter'];if(_0x26a6c1){const _0x422b47=_0x4f577b['getAttribute']('vid_end'),_0x3990f1=_0x3de5db['getAttribute']('vid_end');_0x3de5db['_setAttribute']('vid_end',_0x422b47),_0x4f577b['_setAttribute']('vid_end',_0x3990f1),this['_touched']['set'](_0x3de5db['getAttribute']('vid_end'),{'userId':_0x15885e}),this['_touched']['set'](_0x4f577b['getAttribute']('vid_start'),{'userId':_0x15885e});}else{const _0x4be2d4=this['_revisionId']++,_0x5efeaa=this['_revisionId']++;_0x3de5db['_setAttribute']('vid_end',_0x4be2d4),_0x4f577b['_setAttribute']('vid_start',_0x5efeaa),_0x4f577b['_setAttribute']('vid_end',_0x4fd0c1),this['_touched']['set'](_0x4be2d4,{'userId':_0x15885e}),this['_touched']['set'](_0x5efeaa,{'userId':_0x15885e});}}['_handleMarkerOperation'](_0x76d3df){if(!_0x76d3df['affectsData'])return;const _0x1cac50=(_0x76d3df=this['_cloneOperation'](_0x76d3df,this['_diffRoots']))['oldRange']?_0x76d3df['oldRange']['root']:null,_0x5e6f46=_0x76d3df['newRange']?_0x76d3df['newRange']['root']:null;_0x1cac50&&this['_markers']['delete'](_0x76d3df['name']),_0x5e6f46&&this['_markers']['set'](_0x76d3df['name'],_0x76d3df['newRange']['clone']());const _0x3fa83b=null===_0x76d3df['_authorId']?null:_0x76d3df['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x496043=_0x76d3df['name'];if(!this['_touchedMarkers']['has'](_0x496043))return void this['_touchedMarkers']['set'](_0x496043,{'range':_0x76d3df['oldRange'],'userId':_0x3fa83b});const _0x3c9387=this['_touchedMarkers']['get'](_0x496043),_0x46f826=_0x3c9387['range'],_0x63b2bc=_0x76d3df['newRange'];null==_0x46f826&&null==_0x63b2bc||_0x46f826&&_0x63b2bc&&_0x46f826['isEqual'](_0x63b2bc)?this['_touchedMarkers']['delete'](_0x76d3df['name']):_0x3c9387['userId']=_0x3fa83b;}['_handleRootOperation'](_0x567851,_0x529dda){this['_diffRoots']['has'](_0x567851['rootName'])?this['_diffRoots']['get'](_0x567851['rootName'])['_isAttached']=_0x567851['isAdd']:(this['_diffRoots']['set'](_0x567851['rootName'],F(_0x567851['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x567851['rootName'],{}),_0x529dda&&this['_idsRoots']['set'](_0x567851['rootName'],F(_0x567851['rootName'],!0x0)));const _0xae524a=null===_0x567851['_authorId']?null:_0x567851['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5db91a=this['_touchedRoots']['get'](_0x567851['rootName']);_0x5db91a&&_0x5db91a['userId']===_0xae524a?this['_touchedRoots']['delete'](_0x567851['rootName']):this['_touchedRoots']['set'](_0x567851['rootName'],{'userId':_0xae524a,'isAttached':_0x567851['isAdd']});}['_handleRootAttributeOperation'](_0x11a265){const _0x2423db=this['_diffRootsAttributes']['get'](_0x11a265['root']['rootName']);null===_0x11a265['newValue']?delete _0x2423db[_0x11a265['key']]:_0x2423db[_0x11a265['key']]=_0x11a265['newValue'];}}function T(_0x991a53){const _0x3979ad=F(_0x991a53['rootName'],_0x991a53['isAttached']());for(const _0x362f2b of _0x991a53['getChildren']()){const _0x1ff64e=_0x362f2b['_clone'](!0x0);_0x3979ad['_appendChild'](_0x1ff64e);}return _0x3979ad;}function F(_0x3dce47,_0x943966=!0x0){const _0x3ba558=new mt();return _0x3ba558['rootName']=_0x3dce47,_0x3ba558['_isAttached']=_0x943966,_0x3ba558['isAttached']=()=>_0x3ba558['_isAttached'],_0x3ba558;}function B(_0x3ff6de,_0x596c4d,_0x58902a){const _0x396fe7='elementEnd'==_0x3ff6de['type']?_0x58902a['createPositionAt'](_0x3ff6de['item'],'end'):_0x58902a['createPositionBefore'](_0x3ff6de['item']);return _0x58902a['createPositionFromPath'](_0x596c4d,_0x396fe7['path'],_0x396fe7['stickiness']);}function J(_0xe87d00,_0x15cf0e,_0x204376){const _0x3f6b70='elementStart'==_0xe87d00['type']?_0x204376['createPositionAt'](_0xe87d00['item'],0x0):_0x204376['createPositionAfter'](_0xe87d00['item']);return _0x204376['createPositionFromPath'](_0x15cf0e,_0x3f6b70['path'],_0x3f6b70['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5c8480,_0x586d9c){super(_0x5c8480),this['focusTracker']=new _0x2ca15a(),this['keystrokes']=new _0x584f6d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x586d9c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x34e50f(this);}['render'](){super['render'](),_0x1370dc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4ac10b=_0x36f4a5=>_0x36f4a5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4ac10b),this['keystrokes']['set']('arrowleft',_0x4ac10b),this['keystrokes']['set']('arrowup',_0x4ac10b),this['keystrokes']['set']('arrowdown',_0x4ac10b);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x205a86){this['revisionNameInputView']['fieldView']['element']['value']=_0x205a86['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x36faa2){const _0x1e5d59=new _0x4b212a(this['locale'],_0x2ab85),_0x155867=_0x1e5d59['fieldView'];_0x155867['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x46ceda=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x36faa2&&(_0x46ceda+='\x20('+m(this['locale'],'optional')+')'),(_0x1e5d59['label']=_0x46ceda,_0x155867['on']('input',()=>{this['revisionNameInputValue']=_0x155867['element']['value']['trim']();}),_0x1e5d59);}}class u extends _0x19d40b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4685ec=this['editor'],_0x2454e6=_0x4685ec['plugins']['get']('RevisionTracker');_0x4685ec['ui']['componentFactory']['add']('revisionHistory',_0x5150e3=>{const _0x16cf50=_0xe9c734(_0x5150e3),_0x172bb2=_0x16cf50['panelView']['children'],_0x55a17e=new _0x5de502(_0x5150e3),_0x1c1dea=new _0x3456ba(_0x5150e3),_0x5d4803=new te(_0x5150e3),_0x121e65=new _0x3456ba(_0x5150e3),_0x20351f=new te(_0x5150e3);return _0x16cf50['bind']('isEnabled')['to'](_0x2454e6,'isReady',_0x2454e6,'isEnabled',_0x4685ec,'isReadOnly',(_0x360df2,_0x1b8639,_0x1a0fca)=>_0x360df2&&_0x1b8639&&!_0x1a0fca),_0x16cf50['buttonView']['set']({'icon':_0x46ecca['history'],'label':m(_0x5150e3,'Revision\x20history'),'tooltip':!0x0}),_0x5d4803['set']({'label':m(_0x5150e3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5d4803['bind']('isEnabled')['to'](_0x2454e6,'isReady',_0x2454e6,'isEnabled',_0x4685ec,'isReadOnly',(_0x22dbed,_0x30885b,_0x51de20)=>_0x22dbed&&_0x30885b&&!_0x51de20),_0x5d4803['on']('execute',()=>this['_showDialog']()),_0x20351f['set']({'label':m(_0x5150e3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x20351f['bind']('isEnabled')['to'](_0x2454e6,'isReady',_0x4685ec,'isReadOnly',(_0x3d9fe4,_0x53e9a7)=>_0x3d9fe4&&!_0x53e9a7),_0x20351f['on']('execute',()=>{_0x4685ec['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x16cf50['isOpen']=!0x1,_0x4685ec['editing']['view']['focus']();}),_0x1c1dea['children']['add'](_0x5d4803),_0x121e65['children']['add'](_0x20351f),_0x55a17e['role']='menu',_0x55a17e['items']['addMany']([_0x1c1dea,_0x121e65]),_0x172bb2['add'](_0x55a17e),_0x16cf50;}),_0x4685ec['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2f6a84=this['editor'],_0x85d319=_0x2f6a84['locale'],_0x33cf2b=new _0xf539ea(_0x85d319),_0xf07c53=new _0x1b4b65(_0x85d319);_0x33cf2b['buttonView']['set']({'icon':_0x46ecca['history'],'label':m(_0x85d319,'Revision\x20history')});const _0x1f8b76=new _0x5383f4(_0x85d319,_0x33cf2b),_0x40b3ae=new _0x4188a5(_0x85d319);_0x40b3ae['set']({'label':m(_0x85d319,'Save\x20current\x20revision')}),_0x40b3ae['delegate']('execute')['to'](_0x33cf2b),_0x40b3ae['on']('execute',()=>{this['_showDialog']();}),_0x1f8b76['children']['add'](_0x40b3ae),_0xf07c53['items']['add'](_0x1f8b76);const _0x2cf411=new _0x5383f4(_0x85d319,_0x33cf2b),_0x4cdc98=new _0x4188a5(_0x85d319);return _0x4cdc98['set']({'label':m(_0x85d319,'Open\x20revision\x20history')}),_0x4cdc98['delegate']('execute')['to'](_0x33cf2b),_0x4cdc98['on']('execute',()=>{_0x2f6a84['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2cf411['children']['add'](_0x4cdc98),_0xf07c53['items']['add'](_0x2cf411),_0x33cf2b['panelView']['children']['add'](_0xf07c53),_0x33cf2b;}['_showDialog'](){const _0x20fbd6=this['editor'],_0x7f21cc=_0x20fbd6['locale'],_0x4f35c4=_0x20fbd6['plugins']['get']('Dialog'),_0x5b6560=_0x20fbd6['plugins']['get']('RevisionTracker');function _0x504e32(_0x389619){_0x20fbd6['config']['get']('revisionHistory.requireRevisionName')&&''===_0x389619['revisionName']?_0x389619['revisionNameInputView']['errorText']=m(_0x7f21cc,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x20fbd6['plugins']['get'](l)['saveRevision']({'name':_0x389619['revisionName']}),_0x4f35c4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x504e32(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4f35c4['show']({'id':'revisionSave','title':m(_0x7f21cc,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x20fbd6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4f35c4['hide']()},{'label':m(_0x20fbd6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1e957f){_0x1e957f['bind']('isEnabled')['to'](_0x5b6560,'isReady',_0x5b6560,'isEnabled',_0x20fbd6,'isReadOnly',(_0x326dbd,_0x593459,_0x3ee621)=>_0x326dbd&&_0x593459&&!_0x3ee621);},'onExecute':()=>_0x504e32(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x511584=this['editor'],_0x52f816=_0x511584['locale'];this['_saveRevisionFormView']=new hs(_0x52f816,_0x511584['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x587349,_0x5cc7b2){super(_0x587349),this['_model']=_0x5cc7b2,this['changeId']=_0x5cc7b2['id'];const _0x1c2e14=this['bindTemplate'],_0x250ac4=m(_0x587349,_0x5cc7b2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5cc7b2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5cc7b2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1c2e14['to']('type',_0x732bee=>'ck-revision-change__'+_0x732bee)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x250ac4}]},{'text':'\x20'+_0x5cc7b2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x5ec8ed(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x56976e){super(),this['id']=_0x56976e['id']||_0x2db367(),this['author']=_0x56976e['author'],this['type']=_0x56976e['type'],this['data']=_0x56976e['data']||{},this['rootName']=_0x56976e['rootName'],this['set']('createdAt',_0x56976e['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(_0x5cf166,_0x30d7be){this['newRevisionId']=_0x5cf166,this['oldRevisionId']=_0x30d7be,this['changes']=new _0x2ea1f0();}['_setChanges'](_0x3120c3){for(const _0x18dfe8 of _0x3120c3)this['changes']['add'](_0x18dfe8);}}const Y={'c':_0x5c019d,'a':_0x2a12b9,'e':_0xa92834,'r':_0x17c041,'u':_0x574306};class d extends _0x19d40b{['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[_0x2b50cc,_0x1651d4,j];}constructor(_0xde1ef6){super(_0xde1ef6),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',(_0x3d9566,_0x4900c8,_0x518a6f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x547a67=>{for(const _0x11402b of this['editor']['editing']['view']['document']['roots'])_0x518a6f?_0x547a67['removeClass']('ck-editor__editable__overlay',_0x11402b):_0x547a67['addClass']('ck-editor__editable__overlay',_0x11402b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x202197=>null!==_0x202197),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1814e8,_0x149d15,_0x3e6f28)=>_0x1814e8&&_0x3e6f28?_0x149d15['changes']['getIndex'](_0x3e6f28):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4ff26a,_0x137978)=>_0x4ff26a?_0x137978['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1651d4);}['init'](){const _0x49c57a=this['editor'],_0x30bf3f=new _t(_0x49c57a,{'direction':'backward'}),_0x295898=new _t(_0x49c57a,{'direction':'forward'});(_0x49c57a['commands']['add']('showPreviousChange',_0x30bf3f),_0x49c57a['commands']['add']('showNextChange',_0x295898),_0x49c57a['commands']['add']('restoreRevision',new pt(_0x49c57a)),this['on']('change:numberOfChanges',()=>{_0x30bf3f['refresh'](),_0x295898['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x49c57a['enableReadOnlyMode']('revision-viewer'),_0x49c57a['plugins']['has']('WidgetToolbarRepository'))&&_0x49c57a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2570de){await this['loadRevisionData'](_0x2570de);const _0x3d5d2f={};for(const _0x1f3d78 in _0x2570de['diffData']){if(_0x2570de['diffData'][_0x1f3d78]['attachChange']&&!_0x2570de['diffData'][_0x1f3d78]['attachChange']['isAttached'])continue;const _0x238120=this['_removeRevisionMarkers'](JSON['parse'](_0x2570de['diffData'][_0x1f3d78]['insertions'])),_0x201221=this['editor']['editing']['view']['document'],_0x1b80ee=new _0x460b1e(_0x201221,_0x238120['map'](_0x1ab928=>this['_getViewObj'](_0x1ab928)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3d5d2f[_0x1f3d78]=this['editor']['data']['processor']['toData'](_0x1b80ee),this['editor']['data']['processor']['useFillerType']('default');}return _0x3d5d2f;}async['getRevisionRootsAttributes'](_0x560928){await this['loadRevisionData'](_0x560928);const _0x1c464c={};for(const _0x5ea883 in _0x560928['diffData'])_0x560928['diffData'][_0x5ea883]['attachChange']&&!_0x560928['diffData'][_0x5ea883]['attachChange']['isAttached']||(_0x1c464c[_0x5ea883]=_0x560928['diffData'][_0x5ea883]['attributesAfter']||{});return _0x1c464c;}['_removeRevisionMarkers'](_0x395792){return(_0x395792=_0x395792['filter'](_0x4b8fde=>!_0x4b8fde['name']||'revision-start'!==_0x4b8fde['name']&&'revision-end'!==_0x4b8fde['name']))['forEach'](_0x152475=>{'string'!=typeof _0x152475&&(_0x152475['children']=this['_removeRevisionMarkers'](_0x152475['children']),_0x152475['attributes']=_0x152475['attributes']['filter'](_0x252d3c=>!_0x252d3c[0x0]['startsWith']('data-revision-')));}),_0x395792;}async['compare'](_0x5d244a,_0x8d4c15,_0xd8790b=!0x1){if(!this['isEnabled'])return;const _0x1d2a0f=this['diff'],_0x2067d5=this['repository'],_0x13afda='string'==typeof _0x5d244a?_0x2067d5['getRevision'](_0x5d244a):_0x5d244a,_0x55c090='string'==typeof _0x8d4c15?_0x2067d5['getRevision'](_0x8d4c15):_0x8d4c15,_0x1ccea9=_0x13afda['id'],_0x2f1538=_0x55c090?_0x55c090['id']:null;if(!_0xd8790b&&this['diff']&&this['diff']['newRevisionId']===_0x1ccea9&&this['diff']['oldRevisionId']===_0x2f1538)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1ccea9,_0x2f1538);const _0x3cc186=this['_getRevisionsRange'](_0x13afda,_0x55c090,!0x0)['map'](_0x127f75=>this['loadRevisionData'](_0x127f75));return _0x3cc186['push'](new Promise(_0xbcaf52=>{setTimeout(_0xbcaf52,0x14);})),Promise['all'](_0x3cc186)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x300e7f=this['_getDiff'](_0x1ccea9,_0x2f1538);for(const _0x3e5902 of _0x300e7f['changes'])this['_changeIdToChange']['set'](_0x3e5902['id'],_0x3e5902);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x326b24=>{for(const _0x435ecb of this['editor']['model']['document']['getRootNames']())_0x326b24['detachRoot'](_0x435ecb);for(const _0x3aeacc of Object['keys'](_0x300e7f['model'])){const _0x18665f=_0x326b24['addRoot'](_0x3aeacc);for(const _0x307c0f of Object['keys'](_0x300e7f['attributes'][_0x3aeacc]))_0x326b24['setAttribute'](_0x307c0f,_0x300e7f['attributes'][_0x3aeacc][_0x307c0f],_0x18665f);_0x326b24['insert'](_0x300e7f['model'][_0x3aeacc],_0x18665f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x300e7f['changes'])),this['isReady']=!0x0;})['catch'](_0x50494b=>{console['error'](_0x50494b),this['_cleanUp'](),_0x1d2a0f&&(this['diff']=_0x1d2a0f),this['isReady']=!0x0;});}['addRevisionData'](_0x10a736,_0x21acdd){const _0x2e3831=this['repository']['createRevision'](_0x10a736);return _0x2e3831['on']('_update',(_0x468e8f,_0x1b445c,_0x29cbd5)=>_0x21acdd(_0x1b445c,_0x29cbd5,_0x2e3831)),this['repository']['addRevision'](_0x2e3831),_0x2e3831;}['loadRevisionData'](_0x91a9b5){if(!_0x91a9b5||_0x91a9b5['diffData'])return Promise['resolve']();{const _0x13cfe5=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x13cfe5,'revisionId':_0x91a9b5['id']})['then'](_0x27afe2=>{_0x91a9b5['_update']({'diffData':_0x27afe2['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},_0xe4373f=>{for(const _0x3e786f of this['editor']['model']['document']['getRootNames']())_0xe4373f['detachRoot'](_0x3e786f);});}['_sortAndFilterDiffChanges'](_0xe1ad77){const _0x530122=[],_0x5d92b9=new Map();for(const _0x13db14 of this['editor']['model']['document']['getRootNames']()){const _0x2fc6f7=this['editor']['editing']['view']['getDomRoot'](_0x13db14);if(!_0x2fc6f7)continue;const _0x52cceb=_0x2fc6f7['getClientRects']()['item'](0x0);_0x52cceb&&(_0x530122['push'](_0x13db14),_0x5d92b9['set'](_0x13db14,_0x52cceb));}return _0x530122['sort']((_0x24d4e0,_0x382f94)=>{const _0x274125=_0x5d92b9['get'](_0x24d4e0),_0x3ef09c=_0x5d92b9['get'](_0x382f94);return _0x274125['y']-_0x3ef09c['y']||_0x274125['x']-_0x3ef09c['x'];}),(_0xe1ad77=_0xe1ad77['filter'](_0x261b92=>_0x530122['includes'](_0x261b92['rootName'])))['sort']((_0x3b09d8,_0x468946)=>_0x530122['indexOf'](_0x3b09d8['rootName'])-_0x530122['indexOf'](_0x468946['rootName'])),_0xe1ad77;}['_makeTape'](_0x310b58){const _0x42b2fa=Array['from'](_0x310b58['markers'])['filter'](([_0x571f3d,_0x5c241c])=>_0x571f3d['startsWith']('revision:')&&!_0x5c241c['isCollapsed']),_0x337789=Array['from'](this['editor']['model']['createRangeIn'](_0x310b58)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x42b2fa['length'])for(const _0x3de539 of _0x337789){const [_0x5f38df,_0x498782]=_0x42b2fa[0x0],[,_0x39f76e,_0x3a1339]=_0x5f38df['split'](':');if(_0x498782['end']['isEqual'](_0x3de539['nextPosition'])&&_0x42b2fa['shift'](),(_0x3de539['previousPosition']['isEqual'](_0x498782['start'])||_0x3de539['previousPosition']['isAfter'](_0x498782['start']))&&('insertion'==_0x39f76e?_0x3de539['isAdded']={'userId':_0x3a1339}:'deletion'==_0x39f76e&&(_0x3de539['isRemoved']={'userId':_0x3a1339})),0x0==_0x42b2fa['length'])break;}return _0x337789;}['_refreshStartEndIndex'](_0x3a83f8){const _0x2658e4=new Map();for(let _0x4650de=0x0;_0x4650de<_0x3a83f8['length'];_0x4650de++)'text'===_0x3a83f8[_0x4650de]['type']?(_0x3a83f8[_0x4650de]['item']['startIndex']=_0x4650de,_0x3a83f8[_0x4650de]['item']['endIndex']=_0x4650de):('elementStart'===_0x3a83f8[_0x4650de]['type']?_0x3a83f8[_0x4650de]['item']['startIndex']=_0x4650de:'elementEnd'===_0x3a83f8[_0x4650de]['type']&&(_0x3a83f8[_0x4650de]['item']['endIndex']=_0x4650de),_0x2658e4['set'](_0x3a83f8[_0x4650de]['id'],_0x4650de));for(const _0x47a30e of _0x2658e4['values']())'elementStart'===_0x3a83f8[_0x47a30e]['type']?_0x3a83f8[_0x47a30e]['item']['endIndex']=_0x2658e4['get'](_0x3a83f8[_0x47a30e]['pairId']):'elementEnd'===_0x3a83f8[_0x47a30e]['type']&&(_0x3a83f8[_0x47a30e]['item']['startIndex']=_0x2658e4['get'](_0x3a83f8[_0x47a30e]['pairId']));}['_processTape'](_0x2838f8){for(let _0xc5dea9=0x0;_0xc5dea9<_0x2838f8['length'];_0xc5dea9++){if('elementStart'===_0x2838f8[_0xc5dea9]['type'])_0x2838f8[_0xc5dea9]['item']['startIndex']=_0xc5dea9;else{if('elementEnd'===_0x2838f8[_0xc5dea9]['type']){_0x2838f8[_0xc5dea9]['item']['endIndex']=_0xc5dea9;const _0x40d211=_0x2838f8[_0xc5dea9]['item']['startIndex'];_0x2838f8[_0x40d211]['pairId']=_0x2838f8[_0xc5dea9]['id'],_0x2838f8[_0xc5dea9]['pairId']=_0x2838f8[_0x40d211]['id'];}else _0x2838f8[_0xc5dea9]['item']['startIndex']=_0xc5dea9,_0x2838f8[_0xc5dea9]['item']['endIndex']=_0xc5dea9,_0x2838f8[_0xc5dea9]['pairId']=null;}_0x2838f8[_0xc5dea9]['markersStart']||(_0x2838f8[_0xc5dea9]['markersStart']=[],_0x2838f8[_0xc5dea9]['markersEnd']=[]);}}['_markInsertions'](_0x3fb475,_0x2538c0){const _0x539e3c=_0x3fb475['filter'](_0x53f4fc=>!_0x53f4fc['isAdded']);for(let _0x280241=0x0;_0x280241<_0x2538c0['length'];_0x280241++)_0x2538c0[_0x280241]['isAdded']&&(_0x539e3c[_0x280241]['isAdded']=_0x2538c0[_0x280241]['isAdded']);}['_makeModelFromViewString'](_0x3c3332){const _0x40047a=JSON['parse'](_0x3c3332),_0x51bb24=this['editor']['editing']['view']['document'],_0x268a4c=new _0x460b1e(_0x51bb24,_0x40047a['map'](_0x23af23=>this['_getViewObj'](_0x23af23)));return this['editor']['data']['toModel'](_0x268a4c);}['_getViewObj'](_0x263de4){const _0x205683=this['editor']['editing']['view']['document'];if('string'==typeof _0x263de4)return new _0x2adbf7(_0x205683,_0x263de4);{const _0xdc3efc=_0x263de4['children']['map'](_0x5be24d=>this['_getViewObj'](_0x5be24d));return new(Y[_0x263de4['type']]||_0x9d4bdd)(_0x205683,_0x263de4['name'],_0x263de4['attributes'],_0xdc3efc);}}['_getDiff'](_0x39ef84,_0x52c14b=null){const _0x58fa02=this['repository']['getRevision'](_0x39ef84),_0x120201=_0x52c14b?this['repository']['getRevision'](_0x52c14b):null,_0x3f73df=this['_getRevisionsRange'](_0x58fa02,_0x120201),_0x556bf2=_0x3f73df[_0x3f73df['length']-0x1],_0x1a4e70=new Map(),_0x3b19f3={'model':{},'attributes':{},'changes':[]},_0x168d88=new Set(),_0x2e10ae=new Map();for(let _0x1ab9d5=_0x3f73df['length']-0x1;_0x1ab9d5>=0x0;_0x1ab9d5--){const _0x56b85e=_0x3f73df[_0x1ab9d5];for(const _0x1d63f6 of Object['keys'](_0x56b85e['diffData']))if(_0x56b85e['diffData'][_0x1d63f6]['attachChange']){const _0x30f077=_0x56b85e['diffData'][_0x1d63f6]['attachChange'];_0x30f077['isAttached']?(_0x168d88['add'](_0x1d63f6),_0x2e10ae['has'](_0x1d63f6)&&_0x2e10ae['get'](_0x1d63f6)['userId']==_0x30f077['userId']?_0x2e10ae['delete'](_0x1d63f6):_0x2e10ae['set'](_0x1d63f6,_0x30f077)):_0x2e10ae['has'](_0x1d63f6)?(_0x168d88['delete'](_0x1d63f6),_0x2e10ae['delete'](_0x1d63f6)):(_0x168d88['add'](_0x1d63f6),_0x2e10ae['set'](_0x1d63f6,_0x30f077));}else _0x168d88['add'](_0x1d63f6);}for(const _0xdec72d of _0x168d88){const _0x31310e=_0x2e10ae['has'](_0xdec72d)&&!_0x2e10ae['get'](_0xdec72d)['isAttached'];let _0x283f71=_0x31310e?_0x3f73df['length']-0x1:0x0;const _0x514111=_0x31310e?-0x1:0x1;for(;_0x3f73df[_0x283f71];){const _0xa8d656=_0x3f73df[_0x283f71];if(_0xa8d656['diffData'][_0xdec72d]){const _0x10b865=_0x31310e?_0xa8d656['diffData'][_0xdec72d]['attributesBefore']:_0xa8d656['diffData'][_0xdec72d]['attributesAfter'];_0x3b19f3['attributes'][_0xdec72d]=_0x10b865?_0x43a474(_0x10b865):{};break;}_0x283f71+=_0x514111;}}for(const _0x597724 of _0x3f73df){_0x597724['model']={};for(const _0xa2c523 of _0x597724['authors'])_0x1a4e70['set'](_0xa2c523['id'],_0xa2c523);for(const _0x5f1313 of _0x168d88){const _0x1bec29=_0x597724['diffData'][_0x5f1313]?_0x597724['diffData'][_0x5f1313]['insertions']:'[]',_0x1be1a1=_0x597724['diffData'][_0x5f1313]?_0x597724['diffData'][_0x5f1313]['deletions']:'[]';_0x597724['model'][_0x5f1313]={'insertions':this['_makeModelFromViewString'](_0x1bec29),'deletions':this['_makeModelFromViewString'](_0x1be1a1)};}}for(const _0x54b5e5 of _0x168d88){let _0x3e36f5=null,_0x590583=0x0;const _0x28f59d=new Map(Array['from'](_0x58fa02['model'][_0x54b5e5]['insertions']['markers'])['filter'](([_0x42fcdb])=>!_0x42fcdb['startsWith']('revision:')));let _0x2f2626=0x0;for(const _0x2b9d6c of _0x3f73df){const _0x4d9c0f=this['_makeTape'](_0x2b9d6c['model'][_0x54b5e5]['insertions']);_0x2b9d6c==_0x58fa02?(_0x3e36f5=_0x4d9c0f,_0x590583=_0x3e36f5['length'],_0x3e36f5['forEach'](_0x4ba516=>{_0x4ba516['id']=_0x2f2626++;}),this['_processTape'](_0x3e36f5)):this['_markInsertions'](_0x3e36f5,_0x4d9c0f);const _0xa4b786=_0x3e36f5['filter'](_0x3917ed=>!_0x3917ed['isAdded'])['map'](_0x5c6df3=>_0x5c6df3['id']);let _0x3f8ea3=0x0;const _0x1df0e6=this['_makeTape'](_0x2b9d6c['model'][_0x54b5e5]['deletions']);_0x1df0e6['forEach'](_0x499121=>{_0x499121['isRemoved']?_0x499121['id']=_0x590583++:_0x499121['id']=_0xa4b786[_0x3f8ea3++];}),this['_processTape'](_0x1df0e6),this['_setDistance'](_0x3e36f5,'isAdded'),this['_setDistance'](_0x1df0e6,'isRemoved'),_0x2b9d6c==_0x58fa02&&this['_markMarkers'](_0x3e36f5,_0x28f59d),_0x3e36f5=this['_joinTapes'](_0x3e36f5,_0x1df0e6),this['_refreshStartEndIndex'](_0x3e36f5),this['_setDistance'](_0x3e36f5,'isRemoved');}_0x3e36f5=_0x3e36f5['filter'](_0x11770d=>!(_0x11770d['isAdded']&&_0x11770d['isRemoved']));const _0x4074ca=new Map(_0x556bf2['model'][_0x54b5e5]['deletions']['markers']),_0x585eaf=new Set(_0x28f59d['keys']());for(const _0x51c17a of _0x4074ca['keys']())_0x585eaf['delete'](_0x51c17a);this['_markSuggestions'](_0x3e36f5,_0x585eaf),this['_fixObsoleteTags'](_0x3e36f5),_0x3e36f5=this['_removeMissingPairs'](_0x3e36f5),_0x3e36f5=this['_markMismatchedRemovedTags'](_0x3e36f5),_0x3e36f5=this['_removeUnsupportedChanges'](_0x3e36f5);const {root:_0x2975e0,changes:_0x214631}=this['_makeModelFromTape'](_0x3e36f5,_0x1a4e70,_0x54b5e5);_0x3b19f3['model'][_0x54b5e5]=_0x2975e0;const _0x55474e=_0x2e10ae['get'](_0x54b5e5);if(_0x55474e){const _0x45069d=_0x1a4e70['get'](_0x55474e['userId']),_0x4c6b6a=new r({'author':_0x45069d,'type':_0x55474e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x54b5e5});_0x214631['unshift'](_0x4c6b6a),_0x3b19f3['attributes'][_0x54b5e5]['revisionHistoryAttachChange']=_0x4c6b6a['id'];}_0x3b19f3['changes']=_0x3b19f3['changes']['concat'](_0x214631);}return _0x3b19f3;}['_markMarkers'](_0x24f23e,_0x1677e8){for(let _0xe50e69=0x0;_0xe50e69<_0x24f23e['length'];_0xe50e69++)for(const [_0x2ba3b2,_0x183d08]of _0x1677e8)_0x183d08['start']['isEqual'](_0x24f23e[_0xe50e69]['previousPosition'])&&_0x24f23e[_0xe50e69]['markersStart']['push'](_0x2ba3b2),_0x183d08['end']['isEqual'](_0x24f23e[_0xe50e69]['nextPosition'])&&_0x24f23e[_0xe50e69]['markersEnd']['push'](_0x2ba3b2);}['_joinTapes'](_0x275023,_0x18ce4e){let _0x34ac89=[],_0x521492=0x0,_0x4f0bc4=0x0;for(;_0x521492<_0x275023['length']||_0x4f0bc4<_0x18ce4e['length'];){const _0x5cabd9=_0x275023[_0x521492]||{},_0x2e8341=_0x18ce4e[_0x4f0bc4]||{};if(_0x5cabd9['id']==_0x2e8341['id'])_0x521492++,_0x4f0bc4++,_0x34ac89['push'](_0x5cabd9);else{if(_0x2e8341['isRemoved']&&_0x5cabd9['isAdded']){const {commonTape:_0x4dfc2b,iEnd:_0x3dc393,jEnd:_0x16c30e}=this['_threeWayMerge'](_0x275023,_0x521492,_0x18ce4e,_0x4f0bc4);_0x34ac89=_0x34ac89['concat'](_0x4dfc2b),_0x521492=_0x3dc393,_0x4f0bc4=_0x16c30e;}else _0x2e8341['isRemoved']?(_0x4f0bc4++,_0x34ac89['push'](_0x2e8341)):(_0x521492++,_0x34ac89['push'](_0x5cabd9));}}return _0x34ac89;}['_markSuggestions'](_0x473a03,_0x38da87){const _0x4fc27f=[];for(let _0x29afd6=0x0;_0x29afd6<_0x473a03['length'];_0x29afd6++){for(let _0xce97f6=0x0;_0xce97f6<_0x473a03[_0x29afd6]['markersStart']['length'];_0xce97f6++){const _0x596b49=_0x473a03[_0x29afd6]['markersStart'][_0xce97f6];if(!_0x38da87['has'](_0x596b49))continue;const {group:_0x172e5a,type:_0x5b3747,authorId:_0x2581bb}=_0x161c78(_0x596b49);'revision-suggestion'!=_0x172e5a||'insertion'!=_0x5b3747&&'deletion'!=_0x5b3747||(_0x4fc27f['unshift']({'type':_0x5b3747,'name':_0x596b49,'userId':_0x2581bb}),_0x473a03[_0x29afd6]['markersStart']['splice'](_0xce97f6,0x1),_0xce97f6--);}_0x5a5ee4(_0x473a03[_0x29afd6]);for(let _0x2bae40=0x0;_0x2bae40<_0x473a03[_0x29afd6]['markersEnd']['length'];_0x2bae40++){const _0x2edd3d=_0x473a03[_0x29afd6]['markersEnd'][_0x2bae40];if(!_0x38da87['has'](_0x2edd3d))continue;const {group:_0x414e67,type:_0x24c2a1}=_0x161c78(_0x2edd3d);if('revision-suggestion'!=_0x414e67||'insertion'!=_0x24c2a1&&'deletion'!=_0x24c2a1)continue;_0x473a03[_0x29afd6]['markersEnd']['splice'](_0x2bae40,0x1),_0x2bae40--;const _0x2ff612=_0x4fc27f['findIndex'](_0x3e5726=>_0x3e5726['name']==_0x2edd3d);_0x2ff612>-0x1&&_0x4fc27f['splice'](_0x2ff612,0x1);}}function _0x161c78(_0x53c890){const _0x14dfe1=_0x53c890['split'](':');return{'group':_0x14dfe1[0x0],'type':_0x14dfe1[0x1],'subType':_0x14dfe1['length']>=0x5?_0x14dfe1[0x2]:null,'id':_0x14dfe1['length']<0x5?_0x14dfe1[0x2]:_0x14dfe1[0x3],'authorId':_0x14dfe1['length']<0x5?_0x14dfe1[0x3]:_0x14dfe1[0x4],'markerCount':0x6==_0x14dfe1['length']?_0x14dfe1[0x5]:null};}function _0x5a5ee4(_0x12edc2){for(let _0x8bfc57=0x0;_0x8bfc57<_0x4fc27f['length'];_0x8bfc57++){if(_0x12edc2['isAdded']&&'insertion'==_0x4fc27f[_0x8bfc57]['type'])return _0x12edc2['isAddSuggestion']=_0x4fc27f[_0x8bfc57],void delete _0x12edc2['isAdded'];if(!_0x12edc2['isAdded']&&!_0x12edc2['isRemoved']&&'deletion'==_0x4fc27f[_0x8bfc57]['type'])return void(_0x12edc2['isRemoveSuggestion']=_0x4fc27f[_0x8bfc57]);}}}['_setDistance'](_0x147504,_0x14c305){let _0x43f193=0x0,_0xb352ef=!0x1;const _0x45ce4e=new Map();for(const _0x15ed6a of _0x147504)_0x15ed6a[_0x14c305]?_0xb352ef&&(_0x43f193++,_0xb352ef=!0x1):(_0x43f193++,_0xb352ef=!0x0),_0x45ce4e['set'](_0x15ed6a['id'],_0x43f193);for(let _0x257630=0x0;_0x257630<_0x147504['length'];_0x257630++){if('isRemoved'==_0x14c305&&_0x147504[_0x257630]['isAdded']||'isAdded'==_0x14c305&&_0x147504[_0x257630]['isRemoved'])continue;if('text'==_0x147504[_0x257630]['type']){_0x147504[_0x257630]['distance']=0x0;continue;}const _0x58ba15=_0x45ce4e['get'](_0x147504[_0x257630]['pairId']),_0x5a6070=_0x45ce4e['get'](_0x147504[_0x257630]['id']);_0x147504[_0x257630]['distance']=_0x58ba15-_0x5a6070;}}['_getRevisionsRange'](_0x593529,_0x9db63f,_0x5d26a6=!0x1){const _0x5e8d9d=[];let _0x5a545f=this['repository']['getIndex'](_0x593529),_0x420170=this['repository']['getIndex'](_0x9db63f);for(-0x1==_0x420170&&(_0x420170=this['repository']['_revisions']['length'],_0x5d26a6=!0x1);_0x5a545f<_0x420170;)_0x5e8d9d['push'](this['repository']['getRevision'](_0x5a545f)),_0x5a545f++;return _0x5d26a6&&_0x5e8d9d['push'](this['repository']['getRevision'](_0x5a545f)),_0x5e8d9d;}['_threeWayMerge'](_0x1ac1a9,_0x4e8cac,_0x353697,_0x21c073){const _0x30c7a4=this['editor']['model']['schema'];let _0x34988c=_0x4e8cac;for(;_0x1ac1a9[_0x34988c]&&_0x1ac1a9[_0x34988c]['isAdded'];)_0x34988c++;let _0x50a81d=_0x21c073;for(;_0x353697[_0x50a81d]&&_0x353697[_0x50a81d]['isRemoved'];)_0x50a81d++;_0x9a4a83(_0x1ac1a9,_0x4e8cac,_0x34988c),_0x9a4a83(_0x353697,_0x21c073,_0x50a81d);const _0x3d3896=_0x353697['slice'](_0x21c073,_0x50a81d)['concat'](_0x1ac1a9['slice'](_0x4e8cac,_0x34988c));return _0x3d3896['sort']((_0x4ace48,_0x293cc6)=>_0x4ace48['side']!=_0x293cc6['side']?_0x4ace48['side']-_0x293cc6['side']:_0x4ace48['level']!=_0x293cc6['level']?_0x4ace48['level']-_0x293cc6['level']:_0x4ace48['distance']!=_0x293cc6['distance']?_0x293cc6['distance']-_0x4ace48['distance']:!!_0x4ace48['isAdded']!=!!_0x293cc6['isAdded']?-0x1==_0x4ace48['side']||0x0==_0x4ace48['side']?_0x4ace48['isAdded']?-0x1:0x1:_0x4ace48['isAdded']?0x1:-0x1:_0x4ace48['index']-_0x293cc6['index']),{'commonTape':_0x3d3896,'iEnd':_0x34988c,'jEnd':_0x50a81d};function _0x9a4a83(_0x5edc7d,_0x184b96,_0xbd04bf){let _0x4b5377=-0x1,_0x498c86=Number['POSITIVE_INFINITY'],_0x58bfbb=!0x0;for(let _0xde82e2=_0x184b96;_0xde82e2<_0xbd04bf;_0xde82e2++)if(_0x30c7a4['isInline'](_0x5edc7d[_0xde82e2]['item'])||(_0x58bfbb=!0x1),_0x5edc7d[_0xde82e2]['item']['startIndex']<_0x184b96&&(_0x4b5377=_0xde82e2),_0x5edc7d[_0xde82e2]['item']['endIndex']>=_0xbd04bf){_0x498c86=_0xde82e2;break;}_0x58bfbb&&(_0x4b5377=_0xbd04bf-0x1);for(let _0x5f2488=_0x184b96;_0x5f2488<_0xbd04bf;_0x5f2488++)_0x5edc7d[_0x5f2488]['side']=_0x5f2488<=_0x4b5377?-0x1:_0x5f2488<_0x498c86?0x0:0x1,_0x5edc7d[_0x5f2488]['index']=_0x5f2488;let _0x335d16=0x0;for(let _0x1494b1=_0x184b96;_0x1494b1<=_0x4b5377;_0x1494b1++)0x0==_0x5edc7d[_0x1494b1]['distance']?_0x5edc7d[_0x1494b1]['level']=_0x335d16:(_0x335d16++,_0x5edc7d[_0x1494b1]['level']=_0x335d16,_0x335d16++);for(let _0x5aeade=_0x184b96;_0x5aeade<_0xbd04bf;_0x5aeade++)0x0==_0x5edc7d[_0x5aeade]['side']&&(_0x5edc7d[_0x5aeade]['level']=_0x335d16);_0x335d16=0x0;for(let _0x6a8ea5=_0xbd04bf-0x1;_0x6a8ea5>=_0x498c86;_0x6a8ea5--)0x0==_0x5edc7d[_0x6a8ea5]['distance']?_0x5edc7d[_0x6a8ea5]['level']=_0x335d16:(_0x335d16--,_0x5edc7d[_0x6a8ea5]['level']=_0x335d16,_0x335d16--);}}['_fixObsoleteTags'](_0x5edb17){const _0x215692=new Map(),_0x473a05=this['editor']['model']['schema'];for(let _0x294de4=0x1;_0x294de4<_0x5edb17['length'];_0x294de4++){let _0x1b146e,_0x29df1a,_0x1d2fef;const _0x3a794b=_0x5edb17[_0x294de4],_0x44c717=_0x5edb17[_0x294de4-0x1];if('text'==_0x3a794b['type'])continue;if(_0x3a794b['type']!=_0x44c717['type'])continue;if(!_0x473a05['isBlock'](_0x44c717['item'])||_0x473a05['isLimit'](_0x44c717['item']))continue;if(!_0x473a05['isBlock'](_0x3a794b['item'])||_0x473a05['isLimit'](_0x3a794b['item']))continue;if((_0x5edb17[_0x294de4]['isAdded']||_0x5edb17[_0x294de4]['isAddSuggestion'])&&_0x5edb17[_0x294de4-0x1]['isRemoved'])_0x1b146e=_0x5edb17[_0x294de4],_0x29df1a=_0x5edb17[_0x294de4-0x1],_0x1d2fef=_0x294de4-0x1;else{if(!_0x5edb17[_0x294de4]['isRemoved']||!_0x5edb17[_0x294de4-0x1]['isAdded']&&!_0x5edb17[_0x294de4-0x1]['isAddSuggestion'])continue;_0x1b146e=_0x5edb17[_0x294de4-0x1],_0x29df1a=_0x5edb17[_0x294de4],_0x1d2fef=_0x294de4;}const _0x504723=_0x1b146e['level']==_0x29df1a['level'],_0x517841=Math['abs'](_0x1b146e['level'])<Math['abs'](_0x29df1a['level'])&&0x0==_0x29df1a['distance'];(_0x504723||_0x517841)&&(_0x215692['set'](_0x29df1a['id'],_0x1b146e['id']),_0x5edb17['splice'](_0x1d2fef,0x1),_0x294de4--,_0x1b146e['isAdded']=!0x1);}for(let _0x2ba7c3=0x0;_0x2ba7c3<_0x5edb17['length'];_0x2ba7c3++)_0x215692['has'](_0x5edb17[_0x2ba7c3]['pairId'])&&(_0x5edb17[_0x2ba7c3]['pairId']=_0x215692['get'](_0x5edb17[_0x2ba7c3]['pairId']));}['_removeMissingPairs'](_0x4ea439){const _0x4b01e2=new Set(_0x4ea439['map'](_0xc739d7=>_0xc739d7['id']));for(let _0x4031d2=0x0;_0x4031d2<_0x4ea439['length'];_0x4031d2++)_0x4b01e2['has'](_0x4ea439[_0x4031d2]['pairId'])||0x0==_0x4ea439[_0x4031d2]['distance']||(_0x4ea439[_0x4031d2]['isIncorrect']=!0x0);return _0x4ea439['filter'](_0x2f9397=>!_0x2f9397['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2b77af){const _0x346e67=new Set();for(let _0x4b55ca=0x0;_0x4b55ca<_0x2b77af['length'];_0x4b55ca++){if(_0x346e67['has'](_0x2b77af[_0x4b55ca]['id'])&&_0x2b77af[_0x4b55ca]['isRemoved']&&(_0x2b77af[_0x4b55ca]['isIncorrect']=!0x0),_0x2b77af[_0x4b55ca]['isIncorrect'])continue;if(0x0==_0x2b77af[_0x4b55ca]['distance'])continue;if('elementStart'!=_0x2b77af[_0x4b55ca]['type'])continue;if(null==_0x2b77af[_0x4b55ca]['pairId'])continue;let _0x1773ac=_0x4b55ca+0x1,_0x1bc11a=0x0;for(;_0x2b77af[_0x1773ac]['id']!=_0x2b77af[_0x4b55ca]['pairId'];)'elementStart'==_0x2b77af[_0x1773ac]['type']?_0x1bc11a++:'elementEnd'==_0x2b77af[_0x1773ac]['type']&&_0x1bc11a--,_0x1773ac++;if(0x0!=_0x1bc11a){if(_0x2b77af[_0x4b55ca]['isRemoved'])_0x2b77af[_0x4b55ca]['isIncorrect']=!0x0;else{for(;_0x1773ac!=_0x4b55ca;)_0x2b77af[_0x1773ac]['isRemoved']&&0x0!=_0x2b77af[_0x1773ac]['distance']&&(_0x2b77af[_0x1773ac]['isIncorrect']=!0x0,_0x346e67['add'](_0x2b77af[_0x1773ac]['pairId'])),_0x1773ac--;}}}return _0x2b77af['filter'](_0x308531=>!_0x308531['isIncorrect']);}['_removeUnsupportedChanges'](_0x5818ab){const _0x399c66=this['editor']['model']['schema'];for(let _0x8f60b=0x0;_0x8f60b<_0x5818ab['length'];_0x8f60b++){if(!(_0x5818ab[_0x8f60b]['isAdded']||_0x5818ab[_0x8f60b]['isAddSuggestion']||_0x5818ab[_0x8f60b]['isRemoved']||_0x5818ab[_0x8f60b]['isRemoveSuggestion']))continue;if(0x0==_0x5818ab[_0x8f60b]['distance'])continue;const _0x3d86e6=_0x5818ab[_0x8f60b]['item'];_0x399c66['isBlock'](_0x3d86e6)||_0x399c66['isLimit'](_0x3d86e6)||(_0x5818ab[_0x8f60b]['isAdded']&&delete _0x5818ab[_0x8f60b]['isAdded'],_0x5818ab[_0x8f60b]['isAddSuggestion']&&delete _0x5818ab[_0x8f60b]['isAddSuggestion'],_0x5818ab[_0x8f60b]['isRemoveSuggestion']&&delete _0x5818ab[_0x8f60b]['isRemoveSuggestion'],_0x5818ab[_0x8f60b]['isRemoved']&&(_0x5818ab[_0x8f60b]['isIncorrect']=!0x0));}return _0x5818ab['filter'](_0x468006=>!_0x468006['isIncorrect']);}['_makeModelFromTape'](_0x4d9f21,_0x5c1c90,_0xb75d5b){const _0x291f87=new mt(),_0x2a439a=[],_0x4707ed=new Map(),_0x132665=this['editor']['model'],_0x1459d2=_0x132665['schema'],_0x3c6362=[_0x291f87],_0x27b2ff={},_0x49c573={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x448e05=null;const _0x526979=[0x0];for(let _0x36273d=0x0;_0x36273d<_0x4d9f21['length'];_0x36273d++)if('elementStart'===_0x4d9f21[_0x36273d]['type']){_0x4d9f21[_0x36273d]['previousPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979);const _0x8a574b=new ft(_0x4d9f21[_0x36273d]['item']['name'],_0x4d9f21[_0x36273d]['item']['getAttributes']());_0x3c6362[0x0]['_appendChild'](_0x8a574b),_0x526979['push'](0x0),_0x3c6362['unshift'](_0x8a574b),_0x4d9f21[_0x36273d]['nextPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979);}else'elementEnd'===_0x4d9f21[_0x36273d]['type']?(_0x3c6362['shift'](),_0x4d9f21[_0x36273d]['previousPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979),_0x526979['pop'](),_0x526979[_0x526979['length']-0x1]++,_0x4d9f21[_0x36273d]['nextPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979)):(_0x4d9f21[_0x36273d]['previousPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979),_0x448e05?_0x448e05['_data']+=_0x4d9f21[_0x36273d]['item']['data']:_0x448e05=new wt(_0x4d9f21[_0x36273d]['item']['data'],_0x4d9f21[_0x36273d]['item']['getAttributes']()),_0x4d9f21[_0x36273d+0x1]&&'text'===_0x4d9f21[_0x36273d+0x1]['type']&&_0x18c39a(_0x448e05,_0x4d9f21[_0x36273d+0x1]['item'])||(_0x3c6362[0x0]['_appendChild'](_0x448e05),_0x448e05=null),_0x526979[_0x526979['length']-0x1]+=_0x4d9f21[_0x36273d]['item']['offsetSize'],_0x4d9f21[_0x36273d]['nextPosition']=_0x132665['createPositionFromPath'](_0x291f87,_0x526979));for(let _0x10ad96=0x0;_0x10ad96<_0x4d9f21['length'];_0x10ad96++){const _0x10c69a=_0x4d9f21[_0x10ad96]['previousPosition'],_0x1069fa=_0x4d9f21[_0x10ad96]['nextPosition'];for(const _0x4a2739 of _0x4d9f21[_0x10ad96]['markersStart'])_0x4707ed['set'](_0x4a2739,{'start':_0x10c69a,'end':null});_0x14daad('isRemoveSuggestion',_0x10ad96,_0x10c69a,_0x1069fa),_0x14daad('isAddSuggestion',_0x10ad96,_0x10c69a,_0x1069fa),_0x14daad('isRemoved',_0x10ad96,_0x10c69a,_0x1069fa),_0x14daad('isAdded',_0x10ad96,_0x10c69a,_0x1069fa);for(const _0x5e9fe1 of _0x4d9f21[_0x10ad96]['markersEnd']){_0x4707ed['get'](_0x5e9fe1)['end']=_0x1069fa;}}for(const [_0x316ec4,_0x930a2]of _0x4707ed){const _0x15b0c4=this['editor']['model']['createRange'](_0x930a2['start'],_0x930a2['end']);_0x291f87['markers']['set'](_0x316ec4,_0x15b0c4);}return _0x2a439a['sort']((_0x589e2b,_0x351795)=>{const _0x1945f7=_0x291f87['markers']['get']('revision:'+_0x589e2b['id']),_0x720b47=_0x291f87['markers']['get']('revision:'+_0x351795['id']);return _0x1945f7['start']['isBefore'](_0x720b47['start'])?-0x1:_0x1945f7['start']['isAfter'](_0x720b47['start'])?0x1:_0x1945f7['end']['isBefore'](_0x720b47['end'])?-0x1:_0x1945f7['end']['isAfter'](_0x720b47['end'])?0x1:'add'===_0x589e2b['type']?-0x1:0x1;}),{'root':_0x291f87,'changes':_0x2a439a};function _0x14daad(_0x19772a,_0x5eb361,_0x33680f,_0x58e2c9){const _0x359343=!!_0x4d9f21[_0x5eb361][_0x19772a],_0x401a5d=_0x359343?_0x4d9f21[_0x5eb361][_0x19772a]['userId']:null,_0x2e0d5c=_0x5eb361===_0x4d9f21['length']-0x1,_0x32c628=_0x49c573[_0x19772a][0x0],_0x4ad3bc=_0x1459d2['isObject'](_0x4d9f21[_0x5eb361]['item']);!_0x27b2ff[_0x19772a]&&_0x359343?_0x27b2ff[_0x19772a]={'start':_0x33680f,'tapeItem':_0x4d9f21[_0x5eb361],'userId':_0x401a5d,'type':_0x19772a}:_0x27b2ff[_0x19772a]&&!_0x359343?(_0x27b2ff[_0x19772a]['end']=_0x33680f,_0x59e01b(_0x27b2ff[_0x19772a]),_0x27b2ff[_0x19772a]=null):_0x27b2ff[_0x19772a]&&_0x359343&&_0x27b2ff[_0x19772a]['userId']!==_0x401a5d&&(_0x27b2ff[_0x19772a]['end']=_0x33680f,_0x32c628&&_0x32c628['userId']===_0x27b2ff[_0x19772a]['userId']||_0x59e01b(_0x27b2ff[_0x19772a]),_0x27b2ff[_0x19772a]={'start':_0x33680f,'tapeItem':_0x4d9f21[_0x5eb361],'userId':_0x401a5d,'type':_0x19772a}),_0x27b2ff[_0x19772a]&&_0x4ad3bc&&('elementStart'!==_0x4d9f21[_0x5eb361]['type']||_0x32c628&&_0x32c628['userId']===_0x401a5d||_0x49c573[_0x19772a]['unshift']({'userId':_0x401a5d,'object':_0x4d9f21[_0x5eb361]['item'],'change':_0x27b2ff[_0x19772a]}),'elementEnd'===_0x4d9f21[_0x5eb361]['type']&&_0x32c628&&_0x32c628['object']===_0x4d9f21[_0x5eb361]['item']&&(_0x49c573[_0x19772a]['shift'](),_0x27b2ff[_0x19772a]=_0x32c628['change'])),_0x27b2ff[_0x19772a]&&_0x2e0d5c&&(_0x27b2ff[_0x19772a]['end']=_0x58e2c9,_0x59e01b(_0x27b2ff[_0x19772a]),_0x27b2ff[_0x19772a]=null);}function _0x59e01b({start:_0x354e6f,end:_0x3626a2,tapeItem:_0x1f7642,userId:_0x531837,type:_0x19d417}){const _0x4fd129=_0x1f7642['item'],_0x5803f6=_0x132665['schema']['isBlock'](_0x4fd129)&&!_0x132665['schema']['isLimit'](_0x4fd129),_0x23bef7=_0x354e6f['nodeAfter']==_0x3626a2['parent']&&_0x3626a2['isAtStart'];if(_0x5803f6&&_0x23bef7)return;const _0x519a4e=_0x132665['createRange'](_0x354e6f,_0x3626a2),_0x300fc1=_0x5c1c90['get'](_0x531837),_0x2ab7dc=new r({'author':_0x300fc1,'type':'isAdded'==_0x19d417||'isAddSuggestion'==_0x19d417?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x19d417||'isRemoveSuggestion'==_0x19d417},'createdAt':new Date(),'rootName':_0xb75d5b});_0x2a439a['push'](_0x2ab7dc),_0x291f87['markers']['set']('revision:'+_0x2ab7dc['id'],_0x519a4e);}function _0x18c39a(_0x1fdcd6,_0x30306b){const _0x4bc425=_0x1fdcd6['getAttributes'](),_0x47604c=_0x30306b['getAttributes']();for(const _0x1c1e56 of _0x4bc425){if(_0x1c1e56[0x1]!==_0x30306b['getAttribute'](_0x1c1e56[0x0]))return!0x1;_0x47604c['next']();}return _0x47604c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1af633=>{const _0x2ee896=_0x1af633['markerName']['split'](':')[0x1],_0x36768b=this['_getChangeFromId'](_0x2ee896);if(!_0x36768b)return null;const _0x296ca7='add'==_0x36768b['type']?'insertion':'deletion',_0x161522=['ck-suggestion-marker','ck-suggestion-marker-'+_0x296ca7];return _0x36768b['data']['isSuggestion']&&_0x161522['push']('ck-suggestion-marker-'+_0x296ca7+'-new'),this['activeChange']==_0x36768b&&_0x161522['push']('ck-suggestion-marker--active'),{'classes':_0x161522,'attributes':{'data-change-id':_0x2ee896}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x57738e=>{_0x57738e['on']('element:pre',(_0x2d2be6,_0x439009,_0x4127ae)=>{const _0x175b7b=_0x439009['viewItem']['getChild'](0x0);if(!_0x175b7b||!_0x175b7b['is']('element','code'))return;if(!_0x4127ae['consumable']['consume'](_0x175b7b,{'attributes':['vid_start','vid_end']}))return;const _0x51e63e=_0x439009['modelRange']['start']['nodeAfter'];_0x4127ae['writer']['setAttribute']('vid_start',_0x175b7b['getAttribute']('vid_start'),_0x51e63e),_0x4127ae['writer']['setAttribute']('vid_end',_0x175b7b['getAttribute']('vid_end'),_0x51e63e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3e7d1f=>{_0x3e7d1f['on']('element',(_0x5571c6,_0x53efe0,_0x335251)=>{if(!_0x335251['consumable']['consume'](_0x53efe0['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x53efe0['modelRange']['isCollapsed'])return;const _0x42e2ab=_0x53efe0['modelRange']['start']['nodeAfter'];_0x42e2ab['hasAttribute']('vid_start')||_0x42e2ab['hasAttribute']('vid')||(_0x335251['writer']['setAttribute']('vid_start',_0x53efe0['viewItem']['getAttribute']('vid_start'),_0x42e2ab),_0x335251['writer']['setAttribute']('vid_end',_0x53efe0['viewItem']['getAttribute']('vid_end'),_0x42e2ab));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4486a1=>_0x4486a1['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x28ec23,[,_0x3155d0])=>{['vid_start','vid_end','vid']['includes'](_0x3155d0)&&(_0x28ec23['return']=!0x0,_0x28ec23['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x345e56=>{_0x345e56['on']('attribute:vid',(_0x5d147,_0x50fac5,_0x383faf)=>{if('\x20'!=_0x50fac5['item']['data']||_0x50fac5['item']['parent']['maxOffset']>0x1)return;if(!_0x383faf['consumable']['consume'](_0x50fac5['item'],_0x5d147['name']))return;const _0x11c03d=_0x383faf['writer'],_0x12e6b5=_0x383faf['mapper']['toViewRange'](_0x50fac5['range']);_0x11c03d['wrap'](_0x12e6b5,_0x11c03d['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3a01cf){const _0x20e0ea=_0x3a01cf['plugins']['get']('RevisionViewer');return(_0x485e1b,_0x5555e1,_0x37c240)=>{const _0x3a4298=_0x5555e1['markerName']['split'](':')[0x1],_0x1cb23f=_0x20e0ea['_getChangeFromId'](_0x3a4298);if(!_0x1cb23f)return null;const _0x5c6d0f='add'==_0x1cb23f['type']?'split':'merge';if(!_0x37c240['consumable']['test'](_0x5555e1['markerRange'],_0x485e1b['name']))return;const _0x2472e8=_0x5555e1['markerRange']['getWalker'](),_0x1401a2=_0x5555e1['markerRange']['start'],_0x572eb5=_0x3a01cf['model']['schema'];let _0x4faae1=null,_0x59bd69=null,_0x1d7365=!0x1,_0xdfa900=!0x1;for(const _0x585cbc of _0x2472e8){const _0x218070=_0x585cbc['item'];_0x1d7365=_0x1d7365||_0x572eb5['isContent'](_0x218070);const _0x2f0da3=_0x37c240['mapper']['toViewElement'](_0x218070);if(_0x2f0da3&&_0x2f0da3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x585cbc['type']&&(_0x572eb5['isBlock'](_0x218070)&&!_0x572eb5['isLimit'](_0x218070)&&(_0x218070['nextSibling']||_0x1401a2['isAtEnd']?_0x4faae1&&_0x4faae1['parent']==_0x218070||(_0x4faae1=_0x218070,_0x22a6f4(_0x585cbc['previousPosition']),_0xdfa900=!0x0):_0x59bd69=_0x59bd69||_0x585cbc['previousPosition']));}function _0x22a6f4(_0x1271a6){const _0x44f388=_0x37c240['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c6d0f}),_0x4eb43a=_0x37c240['mapper']['toViewPosition'](_0x1271a6);_0x1cb23f['data']['isSuggestion']&&_0x37c240['writer']['addClass']('ck-suggestion-marker-'+_0x5c6d0f+'-new',_0x44f388),_0x20e0ea['activeChange']==_0x1cb23f&&_0x37c240['writer']['addClass']('ck-suggestion-marker--active',_0x44f388),_0x37c240['writer']['insert'](_0x4eb43a,_0x44f388),_0x37c240['mapper']['bindElementToMarker'](_0x44f388,_0x5555e1['markerName']);}_0x1d7365||_0xdfa900||!_0x59bd69||_0x22a6f4(_0x59bd69);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3577fc,_0x14100d,_0x300d9f)=>{const _0x36d7ba=_0x300d9f['mapper']['markerNameToElements'](_0x14100d['markerName']);if(_0x36d7ba){for(const _0x10b193 of _0x36d7ba)(_0x10b193['hasClass']('ck-suggestion-marker-split')||_0x10b193['hasClass']('ck-suggestion-marker-merge'))&&(_0x300d9f['mapper']['unbindElementFromMarkerName'](_0x10b193,_0x14100d['markerName']),_0x300d9f['writer']['remove'](_0x10b193));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4f94e6,_0x292a28,_0x2fc9b5)=>{const _0x200f38=_0x292a28['markerName']['split'](':')[0x1],_0x225041=this['_getChangeFromId'](_0x200f38);if(!_0x225041)return null;const _0x505df0='add'==_0x225041['type']?'split':'merge';if(_0x2fc9b5['consumable']['test'](_0x292a28['markerRange'],_0x4f94e6['name']))for(const _0x32cc1c of _0x292a28['markerRange']['getItems']()){if(!_0x32cc1c['is']('element','softBreak'))continue;const _0x14541c=_0x2fc9b5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x505df0}),_0x53ffbc=_0x2fc9b5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x32cc1c));_0x225041['data']['isSuggestion']&&_0x2fc9b5['writer']['addClass']('ck-suggestion-marker-'+_0x505df0+'-new',_0x14541c),this['activeChange']==_0x225041&&_0x2fc9b5['writer']['addClass']('ck-suggestion-marker--active',_0x14541c),_0x2fc9b5['writer']['insert'](_0x53ffbc,_0x14541c),_0x2fc9b5['mapper']['bindElementToMarker'](_0x14541c,_0x292a28['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4f72c7=>{for(const _0x9ecd6c of this['editor']['model']['document']['getRootNames']()){const _0x527e05=this['editor']['model']['document']['getRoot'](_0x9ecd6c),_0x1369ef=this['editor']['editing']['view']['document']['getRoot'](_0x9ecd6c);if(_0x1369ef){const _0x36e943=_0x527e05['getAttribute']('revisionHistoryAttachChange');if(_0x4f72c7['removeAttribute']('data-change-id',_0x1369ef),_0x4f72c7['removeClass']('ck-revision-history-root-add',_0x1369ef),_0x4f72c7['removeClass']('ck-revision-history-root-remove',_0x1369ef),_0x4f72c7['removeClass']('ck-revision-history-root--active',_0x1369ef),_0x36e943){const _0x16bbb8=this['_getChangeFromId'](_0x36e943);if(!_0x16bbb8)return null;_0x4f72c7['setAttribute']('data-change-id',_0x36e943,_0x1369ef),_0x4f72c7['addClass']('ck-revision-history-root-'+_0x16bbb8['type'],_0x1369ef),this['activeChange']==_0x16bbb8&&_0x4f72c7['addClass']('ck-revision-history-root--active',_0x1369ef);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3539b9=>'revision-comment:'+_0x3539b9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xb2a87c=>'revision-suggestion:'+_0xb2a87c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2f4c3b=>({'name':'suggestion:'+_0x2f4c3b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x47b94d=>{const _0x3e6254=_0x47b94d['markerName']['split'](':')[0x1];return'insertion'!=_0x3e6254&&'deletion'!=_0x3e6254?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3e6254]};}}),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',(_0x42e62b,_0x3a6a99,_0x3a3850)=>{const _0x55bd20=_0x3a3850['mapper']['markerNameToElements'](_0x3a6a99['markerName']);if(_0x55bd20){for(const _0x2d20f5 of _0x55bd20)_0x2d20f5['is']('uiElement')&&(_0x3a3850['mapper']['unbindElementFromMarkerName'](_0x2d20f5,_0x3a6a99['markerName']),_0x3a3850['writer']['remove'](_0x2d20f5));}},{'priority':'high'});}['_getChangeFromId'](_0x3462c9){return this['_changeIdToChange']['get'](_0x3462c9);}['_getViewForChange'](_0x35af65){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x35af65),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1876c6,_0x272998,_0x6a0367,_0xe5a9ec)=>{_0xe5a9ec&&this['_balloon']['remove'](_0xe5a9ec),_0x6a0367&&(this['_balloon']['add']({'view':_0x6a0367,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2a6f70=this['editor']['editing'],_0x33201c=this['_getChangeFromId'](_0x6a0367['changeId']);let _0x2fde30;if(_0x33201c['data']['isOnRoot']){const _0x32e7f6=_0x2a6f70['view']['getDomRoot'](_0x33201c['rootName']);_0x2fde30=Array['from'](_0x32e7f6['getClientRects']());}else{const _0x3c14eb=this['editor']['model']['markers']['get']('revision:'+_0x6a0367['changeId']);_0x2fde30=Array['from'](_0x2a6f70['mapper']['markerNameToElements'](_0x3c14eb['name']))['map'](_0x1a82cd=>_0x2a6f70['view']['domConverter']['mapViewToDom'](_0x1a82cd))['map'](_0x4b0a2f=>Array['from'](_0x4b0a2f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2fde30[0x0];return _0x2fde30['find'](_0x515a3a=>_0x515a3a['top']-0x3<=this['_activeViewTarget']['y']&&_0x515a3a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x515a3a['left']-0x3<=this['_activeViewTarget']['x']&&_0x515a3a['right']+0x3>=this['_activeViewTarget']['x'])||_0x2fde30[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x282b63,_0x15da73,_0x429cf7,_0x8dada9)=>{this['activeView']=_0x429cf7?this['_getViewForChange'](_0x429cf7):null,this['editor']['model']['change'](()=>{const _0x16ea3c=this['editor']['editing'];_0x8dada9&&(_0x8dada9['data']['isOnRoot']?_0x16ea3c['view']['change'](_0x5540ee=>{_0x5540ee['removeClass']('ck-revision-history-root--active',_0x16ea3c['view']['document']['getRoot'](_0x8dada9['rootName']));}):_0x16ea3c['reconvertMarker']('revision:'+_0x8dada9['id'])),_0x429cf7&&(_0x429cf7['data']['isOnRoot']?_0x16ea3c['view']['change'](_0x15028c=>{_0x15028c['addClass']('ck-revision-history-root--active',_0x16ea3c['view']['document']['getRoot'](_0x429cf7['rootName']));}):_0x16ea3c['reconvertMarker']('revision:'+_0x429cf7['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x50023e,_0x1e39e5)=>{if(this['activeChange'])return;const _0x498a6d=this['_findChangeIdFromDomTarget'](_0x1e39e5['target']),_0x1beaf5=this['_changeIdToChange']['get'](_0x498a6d);_0x1beaf5?(this['_activeViewTarget']={'x':_0x1e39e5['domEvent']['x'],'y':_0x1e39e5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1beaf5)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x11023e,_0x1add31)=>{const _0x4f78f0=this['_findChangeIdFromDomTarget'](_0x1add31['target']),_0x527cc0=this['_changeIdToChange']['get'](_0x4f78f0);_0x527cc0?(this['_activeViewTarget']={'x':_0x1add31['domEvent']['x'],'y':_0x1add31['domEvent']['y']},_0x527cc0===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x527cc0):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3e823a){do{const _0x40a0da=_0x3e823a['getAttribute']('data-change-id');if(_0x40a0da)return _0x40a0da;_0x3e823a=_0x3e823a['parent'];}while(_0x3e823a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x48ae06=>{for(const _0x51ac1a of this['editor']['model']['markers'])_0x48ae06['removeMarker'](_0x51ac1a);});}}function Z(_0x2b5ff3,_0x942d7f){return(_0x35fb21,_0x437301,_0x161b3e)=>{if(!_0x161b3e['consumable']['test'](_0x437301['markerRange'],_0x35fb21['name']))return;const _0x27f7d5=_0x437301['markerRange']['getWalker'](),_0x4180d3=_0x437301['markerRange']['start'],_0x4ba22b=_0x2b5ff3['model']['schema'];let _0x56fae0=null,_0x5c23ac=null,_0x1683f4=!0x1,_0x4835f5=!0x1;for(const _0x3f5767 of _0x27f7d5){const _0x18e51a=_0x3f5767['item'];_0x1683f4=_0x1683f4||_0x4ba22b['isContent'](_0x18e51a);const _0x13334d=_0x161b3e['mapper']['toViewElement'](_0x18e51a);if(_0x13334d&&_0x13334d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3f5767['type']&&(_0x4ba22b['isBlock'](_0x18e51a)&&!_0x4ba22b['isLimit'](_0x18e51a)&&(_0x18e51a['nextSibling']||_0x4180d3['isAtEnd']?_0x56fae0&&_0x56fae0['parent']==_0x18e51a||(_0x56fae0=_0x18e51a,_0x2146e2(_0x3f5767['previousPosition']),_0x4835f5=!0x0):_0x5c23ac=_0x5c23ac||_0x3f5767['previousPosition']));}function _0x2146e2(_0x3373a5){const _0xec0cb1=_0x161b3e['mapper']['toViewPosition'](_0x3373a5),_0x3c4ed1=_0x161b3e['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x942d7f});_0x161b3e['writer']['insert'](_0xec0cb1,_0x3c4ed1),_0x161b3e['mapper']['bindElementToMarker'](_0x3c4ed1,_0x437301['markerName']);}_0x1683f4||_0x4835f5||!_0x5c23ac||_0x2146e2(_0x5c23ac);};}class pt extends _0x1a2773{constructor(_0x5e8e2a){super(_0x5e8e2a);const _0x3a0134=_0x5e8e2a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3a0134,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3a0134,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x30fe6b=this['editor'],_0x40a9d2=_0x30fe6b['plugins']['get'](d),_0x29adf6=_0x40a9d2['isReady']?_0x40a9d2['diff']['newRevisionId']:null;_0x30fe6b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x29adf6);}['refresh'](){const {isReady:_0x5ee50e,isEnabled:_0x3edbb0,repository:_0x57ba8f,diff:_0x454255}=this['editor']['plugins']['get'](d),_0x1c99a9=_0x454255&&_0x57ba8f['getLaterVisibleRevision'](_0x454255['newRevisionId']);this['isEnabled']=_0x5ee50e&&_0x3edbb0&&Boolean(_0x1c99a9);}}class _t extends _0x1a2773{['_step'];constructor(_0x586125,{direction:_0x1c22ac}){super(_0x586125);const _0x34c9fa=_0x586125['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1c22ac?0x1:-0x1,this['listenTo'](_0x34c9fa,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34c9fa,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x34c9fa,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x398de5=this['editor'],_0x40fbca=_0x398de5['plugins']['get'](d),{isNavigationMode:_0x575c18,currentChangeNumber:_0x146258}=_0x40fbca;let _0x273ee2;if(_0x40fbca['activeChange']=_0x575c18?_0x40fbca['diff']['changes']['get'](_0x146258+this['_step']):_0x40fbca['diff']['changes']['first'],_0x40fbca['activeChange']['data']['isOnRoot'])_0x273ee2=_0x398de5['editing']['view']['getDomRoot'](_0x40fbca['activeChange']['rootName']);else{const _0x28c15f=_0x398de5['model']['markers']['get']('revision:'+_0x40fbca['activeChange']['id']);_0x273ee2=_0x427ab3(_0x398de5['editing'],_0x28c15f);}_0x5b930d({'target':_0x273ee2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x115c77,currentChangeNumber:_0x47c76d,numberOfChanges:_0x36cc92,isReady:_0x11a86a,isEnabled:_0x435455}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x435455&&_0x11a86a&&_0x36cc92)&&(!_0x115c77||(0x1===this['_step']?_0x47c76d<_0x36cc92-0x1:_0x47c76d>0x0));}}class li extends ts{constructor(_0x547ac7){super(_0x547ac7);const _0x339a3c=this['bindTemplate'],_0x3feed0=new te(_0x547ac7),_0x2eb0c5=new te(_0x547ac7);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',(_0x5cac38,_0x46ba3a)=>_0x5cac38&&_0x46ba3a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x57dd28,_0x19822a,_0xedbf9a,_0x1415e8)=>{if(!_0x57dd28)return m(_0x547ac7,'Loading...');if(!_0xedbf9a)return m(_0x547ac7,'No\x20changes');const _0x15b27a=m(_0x547ac7,'NUMBER_OF_CHANGES',_0xedbf9a);return _0x1415e8?m(_0x547ac7,'X_OF_Y_CHANGES',[_0x19822a+0x1,_0xedbf9a]):_0x15b27a;}),_0x3feed0['set']({'label':m(_0x547ac7,'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'}),_0x2eb0c5['set']({'label':m(_0x547ac7,'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'}),_0x3feed0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2eb0c5['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3feed0['on']('execute',()=>this['fire']('execute','backward')),_0x2eb0c5['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',_0x339a3c['if']('_isStatusLabelVisible','ck-hidden',_0x7bec07=>!_0x7bec07)]},'children':[{'text':_0x339a3c['to']('isNavigationMode',_0x51b95a=>_0x51b95a?m(_0x547ac7,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x547ac7,'Total')+':\x20')}]},{'text':_0x339a3c['to']('_statusText')}]},new _0x2b7b9e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3feed0,_0x2eb0c5]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x19d40b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x26b59c=this['editor']['editing']['view'];_0x26b59c['change'](_0xd049ec=>{for(const _0x50d55b of _0x26b59c['document']['roots'])_0xd049ec['addClass'](le,_0x50d55b);});}['hide'](){const _0x5861a2=this['editor']['editing']['view'];_0x5861a2['change'](_0x588c15=>{for(const _0x50a9e9 of _0x5861a2['document']['roots'])_0x588c15['removeClass'](le,_0x50a9e9);});}}class g extends _0x19d40b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x2b8253=this['editor'],_0x20c8a9=_0x2b8253['plugins']['get'](d),_0x2598a9=_0x2b8253['plugins']['get'](ge);_0x2b8253['ui']['componentFactory']['add']('exitToEditing',_0xea510a=>{const _0xbe8a4b=new te(_0xea510a);return _0xbe8a4b['set']({'label':m(_0xea510a,'Back\x20to\x20editing'),'icon':_0x46ecca['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xbe8a4b,'execute',()=>{_0x2b8253['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xbe8a4b;}),_0x2b8253['ui']['componentFactory']['add']('restoreRevision',_0x4d35f5=>{const _0x260ce4=new te(_0x4d35f5);return _0x260ce4['set']({'label':m(_0x4d35f5,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x260ce4['bind']('isEnabled')['to'](_0x2b8253['commands']['get']('restoreRevision')),this['listenTo'](_0x260ce4,'execute',()=>_0x2b8253['execute']('restoreRevision')),_0x260ce4;}),_0x2b8253['ui']['componentFactory']['add']('changesNavigation',_0x276f8a=>{const _0x2144dd=new li(_0x276f8a),_0x17a345=_0x2b8253['commands']['get']('showPreviousChange'),_0x26c2e8=_0x2b8253['commands']['get']('showNextChange');return _0x2144dd['bind']('isBackwardNavigationEnabled')['to'](_0x17a345,'isEnabled'),_0x2144dd['bind']('isForwardNavigationEnabled')['to'](_0x26c2e8,'isEnabled'),_0x2144dd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x20c8a9),this['listenTo'](_0x2144dd,'execute',(_0x79a0b8,_0x5255e9)=>{_0x2b8253['execute']('forward'===_0x5255e9?'showNextChange':'showPreviousChange');}),_0x2144dd;}),_0x2598a9['show'](),_0x20c8a9['on']('change:isReady',(_0x1fcf21,_0x3f033a,_0x139192)=>{_0x139192?_0x2598a9['hide']():_0x2598a9['show']();});}}class at extends _0x4b212a{['_resizeObserver']=null;constructor(_0x230a46,_0x449c55){super(_0x230a46,_0x449c55);const _0x5d1471=this['bindTemplate'];this['set']({'label':m(_0x230a46,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x230a46,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x5d1471['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x201315=this['fieldView']['element'];this['_tooltipString']=_0x201315['scrollWidth']>_0x201315['clientWidth']&&_0x201315['value']||'';}}class ri extends ts{constructor(_0x6f3be2,_0x1bd32e,_0x5c8f2b){super(_0x6f3be2);const _0x324bbd=new _0x4c6be9();_0x324bbd['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 _0x198d30=['ck','ck-revision-history-sidebar__revision-author'];_0x5c8f2b&&_0x198d30['push']('ck-revision-history-sidebar__revision-author_creator');const _0x5e8947=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x6f3be2,_0x5c8f2b?'Revision\x20creator':'Revision\x20author')},'children':[_0x324bbd,_0x1bd32e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x198d30},'children':_0x5e8947});}}function oi(_0x4b850b,_0x50cb9d){const _0x5ad991=_0x4b850b['bindTemplate'],_0x3645df=_0x4b850b['locale'],_0x2c0a71=_0xe9c734(_0x3645df);_0x2c0a71['panelPosition']='sw';const _0x1b6995=function(_0x1e36cd,_0x3f2551){const _0x10d86a=function(_0xb34f69,_0x3aa904){const _0x12d640=_0xb34f69['locale'],_0x57b65a={'Compare\x20against\x20selected':m(_0x12d640,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x12d640,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x12d640,'Restore\x20this\x20revision')};return _0x3aa904['map'](_0x4fd78c=>{const _0x1f107f=_0x57b65a[_0x4fd78c['name']];return _0x1f107f&&_0x1f107f!==_0x4fd78c['name']&&(_0x4fd78c['name']=_0x1f107f),_0x4fd78c;});}(_0x1e36cd,_0x3f2551),_0x21c6cf=new _0x2ea1f0();for(const _0x19e490 of _0x10d86a){const _0x2f5509={'type':'button','model':new _0x1f2b3f({'label':_0x19e490['name'],'class':_0x19e490['class'],'withText':!0x0,'role':'menuitem','_action':_0x19e490['action']})};_0x2f5509['model']['bind']('isEnabled')['to'](_0x1e36cd,'isActionsDropdownOpen',_0x8cdec6=>'function'!=typeof _0x19e490['isEnabled']||(!_0x8cdec6||_0x19e490['isEnabled'](_0x1e36cd))),_0x21c6cf['add'](_0x2f5509);}return _0x21c6cf;}(_0x4b850b,_0x50cb9d);return _0x4b850b['bind']('isActionsDropdownOpen')['to'](_0x2c0a71,'isOpen'),_0x2c0a71['buttonView']['set']({'label':m(_0x3645df,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x46ecca['threeVerticalDots']}),_0x2c0a71['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5ad991['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5ad991['to'](_0x548fa1=>_0x548fa1['stopPropagation']())}}),_0x2c0a71['on']('execute',_0x2b3bc4=>{_0x4b850b['isReady']&&'function'==typeof _0x2b3bc4['source']['_action']&&_0x2b3bc4['source']['_action'](_0x4b850b);}),to(_0x2c0a71,_0x1b6995,{'role':'menu'}),_0x2c0a71['listenTo'](_0x4b850b,'change:isActionsDropdownOpen',(_0xca6cc0,_0x2cd42a,_0x80e787)=>{if(_0x80e787)for(const _0x1511d5 of _0x2c0a71['listView']['items']){const _0x5e7039=_0x1511d5['children']['first'],_0x187aaf=_0x50cb9d['find'](_0x52fafb=>_0x52fafb['action']===_0x5e7039['_action'])['isVisible'];_0x1511d5['isVisible']=void 0x0===_0x187aaf||_0x187aaf(_0x4b850b);}}),_0x2c0a71;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x161364,_0x32dc33,_0xcdcb1f,_0x25acd5){super(_0x161364);const _0x55568f=this['bindTemplate'],_0x5b0d15=function(_0x371d04,_0x4807f4){const _0x4c0bcb=Array['from'](_0x4807f4['authors'])['filter'](_0x1ddcf3=>_0x1ddcf3!=_0x4807f4['creator']);return _0x4807f4['creator']&&_0x4c0bcb['unshift'](_0x4807f4['creator']),_0x4c0bcb['map'](_0x5d4497=>new ri(_0x371d04,_0x5d4497,_0x5d4497==_0x4807f4['creator']));}(_0x161364,_0x32dc33);this['id']=_0x32dc33['id'],this['_revision']=_0x32dc33,this['_requireRevisionName']=_0x25acd5,this['bind']('name','createdAt')['to'](_0x32dc33),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x428658=>{return _0x559044=_0x161364['uiLanguage'],(_0x4bb8da=_0x428658)['toLocaleDateString'](_0x559044,{'month':'long','day':'numeric'})+',\x20'+_0x4bb8da['toLocaleTimeString'](_0x559044,{'hour':'numeric','minute':'numeric'});var _0x559044,_0x4bb8da;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x161364,_0x2ab85),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x9e2657=>_0x9e2657||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x5be5a6,_0x40d02f)=>_0x5be5a6&&_0x40d02f),this['revisionActionsView']=_0xcdcb1f&&_0xcdcb1f['length']?oi(this,_0xcdcb1f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x55568f['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x55568f['if']('isEnabled','ck-disabled',_0x55e074=>!_0x55e074),_0x55568f['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x55568f['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x55568f['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':_0x55568f['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':_0x5b0d15}]},this['revisionActionsView']],'on':{'click':_0x55568f['to'](_0x1144bf=>{_0x1144bf['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4c21a6=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4c21a6,'change',()=>{this['_requireRevisionName']&&!_0x4c21a6['value']||this['fire']('setName',{'id':this['id'],'name':_0x4c21a6['value']}),_0x4c21a6['value']||(_0x4c21a6['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x51dc1d,_0x466883){const _0xaf006a=_0x17f126['fromJSDate'](_0x51dc1d)['setLocale'](_0x466883),_0x60e544=_0x17f126['local'](),_0x2de6a1=_0x60e544['minus']({'days':0x1})['startOf']('day');let _0x401020,_0x211f90;return _0xaf006a['hasSame'](_0x60e544,'day')?(_0x401020=_0xaf006a['startOf']('day')['toJSDate'](),_0x211f90=_0xaf006a['toRelativeCalendar']()):_0xaf006a['hasSame'](_0x2de6a1,'day')?(_0x401020=_0x2de6a1['toJSDate'](),_0x211f90=_0xaf006a['toRelativeCalendar']()):_0xaf006a['hasSame'](_0x60e544,'week')?(_0x401020=_0xaf006a['startOf']('week')['toJSDate'](),_0x211f90=_0xaf006a['weekdayLong']||''):_0xaf006a['hasSame'](_0x60e544,'year')?(_0x401020=_0xaf006a['startOf']('month')['toJSDate'](),_0x211f90=_0xaf006a['monthLong']||''):(_0x401020=_0xaf006a['startOf']('year')['toJSDate'](),_0x211f90=String(_0xaf006a['year'])),{'startDate':_0x401020,'localizedPeriodName':_0x211f90};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x70c3f3,_0x29918b,_0x34fe6c,_0x5a4531){super(_0x70c3f3);const _0x21962=ci(_0x29918b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x29918b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x34fe6c,this['_requireRevisionName']=_0x5a4531,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':_0x21962}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x158728){const _0x2b56d0=new hi(this['locale'],_0x158728,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2b56d0);}['removeRevision'](_0x566aa1){const _0x35ae6e=this['revisionViews']['find'](_0x2fb1b9=>_0x2fb1b9['id']===_0x566aa1['id']);this['revisionViews']['remove'](_0x35ae6e);}}class as extends ts{constructor(_0xf52aef){super(_0xf52aef);const _0x2ab601=new _0x4c6be9();_0x2ab601['content']=_0x46ecca['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2ab601,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0xf52aef,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x212483,_0x564d12,_0x49ae35,_0x577b7a){super(_0x212483);const _0x8841c9=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x564d12,this['_revisionActions']=_0x49ae35,this['_requireRevisionName']=_0x577b7a,this['on']('select',(_0x17deb6,_0x290cd4)=>{this['fire']('revisionSelected',_0x290cd4);}),this['on']('setName',(_0x119d97,_0x11c29e)=>{this['fire']('revisionSetName',_0x11c29e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x212483),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x8841c9['if']('isEnabled','ck-disabled',_0x26b2c1=>!_0x26b2c1)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x7dd32b of this['_revisions'])this['_addRevision'](_0x7dd32b);this['_revisions']['on']('add',(_0xf5124d,_0x50a16d)=>{this['_addRevision'](_0x50a16d);}),this['_revisions']['on']('remove',(_0x2909e5,_0x5df4ff)=>{this['_removeRevision'](_0x5df4ff);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x22ecae=>_0x22ecae['revisionViews']['map'](_0x5daa26=>_0x5daa26))['flat']();}['selectRevision'](_0x4aa876){for(const _0x41a197 of this['revisionViews'])_0x4aa876&&_0x4aa876['id']===_0x41a197['id']?_0x41a197['select']():_0x41a197['deselect']();}['highlightRevisions'](_0x10009e){for(const _0x3d8631 of this['revisionViews'])_0x10009e['some'](({id:_0x5d40db})=>_0x5d40db===_0x3d8631['id'])?_0x3d8631['highlight']():_0x3d8631['unhighlight']();}['_addRevision'](_0x43e274){const _0x8932a0=ci(_0x43e274['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5381cc=this['timePeriodViews']['get'](0x0);_0x5381cc&&_0x5381cc['startDate']['getTime']()===_0x8932a0['getTime']()||(_0x5381cc=new ai(this['locale'],_0x8932a0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5381cc)),_0x5381cc['addRevision'](_0x43e274);}['_removeRevision'](_0x39edd5){const _0x1c5958=ci(_0x39edd5['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1c5958)['removeRevision'](_0x39edd5);}['_getTimePeriodViewByStartDate'](_0x38b609){return this['timePeriodViews']['find'](_0x48d531=>_0x48d531['startDate']['getTime']()===_0x38b609['getTime']());}}class w extends _0x19d40b{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x33127a){super(_0x33127a),this['_revisionViewer']=_0x33127a['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x32e88b=this['_revisionsRepository']['_revisions'],_0xe846c1=this['_createRevisionActions'](),_0x488f0c=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x32e88b,_0xe846c1,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',(_0x8286e8,_0x301911)=>{_0x301911['revisionViews']['on']('add',(_0x5068dc,_0x27cd77)=>{_0x27cd77['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)),_0x488f0c['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x14c4ea=this['_revisionsRepository']['getRevision'](0x0);if(_0x14c4ea){const _0x412dfe=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x14c4ea['id']);this['_revisionViewer']['compare'](_0x14c4ea,_0x412dfe);}}['_handleRevisionSelected'](_0x11c9af,_0x120f63){const _0x23a14e=this['_revisionsRepository']['getRevision'](_0x120f63['id']),_0x4c77ea=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x23a14e['id']);this['_revisionViewer']['compare'](_0x23a14e,_0x4c77ea);}['_handleRevisionSetName'](_0x310a46,_0x41eaa6){this['_revisionsRepository']['getRevision'](_0x41eaa6['id'])['setName'](_0x41eaa6['name']);}['_handleDiffChange'](_0x54c55f,_0x578f3b,_0x1b9a17){const _0x1cb17f=this['_revisionsRepository']['getRevisionsInDiff'](_0x1b9a17);_0x1cb17f['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1cb17f),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1cb17f[0x0]));}['_createRevisionActions'](){const _0x41671e=this['editor'],_0x1c2bc7=w['availableRevisionActions'],_0xdbea2a=_0x41671e['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0xdbea2a['length'])return _0xdbea2a['map'](_0x352f17=>{const _0x34715a='string'==typeof _0x352f17?Object['assign']({},_0x1c2bc7[_0x352f17]):_0x352f17;return _0x34715a['action']=_0x34715a['action']['bind'](this,_0x41671e),_0x34715a['isVisible']&&(_0x34715a['isVisible']=_0x34715a['isVisible']['bind'](this,_0x41671e)),_0x34715a;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x32faed},_0x498a0e)=>{const _0x507152=_0x32faed['get'](d),_0x613322=_0x507152['repository'];let _0x31fbf7=_0x507152['diff']['newRevisionId'],_0x5a2613=_0x498a0e['id'];_0x613322['getIndex'](_0x31fbf7)>_0x613322['getIndex'](_0x5a2613)&&([_0x31fbf7,_0x5a2613]=[_0x5a2613,_0x31fbf7]),_0x507152['compare'](_0x31fbf7,_0x5a2613);},'isVisible':({plugins:_0x3ee5eb},_0x3f3d87)=>{const _0x2bd6bc=_0x3ee5eb['get'](d);return!(_0x2bd6bc['repository']['getRevisionsInDiff'](_0x2bd6bc['diff'])['length']>0x2)&&!_0x3f3d87['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x139097,{id:_0x1e35f6})=>{_0x139097['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1e35f6);},'isVisible':({plugins:_0x303fff},_0x1c2467)=>!!_0x303fff['get'](d)['repository']['getLaterVisibleRevision'](_0x1c2467['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xf5d8a1},{id:_0xec470,revisionNameView:_0x3f0bb9})=>{const _0x4078f0=_0xf5d8a1['get'](d),_0x5b4017=_0x4078f0['repository']['getEarlierVisibleRevision'](_0xec470);_0x4078f0['compare'](_0xec470,_0x5b4017),_0x3f0bb9['focus'](),_0x3f0bb9['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2963ad,_0x32f7d1){super(_0x2963ad),this['_view']=_0x32f7d1,this['_toolbarConfig']=ot(_0x2963ad['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x12f251){const _0x17e61d=this['editor'],_0x28373b=this['view'],_0x9c053b=_0x17e61d['editing']['view'],_0x1c38b6=_0x28373b['editable'],_0x39a368=_0x9c053b['document']['getRoot']();_0x1c38b6['name']=_0x39a368['rootName'],_0x28373b['render']();const _0x18507d=_0x1c38b6['element'];this['setEditableElement'](_0x1c38b6['name'],_0x18507d),_0x28373b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x9c053b['attachDomRoot'](_0x18507d),this['_elementReplacer']['replace'](_0x12f251,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x42d086=this['view'],_0x3b82ca=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3b82ca['detachDomRoot'](_0x42d086['editable']['name']),_0x42d086['destroy']();}['_initToolbar'](){const _0x484d0f=this['view'];_0x484d0f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x484d0f['stickyPanel']['limiterElement']=_0x484d0f['element'],_0x484d0f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x161b00})=>_0x161b00),_0x484d0f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x484d0f['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5dc7fa,_0x3610c1,_0x33a594={}){super(_0x5dc7fa),this['stickyPanel']=new ut(_0x5dc7fa),this['toolbar']=new lt(_0x5dc7fa,{'shouldGroupWhenFull':_0x33a594['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x5dc7fa,_0x3610c1);}['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(_0x228dbe,_0x5a98b9){super(_0x5a98b9),this['sourceElement']=_0x228dbe,this['model']['document']['createRoot']();const _0x1057e4=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1057e4);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4ddcac,_0x5f3f2b){const _0x1bc9c6=new this(_0x4ddcac,_0x5f3f2b);return await _0x1bc9c6['initPlugins'](),await _0x1bc9c6['ui']['init'](_0x4ddcac),await _0x1bc9c6['data']['init'](_0x1bc9c6['config']['get']('initialData')||''),_0x1bc9c6['fire']('ready'),_0x1bc9c6;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x1a1ac2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16b642){function _0x1eb226(_0x36c263){return _0x36c263['map'](_0xdd990a=>String['fromCharCode'](_0xdd990a))['join']('');}super(_0x16b642),this['result']='end',_0x16b642[_0x1eb226([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1eb226([0x76,0x69,0x65,0x77])][_0x1eb226([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1eb226([0x61,0x75,0x74,0x6f]),_0x16b642[_0x1eb226([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1eb226([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1eb226([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1eb226([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1eb226([0x6f,0x6b])});}}class k extends _0x1a1ac2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xce491d){if(super(_0xce491d),!this['editor']['config']['get']('revisionHistory'))throw new _0x12fffe('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x223bf4=>this['_showRevisionViewer']({..._0x223bf4,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x36ff2b=>this['_closeRevisionViewer'](_0x36ff2b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2ea970=>this['_restoreRevision'](_0x2ea970)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5a7a3c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5a7a3c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x399d3a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x399d3a);}['getRevision'](_0x4862e5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4862e5);}['getRevisions'](_0x2e38d4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2e38d4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4cd862=this['editor'],_0x57d181=_0x5a9ea5(_0x4cd862,p),_0x119769=_0x4cd862['plugins']['get']('RevisionTracker'),_0x16058a=_0x4cd862['plugins']['get']('Users')['users'];return _0x57d181['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x57d181['lazyRoots'],(_0x57d181['plugins']['push'](bt,d,g,class extends _0x1a1ac2{static get['requires'](){return[d,'Users'];}['init'](){const _0x2868af=this['editor']['plugins']['get']('Users');for(const _0x56e597 of _0x16058a)_0x56e597['isAnonymous']||_0x2868af['getUser'](_0x56e597['id'])||_0x2868af['addUser'](_0x56e597);const _0x1e7369=_0x119769['repository']['getRevisions']();let _0x1a6fe5=null;const _0x109e89=this['editor']['plugins']['get']('RevisionViewer');_0x109e89['adapter']=_0x119769['adapter'],_0x109e89['bind']('isEnabled')['to'](_0x119769),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4cd862,'isReadOnly',_0x1bf605=>!_0x1bf605);for(const _0x34447c of _0x1e7369){const _0x24a576=null===_0x34447c['creator'];if(_0x24a576&&_0x34447c['toVersion']===_0x34447c['fromVersion'])continue;const _0x7559a4=_0x34447c['toJSON']();_0x109e89['addRevisionData'](_0x7559a4,(_0x4be254,_0x5c02d9,_0x46dc86)=>{if(_0x24a576){if(_0x1a6fe5)_0x1a6fe5['_update'](_0x4be254,_0x5c02d9);else{if(!_0x5c02d9){const _0x2501ec=_0x46dc86['toJSON']();_0x2501ec['id']=_0x48b6ee(),_0x119769['saveRevision'](_0x2501ec,_0x46dc86['toVersion'])['then'](_0x262e09=>{_0x1a6fe5=_0x262e09;});}}}else _0x34447c['_update'](_0x4be254,_0x5c02d9);});}}},w),_0x57d181);}['_enhanceShowRevisionViewerCallback'](){const _0x3430db=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x228ecc=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x12131f=this['editor']['plugins']['get']('Autosave');await _0x12131f['save']();}else await _0x228ecc['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x544803=this['editor']['plugins']['get']('Dialog');_0x544803['isOpen']&&_0x544803['hide']();}const _0x318bd4=this['_getRevisionViewerEditorConfig']();return _0x3430db(_0x318bd4)['then'](_0x460369=>{return(this['_viewerEditor']=_0x460369,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x460369;})['catch'](_0x577ad6=>(console['error'](_0x577ad6),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x360a30=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'](),_0x360a30(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4e9bfc=this['editor']['plugins']['get']('Annotations');_0x4e9bfc['refreshVisibility'](),_0x4e9bfc['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4bebc3){const _0x338ac6=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2249f2=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3e9d3b=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3e9d3b,_0x4bebc3)['then'](_0x67b06d=>(_0x2249f2['style']['display']='block',_0x338ac6['style']['display']='none',_0x67b06d));}['_closeRevisionViewer'](_0x3ea067){const _0x26b5b9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x26b5b9['style']['display']='',_0x3ea067['destroy']();}async['_restoreRevision'](_0xc02305){const _0x311c75=this['editor'],_0x67d44e=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x123b75=_0x311c75['plugins']['get']('RevisionTracker'),_0x2532ab=_0x67d44e['repository']['getRevision'](_0xc02305);let _0x58f140,_0x2b5235,_0x3ab493;try{_0x58f140=await _0x67d44e['getRevisionData'](_0x2532ab),_0x2b5235=await _0x67d44e['getRevisionRootsAttributes'](_0x2532ab);}catch(_0x58545f){return void console['error'](_0x58545f);}_0x311c75['model']['change'](_0x36aa4f=>{for(const _0x5dac77 of Array['from'](_0x311c75['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x36aa4f['removeMarker'](_0x5dac77);}),_0x67d44e['isReady']=!0x1,_0x311c75['model']['enqueueChange'](_0x322982=>{_0x322982['setSelection'](null),_0x322982['removeSelectionAttribute'](_0x311c75['model']['document']['selection']['getAttributeKeys']());const _0x2de21b=Object['keys'](_0x58f140);for(const _0x451c50 of _0x311c75['model']['document']['roots'])'$graveyard'!=_0x451c50['rootName']&&_0x451c50['isAttached']()&&!_0x2de21b['includes'](_0x451c50['rootName'])&&_0x322982['detachRoot'](_0x451c50);for(const _0x35e302 of _0x2de21b){let _0x2a1bc1=_0x311c75['model']['document']['getRoot'](_0x35e302);_0x2a1bc1&&_0x2a1bc1['isAttached']()||(_0x2a1bc1=_0x322982['addRoot'](_0x35e302));const _0x38f093=_0x2b5235[_0x35e302],_0x326cc3=Object['keys'](_0x38f093),_0x5c3183=_0x58f140[_0x35e302];for(const _0x22e85f of _0x2a1bc1['getAttributeKeys']())_0x326cc3['includes'](_0x22e85f)||_0x322982['removeAttribute'](_0x22e85f,_0x2a1bc1);for(const _0x3eb7af of _0x326cc3)_0x322982['setAttribute'](_0x3eb7af,_0x2b5235[_0x35e302][_0x3eb7af],_0x2a1bc1);_0x322982['remove'](_0x322982['createRangeIn'](_0x2a1bc1)),_0x322982['insert'](_0x311c75['data']['parse'](_0x5c3183,_0x2a1bc1),_0x2a1bc1,0x0);}});const _0x53f9d5=m(_0x311c75['locale'],'Restored');if(_0x2532ab['name'])_0x3ab493=-0x1==_0x2532ab['name']['indexOf'](_0x53f9d5)?_0x53f9d5+':\x20'+_0x2532ab['name']:_0x2532ab['name'];else _0x3ab493=_0x53f9d5+':\x20'+(_0x2532ab['createdAt']['toLocaleDateString'](_0x311c75['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2532ab['createdAt']['toLocaleTimeString'](_0x311c75['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x123b75['saveRevision']({'name':_0x3ab493}),_0x67d44e['isReady']=!0x0,_0x311c75['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x18cd2d){super(_0x18cd2d),this['_revisionViewer']=_0x18cd2d['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x15dc48=this['_revisionsRepository']['_revisions'],_0x36778e=this['_createRevisionActions'](),_0xa083ef=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x15dc48,_0x36778e,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',(_0x1b62e2,_0x267987)=>{_0x267987['revisionViews']['on']('add',(_0x212c2f,_0x3b7373)=>{_0x3b7373['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)),_0xa083ef['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xe34ec=this['_revisionsRepository']['getRevision'](0x0);if(_0xe34ec){const _0x5c1ae8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xe34ec['id']);this['_revisionViewer']['compare'](_0xe34ec,_0x5c1ae8);}}['_handleRevisionSelected'](_0x252d39,_0x5b8b3c){const _0x47a6ce=this['_revisionsRepository']['getRevision'](_0x5b8b3c['id']),_0x5eadfc=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x47a6ce['id']);this['_revisionViewer']['compare'](_0x47a6ce,_0x5eadfc);}['_handleRevisionSetName'](_0xa0745,_0x1e2525){this['_revisionsRepository']['getRevision'](_0x1e2525['id'])['setName'](_0x1e2525['name']);}['_handleDiffChange'](_0x4a47ac,_0x41e5ea,_0x50bbda){const _0x3eaaa9=this['_revisionsRepository']['getRevisionsInDiff'](_0x50bbda);_0x3eaaa9['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3eaaa9),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3eaaa9[0x0]));}['_createRevisionActions'](){const _0x1f12cf=this['editor'],_0x3bb682=w['availableRevisionActions'],_0x213db3=_0x1f12cf['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x213db3['length'])return _0x213db3['map'](_0x29be9f=>{const _0x3d0a49='string'==typeof _0x29be9f?Object['assign']({},_0x3bb682[_0x29be9f]):_0x29be9f;return _0x3d0a49['action']=_0x3d0a49['action']['bind'](this,_0x1f12cf),_0x3d0a49['isVisible']&&(_0x3d0a49['isVisible']=_0x3d0a49['isVisible']['bind'](this,_0x1f12cf)),_0x3d0a49;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2be92c},_0x1e2f50)=>{const _0x5d8f6d=_0x2be92c['get'](d),_0x37be68=_0x5d8f6d['repository'];let _0x309567=_0x5d8f6d['diff']['newRevisionId'],_0xc9095c=_0x1e2f50['id'];_0x37be68['getIndex'](_0x309567)>_0x37be68['getIndex'](_0xc9095c)&&([_0x309567,_0xc9095c]=[_0xc9095c,_0x309567]),_0x5d8f6d['compare'](_0x309567,_0xc9095c);},'isVisible':({plugins:_0x4288fd},_0x49447c)=>{const _0x4d276b=_0x4288fd['get'](d);return!(_0x4d276b['repository']['getRevisionsInDiff'](_0x4d276b['diff'])['length']>0x2)&&!_0x49447c['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2493f9,{id:_0x5ac9f9})=>{_0x2493f9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5ac9f9);},'isVisible':({plugins:_0x7145a7},_0x5b8269)=>!!_0x7145a7['get'](d)['repository']['getLaterVisibleRevision'](_0x5b8269['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5c6992},{id:_0x304f3b,revisionNameView:_0x524037})=>{const _0xffc933=_0x5c6992['get'](d),_0x2f0940=_0xffc933['repository']['getEarlierVisibleRevision'](_0x304f3b);_0xffc933['compare'](_0x304f3b,_0x2f0940),_0x524037['focus'](),_0x524037['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x10b97e,_0x4ef468){super(_0x10b97e),this['_view']=_0x4ef468,this['_toolbarConfig']=ot(_0x10b97e['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x52b883){const _0x434e89=this['editor'],_0x3d820d=this['view'],_0x1772d2=_0x434e89['editing']['view'],_0x328b3a=_0x3d820d['editable'],_0x28a809=_0x1772d2['document']['getRoot']();_0x328b3a['name']=_0x28a809['rootName'],_0x3d820d['render']();const _0xf924e4=_0x328b3a['element'];this['setEditableElement'](_0x328b3a['name'],_0xf924e4),_0x3d820d['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1772d2['attachDomRoot'](_0xf924e4),this['_elementReplacer']['replace'](_0x52b883,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xd04cb8=this['view'],_0xf065c4=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xf065c4['detachDomRoot'](_0xd04cb8['editable']['name']),_0xd04cb8['destroy']();}['_initToolbar'](){const _0x1067b9=this['view'];_0x1067b9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1067b9['stickyPanel']['limiterElement']=_0x1067b9['element'],_0x1067b9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3352ac})=>_0x3352ac),_0x1067b9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1067b9['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x110b2f,_0x38fa2a,_0x39d6b9={}){super(_0x110b2f),this['stickyPanel']=new ut(_0x110b2f),this['toolbar']=new lt(_0x110b2f,{'shouldGroupWhenFull':_0x39d6b9['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x110b2f,_0x38fa2a);}['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(_0x5c5399,_0x191bfd){super(_0x191bfd),this['sourceElement']=_0x5c5399,this['model']['document']['createRoot']();const _0x388ded=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x388ded);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xe60718,_0x1f8d6c){const _0x5c78cc=new this(_0xe60718,_0x1f8d6c);return await _0x5c78cc['initPlugins'](),await _0x5c78cc['ui']['init'](_0xe60718),await _0x5c78cc['data']['init'](_0x5c78cc['config']['get']('initialData')||''),_0x5c78cc['fire']('ready'),_0x5c78cc;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x19d40b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57a110){function _0x398d7a(_0x2a3128){return _0x2a3128['map'](_0x1dc6f5=>String['fromCharCode'](_0x1dc6f5))['join']('');}super(_0x57a110),this['result']='end',_0x57a110[_0x398d7a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x398d7a([0x76,0x69,0x65,0x77])][_0x398d7a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x398d7a([0x61,0x75,0x74,0x6f]),_0x57a110[_0x398d7a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x398d7a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x398d7a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x398d7a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x398d7a([0x6f,0x6b])});}}class k extends _0x19d40b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x414603){if(super(_0x414603),!this['editor']['config']['get']('revisionHistory'))throw new _0x8bd142('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x19916d=>this['_showRevisionViewer']({..._0x19916d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4e153d=>this['_closeRevisionViewer'](_0x4e153d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x61983=>this['_restoreRevision'](_0x61983)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x312c5e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x312c5e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4f013f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4f013f);}['getRevision'](_0x501028){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x501028);}['getRevisions'](_0x3be329){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3be329||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x41e486=this['editor'],_0x5476fd=_0x5aab15(_0x41e486,p),_0x2996f0=_0x41e486['plugins']['get']('RevisionTracker'),_0x1f9f34=_0x41e486['plugins']['get']('Users')['users'];return _0x5476fd['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5476fd['lazyRoots'],(_0x5476fd['plugins']['push'](bt,d,g,class extends _0x19d40b{static get['requires'](){return[d,'Users'];}['init'](){const _0x5cdf5a=this['editor']['plugins']['get']('Users');for(const _0x1b6f6f of _0x1f9f34)_0x1b6f6f['isAnonymous']||_0x5cdf5a['getUser'](_0x1b6f6f['id'])||_0x5cdf5a['addUser'](_0x1b6f6f);const _0x22f789=_0x2996f0['repository']['getRevisions']();let _0x28bcd9=null;const _0x44f89a=this['editor']['plugins']['get']('RevisionViewer');_0x44f89a['adapter']=_0x2996f0['adapter'],_0x44f89a['bind']('isEnabled')['to'](_0x2996f0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x41e486,'isReadOnly',_0x333419=>!_0x333419);for(const _0x243302 of _0x22f789){const _0x1fdafc=null===_0x243302['creator'];if(_0x1fdafc&&_0x243302['toVersion']===_0x243302['fromVersion'])continue;const _0x3194ab=_0x243302['toJSON']();_0x44f89a['addRevisionData'](_0x3194ab,(_0x1563a7,_0x42d07d,_0xc9289a)=>{if(_0x1fdafc){if(_0x28bcd9)_0x28bcd9['_update'](_0x1563a7,_0x42d07d);else{if(!_0x42d07d){const _0x50d71c=_0xc9289a['toJSON']();_0x50d71c['id']=_0x2db367(),_0x2996f0['saveRevision'](_0x50d71c,_0xc9289a['toVersion'])['then'](_0x18241b=>{_0x28bcd9=_0x18241b;});}}}else _0x243302['_update'](_0x1563a7,_0x42d07d);});}}},w),_0x5476fd);}['_enhanceShowRevisionViewerCallback'](){const _0x2ffb1c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x6c8f0d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3520ab=this['editor']['plugins']['get']('Autosave');await _0x3520ab['save']();}else await _0x6c8f0d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x389f8f=this['editor']['plugins']['get']('Dialog');_0x389f8f['isOpen']&&_0x389f8f['hide']();}const _0x570aa5=this['_getRevisionViewerEditorConfig']();return _0x2ffb1c(_0x570aa5)['then'](_0x1715f6=>{return(this['_viewerEditor']=_0x1715f6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1715f6;})['catch'](_0x2b62ac=>(console['error'](_0x2b62ac),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2039a6=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'](),_0x2039a6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x51f074=this['editor']['plugins']['get']('Annotations');_0x51f074['refreshVisibility'](),_0x51f074['refreshPositioning']();}})));}['_showRevisionViewer'](_0x22631e){const _0x2c46c6=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3a8c28=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2032fe=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2032fe,_0x22631e)['then'](_0xdbd1b9=>(_0x3a8c28['style']['display']='block',_0x2c46c6['style']['display']='none',_0xdbd1b9));}['_closeRevisionViewer'](_0x339526){const _0x4ccf79=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4ccf79['style']['display']='',_0x339526['destroy']();}async['_restoreRevision'](_0x700dff){const _0x30d835=this['editor'],_0x4b0d71=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x6e3151=_0x30d835['plugins']['get']('RevisionTracker'),_0x1d9506=_0x4b0d71['repository']['getRevision'](_0x700dff);let _0x49753a,_0x211b34,_0x2a40e7;try{_0x49753a=await _0x4b0d71['getRevisionData'](_0x1d9506),_0x211b34=await _0x4b0d71['getRevisionRootsAttributes'](_0x1d9506);}catch(_0x1deb84){return void console['error'](_0x1deb84);}_0x30d835['model']['change'](_0x3711f3=>{for(const _0xd17f18 of Array['from'](_0x30d835['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3711f3['removeMarker'](_0xd17f18);}),_0x4b0d71['isReady']=!0x1,_0x30d835['model']['enqueueChange'](_0x5573aa=>{_0x5573aa['setSelection'](null),_0x5573aa['removeSelectionAttribute'](_0x30d835['model']['document']['selection']['getAttributeKeys']());const _0x34a79c=Object['keys'](_0x49753a);for(const _0x213a4e of _0x30d835['model']['document']['roots'])'$graveyard'!=_0x213a4e['rootName']&&_0x213a4e['isAttached']()&&!_0x34a79c['includes'](_0x213a4e['rootName'])&&_0x5573aa['detachRoot'](_0x213a4e);for(const _0x54cde8 of _0x34a79c){let _0x1cc4ab=_0x30d835['model']['document']['getRoot'](_0x54cde8);_0x1cc4ab&&_0x1cc4ab['isAttached']()||(_0x1cc4ab=_0x5573aa['addRoot'](_0x54cde8));const _0x253929=_0x211b34[_0x54cde8],_0x34fb4c=Object['keys'](_0x253929),_0x2929fe=_0x49753a[_0x54cde8];for(const _0x581996 of _0x1cc4ab['getAttributeKeys']())_0x34fb4c['includes'](_0x581996)||_0x5573aa['removeAttribute'](_0x581996,_0x1cc4ab);for(const _0x453e63 of _0x34fb4c)_0x5573aa['setAttribute'](_0x453e63,_0x211b34[_0x54cde8][_0x453e63],_0x1cc4ab);_0x5573aa['remove'](_0x5573aa['createRangeIn'](_0x1cc4ab)),_0x5573aa['insert'](_0x30d835['data']['parse'](_0x2929fe,_0x1cc4ab),_0x1cc4ab,0x0);}});const _0x318869=m(_0x30d835['locale'],'Restored');if(_0x1d9506['name'])_0x2a40e7=-0x1==_0x1d9506['name']['indexOf'](_0x318869)?_0x318869+':\x20'+_0x1d9506['name']:_0x1d9506['name'];else _0x2a40e7=_0x318869+':\x20'+(_0x1d9506['createdAt']['toLocaleDateString'](_0x30d835['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1d9506['createdAt']['toLocaleTimeString'](_0x30d835['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x6e3151['saveRevision']({'name':_0x2a40e7}),_0x4b0d71['isReady']=!0x0,_0x30d835['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};