@ckeditor/ckeditor5-revision-history 45.2.1 → 46.0.0-alpha.1

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 (211) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index-editor.css +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.js +7 -6
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +14 -14
  152. package/src/changeitem.d.ts +1 -1
  153. package/src/changeitem.js +2 -2
  154. package/src/editor/revisionviewereditor.d.ts +2 -2
  155. package/src/editor/revisionviewereditor.js +2 -2
  156. package/src/editor/revisionviewereditorui.d.ts +2 -2
  157. package/src/editor/revisionviewereditorui.js +1 -1
  158. package/src/editor/revisionviewereditoruiview.d.ts +1 -1
  159. package/src/editor/revisionviewereditoruiview.js +1 -1
  160. package/src/index.d.ts +14 -11
  161. package/src/index.js +1 -1
  162. package/src/revision.d.ts +1 -1
  163. package/src/revision.js +2 -2
  164. package/src/revisiondiff.d.ts +4 -4
  165. package/src/revisiondiff.js +1 -1
  166. package/src/revisionhistory.d.ts +4 -41
  167. package/src/revisionhistory.js +1 -1
  168. package/src/revisionhistoryutils.d.ts +2 -2
  169. package/src/revisionhistoryutils.js +1 -1
  170. package/src/revisionsrepository.d.ts +2 -2
  171. package/src/revisionsrepository.js +1 -1
  172. package/src/revisiontracker.d.ts +6 -11
  173. package/src/revisiontracker.js +1 -1
  174. package/src/revisionviewer.d.ts +7 -7
  175. package/src/revisionviewer.js +1 -1
  176. package/src/ui/revision/createrevisionactionsdropdown.d.ts +3 -3
  177. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  178. package/src/ui/revision/revisionauthorview.d.ts +1 -1
  179. package/src/ui/revision/revisionauthorview.js +1 -1
  180. package/src/ui/revision/revisionnameview.d.ts +1 -1
  181. package/src/ui/revision/revisionnameview.js +1 -1
  182. package/src/ui/revision/revisionview.d.ts +3 -3
  183. package/src/ui/revision/revisionview.js +2 -2
  184. package/src/ui/revision/subrevisioncollapserview.d.ts +1 -1
  185. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  186. package/src/ui/revision/subrevisionview.d.ts +2 -2
  187. package/src/ui/revision/subrevisionview.js +1 -1
  188. package/src/ui/revision/utils.js +1 -1
  189. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +3 -1
  190. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -1
  191. package/src/ui/revisionhistory/revisionhistoryui.d.ts +2 -2
  192. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  193. package/src/ui/revisionssidebar/revisionssidebar.d.ts +3 -3
  194. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  195. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +1 -1
  196. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  197. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +3 -3
  198. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  199. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +4 -4
  200. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  201. package/src/ui/revisionssidebar/utils.js +1 -1
  202. package/src/ui/revisionviewer/changedetailsview.d.ts +2 -2
  203. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  204. package/src/ui/revisionviewer/changesnavigationview.d.ts +1 -1
  205. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  206. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
  207. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  208. package/src/ui/revisionviewer/revisionviewerui.d.ts +3 -3
  209. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  210. package/src/utils/common-translations.js +1 -1
  211. package/theme/revisionviewerloadingoverlay.css +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,11 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x403bd3,uid as _0x21b6c1,Collection as _0x93c57c,logWarning as _0x155fb9,FocusTracker as _0x3169cf,KeystrokeHandler as _0x3cd51a,scrollViewportToShowTarget as _0x3cc31c,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x10de98}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5c4150,set as _0x4b3e9e,unset as _0x1c146f,isEqual as _0x85b8af}from'es-toolkit/compat';import{Plugin as _0x569b2d,PendingActions as _0x43bcff,Command as _0x447304,ElementApiMixin as _0x446a9a,Editor as _0x2d9f85}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x36246b,getMarkerDomElement as _0x3e6754,ConfirmMixin as _0x2bc197,sanitizeEditorConfig as _0x4c78ca}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x5ce04e,ViewAttributeElement as _0x382ce4,ViewEmptyElement as _0x11f02d,ViewRawElement as _0x4fa4c6,ViewUIElement as _0x598fc3,ViewDocumentFragment as _0x16ce2b,ViewText as _0x53531c,ViewElement as _0xfc13bc,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x36a0df,IconChevronUp as _0x7e3ec3,IconChevronDown as _0x2de4f2,IconUndo as _0x2574cb,IconUser as _0x5acc08,IconThreeVerticalDots as _0x4126f9}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x558c45,submitHandler as _0x5b2273,LabeledFieldView as _0x44236c,createLabeledInputText as _0x3243f8,createDropdown as _0x349be9,ListView as _0x5edbb0,ListItemView as _0x11cc1b,ButtonView as te,MenuBarMenuView as _0x38f813,MenuBarMenuListView as _0x202c2b,MenuBarMenuListItemView as _0x54af72,MenuBarMenuListItemButtonView as _0x5cdc55,ContextualBalloon as _0x1d4d68,ToolbarSeparatorView as _0x5b9bc3,IconView as _0x1cb45c,addListToDropdown as _0x5c4b24,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4f2601}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x403bd3(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1e2f91){super(),this['id']=_0x1e2f91['id']||_0x21b6c1(),this['creator']=_0x1e2f91['creator']||null,this['authors']=_0x1e2f91['authors']||[],this['diffData']=_0x1e2f91['diffData']||null,this['toVersion']=_0x1e2f91['toVersion']||0x0,this['fromVersion']=_0x1e2f91['fromVersion']||0x0,this['set']('name',_0x1e2f91['name']||''),this['set']('createdAt',_0x1e2f91['createdAt']||new Date()),this['set']('attributes',_0x1e2f91['attributes']||{});}['setName'](_0x15e719){this['_update']({'name':_0x15e719});}['setAttribute'](_0x5674c6,_0x1c535a){const _0x1e2c06=_0x5c4150(this['attributes']);_0x4b3e9e(_0x1e2c06,_0x5674c6,_0x1c535a),this['_update']({'attributes':_0x1e2c06});}['removeAttribute'](_0x3a44e3){const _0x2bef66=_0x5c4150(this['attributes']);_0x1c146f(_0x2bef66,_0x3a44e3),this['_update']({'attributes':_0x2bef66});}['_update'](_0x58607e,_0x26f8e5=!0x1){let _0x38008e=!0x1;const _0x382822={'id':this['id']},_0x1f1953=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x409991 of _0x1f1953){const _0x31ae24=_0x58607e[_0x409991];void 0x0!==_0x31ae24&&_0x31ae24!==this[_0x409991]&&(this[_0x409991]=_0x31ae24,_0x382822[_0x409991]=_0x31ae24,_0x38008e=!0x0);}_0x38008e&&(_0x382822['authors']&&(_0x382822['authorsIds']=_0x382822['authors']['map'](_0x2b0322=>_0x2b0322['id']),delete _0x382822['authors']),this['fire']('_update',_0x382822,_0x26f8e5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x59cff8=>_0x59cff8['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x569b2d{['_revisions'];static get['requires'](){return[_0x36246b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xc51893){super(_0xc51893),this['_revisions']=new _0x93c57c();}['afterInit'](){!async function(_0x2b882a){const _0x281943=_0x549c17([0x33,0x35,0x64,0x74,0x38,0x7a,0x53,0x42,0x79,0x59,0x4c,0x57,0x65,0x51,0x50,0x69,0x78,0x5a,0x58,0x43,0x4a,0x77,0x48,0x6d,0x6a,0x52,0x70,0x56,0x4f,0x75,0x62,0x44,0x31,0x6b,0x39,0x66,0x6e,0x41,0x61,0x72,0x32,0x54,0x63,0x37,0x4d,0x45,0x34,0x76,0x6c,0x55,0x71,0x30,0x67,0x4e,0x6f,0x46,0x49,0x47,0x68,0x36,0x73,0x4b]),_0x44d44f=0xeb829,_0xe7edf=0x2f9abab5,_0x54060e=0x2f9dd11d^_0xe7edf,_0x5a14b0=window[_0x549c17([0x44,0x61,0x74,0x65])][_0x549c17([0x6e,0x6f,0x77])](),_0x58b036=_0x2b882a[_0x549c17([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x327b49=new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10cdd7=>{_0x58b036[_0x549c17([0x6f,0x6e,0x63,0x65])](_0x549c17([0x72,0x65,0x61,0x64,0x79]),_0x10cdd7);}),_0x4156d4={[_0x549c17([0x6b,0x74,0x79])]:_0x549c17([0x45,0x43]),[_0x549c17([0x75,0x73,0x65])]:_0x549c17([0x73,0x69,0x67]),[_0x549c17([0x63,0x72,0x76])]:_0x549c17([0x50,0x2d,0x32,0x35,0x36]),[_0x549c17([0x78])]:_0x549c17([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]),[_0x549c17([0x79])]:_0x549c17([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]),[_0x549c17([0x61,0x6c,0x67])]:_0x549c17([0x45,0x53,0x32,0x35,0x36])},_0x1c2704=_0x58b036[_0x549c17([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x549c17([0x67,0x65,0x74])](_0x549c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x155e49(){let _0x37fe8a,_0x52e8cd=null,_0x3d6ce2=null;try{if(_0x1c2704==_0x549c17([0x47,0x50,0x4c]))return _0x549c17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x37fe8a=_0x2106ff(),!_0x37fe8a)return _0x549c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x37fe8a[_0x549c17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d6ce2=_0x446554(_0x37fe8a[_0x549c17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x37fe8a[_0x549c17([0x6a,0x74,0x69])])),await _0x527635()?_0x3d6e10()?_0x22665f()?_0x549c17([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x543248()?(_0x37fe8a[_0x549c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x549c17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x52e8cd=_0x4350d9(_0x549c17([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x37fe8a[_0x549c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x549c17([0x74,0x72,0x69,0x61,0x6c])&&(_0x52e8cd=_0x4350d9(_0x549c17([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x179ee5()):_0x549c17([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x549c17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x549c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x549c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22665f(){const _0x4d71aa=[_0x549c17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x549c17([0x74,0x72,0x69,0x61,0x6c])][_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37fe8a[_0x549c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a14b0/0x3e8:0xe10*_0x54060e;return _0x37fe8a[_0x549c17([0x65,0x78,0x70])]<_0x4d71aa;}function _0x3d6e10(){const _0x4007a5=_0x37fe8a[_0x549c17([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4007a5)return!0x1;if(_0x4007a5[_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x549c17([0x2a])))return!0x0;if(_0x4007a5[_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x549c17([0x52,0x48])))return!0x0;if(_0x4007a5[_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x549c17([0x52,0x52,0x48]))){if(_0x3b4851())return!0x0;if(_0x2d4e8b()||_0x1d5a76())return!0x0;}return!0x1;}function _0x543248(){const _0x4cb0cf=_0x37fe8a[_0x549c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cb0cf||0x0==_0x4cb0cf[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3bad6e}=new URL(window[_0x549c17([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4cb0cf[_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3bad6e))return!0x0;const _0x2eb85e=_0x3bad6e[_0x549c17([0x73,0x70,0x6c,0x69,0x74])](_0x549c17([0x2e]));return _0x4cb0cf[_0x549c17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ecde4=>_0x2ecde4[_0x549c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x549c17([0x2a])))[_0x549c17([0x6d,0x61,0x70])](_0x4260bb=>_0x4260bb[_0x549c17([0x73,0x70,0x6c,0x69,0x74])](_0x549c17([0x2e])))[_0x549c17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50b8b5=>_0x50b8b5[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2eb85e[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x549c17([0x6d,0x61,0x70])](_0x1fdd95=>Array(_0x2eb85e[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1fdd95[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x549c17([0x66,0x69,0x6c,0x6c])](_0x1fdd95[0x0]===_0x549c17([0x2a])?_0x549c17([0x2a]):'')[_0x549c17([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1fdd95))[_0x549c17([0x73,0x6f,0x6d,0x65])](_0x49f607=>_0x2eb85e[_0x549c17([0x65,0x76,0x65,0x72,0x79])]((_0x401d35,_0x5ac663)=>_0x49f607[_0x5ac663]===_0x401d35||_0x49f607[_0x5ac663]===_0x549c17([0x2a])));}function _0x179ee5(){return _0x52e8cd&&_0x3d6ce2?new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b5175,_0x463958)=>{_0x52e8cd[_0x549c17([0x74,0x68,0x65,0x6e])](_0x5b5175,_0x463958),_0x3d6ce2[_0x549c17([0x74,0x68,0x65,0x6e])](_0x595b69=>{_0x595b69!=_0x549c17([0x56,0x61,0x6c,0x69,0x64])&&_0x5b5175(_0x595b69);},_0x463958);}):_0x52e8cd||_0x3d6ce2||_0x549c17([0x56,0x61,0x6c,0x69,0x64]);}}function _0x446554(_0x1ecb0f,_0x15bf62){return new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cc9ed=>{if(_0x254ec9())return _0x5cc9ed(_0x549c17([0x56,0x61,0x6c,0x69,0x64]));_0x3afa3d(),_0x58b036[_0x549c17([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x549c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f88f4=!0x1;const _0x49b2e7=_0x21b6c1();function _0x3d7f9c(_0x2b2381){return!!_0x2b2381&&(typeof _0x2b2381===_0x549c17([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2b2381===_0x549c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2b2381[_0x549c17([0x74,0x68,0x65,0x6e])]===_0x549c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2b2381[_0x549c17([0x63,0x61,0x74,0x63,0x68])]===_0x549c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x232d23(_0x489251){_0x577f80(_0x489251)[_0x549c17([0x74,0x68,0x65,0x6e])](_0x1e2b26=>{if(!_0x1e2b26||_0x1e2b26[_0x549c17([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x549c17([0x6f,0x6b]))return _0x549c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2b538b(_0x17c495(_0x49b2e7+_0x15bf62))!=_0x1e2b26[_0x549c17([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x549c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x549c17([0x56,0x61,0x6c,0x69,0x64]);})[_0x549c17([0x74,0x68,0x65,0x6e])](_0x114323=>(_0x366af6(),_0x114323),()=>{const _0x4cdaec=_0x3717d7();return null==_0x4cdaec?(_0x366af6(),_0x549c17([0x56,0x61,0x6c,0x69,0x64])):_0x549c17(_0x5a14b0-_0x4cdaec>(0xb963eb5^_0xe7edf)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x549c17([0x74,0x68,0x65,0x6e])](_0x5cc9ed)[_0x549c17([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cc9ed(_0x549c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ee667=0x2fac5435^_0xe7edf;function _0x366af6(){const _0x58c05e=_0x549c17([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b538b(_0x17c495(_0x1ecb0f)),_0x23383c=_0x3d711a(_0x2b538b(window[_0x549c17([0x4d,0x61,0x74,0x68])][_0x549c17([0x63,0x65,0x69,0x6c])](_0x5a14b0/_0x3ee667)));window[_0x549c17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x549c17([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58c05e,_0x23383c);}function _0x3717d7(){const _0x769e8f=_0x549c17([0x6c,0x6c,0x63,0x74,0x2d])+_0x2b538b(_0x17c495(_0x1ecb0f)),_0x49d1c0=window[_0x549c17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x549c17([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x769e8f);return _0x49d1c0?window[_0x549c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d711a(_0x49d1c0),0x10)*_0x3ee667:null;}function _0x577f80(_0x5b93f3){return new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1738c5,_0x1e815b)=>{_0x5b93f3[_0x549c17([0x74,0x68,0x65,0x6e])](_0x1738c5,_0x1e815b),window[_0x549c17([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e815b,0x2f9b6e75^_0xe7edf);});}}_0x58b036[_0x549c17([0x6f,0x6e])](_0x549c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b4678,_0x2fc398)=>{if(_0x2fc398[0x0]!=_0x1ecb0f)return _0x5cc9ed(_0x549c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2fc398[0x1]={..._0x2fc398[0x1],[_0x549c17([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x49b2e7};},{[_0x549c17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x549c17([0x68,0x69,0x67,0x68])}),_0x58b036[_0x549c17([0x6f,0x6e])](_0x549c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b0312=>{_0x3d7f9c(_0x3b0312[_0x549c17([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f88f4=!0x0,_0x232d23(_0x3b0312[_0x549c17([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x549c17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x549c17([0x6c,0x6f,0x77])}),_0x327b49[_0x549c17([0x74,0x68,0x65,0x6e])](()=>{_0x2f88f4||_0x5cc9ed(_0x549c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x254ec9(){return _0x58b036[_0x549c17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x549c17([0x76,0x69,0x65,0x77])][_0x549c17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x549c17([0x61,0x75,0x74,0x6f]);}function _0x3afa3d(){_0x58b036[_0x549c17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x549c17([0x76,0x69,0x65,0x77])][_0x549c17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x549c17([0x61,0x75,0x74,0x6f]);}}function _0x4350d9(_0x395c6e){const _0x503a86=[new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12e0a6=>setTimeout(_0x12e0a6,0x2f938479^_0xe7edf)),_0x327b49[_0x549c17([0x74,0x68,0x65,0x6e])](()=>new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e60cc=>{const _0x2bdfaa=0x2f9abab2^_0xe7edf,_0x121d17=_0x2b882a[_0x549c17([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4b0b42(){_0x121d17[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2bdfaa&&_0x5e60cc();}_0x4b0b42(),_0x121d17[_0x549c17([0x6f,0x6e])](_0x549c17([0x61,0x64,0x64]),_0x4b0b42);})),new window[(_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54895=>{function _0x4555af(){for(const _0x4d78ba in window)if(window[_0x549c17([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x549c17([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4d78ba))&&window[_0x4d78ba]==_0x44d44f)return _0x54895();_0x58b036[_0x549c17([0x73,0x74,0x61,0x74,0x65])]!=_0x549c17([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x549c17([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4555af,0x2f9aa93d^_0xe7edf);}_0x19294e(_0x549c17([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4555af();})];return window[_0x549c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x549c17([0x72,0x61,0x63,0x65])](_0x503a86)[_0x549c17([0x74,0x68,0x65,0x6e])](()=>_0x395c6e);}async function _0x3b5421(){if(await _0x327b49,_0x19294e(_0x549c17([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x545ac8=_0x2b882a[_0x549c17([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x44b5de=_0x2b882a[_0x549c17([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])](_0x545ac8[_0x549c17([0x69,0x64])]),_0x24fbcd=_0x2146a2(_0x549c17([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x24fbcd[_0x549c17([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x545ac8['id'],_0x44b5de?_0x44b5de['id']:null,!0x0),_0x24fbcd[_0x549c17([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x549c17([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x24fbcd[_0x549c17([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x24fbcd[_0x549c17([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x28457c,void(_0x24fbcd[_0x549c17([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x28457c);}if(_0x19294e(_0x549c17([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2356a0=_0x2146a2(_0x549c17([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2356a0[_0x549c17([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x549c17([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2356a0[_0x549c17([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2356a0[_0x549c17([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x28457c,_0x2356a0[_0x549c17([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x28457c;}_0x58b036[_0x549c17([0x6d,0x6f,0x64,0x65,0x6c])][_0x549c17([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28457c,_0x58b036[_0x549c17([0x6d,0x6f,0x64,0x65,0x6c])][_0x549c17([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28457c,_0x58b036[_0x549c17([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x549c17([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3b4851(){return _0x19294e(_0x549c17([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2146a2(_0x549c17([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x549c17([0x73,0x74,0x61,0x74,0x65])]==_0x549c17([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2d4e8b(){return _0x19294e(_0x549c17([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 _0x1d5a76(){return _0x19294e(_0x549c17([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5d90b1(_0x238f70){const _0x1d25d6=_0x12ec06();_0x58b036[_0x1d25d6]=_0x549c17([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])+_0x238f70,_0x238f70[_0x549c17([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x549c17([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x12ec06()]=_0x44d44f),_0x238f70!=_0x549c17([0x56,0x61,0x6c,0x69,0x64])&&_0x3b5421();}function _0x12ec06(){const _0x597ea4=window[_0x549c17([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x549c17([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x549c17([0x6e,0x6f,0x77])]())[_0x549c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x549c17([0x2e]),'');let _0x4d0b2a=_0x549c17([0x64]);for(let _0x8cb861=0x0;_0x8cb861<_0x597ea4[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8cb861+=0x2){let _0x4f4805=window[_0x549c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x597ea4[_0x549c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8cb861,_0x8cb861+0x2));_0x4f4805>=_0x281943[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f4805-=_0x281943[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4d0b2a+=_0x281943[_0x4f4805];}return _0x4d0b2a;}function _0x2106ff(){const _0x216e2f=_0x1c2704[_0x549c17([0x73,0x70,0x6c,0x69,0x74])](_0x549c17([0x2e]));if(0x3!=_0x216e2f[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x407b66(_0x216e2f[0x1]);function _0x407b66(_0x4183ed){const _0x35f212=_0x20589b(_0x4183ed);return _0x35f212&&_0x5a2ddd()?_0x35f212:null;function _0x5a2ddd(){const _0x3ec9e6=_0x35f212[_0x549c17([0x6a,0x74,0x69])],_0x173a43=window[_0x549c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ec9e6[_0x549c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ec9e6[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x46f714={..._0x35f212,[_0x549c17([0x6a,0x74,0x69])]:_0x3ec9e6[_0x549c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ec9e6[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x46f714[_0x549c17([0x76,0x63])],_0x17c495(_0x46f714)==_0x173a43;}}}async function _0x527635(){let _0x58a78a=!0x0;try{const _0x91ac24=_0x1c2704[_0x549c17([0x73,0x70,0x6c,0x69,0x74])](_0x549c17([0x2e])),[_0x2f8a1c,_0x8bb3e1,_0x4ae5d7]=_0x91ac24;return _0x256d79(_0x2f8a1c),await _0x4b598e(_0x2f8a1c,_0x8bb3e1,_0x4ae5d7),_0x58a78a;}catch{return!0x1;}function _0x256d79(_0x4a6fe9){const _0x1044a8=_0x20589b(_0x4a6fe9);_0x1044a8&&_0x1044a8[_0x549c17([0x61,0x6c,0x67])]==_0x549c17([0x45,0x53,0x32,0x35,0x36])||(_0x58a78a=!0x1);}async function _0x4b598e(_0x255a50,_0x352573,_0x2de798){const _0x5ef6a1=window[_0x549c17([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x549c17([0x66,0x72,0x6f,0x6d])](_0x4cd31c(_0x2de798),_0x7b2e6f=>_0x7b2e6f[_0x549c17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x283b5b=new window[(_0x549c17([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x549c17([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x255a50+_0x549c17([0x2e])+_0x352573),_0x42474f=window[_0x549c17([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x549c17([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42474f)return;const _0xa75f30=await _0x42474f[_0x549c17([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x549c17([0x6a,0x77,0x6b]),_0x4156d4,{[_0x549c17([0x6e,0x61,0x6d,0x65])]:_0x549c17([0x45,0x43,0x44,0x53,0x41]),[_0x549c17([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x549c17([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x549c17([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42474f[_0x549c17([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x549c17([0x6e,0x61,0x6d,0x65])]:_0x549c17([0x45,0x43,0x44,0x53,0x41]),[_0x549c17([0x68,0x61,0x73,0x68])]:{[_0x549c17([0x6e,0x61,0x6d,0x65])]:_0x549c17([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa75f30,_0x5ef6a1,_0x283b5b)||(_0x58a78a=!0x1);}}function _0x20589b(_0xcec024){return _0xcec024[_0x549c17([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x549c17([0x65,0x79]))?JSON[_0x549c17([0x70,0x61,0x72,0x73,0x65])](_0x4cd31c(_0xcec024)):null;}function _0x4cd31c(_0x147da6){return window[_0x549c17([0x61,0x74,0x6f,0x62])](_0x147da6[_0x549c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x549c17([0x2b]))[_0x549c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x549c17([0x2f])));}function _0x17c495(_0x14da9f){let _0x677bb7=0x1505;function _0x368d43(_0x57ac27){for(let _0x2bd66c=0x0;_0x2bd66c<_0x57ac27[_0x549c17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2bd66c++){const _0x4a19=_0x57ac27[_0x549c17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2bd66c);_0x677bb7=(_0x677bb7<<0x5)+_0x677bb7+_0x4a19,_0x677bb7&=_0x677bb7;}}function _0x10f201(_0x524372){Array[_0x549c17([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x524372)?_0x524372[_0x549c17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10f201):_0x524372&&typeof _0x524372==_0x549c17([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x549c17([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x524372)[_0x549c17([0x73,0x6f,0x72,0x74])]()[_0x549c17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a0abb,_0x586198])=>{_0x368d43(_0x4a0abb),_0x10f201(_0x586198);}):_0x368d43(window[_0x549c17([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x524372));}return _0x10f201(_0x14da9f),_0x677bb7>>>0x0;}function _0x2b538b(_0x55bba5){return _0x55bba5[_0x549c17([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x549c17([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x549c17([0x30]));}function _0x3d711a(_0x3826c2){return _0x3826c2[_0x549c17([0x73,0x70,0x6c,0x69,0x74])]('')[_0x549c17([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x549c17([0x6a,0x6f,0x69,0x6e])]('');}function _0x19294e(_0x11aef0){return _0x58b036[_0x549c17([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x549c17([0x68,0x61,0x73])](_0x11aef0);}function _0x2146a2(_0x425142){return _0x58b036[_0x549c17([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x549c17([0x67,0x65,0x74])](_0x425142);}function _0x28457c(){}function _0x549c17(_0x5ba8aa){return _0x5ba8aa['map'](_0x15a8ee=>String['fromCharCode'](_0x15a8ee))['join']('');}_0x5d90b1(await _0x155e49());}(this);}['createRevision'](_0x1f9e8e){const _0x532f25=this['editor']['plugins']['get']('Users');return new h({'id':_0x1f9e8e['id'],'name':_0x1f9e8e['name'],'creator':_0x1f9e8e['creatorId']?_0x532f25['getUser'](_0x1f9e8e['creatorId']):null,'diffData':_0x1f9e8e['diffData']||_0x1f9e8e['data'],'authors':_0x1f9e8e['authorsIds']['map'](_0x4453cf=>_0x532f25['getUser'](_0x4453cf)),'createdAt':new Date(_0x1f9e8e['createdAt']),'attributes':_0x1f9e8e['attributes'],'fromVersion':_0x1f9e8e['fromVersion'],'toVersion':_0x1f9e8e['toVersion']});}['addRevision'](_0x3e9f75,_0xbfd06c=0x0){this['_revisions']['add'](_0x3e9f75,_0xbfd06c);}['getRevision'](_0xd9716e){return this['_revisions']['get'](_0xd9716e);}['getRevisions'](_0x1876c4={'toJSON':!0x1}){const _0x1e209b=Array['from'](this['_revisions']);return _0x1e209b['reverse'](),_0x1876c4['toJSON']?_0x1e209b['map'](_0x315e54=>_0x315e54['toJSON']()):_0x1e209b;}['getIndex'](_0x4cbb98){return this['_revisions']['getIndex'](_0x4cbb98);}['getEarlierVisibleRevision'](_0x3550ec){const [,_0x2092b7]=this['getRevisionsIterator'](_0x3550ec,{'direction':'earlier'});return _0x2092b7;}['getLaterVisibleRevision'](_0x1ff035){const [,_0x443a26]=this['getRevisionsIterator'](_0x1ff035,{'direction':'later'});return _0x443a26;}['getRevisionsInDiff'](_0x3bee4d){const _0x2ac84d=[];for(const _0x5bd163 of this['getRevisionsIterator'](_0x3bee4d['newRevisionId']))if(_0x2ac84d['push'](_0x5bd163),_0x5bd163['id']===_0x3bee4d['oldRevisionId'])break;return _0x2ac84d;}*['getRevisionsIterator'](_0x23f94a,{direction:_0x3668b1='earlier',filter:_0x3e1526=()=>!0x0}={}){const _0xa6dbd7='earlier'===_0x3668b1?0x1:-0x1;let _0x17d841=this['_revisions']['get'](_0x23f94a),_0x76d870=this['getIndex'](_0x17d841);for(yield _0x17d841;_0x17d841;){if(_0x76d870+=_0xa6dbd7,_0x17d841=this['getRevision'](_0x76d870),!_0x17d841)return;_0x3e1526(_0x17d841)&&(yield _0x17d841);}}}class V extends _0x569b2d{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x5ce04e,'c'],[_0x382ce4,'a'],[_0x11f02d,'e'],[_0x4fa4c6,'r'],[_0x598fc3,'u']]);['_typeCharToViewClass']=new Map([['c',_0x5ce04e],['a',_0x382ce4],['e',_0x11f02d],['r',_0x4fa4c6],['u',_0x598fc3]]);async['loadRevisionData'](_0x49aad7,_0xab21fa){if(_0x49aad7['diffData']||!_0xab21fa)return;const _0x39e47f=this['editor']['config']['get']('collaboration.channelId'),_0x3dbb2c=await _0xab21fa['getRevision']({'channelId':_0x39e47f,'revisionId':_0x49aad7['id']});_0x49aad7['diffData']=_0x3dbb2c['diffData'];}['getRevisionDocumentData'](_0x55c7d8){const _0x43cea1={};for(const _0x109b86 in _0x55c7d8['diffData']){if(_0x55c7d8['diffData'][_0x109b86]['attachChange']&&!_0x55c7d8['diffData'][_0x109b86]['attachChange']['isAttached'])continue;const _0x50ffc5=this['_removeRevisionMarkers'](JSON['parse'](_0x55c7d8['diffData'][_0x109b86]['insertions'])),_0x28dac3=this['editor']['editing']['view']['document'],_0x596c54=new _0x16ce2b(_0x28dac3,_0x50ffc5['map'](_0x372520=>this['_getViewFromDiffObj'](_0x372520,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x43cea1[_0x109b86]=this['editor']['data']['processor']['toData'](_0x596c54),this['editor']['data']['processor']['useFillerType']('default');}return _0x43cea1;}['getRevisionRootsAttributes'](_0x54158c){const _0x4aa7c3={};for(const _0x286dee in _0x54158c['diffData'])_0x54158c['diffData'][_0x286dee]['attachChange']&&!_0x54158c['diffData'][_0x286dee]['attachChange']['isAttached']||(_0x4aa7c3[_0x286dee]=_0x54158c['diffData'][_0x286dee]['attributesAfter']||{});return _0x4aa7c3;}['_getTypeCharForViewElement'](_0x407e77){return this['_viewClassToTypeChar']['get'](_0x407e77['constructor']);}['_getViewFromDiffObj'](_0x1347d8,_0xb398e6){const _0x412505=this['editor']['editing']['view']['document'];if('string'==typeof _0x1347d8)return new _0x53531c(_0x412505,_0x1347d8);{let _0x3fb047,_0x163398;_0x163398='u'==_0x1347d8['type']||'r'==_0x1347d8['type']?[]:_0x1347d8['children']['map'](_0xa9a655=>this['_getViewFromDiffObj'](_0xa9a655,_0xb398e6));const _0x5a8af4=this['_typeCharToViewClass']['get'](_0x1347d8['type'])||_0xfc13bc,_0x42bc9b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x3fb047=new _0x5a8af4(_0x412505,_0x1347d8['name'],_0x1347d8['attributes'],_0x163398),'u'==_0x1347d8['type']&&_0x1347d8['children'][0x0]){const _0x446a7f=_0x1347d8['children'][0x0];if(_0x3fb047['render']=function(_0x46199a){const _0x36ec7f=_0x46199a['createElement']('div');return _0x36ec7f['innerHTML']=_0x446a7f,_0x36ec7f['childNodes'][0x0];},_0xb398e6){const _0xd5e07a=new _0x16ce2b(_0x412505);_0xd5e07a['_appendChild'](_0x3fb047);const _0x5b9469=Array['from'](_0x42bc9b['viewChildrenToDom'](_0xd5e07a,{'bind':!0x1})),_0x313eff=_0x42bc9b['domDocument']['createElement']('div');_0x313eff['append'](..._0x5b9469),_0x3fb047=Array['from'](_0x42bc9b['domChildrenToView'](_0x313eff))[0x0];}}else{if('r'==_0x1347d8['type']&&_0x1347d8['children'][0x0]){const _0x5c6645=_0x1347d8['children'][0x0];if(_0x3fb047['render']=function(_0x1fc66c){_0x1fc66c['innerHTML']=_0x5c6645;},_0xb398e6){const _0xdabde3=new _0x16ce2b(_0x412505);_0xdabde3['_appendChild'](_0x3fb047);const _0x1a4928=Array['from'](_0x42bc9b['viewChildrenToDom'](_0xdabde3,{'bind':!0x1})),_0xd14019=_0x42bc9b['domDocument']['createElement']('div');_0xd14019['append'](..._0x1a4928);const _0x10911f=Array['from'](_0x42bc9b['domChildrenToView'](_0xd14019));_0x10911f['length']>0x1?_0x3fb047['_appendChild'](_0x10911f):_0x3fb047=_0x10911f[0x0];}}}if(_0x1347d8['customProperties']){for(const [_0x572a1e,_0x18fbac]of _0x1347d8['customProperties'])_0x3fb047['_setCustomProperty'](_0x572a1e,_0x18fbac);}const _0x26cf68=void 0x0===_0x1347d8['fillerOffset']?null:_0x1347d8['fillerOffset'];return null!==_0x26cf68&&(_0x3fb047['getFillerOffset']=()=>_0x26cf68),_0x3fb047;}}['_makeModelFromViewString'](_0x4fe46a){const _0x1c8f69=JSON['parse'](_0x4fe46a),_0x30a47d=this['editor']['editing']['view']['document'],_0x223970=new _0x16ce2b(_0x30a47d,_0x1c8f69['map'](_0x34ed53=>this['_getViewFromDiffObj'](_0x34ed53,!0x0)));return this['editor']['data']['toModel'](_0x223970);}['_removeRevisionMarkers'](_0x2af293){return(_0x2af293=_0x2af293['filter'](_0xb17c1b=>!_0xb17c1b['name']||'revision-start'!==_0xb17c1b['name']&&'revision-end'!==_0xb17c1b['name']))['forEach'](_0x13a513=>{'string'!=typeof _0x13a513&&(_0x13a513['children']=this['_removeRevisionMarkers'](_0x13a513['children']),_0x13a513['attributes']=_0x13a513['attributes']['filter'](_0x187eb9=>!_0x187eb9[0x0]['startsWith']('data-revision-')));}),_0x2af293;}}function g(_0xfb0bae,_0x353381,_0x11dd6c){const t=_0xfb0bae['t'];switch(_0x353381){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'},_0x11dd6c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x11dd6c);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'';}}class u extends _0x569b2d{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x36246b,I,V,_0x43bcff];}constructor(_0x3e29d5){super(_0x3e29d5),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x31f66f=_0x21b6c1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x31f66f},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x389856=this['repository']['getRevision'](0x0),_0x46daf7=_0x389856&&null===_0x389856['creator']?_0x389856:null;if(this['_continueCurrentRevision']=!!_0x46daf7&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x32c04c=this['_source']['getCurrentRevisionId'](),_0x3371cf=this['repository']['getRevision'](_0x32c04c);if(_0x3371cf)this['_startingVersion']=_0x3371cf['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x425ccf=this['_source']['history']['_operations']['find'](_0x376218=>!_0x376218['_isInit']),_0x4ad20c=_0x425ccf?_0x425ccf['baseVersion']:this['_source']['history']['version'];_0x389856?(_0x389856['toVersion']<_0x4ad20c&&_0x389856['_update']({'toVersion':_0x4ad20c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x46daf7['id'],this['_startingVersion']=_0x46daf7['fromVersion']):(this['_startingVersion']=_0x389856['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4ad20c,this['_continueCurrentRevision']=!0x1);}}else _0x46daf7&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x46daf7['toVersion'],this['editor']['model']['document']['history']['version']),_0x46daf7['fromVersion']===_0x46daf7['toVersion']?(0x0!==_0x46daf7['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x46daf7['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x46daf7['id'],this['_startingVersion']=_0x46daf7['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',_0x5b6ecc=>!_0x5b6ecc),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2fc43e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1f0d89;for(const _0x284840 in _0x2fc43e){const _0x37a1ba=_0x284840,_0x401145=_0x2fc43e[_0x37a1ba];if('revisionHistoryLicenseKeyValid'==_0x401145||'revisionHistoryLicenseKeyInvalid'==_0x401145||'revisionHistoryLicenseKeyExpired'==_0x401145||'revisionHistoryLicenseKeyDomainLimit'==_0x401145||'revisionHistoryLicenseKeyNotAllowed'==_0x401145||'revisionHistoryLicenseKeyEvaluationLimit'==_0x401145||'revisionHistoryLicenseKeyTrialLimit'==_0x401145||'revisionHistoryLicenseKeyUsageLimit'==_0x401145){delete _0x2fc43e[_0x37a1ba],_0x1f0d89=_0x401145,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1f0d89&&_0x2fc43e['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x20ffa1=this['repository']['getRevision'](0x0),_0x3663b4=await this['getRevisionDocumentData'](_0x20ffa1),_0x52df92=await this['getRevisionRootsAttributes'](_0x20ffa1);this['_replaceEditorDataWithRevisionData'](_0x3663b4,_0x52df92);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3bf0c9){this['_source']=_0x3bf0c9;}async['update'](){const _0x340d6c=await this['_source']['getLatestVersion']();if(_0x340d6c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x341c67=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x340d6c});_0x341c67['authors']=_0x341c67['authorsIds']['map'](_0x35da06=>this['editor']['plugins']['get']('Users')['getUser'](_0x35da06)),this['currentRevision']['_update'](_0x341c67);}}async['saveRevision'](_0x520425={},_0x283eeb=null){const _0xef5ac9=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x283eeb>this['currentRevision']['toVersion']&&(_0x283eeb=null),null===_0x283eeb&&(_0x283eeb=await this['_source']['getLatestVersion']());const _0xf1a4be=this['_getFromVersion'](_0x283eeb),_0x468af0=this['buildRevisionData']({'from':_0xf1a4be,'to':_0x283eeb});if(this['currentRevision']['toVersion']<_0x283eeb){const _0x141c6d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x283eeb,'to':_0x283eeb});_0x141c6d['authors']=[],_0x141c6d['authorsIds']=[],_0x141c6d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x141c6d,!0x0),delete _0x141c6d['authors'],_0xef5ac9['push'](_0x141c6d);}_0x520425['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x520425['name']=_0x520425['name']||null,_0x520425['id']=_0x520425['id']||_0x21b6c1(),_0x520425={..._0x520425,..._0x468af0};const _0x4bbd18=this['addRevisionData'](_0x520425);_0xef5ac9['push'](_0x520425);const _0x31f18c=this['repository']['getIndex'](_0x4bbd18);if(0x0!==_0x31f18c){const _0x412547=this['repository']['getRevision'](_0x31f18c-0x1);if(_0x412547['fromVersion']!==_0x283eeb){const _0x3e03c6=this['_revisionDataBuilder']['getData'](_0x283eeb,_0x412547['toVersion']),_0x45739b={'id':_0x412547['id'],'diffData':_0x3e03c6['diffData'],'authorsIds':_0x3e03c6['authorsIds'],'authors':_0x3e03c6['authorsIds']['map'](_0x1bda5a=>this['editor']['plugins']['get']('Users')['getUser'](_0x1bda5a)),'fromVersion':_0x283eeb};_0x412547===this['currentRevision']&&(_0x45739b['createdAt']=new Date(_0x520425['createdAt']['getTime']()+0xa)),_0x412547['_update'](_0x45739b,!0x0),delete _0x45739b['authors'],_0xef5ac9['push'](_0x45739b);}}if(this['adapter']){for(const _0x94d4c of _0xef5ac9)this['_bufferUpdate'](_0x94d4c['id'],_0x94d4c,!0x0);this['sendBufferedUpdates']();}return _0x4bbd18;}['addRevisionData'](_0x31dd47){const _0x5ae692=this['repository']['createRevision'](_0x31dd47);return this['adapter']&&_0x5ae692['on']('_update',(_0x2d388a,_0x49f6f8,_0x2f6dfb)=>{_0x2f6dfb||(this['_bufferUpdate'](_0x49f6f8['id'],_0x49f6f8,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5ae692,this['_findInsertionIndex'](_0x5ae692)),_0x5ae692;}async['getRevisionDocumentData'](_0x135744){return await this['_utils']['loadRevisionData'](_0x135744,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x135744);}async['getRevisionRootsAttributes'](_0x364cea){return await this['_utils']['loadRevisionData'](_0x364cea,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x364cea);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x10ee2f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5220e4=0x0;_0x5220e4<_0x10ee2f['length'];_0x5220e4++){const _0xa1c03d=_0x10ee2f[_0x5220e4];let _0x31e505=!0x1;for(const _0x57426d of Object['keys'](_0xa1c03d))void 0x0===_0xa1c03d[_0x57426d]?delete _0xa1c03d[_0x57426d]:'id'!==_0x57426d&&(_0x31e505=!0x0);_0x31e505||(_0x10ee2f[_0x5220e4]=null);}if(_0x10ee2f=_0x10ee2f['filter'](_0xe0f046=>null!==_0xe0f046),!_0x10ee2f['length'])return;for(let _0x990163=0x0;_0x990163<_0x10ee2f['length'];_0x990163++){const _0x58b5b9=_0x10ee2f[_0x990163];void 0x0!==_0x58b5b9['fromVersion']&&void 0x0===_0x58b5b9['toVersion']&&(_0x58b5b9['toVersion']=this['repository']['getRevision'](_0x58b5b9['id'])['toVersion']),void 0x0!==_0x58b5b9['toVersion']&&void 0x0===_0x58b5b9['fromVersion']&&(_0x58b5b9['fromVersion']=this['repository']['getRevision'](_0x58b5b9['id'])['fromVersion']);}const _0x446e7b=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x10ee2f,_0x446e7b)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1c0971=>{if(_0x1c0971){for(const _0x525b9d of _0x1c0971)this['setRevisionData']({'id':_0x525b9d['id'],'createdAt':_0x525b9d['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x11b7a9=null,from:_0x13bb49=null,to:_0x19d29d=null}){_0x13bb49=null!==_0x13bb49?_0x13bb49:_0x11b7a9['fromVersion'],_0x19d29d=null!==_0x19d29d?_0x19d29d:_0x11b7a9['toVersion'];const _0x5dc526=this['_revisionDataBuilder']['getData'](_0x13bb49,_0x19d29d),_0x4e9a7a={'diffData':_0x5dc526['diffData'],'authorsIds':_0x5dc526['authorsIds'],'fromVersion':_0x13bb49,'toVersion':_0x19d29d};if(!_0x11b7a9||_0x19d29d!==_0x11b7a9['toVersion']){const _0x15ae31=_0x19d29d-0x1,_0x49d393=this['_source']['history']['getOperation'](_0x15ae31);_0x4e9a7a['createdAt']=_0x49d393&&_0x49d393['createdAt']||new Date();}if(this['_loadedStateData']&&_0x13bb49===this['_loadedStateData']['fromVersion']){for(const _0x2e5b0b of this['_loadedStateData']['authors'])_0x4e9a7a['authorsIds']['includes'](_0x2e5b0b['id'])||_0x4e9a7a['authorsIds']['push'](_0x2e5b0b['id']);}return _0x4e9a7a;}['_bufferUpdate'](_0x406897,_0x47c606,_0x58d7d8){if(this['_bufferedUpdates']['has'](_0x406897)){const _0x59b891=this['_bufferedUpdates']['get'](_0x406897);_0x47c606=_0x58d7d8?{..._0x59b891,..._0x47c606}:{..._0x47c606,..._0x59b891};}this['_bufferedUpdates']['set'](_0x406897,_0x47c606);}['setRevisionData'](_0x33f838){const _0xfd4023=this['repository']['getRevision'](_0x33f838['id']);if(_0x33f838['createdAt']&&(_0x33f838['createdAt']=new Date(_0x33f838['createdAt'])),_0x33f838['authorsIds']){const _0x5835e4=this['editor']['plugins']['get']('Users');_0x33f838['authors']=_0x33f838['authorsIds']['map'](_0x271898=>_0x5835e4['getUser'](_0x271898));}_0xfd4023['_update'](_0x33f838,!0x0);}['_createInitialRevision'](_0x3db8c6){const _0x897a4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x897a4)this['_initialRevisionId']=_0x897a4['id'];else{const _0x25c766=!this['editor']['model']['document']['roots']['find'](_0x4670f6=>this['editor']['model']['hasContent'](_0x4670f6)),_0x3b9134=this['editor']['plugins']['get']('Users')['me']['id'],_0x4dbbb9=g(this['editor']['locale'],_0x25c766?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3db8c6,'to':_0x3db8c6,'id':this['_initialRevisionId'],'name':_0x4dbbb9,'creatorId':_0x3b9134});}}['_createCurrentRevision'](_0x495891){const _0x1c493e=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1c493e),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x495891,'to':_0x495891,'id':_0x1c493e,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0xa430dc,_0x58fafb){let _0x2cc743=this['editor']['config']['get']('initialData'),_0x5a93f9=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2cc743){_0x2cc743={};for(const _0x1b25d2 of this['editor']['model']['document']['getRootNames']())_0x2cc743[_0x1b25d2]='';}if('string'==typeof _0x2cc743&&(_0x2cc743={'main':_0x2cc743}),void 0x0===_0x5a93f9){_0x5a93f9={};for(const _0x41008d of this['editor']['model']['document']['getRootNames']())_0x5a93f9[_0x41008d]={};}let _0x1e7fd4=!0x1;const _0xf48813=Object['keys'](_0x2cc743),_0x46d599=Object['keys'](_0xa430dc);for(const _0x4a72ce of _0xf48813){if(_0x2cc743[_0x4a72ce]!==_0xa430dc[_0x4a72ce]&&''!==_0x2cc743[_0x4a72ce]['trim']()){_0x1e7fd4=!0x0;break;}if(!_0x85b8af(_0x5a93f9[_0x4a72ce],_0x58fafb[_0x4a72ce])&&Object['keys'](_0x5a93f9[_0x4a72ce])['length']>0x0){_0x1e7fd4=!0x0;break;}}_0x1e7fd4||(_0x1e7fd4=_0x46d599['some'](_0x57d666=>!this['editor']['model']['document']['getRoot'](_0x57d666))),_0x1e7fd4&&_0x155fb9('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2cc743,'editorRootsAttributes':_0x5a93f9,'revisionData':_0xa430dc,'revisionRootsAttributes':_0x58fafb}),this['editor']['config']['set']('initialData',_0xa430dc),this['editor']['config']['set']('rootsAttributes',_0x58fafb);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xe5ddfa=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xe5ddfa['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x6092ee){const _0x43b99c=this['repository']['getRevisions']();_0x43b99c['reverse']();let _0x211bf2=0x0;for(;_0x211bf2<_0x43b99c['length'];){const _0x54c836=_0x43b99c[_0x211bf2];if(_0x54c836===this['currentRevision']){_0x211bf2++;continue;}if(_0x54c836['id']===this['_initialRevisionId'])break;const _0x209b7b=_0x6092ee['toVersion']-_0x54c836['toVersion']||_0x6092ee['fromVersion']-_0x54c836['fromVersion'];if(_0x209b7b>0x0)break;if(_0x209b7b<0x0)_0x211bf2++;else{if(!_0x6092ee['creator']&&_0x54c836['creator'])break;if(_0x54c836['creator']||!_0x6092ee['creator']){if(_0x6092ee['createdAt']>_0x54c836['createdAt'])break;_0x211bf2++;}else _0x211bf2++;}}return _0x211bf2;}['_getFromVersion'](_0x18dddd){const _0x32d6b6=this['repository']['getRevisions']();_0x32d6b6['reverse'](),_0x32d6b6['shift']();const _0x3358a6=_0x32d6b6['find'](_0x5dc4f5=>_0x5dc4f5['toVersion']<=_0x18dddd)['toVersion'];return _0x3358a6<this['_startingVersion']?this['_startingVersion']:_0x3358a6;}['_makeRevision']({name:_0x34d143,from:_0x398141,to:_0x2440dd,creatorId:_0x12b078,id:_0x4032b2}){const _0x30d579=this['buildRevisionData']({'from':_0x398141,'to':_0x2440dd});_0x30d579['name']=_0x34d143,_0x30d579['creatorId']=_0x12b078,_0x30d579['id']=_0x4032b2;const _0x482fe3=this['addRevisionData'](_0x30d579);return this['adapter']&&this['_bufferUpdate'](_0x30d579['id'],_0x30d579,!0x0),_0x482fe3;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1a52ad){this['editor']=_0x1a52ad,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'](_0x544f11){this['source']=_0x544f11;const _0x408b87=new Map(),_0x10f076=new Map(),_0x4200dc=this['editor']['model']['document']['roots']['map'](_0x2c73fe=>_0x2c73fe['rootName']);for(const _0x1680dc of _0x4200dc){const _0x418e42=this['editor']['model']['document']['getRoot'](_0x1680dc),_0x93cb8c=N(_0x418e42);_0x408b87['set'](_0x1680dc,_0x93cb8c),_0x10f076['set'](_0x1680dc,Object['fromEntries'](_0x418e42['getAttributes']()));}const _0x425cdc=Array['from'](this['editor']['model']['markers'])['map'](_0x2ada05=>[_0x2ada05['name'],_0x2ada05['getRange']()]),_0x30d172=this['source']['version'];this['_saveMetaData'](_0x30d172,_0x408b87,_0x425cdc,_0x10f076),this['_startingRevisionId']=this['_revisionId'];const _0x4e0d5f=new Map(),_0x1fad73=new Map();for(const _0x13d2da of _0x4200dc){const _0x50670d=P(_0x13d2da);_0x4e0d5f['set'](_0x13d2da,_0x50670d),_0x1fad73['set'](_0x13d2da,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4e0d5f,[],_0x1fad73);}['getData'](_0x1af535,_0x340bd0){if(this['_lastFrom']===_0x1af535&&this['_lastTo']<=_0x340bd0)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x340bd0,!0x0);else{if(!this['_savedMetaData']['has'](_0x1af535)){const _0xfa628=this['_getPreviousFrom'](_0x1af535);this['_calculateMetaData'](_0xfa628,_0x1af535,!0x1);}this['_calculateMetaData'](_0x1af535,_0x340bd0,!0x0);}return this['_lastFrom']=_0x1af535,this['_lastTo']=_0x340bd0,this['_getState']();}['loadState'](_0x267663){const _0x1af859=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x267663['fromVersion'],this['_lastTo']=_0x267663['toVersion'];for(const _0x8f7adf in _0x267663['diffData']){const _0x54bd45=_0x267663['diffData'][_0x8f7adf]['attachChange'],_0x145090=_0x5c4150(_0x267663['diffData'][_0x8f7adf]['attributesBefore'])||{},_0x2d7514=_0x1af859['_makeModelFromViewString'](_0x267663['diffData'][_0x8f7adf]['deletions']);_0x2d7514['rootName']=_0x8f7adf,_0x2d7514['_isAttached']=!_0x54bd45||!_0x54bd45['isAttached'],_0x2d7514['isAttached']=()=>_0x2d7514['_isAttached'],this['_baseRoots']['set'](_0x8f7adf,_0x2d7514),this['_baseRootsAttributes']['set'](_0x8f7adf,_0x145090),_0x54bd45&&this['_touchedRoots']['set'](_0x8f7adf,_0x54bd45);const _0x588237=this['_makeIdsRoot'](_0x2d7514);this['_baseIdsRoots']['set'](_0x8f7adf,_0x588237);for(const [_0x31da8e,_0xe040f2]of _0x2d7514['markers']){if(!_0x31da8e['startsWith']('revision:'))continue;const _0x5412b5=_0x31da8e['split'](':')[0x2];for(const _0x3794c9 of _0xe040f2['getWalker']({'singleCharacters':!0x0})){const _0x3ab122=this['_getVidAttributeName'](_0x3794c9),_0xb62faa='elementEnd'==_0x3794c9['type']?_0x3794c9['previousPosition']['path']['slice'](0x0,-0x1):_0x3794c9['previousPosition']['path'],_0x570dcc=_0x588237['getNodeByPath'](_0xb62faa)['getAttribute'](_0x3ab122);this['_touched']['set'](_0x570dcc,{'userId':_0x5412b5});}}}this['_startingRevisionId']=this['_revisionId'];const _0xa8c1e4=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3eeff8=>!this['_touched']['has'](_0x3eeff8));let _0x4b8197=0x0;const _0x31206f=new Map();for(const _0x41ec72 in _0x267663['diffData']){const _0x349029=_0x267663['diffData'][_0x41ec72]['attachChange'],_0x3ef1fa=_0x5c4150(_0x267663['diffData'][_0x41ec72]['attributesAfter'])||{},_0x183dd2=_0x1af859['_makeModelFromViewString'](_0x267663['diffData'][_0x41ec72]['insertions']);_0x183dd2['rootName']=_0x41ec72,_0x183dd2['_isAttached']=!_0x349029||_0x349029['isAttached'],_0x183dd2['isAttached']=()=>_0x183dd2['_isAttached'],this['_diffRoots']['set'](_0x41ec72,_0x183dd2),this['_diffRootsAttributes']['set'](_0x41ec72,_0x3ef1fa);const _0xf46aaf=this['_makeIdsRoot'](_0x183dd2,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x41ec72,_0xf46aaf),_0x31206f['set'](_0x41ec72,_0x183dd2['isAttached']()?_0x3ef1fa:{});for(const [_0x1e974c,_0x2a0cea]of _0x183dd2['markers']){if(!_0x1e974c['startsWith']('revision:'))continue;const _0x1735be=_0x1e974c['split'](':')[0x2];for(const _0x2e4067 of _0x2a0cea['getWalker']({'singleCharacters':!0x0})){const _0x5a998f=this['_getVidAttributeName'](_0x2e4067),_0x2be0d2=this['_revisionId']++,_0x44c9bc='elementEnd'==_0x2e4067['type']?_0x2e4067['previousPosition']['path']['slice'](0x0,-0x1):_0x2e4067['previousPosition']['path'];_0xf46aaf['getNodeByPath'](_0x44c9bc)['_setAttribute'](_0x5a998f,_0x2be0d2),this['_touched']['set'](_0x2be0d2,{'userId':_0x1735be});}}for(const _0x4a34fd of this['editor']['model']['createRangeIn'](_0x183dd2)['getWalker']({'singleCharacters':!0x0})){const _0x4644f7=this['_getVidAttributeName'](_0x4a34fd),_0x570511='elementEnd'==_0x4a34fd['type']?_0x4a34fd['previousPosition']['path']['slice'](0x0,-0x1):_0x4a34fd['previousPosition']['path'],_0x32d25e=_0xf46aaf['getNodeByPath'](_0x570511);_0x32d25e['getAttribute'](_0x4644f7)>0x0||_0x32d25e['_setAttribute'](_0x4644f7,_0xa8c1e4[_0x4b8197++]);}for(const [_0x45be81,_0x2fb7e6]of _0x183dd2['markers'])_0x45be81['startsWith']('revision:')||this['_markers']['set'](_0x45be81,_0x2fb7e6);}const _0x43fe20=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x43fe20),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43fe20,0x1));const _0x2e2a25=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x2e2a25),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2e2a25,0x1));const _0x3d81ad=Array['from'](this['_diffRoots'])['map'](([_0x41430f,_0x48e632])=>[_0x41430f,N(_0x48e632)]);this['_saveMetaData'](this['_lastTo'],_0x3d81ad,this['_markers'],_0x31206f);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x544d82,_0x9aa58,_0x9d11f,_0xec5a4e){const _0x32348e=new Map(_0x9aa58),_0xa9b3ac=new Map(_0x5c4150(_0xec5a4e)),_0x21c3f9=new Map();for(const [_0x34fab5,_0x2e1dc1]of _0x9d11f)_0x21c3f9['set'](_0x34fab5,{'start':_0x2e1dc1['start']['clone'](),'end':_0x2e1dc1['end']['clone'](),'rootName':_0x2e1dc1['root']['rootName']});this['_savedMetaData']['set'](_0x544d82,{'roots':_0x32348e,'markers':_0x21c3f9,'rootsAttributes':_0xa9b3ac});}['_removeMetaData'](_0x4d2941){this['_savedMetaData']['delete'](_0x4d2941);}['_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'](_0x3e23f1,_0xa9a700=null){let _0x1cb711=null;_0x3e23f1['is']('documentFragment')||(_0x1cb711=new ut(_0x3e23f1['name'],{'vid_start':null===_0xa9a700?this['_revisionId']++:_0xa9a700++}));const _0x23e150=[];for(const _0x202ea of _0x3e23f1['getChildren']())if(_0x202ea['is']('element')){_0x23e150['push'](this['_makeIdsRoot'](_0x202ea,_0xa9a700));const _0x11e48c=_0x23e150[_0x23e150['length']-0x1];null!==_0xa9a700&&(_0xa9a700=_0x11e48c['is']('element','$text')?_0x11e48c['getAttribute']('vid')+0x1:_0x11e48c['getAttribute']('vid_end')+0x1);}else{for(let _0x24c8df=0x0;_0x24c8df<_0x202ea['offsetSize'];_0x24c8df++)_0x23e150['push'](new ut('$text',{'vid':null===_0xa9a700?this['_revisionId']++:_0xa9a700++}));}if(_0x3e23f1['is']('documentFragment')){const _0x5e2258=P(_0x3e23f1['rootName']);return _0x5e2258['_insertChild'](0x0,_0x23e150),_0x5e2258;}return _0x1cb711['_setAttribute']('vid_end',null===_0xa9a700?this['_revisionId']++:_0xa9a700++),_0x1cb711['_insertChild'](0x0,_0x23e150),_0x1cb711;}['_calculateMetaData'](_0x15a34b,_0x4b4afe,_0x4cb86d){this['_reset']();const {roots:_0x456d12,markers:_0x11c3ba,rootsAttributes:_0x2b1d03}=this['_savedMetaData']['get'](_0x15a34b);this['_baseRoots']=new Map(_0x456d12),this['_baseRootsAttributes']=new Map(_0x5c4150(_0x2b1d03));for(const [_0x2bd1a5,_0x3cd803]of this['_baseRoots'])if('$graveyard'!==_0x2bd1a5&&(this['_diffRoots']['set'](_0x2bd1a5,N(_0x3cd803)),this['_diffRootsAttributes']=new Map(_0x5c4150(_0x2b1d03)),_0x4cb86d)){const _0x453450=this['_revisionId'];this['_idsRoots']['set'](_0x2bd1a5,this['_makeIdsRoot'](_0x3cd803)),this['_baseIdsRoots']['set'](_0x2bd1a5,this['_makeIdsRoot'](_0x3cd803,_0x453450));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x4cb86d&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x10d58,_0x2ecbda]of _0x11c3ba){const _0x3a6835=this['_baseRoots']['get'](_0x2ecbda['rootName']),_0x519b46=this['_diffRoots']['get'](_0x2ecbda['rootName']),_0x3ac016=new lt(this['_fixPosition'](_0x2ecbda['start'],_0x3a6835),this['_fixPosition'](_0x2ecbda['end'],_0x3a6835)),_0x2cac0d=this['_fixRange'](_0x3ac016,_0x519b46);_0x3a6835['markers']['set'](_0x10d58,_0x3ac016),this['_markers']['set'](_0x10d58,_0x2cac0d);}this['_applyOperations'](_0x15a34b,_0x4b4afe,_0x4cb86d);}['_applyOperations'](_0x40a341,_0x2c7d54,_0x41d2de){for(const _0x305e52 of this['source']['getOperations'](_0x40a341,_0x2c7d54))this['_handleOperation'](_0x305e52,_0x41d2de);for(const _0x2bb2b1 of this['_diffRoots']['values']())_0x2bb2b1['markers']['clear']();for(const [_0xfaad5e,_0x4c1464]of this['_markers']){this['_diffRoots']['get'](_0x4c1464['root']['rootName'])['markers']['set'](_0xfaad5e,_0x4c1464['clone']());}const _0x41681e=new Map(),_0x34f19e=new Map();for(const [_0x2719fd,_0x3e1cd0]of this['_diffRoots'])_0x41681e['set'](_0x2719fd,N(_0x3e1cd0)),_0x34f19e['set'](_0x2719fd,this['_diffRootsAttributes']['get'](_0x2719fd));this['_saveMetaData'](_0x2c7d54,_0x41681e,this['_markers'],_0x34f19e);}['_getPreviousFrom'](_0x4a01ae){const _0x3537fd=Array['from'](this['_savedMetaData']['keys']());_0x3537fd['sort']((_0x88df2,_0x743663)=>_0x88df2-_0x743663),_0x3537fd['reverse']();for(const _0x338cbc of _0x3537fd)if(_0x338cbc<_0x4a01ae)return _0x338cbc;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4328d7,_0x405859){const _0x5edca3=Array['from'](_0x405859['markers'])['map'](([_0x41696a,_0x4e9eb5])=>[_0x41696a,this['_fixRange'](_0x4e9eb5,_0x4328d7)]);_0x4328d7['markers']=new Map(_0x5edca3);}['_transformMarkers'](_0x401a30){for(const _0x2c5cdc of this['_markers']['values']()){const _0x1c0a3c=_0x2c5cdc['getTransformedByOperation'](_0x401a30),_0x5bec6a=lt['_createFromRanges'](_0x1c0a3c);_0x2c5cdc['start']=_0x5bec6a['start'],_0x2c5cdc['end']=_0x5bec6a['end'];}}['_handleOperation'](_0x4c6623,_0x425124){if('addRoot'!=_0x4c6623['type']&&'detachRoot'!=_0x4c6623['type']){if('insert'==_0x4c6623['type']){const _0x429df6=_0x4c6623['position']['root']['rootName'];this['_diffRoots']['has'](_0x429df6)||(this['_diffRoots']['set'](_0x429df6,P(_0x429df6,!0x0)),this['_diffRootsAttributes']['set'](_0x429df6,{}),_0x425124&&this['_idsRoots']['set'](_0x429df6,P(_0x429df6,!0x0)));}else{if('addRootAttribute'==_0x4c6623['type']||'removeRootAttribute'==_0x4c6623['type']||'changeRootAttribute'==_0x4c6623['type'])return void this['_handleRootAttributeOperation'](_0x4c6623);'marker'==_0x4c6623['type']&&this['_handleMarkerOperation'](_0x4c6623);}if('marker'!==_0x4c6623['type']){const _0x4ac05f=this['_cloneOperation'](_0x4c6623,this['_diffRoots']);_0x4ac05f['_execute'](),this['_transformMarkers'](_0x4ac05f);}if(_0x425124)switch(_0x4c6623['type']){case'insert':this['_handleInsertOperation'](_0x4c6623);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4c6623);break;case'merge':this['_handleMergeOperation'](_0x4c6623);break;case'split':this['_handleSplitOperation'](_0x4c6623);}}else this['_handleRootOperation'](_0x4c6623,_0x425124);}['_cloneOperation'](_0x162e6a,_0x4c7887){const _0x1f189f=_0x162e6a['clone']();return _0x1f189f['_authorId']=_0x162e6a['_authorId'],this['_fixOperation'](_0x1f189f,_0x4c7887),_0x1f189f;}['_getBaseVids'](_0xfa787a){return _0xfa787a['map'](_0xeb75b5=>{const _0x4d5d21=this['_getVidAttributeName'](_0xeb75b5);return Number(_0xeb75b5['item']['getAttribute'](_0x4d5d21));});}['_generateTape'](_0x3ccb66,_0x211286){if(_0x3ccb66['is']('element','$text'))_0x211286['push']({'item':_0x3ccb66,'type':'text'});else{_0x3ccb66['is']('element')&&_0x211286['push']({'item':_0x3ccb66,'type':'elementStart'});for(const _0x324dc6 of _0x3ccb66['getChildren']())this['_generateTape'](_0x324dc6,_0x211286);_0x3ccb66['is']('element')&&_0x211286['push']({'item':_0x3ccb66,'type':'elementEnd'});}return _0x211286;}['_getState'](){const _0x1865be=new Map(this['_touched']),_0x5d30c0=new Map(_0x1865be),_0x2999a3=new Map(),_0x5539cf={'insertions':{},'deletions':{}},_0x1e9b7c={'insertions':{},'deletions':{}},_0x84a9b5=new Map(),_0x59a1f7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x59a1f7['delete']('$graveyard');for(const _0x196c56 of _0x59a1f7){const _0x11eb57=this['_diffRoots']['get'](_0x196c56)||P(_0x196c56,!0x1),_0x54d998=this['_baseRoots']['get'](_0x196c56)||P(_0x196c56,!0x1);_0x11eb57['isAttached']()||_0x54d998['isAttached']()?(_0x5539cf['insertions'][_0x196c56]=N(_0x11eb57),_0x5539cf['deletions'][_0x196c56]=N(_0x54d998),this['_copyMarkers'](_0x5539cf['deletions'][_0x196c56],_0x54d998),this['_copyMarkers'](_0x5539cf['insertions'][_0x196c56],_0x11eb57),_0x1e9b7c['insertions'][_0x196c56]=this['_generateTape'](this['_idsRoots']['get'](_0x196c56),[]),_0x1e9b7c['deletions'][_0x196c56]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x196c56)||P(_0x196c56,!0x1),[])):_0x59a1f7['delete'](_0x196c56);}for(const _0x579e9c of _0x59a1f7){const _0x5d6355=_0x1e9b7c['insertions'][_0x579e9c];for(const _0x3ca66d of _0x5d6355){const _0x46bee7=this['_getVidAttributeName'](_0x3ca66d),_0x3451cd=_0x3ca66d['item']['getAttribute'](_0x46bee7);_0x5d30c0['delete'](_0x3451cd),_0x3451cd>=this['_startingRevisionId']&&_0x2999a3['set'](_0x3451cd,_0x1865be['get'](_0x3451cd));}}for(const _0x443de3 of _0x59a1f7){const _0x37b9e7=_0x1e9b7c['insertions'][_0x443de3],_0x21bce9=this['_getBaseVids'](_0x1e9b7c['deletions'][_0x443de3]);let _0x402010=0x0;for(const _0x4d8ade of _0x37b9e7){const _0x176a2c=this['_getVidAttributeName'](_0x4d8ade),_0x31233a=_0x4d8ade['item']['getAttribute'](_0x176a2c);if(!_0x2999a3['has'](_0x31233a)&&!_0x84a9b5['has'](_0x31233a)){if(_0x5d30c0['has'](_0x31233a))_0x402010++;else{if(_0x31233a!=_0x21bce9[_0x402010]){const _0x1ab67a=_0x1865be['get'](_0x31233a)||_0x1865be['get'](_0x21bce9[_0x402010]);for(;_0x31233a!=_0x21bce9[_0x402010];)_0x5d30c0['has'](_0x21bce9[_0x402010])||(_0x84a9b5['set'](_0x21bce9[_0x402010],_0x1ab67a),_0x1865be['set'](_0x21bce9[_0x402010],_0x1ab67a)),_0x402010++;}_0x402010++;}}}}for(const _0x54c6b5 of _0x59a1f7){const _0x3e0495=_0x1e9b7c['insertions'][_0x54c6b5];for(const _0x143ee8 of _0x3e0495){const _0x3d041e=this['_getVidAttributeName'](_0x143ee8),_0x10d6b0=_0x143ee8['item']['getAttribute'](_0x3d041e);if(_0x84a9b5['has'](_0x10d6b0)){const _0x47735d=_0x84a9b5['get'](_0x10d6b0);_0x5d30c0['has'](_0x10d6b0)||_0x5d30c0['set'](_0x10d6b0,{..._0x47735d}),_0x2999a3['set'](_0x10d6b0,{..._0x47735d});}}}for(const _0x31a805 of _0x5d30c0['keys']())_0x31a805>=this['_startingRevisionId']&&_0x5d30c0['delete'](_0x31a805);const _0x49405c=new Map();for(const _0x164e2e of _0x59a1f7){let _0x12b812=_0x1e9b7c['insertions'][_0x164e2e];for(const _0x541b74 of _0x12b812)if(_0x541b74['item']['is']('element','tableCell')){const _0x56c000=this['_getVidAttributeName'](_0x541b74),_0xd07121=_0x541b74['item']['getAttribute'](_0x56c000);if(_0x2999a3['has'](_0xd07121)){const _0x5a9374=_0x541b74['item']['parent']['parent']['getAttribute']('vid_start'),_0x238ee3=_0x49405c['get'](_0x5a9374)||new Set();_0x238ee3['add'](_0x2999a3['get'](_0xd07121)['userId']),_0x49405c['set'](_0x5a9374,_0x238ee3);}}_0x12b812=_0x1e9b7c['deletions'][_0x164e2e];for(const _0x2f0da7 of _0x12b812)if(_0x2f0da7['item']['is']('element','tableCell')){const _0x283be4=this['_getVidAttributeName'](_0x2f0da7),_0x12ac4b=_0x2f0da7['item']['getAttribute'](_0x283be4);if(_0x5d30c0['has'](_0x12ac4b)){const _0x277e66=_0x2f0da7['item']['parent']['parent']['getAttribute']('vid_start'),_0x579d26=_0x49405c['get'](_0x277e66)||new Set();_0x579d26['add'](_0x5d30c0['get'](_0x12ac4b)['userId']),_0x49405c['set'](_0x277e66,_0x579d26);}}for(const _0x366ab7 of _0x49405c['keys']())(_0x2999a3['has'](_0x366ab7)||_0x5d30c0['has'](_0x366ab7))&&_0x49405c['delete'](_0x366ab7);}for(const _0x6747e5 of _0x59a1f7){const _0x513e5c=_0x1e9b7c['insertions'][_0x6747e5];let _0x397ec1=null,_0x51c8a5=null;for(const _0x3266c4 of _0x513e5c){const _0xe81f43=this['_getVidAttributeName'](_0x3266c4),_0x23af93=_0x3266c4['item']['getAttribute'](_0xe81f43),_0x23fa6c=_0x49405c['get'](_0x23af93);_0x23fa6c&&'elementStart'==_0x3266c4['type']&&(_0x397ec1=Array['from'](_0x23fa6c)[0x0],_0x51c8a5=_0x3266c4['item']['getAttribute']('vid_end')),_0x397ec1&&(_0x5d30c0['set'](_0x23af93,{'userId':_0x397ec1}),_0x2999a3['set'](_0x23af93,{'userId':_0x397ec1})),_0x23af93==_0x51c8a5&&(_0x397ec1=null,_0x51c8a5=null);}}const _0x258943={},_0x14e9ff=new Set();for(const _0x518aba of _0x59a1f7){const _0x1938d7=_0x5539cf['deletions'][_0x518aba],_0x58a835=_0x5539cf['insertions'][_0x518aba];for(const {userId:_0xce665f}of this['_touchedMarkers']['values']())null!==_0xce665f&&_0x14e9ff['add'](_0xce665f);for(const {userId:_0xbb6bdb}of this['_touchedRoots']['values']())null!==_0xbb6bdb&&_0x14e9ff['add'](_0xbb6bdb);this['_markChanges'](_0x58a835,_0x1e9b7c['insertions'][_0x518aba],_0x2999a3,'insertion',_0x14e9ff),this['_markChanges'](_0x1938d7,_0x1e9b7c['deletions'][_0x518aba],_0x5d30c0,'deletion',_0x14e9ff),_0x258943[_0x518aba]={'insertions':this['_prepareViewToSave'](_0x58a835),'deletions':this['_prepareViewToSave'](_0x1938d7),'attachChange':this['_touchedRoots']['get'](_0x518aba)||null,'attributesBefore':_0x5c4150(this['_baseRootsAttributes']['get'](_0x518aba))||{},'attributesAfter':_0x5c4150(this['_diffRootsAttributes']['get'](_0x518aba))};}return{'diffData':_0x258943,'authorsIds':Array['from'](_0x14e9ff)};}['_processRootBeforeSave'](_0x101365){for(const [,_0x4dc2c2]of _0x101365['markers']){const _0x1e0d52=_0x4dc2c2['start']['getAncestors']()['filter'](_0x313cbf=>'tableCell'==_0x313cbf['name']);for(const _0x53fec7 of _0x1e0d52)0x1==_0x53fec7['childCount']&&_0x53fec7['getChild'](0x0)['is']('element','paragraph')&&_0x53fec7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x24608e){this['_processRootBeforeSave'](_0x24608e);const _0x2284a8=this['editor']['data']['toView'](_0x24608e,{}),_0x260f92=Array['from'](_0x2284a8['getChildren']())['map'](_0x19a5bf=>this['_getViewJson'](_0x19a5bf));return JSON['stringify'](_0x260f92);}['_getViewJson'](_0x1d1d73){if(_0x1d1d73['is']('$text'))return _0x1d1d73['data'];{const _0x48dede=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x37aa95=_0x1d1d73,_0x523f90=this['editor']['data']['htmlProcessor']['domConverter'],_0x1fd3c7={'type':_0x48dede['_getTypeCharForViewElement'](_0x37aa95),'name':_0x37aa95['name'],'attributes':Array['from'](_0x37aa95['getAttributes']()),'children':Array['from'](_0x37aa95['getChildren']())['map'](_0x647c28=>this['_getViewJson'](_0x647c28))};if(_0x1d1d73['is']('uiElement')&&'$comment'!=_0x1d1d73['name']){const _0x3d9537=_0x1d1d73['render'](_0x523f90['domDocument'],_0x523f90);_0x1fd3c7['children']['push'](_0x3d9537['outerHTML']);}else{if(_0x1d1d73['is']('rawElement')){const _0x532a95=_0x523f90['domDocument']['createElement'](_0x37aa95['name']);_0x1d1d73['render'](_0x532a95,_0x523f90),_0x1fd3c7['children']['push'](_0x532a95['innerHTML']);}}const _0x3437a0=Array['from'](_0x37aa95['getCustomProperties']());_0x3437a0['length']>0x0&&(_0x1fd3c7['customProperties']=_0x3437a0);const _0x4ec8c2=_0x37aa95['getFillerOffset']();return null!==_0x4ec8c2&&(_0x1fd3c7['fillerOffset']=_0x4ec8c2),_0x1fd3c7;}}['_markChanges'](_0x47de2c,_0x2e5430,_0x4b6400,_0x6dc484,_0x5ac87f){let _0x3080ed=null,_0x17a945=null,_0x5b8231=0x0;const _0x2e8fb0=this['editor']['model'];for(let _0x3ee1e4=0x0;_0x3ee1e4<_0x2e5430['length'];_0x3ee1e4++){const _0xd48e1d=this['_getVidAttributeName'](_0x2e5430[_0x3ee1e4]),_0x4a979f=_0x2e5430[_0x3ee1e4]['item']['getAttribute'](_0xd48e1d),_0x23c096=_0x4b6400['get'](_0x4a979f),_0x2ea8ac=_0x3ee1e4==_0x2e5430['length']-0x1;(!_0x3080ed&&_0x23c096&&(_0x3080ed=_0x23c096,_0x17a945=_0x2e5430[_0x3ee1e4]),_0x3080ed&&(!_0x23c096||_0x23c096['userId']!=_0x3080ed['userId']))&&(_0x1af4d7(_0x23c096,F(_0x17a945,_0x47de2c,_0x2e8fb0),F(_0x2e5430[_0x3ee1e4],_0x47de2c,_0x2e8fb0)),_0x3080ed=_0x23c096||null,_0x17a945=_0x23c096?_0x2e5430[_0x3ee1e4]:null),_0x3080ed&&_0x2ea8ac&&_0x1af4d7(_0x23c096,F(_0x17a945,_0x47de2c,_0x2e8fb0),B(_0x2e5430[_0x3ee1e4],_0x47de2c,_0x2e8fb0));}function _0x1af4d7(_0x1d39e6,_0x8a9ba9,_0x137644){const _0x52bd80=_0x3080ed['userId'],_0x1ac329='revision:'+_0x6dc484+':'+_0x52bd80+':'+_0x5b8231++,_0x2d6026=_0x2e8fb0['createRange'](_0x8a9ba9,_0x137644);_0x47de2c['markers']['set'](_0x1ac329,_0x2d6026),null!==_0x52bd80&&_0x5ac87f['add'](_0x52bd80);}}['_getVidAttributeName'](_0x403b4d){switch(_0x403b4d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x51fa98,_0xbe6607){_0x51fa98['baseVersion']=null;for(const _0x2778e7 in _0x51fa98){const _0x31fb55=_0x51fa98[_0x2778e7];if(_0x31fb55 instanceof ft){const _0x129a1a=_0xbe6607['get'](_0x31fb55['root']['rootName']);_0x51fa98[_0x2778e7]=this['_fixPosition'](_0x31fb55,_0x129a1a);}if(_0x31fb55 instanceof lt){const _0x3b4e00=_0xbe6607['get'](_0x31fb55['root']['rootName']);_0x51fa98[_0x2778e7]=this['_fixRange'](_0x31fb55,_0x3b4e00);}'root'===_0x2778e7&&(_0x51fa98['root']=_0xbe6607['get'](_0x51fa98['root']['rootName']));}}['_fixRange'](_0x34efed,_0x425bab){return this['editor']['model']['createRange'](this['_fixPosition'](_0x34efed['start'],_0x425bab),this['_fixPosition'](_0x34efed['end'],_0x425bab));}['_fixPosition'](_0x73ef2f,_0x325f25){return this['editor']['model']['createPositionFromPath'](_0x325f25,_0x73ef2f['path'],_0x73ef2f['stickiness']);}['_handleInsertOperation'](_0x3cd90c){const _0x4c863b=this['_idsRoots']['get'](_0x3cd90c['position']['root']['rootName']),_0xfb6e36=this['_fixPosition'](_0x3cd90c['position'],_0x4c863b),_0x1b09fb=null===_0x3cd90c['_authorId']?null:_0x3cd90c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3fb78f=_0xfb6e36['parent'],_0x571d65=this['_revisionId'],_0x49eb67=[];for(const _0x4e10d5 of _0x3cd90c['nodes'])if(_0x4e10d5['is']('element'))_0x49eb67['push'](this['_makeIdsRoot'](_0x4e10d5));else{for(let _0x2e2ca3=0x0;_0x2e2ca3<_0x4e10d5['offsetSize'];_0x2e2ca3++)_0x49eb67['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x2654e3=this['_revisionId'];for(let _0x4f1f06=_0x571d65;_0x4f1f06<_0x2654e3;_0x4f1f06++)this['_touched']['set'](_0x4f1f06,{'userId':_0x1b09fb});_0x3fb78f['_insertChild'](_0xfb6e36['offset'],_0x49eb67);}['_handleMoveOperation'](_0x2bd4cd){(_0x2bd4cd=this['_cloneOperation'](_0x2bd4cd,this['_idsRoots']))['_execute']();const _0xbfc7d=null===_0x2bd4cd['_authorId']?null:_0x2bd4cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4940b5=_0x2bd4cd['getMovedRangeStart'](),_0x483dd0=_0x4940b5['parent'],_0x5b33f3=_0x4940b5['offset'];!function _0x852c78(_0x3c134c,_0x2b38ee,_0x3d1cfa,_0x42ad74){for(let _0x662f7e=_0x3d1cfa;_0x662f7e<_0x42ad74;_0x662f7e++){const _0xd54da8=_0x2b38ee['getChild'](_0x662f7e);_0xd54da8['is']('element','$text')?_0x3c134c['set'](_0xd54da8['getAttribute']('vid'),{'userId':_0xbfc7d}):(_0x3c134c['set'](_0xd54da8['getAttribute']('vid_start'),{'userId':_0xbfc7d}),_0x852c78(_0x3c134c,_0xd54da8,0x0,_0xd54da8['childCount']),_0x3c134c['set'](_0xd54da8['getAttribute']('vid_end'),{'userId':_0xbfc7d}));}}(this['_touched'],_0x483dd0,_0x5b33f3,_0x5b33f3+_0x2bd4cd['howMany']);}['_handleMergeOperation'](_0xef7361){const _0x2d3157=null===(_0xef7361=this['_cloneOperation'](_0xef7361,this['_idsRoots']))['_authorId']?null:_0xef7361['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5f0718=_0xef7361['targetPosition']['parent'],_0x5a8a3b=_0xef7361['sourcePosition']['parent'],_0x5c7a86=_0x5f0718['getAttribute']('vid_end'),_0x2b66b2=_0x5a8a3b['getAttribute']('vid_start');_0x5f0718['_setAttribute']('vid_end',_0x5a8a3b['getAttribute']('vid_end')),_0x5a8a3b['_setAttribute']('vid_end',_0x5c7a86),this['_touched']['set'](_0x2b66b2,{'userId':_0x2d3157}),this['_touched']['set'](_0x5c7a86,{'userId':_0x2d3157}),_0xef7361['_execute']();}['_handleSplitOperation'](_0x9cedc2){const _0x16f8ce=null===(_0x9cedc2=this['_cloneOperation'](_0x9cedc2,this['_idsRoots']))['_authorId']?null:_0x9cedc2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28a8a2=_0x9cedc2['graveyardPosition'],_0x48d034=_0x9cedc2['splitPosition']['parent'];_0x9cedc2['_execute']();const _0x2932d2=_0x48d034['getAttribute']('vid_end'),_0x1eab7d=_0x9cedc2['insertionPosition']['nodeAfter'];if(_0x28a8a2){const _0x2677d0=_0x1eab7d['getAttribute']('vid_end'),_0xca1ea6=_0x48d034['getAttribute']('vid_end');_0x48d034['_setAttribute']('vid_end',_0x2677d0),_0x1eab7d['_setAttribute']('vid_end',_0xca1ea6),this['_touched']['set'](_0x48d034['getAttribute']('vid_end'),{'userId':_0x16f8ce}),this['_touched']['set'](_0x1eab7d['getAttribute']('vid_start'),{'userId':_0x16f8ce});}else{const _0x3b58ce=this['_revisionId']++,_0x3ef0a8=this['_revisionId']++;_0x48d034['_setAttribute']('vid_end',_0x3b58ce),_0x1eab7d['_setAttribute']('vid_start',_0x3ef0a8),_0x1eab7d['_setAttribute']('vid_end',_0x2932d2),this['_touched']['set'](_0x3b58ce,{'userId':_0x16f8ce}),this['_touched']['set'](_0x3ef0a8,{'userId':_0x16f8ce});}}['_handleMarkerOperation'](_0x5c7ce6){if(!_0x5c7ce6['affectsData'])return;const _0x346f3f=(_0x5c7ce6=this['_cloneOperation'](_0x5c7ce6,this['_diffRoots']))['oldRange']?_0x5c7ce6['oldRange']['root']:null,_0x184a18=_0x5c7ce6['newRange']?_0x5c7ce6['newRange']['root']:null;_0x346f3f&&this['_markers']['delete'](_0x5c7ce6['name']),_0x184a18&&this['_markers']['set'](_0x5c7ce6['name'],_0x5c7ce6['newRange']['clone']());const _0x4c4d50=null===_0x5c7ce6['_authorId']?null:_0x5c7ce6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55284b=_0x5c7ce6['name'];if(!this['_touchedMarkers']['has'](_0x55284b))return void this['_touchedMarkers']['set'](_0x55284b,{'range':_0x5c7ce6['oldRange'],'userId':_0x4c4d50});const _0x4844b9=this['_touchedMarkers']['get'](_0x55284b),_0x5f5527=_0x4844b9['range'],_0x116f18=_0x5c7ce6['newRange'];null==_0x5f5527&&null==_0x116f18||_0x5f5527&&_0x116f18&&_0x5f5527['isEqual'](_0x116f18)?this['_touchedMarkers']['delete'](_0x5c7ce6['name']):_0x4844b9['userId']=_0x4c4d50;}['_handleRootOperation'](_0x57a6aa,_0x14bdc3){this['_diffRoots']['has'](_0x57a6aa['rootName'])?this['_diffRoots']['get'](_0x57a6aa['rootName'])['_isAttached']=_0x57a6aa['isAdd']:(this['_diffRoots']['set'](_0x57a6aa['rootName'],P(_0x57a6aa['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x57a6aa['rootName'],{}),_0x14bdc3&&this['_idsRoots']['set'](_0x57a6aa['rootName'],P(_0x57a6aa['rootName'],!0x0)));const _0x4abb0f=null===_0x57a6aa['_authorId']?null:_0x57a6aa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3099a7=this['_touchedRoots']['get'](_0x57a6aa['rootName']);_0x3099a7&&_0x3099a7['userId']===_0x4abb0f?this['_touchedRoots']['delete'](_0x57a6aa['rootName']):this['_touchedRoots']['set'](_0x57a6aa['rootName'],{'userId':_0x4abb0f,'isAttached':_0x57a6aa['isAdd']});}['_handleRootAttributeOperation'](_0x3d1927){const _0xcb9086=this['_diffRootsAttributes']['get'](_0x3d1927['root']['rootName']);null===_0x3d1927['newValue']?delete _0xcb9086[_0x3d1927['key']]:_0xcb9086[_0x3d1927['key']]=_0x3d1927['newValue'];}}function N(_0x371357){const _0x53ac19=P(_0x371357['rootName'],_0x371357['isAttached']());for(const _0x453671 of _0x371357['getChildren']()){const _0x23e361=_0x453671['_clone'](!0x0);_0x53ac19['_appendChild'](_0x23e361);}return _0x53ac19;}function P(_0x3152dc,_0x3f288d=!0x0){const _0x2c214b=new vt();return _0x2c214b['rootName']=_0x3152dc,_0x2c214b['_isAttached']=_0x3f288d,_0x2c214b['isAttached']=()=>_0x2c214b['_isAttached'],_0x2c214b;}function F(_0x20984d,_0x135196,_0x3d9479){const _0x39c5e4='elementEnd'==_0x20984d['type']?_0x3d9479['createPositionAt'](_0x20984d['item'],'end'):_0x3d9479['createPositionBefore'](_0x20984d['item']);return _0x3d9479['createPositionFromPath'](_0x135196,_0x39c5e4['path'],_0x39c5e4['stickiness']);}function B(_0x5d37de,_0x2b9d6f,_0x124994){const _0x514604='elementStart'==_0x5d37de['type']?_0x124994['createPositionAt'](_0x5d37de['item'],0x0):_0x124994['createPositionAfter'](_0x5d37de['item']);return _0x124994['createPositionFromPath'](_0x2b9d6f,_0x514604['path'],_0x514604['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x27bf39,_0x58bd67){super(_0x27bf39),this['focusTracker']=new _0x3169cf(),this['keystrokes']=new _0x3cd51a(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x58bd67),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x558c45(this);}['render'](){super['render'](),_0x5b2273({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x325989=_0x3fbad7=>_0x3fbad7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x325989),this['keystrokes']['set']('arrowleft',_0x325989),this['keystrokes']['set']('arrowup',_0x325989),this['keystrokes']['set']('arrowdown',_0x325989);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x8af6c3){this['revisionNameInputView']['fieldView']['element']['value']=_0x8af6c3['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x598744){const _0x18d832=new _0x44236c(this['locale'],_0x3243f8),_0x1cd4d4=_0x18d832['fieldView'];_0x1cd4d4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x42a759=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x598744&&(_0x42a759+='\x20('+g(this['locale'],'optional')+')'),(_0x18d832['label']=_0x42a759,_0x1cd4d4['on']('input',()=>{this['revisionNameInputValue']=_0x1cd4d4['element']['value']['trim']();}),_0x18d832);}}class f extends _0x569b2d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x33a812=this['editor'],_0x375d4b=_0x33a812['plugins']['get']('RevisionTracker');_0x33a812['ui']['componentFactory']['add']('revisionHistory',_0x36f023=>{const _0x292337=_0x349be9(_0x36f023),_0x258347=_0x292337['panelView']['children'],_0x6d84a3=new _0x5edbb0(_0x36f023),_0xcbacff=new _0x11cc1b(_0x36f023),_0x7187ef=new te(_0x36f023),_0x39f76f=new _0x11cc1b(_0x36f023),_0x24eff5=new te(_0x36f023);return _0x292337['bind']('isEnabled')['to'](_0x375d4b,'isReady',_0x375d4b,'isEnabled',_0x33a812,'isReadOnly',(_0xeefbd,_0xa472be,_0x4777fa)=>_0xeefbd&&_0xa472be&&!_0x4777fa),_0x292337['buttonView']['set']({'icon':_0x36a0df,'label':g(_0x36f023,'Revision\x20history'),'tooltip':!0x0}),_0x7187ef['set']({'label':g(_0x36f023,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x7187ef['bind']('isEnabled')['to'](_0x375d4b,'isReady',_0x375d4b,'isEnabled',_0x33a812,'isReadOnly',(_0x55d592,_0x3147d6,_0x5e7ad6)=>_0x55d592&&_0x3147d6&&!_0x5e7ad6),_0x7187ef['on']('execute',()=>this['_showDialog']()),_0x24eff5['set']({'label':g(_0x36f023,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x24eff5['bind']('isEnabled')['to'](_0x375d4b,'isReady',_0x33a812,'isReadOnly',(_0x1aa777,_0x483840)=>_0x1aa777&&!_0x483840),_0x24eff5['on']('execute',()=>{_0x33a812['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x292337['isOpen']=!0x1,_0x33a812['editing']['view']['focus']();}),_0xcbacff['children']['add'](_0x7187ef),_0x39f76f['children']['add'](_0x24eff5),_0x6d84a3['role']='menu',_0x6d84a3['items']['addMany']([_0xcbacff,_0x39f76f]),_0x258347['add'](_0x6d84a3),_0x292337;}),_0x33a812['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2dc267=this['editor'],_0xdbc21f=_0x2dc267['locale'],_0x12b711=new _0x38f813(_0xdbc21f),_0x5aac12=new _0x202c2b(_0xdbc21f);_0x12b711['buttonView']['set']({'icon':_0x36a0df,'label':g(_0xdbc21f,'Revision\x20history')});const _0x2a2ce8=new _0x54af72(_0xdbc21f,_0x12b711),_0x327461=new _0x5cdc55(_0xdbc21f);_0x327461['set']({'label':g(_0xdbc21f,'Save\x20current\x20revision')}),_0x327461['delegate']('execute')['to'](_0x12b711),_0x327461['on']('execute',()=>{this['_showDialog']();}),_0x2a2ce8['children']['add'](_0x327461),_0x5aac12['items']['add'](_0x2a2ce8);const _0xafe82c=new _0x54af72(_0xdbc21f,_0x12b711),_0x367a18=new _0x5cdc55(_0xdbc21f);return _0x367a18['set']({'label':g(_0xdbc21f,'Open\x20revision\x20history')}),_0x367a18['delegate']('execute')['to'](_0x12b711),_0x367a18['on']('execute',()=>{_0x2dc267['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xafe82c['children']['add'](_0x367a18),_0x5aac12['items']['add'](_0xafe82c),_0x12b711['panelView']['children']['add'](_0x5aac12),_0x12b711;}['_showDialog'](){const _0x33b78e=this['editor'],_0x597b26=_0x33b78e['locale'],_0x2bcfd=_0x33b78e['plugins']['get']('Dialog'),_0x59dc9a=_0x33b78e['plugins']['get']('RevisionTracker');function _0x4db5e7(_0x46166a){_0x33b78e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x46166a['revisionName']?_0x46166a['revisionNameInputView']['errorText']=g(_0x597b26,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x33b78e['plugins']['get'](u)['saveRevision']({'name':_0x46166a['revisionName']}),_0x2bcfd['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4db5e7(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2bcfd['show']({'id':'revisionSave','title':g(_0x597b26,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x33b78e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2bcfd['hide']()},{'label':g(_0x33b78e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1ca3a2){_0x1ca3a2['bind']('isEnabled')['to'](_0x59dc9a,'isReady',_0x59dc9a,'isEnabled',_0x33b78e,'isReadOnly',(_0x4f7e84,_0x20effc,_0x4c0ac4)=>_0x4f7e84&&_0x20effc&&!_0x4c0ac4);},'onExecute':()=>_0x4db5e7(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2a9726=this['editor'],_0x2a257b=_0x2a9726['locale'];this['_saveRevisionFormView']=new hs(_0x2a257b,_0x2a9726['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2031f3,_0x494867){super(_0x2031f3),this['_model']=_0x494867,this['changeId']=_0x494867['id'];const _0x1beaca=this['bindTemplate'],_0x5854a9=g(_0x2031f3,_0x494867['data']['isSuggestion']?'Suggested\x20by':'add'==_0x494867['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x494867['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1beaca['to']('type',_0x4cdd09=>'ck-revision-change__'+_0x4cdd09)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5854a9}]},{'text':'\x20'+_0x494867['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x403bd3(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x34e8e4){super(),this['id']=_0x34e8e4['id']||_0x21b6c1(),this['author']=_0x34e8e4['author'],this['type']=_0x34e8e4['type'],this['data']=_0x34e8e4['data']||{},this['rootName']=_0x34e8e4['rootName'],this['set']('createdAt',_0x34e8e4['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x445b5b,_0x35d3f2){this['newRevisionId']=_0x445b5b,this['oldRevisionId']=_0x35d3f2,this['changes']=new _0x93c57c();}['_setChanges'](_0x1c986d){for(const _0x403e21 of _0x1c986d)this['changes']['add'](_0x403e21);}}class m extends _0x569b2d{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x36246b,_0x1d4d68,I,V];}constructor(_0x1e9e9b){super(_0x1e9e9b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x5d6ac2,_0x554653,_0x72bb68)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3f1053=>{for(const _0x3c8df6 of this['editor']['editing']['view']['document']['roots'])_0x72bb68?_0x3f1053['removeClass']('ck-editor__editable__overlay',_0x3c8df6):_0x3f1053['addClass']('ck-editor__editable__overlay',_0x3c8df6);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x560e6a=>null!==_0x560e6a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x55bec9,_0x4bf078,_0x164e00)=>_0x55bec9&&_0x164e00?_0x4bf078['changes']['getIndex'](_0x164e00):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e1b4d,_0x19c96c)=>_0x5e1b4d?_0x19c96c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1d4d68);}['init'](){const _0x41472f=this['editor'],_0x540136=new wt(_0x41472f,{'direction':'backward'}),_0x341a7f=new wt(_0x41472f,{'direction':'forward'});(_0x41472f['commands']['add']('showPreviousChange',_0x540136),_0x41472f['commands']['add']('showNextChange',_0x341a7f),_0x41472f['commands']['add']('restoreRevision',new mt(_0x41472f)),this['on']('change:numberOfChanges',()=>{_0x540136['refresh'](),_0x341a7f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x41472f['enableReadOnlyMode']('revision-viewer'),_0x41472f['plugins']['has']('WidgetToolbarRepository'))&&_0x41472f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x325862){return await this['_utils']['loadRevisionData'](_0x325862,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x325862);}async['getRevisionRootsAttributes'](_0x1380b2){return await this['_utils']['loadRevisionData'](_0x1380b2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1380b2);}async['compare'](_0x4d4685,_0x59fdbc,_0x3fef9d=!0x1){if(!this['isEnabled'])return;const _0x97726b=this['diff'],_0x5d4ca0=this['repository'],_0x1904a9='string'==typeof _0x4d4685?_0x5d4ca0['getRevision'](_0x4d4685):_0x4d4685,_0x200bfd='string'==typeof _0x59fdbc?_0x5d4ca0['getRevision'](_0x59fdbc):_0x59fdbc,_0x29cc8c=_0x1904a9['id'],_0x17b9e2=_0x200bfd?_0x200bfd['id']:null;if(!_0x3fef9d&&this['diff']&&this['diff']['newRevisionId']===_0x29cc8c&&this['diff']['oldRevisionId']===_0x17b9e2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x29cc8c,_0x17b9e2);const _0x68b491=this['_getRevisionsRange'](_0x1904a9,_0x200bfd,!0x0)['map'](_0x573088=>this['_utils']['loadRevisionData'](_0x573088,this['adapter']));return _0x68b491['push'](new Promise(_0x406f7c=>{setTimeout(_0x406f7c,0x14);})),Promise['all'](_0x68b491)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xd8b6a1=this['_getDiff'](_0x29cc8c,_0x17b9e2);for(const _0x3832ae of _0xd8b6a1['changes'])this['_changeIdToChange']['set'](_0x3832ae['id'],_0x3832ae);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3139e6=>{for(const _0x26386e of this['editor']['model']['document']['getRootNames']())_0x3139e6['detachRoot'](_0x26386e);for(const _0x4a03d0 of Object['keys'](_0xd8b6a1['model'])){const _0x25befe=_0x3139e6['addRoot'](_0x4a03d0);for(const _0x2cf433 of Object['keys'](_0xd8b6a1['attributes'][_0x4a03d0]))_0x3139e6['setAttribute'](_0x2cf433,_0xd8b6a1['attributes'][_0x4a03d0][_0x2cf433],_0x25befe);_0x3139e6['insert'](_0xd8b6a1['model'][_0x4a03d0],_0x25befe,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xd8b6a1['changes'])),this['isReady']=!0x0;})['catch'](_0x5b78ad=>{console['error'](_0x5b78ad),this['_cleanUp'](),_0x97726b&&(this['diff']=_0x97726b),this['isReady']=!0x0;});}['addRevisionData'](_0x4cb466,_0x3cf4fa){const _0x666dac=this['repository']['createRevision'](_0x4cb466);return _0x666dac['on']('_update',(_0x3bb582,_0x4e7f39,_0x431fbc)=>_0x3cf4fa(_0x4e7f39,_0x431fbc,_0x666dac)),this['repository']['addRevision'](_0x666dac),_0x666dac;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xe3580c=>{for(const _0x335dd9 of this['editor']['model']['document']['getRootNames']())_0xe3580c['detachRoot'](_0x335dd9);});}['_sortAndFilterDiffChanges'](_0x2b701b){const _0x94c9d9=[],_0x254392=new Map();for(const _0x179cd8 of this['editor']['model']['document']['getRootNames']()){const _0xcd331d=this['editor']['editing']['view']['getDomRoot'](_0x179cd8);if(!_0xcd331d)continue;const _0x293e0f=_0xcd331d['getClientRects']()['item'](0x0);_0x293e0f&&(_0x94c9d9['push'](_0x179cd8),_0x254392['set'](_0x179cd8,_0x293e0f));}return _0x94c9d9['sort']((_0x2ebb4b,_0x20ecaf)=>{const _0x5a442e=_0x254392['get'](_0x2ebb4b),_0x1d0a1a=_0x254392['get'](_0x20ecaf);return _0x5a442e['y']-_0x1d0a1a['y']||_0x5a442e['x']-_0x1d0a1a['x'];}),(_0x2b701b=_0x2b701b['filter'](_0x596b16=>_0x94c9d9['includes'](_0x596b16['rootName'])))['sort']((_0x230913,_0x153734)=>_0x94c9d9['indexOf'](_0x230913['rootName'])-_0x94c9d9['indexOf'](_0x153734['rootName'])),_0x2b701b;}['_makeTape'](_0x301a15){const _0x36814=Array['from'](_0x301a15['markers'])['filter'](([_0x5bab1e,_0x143841])=>_0x5bab1e['startsWith']('revision:')&&!_0x143841['isCollapsed']),_0x1b9a8a=Array['from'](this['editor']['model']['createRangeIn'](_0x301a15)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x36814['length'])for(const _0x402b89 of _0x1b9a8a){const [_0x57bdca,_0x483202]=_0x36814[0x0],[,_0x4960c5,_0x52dcb0]=_0x57bdca['split'](':');if(_0x483202['end']['isEqual'](_0x402b89['nextPosition'])&&_0x36814['shift'](),(_0x402b89['previousPosition']['isEqual'](_0x483202['start'])||_0x402b89['previousPosition']['isAfter'](_0x483202['start']))&&('insertion'==_0x4960c5?_0x402b89['isAdded']={'userId':_0x52dcb0}:'deletion'==_0x4960c5&&(_0x402b89['isRemoved']={'userId':_0x52dcb0})),0x0==_0x36814['length'])break;}return _0x1b9a8a;}['_refreshStartEndIndex'](_0x192a4e){const _0x3cb1d3=new Map();for(let _0xc7cfa0=0x0;_0xc7cfa0<_0x192a4e['length'];_0xc7cfa0++)'text'===_0x192a4e[_0xc7cfa0]['type']?(_0x192a4e[_0xc7cfa0]['item']['startIndex']=_0xc7cfa0,_0x192a4e[_0xc7cfa0]['item']['endIndex']=_0xc7cfa0):('elementStart'===_0x192a4e[_0xc7cfa0]['type']?_0x192a4e[_0xc7cfa0]['item']['startIndex']=_0xc7cfa0:'elementEnd'===_0x192a4e[_0xc7cfa0]['type']&&(_0x192a4e[_0xc7cfa0]['item']['endIndex']=_0xc7cfa0),_0x3cb1d3['set'](_0x192a4e[_0xc7cfa0]['id'],_0xc7cfa0));for(const _0x56b4a4 of _0x3cb1d3['values']())'elementStart'===_0x192a4e[_0x56b4a4]['type']?_0x192a4e[_0x56b4a4]['item']['endIndex']=_0x3cb1d3['get'](_0x192a4e[_0x56b4a4]['pairId']):'elementEnd'===_0x192a4e[_0x56b4a4]['type']&&(_0x192a4e[_0x56b4a4]['item']['startIndex']=_0x3cb1d3['get'](_0x192a4e[_0x56b4a4]['pairId']));}['_processTape'](_0x19b32e){for(let _0x109dc5=0x0;_0x109dc5<_0x19b32e['length'];_0x109dc5++){if('elementStart'===_0x19b32e[_0x109dc5]['type'])_0x19b32e[_0x109dc5]['item']['startIndex']=_0x109dc5;else{if('elementEnd'===_0x19b32e[_0x109dc5]['type']){_0x19b32e[_0x109dc5]['item']['endIndex']=_0x109dc5;const _0x17cf65=_0x19b32e[_0x109dc5]['item']['startIndex'];_0x19b32e[_0x17cf65]['pairId']=_0x19b32e[_0x109dc5]['id'],_0x19b32e[_0x109dc5]['pairId']=_0x19b32e[_0x17cf65]['id'];}else _0x19b32e[_0x109dc5]['item']['startIndex']=_0x109dc5,_0x19b32e[_0x109dc5]['item']['endIndex']=_0x109dc5,_0x19b32e[_0x109dc5]['pairId']=null;}_0x19b32e[_0x109dc5]['markersStart']||(_0x19b32e[_0x109dc5]['markersStart']=[],_0x19b32e[_0x109dc5]['markersEnd']=[]);}}['_markInsertions'](_0x954bac,_0x23507f){const _0x18fa39=_0x954bac['filter'](_0x2a3ebe=>!_0x2a3ebe['isAdded']);for(let _0x35371d=0x0;_0x35371d<_0x23507f['length'];_0x35371d++)_0x23507f[_0x35371d]['isAdded']&&(_0x18fa39[_0x35371d]['isAdded']=_0x23507f[_0x35371d]['isAdded']);}['_getDiff'](_0x1c24b1,_0x1e8af3=null){const _0x4e9e2c=this['repository']['getRevision'](_0x1c24b1),_0x1efb9b=_0x1e8af3?this['repository']['getRevision'](_0x1e8af3):null,_0x2739ce=this['_getRevisionsRange'](_0x4e9e2c,_0x1efb9b),_0x3a4e64=_0x2739ce[_0x2739ce['length']-0x1],_0xa33f93=new Map(),_0x5ad3c3={'model':{},'attributes':{},'changes':[]},_0x2428f1=new Set(),_0x4cd6da=new Map();for(let _0xd266cb=_0x2739ce['length']-0x1;_0xd266cb>=0x0;_0xd266cb--){const _0x4aa39f=_0x2739ce[_0xd266cb];for(const _0x3c7f1b of Object['keys'](_0x4aa39f['diffData']))if(_0x4aa39f['diffData'][_0x3c7f1b]['attachChange']){const _0x501fba=_0x4aa39f['diffData'][_0x3c7f1b]['attachChange'];_0x501fba['isAttached']?(_0x2428f1['add'](_0x3c7f1b),_0x4cd6da['has'](_0x3c7f1b)&&_0x4cd6da['get'](_0x3c7f1b)['userId']==_0x501fba['userId']?_0x4cd6da['delete'](_0x3c7f1b):_0x4cd6da['set'](_0x3c7f1b,_0x501fba)):_0x4cd6da['has'](_0x3c7f1b)?(_0x2428f1['delete'](_0x3c7f1b),_0x4cd6da['delete'](_0x3c7f1b)):(_0x2428f1['add'](_0x3c7f1b),_0x4cd6da['set'](_0x3c7f1b,_0x501fba));}else _0x2428f1['add'](_0x3c7f1b);}for(const _0x21b24d of _0x2428f1){const _0x5a921e=_0x4cd6da['has'](_0x21b24d)&&!_0x4cd6da['get'](_0x21b24d)['isAttached'];let _0x11ca3e=_0x5a921e?_0x2739ce['length']-0x1:0x0;const _0x5609c6=_0x5a921e?-0x1:0x1;for(;_0x2739ce[_0x11ca3e];){const _0x2a9bcd=_0x2739ce[_0x11ca3e];if(_0x2a9bcd['diffData'][_0x21b24d]){const _0xad7c0b=_0x5a921e?_0x2a9bcd['diffData'][_0x21b24d]['attributesBefore']:_0x2a9bcd['diffData'][_0x21b24d]['attributesAfter'];_0x5ad3c3['attributes'][_0x21b24d]=_0xad7c0b?_0x5c4150(_0xad7c0b):{};break;}_0x11ca3e+=_0x5609c6;}}for(const _0x7eb1bd of _0x2739ce){_0x7eb1bd['model']={};for(const _0x15122b of _0x7eb1bd['authors'])_0xa33f93['set'](_0x15122b['id'],_0x15122b);for(const _0x10f160 of _0x2428f1){const _0x550885=_0x7eb1bd['diffData'][_0x10f160]?_0x7eb1bd['diffData'][_0x10f160]['insertions']:'[]',_0xdc9fe1=_0x7eb1bd['diffData'][_0x10f160]?_0x7eb1bd['diffData'][_0x10f160]['deletions']:'[]';_0x7eb1bd['model'][_0x10f160]={'insertions':this['_utils']['_makeModelFromViewString'](_0x550885),'deletions':this['_utils']['_makeModelFromViewString'](_0xdc9fe1)};}}for(const _0x53f034 of _0x2428f1){let _0xef840f=null,_0x410bf5=0x0;const _0x42702e=new Map(Array['from'](_0x4e9e2c['model'][_0x53f034]['insertions']['markers'])['filter'](([_0x53af0e])=>!_0x53af0e['startsWith']('revision:')));let _0x54454f=0x0;for(const _0x11fafc of _0x2739ce){const _0x10a1a8=this['_makeTape'](_0x11fafc['model'][_0x53f034]['insertions']);_0x11fafc==_0x4e9e2c?(_0xef840f=_0x10a1a8,_0x410bf5=_0xef840f['length'],_0xef840f['forEach'](_0x1dcfcf=>{_0x1dcfcf['id']=_0x54454f++;}),this['_processTape'](_0xef840f)):this['_markInsertions'](_0xef840f,_0x10a1a8);const _0x367727=_0xef840f['filter'](_0x1a7e21=>!_0x1a7e21['isAdded'])['map'](_0x5b0be0=>_0x5b0be0['id']);let _0x58bc08=0x0;const _0x3a788b=this['_makeTape'](_0x11fafc['model'][_0x53f034]['deletions']);_0x3a788b['forEach'](_0x12dbcf=>{_0x12dbcf['isRemoved']?_0x12dbcf['id']=_0x410bf5++:_0x12dbcf['id']=_0x367727[_0x58bc08++];}),this['_processTape'](_0x3a788b),this['_setDistance'](_0xef840f,'isAdded'),this['_setDistance'](_0x3a788b,'isRemoved'),_0x11fafc==_0x4e9e2c&&this['_markMarkers'](_0xef840f,_0x42702e),_0xef840f=this['_joinTapes'](_0xef840f,_0x3a788b),this['_refreshStartEndIndex'](_0xef840f),this['_setDistance'](_0xef840f,'isRemoved');}_0xef840f=_0xef840f['filter'](_0x1621b3=>!(_0x1621b3['isAdded']&&_0x1621b3['isRemoved']));const _0x265c6d=new Map(_0x3a4e64['model'][_0x53f034]['deletions']['markers']),_0x24d3ac=new Set(_0x42702e['keys']());for(const _0x2cf000 of _0x265c6d['keys']())_0x24d3ac['delete'](_0x2cf000);this['_markSuggestions'](_0xef840f,_0x24d3ac),this['_fixObsoleteTags'](_0xef840f),_0xef840f=this['_removeMissingPairs'](_0xef840f),_0xef840f=this['_markMismatchedRemovedTags'](_0xef840f),_0xef840f=this['_removeUnsupportedChanges'](_0xef840f);const {root:_0x3ae8e4,changes:_0x817ef4}=this['_makeModelFromTape'](_0xef840f,_0xa33f93,_0x53f034);_0x5ad3c3['model'][_0x53f034]=_0x3ae8e4;const _0x2047ca=_0x4cd6da['get'](_0x53f034);if(_0x2047ca){const _0x1822fd=_0xa33f93['get'](_0x2047ca['userId']),_0x14dad8=new r({'author':_0x1822fd,'type':_0x2047ca['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x53f034});_0x817ef4['unshift'](_0x14dad8),_0x5ad3c3['attributes'][_0x53f034]['revisionHistoryAttachChange']=_0x14dad8['id'];}_0x5ad3c3['changes']=_0x5ad3c3['changes']['concat'](_0x817ef4);}return _0x5ad3c3;}['_markMarkers'](_0x2e1a1e,_0x5cd6a7){for(let _0x436984=0x0;_0x436984<_0x2e1a1e['length'];_0x436984++)for(const [_0x5b1a05,_0x1b8df1]of _0x5cd6a7)!_0x1b8df1['isCollapsed']&&_0x1b8df1['start']['isEqual'](_0x2e1a1e[_0x436984]['previousPosition'])&&_0x2e1a1e[_0x436984]['markersStart']['push'](_0x5b1a05),_0x1b8df1['end']['isEqual'](_0x2e1a1e[_0x436984]['nextPosition'])&&_0x2e1a1e[_0x436984]['markersEnd']['push'](_0x5b1a05);}['_joinTapes'](_0x26f138,_0x556416){let _0x1d561b=[],_0x2facf7=0x0,_0x5649bd=0x0;for(;_0x2facf7<_0x26f138['length']||_0x5649bd<_0x556416['length'];){const _0x41299b=_0x26f138[_0x2facf7]||{},_0x2754df=_0x556416[_0x5649bd]||{};if(_0x41299b['id']==_0x2754df['id'])_0x2facf7++,_0x5649bd++,_0x1d561b['push'](_0x41299b);else{if(_0x2754df['isRemoved']&&_0x41299b['isAdded']){const {commonTape:_0x3c83a2,iEnd:_0x906148,jEnd:_0x5a34bf}=this['_threeWayMerge'](_0x26f138,_0x2facf7,_0x556416,_0x5649bd);_0x1d561b=_0x1d561b['concat'](_0x3c83a2),_0x2facf7=_0x906148,_0x5649bd=_0x5a34bf;}else _0x2754df['isRemoved']?(_0x5649bd++,_0x1d561b['push'](_0x2754df)):(_0x2facf7++,_0x1d561b['push'](_0x41299b));}}return _0x1d561b;}['_markSuggestions'](_0x2f822c,_0x1da78c){const _0x20ebf2=[];for(let _0x46d085=0x0;_0x46d085<_0x2f822c['length'];_0x46d085++){for(let _0x44b951=0x0;_0x44b951<_0x2f822c[_0x46d085]['markersStart']['length'];_0x44b951++){const _0x34943d=_0x2f822c[_0x46d085]['markersStart'][_0x44b951];if(!_0x1da78c['has'](_0x34943d))continue;const {group:_0x2cefff,type:_0x204cce,authorId:_0x5e66f1}=_0x5c3cd4(_0x34943d);'revision-suggestion'!=_0x2cefff||'insertion'!=_0x204cce&&'deletion'!=_0x204cce||(_0x20ebf2['unshift']({'type':_0x204cce,'name':_0x34943d,'userId':_0x5e66f1}),_0x2f822c[_0x46d085]['markersStart']['splice'](_0x44b951,0x1),_0x44b951--);}_0x53025f(_0x2f822c[_0x46d085]);for(let _0xb25128=0x0;_0xb25128<_0x2f822c[_0x46d085]['markersEnd']['length'];_0xb25128++){const _0x4f1546=_0x2f822c[_0x46d085]['markersEnd'][_0xb25128];if(!_0x1da78c['has'](_0x4f1546))continue;const {group:_0x4ac681,type:_0x4b8eb2}=_0x5c3cd4(_0x4f1546);if('revision-suggestion'!=_0x4ac681||'insertion'!=_0x4b8eb2&&'deletion'!=_0x4b8eb2)continue;_0x2f822c[_0x46d085]['markersEnd']['splice'](_0xb25128,0x1),_0xb25128--;const _0x43f6b9=_0x20ebf2['findIndex'](_0x182f71=>_0x182f71['name']==_0x4f1546);_0x43f6b9>-0x1&&_0x20ebf2['splice'](_0x43f6b9,0x1);}}function _0x5c3cd4(_0x1419b7){const _0x278416=_0x1419b7['split'](':');return{'group':_0x278416[0x0],'type':_0x278416[0x1],'subType':_0x278416['length']>=0x5?_0x278416[0x2]:null,'id':_0x278416['length']<0x5?_0x278416[0x2]:_0x278416[0x3],'authorId':_0x278416['length']<0x5?_0x278416[0x3]:_0x278416[0x4],'markerCount':0x6==_0x278416['length']?_0x278416[0x5]:null};}function _0x53025f(_0x169336){for(let _0x37044d=0x0;_0x37044d<_0x20ebf2['length'];_0x37044d++){if(_0x169336['isAdded']&&'insertion'==_0x20ebf2[_0x37044d]['type']&&_0x169336['isAdded']['userId']==_0x20ebf2[_0x37044d]['userId'])return _0x169336['isAddSuggestion']=_0x20ebf2[_0x37044d],void delete _0x169336['isAdded'];if(!_0x169336['isAdded']&&!_0x169336['isRemoved']&&'deletion'==_0x20ebf2[_0x37044d]['type'])return void(_0x169336['isRemoveSuggestion']=_0x20ebf2[_0x37044d]);}}}['_setDistance'](_0x19ccdc,_0x4f184b){let _0x14881f=0x0,_0x1ada83=!0x1;const _0x31dca7=new Map();for(const _0x46dba5 of _0x19ccdc)_0x46dba5[_0x4f184b]?_0x1ada83&&(_0x14881f++,_0x1ada83=!0x1):(_0x14881f++,_0x1ada83=!0x0),_0x31dca7['set'](_0x46dba5['id'],_0x14881f);for(let _0x10da29=0x0;_0x10da29<_0x19ccdc['length'];_0x10da29++){if('isRemoved'==_0x4f184b&&_0x19ccdc[_0x10da29]['isAdded']||'isAdded'==_0x4f184b&&_0x19ccdc[_0x10da29]['isRemoved'])continue;if('text'==_0x19ccdc[_0x10da29]['type']){_0x19ccdc[_0x10da29]['distance']=0x0;continue;}const _0x367602=_0x31dca7['get'](_0x19ccdc[_0x10da29]['pairId']),_0x5201b5=_0x31dca7['get'](_0x19ccdc[_0x10da29]['id']);_0x19ccdc[_0x10da29]['distance']=_0x367602-_0x5201b5;}}['_getRevisionsRange'](_0x2d7732,_0x19fcd3,_0x41b0c2=!0x1){const _0x578a49=[];let _0x53b5d3=this['repository']['getIndex'](_0x2d7732),_0x16068f=this['repository']['getIndex'](_0x19fcd3);for(-0x1==_0x16068f&&(_0x16068f=this['repository']['_revisions']['length'],_0x41b0c2=!0x1);_0x53b5d3<_0x16068f;)_0x578a49['push'](this['repository']['getRevision'](_0x53b5d3)),_0x53b5d3++;return _0x41b0c2&&_0x578a49['push'](this['repository']['getRevision'](_0x53b5d3)),_0x578a49;}['_threeWayMerge'](_0x6ff028,_0x511b60,_0x3864f8,_0x1f339d){const _0x51c5ad=this['editor']['model']['schema'];let _0x110637=_0x511b60;for(;_0x6ff028[_0x110637]&&_0x6ff028[_0x110637]['isAdded'];)_0x110637++;let _0x82067c=_0x1f339d;for(;_0x3864f8[_0x82067c]&&_0x3864f8[_0x82067c]['isRemoved'];)_0x82067c++;_0x34d094(_0x6ff028,_0x511b60,_0x110637),_0x34d094(_0x3864f8,_0x1f339d,_0x82067c);const _0x179ac1=_0x3864f8['slice'](_0x1f339d,_0x82067c)['concat'](_0x6ff028['slice'](_0x511b60,_0x110637));return _0x179ac1['sort']((_0x30f7c1,_0x4db6da)=>_0x30f7c1['side']!=_0x4db6da['side']?_0x30f7c1['side']-_0x4db6da['side']:_0x30f7c1['level']!=_0x4db6da['level']?_0x30f7c1['level']-_0x4db6da['level']:_0x30f7c1['distance']!=_0x4db6da['distance']?_0x4db6da['distance']-_0x30f7c1['distance']:!!_0x30f7c1['isAdded']!=!!_0x4db6da['isAdded']?-0x1==_0x30f7c1['side']||0x0==_0x30f7c1['side']?_0x30f7c1['isAdded']?-0x1:0x1:_0x30f7c1['isAdded']?0x1:-0x1:_0x30f7c1['index']-_0x4db6da['index']),{'commonTape':_0x179ac1,'iEnd':_0x110637,'jEnd':_0x82067c};function _0x34d094(_0x493f7d,_0x4bb9df,_0x116c8f){let _0xe94c21=-0x1,_0x56e73d=Number['POSITIVE_INFINITY'],_0xa646e0=!0x0;for(let _0x8e4307=_0x4bb9df;_0x8e4307<_0x116c8f;_0x8e4307++)if(_0x51c5ad['isInline'](_0x493f7d[_0x8e4307]['item'])||(_0xa646e0=!0x1),_0x493f7d[_0x8e4307]['item']['startIndex']<_0x4bb9df&&(_0xe94c21=_0x8e4307),_0x493f7d[_0x8e4307]['item']['endIndex']>=_0x116c8f){_0x56e73d=_0x8e4307;break;}_0xa646e0&&(_0xe94c21=_0x116c8f-0x1);for(let _0x147e06=_0x4bb9df;_0x147e06<_0x116c8f;_0x147e06++)_0x493f7d[_0x147e06]['side']=_0x147e06<=_0xe94c21?-0x1:_0x147e06<_0x56e73d?0x0:0x1,_0x493f7d[_0x147e06]['index']=_0x147e06;let _0x41bdf1=0x0;for(let _0x33504f=_0x4bb9df;_0x33504f<=_0xe94c21;_0x33504f++)0x0==_0x493f7d[_0x33504f]['distance']?_0x493f7d[_0x33504f]['level']=_0x41bdf1:(_0x41bdf1++,_0x493f7d[_0x33504f]['level']=_0x41bdf1,_0x41bdf1++);for(let _0xffcae3=_0x4bb9df;_0xffcae3<_0x116c8f;_0xffcae3++)0x0==_0x493f7d[_0xffcae3]['side']&&(_0x493f7d[_0xffcae3]['level']=_0x41bdf1);_0x41bdf1=0x0;for(let _0x23ed0f=_0x116c8f-0x1;_0x23ed0f>=_0x56e73d;_0x23ed0f--)0x0==_0x493f7d[_0x23ed0f]['distance']?_0x493f7d[_0x23ed0f]['level']=_0x41bdf1:(_0x41bdf1--,_0x493f7d[_0x23ed0f]['level']=_0x41bdf1,_0x41bdf1--);}}['_fixObsoleteTags'](_0x219a98){const _0x44c743=new Map(),_0x3414c4=this['editor']['model']['schema'];for(let _0x4e1777=0x1;_0x4e1777<_0x219a98['length'];_0x4e1777++){let _0x161561,_0x40e85e,_0x66f090;const _0x296478=_0x219a98[_0x4e1777],_0x4ff5d=_0x219a98[_0x4e1777-0x1];if('text'==_0x296478['type'])continue;if(_0x296478['type']!=_0x4ff5d['type'])continue;if(!_0x3414c4['isBlock'](_0x4ff5d['item'])||_0x3414c4['isLimit'](_0x4ff5d['item']))continue;if(!_0x3414c4['isBlock'](_0x296478['item'])||_0x3414c4['isLimit'](_0x296478['item']))continue;if((_0x219a98[_0x4e1777]['isAdded']||_0x219a98[_0x4e1777]['isAddSuggestion'])&&_0x219a98[_0x4e1777-0x1]['isRemoved'])_0x161561=_0x219a98[_0x4e1777],_0x40e85e=_0x219a98[_0x4e1777-0x1],_0x66f090=_0x4e1777-0x1;else{if(!_0x219a98[_0x4e1777]['isRemoved']||!_0x219a98[_0x4e1777-0x1]['isAdded']&&!_0x219a98[_0x4e1777-0x1]['isAddSuggestion'])continue;_0x161561=_0x219a98[_0x4e1777-0x1],_0x40e85e=_0x219a98[_0x4e1777],_0x66f090=_0x4e1777;}const _0x146e5e=_0x161561['level']==_0x40e85e['level'],_0x59b450=Math['abs'](_0x161561['level'])<Math['abs'](_0x40e85e['level'])&&0x0==_0x40e85e['distance'];(_0x146e5e||_0x59b450)&&(_0x44c743['set'](_0x40e85e['id'],_0x161561['id']),_0x219a98['splice'](_0x66f090,0x1),_0x4e1777--,_0x161561['isAdded']=!0x1);}for(let _0x552590=0x0;_0x552590<_0x219a98['length'];_0x552590++)_0x44c743['has'](_0x219a98[_0x552590]['pairId'])&&(_0x219a98[_0x552590]['pairId']=_0x44c743['get'](_0x219a98[_0x552590]['pairId']));}['_removeMissingPairs'](_0xb53fb7){const _0x5142c5=new Set(_0xb53fb7['map'](_0x5f053d=>_0x5f053d['id']));for(let _0x414430=0x0;_0x414430<_0xb53fb7['length'];_0x414430++)_0x5142c5['has'](_0xb53fb7[_0x414430]['pairId'])||0x0==_0xb53fb7[_0x414430]['distance']||(_0xb53fb7[_0x414430]['isIncorrect']=!0x0);return _0xb53fb7['filter'](_0x336a7a=>!_0x336a7a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3894bc){const _0xcfb86f=new Set();for(let _0x45aad7=0x0;_0x45aad7<_0x3894bc['length'];_0x45aad7++){if(_0xcfb86f['has'](_0x3894bc[_0x45aad7]['id'])&&_0x3894bc[_0x45aad7]['isRemoved']&&(_0x3894bc[_0x45aad7]['isIncorrect']=!0x0),_0x3894bc[_0x45aad7]['isIncorrect'])continue;if(0x0==_0x3894bc[_0x45aad7]['distance'])continue;if('elementStart'!=_0x3894bc[_0x45aad7]['type'])continue;if(null==_0x3894bc[_0x45aad7]['pairId'])continue;let _0x54d9c6=_0x45aad7+0x1,_0x4ff132=0x0;for(;_0x3894bc[_0x54d9c6]['id']!=_0x3894bc[_0x45aad7]['pairId'];)'elementStart'==_0x3894bc[_0x54d9c6]['type']?_0x4ff132++:'elementEnd'==_0x3894bc[_0x54d9c6]['type']&&_0x4ff132--,_0x54d9c6++;if(0x0!=_0x4ff132){if(_0x3894bc[_0x45aad7]['isRemoved'])_0x3894bc[_0x45aad7]['isIncorrect']=!0x0;else{for(;_0x54d9c6!=_0x45aad7;)_0x3894bc[_0x54d9c6]['isRemoved']&&0x0!=_0x3894bc[_0x54d9c6]['distance']&&(_0x3894bc[_0x54d9c6]['isIncorrect']=!0x0,_0xcfb86f['add'](_0x3894bc[_0x54d9c6]['pairId'])),_0x54d9c6--;}}}return _0x3894bc['filter'](_0x3ea327=>!_0x3ea327['isIncorrect']);}['_removeUnsupportedChanges'](_0x377a8f){const _0x33a4d7=this['editor']['model']['schema'];for(let _0x2cc9a9=0x0;_0x2cc9a9<_0x377a8f['length'];_0x2cc9a9++){if(!(_0x377a8f[_0x2cc9a9]['isAdded']||_0x377a8f[_0x2cc9a9]['isAddSuggestion']||_0x377a8f[_0x2cc9a9]['isRemoved']||_0x377a8f[_0x2cc9a9]['isRemoveSuggestion']))continue;if(0x0==_0x377a8f[_0x2cc9a9]['distance'])continue;const _0x326d11=_0x377a8f[_0x2cc9a9]['item'];_0x33a4d7['isBlock'](_0x326d11)||_0x33a4d7['isLimit'](_0x326d11)||(_0x377a8f[_0x2cc9a9]['isAdded']&&delete _0x377a8f[_0x2cc9a9]['isAdded'],_0x377a8f[_0x2cc9a9]['isAddSuggestion']&&delete _0x377a8f[_0x2cc9a9]['isAddSuggestion'],_0x377a8f[_0x2cc9a9]['isRemoveSuggestion']&&delete _0x377a8f[_0x2cc9a9]['isRemoveSuggestion'],_0x377a8f[_0x2cc9a9]['isRemoved']&&(_0x377a8f[_0x2cc9a9]['isIncorrect']=!0x0));}return _0x377a8f['filter'](_0x553f38=>!_0x553f38['isIncorrect']);}['_makeModelFromTape'](_0x26799b,_0x1e7bd5,_0x7d4a1e){const _0x3161c6=new vt(),_0x3fcfd9=[],_0x531e14=new Map(),_0x57f14a=this['editor']['model'],_0x40e5dd=_0x57f14a['schema'],_0x3f791c=[_0x3161c6],_0x2decc4={},_0x1374ef={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5ba1ef=null;const _0xce7db0=[0x0];for(let _0x2c44d5=0x0;_0x2c44d5<_0x26799b['length'];_0x2c44d5++)if('elementStart'===_0x26799b[_0x2c44d5]['type']){_0x26799b[_0x2c44d5]['previousPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0);const _0x1a671a=new ut(_0x26799b[_0x2c44d5]['item']['name'],_0x26799b[_0x2c44d5]['item']['getAttributes']());_0x3f791c[0x0]['_appendChild'](_0x1a671a),_0xce7db0['push'](0x0),_0x3f791c['unshift'](_0x1a671a),_0x26799b[_0x2c44d5]['nextPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0);}else'elementEnd'===_0x26799b[_0x2c44d5]['type']?(_0x3f791c['shift'](),_0x26799b[_0x2c44d5]['previousPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0),_0xce7db0['pop'](),_0xce7db0[_0xce7db0['length']-0x1]++,_0x26799b[_0x2c44d5]['nextPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0)):(_0x26799b[_0x2c44d5]['previousPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0),_0x5ba1ef?_0x5ba1ef['_data']+=_0x26799b[_0x2c44d5]['item']['data']:_0x5ba1ef=new gt(_0x26799b[_0x2c44d5]['item']['data'],_0x26799b[_0x2c44d5]['item']['getAttributes']()),_0x26799b[_0x2c44d5+0x1]&&'text'===_0x26799b[_0x2c44d5+0x1]['type']&&_0xc84d1e(_0x5ba1ef,_0x26799b[_0x2c44d5+0x1]['item'])||(_0x3f791c[0x0]['_appendChild'](_0x5ba1ef),_0x5ba1ef=null),_0xce7db0[_0xce7db0['length']-0x1]+=_0x26799b[_0x2c44d5]['item']['offsetSize'],_0x26799b[_0x2c44d5]['nextPosition']=_0x57f14a['createPositionFromPath'](_0x3161c6,_0xce7db0));for(let _0x7e503=0x0;_0x7e503<_0x26799b['length'];_0x7e503++){const _0x5eddbc=_0x26799b[_0x7e503]['previousPosition'],_0x191281=_0x26799b[_0x7e503]['nextPosition'];for(const _0x333206 of _0x26799b[_0x7e503]['markersStart'])_0x531e14['set'](_0x333206,{'start':_0x5eddbc,'end':null});_0x773a51('isRemoveSuggestion',_0x7e503,_0x5eddbc,_0x191281),_0x773a51('isAddSuggestion',_0x7e503,_0x5eddbc,_0x191281),_0x773a51('isRemoved',_0x7e503,_0x5eddbc,_0x191281),_0x773a51('isAdded',_0x7e503,_0x5eddbc,_0x191281);for(const _0x214748 of _0x26799b[_0x7e503]['markersEnd']){const _0xbe6066=_0x531e14['get'](_0x214748);_0xbe6066?_0xbe6066['end']=_0x191281:_0x531e14['set'](_0x214748,{'start':_0x191281,'end':_0x191281});}}for(const [_0x5ad6e9,_0x4c2859]of _0x531e14){const _0x3082e6=this['editor']['model']['createRange'](_0x4c2859['start'],_0x4c2859['end']);_0x3161c6['markers']['set'](_0x5ad6e9,_0x3082e6);}return _0x3fcfd9['sort']((_0x5b9b35,_0x3adf94)=>{const _0x275790=_0x3161c6['markers']['get']('revision:'+_0x5b9b35['id']),_0x25ebab=_0x3161c6['markers']['get']('revision:'+_0x3adf94['id']);return _0x275790['start']['isBefore'](_0x25ebab['start'])?-0x1:_0x275790['start']['isAfter'](_0x25ebab['start'])?0x1:_0x275790['end']['isBefore'](_0x25ebab['end'])?-0x1:_0x275790['end']['isAfter'](_0x25ebab['end'])?0x1:'add'===_0x5b9b35['type']?-0x1:0x1;}),{'root':_0x3161c6,'changes':_0x3fcfd9};function _0x773a51(_0x21815e,_0x43fd02,_0x354225,_0x3d9cd6){const _0x124b13=!!_0x26799b[_0x43fd02][_0x21815e],_0xd0ce20=_0x124b13?_0x26799b[_0x43fd02][_0x21815e]['userId']:null,_0xcd0ac2=_0x43fd02===_0x26799b['length']-0x1,_0x52dc0e=_0x1374ef[_0x21815e][0x0],_0x141ae7=_0x40e5dd['isObject'](_0x26799b[_0x43fd02]['item']);!_0x2decc4[_0x21815e]&&_0x124b13?_0x2decc4[_0x21815e]={'start':_0x354225,'tapeItem':_0x26799b[_0x43fd02],'userId':_0xd0ce20,'type':_0x21815e}:_0x2decc4[_0x21815e]&&!_0x124b13?(_0x2decc4[_0x21815e]['end']=_0x354225,_0x2fe739(_0x2decc4[_0x21815e]),_0x2decc4[_0x21815e]=null):_0x2decc4[_0x21815e]&&_0x124b13&&_0x2decc4[_0x21815e]['userId']!==_0xd0ce20&&(_0x2decc4[_0x21815e]['end']=_0x354225,_0x52dc0e&&_0x52dc0e['userId']===_0x2decc4[_0x21815e]['userId']||_0x2fe739(_0x2decc4[_0x21815e]),_0x2decc4[_0x21815e]={'start':_0x354225,'tapeItem':_0x26799b[_0x43fd02],'userId':_0xd0ce20,'type':_0x21815e}),_0x2decc4[_0x21815e]&&_0x141ae7&&('elementStart'!==_0x26799b[_0x43fd02]['type']||_0x52dc0e&&_0x52dc0e['userId']===_0xd0ce20||_0x1374ef[_0x21815e]['unshift']({'userId':_0xd0ce20,'object':_0x26799b[_0x43fd02]['item'],'change':_0x2decc4[_0x21815e]}),'elementEnd'===_0x26799b[_0x43fd02]['type']&&_0x52dc0e&&_0x52dc0e['object']===_0x26799b[_0x43fd02]['item']&&(_0x1374ef[_0x21815e]['shift'](),_0x2decc4[_0x21815e]=_0x52dc0e['change'])),_0x2decc4[_0x21815e]&&_0xcd0ac2&&(_0x2decc4[_0x21815e]['end']=_0x3d9cd6,_0x2fe739(_0x2decc4[_0x21815e]),_0x2decc4[_0x21815e]=null);}function _0x2fe739({start:_0x4034f0,end:_0x5a5359,tapeItem:_0x42c0d0,userId:_0x320d6e,type:_0x2c08b0}){const _0x43101c=_0x42c0d0['item'],_0x50ed73=_0x57f14a['schema']['isBlock'](_0x43101c)&&!_0x57f14a['schema']['isLimit'](_0x43101c),_0x365aaa=_0x4034f0['nodeAfter']==_0x5a5359['parent']&&_0x5a5359['isAtStart'];if(_0x50ed73&&_0x365aaa)return;const _0x48e87=_0x57f14a['createRange'](_0x4034f0,_0x5a5359),_0x2fdbcb=_0x1e7bd5['get'](_0x320d6e),_0x2ef629=new r({'author':_0x2fdbcb,'type':'isAdded'==_0x2c08b0||'isAddSuggestion'==_0x2c08b0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2c08b0||'isRemoveSuggestion'==_0x2c08b0},'createdAt':new Date(),'rootName':_0x7d4a1e});_0x3fcfd9['push'](_0x2ef629),_0x3161c6['markers']['set']('revision:'+_0x2ef629['id'],_0x48e87);}function _0xc84d1e(_0x31cea7,_0x36ef9a){const _0x128eae=_0x31cea7['getAttributes'](),_0x22f948=_0x36ef9a['getAttributes']();for(const _0x402a43 of _0x128eae){if(_0x402a43[0x1]!==_0x36ef9a['getAttribute'](_0x402a43[0x0]))return!0x1;_0x22f948['next']();}return _0x22f948['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x53a1cd=>{const _0x45f5a7=_0x53a1cd['markerName']['split'](':')[0x1],_0x160948=this['_getChangeFromId'](_0x45f5a7);if(!_0x160948)return null;const _0x502d0e='add'==_0x160948['type']?'insertion':'deletion',_0x19db76=['ck-suggestion-marker','ck-suggestion-marker-'+_0x502d0e];return _0x160948['data']['isSuggestion']&&_0x19db76['push']('ck-suggestion-marker-'+_0x502d0e+'-new'),this['activeChange']==_0x160948&&_0x19db76['push']('ck-suggestion-marker--active'),{'classes':_0x19db76,'attributes':{'data-change-id':_0x45f5a7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28a976=>{_0x28a976['on']('element:pre',(_0x5caa40,_0x5cb8a1,_0x84dbf7)=>{const _0x1cff21=_0x5cb8a1['viewItem']['getChild'](0x0);if(!_0x1cff21||!_0x1cff21['is']('element','code'))return;if(!_0x84dbf7['consumable']['consume'](_0x1cff21,{'attributes':['vid_start','vid_end']}))return;const _0x3db365=_0x5cb8a1['modelRange']['start']['nodeAfter'];_0x84dbf7['writer']['setAttribute']('vid_start',_0x1cff21['getAttribute']('vid_start'),_0x3db365),_0x84dbf7['writer']['setAttribute']('vid_end',_0x1cff21['getAttribute']('vid_end'),_0x3db365);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5a4cdd=>{_0x5a4cdd['on']('element',(_0x13d7fa,_0x2b388b,_0x7dd066)=>{if(!_0x7dd066['consumable']['consume'](_0x2b388b['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2b388b['modelRange']['isCollapsed'])return;const _0x43e184=_0x2b388b['modelRange']['start']['nodeAfter'];_0x43e184['hasAttribute']('vid_start')||_0x43e184['hasAttribute']('vid')||(_0x7dd066['writer']['setAttribute']('vid_start',_0x2b388b['viewItem']['getAttribute']('vid_start'),_0x43e184),_0x7dd066['writer']['setAttribute']('vid_end',_0x2b388b['viewItem']['getAttribute']('vid_end'),_0x43e184));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x575701=>_0x575701['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4d13ab,[,_0x588820])=>{['vid_start','vid_end','vid']['includes'](_0x588820)&&(_0x4d13ab['return']=!0x0,_0x4d13ab['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x675c9b=>{_0x675c9b['on']('attribute:vid',(_0xbdc699,_0x5ec42e,_0x352d6f)=>{if('\x20'!=_0x5ec42e['item']['data']||_0x5ec42e['item']['parent']['maxOffset']>0x1)return;if(!_0x352d6f['consumable']['consume'](_0x5ec42e['item'],_0xbdc699['name']))return;const _0x324fcb=_0x352d6f['writer'],_0x3afcd1=_0x352d6f['mapper']['toViewRange'](_0x5ec42e['range']);_0x324fcb['wrap'](_0x3afcd1,_0x324fcb['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x150030){const _0x334971=_0x150030['plugins']['get']('RevisionViewer');return(_0x1f5572,_0x15458c,_0x3a7db8)=>{const _0x214ba9=_0x15458c['markerName']['split'](':')[0x1],_0xbb355e=_0x334971['_getChangeFromId'](_0x214ba9);if(!_0xbb355e)return null;const _0x29093a='add'==_0xbb355e['type']?'split':'merge';if(!_0x3a7db8['consumable']['test'](_0x15458c['markerRange'],_0x1f5572['name']))return;const _0x1451b2=_0x15458c['markerRange']['getWalker'](),_0x5f1edc=_0x15458c['markerRange']['start'],_0x401732=_0x150030['model']['schema'];let _0x1dae3e=null,_0x17d9f3=null,_0x3c0a5a=!0x1,_0x5594c7=!0x1;for(const _0x1347eb of _0x1451b2){const _0x531ac6=_0x1347eb['item'];_0x3c0a5a=_0x3c0a5a||_0x401732['isContent'](_0x531ac6);const _0x24dd52=_0x3a7db8['mapper']['toViewElement'](_0x531ac6);if(_0x24dd52&&_0x24dd52['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1347eb['type']&&(_0x401732['isBlock'](_0x531ac6)&&!_0x401732['isLimit'](_0x531ac6)&&(_0x531ac6['nextSibling']||_0x5f1edc['isAtEnd']?_0x1dae3e&&_0x1dae3e['parent']==_0x531ac6||(_0x1dae3e=_0x531ac6,_0x3e7603(_0x1347eb['previousPosition']),_0x5594c7=!0x0):_0x17d9f3=_0x17d9f3||_0x1347eb['previousPosition']));}function _0x3e7603(_0xaf13aa){const _0x44853b=_0x3a7db8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x29093a}),_0xe5c8=_0x3a7db8['mapper']['toViewPosition'](_0xaf13aa);_0xbb355e['data']['isSuggestion']&&_0x3a7db8['writer']['addClass']('ck-suggestion-marker-'+_0x29093a+'-new',_0x44853b),_0x334971['activeChange']==_0xbb355e&&_0x3a7db8['writer']['addClass']('ck-suggestion-marker--active',_0x44853b),_0x3a7db8['writer']['insert'](_0xe5c8,_0x44853b),_0x3a7db8['mapper']['bindElementToMarker'](_0x44853b,_0x15458c['markerName']);}_0x3c0a5a||_0x5594c7||!_0x17d9f3||_0x3e7603(_0x17d9f3);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1923c6,_0x18cbe2,_0x41d38a)=>{const _0x4c5b98=_0x41d38a['mapper']['markerNameToElements'](_0x18cbe2['markerName']);if(_0x4c5b98){for(const _0x5db795 of _0x4c5b98)(_0x5db795['hasClass']('ck-suggestion-marker-split')||_0x5db795['hasClass']('ck-suggestion-marker-merge'))&&(_0x41d38a['mapper']['unbindElementFromMarkerName'](_0x5db795,_0x18cbe2['markerName']),_0x41d38a['writer']['remove'](_0x5db795));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x481714,_0x44ee16,_0x1a3261)=>{const _0x3f748b=_0x44ee16['markerName']['split'](':')[0x1],_0x38c1c0=this['_getChangeFromId'](_0x3f748b);if(!_0x38c1c0)return null;const _0x6d2565='add'==_0x38c1c0['type']?'split':'merge';if(_0x1a3261['consumable']['test'](_0x44ee16['markerRange'],_0x481714['name']))for(const _0x425b5b of _0x44ee16['markerRange']['getItems']()){if(!_0x425b5b['is']('element','softBreak'))continue;const _0x29209f=_0x1a3261['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6d2565}),_0x444fdd=_0x1a3261['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x425b5b));_0x38c1c0['data']['isSuggestion']&&_0x1a3261['writer']['addClass']('ck-suggestion-marker-'+_0x6d2565+'-new',_0x29209f),this['activeChange']==_0x38c1c0&&_0x1a3261['writer']['addClass']('ck-suggestion-marker--active',_0x29209f),_0x1a3261['writer']['insert'](_0x444fdd,_0x29209f),_0x1a3261['mapper']['bindElementToMarker'](_0x29209f,_0x44ee16['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x306e08=>{for(const _0x15b39c of this['editor']['model']['document']['getRootNames']()){const _0x21674f=this['editor']['model']['document']['getRoot'](_0x15b39c),_0x3abed4=this['editor']['editing']['view']['document']['getRoot'](_0x15b39c);if(_0x3abed4){const _0xc1d229=_0x21674f['getAttribute']('revisionHistoryAttachChange');if(_0x306e08['removeAttribute']('data-change-id',_0x3abed4),_0x306e08['removeClass']('ck-revision-history-root-add',_0x3abed4),_0x306e08['removeClass']('ck-revision-history-root-remove',_0x3abed4),_0x306e08['removeClass']('ck-revision-history-root--active',_0x3abed4),_0xc1d229){const _0x5d3485=this['_getChangeFromId'](_0xc1d229);if(!_0x5d3485)return null;_0x306e08['setAttribute']('data-change-id',_0xc1d229,_0x3abed4),_0x306e08['addClass']('ck-revision-history-root-'+_0x5d3485['type'],_0x3abed4),this['activeChange']==_0x5d3485&&_0x306e08['addClass']('ck-revision-history-root--active',_0x3abed4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1e4fae=>'revision-comment:'+_0x1e4fae,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3bfae7=>'revision-suggestion:'+_0x3bfae7,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2b112b=>({'name':'suggestion:'+_0x2b112b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x52a89b=>{const _0x4c2a9a=_0x52a89b['markerName']['split'](':')[0x1];return'insertion'!=_0x4c2a9a&&'deletion'!=_0x4c2a9a?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4c2a9a]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x444f9e,_0x23bf38,_0x17301f)=>{const _0x240a91=_0x17301f['mapper']['markerNameToElements'](_0x23bf38['markerName']);if(_0x240a91){for(const _0x1ec9a5 of _0x240a91)_0x1ec9a5['is']('uiElement')&&(_0x17301f['mapper']['unbindElementFromMarkerName'](_0x1ec9a5,_0x23bf38['markerName']),_0x17301f['writer']['remove'](_0x1ec9a5));}},{'priority':'high'});}['_getChangeFromId'](_0x232a94){return this['_changeIdToChange']['get'](_0x232a94);}['_getViewForChange'](_0x3ae2fd){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x3ae2fd),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x576f1e,_0x4176d8,_0x329ef2,_0x17722f)=>{_0x17722f&&this['_balloon']['remove'](_0x17722f),_0x329ef2&&(this['_balloon']['add']({'view':_0x329ef2,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x523f12=this['editor']['editing'],_0x36d101=this['_getChangeFromId'](_0x329ef2['changeId']);let _0xad746d;if(_0x36d101['data']['isOnRoot']){const _0x2e9516=_0x523f12['view']['getDomRoot'](_0x36d101['rootName']);_0xad746d=Array['from'](_0x2e9516['getClientRects']());}else{const _0x23ee57=this['editor']['model']['markers']['get']('revision:'+_0x329ef2['changeId']);_0xad746d=Array['from'](_0x523f12['mapper']['markerNameToElements'](_0x23ee57['name']))['map'](_0x593da3=>_0x523f12['view']['domConverter']['mapViewToDom'](_0x593da3))['map'](_0x3ddeb0=>Array['from'](_0x3ddeb0['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xad746d[0x0];return _0xad746d['find'](_0x3dad0a=>_0x3dad0a['top']-0x3<=this['_activeViewTarget']['y']&&_0x3dad0a['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3dad0a['left']-0x3<=this['_activeViewTarget']['x']&&_0x3dad0a['right']+0x3>=this['_activeViewTarget']['x'])||_0xad746d[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x23460f,_0x12eeb2,_0x54b03e,_0x5f4796)=>{this['activeView']=_0x54b03e?this['_getViewForChange'](_0x54b03e):null,this['editor']['model']['change'](()=>{const _0x59a3c6=this['editor']['editing'];_0x5f4796&&(_0x5f4796['data']['isOnRoot']?_0x59a3c6['view']['change'](_0x383619=>{_0x383619['removeClass']('ck-revision-history-root--active',_0x59a3c6['view']['document']['getRoot'](_0x5f4796['rootName']));}):_0x59a3c6['reconvertMarker']('revision:'+_0x5f4796['id'])),_0x54b03e&&(_0x54b03e['data']['isOnRoot']?_0x59a3c6['view']['change'](_0x2e81a2=>{_0x2e81a2['addClass']('ck-revision-history-root--active',_0x59a3c6['view']['document']['getRoot'](_0x54b03e['rootName']));}):_0x59a3c6['reconvertMarker']('revision:'+_0x54b03e['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x55fd9c,_0x14be8e)=>{if(this['activeChange'])return;const _0x3fc18b=this['_findChangeIdFromDomTarget'](_0x14be8e['target']),_0x25f647=this['_changeIdToChange']['get'](_0x3fc18b);_0x25f647?(this['_activeViewTarget']={'x':_0x14be8e['domEvent']['x'],'y':_0x14be8e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x25f647)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4a6719,_0x27a00e)=>{const _0x56fbe1=this['_findChangeIdFromDomTarget'](_0x27a00e['target']),_0x14649a=this['_changeIdToChange']['get'](_0x56fbe1);_0x14649a?(this['_activeViewTarget']={'x':_0x27a00e['domEvent']['x'],'y':_0x27a00e['domEvent']['y']},_0x14649a===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x14649a):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x42826e){do{const _0x3cc538=_0x42826e['getAttribute']('data-change-id');if(_0x3cc538)return _0x3cc538;_0x42826e=_0x42826e['parent'];}while(_0x42826e);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x168712=>{for(const _0x3a3702 of this['editor']['model']['markers'])_0x168712['removeMarker'](_0x3a3702);});}}function X(_0x20eedf,_0x22f4e5){return(_0x15cdfc,_0x5a6e8e,_0x13183b)=>{if(!_0x13183b['consumable']['test'](_0x5a6e8e['markerRange'],_0x15cdfc['name']))return;const _0x96476=_0x5a6e8e['markerRange']['getWalker'](),_0x209c76=_0x5a6e8e['markerRange']['start'],_0x2c691c=_0x20eedf['model']['schema'];let _0x377726=null,_0xf8eefb=null,_0x45c637=!0x1,_0x32a949=!0x1;for(const _0x3be091 of _0x96476){const _0xc6e821=_0x3be091['item'];_0x45c637=_0x45c637||_0x2c691c['isContent'](_0xc6e821);const _0x2d25ce=_0x13183b['mapper']['toViewElement'](_0xc6e821);if(_0x2d25ce&&_0x2d25ce['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3be091['type']&&(_0x2c691c['isBlock'](_0xc6e821)&&!_0x2c691c['isLimit'](_0xc6e821)&&(_0xc6e821['nextSibling']||_0x209c76['isAtEnd']?_0x377726&&_0x377726['parent']==_0xc6e821||(_0x377726=_0xc6e821,_0xd33247(_0x3be091['previousPosition']),_0x32a949=!0x0):_0xf8eefb=_0xf8eefb||_0x3be091['previousPosition']));}function _0xd33247(_0x56f12a){const _0x2dcfcc=_0x13183b['mapper']['toViewPosition'](_0x56f12a),_0x520b65=_0x13183b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x22f4e5});_0x13183b['writer']['insert'](_0x2dcfcc,_0x520b65),_0x13183b['mapper']['bindElementToMarker'](_0x520b65,_0x5a6e8e['markerName']);}_0x45c637||_0x32a949||!_0xf8eefb||_0xd33247(_0xf8eefb);};}class mt extends _0x447304{constructor(_0x27d3c2){super(_0x27d3c2);const _0x3d8208=_0x27d3c2['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x3d8208,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3d8208,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1085c2=this['editor'],_0x391836=_0x1085c2['plugins']['get'](m),_0x36cf3b=_0x391836['isReady']?_0x391836['diff']['newRevisionId']:null;_0x1085c2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x36cf3b);}['refresh'](){const {isReady:_0x4e36d5,isEnabled:_0x59a675,repository:_0x13dea5,diff:_0x2c8716}=this['editor']['plugins']['get'](m),_0x219991=_0x2c8716&&_0x13dea5['getLaterVisibleRevision'](_0x2c8716['newRevisionId']);this['isEnabled']=_0x4e36d5&&_0x59a675&&Boolean(_0x219991);}}class wt extends _0x447304{['_step'];constructor(_0x193cf5,{direction:_0x21a1b2}){super(_0x193cf5);const _0x5a8af6=_0x193cf5['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x21a1b2?0x1:-0x1,this['listenTo'](_0x5a8af6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5a8af6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5a8af6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x37fb6e=this['editor'],_0x559ebe=_0x37fb6e['plugins']['get'](m),{isNavigationMode:_0x24ab43,currentChangeNumber:_0x1b0d9d}=_0x559ebe;let _0x641e91;if(_0x559ebe['activeChange']=_0x24ab43?_0x559ebe['diff']['changes']['get'](_0x1b0d9d+this['_step']):_0x559ebe['diff']['changes']['first'],_0x559ebe['activeChange']['data']['isOnRoot'])_0x641e91=_0x37fb6e['editing']['view']['getDomRoot'](_0x559ebe['activeChange']['rootName']);else{const _0x4ec315=_0x37fb6e['model']['markers']['get']('revision:'+_0x559ebe['activeChange']['id']);_0x641e91=_0x3e6754(_0x37fb6e['editing'],_0x4ec315);}_0x3cc31c({'target':_0x641e91,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2f5a7e,currentChangeNumber:_0x3342b5,numberOfChanges:_0x1007aa,isReady:_0x36a1c5,isEnabled:_0x51f753}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x51f753&&_0x36a1c5&&_0x1007aa)&&(!_0x2f5a7e||(0x1===this['_step']?_0x3342b5<_0x1007aa-0x1:_0x3342b5>0x0));}}class li extends ts{constructor(_0x4df0b0){super(_0x4df0b0);const _0x341107=this['bindTemplate'],_0x1b24dc=new te(_0x4df0b0),_0x315855=new te(_0x4df0b0);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',(_0x5915ca,_0xd93c59)=>_0x5915ca&&_0xd93c59>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x396f4c,_0x4caa02,_0x3297f3,_0x5ec8b6)=>{if(!_0x396f4c)return g(_0x4df0b0,'Loading...');if(!_0x3297f3)return g(_0x4df0b0,'No\x20changes');const _0x534782=g(_0x4df0b0,'NUMBER_OF_CHANGES',_0x3297f3);return _0x5ec8b6?g(_0x4df0b0,'X_OF_Y_CHANGES',[_0x4caa02+0x1,_0x3297f3]):_0x534782;}),_0x1b24dc['set']({'label':g(_0x4df0b0,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x7e3ec3}),_0x315855['set']({'label':g(_0x4df0b0,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2de4f2}),_0x1b24dc['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x315855['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1b24dc['on']('execute',()=>this['fire']('execute','backward')),_0x315855['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',_0x341107['if']('_isStatusLabelVisible','ck-hidden',_0x4a733c=>!_0x4a733c)]},'children':[{'text':_0x341107['to']('isNavigationMode',_0x2f62a1=>_0x2f62a1?g(_0x4df0b0,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x4df0b0,'Total')+':\x20')}]},{'text':_0x341107['to']('_statusText')}]},new _0x5b9bc3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1b24dc,_0x315855]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x569b2d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x22eef2=this['editor']['editing']['view'];_0x22eef2['change'](_0x174a75=>{for(const _0x408d21 of _0x22eef2['document']['roots'])_0x174a75['addClass'](le,_0x408d21);});}['hide'](){const _0x38a676=this['editor']['editing']['view'];_0x38a676['change'](_0xb1d400=>{for(const _0x47e594 of _0x38a676['document']['roots'])_0xb1d400['removeClass'](le,_0x47e594);});}}class R extends _0x569b2d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x242222=this['editor'],_0x21df70=_0x242222['plugins']['get'](m),_0x54eec2=_0x242222['plugins']['get'](ge);_0x242222['ui']['componentFactory']['add']('exitToEditing',_0x2818c2=>{const _0x3d73b8=new te(_0x2818c2);return _0x3d73b8['set']({'label':g(_0x2818c2,'Back\x20to\x20editing'),'icon':_0x2574cb,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3d73b8,'execute',()=>{_0x242222['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3d73b8;}),_0x242222['ui']['componentFactory']['add']('restoreRevision',_0x4a9be1=>{const _0x2e4232=new te(_0x4a9be1);return _0x2e4232['set']({'label':g(_0x4a9be1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2e4232['bind']('isEnabled')['to'](_0x242222['commands']['get']('restoreRevision')),this['listenTo'](_0x2e4232,'execute',()=>_0x242222['execute']('restoreRevision')),_0x2e4232;}),_0x242222['ui']['componentFactory']['add']('changesNavigation',_0x45d80f=>{const _0x1282ff=new li(_0x45d80f),_0x4382a9=_0x242222['commands']['get']('showPreviousChange'),_0x29eaa2=_0x242222['commands']['get']('showNextChange');return _0x1282ff['bind']('isBackwardNavigationEnabled')['to'](_0x4382a9,'isEnabled'),_0x1282ff['bind']('isForwardNavigationEnabled')['to'](_0x29eaa2,'isEnabled'),_0x1282ff['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x21df70),this['listenTo'](_0x1282ff,'execute',(_0x3f4fda,_0x412014)=>{_0x242222['execute']('forward'===_0x412014?'showNextChange':'showPreviousChange');}),_0x1282ff;}),_0x54eec2['show'](),_0x21df70['on']('change:isReady',(_0x257ff7,_0x2f6f3b,_0x4a2dcf)=>{_0x4a2dcf?_0x54eec2['hide']():_0x54eec2['show']();});}}class at extends _0x44236c{['_resizeObserver']=null;constructor(_0x1e28ef,_0x4a9cd7){super(_0x1e28ef,_0x4a9cd7);const _0x1375af=this['bindTemplate'];this['set']({'label':g(_0x1e28ef,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x1e28ef,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1375af['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 _0x56ca2f=this['fieldView']['element'];this['_tooltipString']=_0x56ca2f['scrollWidth']>_0x56ca2f['clientWidth']&&_0x56ca2f['value']||'';}}class oi extends ts{constructor(_0x1a16fe,_0x1c8d90,_0x1a2196){super(_0x1a16fe);const _0x18791d=new _0x1cb45c();_0x18791d['set']({'content':_0x5acc08,'viewBox':'0\x200\x2011\x2010'});const _0x6859d5=['ck','ck-revision-history-sidebar__revision-author'];_0x1a2196&&_0x6859d5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x198f9a=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x1a16fe,_0x1a2196?'Revision\x20creator':'Revision\x20author')},'children':[_0x18791d,_0x1c8d90['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x6859d5},'children':_0x198f9a});}}function ai(_0x32b86a,_0x3c1fee){const _0x56ee13=_0x32b86a['bindTemplate'],_0xeb4290=_0x32b86a['locale'],_0x8d6f70=_0x349be9(_0xeb4290);_0x8d6f70['panelPosition']='sw';const _0x3b9252=function(_0x271703,_0x2f0b31){const _0x18fe41=function(_0x40acf3,_0x28b782){const _0x337422=_0x40acf3['locale'],_0x3ea3ce={'Compare\x20against\x20selected':g(_0x337422,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x337422,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x337422,'Restore\x20this\x20revision')};return _0x28b782['map'](_0x468315=>{const _0x395348=_0x3ea3ce[_0x468315['name']];return _0x395348&&_0x395348!==_0x468315['name']&&(_0x468315['name']=_0x395348),_0x468315;});}(_0x271703,_0x2f0b31),_0x451ab0=new _0x93c57c();for(const _0x5683b3 of _0x18fe41){const _0x48353f={'type':'button','model':new to({'label':_0x5683b3['name'],'class':_0x5683b3['class'],'withText':!0x0,'role':'menuitem','_action':_0x5683b3['action']})};_0x48353f['model']['bind']('isEnabled')['to'](_0x271703,'isActionsDropdownOpen',_0x39e4dd=>'function'!=typeof _0x5683b3['isEnabled']||(!_0x39e4dd||_0x5683b3['isEnabled'](_0x271703))),_0x451ab0['add'](_0x48353f);}return _0x451ab0;}(_0x32b86a,_0x3c1fee);return _0x32b86a['bind']('isActionsDropdownOpen')['to'](_0x8d6f70,'isOpen'),_0x8d6f70['buttonView']['set']({'label':g(_0xeb4290,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4126f9}),_0x8d6f70['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x56ee13['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x56ee13['to'](_0x3d390e=>_0x3d390e['stopPropagation']())}}),_0x8d6f70['on']('execute',_0x25f2ab=>{_0x32b86a['isReady']&&'function'==typeof _0x25f2ab['source']['_action']&&_0x25f2ab['source']['_action'](_0x32b86a);}),_0x5c4b24(_0x8d6f70,_0x3b9252,{'role':'menu'}),_0x8d6f70['listenTo'](_0x32b86a,'change:isActionsDropdownOpen',(_0x3d2dd6,_0x2ea960,_0x1c8c92)=>{if(_0x1c8c92)for(const _0x24b0b7 of _0x8d6f70['listView']['items']){const _0x3cb8da=_0x24b0b7['children']['first'],_0x4e94df=_0x3c1fee['find'](_0x565bcf=>_0x565bcf['action']===_0x3cb8da['_action'])['isVisible'];_0x24b0b7['isVisible']=void 0x0===_0x4e94df||_0x4e94df(_0x32b86a);}}),_0x8d6f70;}class si extends/* #__PURE__ -- @preserve */
26
- _0x2bc197(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4d4ed2,_0x18cd89,_0x3447d3,_0x3abae4){super(_0x4d4ed2);const _0x1d6267=this['bindTemplate'],_0x1748bd=function(_0x3b2c0f,_0x2862a9){const _0x1802cb=Array['from'](_0x2862a9['authors'])['filter'](_0x5b27b6=>_0x5b27b6!=_0x2862a9['creator']);return _0x2862a9['creator']&&_0x1802cb['unshift'](_0x2862a9['creator']),_0x1802cb['map'](_0x464764=>new oi(_0x3b2c0f,_0x464764,_0x464764==_0x2862a9['creator']));}(_0x4d4ed2,_0x18cd89);this['id']=_0x18cd89['id'],this['_revision']=_0x18cd89,this['_requireRevisionName']=_0x3abae4,this['bind']('name','createdAt')['to'](_0x18cd89),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x505b7e=>{return _0x389dca=_0x4d4ed2['uiLanguage'],(_0x2479e5=_0x505b7e)['toLocaleDateString'](_0x389dca,{'month':'long','day':'numeric'})+',\x20'+_0x2479e5['toLocaleTimeString'](_0x389dca,{'hour':'numeric','minute':'numeric'});var _0x389dca,_0x2479e5;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x4d4ed2,_0x3243f8),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xbb80b8=>_0xbb80b8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x30e604,_0x2a7fa8)=>_0x30e604&&_0x2a7fa8),this['revisionActionsView']=_0x3447d3&&_0x3447d3['length']?ai(this,_0x3447d3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1d6267['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1d6267['if']('isEnabled','ck-disabled',_0x279ca0=>!_0x279ca0),_0x1d6267['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1d6267['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1d6267['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':_0x1d6267['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':_0x1748bd}]},this['revisionActionsView']],'on':{'click':_0x1d6267['to'](_0xebfbcf=>{_0xebfbcf['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x29ca72=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x29ca72,'change',()=>{this['_requireRevisionName']&&!_0x29ca72['value']||this['fire']('setName',{'id':this['id'],'name':_0x29ca72['value']}),_0x29ca72['value']||(_0x29ca72['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x386ac4,_0x5b0a64){const _0x561253=_0x4f2601['fromJSDate'](_0x386ac4)['setLocale'](_0x5b0a64),_0x425162=_0x4f2601['local'](),_0x409b55=_0x425162['minus']({'days':0x1})['startOf']('day');let _0x22fcbe,_0x328a32;return _0x561253['hasSame'](_0x425162,'day')?(_0x22fcbe=_0x561253['startOf']('day')['toJSDate'](),_0x328a32=_0x561253['toRelativeCalendar']()):_0x561253['hasSame'](_0x409b55,'day')?(_0x22fcbe=_0x409b55['toJSDate'](),_0x328a32=_0x561253['toRelativeCalendar']()):_0x561253['hasSame'](_0x425162,'week')?(_0x22fcbe=_0x561253['startOf']('week')['toJSDate'](),_0x328a32=_0x561253['weekdayLong']||''):_0x561253['hasSame'](_0x425162,'year')?(_0x22fcbe=_0x561253['startOf']('month')['toJSDate'](),_0x328a32=_0x561253['monthLong']||''):(_0x22fcbe=_0x561253['startOf']('year')['toJSDate'](),_0x328a32=String(_0x561253['year'])),{'startDate':_0x22fcbe,'localizedPeriodName':_0x328a32};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x59d586,_0x2a9191,_0x1ffe21,_0x51f1fd){super(_0x59d586);const _0x4308bc=ti(_0x2a9191,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2a9191,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1ffe21,this['_requireRevisionName']=_0x51f1fd,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':_0x4308bc}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3cd4ff){const _0x41cfeb=new si(this['locale'],_0x3cd4ff,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x41cfeb);}['removeRevision'](_0x3d102a){const _0x206349=this['revisionViews']['find'](_0x1f4e5d=>_0x1f4e5d['id']===_0x3d102a['id']);this['revisionViews']['remove'](_0x206349);}}class cs extends ts{constructor(_0x26a12c){super(_0x26a12c);const _0x1abf42=new _0x1cb45c();_0x1abf42['content']=_0x36a0df,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1abf42,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x26a12c,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x40c7ad,_0x438433,_0x35cff9,_0x346bda){super(_0x40c7ad);const _0xa972c1=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x438433,this['_revisionActions']=_0x35cff9,this['_requireRevisionName']=_0x346bda,this['on']('select',(_0x38e23b,_0x5e043a)=>{this['fire']('revisionSelected',_0x5e043a);}),this['on']('setName',(_0x37c3b6,_0x117f8e)=>{this['fire']('revisionSetName',_0x117f8e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x40c7ad),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xa972c1['if']('isEnabled','ck-disabled',_0x252262=>!_0x252262)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xddbfdf of this['_revisions'])this['_addRevision'](_0xddbfdf);this['_revisions']['on']('add',(_0x3e379b,_0x3ea61e)=>{this['_addRevision'](_0x3ea61e);}),this['_revisions']['on']('remove',(_0x19fab1,_0x270c5d)=>{this['_removeRevision'](_0x270c5d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x17f8b3=>_0x17f8b3['revisionViews']['map'](_0x1ee954=>_0x1ee954))['flat']();}['selectRevision'](_0x5dc1ed){for(const _0x128c40 of this['revisionViews'])_0x5dc1ed&&_0x5dc1ed['id']===_0x128c40['id']?_0x128c40['select']():_0x128c40['deselect']();}['highlightRevisions'](_0x3956b8){for(const _0x6fc129 of this['revisionViews'])_0x3956b8['some'](({id:_0x3f7089})=>_0x3f7089===_0x6fc129['id'])?_0x6fc129['highlight']():_0x6fc129['unhighlight']();}['_addRevision'](_0xf9a5d2){const _0x1367a7=ti(_0xf9a5d2['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x469964=this['timePeriodViews']['get'](0x0);_0x469964&&_0x469964['startDate']['getTime']()===_0x1367a7['getTime']()||(_0x469964=new ei(this['locale'],_0x1367a7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x469964)),_0x469964['addRevision'](_0xf9a5d2);}['_removeRevision'](_0x392fd6){const _0x144cf8=ti(_0x392fd6['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x144cf8)['removeRevision'](_0x392fd6);}['_getTimePeriodViewByStartDate'](_0x4a290c){return this['timePeriodViews']['find'](_0x3a299f=>_0x3a299f['startDate']['getTime']()===_0x4a290c['getTime']());}}class d extends _0x569b2d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x2bafdc,uid as _0x29d31e,Collection as _0x2d4b38,logWarning as _0x175045,FocusTracker as _0x484765,KeystrokeHandler as _0x3a99cb,scrollViewportToShowTarget as _0x52ec3f,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x4303f6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3153c8,set as _0xda55da,unset as _0x29b43e,isEqual as _0x2e0e8d}from'es-toolkit/compat';import{Plugin as _0x594d24,PendingActions as _0x5b04d4,Command as _0x31431b,ElementApiMixin as _0x2cebf3,Editor as _0x5d886f}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x488749,getMarkerDomElement as _0x291ee7,ConfirmMixin as _0x424bb4,sanitizeEditorConfig as _0x2648be}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x50edb0,ViewAttributeElement as _0x4b0dec,ViewEmptyElement as _0x3d6b41,ViewRawElement as _0x20b61f,ViewUIElement as _0x5ba7b6,ViewDocumentFragment as _0x496fe7,ViewText as _0x299fd1,ViewElement as _0x5b2765,ModelElement as _0x14dfc7,ModelRange as _0x1f3523,ModelPosition as _0x1aa988,ModelDocumentFragment as _0x367b4a,ModelText as _0x30226a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1c60bc,IconChevronUp as _0x5a82ac,IconChevronDown as _0x38eb4d,IconUndo as _0x1995d5,IconUser as _0x14b518,IconThreeVerticalDots as _0xf8bf85}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x4f7ea1,View as _0x47987e,submitHandler as _0x2460a9,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x514a35,ListView as _0x17c088,ListItemView as _0x392bd3,ButtonView as _0x18e75a,MenuBarMenuView as _0x15bdb6,MenuBarMenuListView as _0x275466,MenuBarMenuListItemView as _0x4c4991,MenuBarMenuListItemButtonView as _0x303dce,ContextualBalloon as _0x1dace3,ToolbarSeparatorView as _0x28081e,IconView as _0x26b0bd,addListToDropdown as _0x1e3dad,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x5c6dee,StickyPanelView as _0x4a5029,ToolbarView as _0x443442,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x26b2ca}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
+ _0x2bafdc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4cbaeb){super(),this['id']=_0x4cbaeb['id']||_0x29d31e(),this['creator']=_0x4cbaeb['creator']||null,this['authors']=_0x4cbaeb['authors']||[],this['diffData']=_0x4cbaeb['diffData']||null,this['toVersion']=_0x4cbaeb['toVersion']||0x0,this['fromVersion']=_0x4cbaeb['fromVersion']||0x0,this['set']('name',_0x4cbaeb['name']||''),this['set']('createdAt',_0x4cbaeb['createdAt']||new Date()),this['set']('attributes',_0x4cbaeb['attributes']||{});}['setName'](_0x4957f0){this['_update']({'name':_0x4957f0});}['setAttribute'](_0x2b811d,_0x2040d1){const _0x2cec10=_0x3153c8(this['attributes']);_0xda55da(_0x2cec10,_0x2b811d,_0x2040d1),this['_update']({'attributes':_0x2cec10});}['removeAttribute'](_0x2cbcc0){const _0x4a99f9=_0x3153c8(this['attributes']);_0x29b43e(_0x4a99f9,_0x2cbcc0),this['_update']({'attributes':_0x4a99f9});}['_update'](_0x4f9286,_0x4060f5=!0x1){let _0x4db9a8=!0x1;const _0x126d69={'id':this['id']},_0x53ac6b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x10a187 of _0x53ac6b){const _0x339a1d=_0x4f9286[_0x10a187];void 0x0!==_0x339a1d&&_0x339a1d!==this[_0x10a187]&&(this[_0x10a187]=_0x339a1d,_0x126d69[_0x10a187]=_0x339a1d,_0x4db9a8=!0x0);}_0x4db9a8&&(_0x126d69['authors']&&(_0x126d69['authorsIds']=_0x126d69['authors']['map'](_0x381384=>_0x381384['id']),delete _0x126d69['authors']),this['fire']('_update',_0x126d69,_0x4060f5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x406a43=>_0x406a43['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x594d24{['_revisions'];static get['requires'](){return[_0x488749];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4ae62c){super(_0x4ae62c),this['_revisions']=new _0x2d4b38();}['afterInit'](){!async function(_0x4633b4){const _0x5fc0eb=_0x27ba33([0x66,0x4b,0x46,0x31,0x70,0x41,0x45,0x62,0x39,0x67,0x58,0x73,0x68,0x4d,0x76,0x52,0x48,0x6f,0x43,0x4a,0x30,0x56,0x7a,0x57,0x6b,0x55,0x42,0x33,0x69,0x75,0x37,0x65,0x4f,0x72,0x74,0x38,0x53,0x51,0x77,0x35,0x5a,0x61,0x64,0x47,0x71,0x6c,0x6d,0x6e,0x36,0x54,0x50,0x4e,0x63,0x49,0x44,0x59,0x32,0x4c,0x78,0x34,0x79,0x6a]),_0x115df5=0xeb829,_0x43eee6=0x2c1db993,_0x1d31c3=0x2c1ad5fb^_0x43eee6,_0xfe33cc=window[_0x27ba33([0x44,0x61,0x74,0x65])][_0x27ba33([0x6e,0x6f,0x77])](),_0x30afa1=_0x4633b4[_0x27ba33([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x201224=new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325218=>{_0x30afa1[_0x27ba33([0x6f,0x6e,0x63,0x65])](_0x27ba33([0x72,0x65,0x61,0x64,0x79]),_0x325218);}),_0xaf2024={[_0x27ba33([0x6b,0x74,0x79])]:_0x27ba33([0x45,0x43]),[_0x27ba33([0x75,0x73,0x65])]:_0x27ba33([0x73,0x69,0x67]),[_0x27ba33([0x63,0x72,0x76])]:_0x27ba33([0x50,0x2d,0x32,0x35,0x36]),[_0x27ba33([0x78])]:_0x27ba33([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]),[_0x27ba33([0x79])]:_0x27ba33([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]),[_0x27ba33([0x61,0x6c,0x67])]:_0x27ba33([0x45,0x53,0x32,0x35,0x36])},_0x480a95=_0x30afa1[_0x27ba33([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27ba33([0x67,0x65,0x74])](_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2af024(){let _0x1992d9,_0x11ff90=null,_0x4457dd=null;try{if(_0x480a95==_0x27ba33([0x47,0x50,0x4c]))return _0x27ba33([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1992d9=_0x548469(),!_0x1992d9)return _0x27ba33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1992d9[_0x27ba33([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4457dd=_0x496880(_0x1992d9[_0x27ba33([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1992d9[_0x27ba33([0x6a,0x74,0x69])])),await _0x3bfef3()?_0x3646a5()?_0x329774()?_0x27ba33([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc28854()?(_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27ba33([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11ff90=_0x21b68a(_0x27ba33([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27ba33([0x74,0x72,0x69,0x61,0x6c])&&(_0x11ff90=_0x21b68a(_0x27ba33([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3309f9()):_0x27ba33([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27ba33([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27ba33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27ba33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x329774(){const _0x5724e5=[_0x27ba33([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27ba33([0x74,0x72,0x69,0x61,0x6c])][_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfe33cc/0x3e8:0xe10*_0x1d31c3;return _0x1992d9[_0x27ba33([0x65,0x78,0x70])]<_0x5724e5;}function _0x3646a5(){const _0x16e62e=_0x1992d9[_0x27ba33([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x16e62e)return!0x1;if(_0x16e62e[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x2a])))return!0x0;if(_0x16e62e[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x52,0x48])))return!0x0;if(_0x16e62e[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x52,0x52,0x48]))){if(_0x3c4374())return!0x0;if(_0x4a2299()||_0x38960c())return!0x0;}return!0x1;}function _0xc28854(){const _0x20901f=_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20901f||0x0==_0x20901f[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ed77f}=new URL(window[_0x27ba33([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20901f[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed77f))return!0x0;const _0x3521d2=_0x3ed77f[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e]));return _0x20901f[_0x27ba33([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7de8e1=>_0x7de8e1[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x2a])))[_0x27ba33([0x6d,0x61,0x70])](_0x4ec28a=>_0x4ec28a[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e])))[_0x27ba33([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59ec58=>_0x59ec58[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3521d2[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27ba33([0x6d,0x61,0x70])](_0x448e12=>Array(_0x3521d2[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x448e12[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27ba33([0x66,0x69,0x6c,0x6c])](_0x448e12[0x0]===_0x27ba33([0x2a])?_0x27ba33([0x2a]):'')[_0x27ba33([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x448e12))[_0x27ba33([0x73,0x6f,0x6d,0x65])](_0x216bd3=>_0x3521d2[_0x27ba33([0x65,0x76,0x65,0x72,0x79])]((_0x40d4bb,_0xc09760)=>_0x216bd3[_0xc09760]===_0x40d4bb||_0x216bd3[_0xc09760]===_0x27ba33([0x2a])));}function _0x3309f9(){return _0x11ff90&&_0x4457dd?new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3116a4,_0x145da4)=>{_0x11ff90[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x3116a4,_0x145da4),_0x4457dd[_0x27ba33([0x74,0x68,0x65,0x6e])](_0xddd42=>{_0xddd42!=_0x27ba33([0x56,0x61,0x6c,0x69,0x64])&&_0x3116a4(_0xddd42);},_0x145da4);}):_0x11ff90||_0x4457dd||_0x27ba33([0x56,0x61,0x6c,0x69,0x64]);}}function _0x496880(_0x366d29,_0x42ff88){return new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x431950=>{if(_0x4a5ce6())return _0x431950(_0x27ba33([0x56,0x61,0x6c,0x69,0x64]));_0x270931(),_0x30afa1[_0x27ba33([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27ba33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12aae9=!0x1;const _0x51d35b=_0x29d31e();function _0x4c03ef(_0x13a5cd){return!!_0x13a5cd&&(typeof _0x13a5cd===_0x27ba33([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13a5cd===_0x27ba33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13a5cd[_0x27ba33([0x74,0x68,0x65,0x6e])]===_0x27ba33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13a5cd[_0x27ba33([0x63,0x61,0x74,0x63,0x68])]===_0x27ba33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25ab7c(_0x38d590){_0x380de0(_0x38d590)[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x24e62b=>{if(!_0x24e62b||_0x24e62b[_0x27ba33([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27ba33([0x6f,0x6b]))return _0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d118b(_0x499887(_0x51d35b+_0x42ff88))!=_0x24e62b[_0x27ba33([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27ba33([0x56,0x61,0x6c,0x69,0x64]);})[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x5a9452=>(_0x7020b4(),_0x5a9452),()=>{const _0x609832=_0x3d7f07();return null==_0x609832?(_0x7020b4(),_0x27ba33([0x56,0x61,0x6c,0x69,0x64])):_0x27ba33(_0xfe33cc-_0x609832>(0x8113d93^_0x43eee6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x431950)[_0x27ba33([0x63,0x61,0x74,0x63,0x68])](()=>{_0x431950(_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x223868=0x2c2b5713^_0x43eee6;function _0x7020b4(){const _0x2256c7=_0x27ba33([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d118b(_0x499887(_0x366d29)),_0x52f9d2=_0x2d8c49(_0x5d118b(window[_0x27ba33([0x4d,0x61,0x74,0x68])][_0x27ba33([0x63,0x65,0x69,0x6c])](_0xfe33cc/_0x223868)));window[_0x27ba33([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27ba33([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2256c7,_0x52f9d2);}function _0x3d7f07(){const _0x5be339=_0x27ba33([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d118b(_0x499887(_0x366d29)),_0x3574a4=window[_0x27ba33([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27ba33([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5be339);return _0x3574a4?window[_0x27ba33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d8c49(_0x3574a4),0x10)*_0x223868:null;}function _0x380de0(_0x425cd5){return new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x592bd9,_0x561164)=>{_0x425cd5[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x592bd9,_0x561164),window[_0x27ba33([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x561164,0x2c1c6d53^_0x43eee6);});}}_0x30afa1[_0x27ba33([0x6f,0x6e])](_0x27ba33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c98b1,_0x2f68f)=>{if(_0x2f68f[0x0]!=_0x366d29)return _0x431950(_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f68f[0x1]={..._0x2f68f[0x1],[_0x27ba33([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51d35b};},{[_0x27ba33([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27ba33([0x68,0x69,0x67,0x68])}),_0x30afa1[_0x27ba33([0x6f,0x6e])](_0x27ba33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c4f50=>{_0x4c03ef(_0x2c4f50[_0x27ba33([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12aae9=!0x0,_0x25ab7c(_0x2c4f50[_0x27ba33([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27ba33([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27ba33([0x6c,0x6f,0x77])}),_0x201224[_0x27ba33([0x74,0x68,0x65,0x6e])](()=>{_0x12aae9||_0x431950(_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a5ce6(){return _0x30afa1[_0x27ba33([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27ba33([0x76,0x69,0x65,0x77])][_0x27ba33([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27ba33([0x61,0x75,0x74,0x6f]);}function _0x270931(){_0x30afa1[_0x27ba33([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27ba33([0x76,0x69,0x65,0x77])][_0x27ba33([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27ba33([0x61,0x75,0x74,0x6f]);}}function _0x21b68a(_0x1fe0b5){const _0x1ff5b5=[new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x391825=>setTimeout(_0x391825,0x2c14875f^_0x43eee6)),_0x201224[_0x27ba33([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264446=>{const _0x40eb0b=0x2c1db994^_0x43eee6,_0x923b29=_0x4633b4[_0x27ba33([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1ebb58(){_0x923b29[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x40eb0b&&_0x264446();}_0x1ebb58(),_0x923b29[_0x27ba33([0x6f,0x6e])](_0x27ba33([0x61,0x64,0x64]),_0x1ebb58);})),new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4afce3=>{function _0x381ac3(){for(const _0xd9cccc in window)if(window[_0x27ba33([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x27ba33([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xd9cccc))&&window[_0xd9cccc]==_0x115df5)return _0x4afce3();_0x30afa1[_0x27ba33([0x73,0x74,0x61,0x74,0x65])]!=_0x27ba33([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x27ba33([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x381ac3,0x2c1daa1b^_0x43eee6);}_0x10f0b1(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x381ac3();})];return window[_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27ba33([0x72,0x61,0x63,0x65])](_0x1ff5b5)[_0x27ba33([0x74,0x68,0x65,0x6e])](()=>_0x1fe0b5);}async function _0x119213(){if(await _0x201224,_0x10f0b1(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x123ca1=_0x4633b4[_0x27ba33([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5d5966=_0x4633b4[_0x27ba33([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])](_0x123ca1[_0x27ba33([0x69,0x64])]),_0x32b3b4=_0x4d36ba(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x32b3b4[_0x27ba33([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x123ca1['id'],_0x5d5966?_0x5d5966['id']:null,!0x0),_0x32b3b4[_0x27ba33([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x32b3b4[_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x32b3b4[_0x27ba33([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2408e3,void(_0x32b3b4[_0x27ba33([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2408e3);}if(_0x10f0b1(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x146b85=_0x4d36ba(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x146b85[_0x27ba33([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x146b85[_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x146b85[_0x27ba33([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2408e3,_0x146b85[_0x27ba33([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2408e3;}_0x30afa1[_0x27ba33([0x6d,0x6f,0x64,0x65,0x6c])][_0x27ba33([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2408e3,_0x30afa1[_0x27ba33([0x6d,0x6f,0x64,0x65,0x6c])][_0x27ba33([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2408e3,_0x30afa1[_0x27ba33([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27ba33([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c4374(){return _0x10f0b1(_0x27ba33([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d36ba(_0x27ba33([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x27ba33([0x73,0x74,0x61,0x74,0x65])]==_0x27ba33([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4a2299(){return _0x10f0b1(_0x27ba33([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 _0x38960c(){return _0x10f0b1(_0x27ba33([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3ab8f(_0x404d69){const _0x1df16f=_0x49d574();_0x30afa1[_0x1df16f]=_0x27ba33([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])+_0x404d69,_0x404d69[_0x27ba33([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x27ba33([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x49d574()]=_0x115df5),_0x404d69!=_0x27ba33([0x56,0x61,0x6c,0x69,0x64])&&_0x119213();}function _0x49d574(){const _0x2fb76f=window[_0x27ba33([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27ba33([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27ba33([0x6e,0x6f,0x77])]())[_0x27ba33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27ba33([0x2e]),'');let _0x3ddf26=_0x27ba33([0x66]);for(let _0x30416b=0x0;_0x30416b<_0x2fb76f[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30416b+=0x2){let _0x31c586=window[_0x27ba33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fb76f[_0x27ba33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30416b,_0x30416b+0x2));_0x31c586>=_0x5fc0eb[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31c586-=_0x5fc0eb[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ddf26+=_0x5fc0eb[_0x31c586];}return _0x3ddf26;}function _0x548469(){const _0x10b87e=_0x480a95[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e]));if(0x3!=_0x10b87e[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f4600(_0x10b87e[0x1]);function _0x2f4600(_0xa3e854){const _0x22ba96=_0x4ff06e(_0xa3e854);return _0x22ba96&&_0x4f1f30()?_0x22ba96:null;function _0x4f1f30(){const _0x362242=_0x22ba96[_0x27ba33([0x6a,0x74,0x69])],_0x30afab=window[_0x27ba33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362242[_0x27ba33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x362242[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2188e1={..._0x22ba96,[_0x27ba33([0x6a,0x74,0x69])]:_0x362242[_0x27ba33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x362242[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2188e1[_0x27ba33([0x76,0x63])],_0x499887(_0x2188e1)==_0x30afab;}}}async function _0x3bfef3(){let _0x34b7d9=!0x0;try{const _0x4cf693=_0x480a95[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e])),[_0x867161,_0x4b9a3f,_0x1148fa]=_0x4cf693;return _0x3951dd(_0x867161),await _0x40c849(_0x867161,_0x4b9a3f,_0x1148fa),_0x34b7d9;}catch{return!0x1;}function _0x3951dd(_0x2f5812){const _0x342089=_0x4ff06e(_0x2f5812);_0x342089&&_0x342089[_0x27ba33([0x61,0x6c,0x67])]==_0x27ba33([0x45,0x53,0x32,0x35,0x36])||(_0x34b7d9=!0x1);}async function _0x40c849(_0x496566,_0x3a0b7e,_0x90cbd4){const _0xe81486=window[_0x27ba33([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27ba33([0x66,0x72,0x6f,0x6d])](_0x55b99c(_0x90cbd4),_0x38be8d=>_0x38be8d[_0x27ba33([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ab921=new window[(_0x27ba33([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27ba33([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x496566+_0x27ba33([0x2e])+_0x3a0b7e),_0x5f088f=window[_0x27ba33([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27ba33([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5f088f)return;const _0x368e14=await _0x5f088f[_0x27ba33([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27ba33([0x6a,0x77,0x6b]),_0xaf2024,{[_0x27ba33([0x6e,0x61,0x6d,0x65])]:_0x27ba33([0x45,0x43,0x44,0x53,0x41]),[_0x27ba33([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27ba33([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27ba33([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5f088f[_0x27ba33([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27ba33([0x6e,0x61,0x6d,0x65])]:_0x27ba33([0x45,0x43,0x44,0x53,0x41]),[_0x27ba33([0x68,0x61,0x73,0x68])]:{[_0x27ba33([0x6e,0x61,0x6d,0x65])]:_0x27ba33([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x368e14,_0xe81486,_0x1ab921)||(_0x34b7d9=!0x1);}}function _0x4ff06e(_0x35db76){return _0x35db76[_0x27ba33([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27ba33([0x65,0x79]))?JSON[_0x27ba33([0x70,0x61,0x72,0x73,0x65])](_0x55b99c(_0x35db76)):null;}function _0x55b99c(_0x5e3fdc){return window[_0x27ba33([0x61,0x74,0x6f,0x62])](_0x5e3fdc[_0x27ba33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27ba33([0x2b]))[_0x27ba33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27ba33([0x2f])));}function _0x499887(_0x3ff2eb){let _0x4155ca=0x1505;function _0x5d1ab2(_0x38a270){for(let _0x3460f2=0x0;_0x3460f2<_0x38a270[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3460f2++){const _0xef2c6e=_0x38a270[_0x27ba33([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3460f2);_0x4155ca=(_0x4155ca<<0x5)+_0x4155ca+_0xef2c6e,_0x4155ca&=_0x4155ca;}}function _0x4e1ce5(_0x498425){Array[_0x27ba33([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x498425)?_0x498425[_0x27ba33([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e1ce5):_0x498425&&typeof _0x498425==_0x27ba33([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27ba33([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x498425)[_0x27ba33([0x73,0x6f,0x72,0x74])]()[_0x27ba33([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a82af,_0x311fd2])=>{_0x5d1ab2(_0x5a82af),_0x4e1ce5(_0x311fd2);}):_0x5d1ab2(window[_0x27ba33([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x498425));}return _0x4e1ce5(_0x3ff2eb),_0x4155ca>>>0x0;}function _0x5d118b(_0x267597){return _0x267597[_0x27ba33([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27ba33([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27ba33([0x30]));}function _0x2d8c49(_0x54a6f6){return _0x54a6f6[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27ba33([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27ba33([0x6a,0x6f,0x69,0x6e])]('');}function _0x10f0b1(_0x51bbc7){return _0x30afa1[_0x27ba33([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27ba33([0x68,0x61,0x73])](_0x51bbc7);}function _0x4d36ba(_0x591653){return _0x30afa1[_0x27ba33([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27ba33([0x67,0x65,0x74])](_0x591653);}function _0x2408e3(){}function _0x27ba33(_0x50b771){return _0x50b771['map'](_0x40208c=>String['fromCharCode'](_0x40208c))['join']('');}_0x3ab8f(await _0x2af024());}(this);}['createRevision'](_0x4c737f){const _0x1ee1e0=this['editor']['plugins']['get']('Users');return new I({'id':_0x4c737f['id'],'name':_0x4c737f['name'],'creator':_0x4c737f['creatorId']?_0x1ee1e0['getUser'](_0x4c737f['creatorId']):null,'diffData':_0x4c737f['diffData']||_0x4c737f['data'],'authors':_0x4c737f['authorsIds']['map'](_0x50553f=>_0x1ee1e0['getUser'](_0x50553f)),'createdAt':new Date(_0x4c737f['createdAt']),'attributes':_0x4c737f['attributes'],'fromVersion':_0x4c737f['fromVersion'],'toVersion':_0x4c737f['toVersion']});}['addRevision'](_0x2ed490,_0x4ddfeb=0x0){this['_revisions']['add'](_0x2ed490,_0x4ddfeb);}['getRevision'](_0xb03fbd){return this['_revisions']['get'](_0xb03fbd);}['getRevisions'](_0x23c073={'toJSON':!0x1}){const _0x56c34f=Array['from'](this['_revisions']);return _0x56c34f['reverse'](),_0x23c073['toJSON']?_0x56c34f['map'](_0x2ca21f=>_0x2ca21f['toJSON']()):_0x56c34f;}['getIndex'](_0x543508){return this['_revisions']['getIndex'](_0x543508);}['getEarlierVisibleRevision'](_0x4dece5){const [,_0x2e6abf]=this['getRevisionsIterator'](_0x4dece5,{'direction':'earlier'});return _0x2e6abf;}['getLaterVisibleRevision'](_0x1bf235){const [,_0x1c4768]=this['getRevisionsIterator'](_0x1bf235,{'direction':'later'});return _0x1c4768;}['getRevisionsInDiff'](_0x4ced9b){const _0x41646d=[];for(const _0x17dc2d of this['getRevisionsIterator'](_0x4ced9b['newRevisionId']))if(_0x41646d['push'](_0x17dc2d),_0x17dc2d['id']===_0x4ced9b['oldRevisionId'])break;return _0x41646d;}*['getRevisionsIterator'](_0x1b1693,{direction:_0x26f015='earlier',filter:_0x464224=()=>!0x0}={}){const _0x38cbb0='earlier'===_0x26f015?0x1:-0x1;let _0x169232=this['_revisions']['get'](_0x1b1693),_0x20bdbe=this['getIndex'](_0x169232);for(yield _0x169232;_0x169232;){if(_0x20bdbe+=_0x38cbb0,_0x169232=this['getRevision'](_0x20bdbe),!_0x169232)return;_0x464224(_0x169232)&&(yield _0x169232);}}}class $ extends _0x594d24{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x50edb0,'c'],[_0x4b0dec,'a'],[_0x3d6b41,'e'],[_0x20b61f,'r'],[_0x5ba7b6,'u']]);['_typeCharToViewClass']=new Map([['c',_0x50edb0],['a',_0x4b0dec],['e',_0x3d6b41],['r',_0x20b61f],['u',_0x5ba7b6]]);async['loadRevisionData'](_0x51a6b7,_0x29391c){if(_0x51a6b7['diffData']||!_0x29391c)return;const _0x42b47f=this['editor']['config']['get']('collaboration.channelId'),_0x25f01b=await _0x29391c['getRevision']({'channelId':_0x42b47f,'revisionId':_0x51a6b7['id']});_0x51a6b7['diffData']=_0x25f01b['diffData'];}['getRevisionDocumentData'](_0x475633){const _0x5e7d6b={};for(const _0x4ac3fd in _0x475633['diffData']){if(_0x475633['diffData'][_0x4ac3fd]['attachChange']&&!_0x475633['diffData'][_0x4ac3fd]['attachChange']['isAttached'])continue;const _0x2efc0a=this['_removeRevisionMarkers'](JSON['parse'](_0x475633['diffData'][_0x4ac3fd]['insertions'])),_0x11e7ed=this['editor']['editing']['view']['document'],_0x59003a=new _0x496fe7(_0x11e7ed,_0x2efc0a['map'](_0x3d1a69=>this['_getViewFromDiffObj'](_0x3d1a69,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5e7d6b[_0x4ac3fd]=this['editor']['data']['processor']['toData'](_0x59003a),this['editor']['data']['processor']['useFillerType']('default');}return _0x5e7d6b;}['getRevisionRootsAttributes'](_0x260a1c){const _0x134924={};for(const _0x3dab46 in _0x260a1c['diffData'])_0x260a1c['diffData'][_0x3dab46]['attachChange']&&!_0x260a1c['diffData'][_0x3dab46]['attachChange']['isAttached']||(_0x134924[_0x3dab46]=_0x260a1c['diffData'][_0x3dab46]['attributesAfter']||{});return _0x134924;}['_getTypeCharForViewElement'](_0x84353){return this['_viewClassToTypeChar']['get'](_0x84353['constructor']);}['_getViewFromDiffObj'](_0x3995e4,_0x4ffe0a){const _0x29d890=this['editor']['editing']['view']['document'];if('string'==typeof _0x3995e4)return new _0x299fd1(_0x29d890,_0x3995e4);{let _0x1edbf3,_0x3574f8;_0x3574f8='u'==_0x3995e4['type']||'r'==_0x3995e4['type']?[]:_0x3995e4['children']['map'](_0x1f78a7=>this['_getViewFromDiffObj'](_0x1f78a7,_0x4ffe0a));const _0x22a530=this['_typeCharToViewClass']['get'](_0x3995e4['type'])||_0x5b2765,_0x4d8449=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1edbf3=new _0x22a530(_0x29d890,_0x3995e4['name'],_0x3995e4['attributes'],_0x3574f8),'u'==_0x3995e4['type']&&_0x3995e4['children'][0x0]){const _0x33919b=_0x3995e4['children'][0x0];if(_0x1edbf3['render']=function(_0x51afb1){const _0x5f00ed=_0x51afb1['createElement']('div');return _0x5f00ed['innerHTML']=_0x33919b,_0x5f00ed['childNodes'][0x0];},_0x4ffe0a){const _0x1f9190=new _0x496fe7(_0x29d890);_0x1f9190['_appendChild'](_0x1edbf3);const _0x2a429f=Array['from'](_0x4d8449['viewChildrenToDom'](_0x1f9190,{'bind':!0x1})),_0x217564=_0x4d8449['domDocument']['createElement']('div');_0x217564['append'](..._0x2a429f),_0x1edbf3=Array['from'](_0x4d8449['domChildrenToView'](_0x217564))[0x0];}}else{if('r'==_0x3995e4['type']&&_0x3995e4['children'][0x0]){const _0xd07e99=_0x3995e4['children'][0x0];if(_0x1edbf3['render']=function(_0x3a32cc){_0x3a32cc['innerHTML']=_0xd07e99;},_0x4ffe0a){const _0x3df1c3=new _0x496fe7(_0x29d890);_0x3df1c3['_appendChild'](_0x1edbf3);const _0x2cdc76=Array['from'](_0x4d8449['viewChildrenToDom'](_0x3df1c3,{'bind':!0x1})),_0x5ca5e8=_0x4d8449['domDocument']['createElement']('div');_0x5ca5e8['append'](..._0x2cdc76);const _0x3f22aa=Array['from'](_0x4d8449['domChildrenToView'](_0x5ca5e8));_0x3f22aa['length']>0x1?_0x1edbf3['_appendChild'](_0x3f22aa):_0x1edbf3=_0x3f22aa[0x0];}}}if(_0x3995e4['customProperties']){for(const [_0xb1a9c5,_0x330faa]of _0x3995e4['customProperties'])_0x1edbf3['_setCustomProperty'](_0xb1a9c5,_0x330faa);}const _0x320bcc=void 0x0===_0x3995e4['fillerOffset']?null:_0x3995e4['fillerOffset'];return null!==_0x320bcc&&(_0x1edbf3['getFillerOffset']=()=>_0x320bcc),_0x1edbf3;}}['_makeModelFromViewString'](_0x118832){const _0x40402a=JSON['parse'](_0x118832),_0x2aec8e=this['editor']['editing']['view']['document'],_0x15d7a8=new _0x496fe7(_0x2aec8e,_0x40402a['map'](_0x1cedbb=>this['_getViewFromDiffObj'](_0x1cedbb,!0x0)));return this['editor']['data']['toModel'](_0x15d7a8);}['_removeRevisionMarkers'](_0x4e9ea9){return(_0x4e9ea9=_0x4e9ea9['filter'](_0x580d52=>!_0x580d52['name']||'revision-start'!==_0x580d52['name']&&'revision-end'!==_0x580d52['name']))['forEach'](_0x4a2a31=>{'string'!=typeof _0x4a2a31&&(_0x4a2a31['children']=this['_removeRevisionMarkers'](_0x4a2a31['children']),_0x4a2a31['attributes']=_0x4a2a31['attributes']['filter'](_0x2c9ab3=>!_0x2c9ab3[0x0]['startsWith']('data-revision-')));}),_0x4e9ea9;}}function R(_0x287d55,_0x56b968,_0x5a1a0a){const t=_0x287d55['t'];switch(_0x56b968){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'},_0x5a1a0a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a1a0a);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'';}}class h extends _0x594d24{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x488749,S,$,_0x5b04d4];}constructor(_0x22950e){super(_0x22950e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x52d177=_0x29d31e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x52d177},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['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x585d93=this['repository']['getRevision'](0x0),_0x1392ca=_0x585d93&&null===_0x585d93['creator']?_0x585d93:null;if(this['_continueCurrentRevision']=!!_0x1392ca&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x31765b=this['_source']['getCurrentRevisionId'](),_0x65fbb0=this['repository']['getRevision'](_0x31765b);if(_0x65fbb0)this['_startingVersion']=_0x65fbb0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5c869c=this['_source']['history']['_operations']['find'](_0x234dc8=>!_0x234dc8['_isInit']),_0x4087a5=_0x5c869c?_0x5c869c['baseVersion']:this['_source']['history']['version'];_0x585d93?(_0x585d93['toVersion']<_0x4087a5&&_0x585d93['_update']({'toVersion':_0x4087a5}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1392ca['id'],this['_startingVersion']=_0x1392ca['fromVersion']):(this['_startingVersion']=_0x585d93['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4087a5,this['_continueCurrentRevision']=!0x1);}}else _0x1392ca&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1392ca['toVersion'],this['editor']['model']['document']['history']['version']),_0x1392ca['fromVersion']===_0x1392ca['toVersion']?(0x0!==_0x1392ca['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1392ca['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1392ca['id'],this['_startingVersion']=_0x1392ca['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',_0x3c9e24=>!_0x3c9e24),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1a35db=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19822b;for(const _0x545d2b in _0x1a35db){const _0x585b30=_0x545d2b,_0x4022c9=_0x1a35db[_0x585b30];if('revisionHistoryLicenseKeyValid'==_0x4022c9||'revisionHistoryLicenseKeyInvalid'==_0x4022c9||'revisionHistoryLicenseKeyExpired'==_0x4022c9||'revisionHistoryLicenseKeyDomainLimit'==_0x4022c9||'revisionHistoryLicenseKeyNotAllowed'==_0x4022c9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4022c9||'revisionHistoryLicenseKeyTrialLimit'==_0x4022c9||'revisionHistoryLicenseKeyUsageLimit'==_0x4022c9){delete _0x1a35db[_0x585b30],_0x19822b=_0x4022c9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x19822b&&_0x1a35db['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x19822b&&_0x1a35db['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x19822b&&_0x1a35db['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1878c1=this['repository']['getRevision'](0x0),_0x100df6=await this['getRevisionDocumentData'](_0x1878c1),_0x5cf720=await this['getRevisionRootsAttributes'](_0x1878c1);this['_replaceEditorDataWithRevisionData'](_0x100df6,_0x5cf720);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3d6508){this['_source']=_0x3d6508;}async['update'](){const _0x39d554=await this['_source']['getLatestVersion']();if(_0x39d554>this['currentRevision']['toVersion']){await this['_loadState']();const _0xa690d8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x39d554});_0xa690d8['authors']=_0xa690d8['authorsIds']['map'](_0x2f205b=>this['editor']['plugins']['get']('Users')['getUser'](_0x2f205b)),this['currentRevision']['_update'](_0xa690d8);}}async['saveRevision'](_0x1ef7a6={},_0x487e90=null){const _0x169b3b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x487e90>this['currentRevision']['toVersion']&&(_0x487e90=null),null===_0x487e90&&(_0x487e90=await this['_source']['getLatestVersion']());const _0x2c3edd=this['_getFromVersion'](_0x487e90),_0x29f002=this['buildRevisionData']({'from':_0x2c3edd,'to':_0x487e90});if(this['currentRevision']['toVersion']<_0x487e90){const _0x305329=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x487e90,'to':_0x487e90});_0x305329['authors']=[],_0x305329['authorsIds']=[],_0x305329['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x305329,!0x0),delete _0x305329['authors'],_0x169b3b['push'](_0x305329);}_0x1ef7a6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ef7a6['name']=_0x1ef7a6['name']||null,_0x1ef7a6['id']=_0x1ef7a6['id']||_0x29d31e(),_0x1ef7a6={..._0x1ef7a6,..._0x29f002};const _0x35034f=this['addRevisionData'](_0x1ef7a6);_0x169b3b['push'](_0x1ef7a6);const _0x54c7ed=this['repository']['getIndex'](_0x35034f);if(0x0!==_0x54c7ed){const _0xf10d3e=this['repository']['getRevision'](_0x54c7ed-0x1);if(_0xf10d3e['fromVersion']!==_0x487e90){const _0x2d1f62=this['_revisionDataBuilder']['getData'](_0x487e90,_0xf10d3e['toVersion']),_0x585c19={'id':_0xf10d3e['id'],'diffData':_0x2d1f62['diffData'],'authorsIds':_0x2d1f62['authorsIds'],'authors':_0x2d1f62['authorsIds']['map'](_0x1a11be=>this['editor']['plugins']['get']('Users')['getUser'](_0x1a11be)),'fromVersion':_0x487e90};_0xf10d3e===this['currentRevision']&&(_0x585c19['createdAt']=new Date(_0x1ef7a6['createdAt']['getTime']()+0xa)),_0xf10d3e['_update'](_0x585c19,!0x0),delete _0x585c19['authors'],_0x169b3b['push'](_0x585c19);}}if(this['adapter']){for(const _0x39225f of _0x169b3b)this['_bufferUpdate'](_0x39225f['id'],_0x39225f,!0x0);this['sendBufferedUpdates']();}return _0x35034f;}['addRevisionData'](_0x395841){const _0x4b6923=this['repository']['createRevision'](_0x395841);return this['adapter']&&_0x4b6923['on']('_update',(_0x124f12,_0x5b6319,_0x364625)=>{_0x364625||(this['_bufferUpdate'](_0x5b6319['id'],_0x5b6319,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4b6923,this['_findInsertionIndex'](_0x4b6923)),_0x4b6923;}async['getRevisionDocumentData'](_0x2de518){return await this['_utils']['loadRevisionData'](_0x2de518,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2de518);}async['getRevisionRootsAttributes'](_0x3eaf70){return await this['_utils']['loadRevisionData'](_0x3eaf70,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3eaf70);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x17e191=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3cb976=0x0;_0x3cb976<_0x17e191['length'];_0x3cb976++){const _0x12b6fb=_0x17e191[_0x3cb976];let _0x45a663=!0x1;for(const _0x26cd78 of Object['keys'](_0x12b6fb))void 0x0===_0x12b6fb[_0x26cd78]?delete _0x12b6fb[_0x26cd78]:'id'!==_0x26cd78&&(_0x45a663=!0x0);_0x45a663||(_0x17e191[_0x3cb976]=null);}if(_0x17e191=_0x17e191['filter'](_0x3d6916=>null!==_0x3d6916),!_0x17e191['length'])return;for(let _0x3df441=0x0;_0x3df441<_0x17e191['length'];_0x3df441++){const _0x5182c5=_0x17e191[_0x3df441];void 0x0!==_0x5182c5['fromVersion']&&void 0x0===_0x5182c5['toVersion']&&(_0x5182c5['toVersion']=this['repository']['getRevision'](_0x5182c5['id'])['toVersion']),void 0x0!==_0x5182c5['toVersion']&&void 0x0===_0x5182c5['fromVersion']&&(_0x5182c5['fromVersion']=this['repository']['getRevision'](_0x5182c5['id'])['fromVersion']);}const _0x3d60db=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x17e191,_0x3d60db)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x27ac0e=>{if(_0x27ac0e){for(const _0x4e5587 of _0x27ac0e)this['setRevisionData']({'id':_0x4e5587['id'],'createdAt':_0x4e5587['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x25093c=null,from:_0xbe4f4e=null,to:_0x2cbac2=null}){_0xbe4f4e=null!==_0xbe4f4e?_0xbe4f4e:_0x25093c['fromVersion'],_0x2cbac2=null!==_0x2cbac2?_0x2cbac2:_0x25093c['toVersion'];const _0x5a0569=this['_revisionDataBuilder']['getData'](_0xbe4f4e,_0x2cbac2),_0x319d18={'diffData':_0x5a0569['diffData'],'authorsIds':_0x5a0569['authorsIds'],'fromVersion':_0xbe4f4e,'toVersion':_0x2cbac2};if(!_0x25093c||_0x2cbac2!==_0x25093c['toVersion']){const _0x2540fa=_0x2cbac2-0x1,_0x21c032=this['_source']['history']['getOperation'](_0x2540fa);_0x319d18['createdAt']=_0x21c032&&_0x21c032['createdAt']||new Date();}if(this['_loadedStateData']&&_0xbe4f4e===this['_loadedStateData']['fromVersion']){for(const _0x1afffb of this['_loadedStateData']['authors'])_0x319d18['authorsIds']['includes'](_0x1afffb['id'])||_0x319d18['authorsIds']['push'](_0x1afffb['id']);}return _0x319d18;}['_bufferUpdate'](_0x54e5ab,_0x5ac519,_0x32890e){if(this['_bufferedUpdates']['has'](_0x54e5ab)){const _0x292615=this['_bufferedUpdates']['get'](_0x54e5ab);_0x5ac519=_0x32890e?{..._0x292615,..._0x5ac519}:{..._0x5ac519,..._0x292615};}this['_bufferedUpdates']['set'](_0x54e5ab,_0x5ac519);}['setRevisionData'](_0x231c1b){const _0x25e2f1=this['repository']['getRevision'](_0x231c1b['id']);if(_0x231c1b['createdAt']&&(_0x231c1b['createdAt']=new Date(_0x231c1b['createdAt'])),_0x231c1b['authorsIds']){const _0x4a0374=this['editor']['plugins']['get']('Users');_0x231c1b['authors']=_0x231c1b['authorsIds']['map'](_0x408bda=>_0x4a0374['getUser'](_0x408bda));}_0x25e2f1['_update'](_0x231c1b,!0x0);}['_createInitialRevision'](_0x247385){const _0x1da928=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1da928)this['_initialRevisionId']=_0x1da928['id'];else{const _0x1f30b7=!this['editor']['model']['document']['roots']['find'](_0x19d053=>this['editor']['model']['hasContent'](_0x19d053)),_0x46a32e=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c7c11=R(this['editor']['locale'],_0x1f30b7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x247385,'to':_0x247385,'id':this['_initialRevisionId'],'name':_0x4c7c11,'creatorId':_0x46a32e});}}['_createCurrentRevision'](_0x3f7a47){const _0x460256=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x460256),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3f7a47,'to':_0x3f7a47,'id':_0x460256,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x201e38,_0x5690d1){let _0x2a38a0=this['editor']['config']['get']('initialData'),_0x5f2413=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2a38a0){_0x2a38a0={};for(const _0x216a27 of this['editor']['model']['document']['getRootNames']())_0x2a38a0[_0x216a27]='';}if('string'==typeof _0x2a38a0&&(_0x2a38a0={'main':_0x2a38a0}),void 0x0===_0x5f2413){_0x5f2413={};for(const _0x4d3314 of this['editor']['model']['document']['getRootNames']())_0x5f2413[_0x4d3314]={};}let _0x21ffa7=!0x1;const _0x3b3201=Object['keys'](_0x2a38a0),_0x5ef1b3=Object['keys'](_0x201e38);for(const _0x533ede of _0x3b3201){if(_0x2a38a0[_0x533ede]!==_0x201e38[_0x533ede]&&''!==_0x2a38a0[_0x533ede]['trim']()){_0x21ffa7=!0x0;break;}if(!_0x2e0e8d(_0x5f2413[_0x533ede],_0x5690d1[_0x533ede])&&Object['keys'](_0x5f2413[_0x533ede])['length']>0x0){_0x21ffa7=!0x0;break;}}_0x21ffa7||(_0x21ffa7=_0x5ef1b3['some'](_0x2c35ba=>!this['editor']['model']['document']['getRoot'](_0x2c35ba))),_0x21ffa7&&_0x175045('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2a38a0,'editorRootsAttributes':_0x5f2413,'revisionData':_0x201e38,'revisionRootsAttributes':_0x5690d1}),this['editor']['config']['set']('initialData',_0x201e38),this['editor']['config']['set']('rootsAttributes',_0x5690d1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5de552=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5de552['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x549a2d){const _0x1ff355=this['repository']['getRevisions']();_0x1ff355['reverse']();let _0x398f3b=0x0;for(;_0x398f3b<_0x1ff355['length'];){const _0xc9cb15=_0x1ff355[_0x398f3b];if(_0xc9cb15===this['currentRevision']){_0x398f3b++;continue;}if(_0xc9cb15['id']===this['_initialRevisionId'])break;const _0x48cdea=_0x549a2d['toVersion']-_0xc9cb15['toVersion']||_0x549a2d['fromVersion']-_0xc9cb15['fromVersion'];if(_0x48cdea>0x0)break;if(_0x48cdea<0x0)_0x398f3b++;else{if(!_0x549a2d['creator']&&_0xc9cb15['creator'])break;if(_0xc9cb15['creator']||!_0x549a2d['creator']){if(_0x549a2d['createdAt']>_0xc9cb15['createdAt'])break;_0x398f3b++;}else _0x398f3b++;}}return _0x398f3b;}['_getFromVersion'](_0x41398b){const _0x44399c=this['repository']['getRevisions']();_0x44399c['reverse'](),_0x44399c['shift']();const _0xccd1ed=_0x44399c['find'](_0x35c7ba=>_0x35c7ba['toVersion']<=_0x41398b)['toVersion'];return _0xccd1ed<this['_startingVersion']?this['_startingVersion']:_0xccd1ed;}['_makeRevision']({name:_0x40aaf0,from:_0x318337,to:_0x56d2ed,creatorId:_0x451e6a,id:_0x2a167b}){const _0x1cb63c=this['buildRevisionData']({'from':_0x318337,'to':_0x56d2ed});_0x1cb63c['name']=_0x40aaf0,_0x1cb63c['creatorId']=_0x451e6a,_0x1cb63c['id']=_0x2a167b;const _0x2deedf=this['addRevisionData'](_0x1cb63c);return this['adapter']&&this['_bufferUpdate'](_0x1cb63c['id'],_0x1cb63c,!0x0),_0x2deedf;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x14a7fc){this['editor']=_0x14a7fc,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'](_0x4a29a6){this['source']=_0x4a29a6;const _0xfdb12e=new Map(),_0x1c1f3d=new Map(),_0x83ab60=this['editor']['model']['document']['roots']['map'](_0x1090da=>_0x1090da['rootName']);for(const _0x527b78 of _0x83ab60){const _0x1ce999=this['editor']['model']['document']['getRoot'](_0x527b78),_0x413005=x(_0x1ce999);_0xfdb12e['set'](_0x527b78,_0x413005),_0x1c1f3d['set'](_0x527b78,Object['fromEntries'](_0x1ce999['getAttributes']()));}const _0x510cd3=Array['from'](this['editor']['model']['markers'])['map'](_0x11a652=>[_0x11a652['name'],_0x11a652['getRange']()]),_0x2ac2e5=this['source']['version'];this['_saveMetaData'](_0x2ac2e5,_0xfdb12e,_0x510cd3,_0x1c1f3d),this['_startingRevisionId']=this['_revisionId'];const _0x22d21c=new Map(),_0x2aa6e9=new Map();for(const _0x307946 of _0x83ab60){const _0x200036=N(_0x307946);_0x22d21c['set'](_0x307946,_0x200036),_0x2aa6e9['set'](_0x307946,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x22d21c,[],_0x2aa6e9);}['getData'](_0x13185b,_0x154075){if(this['_lastFrom']===_0x13185b&&this['_lastTo']<=_0x154075)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x154075,!0x0);else{if(!this['_savedMetaData']['has'](_0x13185b)){const _0x517e8c=this['_getPreviousFrom'](_0x13185b);this['_calculateMetaData'](_0x517e8c,_0x13185b,!0x1);}this['_calculateMetaData'](_0x13185b,_0x154075,!0x0);}return this['_lastFrom']=_0x13185b,this['_lastTo']=_0x154075,this['_getState']();}['loadState'](_0x8897ab){const _0x1315de=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x8897ab['fromVersion'],this['_lastTo']=_0x8897ab['toVersion'];for(const _0x2a4aae in _0x8897ab['diffData']){const _0x2d2c47=_0x8897ab['diffData'][_0x2a4aae]['attachChange'],_0x226ac0=_0x3153c8(_0x8897ab['diffData'][_0x2a4aae]['attributesBefore'])||{},_0x157aba=_0x1315de['_makeModelFromViewString'](_0x8897ab['diffData'][_0x2a4aae]['deletions']);_0x157aba['rootName']=_0x2a4aae,_0x157aba['_isAttached']=!_0x2d2c47||!_0x2d2c47['isAttached'],_0x157aba['isAttached']=()=>_0x157aba['_isAttached'],this['_baseRoots']['set'](_0x2a4aae,_0x157aba),this['_baseRootsAttributes']['set'](_0x2a4aae,_0x226ac0),_0x2d2c47&&this['_touchedRoots']['set'](_0x2a4aae,_0x2d2c47);const _0x52d83e=this['_makeIdsRoot'](_0x157aba);this['_baseIdsRoots']['set'](_0x2a4aae,_0x52d83e);for(const [_0x98d266,_0x5a5d9f]of _0x157aba['markers']){if(!_0x98d266['startsWith']('revision:'))continue;const _0x4faa31=_0x98d266['split'](':')[0x2];for(const _0x7d74dd of _0x5a5d9f['getWalker']({'singleCharacters':!0x0})){const _0x1b29fd=this['_getVidAttributeName'](_0x7d74dd),_0x2343ce='elementEnd'==_0x7d74dd['type']?_0x7d74dd['previousPosition']['path']['slice'](0x0,-0x1):_0x7d74dd['previousPosition']['path'],_0x554f58=_0x52d83e['getNodeByPath'](_0x2343ce)['getAttribute'](_0x1b29fd);this['_touched']['set'](_0x554f58,{'userId':_0x4faa31});}}}this['_startingRevisionId']=this['_revisionId'];const _0x26737b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3e787=>!this['_touched']['has'](_0x3e787));let _0x2d5107=0x0;const _0x27f1bc=new Map();for(const _0x2623bc in _0x8897ab['diffData']){const _0x15baf5=_0x8897ab['diffData'][_0x2623bc]['attachChange'],_0x52a996=_0x3153c8(_0x8897ab['diffData'][_0x2623bc]['attributesAfter'])||{},_0x41ca93=_0x1315de['_makeModelFromViewString'](_0x8897ab['diffData'][_0x2623bc]['insertions']);_0x41ca93['rootName']=_0x2623bc,_0x41ca93['_isAttached']=!_0x15baf5||_0x15baf5['isAttached'],_0x41ca93['isAttached']=()=>_0x41ca93['_isAttached'],this['_diffRoots']['set'](_0x2623bc,_0x41ca93),this['_diffRootsAttributes']['set'](_0x2623bc,_0x52a996);const _0x310c32=this['_makeIdsRoot'](_0x41ca93,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2623bc,_0x310c32),_0x27f1bc['set'](_0x2623bc,_0x41ca93['isAttached']()?_0x52a996:{});for(const [_0x1d4c78,_0x31faa8]of _0x41ca93['markers']){if(!_0x1d4c78['startsWith']('revision:'))continue;const _0x46588c=_0x1d4c78['split'](':')[0x2];for(const _0x586e56 of _0x31faa8['getWalker']({'singleCharacters':!0x0})){const _0x474fe3=this['_getVidAttributeName'](_0x586e56),_0x3e748d=this['_revisionId']++,_0x424981='elementEnd'==_0x586e56['type']?_0x586e56['previousPosition']['path']['slice'](0x0,-0x1):_0x586e56['previousPosition']['path'];_0x310c32['getNodeByPath'](_0x424981)['_setAttribute'](_0x474fe3,_0x3e748d),this['_touched']['set'](_0x3e748d,{'userId':_0x46588c});}}for(const _0x4043ce of this['editor']['model']['createRangeIn'](_0x41ca93)['getWalker']({'singleCharacters':!0x0})){const _0x1ee66a=this['_getVidAttributeName'](_0x4043ce),_0x5a1775='elementEnd'==_0x4043ce['type']?_0x4043ce['previousPosition']['path']['slice'](0x0,-0x1):_0x4043ce['previousPosition']['path'],_0x207fba=_0x310c32['getNodeByPath'](_0x5a1775);_0x207fba['getAttribute'](_0x1ee66a)>0x0||_0x207fba['_setAttribute'](_0x1ee66a,_0x26737b[_0x2d5107++]);}for(const [_0x97864a,_0x34599f]of _0x41ca93['markers'])_0x97864a['startsWith']('revision:')||this['_markers']['set'](_0x97864a,_0x34599f);}const _0x3214da=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3214da),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3214da,0x1));const _0x3f96eb=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3f96eb),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f96eb,0x1));const _0x39b46a=Array['from'](this['_diffRoots'])['map'](([_0x420c0b,_0x5e32ea])=>[_0x420c0b,x(_0x5e32ea)]);this['_saveMetaData'](this['_lastTo'],_0x39b46a,this['_markers'],_0x27f1bc);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x35d0eb,_0x3c5b81,_0x330444,_0x24cba2){const _0x464fe5=new Map(_0x3c5b81),_0xa5c9f4=new Map(_0x3153c8(_0x24cba2)),_0x37aab1=new Map();for(const [_0x5aacaf,_0x166788]of _0x330444)_0x37aab1['set'](_0x5aacaf,{'start':_0x166788['start']['clone'](),'end':_0x166788['end']['clone'](),'rootName':_0x166788['root']['rootName']});this['_savedMetaData']['set'](_0x35d0eb,{'roots':_0x464fe5,'markers':_0x37aab1,'rootsAttributes':_0xa5c9f4});}['_removeMetaData'](_0x43bb51){this['_savedMetaData']['delete'](_0x43bb51);}['_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'](_0x586762,_0x2143d4=null){let _0x193c82=null;_0x586762['is']('documentFragment')||(_0x193c82=new _0x14dfc7(_0x586762['name'],{'vid_start':null===_0x2143d4?this['_revisionId']++:_0x2143d4++}));const _0x582c52=[];for(const _0x334f37 of _0x586762['getChildren']())if(_0x334f37['is']('element')){_0x582c52['push'](this['_makeIdsRoot'](_0x334f37,_0x2143d4));const _0x57103e=_0x582c52[_0x582c52['length']-0x1];null!==_0x2143d4&&(_0x2143d4=_0x57103e['is']('element','$text')?_0x57103e['getAttribute']('vid')+0x1:_0x57103e['getAttribute']('vid_end')+0x1);}else{for(let _0x5c4c6d=0x0;_0x5c4c6d<_0x334f37['offsetSize'];_0x5c4c6d++)_0x582c52['push'](new _0x14dfc7('$text',{'vid':null===_0x2143d4?this['_revisionId']++:_0x2143d4++}));}if(_0x586762['is']('documentFragment')){const _0x5968de=N(_0x586762['rootName']);return _0x5968de['_insertChild'](0x0,_0x582c52),_0x5968de;}return _0x193c82['_setAttribute']('vid_end',null===_0x2143d4?this['_revisionId']++:_0x2143d4++),_0x193c82['_insertChild'](0x0,_0x582c52),_0x193c82;}['_calculateMetaData'](_0x50a216,_0x411d36,_0x2d4d56){this['_reset']();const {roots:_0x2b90b8,markers:_0x2a3184,rootsAttributes:_0x42951a}=this['_savedMetaData']['get'](_0x50a216);this['_baseRoots']=new Map(_0x2b90b8),this['_baseRootsAttributes']=new Map(_0x3153c8(_0x42951a));for(const [_0x446fe8,_0x7b01af]of this['_baseRoots'])if('$graveyard'!==_0x446fe8&&(this['_diffRoots']['set'](_0x446fe8,x(_0x7b01af)),this['_diffRootsAttributes']=new Map(_0x3153c8(_0x42951a)),_0x2d4d56)){const _0x10c1e5=this['_revisionId'];this['_idsRoots']['set'](_0x446fe8,this['_makeIdsRoot'](_0x7b01af)),this['_baseIdsRoots']['set'](_0x446fe8,this['_makeIdsRoot'](_0x7b01af,_0x10c1e5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x2d4d56&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5b983a,_0x5e3ffe]of _0x2a3184){const _0x1600ad=this['_baseRoots']['get'](_0x5e3ffe['rootName']),_0x10fafa=this['_diffRoots']['get'](_0x5e3ffe['rootName']),_0x38dc93=new _0x1f3523(this['_fixPosition'](_0x5e3ffe['start'],_0x1600ad),this['_fixPosition'](_0x5e3ffe['end'],_0x1600ad)),_0x163eac=this['_fixRange'](_0x38dc93,_0x10fafa);_0x1600ad['markers']['set'](_0x5b983a,_0x38dc93),this['_markers']['set'](_0x5b983a,_0x163eac);}this['_applyOperations'](_0x50a216,_0x411d36,_0x2d4d56);}['_applyOperations'](_0x578605,_0x1fbf7d,_0x473f3e){for(const _0x3b5a7a of this['source']['getOperations'](_0x578605,_0x1fbf7d))this['_handleOperation'](_0x3b5a7a,_0x473f3e);for(const _0x555ca8 of this['_diffRoots']['values']())_0x555ca8['markers']['clear']();for(const [_0x50618d,_0x54152e]of this['_markers']){this['_diffRoots']['get'](_0x54152e['root']['rootName'])['markers']['set'](_0x50618d,_0x54152e['clone']());}const _0x150f1c=new Map(),_0xeb61dd=new Map();for(const [_0x29299b,_0x2f798c]of this['_diffRoots'])_0x150f1c['set'](_0x29299b,x(_0x2f798c)),_0xeb61dd['set'](_0x29299b,this['_diffRootsAttributes']['get'](_0x29299b));this['_saveMetaData'](_0x1fbf7d,_0x150f1c,this['_markers'],_0xeb61dd);}['_getPreviousFrom'](_0xb0193){const _0x4cc7c3=Array['from'](this['_savedMetaData']['keys']());_0x4cc7c3['sort']((_0x130f3e,_0x3aff43)=>_0x130f3e-_0x3aff43),_0x4cc7c3['reverse']();for(const _0x142dff of _0x4cc7c3)if(_0x142dff<_0xb0193)return _0x142dff;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3afd27,_0x21c859){const _0x222fde=Array['from'](_0x21c859['markers'])['map'](([_0x2c352b,_0x26c2b2])=>[_0x2c352b,this['_fixRange'](_0x26c2b2,_0x3afd27)]);_0x3afd27['markers']=new Map(_0x222fde);}['_transformMarkers'](_0x221dd9){for(const _0x3c4e4d of this['_markers']['values']()){const _0x2beea8=_0x3c4e4d['getTransformedByOperation'](_0x221dd9),_0x2fecfc=_0x1f3523['_createFromRanges'](_0x2beea8);_0x3c4e4d['start']=_0x2fecfc['start'],_0x3c4e4d['end']=_0x2fecfc['end'];}}['_handleOperation'](_0x446793,_0x367407){if('addRoot'!=_0x446793['type']&&'detachRoot'!=_0x446793['type']){if('insert'==_0x446793['type']){const _0x51a7df=_0x446793['position']['root']['rootName'];this['_diffRoots']['has'](_0x51a7df)||(this['_diffRoots']['set'](_0x51a7df,N(_0x51a7df,!0x0)),this['_diffRootsAttributes']['set'](_0x51a7df,{}),_0x367407&&this['_idsRoots']['set'](_0x51a7df,N(_0x51a7df,!0x0)));}else{if('addRootAttribute'==_0x446793['type']||'removeRootAttribute'==_0x446793['type']||'changeRootAttribute'==_0x446793['type'])return void this['_handleRootAttributeOperation'](_0x446793);'marker'==_0x446793['type']&&this['_handleMarkerOperation'](_0x446793);}if('marker'!==_0x446793['type']){const _0x359d31=this['_cloneOperation'](_0x446793,this['_diffRoots']);_0x359d31['_execute'](),this['_transformMarkers'](_0x359d31);}if(_0x367407)switch(_0x446793['type']){case'insert':this['_handleInsertOperation'](_0x446793);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x446793);break;case'merge':this['_handleMergeOperation'](_0x446793);break;case'split':this['_handleSplitOperation'](_0x446793);}}else this['_handleRootOperation'](_0x446793,_0x367407);}['_cloneOperation'](_0x264d25,_0x952975){const _0x1fffd5=_0x264d25['clone']();return _0x1fffd5['_authorId']=_0x264d25['_authorId'],this['_fixOperation'](_0x1fffd5,_0x952975),_0x1fffd5;}['_getBaseVids'](_0x3addb2){return _0x3addb2['map'](_0x523676=>{const _0x3dff0c=this['_getVidAttributeName'](_0x523676);return Number(_0x523676['item']['getAttribute'](_0x3dff0c));});}['_generateTape'](_0x132d8e,_0x201480){if(_0x132d8e['is']('element','$text'))_0x201480['push']({'item':_0x132d8e,'type':'text'});else{_0x132d8e['is']('element')&&_0x201480['push']({'item':_0x132d8e,'type':'elementStart'});for(const _0x4efc22 of _0x132d8e['getChildren']())this['_generateTape'](_0x4efc22,_0x201480);_0x132d8e['is']('element')&&_0x201480['push']({'item':_0x132d8e,'type':'elementEnd'});}return _0x201480;}['_getState'](){const _0x5bbd69=new Map(this['_touched']),_0x37c6d1=new Map(_0x5bbd69),_0x493fec=new Map(),_0x4c6729={'insertions':{},'deletions':{}},_0x18ecfa={'insertions':{},'deletions':{}},_0x31b5f3=new Map(),_0x36dcdb=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x36dcdb['delete']('$graveyard');for(const _0x58b984 of _0x36dcdb){const _0x9cf76=this['_diffRoots']['get'](_0x58b984)||N(_0x58b984,!0x1),_0x47d1d8=this['_baseRoots']['get'](_0x58b984)||N(_0x58b984,!0x1);_0x9cf76['isAttached']()||_0x47d1d8['isAttached']()?(_0x4c6729['insertions'][_0x58b984]=x(_0x9cf76),_0x4c6729['deletions'][_0x58b984]=x(_0x47d1d8),this['_copyMarkers'](_0x4c6729['deletions'][_0x58b984],_0x47d1d8),this['_copyMarkers'](_0x4c6729['insertions'][_0x58b984],_0x9cf76),_0x18ecfa['insertions'][_0x58b984]=this['_generateTape'](this['_idsRoots']['get'](_0x58b984),[]),_0x18ecfa['deletions'][_0x58b984]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x58b984)||N(_0x58b984,!0x1),[])):_0x36dcdb['delete'](_0x58b984);}for(const _0x209d84 of _0x36dcdb){const _0x171785=_0x18ecfa['insertions'][_0x209d84];for(const _0x51c78c of _0x171785){const _0xbe70fc=this['_getVidAttributeName'](_0x51c78c),_0x3b72be=_0x51c78c['item']['getAttribute'](_0xbe70fc);_0x37c6d1['delete'](_0x3b72be),_0x3b72be>=this['_startingRevisionId']&&_0x493fec['set'](_0x3b72be,_0x5bbd69['get'](_0x3b72be));}}for(const _0x14225c of _0x36dcdb){const _0x2b66a4=_0x18ecfa['insertions'][_0x14225c],_0x4700dd=this['_getBaseVids'](_0x18ecfa['deletions'][_0x14225c]);let _0x412ee8=0x0;for(const _0x551d55 of _0x2b66a4){const _0x1c086f=this['_getVidAttributeName'](_0x551d55),_0xf31195=_0x551d55['item']['getAttribute'](_0x1c086f);if(!_0x493fec['has'](_0xf31195)&&!_0x31b5f3['has'](_0xf31195)){if(_0x37c6d1['has'](_0xf31195))_0x412ee8++;else{if(_0xf31195!=_0x4700dd[_0x412ee8]){const _0x1034b6=_0x5bbd69['get'](_0xf31195)||_0x5bbd69['get'](_0x4700dd[_0x412ee8]);for(;_0xf31195!=_0x4700dd[_0x412ee8];)_0x37c6d1['has'](_0x4700dd[_0x412ee8])||(_0x31b5f3['set'](_0x4700dd[_0x412ee8],_0x1034b6),_0x5bbd69['set'](_0x4700dd[_0x412ee8],_0x1034b6)),_0x412ee8++;}_0x412ee8++;}}}}for(const _0x2b32bb of _0x36dcdb){const _0x37b153=_0x18ecfa['insertions'][_0x2b32bb];for(const _0x501870 of _0x37b153){const _0x17c529=this['_getVidAttributeName'](_0x501870),_0x2a81fe=_0x501870['item']['getAttribute'](_0x17c529);if(_0x31b5f3['has'](_0x2a81fe)){const _0x733bd6=_0x31b5f3['get'](_0x2a81fe);_0x37c6d1['has'](_0x2a81fe)||_0x37c6d1['set'](_0x2a81fe,{..._0x733bd6}),_0x493fec['set'](_0x2a81fe,{..._0x733bd6});}}}for(const _0x3cf0c8 of _0x37c6d1['keys']())_0x3cf0c8>=this['_startingRevisionId']&&_0x37c6d1['delete'](_0x3cf0c8);const _0x42891c=new Map();for(const _0x3881db of _0x36dcdb){let _0x47169e=_0x18ecfa['insertions'][_0x3881db];for(const _0x317d60 of _0x47169e)if(_0x317d60['item']['is']('element','tableCell')){const _0x471668=this['_getVidAttributeName'](_0x317d60),_0x2fd188=_0x317d60['item']['getAttribute'](_0x471668);if(_0x493fec['has'](_0x2fd188)){const _0x3b8240=_0x317d60['item']['parent']['parent']['getAttribute']('vid_start'),_0x55ed86=_0x42891c['get'](_0x3b8240)||new Set();_0x55ed86['add'](_0x493fec['get'](_0x2fd188)['userId']),_0x42891c['set'](_0x3b8240,_0x55ed86);}}_0x47169e=_0x18ecfa['deletions'][_0x3881db];for(const _0x38fbe1 of _0x47169e)if(_0x38fbe1['item']['is']('element','tableCell')){const _0x16e07f=this['_getVidAttributeName'](_0x38fbe1),_0x32df08=_0x38fbe1['item']['getAttribute'](_0x16e07f);if(_0x37c6d1['has'](_0x32df08)){const _0x2332bb=_0x38fbe1['item']['parent']['parent']['getAttribute']('vid_start'),_0x2d042b=_0x42891c['get'](_0x2332bb)||new Set();_0x2d042b['add'](_0x37c6d1['get'](_0x32df08)['userId']),_0x42891c['set'](_0x2332bb,_0x2d042b);}}for(const _0x20ac27 of _0x42891c['keys']())(_0x493fec['has'](_0x20ac27)||_0x37c6d1['has'](_0x20ac27))&&_0x42891c['delete'](_0x20ac27);}for(const _0x33d0ef of _0x36dcdb){const _0x3e94f0=_0x18ecfa['insertions'][_0x33d0ef];let _0xd66b59=null,_0xcf7d40=null;for(const _0x16e7c3 of _0x3e94f0){const _0x2a5072=this['_getVidAttributeName'](_0x16e7c3),_0x495315=_0x16e7c3['item']['getAttribute'](_0x2a5072),_0x11cf49=_0x42891c['get'](_0x495315);_0x11cf49&&'elementStart'==_0x16e7c3['type']&&(_0xd66b59=Array['from'](_0x11cf49)[0x0],_0xcf7d40=_0x16e7c3['item']['getAttribute']('vid_end')),_0xd66b59&&(_0x37c6d1['set'](_0x495315,{'userId':_0xd66b59}),_0x493fec['set'](_0x495315,{'userId':_0xd66b59})),_0x495315==_0xcf7d40&&(_0xd66b59=null,_0xcf7d40=null);}}const _0x559b7d={},_0x1412b8=new Set();for(const _0x4b3872 of _0x36dcdb){const _0x37ac0f=_0x4c6729['deletions'][_0x4b3872],_0x486525=_0x4c6729['insertions'][_0x4b3872];for(const {userId:_0x2a8bbb}of this['_touchedMarkers']['values']())null!==_0x2a8bbb&&_0x1412b8['add'](_0x2a8bbb);for(const {userId:_0x4e942e}of this['_touchedRoots']['values']())null!==_0x4e942e&&_0x1412b8['add'](_0x4e942e);this['_markChanges'](_0x486525,_0x18ecfa['insertions'][_0x4b3872],_0x493fec,'insertion',_0x1412b8),this['_markChanges'](_0x37ac0f,_0x18ecfa['deletions'][_0x4b3872],_0x37c6d1,'deletion',_0x1412b8),_0x559b7d[_0x4b3872]={'insertions':this['_prepareViewToSave'](_0x486525),'deletions':this['_prepareViewToSave'](_0x37ac0f),'attachChange':this['_touchedRoots']['get'](_0x4b3872)||null,'attributesBefore':_0x3153c8(this['_baseRootsAttributes']['get'](_0x4b3872))||{},'attributesAfter':_0x3153c8(this['_diffRootsAttributes']['get'](_0x4b3872))};}return{'diffData':_0x559b7d,'authorsIds':Array['from'](_0x1412b8)};}['_processRootBeforeSave'](_0x39d924){for(const [,_0x59c83e]of _0x39d924['markers']){const _0x27ae40=_0x59c83e['start']['getAncestors']()['filter'](_0x508c16=>'tableCell'==_0x508c16['name']);for(const _0x5165cc of _0x27ae40)0x1==_0x5165cc['childCount']&&_0x5165cc['getChild'](0x0)['is']('element','paragraph')&&_0x5165cc['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x316c70){this['_processRootBeforeSave'](_0x316c70);const _0x581599=this['editor']['data']['toView'](_0x316c70,{}),_0x560aac=Array['from'](_0x581599['getChildren']())['map'](_0x1b27b6=>this['_getViewJson'](_0x1b27b6));return JSON['stringify'](_0x560aac);}['_getViewJson'](_0x43f7b7){if(_0x43f7b7['is']('$text'))return _0x43f7b7['data'];{const _0x1efa86=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x393d4b=_0x43f7b7,_0x28e2de=this['editor']['data']['htmlProcessor']['domConverter'],_0x6f2a37={'type':_0x1efa86['_getTypeCharForViewElement'](_0x393d4b),'name':_0x393d4b['name'],'attributes':Array['from'](_0x393d4b['getAttributes']()),'children':Array['from'](_0x393d4b['getChildren']())['map'](_0x68527f=>this['_getViewJson'](_0x68527f))};if(_0x43f7b7['is']('uiElement')&&'$comment'!=_0x43f7b7['name']){const _0xd26e88=_0x43f7b7['render'](_0x28e2de['domDocument'],_0x28e2de);_0x6f2a37['children']['push'](_0xd26e88['outerHTML']);}else{if(_0x43f7b7['is']('rawElement')){const _0xb6eeef=_0x28e2de['domDocument']['createElement'](_0x393d4b['name']);_0x43f7b7['render'](_0xb6eeef,_0x28e2de),_0x6f2a37['children']['push'](_0xb6eeef['innerHTML']);}}const _0x1d352f=Array['from'](_0x393d4b['getCustomProperties']());_0x1d352f['length']>0x0&&(_0x6f2a37['customProperties']=_0x1d352f);const _0xae7ceb=_0x393d4b['getFillerOffset']();return null!==_0xae7ceb&&(_0x6f2a37['fillerOffset']=_0xae7ceb),_0x6f2a37;}}['_markChanges'](_0x5ecc2f,_0xf6f58a,_0x5c50a1,_0x1bfbb5,_0x171599){let _0x236018=null,_0x28fe21=null,_0x12930d=0x0;const _0x3d6d07=this['editor']['model'];for(let _0x2f68d2=0x0;_0x2f68d2<_0xf6f58a['length'];_0x2f68d2++){const _0x4c90e2=this['_getVidAttributeName'](_0xf6f58a[_0x2f68d2]),_0x5bd40e=_0xf6f58a[_0x2f68d2]['item']['getAttribute'](_0x4c90e2),_0xbd369b=_0x5c50a1['get'](_0x5bd40e),_0x117dfd=_0x2f68d2==_0xf6f58a['length']-0x1;(!_0x236018&&_0xbd369b&&(_0x236018=_0xbd369b,_0x28fe21=_0xf6f58a[_0x2f68d2]),_0x236018&&(!_0xbd369b||_0xbd369b['userId']!=_0x236018['userId']))&&(_0x1e33c0(_0xbd369b,P(_0x28fe21,_0x5ecc2f,_0x3d6d07),P(_0xf6f58a[_0x2f68d2],_0x5ecc2f,_0x3d6d07)),_0x236018=_0xbd369b||null,_0x28fe21=_0xbd369b?_0xf6f58a[_0x2f68d2]:null),_0x236018&&_0x117dfd&&_0x1e33c0(_0xbd369b,P(_0x28fe21,_0x5ecc2f,_0x3d6d07),V(_0xf6f58a[_0x2f68d2],_0x5ecc2f,_0x3d6d07));}function _0x1e33c0(_0x199864,_0x37c6e2,_0x19fefd){const _0xdb5900=_0x236018['userId'],_0x15927b='revision:'+_0x1bfbb5+':'+_0xdb5900+':'+_0x12930d++,_0x5edd2d=_0x3d6d07['createRange'](_0x37c6e2,_0x19fefd);_0x5ecc2f['markers']['set'](_0x15927b,_0x5edd2d),null!==_0xdb5900&&_0x171599['add'](_0xdb5900);}}['_getVidAttributeName'](_0x2ccc87){switch(_0x2ccc87['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13aead,_0x562322){_0x13aead['baseVersion']=null;for(const _0xfc945f in _0x13aead){const _0x54166e=_0x13aead[_0xfc945f];if(_0x54166e instanceof _0x1aa988){const _0x5953c2=_0x562322['get'](_0x54166e['root']['rootName']);_0x13aead[_0xfc945f]=this['_fixPosition'](_0x54166e,_0x5953c2);}if(_0x54166e instanceof _0x1f3523){const _0x2806f6=_0x562322['get'](_0x54166e['root']['rootName']);_0x13aead[_0xfc945f]=this['_fixRange'](_0x54166e,_0x2806f6);}'root'===_0xfc945f&&(_0x13aead['root']=_0x562322['get'](_0x13aead['root']['rootName']));}}['_fixRange'](_0x261147,_0x5af652){return this['editor']['model']['createRange'](this['_fixPosition'](_0x261147['start'],_0x5af652),this['_fixPosition'](_0x261147['end'],_0x5af652));}['_fixPosition'](_0x16b22c,_0x43c456){return this['editor']['model']['createPositionFromPath'](_0x43c456,_0x16b22c['path'],_0x16b22c['stickiness']);}['_handleInsertOperation'](_0x2fc36c){const _0x2adb10=this['_idsRoots']['get'](_0x2fc36c['position']['root']['rootName']),_0x3d6d8b=this['_fixPosition'](_0x2fc36c['position'],_0x2adb10),_0x1018f7=null===_0x2fc36c['_authorId']?null:_0x2fc36c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25b57f=_0x3d6d8b['parent'],_0x995d49=this['_revisionId'],_0x359970=[];for(const _0x6b1e95 of _0x2fc36c['nodes'])if(_0x6b1e95['is']('element'))_0x359970['push'](this['_makeIdsRoot'](_0x6b1e95));else{for(let _0x10cf1b=0x0;_0x10cf1b<_0x6b1e95['offsetSize'];_0x10cf1b++)_0x359970['push'](new _0x14dfc7('$text',{'vid':this['_revisionId']++}));}const _0x431499=this['_revisionId'];for(let _0x1e9a3d=_0x995d49;_0x1e9a3d<_0x431499;_0x1e9a3d++)this['_touched']['set'](_0x1e9a3d,{'userId':_0x1018f7});_0x25b57f['_insertChild'](_0x3d6d8b['offset'],_0x359970);}['_handleMoveOperation'](_0x26b3ae){(_0x26b3ae=this['_cloneOperation'](_0x26b3ae,this['_idsRoots']))['_execute']();const _0x376fa4=null===_0x26b3ae['_authorId']?null:_0x26b3ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46e910=_0x26b3ae['getMovedRangeStart'](),_0x2f8a9e=_0x46e910['parent'],_0x3b3ab8=_0x46e910['offset'];!function _0x1daf88(_0x576203,_0x17e628,_0x4141fa,_0x1baaaf){for(let _0x7845cf=_0x4141fa;_0x7845cf<_0x1baaaf;_0x7845cf++){const _0x209d1c=_0x17e628['getChild'](_0x7845cf);_0x209d1c['is']('element','$text')?_0x576203['set'](_0x209d1c['getAttribute']('vid'),{'userId':_0x376fa4}):(_0x576203['set'](_0x209d1c['getAttribute']('vid_start'),{'userId':_0x376fa4}),_0x1daf88(_0x576203,_0x209d1c,0x0,_0x209d1c['childCount']),_0x576203['set'](_0x209d1c['getAttribute']('vid_end'),{'userId':_0x376fa4}));}}(this['_touched'],_0x2f8a9e,_0x3b3ab8,_0x3b3ab8+_0x26b3ae['howMany']);}['_handleMergeOperation'](_0x2f06e3){const _0x2c6b20=null===(_0x2f06e3=this['_cloneOperation'](_0x2f06e3,this['_idsRoots']))['_authorId']?null:_0x2f06e3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54119d=_0x2f06e3['targetPosition']['parent'],_0x352d32=_0x2f06e3['sourcePosition']['parent'],_0x46738c=_0x54119d['getAttribute']('vid_end'),_0xf8c4f6=_0x352d32['getAttribute']('vid_start');_0x54119d['_setAttribute']('vid_end',_0x352d32['getAttribute']('vid_end')),_0x352d32['_setAttribute']('vid_end',_0x46738c),this['_touched']['set'](_0xf8c4f6,{'userId':_0x2c6b20}),this['_touched']['set'](_0x46738c,{'userId':_0x2c6b20}),_0x2f06e3['_execute']();}['_handleSplitOperation'](_0x5939e4){const _0x27fdc2=null===(_0x5939e4=this['_cloneOperation'](_0x5939e4,this['_idsRoots']))['_authorId']?null:_0x5939e4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x450038=_0x5939e4['graveyardPosition'],_0x103554=_0x5939e4['splitPosition']['parent'];_0x5939e4['_execute']();const _0x177def=_0x103554['getAttribute']('vid_end'),_0x4656d8=_0x5939e4['insertionPosition']['nodeAfter'];if(_0x450038){const _0x2ab7c5=_0x4656d8['getAttribute']('vid_end'),_0x106f2a=_0x103554['getAttribute']('vid_end');_0x103554['_setAttribute']('vid_end',_0x2ab7c5),_0x4656d8['_setAttribute']('vid_end',_0x106f2a),this['_touched']['set'](_0x103554['getAttribute']('vid_end'),{'userId':_0x27fdc2}),this['_touched']['set'](_0x4656d8['getAttribute']('vid_start'),{'userId':_0x27fdc2});}else{const _0x5d8df2=this['_revisionId']++,_0xde9c54=this['_revisionId']++;_0x103554['_setAttribute']('vid_end',_0x5d8df2),_0x4656d8['_setAttribute']('vid_start',_0xde9c54),_0x4656d8['_setAttribute']('vid_end',_0x177def),this['_touched']['set'](_0x5d8df2,{'userId':_0x27fdc2}),this['_touched']['set'](_0xde9c54,{'userId':_0x27fdc2});}}['_handleMarkerOperation'](_0x2b639f){if(!_0x2b639f['affectsData'])return;const _0x10e401=(_0x2b639f=this['_cloneOperation'](_0x2b639f,this['_diffRoots']))['oldRange']?_0x2b639f['oldRange']['root']:null,_0x29035a=_0x2b639f['newRange']?_0x2b639f['newRange']['root']:null;_0x10e401&&this['_markers']['delete'](_0x2b639f['name']),_0x29035a&&this['_markers']['set'](_0x2b639f['name'],_0x2b639f['newRange']['clone']());const _0x317db6=null===_0x2b639f['_authorId']?null:_0x2b639f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38177b=_0x2b639f['name'];if(!this['_touchedMarkers']['has'](_0x38177b))return void this['_touchedMarkers']['set'](_0x38177b,{'range':_0x2b639f['oldRange'],'userId':_0x317db6});const _0x3b055a=this['_touchedMarkers']['get'](_0x38177b),_0x3b4aa8=_0x3b055a['range'],_0x321166=_0x2b639f['newRange'];null==_0x3b4aa8&&null==_0x321166||_0x3b4aa8&&_0x321166&&_0x3b4aa8['isEqual'](_0x321166)?this['_touchedMarkers']['delete'](_0x2b639f['name']):_0x3b055a['userId']=_0x317db6;}['_handleRootOperation'](_0x5ed66d,_0x4af396){this['_diffRoots']['has'](_0x5ed66d['rootName'])?this['_diffRoots']['get'](_0x5ed66d['rootName'])['_isAttached']=_0x5ed66d['isAdd']:(this['_diffRoots']['set'](_0x5ed66d['rootName'],N(_0x5ed66d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5ed66d['rootName'],{}),_0x4af396&&this['_idsRoots']['set'](_0x5ed66d['rootName'],N(_0x5ed66d['rootName'],!0x0)));const _0x4776b7=null===_0x5ed66d['_authorId']?null:_0x5ed66d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c87a6=this['_touchedRoots']['get'](_0x5ed66d['rootName']);_0x3c87a6&&_0x3c87a6['userId']===_0x4776b7?this['_touchedRoots']['delete'](_0x5ed66d['rootName']):this['_touchedRoots']['set'](_0x5ed66d['rootName'],{'userId':_0x4776b7,'isAttached':_0x5ed66d['isAdd']});}['_handleRootAttributeOperation'](_0x580002){const _0x24d01c=this['_diffRootsAttributes']['get'](_0x580002['root']['rootName']);null===_0x580002['newValue']?delete _0x24d01c[_0x580002['key']]:_0x24d01c[_0x580002['key']]=_0x580002['newValue'];}}function x(_0x5dfc44){const _0x1d206e=N(_0x5dfc44['rootName'],_0x5dfc44['isAttached']());for(const _0x383fe3 of _0x5dfc44['getChildren']()){const _0x3a7694=_0x383fe3['_clone'](!0x0);_0x1d206e['_appendChild'](_0x3a7694);}return _0x1d206e;}function N(_0x31e4ae,_0x5b9e55=!0x0){const _0x20474b=new _0x367b4a();return _0x20474b['rootName']=_0x31e4ae,_0x20474b['_isAttached']=_0x5b9e55,_0x20474b['isAttached']=()=>_0x20474b['_isAttached'],_0x20474b;}function P(_0x4a0350,_0x4f7e09,_0x419340){const _0xc2ebd7='elementEnd'==_0x4a0350['type']?_0x419340['createPositionAt'](_0x4a0350['item'],'end'):_0x419340['createPositionBefore'](_0x4a0350['item']);return _0x419340['createPositionFromPath'](_0x4f7e09,_0xc2ebd7['path'],_0xc2ebd7['stickiness']);}function V(_0x35152a,_0x4d6b42,_0x3463ef){const _0x250c5b='elementStart'==_0x35152a['type']?_0x3463ef['createPositionAt'](_0x35152a['item'],0x0):_0x3463ef['createPositionAfter'](_0x35152a['item']);return _0x3463ef['createPositionFromPath'](_0x4d6b42,_0x250c5b['path'],_0x250c5b['stickiness']);}class me extends/* #__PURE__ -- @preserve */
25
+ _0x4f7ea1(_0x47987e){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x49c583,_0x3b1298){super(_0x49c583),this['focusTracker']=new _0x484765(),this['keystrokes']=new _0x3a99cb(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3b1298),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x2460a9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x500be0=_0x2aa6b1=>_0x2aa6b1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x500be0),this['keystrokes']['set']('arrowleft',_0x500be0),this['keystrokes']['set']('arrowup',_0x500be0),this['keystrokes']['set']('arrowdown',_0x500be0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1ed263){this['revisionNameInputView']['fieldView']['element']['value']=_0x1ed263['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2f4092){const _0x9b6c5e=new et(this['locale'],ti),_0x9e7ae3=_0x9b6c5e['fieldView'];_0x9e7ae3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4142ee=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2f4092&&(_0x4142ee+='\x20('+R(this['locale'],'optional')+')'),(_0x9b6c5e['label']=_0x4142ee,_0x9e7ae3['on']('input',()=>{this['revisionNameInputValue']=_0x9e7ae3['element']['value']['trim']();}),_0x9b6c5e);}}class v extends _0x594d24{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0xe8a63b=this['editor'],_0x3b8c82=_0xe8a63b['plugins']['get']('RevisionTracker');_0xe8a63b['ui']['componentFactory']['add']('revisionHistory',_0x5e4ed0=>{const _0x1330f4=_0x514a35(_0x5e4ed0),_0x56a050=_0x1330f4['panelView']['children'],_0x22508a=new _0x17c088(_0x5e4ed0),_0x40b41a=new _0x392bd3(_0x5e4ed0),_0x3cca51=new _0x18e75a(_0x5e4ed0),_0x3eebec=new _0x392bd3(_0x5e4ed0),_0x25181b=new _0x18e75a(_0x5e4ed0);return _0x1330f4['bind']('isEnabled')['to'](_0x3b8c82,'isReady',_0x3b8c82,'isEnabled',_0xe8a63b,'isReadOnly',(_0x5d0591,_0x414ebc,_0xb4433f)=>_0x5d0591&&_0x414ebc&&!_0xb4433f),_0x1330f4['buttonView']['set']({'icon':_0x1c60bc,'label':R(_0x5e4ed0,'Revision\x20history'),'tooltip':!0x0}),_0x3cca51['set']({'label':R(_0x5e4ed0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3cca51['bind']('isEnabled')['to'](_0x3b8c82,'isReady',_0x3b8c82,'isEnabled',_0xe8a63b,'isReadOnly',(_0x624c19,_0x1c6862,_0x255ea6)=>_0x624c19&&_0x1c6862&&!_0x255ea6),_0x3cca51['on']('execute',()=>this['_showDialog']()),_0x25181b['set']({'label':R(_0x5e4ed0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x25181b['bind']('isEnabled')['to'](_0x3b8c82,'isReady',_0xe8a63b,'isReadOnly',(_0x55b86e,_0xa7c92d)=>_0x55b86e&&!_0xa7c92d),_0x25181b['on']('execute',()=>{_0xe8a63b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1330f4['isOpen']=!0x1,_0xe8a63b['editing']['view']['focus']();}),_0x40b41a['children']['add'](_0x3cca51),_0x3eebec['children']['add'](_0x25181b),_0x22508a['role']='menu',_0x22508a['items']['addMany']([_0x40b41a,_0x3eebec]),_0x56a050['add'](_0x22508a),_0x1330f4;}),_0xe8a63b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5615cc=this['editor'],_0x84f8ee=_0x5615cc['locale'],_0x2942b0=new _0x15bdb6(_0x84f8ee),_0x432103=new _0x275466(_0x84f8ee);_0x2942b0['buttonView']['set']({'icon':_0x1c60bc,'label':R(_0x84f8ee,'Revision\x20history')});const _0x40e721=new _0x4c4991(_0x84f8ee,_0x2942b0),_0x3741d0=new _0x303dce(_0x84f8ee);_0x3741d0['set']({'label':R(_0x84f8ee,'Save\x20current\x20revision')}),_0x3741d0['delegate']('execute')['to'](_0x2942b0),_0x3741d0['on']('execute',()=>{this['_showDialog']();}),_0x40e721['children']['add'](_0x3741d0),_0x432103['items']['add'](_0x40e721);const _0x464073=new _0x4c4991(_0x84f8ee,_0x2942b0),_0x3435ab=new _0x303dce(_0x84f8ee);return _0x3435ab['set']({'label':R(_0x84f8ee,'Open\x20revision\x20history')}),_0x3435ab['delegate']('execute')['to'](_0x2942b0),_0x3435ab['on']('execute',()=>{_0x5615cc['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x464073['children']['add'](_0x3435ab),_0x432103['items']['add'](_0x464073),_0x2942b0['panelView']['children']['add'](_0x432103),_0x2942b0;}['_showDialog'](){const _0x495705=this['editor'],_0x366a96=_0x495705['locale'],_0x5b307d=_0x495705['plugins']['get']('Dialog'),_0x4f9f2d=_0x495705['plugins']['get']('RevisionTracker');function _0x5d01e4(_0x10587c){_0x495705['config']['get']('revisionHistory.requireRevisionName')&&''===_0x10587c['revisionName']?_0x10587c['revisionNameInputView']['errorText']=R(_0x366a96,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x495705['plugins']['get'](h)['saveRevision']({'name':_0x10587c['revisionName']}),_0x5b307d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5d01e4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5b307d['show']({'id':'revisionSave','title':R(_0x366a96,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x495705['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5b307d['hide']()},{'label':R(_0x495705['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x531528){_0x531528['bind']('isEnabled')['to'](_0x4f9f2d,'isReady',_0x4f9f2d,'isEnabled',_0x495705,'isReadOnly',(_0x124ecc,_0x8fb088,_0x54bdb2)=>_0x124ecc&&_0x8fb088&&!_0x54bdb2);},'onExecute':()=>_0x5d01e4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x33ff3b=this['editor'],_0x25297c=_0x33ff3b['locale'];this['_saveRevisionFormView']=new me(_0x25297c,_0x33ff3b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x47987e{['changeId'];['_model'];constructor(_0x3d4bcb,_0x38c202){super(_0x3d4bcb),this['_model']=_0x38c202,this['changeId']=_0x38c202['id'];const _0x440295=this['bindTemplate'],_0xe5b71=R(_0x3d4bcb,_0x38c202['data']['isSuggestion']?'Suggested\x20by':'add'==_0x38c202['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x38c202['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x440295['to']('type',_0xf6525f=>'ck-revision-change__'+_0xf6525f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xe5b71}]},{'text':'\x20'+_0x38c202['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
+ _0x2bafdc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1765d2){super(),this['id']=_0x1765d2['id']||_0x29d31e(),this['author']=_0x1765d2['author'],this['type']=_0x1765d2['type'],this['data']=_0x1765d2['data']||{},this['rootName']=_0x1765d2['rootName'],this['set']('createdAt',_0x1765d2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2ab3f4,_0x385ec6){this['newRevisionId']=_0x2ab3f4,this['oldRevisionId']=_0x385ec6,this['changes']=new _0x2d4b38();}['_setChanges'](_0x4db7ab){for(const _0xd1e26 of _0x4db7ab)this['changes']['add'](_0xd1e26);}}class l extends _0x594d24{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x488749,_0x1dace3,S,$];}constructor(_0x3c6901){super(_0x3c6901),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),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',(_0x383ffc,_0x4cb30d,_0x11fcd6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5365a9=>{for(const _0x4fd065 of this['editor']['editing']['view']['document']['roots'])_0x11fcd6?_0x5365a9['removeClass']('ck-editor__editable__overlay',_0x4fd065):_0x5365a9['addClass']('ck-editor__editable__overlay',_0x4fd065);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xb444f3=>null!==_0xb444f3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x504c,_0xfbb42e,_0x45681f)=>_0x504c&&_0x45681f?_0xfbb42e['changes']['getIndex'](_0x45681f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2fc1c4,_0x3fda0f)=>_0x2fc1c4?_0x3fda0f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1dace3);}['init'](){const _0x314944=this['editor'],_0x1204a1=new rt(_0x314944,{'direction':'backward'}),_0x51a788=new rt(_0x314944,{'direction':'forward'});(_0x314944['commands']['add']('showPreviousChange',_0x1204a1),_0x314944['commands']['add']('showNextChange',_0x51a788),_0x314944['commands']['add']('restoreRevision',new nt(_0x314944)),this['on']('change:numberOfChanges',()=>{_0x1204a1['refresh'](),_0x51a788['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x314944['enableReadOnlyMode']('revision-viewer'),_0x314944['plugins']['has']('WidgetToolbarRepository'))&&_0x314944['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1b8526){return await this['_utils']['loadRevisionData'](_0x1b8526,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1b8526);}async['getRevisionRootsAttributes'](_0x318e65){return await this['_utils']['loadRevisionData'](_0x318e65,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x318e65);}async['compare'](_0xbea01e,_0x30ba6c,_0x1f8d75=!0x1){if(!this['isEnabled'])return;const _0x2a8340=this['diff'],_0x53eb92=this['repository'],_0x117736='string'==typeof _0xbea01e?_0x53eb92['getRevision'](_0xbea01e):_0xbea01e,_0xbde112='string'==typeof _0x30ba6c?_0x53eb92['getRevision'](_0x30ba6c):_0x30ba6c,_0x338e7f=_0x117736['id'],_0x11f248=_0xbde112?_0xbde112['id']:null;if(!_0x1f8d75&&this['diff']&&this['diff']['newRevisionId']===_0x338e7f&&this['diff']['oldRevisionId']===_0x11f248)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x338e7f,_0x11f248);const _0x2ceed4=this['_getRevisionsRange'](_0x117736,_0xbde112,!0x0)['map'](_0x40b6af=>this['_utils']['loadRevisionData'](_0x40b6af,this['adapter']));return _0x2ceed4['push'](new Promise(_0x3f618e=>{setTimeout(_0x3f618e,0x14);})),Promise['all'](_0x2ceed4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x406629=this['_getDiff'](_0x338e7f,_0x11f248);for(const _0x29bada of _0x406629['changes'])this['_changeIdToChange']['set'](_0x29bada['id'],_0x29bada);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1112a2=>{for(const _0x4d4b52 of this['editor']['model']['document']['getRootNames']())_0x1112a2['detachRoot'](_0x4d4b52);for(const _0x2ba1a5 of Object['keys'](_0x406629['model'])){const _0x41d685=_0x1112a2['addRoot'](_0x2ba1a5);for(const _0x53bcb2 of Object['keys'](_0x406629['attributes'][_0x2ba1a5]))_0x1112a2['setAttribute'](_0x53bcb2,_0x406629['attributes'][_0x2ba1a5][_0x53bcb2],_0x41d685);_0x1112a2['insert'](_0x406629['model'][_0x2ba1a5],_0x41d685,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x406629['changes'])),this['isReady']=!0x0;})['catch'](_0x6ad739=>{console['error'](_0x6ad739),this['_cleanUp'](),_0x2a8340&&(this['diff']=_0x2a8340),this['isReady']=!0x0;});}['addRevisionData'](_0x4146ad,_0x5a4705){const _0x31addb=this['repository']['createRevision'](_0x4146ad);return _0x31addb['on']('_update',(_0x2c3ae2,_0x36c2e1,_0x5e5c7e)=>_0x5a4705(_0x36c2e1,_0x5e5c7e,_0x31addb)),this['repository']['addRevision'](_0x31addb),_0x31addb;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xdff54d=>{for(const _0xff506e of this['editor']['model']['document']['getRootNames']())_0xdff54d['detachRoot'](_0xff506e);});}['_sortAndFilterDiffChanges'](_0x43cf35){const _0x1de125=[],_0x27d791=new Map();for(const _0x31416b of this['editor']['model']['document']['getRootNames']()){const _0x188f23=this['editor']['editing']['view']['getDomRoot'](_0x31416b);if(!_0x188f23)continue;const _0x66d877=_0x188f23['getClientRects']()['item'](0x0);_0x66d877&&(_0x1de125['push'](_0x31416b),_0x27d791['set'](_0x31416b,_0x66d877));}return _0x1de125['sort']((_0x30cf16,_0x4d89f1)=>{const _0x5023ef=_0x27d791['get'](_0x30cf16),_0x5a7085=_0x27d791['get'](_0x4d89f1);return _0x5023ef['y']-_0x5a7085['y']||_0x5023ef['x']-_0x5a7085['x'];}),(_0x43cf35=_0x43cf35['filter'](_0x4dbcec=>_0x1de125['includes'](_0x4dbcec['rootName'])))['sort']((_0x490fec,_0x14356a)=>_0x1de125['indexOf'](_0x490fec['rootName'])-_0x1de125['indexOf'](_0x14356a['rootName'])),_0x43cf35;}['_makeTape'](_0x56b40f){const _0x5d3616=Array['from'](_0x56b40f['markers'])['filter'](([_0x1765ac,_0xbc9cac])=>_0x1765ac['startsWith']('revision:')&&!_0xbc9cac['isCollapsed']),_0x652e71=Array['from'](this['editor']['model']['createRangeIn'](_0x56b40f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5d3616['length'])for(const _0x2d37c6 of _0x652e71){const [_0x25e6cf,_0x264981]=_0x5d3616[0x0],[,_0x1c42b2,_0x28683f]=_0x25e6cf['split'](':');if(_0x264981['end']['isEqual'](_0x2d37c6['nextPosition'])&&_0x5d3616['shift'](),(_0x2d37c6['previousPosition']['isEqual'](_0x264981['start'])||_0x2d37c6['previousPosition']['isAfter'](_0x264981['start']))&&('insertion'==_0x1c42b2?_0x2d37c6['isAdded']={'userId':_0x28683f}:'deletion'==_0x1c42b2&&(_0x2d37c6['isRemoved']={'userId':_0x28683f})),0x0==_0x5d3616['length'])break;}return _0x652e71;}['_refreshStartEndIndex'](_0x42e462){const _0x379e14=new Map();for(let _0x53a010=0x0;_0x53a010<_0x42e462['length'];_0x53a010++)'text'===_0x42e462[_0x53a010]['type']?(_0x42e462[_0x53a010]['item']['startIndex']=_0x53a010,_0x42e462[_0x53a010]['item']['endIndex']=_0x53a010):('elementStart'===_0x42e462[_0x53a010]['type']?_0x42e462[_0x53a010]['item']['startIndex']=_0x53a010:'elementEnd'===_0x42e462[_0x53a010]['type']&&(_0x42e462[_0x53a010]['item']['endIndex']=_0x53a010),_0x379e14['set'](_0x42e462[_0x53a010]['id'],_0x53a010));for(const _0x45cd92 of _0x379e14['values']())'elementStart'===_0x42e462[_0x45cd92]['type']?_0x42e462[_0x45cd92]['item']['endIndex']=_0x379e14['get'](_0x42e462[_0x45cd92]['pairId']):'elementEnd'===_0x42e462[_0x45cd92]['type']&&(_0x42e462[_0x45cd92]['item']['startIndex']=_0x379e14['get'](_0x42e462[_0x45cd92]['pairId']));}['_processTape'](_0x44c6e3){for(let _0x560dad=0x0;_0x560dad<_0x44c6e3['length'];_0x560dad++){if('elementStart'===_0x44c6e3[_0x560dad]['type'])_0x44c6e3[_0x560dad]['item']['startIndex']=_0x560dad;else{if('elementEnd'===_0x44c6e3[_0x560dad]['type']){_0x44c6e3[_0x560dad]['item']['endIndex']=_0x560dad;const _0x3064bf=_0x44c6e3[_0x560dad]['item']['startIndex'];_0x44c6e3[_0x3064bf]['pairId']=_0x44c6e3[_0x560dad]['id'],_0x44c6e3[_0x560dad]['pairId']=_0x44c6e3[_0x3064bf]['id'];}else _0x44c6e3[_0x560dad]['item']['startIndex']=_0x560dad,_0x44c6e3[_0x560dad]['item']['endIndex']=_0x560dad,_0x44c6e3[_0x560dad]['pairId']=null;}_0x44c6e3[_0x560dad]['markersStart']||(_0x44c6e3[_0x560dad]['markersStart']=[],_0x44c6e3[_0x560dad]['markersEnd']=[]);}}['_markInsertions'](_0x3b8e80,_0x1240c7){const _0x369e16=_0x3b8e80['filter'](_0x3ee3d0=>!_0x3ee3d0['isAdded']);for(let _0x3871b3=0x0;_0x3871b3<_0x1240c7['length'];_0x3871b3++)_0x1240c7[_0x3871b3]['isAdded']&&(_0x369e16[_0x3871b3]['isAdded']=_0x1240c7[_0x3871b3]['isAdded']);}['_getDiff'](_0x2e6bcf,_0x1ef972=null){const _0x22ab09=this['repository']['getRevision'](_0x2e6bcf),_0x17f810=_0x1ef972?this['repository']['getRevision'](_0x1ef972):null,_0x1dc082=this['_getRevisionsRange'](_0x22ab09,_0x17f810),_0x428071=_0x1dc082[_0x1dc082['length']-0x1],_0x4eb24a=new Map(),_0x1d323c={'model':{},'attributes':{},'changes':[]},_0x1b4e11=new Set(),_0xc27da0=new Map();for(let _0x58c089=_0x1dc082['length']-0x1;_0x58c089>=0x0;_0x58c089--){const _0x30e3aa=_0x1dc082[_0x58c089];for(const _0x53b3c9 of Object['keys'](_0x30e3aa['diffData']))if(_0x30e3aa['diffData'][_0x53b3c9]['attachChange']){const _0x3a3ed7=_0x30e3aa['diffData'][_0x53b3c9]['attachChange'];_0x3a3ed7['isAttached']?(_0x1b4e11['add'](_0x53b3c9),_0xc27da0['has'](_0x53b3c9)&&_0xc27da0['get'](_0x53b3c9)['userId']==_0x3a3ed7['userId']?_0xc27da0['delete'](_0x53b3c9):_0xc27da0['set'](_0x53b3c9,_0x3a3ed7)):_0xc27da0['has'](_0x53b3c9)?(_0x1b4e11['delete'](_0x53b3c9),_0xc27da0['delete'](_0x53b3c9)):(_0x1b4e11['add'](_0x53b3c9),_0xc27da0['set'](_0x53b3c9,_0x3a3ed7));}else _0x1b4e11['add'](_0x53b3c9);}for(const _0x2fea52 of _0x1b4e11){const _0x51c797=_0xc27da0['has'](_0x2fea52)&&!_0xc27da0['get'](_0x2fea52)['isAttached'];let _0x214ff6=_0x51c797?_0x1dc082['length']-0x1:0x0;const _0x18bb93=_0x51c797?-0x1:0x1;for(;_0x1dc082[_0x214ff6];){const _0x4581e0=_0x1dc082[_0x214ff6];if(_0x4581e0['diffData'][_0x2fea52]){const _0x405a4d=_0x51c797?_0x4581e0['diffData'][_0x2fea52]['attributesBefore']:_0x4581e0['diffData'][_0x2fea52]['attributesAfter'];_0x1d323c['attributes'][_0x2fea52]=_0x405a4d?_0x3153c8(_0x405a4d):{};break;}_0x214ff6+=_0x18bb93;}}for(const _0xebcefd of _0x1dc082){_0xebcefd['model']={};for(const _0x106899 of _0xebcefd['authors'])_0x4eb24a['set'](_0x106899['id'],_0x106899);for(const _0x5d3a39 of _0x1b4e11){const _0x480b55=_0xebcefd['diffData'][_0x5d3a39]?_0xebcefd['diffData'][_0x5d3a39]['insertions']:'[]',_0x262c90=_0xebcefd['diffData'][_0x5d3a39]?_0xebcefd['diffData'][_0x5d3a39]['deletions']:'[]';_0xebcefd['model'][_0x5d3a39]={'insertions':this['_utils']['_makeModelFromViewString'](_0x480b55),'deletions':this['_utils']['_makeModelFromViewString'](_0x262c90)};}}for(const _0x4a687c of _0x1b4e11){let _0x5a1232=null,_0x4d4c79=0x0;const _0xf7321f=new Map(Array['from'](_0x22ab09['model'][_0x4a687c]['insertions']['markers'])['filter'](([_0x193b30])=>!_0x193b30['startsWith']('revision:')));let _0x5ecb54=0x0;for(const _0x134b3e of _0x1dc082){const _0x160562=this['_makeTape'](_0x134b3e['model'][_0x4a687c]['insertions']);_0x134b3e==_0x22ab09?(_0x5a1232=_0x160562,_0x4d4c79=_0x5a1232['length'],_0x5a1232['forEach'](_0x292655=>{_0x292655['id']=_0x5ecb54++;}),this['_processTape'](_0x5a1232)):this['_markInsertions'](_0x5a1232,_0x160562);const _0x11e3ba=_0x5a1232['filter'](_0x4d3f6b=>!_0x4d3f6b['isAdded'])['map'](_0x47089c=>_0x47089c['id']);let _0x44f4e7=0x0;const _0xa9ca1=this['_makeTape'](_0x134b3e['model'][_0x4a687c]['deletions']);_0xa9ca1['forEach'](_0x5c46d9=>{_0x5c46d9['isRemoved']?_0x5c46d9['id']=_0x4d4c79++:_0x5c46d9['id']=_0x11e3ba[_0x44f4e7++];}),this['_processTape'](_0xa9ca1),this['_setDistance'](_0x5a1232,'isAdded'),this['_setDistance'](_0xa9ca1,'isRemoved'),_0x134b3e==_0x22ab09&&this['_markMarkers'](_0x5a1232,_0xf7321f),_0x5a1232=this['_joinTapes'](_0x5a1232,_0xa9ca1),this['_refreshStartEndIndex'](_0x5a1232),this['_setDistance'](_0x5a1232,'isRemoved');}_0x5a1232=_0x5a1232['filter'](_0x18ddcc=>!(_0x18ddcc['isAdded']&&_0x18ddcc['isRemoved']));const _0x8e1216=new Map(_0x428071['model'][_0x4a687c]['deletions']['markers']),_0x3e74c0=new Set(_0xf7321f['keys']());for(const _0x3538b7 of _0x8e1216['keys']())_0x3e74c0['delete'](_0x3538b7);this['_markSuggestions'](_0x5a1232,_0x3e74c0),this['_fixObsoleteTags'](_0x5a1232),_0x5a1232=this['_removeMissingPairs'](_0x5a1232),_0x5a1232=this['_markMismatchedRemovedTags'](_0x5a1232),_0x5a1232=this['_removeUnsupportedChanges'](_0x5a1232);const {root:_0x45c8ee,changes:_0x104081}=this['_makeModelFromTape'](_0x5a1232,_0x4eb24a,_0x4a687c);_0x1d323c['model'][_0x4a687c]=_0x45c8ee;const _0x3c2a38=_0xc27da0['get'](_0x4a687c);if(_0x3c2a38){const _0x27bf6a=_0x4eb24a['get'](_0x3c2a38['userId']),_0x225606=new G({'author':_0x27bf6a,'type':_0x3c2a38['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4a687c});_0x104081['unshift'](_0x225606),_0x1d323c['attributes'][_0x4a687c]['revisionHistoryAttachChange']=_0x225606['id'];}_0x1d323c['changes']=_0x1d323c['changes']['concat'](_0x104081);}return _0x1d323c;}['_markMarkers'](_0x4fe47b,_0x3ce260){for(let _0x4dfb54=0x0;_0x4dfb54<_0x4fe47b['length'];_0x4dfb54++)for(const [_0x23c274,_0x3348da]of _0x3ce260)!_0x3348da['isCollapsed']&&_0x3348da['start']['isEqual'](_0x4fe47b[_0x4dfb54]['previousPosition'])&&_0x4fe47b[_0x4dfb54]['markersStart']['push'](_0x23c274),_0x3348da['end']['isEqual'](_0x4fe47b[_0x4dfb54]['nextPosition'])&&_0x4fe47b[_0x4dfb54]['markersEnd']['push'](_0x23c274);}['_joinTapes'](_0x27b9d9,_0x2d482d){let _0x3a4429=[],_0x1d357b=0x0,_0x53805d=0x0;for(;_0x1d357b<_0x27b9d9['length']||_0x53805d<_0x2d482d['length'];){const _0x1323bb=_0x27b9d9[_0x1d357b]||{},_0x3fce67=_0x2d482d[_0x53805d]||{};if(_0x1323bb['id']==_0x3fce67['id'])_0x1d357b++,_0x53805d++,_0x3a4429['push'](_0x1323bb);else{if(_0x3fce67['isRemoved']&&_0x1323bb['isAdded']){const {commonTape:_0x519240,iEnd:_0x589ad0,jEnd:_0x48701c}=this['_threeWayMerge'](_0x27b9d9,_0x1d357b,_0x2d482d,_0x53805d);_0x3a4429=_0x3a4429['concat'](_0x519240),_0x1d357b=_0x589ad0,_0x53805d=_0x48701c;}else _0x3fce67['isRemoved']?(_0x53805d++,_0x3a4429['push'](_0x3fce67)):(_0x1d357b++,_0x3a4429['push'](_0x1323bb));}}return _0x3a4429;}['_markSuggestions'](_0x4161aa,_0xb96f8c){const _0x5e6bb8=[];for(let _0x8b7f14=0x0;_0x8b7f14<_0x4161aa['length'];_0x8b7f14++){for(let _0x59a9c2=0x0;_0x59a9c2<_0x4161aa[_0x8b7f14]['markersStart']['length'];_0x59a9c2++){const _0x140e7a=_0x4161aa[_0x8b7f14]['markersStart'][_0x59a9c2];if(!_0xb96f8c['has'](_0x140e7a))continue;const {group:_0x4db208,type:_0x20685d,authorId:_0x3aa747}=_0xe5fe4e(_0x140e7a);'revision-suggestion'!=_0x4db208||'insertion'!=_0x20685d&&'deletion'!=_0x20685d||(_0x5e6bb8['unshift']({'type':_0x20685d,'name':_0x140e7a,'userId':_0x3aa747}),_0x4161aa[_0x8b7f14]['markersStart']['splice'](_0x59a9c2,0x1),_0x59a9c2--);}_0xea3134(_0x4161aa[_0x8b7f14]);for(let _0x7d1864=0x0;_0x7d1864<_0x4161aa[_0x8b7f14]['markersEnd']['length'];_0x7d1864++){const _0x1ee212=_0x4161aa[_0x8b7f14]['markersEnd'][_0x7d1864];if(!_0xb96f8c['has'](_0x1ee212))continue;const {group:_0x411759,type:_0x460a6e}=_0xe5fe4e(_0x1ee212);if('revision-suggestion'!=_0x411759||'insertion'!=_0x460a6e&&'deletion'!=_0x460a6e)continue;_0x4161aa[_0x8b7f14]['markersEnd']['splice'](_0x7d1864,0x1),_0x7d1864--;const _0x2f1f99=_0x5e6bb8['findIndex'](_0x2a93a3=>_0x2a93a3['name']==_0x1ee212);_0x2f1f99>-0x1&&_0x5e6bb8['splice'](_0x2f1f99,0x1);}}function _0xe5fe4e(_0x1bb449){const _0xa72f7b=_0x1bb449['split'](':');return{'group':_0xa72f7b[0x0],'type':_0xa72f7b[0x1],'subType':_0xa72f7b['length']>=0x5?_0xa72f7b[0x2]:null,'id':_0xa72f7b['length']<0x5?_0xa72f7b[0x2]:_0xa72f7b[0x3],'authorId':_0xa72f7b['length']<0x5?_0xa72f7b[0x3]:_0xa72f7b[0x4],'markerCount':0x6==_0xa72f7b['length']?_0xa72f7b[0x5]:null};}function _0xea3134(_0x218c4c){for(let _0x4cf81b=0x0;_0x4cf81b<_0x5e6bb8['length'];_0x4cf81b++){if(_0x218c4c['isAdded']&&'insertion'==_0x5e6bb8[_0x4cf81b]['type']&&_0x218c4c['isAdded']['userId']==_0x5e6bb8[_0x4cf81b]['userId'])return _0x218c4c['isAddSuggestion']=_0x5e6bb8[_0x4cf81b],void delete _0x218c4c['isAdded'];if(!_0x218c4c['isAdded']&&!_0x218c4c['isRemoved']&&'deletion'==_0x5e6bb8[_0x4cf81b]['type'])return void(_0x218c4c['isRemoveSuggestion']=_0x5e6bb8[_0x4cf81b]);}}}['_setDistance'](_0x2fc7fb,_0x3ef14d){let _0x2d94ce=0x0,_0x572d5e=!0x1;const _0x53e447=new Map();for(const _0x15c8b3 of _0x2fc7fb)_0x15c8b3[_0x3ef14d]?_0x572d5e&&(_0x2d94ce++,_0x572d5e=!0x1):(_0x2d94ce++,_0x572d5e=!0x0),_0x53e447['set'](_0x15c8b3['id'],_0x2d94ce);for(let _0x49b07a=0x0;_0x49b07a<_0x2fc7fb['length'];_0x49b07a++){if('isRemoved'==_0x3ef14d&&_0x2fc7fb[_0x49b07a]['isAdded']||'isAdded'==_0x3ef14d&&_0x2fc7fb[_0x49b07a]['isRemoved'])continue;if('text'==_0x2fc7fb[_0x49b07a]['type']){_0x2fc7fb[_0x49b07a]['distance']=0x0;continue;}const _0x3c6a20=_0x53e447['get'](_0x2fc7fb[_0x49b07a]['pairId']),_0x272471=_0x53e447['get'](_0x2fc7fb[_0x49b07a]['id']);_0x2fc7fb[_0x49b07a]['distance']=_0x3c6a20-_0x272471;}}['_getRevisionsRange'](_0x1d6d06,_0x24465e,_0x11f337=!0x1){const _0x5a0ad5=[];let _0x46de8c=this['repository']['getIndex'](_0x1d6d06),_0x3c6331=this['repository']['getIndex'](_0x24465e);for(-0x1==_0x3c6331&&(_0x3c6331=this['repository']['_revisions']['length'],_0x11f337=!0x1);_0x46de8c<_0x3c6331;)_0x5a0ad5['push'](this['repository']['getRevision'](_0x46de8c)),_0x46de8c++;return _0x11f337&&_0x5a0ad5['push'](this['repository']['getRevision'](_0x46de8c)),_0x5a0ad5;}['_threeWayMerge'](_0x13fcf4,_0x34f256,_0x40e006,_0x4e87cd){const _0x483b41=this['editor']['model']['schema'];let _0xad4b01=_0x34f256;for(;_0x13fcf4[_0xad4b01]&&_0x13fcf4[_0xad4b01]['isAdded'];)_0xad4b01++;let _0x1b11d7=_0x4e87cd;for(;_0x40e006[_0x1b11d7]&&_0x40e006[_0x1b11d7]['isRemoved'];)_0x1b11d7++;_0x22f12c(_0x13fcf4,_0x34f256,_0xad4b01),_0x22f12c(_0x40e006,_0x4e87cd,_0x1b11d7);const _0x5b7307=_0x40e006['slice'](_0x4e87cd,_0x1b11d7)['concat'](_0x13fcf4['slice'](_0x34f256,_0xad4b01));return _0x5b7307['sort']((_0x54e9cd,_0x22c002)=>_0x54e9cd['side']!=_0x22c002['side']?_0x54e9cd['side']-_0x22c002['side']:_0x54e9cd['level']!=_0x22c002['level']?_0x54e9cd['level']-_0x22c002['level']:_0x54e9cd['distance']!=_0x22c002['distance']?_0x22c002['distance']-_0x54e9cd['distance']:!!_0x54e9cd['isAdded']!=!!_0x22c002['isAdded']?-0x1==_0x54e9cd['side']||0x0==_0x54e9cd['side']?_0x54e9cd['isAdded']?-0x1:0x1:_0x54e9cd['isAdded']?0x1:-0x1:_0x54e9cd['index']-_0x22c002['index']),{'commonTape':_0x5b7307,'iEnd':_0xad4b01,'jEnd':_0x1b11d7};function _0x22f12c(_0x3a15e4,_0x506223,_0x417db8){let _0x24cd46=-0x1,_0x2b0119=Number['POSITIVE_INFINITY'],_0x347e3d=!0x0;for(let _0x3a1e87=_0x506223;_0x3a1e87<_0x417db8;_0x3a1e87++)if(_0x483b41['isInline'](_0x3a15e4[_0x3a1e87]['item'])||(_0x347e3d=!0x1),_0x3a15e4[_0x3a1e87]['item']['startIndex']<_0x506223&&(_0x24cd46=_0x3a1e87),_0x3a15e4[_0x3a1e87]['item']['endIndex']>=_0x417db8){_0x2b0119=_0x3a1e87;break;}_0x347e3d&&(_0x24cd46=_0x417db8-0x1);for(let _0x224eed=_0x506223;_0x224eed<_0x417db8;_0x224eed++)_0x3a15e4[_0x224eed]['side']=_0x224eed<=_0x24cd46?-0x1:_0x224eed<_0x2b0119?0x0:0x1,_0x3a15e4[_0x224eed]['index']=_0x224eed;let _0x551d60=0x0;for(let _0x9ba607=_0x506223;_0x9ba607<=_0x24cd46;_0x9ba607++)0x0==_0x3a15e4[_0x9ba607]['distance']?_0x3a15e4[_0x9ba607]['level']=_0x551d60:(_0x551d60++,_0x3a15e4[_0x9ba607]['level']=_0x551d60,_0x551d60++);for(let _0x3e809f=_0x506223;_0x3e809f<_0x417db8;_0x3e809f++)0x0==_0x3a15e4[_0x3e809f]['side']&&(_0x3a15e4[_0x3e809f]['level']=_0x551d60);_0x551d60=0x0;for(let _0x1f2b70=_0x417db8-0x1;_0x1f2b70>=_0x2b0119;_0x1f2b70--)0x0==_0x3a15e4[_0x1f2b70]['distance']?_0x3a15e4[_0x1f2b70]['level']=_0x551d60:(_0x551d60--,_0x3a15e4[_0x1f2b70]['level']=_0x551d60,_0x551d60--);}}['_fixObsoleteTags'](_0x1847cc){const _0x87dc93=new Map(),_0x5d924d=this['editor']['model']['schema'];for(let _0x30677d=0x1;_0x30677d<_0x1847cc['length'];_0x30677d++){let _0x59353a,_0x3f94f4,_0x33da73;const _0x379602=_0x1847cc[_0x30677d],_0x5f58de=_0x1847cc[_0x30677d-0x1];if('text'==_0x379602['type'])continue;if(_0x379602['type']!=_0x5f58de['type'])continue;if(!_0x5d924d['isBlock'](_0x5f58de['item'])||_0x5d924d['isLimit'](_0x5f58de['item']))continue;if(!_0x5d924d['isBlock'](_0x379602['item'])||_0x5d924d['isLimit'](_0x379602['item']))continue;if((_0x1847cc[_0x30677d]['isAdded']||_0x1847cc[_0x30677d]['isAddSuggestion'])&&_0x1847cc[_0x30677d-0x1]['isRemoved'])_0x59353a=_0x1847cc[_0x30677d],_0x3f94f4=_0x1847cc[_0x30677d-0x1],_0x33da73=_0x30677d-0x1;else{if(!_0x1847cc[_0x30677d]['isRemoved']||!_0x1847cc[_0x30677d-0x1]['isAdded']&&!_0x1847cc[_0x30677d-0x1]['isAddSuggestion'])continue;_0x59353a=_0x1847cc[_0x30677d-0x1],_0x3f94f4=_0x1847cc[_0x30677d],_0x33da73=_0x30677d;}const _0xa643=_0x59353a['level']==_0x3f94f4['level'],_0x4e3431=Math['abs'](_0x59353a['level'])<Math['abs'](_0x3f94f4['level'])&&0x0==_0x3f94f4['distance'];(_0xa643||_0x4e3431)&&(_0x87dc93['set'](_0x3f94f4['id'],_0x59353a['id']),_0x1847cc['splice'](_0x33da73,0x1),_0x30677d--,_0x59353a['isAdded']=!0x1);}for(let _0x12c3d6=0x0;_0x12c3d6<_0x1847cc['length'];_0x12c3d6++)_0x87dc93['has'](_0x1847cc[_0x12c3d6]['pairId'])&&(_0x1847cc[_0x12c3d6]['pairId']=_0x87dc93['get'](_0x1847cc[_0x12c3d6]['pairId']));}['_removeMissingPairs'](_0x16d27f){const _0x5d0bb6=new Set(_0x16d27f['map'](_0x7062f7=>_0x7062f7['id']));for(let _0x140024=0x0;_0x140024<_0x16d27f['length'];_0x140024++)_0x5d0bb6['has'](_0x16d27f[_0x140024]['pairId'])||0x0==_0x16d27f[_0x140024]['distance']||(_0x16d27f[_0x140024]['isIncorrect']=!0x0);return _0x16d27f['filter'](_0x2b255d=>!_0x2b255d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4cd3e0){const _0x267979=new Set();for(let _0x5a10f7=0x0;_0x5a10f7<_0x4cd3e0['length'];_0x5a10f7++){if(_0x267979['has'](_0x4cd3e0[_0x5a10f7]['id'])&&_0x4cd3e0[_0x5a10f7]['isRemoved']&&(_0x4cd3e0[_0x5a10f7]['isIncorrect']=!0x0),_0x4cd3e0[_0x5a10f7]['isIncorrect'])continue;if(0x0==_0x4cd3e0[_0x5a10f7]['distance'])continue;if('elementStart'!=_0x4cd3e0[_0x5a10f7]['type'])continue;if(null==_0x4cd3e0[_0x5a10f7]['pairId'])continue;let _0x3b6732=_0x5a10f7+0x1,_0x1087c4=0x0;for(;_0x4cd3e0[_0x3b6732]['id']!=_0x4cd3e0[_0x5a10f7]['pairId'];)'elementStart'==_0x4cd3e0[_0x3b6732]['type']?_0x1087c4++:'elementEnd'==_0x4cd3e0[_0x3b6732]['type']&&_0x1087c4--,_0x3b6732++;if(0x0!=_0x1087c4){if(_0x4cd3e0[_0x5a10f7]['isRemoved'])_0x4cd3e0[_0x5a10f7]['isIncorrect']=!0x0;else{for(;_0x3b6732!=_0x5a10f7;)_0x4cd3e0[_0x3b6732]['isRemoved']&&0x0!=_0x4cd3e0[_0x3b6732]['distance']&&(_0x4cd3e0[_0x3b6732]['isIncorrect']=!0x0,_0x267979['add'](_0x4cd3e0[_0x3b6732]['pairId'])),_0x3b6732--;}}}return _0x4cd3e0['filter'](_0x5f58ab=>!_0x5f58ab['isIncorrect']);}['_removeUnsupportedChanges'](_0x2d089d){const _0x4a0232=this['editor']['model']['schema'];for(let _0x2b02ca=0x0;_0x2b02ca<_0x2d089d['length'];_0x2b02ca++){if(!(_0x2d089d[_0x2b02ca]['isAdded']||_0x2d089d[_0x2b02ca]['isAddSuggestion']||_0x2d089d[_0x2b02ca]['isRemoved']||_0x2d089d[_0x2b02ca]['isRemoveSuggestion']))continue;if(0x0==_0x2d089d[_0x2b02ca]['distance'])continue;const _0x5c8205=_0x2d089d[_0x2b02ca]['item'];_0x4a0232['isBlock'](_0x5c8205)||_0x4a0232['isLimit'](_0x5c8205)||(_0x2d089d[_0x2b02ca]['isAdded']&&delete _0x2d089d[_0x2b02ca]['isAdded'],_0x2d089d[_0x2b02ca]['isAddSuggestion']&&delete _0x2d089d[_0x2b02ca]['isAddSuggestion'],_0x2d089d[_0x2b02ca]['isRemoveSuggestion']&&delete _0x2d089d[_0x2b02ca]['isRemoveSuggestion'],_0x2d089d[_0x2b02ca]['isRemoved']&&(_0x2d089d[_0x2b02ca]['isIncorrect']=!0x0));}return _0x2d089d['filter'](_0x370b91=>!_0x370b91['isIncorrect']);}['_makeModelFromTape'](_0x5e891c,_0x2c3c8f,_0x4e32a2){const _0x5dd34a=new _0x367b4a(),_0x166f94=[],_0x2d12b8=new Map(),_0x443ca=this['editor']['model'],_0x24e075=_0x443ca['schema'],_0x2ede9c=[_0x5dd34a],_0xb16654={},_0x587cb9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x52578f=null;const _0x5bc39d=[0x0];for(let _0x413866=0x0;_0x413866<_0x5e891c['length'];_0x413866++)if('elementStart'===_0x5e891c[_0x413866]['type']){_0x5e891c[_0x413866]['previousPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d);const _0x427367=new _0x14dfc7(_0x5e891c[_0x413866]['item']['name'],_0x5e891c[_0x413866]['item']['getAttributes']());_0x2ede9c[0x0]['_appendChild'](_0x427367),_0x5bc39d['push'](0x0),_0x2ede9c['unshift'](_0x427367),_0x5e891c[_0x413866]['nextPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d);}else'elementEnd'===_0x5e891c[_0x413866]['type']?(_0x2ede9c['shift'](),_0x5e891c[_0x413866]['previousPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d),_0x5bc39d['pop'](),_0x5bc39d[_0x5bc39d['length']-0x1]++,_0x5e891c[_0x413866]['nextPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d)):(_0x5e891c[_0x413866]['previousPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d),_0x52578f?_0x52578f['_data']+=_0x5e891c[_0x413866]['item']['data']:_0x52578f=new _0x30226a(_0x5e891c[_0x413866]['item']['data'],_0x5e891c[_0x413866]['item']['getAttributes']()),_0x5e891c[_0x413866+0x1]&&'text'===_0x5e891c[_0x413866+0x1]['type']&&_0x129764(_0x52578f,_0x5e891c[_0x413866+0x1]['item'])||(_0x2ede9c[0x0]['_appendChild'](_0x52578f),_0x52578f=null),_0x5bc39d[_0x5bc39d['length']-0x1]+=_0x5e891c[_0x413866]['item']['offsetSize'],_0x5e891c[_0x413866]['nextPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d));for(let _0x16b730=0x0;_0x16b730<_0x5e891c['length'];_0x16b730++){const _0x9e5fb=_0x5e891c[_0x16b730]['previousPosition'],_0xb9b10d=_0x5e891c[_0x16b730]['nextPosition'];for(const _0x20c4dc of _0x5e891c[_0x16b730]['markersStart'])_0x2d12b8['set'](_0x20c4dc,{'start':_0x9e5fb,'end':null});_0x8a41e2('isRemoveSuggestion',_0x16b730,_0x9e5fb,_0xb9b10d),_0x8a41e2('isAddSuggestion',_0x16b730,_0x9e5fb,_0xb9b10d),_0x8a41e2('isRemoved',_0x16b730,_0x9e5fb,_0xb9b10d),_0x8a41e2('isAdded',_0x16b730,_0x9e5fb,_0xb9b10d);for(const _0x3cc683 of _0x5e891c[_0x16b730]['markersEnd']){const _0x237449=_0x2d12b8['get'](_0x3cc683);_0x237449?_0x237449['end']=_0xb9b10d:_0x2d12b8['set'](_0x3cc683,{'start':_0xb9b10d,'end':_0xb9b10d});}}for(const [_0xe999f2,_0x51d0a8]of _0x2d12b8){const _0x28372f=this['editor']['model']['createRange'](_0x51d0a8['start'],_0x51d0a8['end']);_0x5dd34a['markers']['set'](_0xe999f2,_0x28372f);}return _0x166f94['sort']((_0x1ead89,_0x237400)=>{const _0x495804=_0x5dd34a['markers']['get']('revision:'+_0x1ead89['id']),_0x2a6e6c=_0x5dd34a['markers']['get']('revision:'+_0x237400['id']);return _0x495804['start']['isBefore'](_0x2a6e6c['start'])?-0x1:_0x495804['start']['isAfter'](_0x2a6e6c['start'])?0x1:_0x495804['end']['isBefore'](_0x2a6e6c['end'])?-0x1:_0x495804['end']['isAfter'](_0x2a6e6c['end'])?0x1:'add'===_0x1ead89['type']?-0x1:0x1;}),{'root':_0x5dd34a,'changes':_0x166f94};function _0x8a41e2(_0x873335,_0x1c8138,_0x22a67c,_0x27dceb){const _0x5d89b1=!!_0x5e891c[_0x1c8138][_0x873335],_0x1d8462=_0x5d89b1?_0x5e891c[_0x1c8138][_0x873335]['userId']:null,_0xc398c6=_0x1c8138===_0x5e891c['length']-0x1,_0x34293f=_0x587cb9[_0x873335][0x0],_0x3e6476=_0x24e075['isObject'](_0x5e891c[_0x1c8138]['item']);!_0xb16654[_0x873335]&&_0x5d89b1?_0xb16654[_0x873335]={'start':_0x22a67c,'tapeItem':_0x5e891c[_0x1c8138],'userId':_0x1d8462,'type':_0x873335}:_0xb16654[_0x873335]&&!_0x5d89b1?(_0xb16654[_0x873335]['end']=_0x22a67c,_0x57f40e(_0xb16654[_0x873335]),_0xb16654[_0x873335]=null):_0xb16654[_0x873335]&&_0x5d89b1&&_0xb16654[_0x873335]['userId']!==_0x1d8462&&(_0xb16654[_0x873335]['end']=_0x22a67c,_0x34293f&&_0x34293f['userId']===_0xb16654[_0x873335]['userId']||_0x57f40e(_0xb16654[_0x873335]),_0xb16654[_0x873335]={'start':_0x22a67c,'tapeItem':_0x5e891c[_0x1c8138],'userId':_0x1d8462,'type':_0x873335}),_0xb16654[_0x873335]&&_0x3e6476&&('elementStart'!==_0x5e891c[_0x1c8138]['type']||_0x34293f&&_0x34293f['userId']===_0x1d8462||_0x587cb9[_0x873335]['unshift']({'userId':_0x1d8462,'object':_0x5e891c[_0x1c8138]['item'],'change':_0xb16654[_0x873335]}),'elementEnd'===_0x5e891c[_0x1c8138]['type']&&_0x34293f&&_0x34293f['object']===_0x5e891c[_0x1c8138]['item']&&(_0x587cb9[_0x873335]['shift'](),_0xb16654[_0x873335]=_0x34293f['change'])),_0xb16654[_0x873335]&&_0xc398c6&&(_0xb16654[_0x873335]['end']=_0x27dceb,_0x57f40e(_0xb16654[_0x873335]),_0xb16654[_0x873335]=null);}function _0x57f40e({start:_0x2e36d8,end:_0x3de638,tapeItem:_0xd119ec,userId:_0x51a044,type:_0x29e15a}){const _0x581bb7=_0xd119ec['item'],_0x5d1708=_0x443ca['schema']['isBlock'](_0x581bb7)&&!_0x443ca['schema']['isLimit'](_0x581bb7),_0x67cb3a=_0x2e36d8['nodeAfter']==_0x3de638['parent']&&_0x3de638['isAtStart'];if(_0x5d1708&&_0x67cb3a)return;const _0x11f660=_0x443ca['createRange'](_0x2e36d8,_0x3de638),_0x5f504c=_0x2c3c8f['get'](_0x51a044),_0x268ff8=new G({'author':_0x5f504c,'type':'isAdded'==_0x29e15a||'isAddSuggestion'==_0x29e15a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x29e15a||'isRemoveSuggestion'==_0x29e15a},'createdAt':new Date(),'rootName':_0x4e32a2});_0x166f94['push'](_0x268ff8),_0x5dd34a['markers']['set']('revision:'+_0x268ff8['id'],_0x11f660);}function _0x129764(_0x1d95f3,_0x4e5c15){const _0xad703=_0x1d95f3['getAttributes'](),_0x5c0787=_0x4e5c15['getAttributes']();for(const _0x3d29cd of _0xad703){if(_0x3d29cd[0x1]!==_0x4e5c15['getAttribute'](_0x3d29cd[0x0]))return!0x1;_0x5c0787['next']();}return _0x5c0787['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x365a55=>{const _0x1e0ae1=_0x365a55['markerName']['split'](':')[0x1],_0x46a5de=this['_getChangeFromId'](_0x1e0ae1);if(!_0x46a5de)return null;const _0x2714ac='add'==_0x46a5de['type']?'insertion':'deletion',_0x5cc179=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2714ac];return _0x46a5de['data']['isSuggestion']&&_0x5cc179['push']('ck-suggestion-marker-'+_0x2714ac+'-new'),this['activeChange']==_0x46a5de&&_0x5cc179['push']('ck-suggestion-marker--active'),{'classes':_0x5cc179,'attributes':{'data-change-id':_0x1e0ae1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4bdd0f=>{_0x4bdd0f['on']('element:pre',(_0x2fe8df,_0x4cf307,_0xaa6573)=>{const _0x535a32=_0x4cf307['viewItem']['getChild'](0x0);if(!_0x535a32||!_0x535a32['is']('element','code'))return;if(!_0xaa6573['consumable']['consume'](_0x535a32,{'attributes':['vid_start','vid_end']}))return;const _0x11ffde=_0x4cf307['modelRange']['start']['nodeAfter'];_0xaa6573['writer']['setAttribute']('vid_start',_0x535a32['getAttribute']('vid_start'),_0x11ffde),_0xaa6573['writer']['setAttribute']('vid_end',_0x535a32['getAttribute']('vid_end'),_0x11ffde);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1b1e56=>{_0x1b1e56['on']('element',(_0xc08052,_0x4b5c24,_0x5d6a22)=>{if(!_0x5d6a22['consumable']['consume'](_0x4b5c24['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4b5c24['modelRange']['isCollapsed'])return;const _0x30fe2=_0x4b5c24['modelRange']['start']['nodeAfter'];_0x30fe2['hasAttribute']('vid_start')||_0x30fe2['hasAttribute']('vid')||(_0x5d6a22['writer']['setAttribute']('vid_start',_0x4b5c24['viewItem']['getAttribute']('vid_start'),_0x30fe2),_0x5d6a22['writer']['setAttribute']('vid_end',_0x4b5c24['viewItem']['getAttribute']('vid_end'),_0x30fe2));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5b230d=>_0x5b230d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x189665,[,_0x326c1c])=>{['vid_start','vid_end','vid']['includes'](_0x326c1c)&&(_0x189665['return']=!0x0,_0x189665['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1bf369=>{_0x1bf369['on']('attribute:vid',(_0x24f008,_0x182118,_0x38421f)=>{if('\x20'!=_0x182118['item']['data']||_0x182118['item']['parent']['maxOffset']>0x1)return;if(!_0x38421f['consumable']['consume'](_0x182118['item'],_0x24f008['name']))return;const _0x3366f3=_0x38421f['writer'],_0xf2dfee=_0x38421f['mapper']['toViewRange'](_0x182118['range']);_0x3366f3['wrap'](_0xf2dfee,_0x3366f3['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4028b8){const _0xcb4c7a=_0x4028b8['plugins']['get']('RevisionViewer');return(_0x5dfd9f,_0x3cd92f,_0x1310fb)=>{const _0x3117d8=_0x3cd92f['markerName']['split'](':')[0x1],_0x21c61e=_0xcb4c7a['_getChangeFromId'](_0x3117d8);if(!_0x21c61e)return null;const _0x2ecc28='add'==_0x21c61e['type']?'split':'merge';if(!_0x1310fb['consumable']['test'](_0x3cd92f['markerRange'],_0x5dfd9f['name']))return;const _0x12996f=_0x3cd92f['markerRange']['getWalker'](),_0xbfbc35=_0x3cd92f['markerRange']['start'],_0x2105fc=_0x4028b8['model']['schema'];let _0x2b2be7=null,_0x217005=null,_0x358b9b=!0x1,_0x59b12f=!0x1;for(const _0x2c4ac9 of _0x12996f){const _0x4fc3a1=_0x2c4ac9['item'];_0x358b9b=_0x358b9b||_0x2105fc['isContent'](_0x4fc3a1);const _0x4ca550=_0x1310fb['mapper']['toViewElement'](_0x4fc3a1);if(_0x4ca550&&_0x4ca550['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c4ac9['type']&&(_0x2105fc['isBlock'](_0x4fc3a1)&&!_0x2105fc['isLimit'](_0x4fc3a1)&&(_0x4fc3a1['nextSibling']||_0xbfbc35['isAtEnd']?_0x2b2be7&&_0x2b2be7['parent']==_0x4fc3a1||(_0x2b2be7=_0x4fc3a1,_0x223786(_0x2c4ac9['previousPosition']),_0x59b12f=!0x0):_0x217005=_0x217005||_0x2c4ac9['previousPosition']));}function _0x223786(_0x452e74){const _0x6e0c09=_0x1310fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ecc28}),_0x50d88c=_0x1310fb['mapper']['toViewPosition'](_0x452e74);_0x21c61e['data']['isSuggestion']&&_0x1310fb['writer']['addClass']('ck-suggestion-marker-'+_0x2ecc28+'-new',_0x6e0c09),_0xcb4c7a['activeChange']==_0x21c61e&&_0x1310fb['writer']['addClass']('ck-suggestion-marker--active',_0x6e0c09),_0x1310fb['writer']['insert'](_0x50d88c,_0x6e0c09),_0x1310fb['mapper']['bindElementToMarker'](_0x6e0c09,_0x3cd92f['markerName']);}_0x358b9b||_0x59b12f||!_0x217005||_0x223786(_0x217005);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x442171,_0x4f0ae8,_0x2f0629)=>{const _0x1d5e51=_0x2f0629['mapper']['markerNameToElements'](_0x4f0ae8['markerName']);if(_0x1d5e51){for(const _0xf9aca3 of _0x1d5e51)(_0xf9aca3['hasClass']('ck-suggestion-marker-split')||_0xf9aca3['hasClass']('ck-suggestion-marker-merge'))&&(_0x2f0629['mapper']['unbindElementFromMarkerName'](_0xf9aca3,_0x4f0ae8['markerName']),_0x2f0629['writer']['remove'](_0xf9aca3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x54ba57,_0x5da6d7,_0x4df24a)=>{const _0x33ac99=_0x5da6d7['markerName']['split'](':')[0x1],_0x21b6e9=this['_getChangeFromId'](_0x33ac99);if(!_0x21b6e9)return null;const _0x459726='add'==_0x21b6e9['type']?'split':'merge';if(_0x4df24a['consumable']['test'](_0x5da6d7['markerRange'],_0x54ba57['name']))for(const _0x26ecf1 of _0x5da6d7['markerRange']['getItems']()){if(!_0x26ecf1['is']('element','softBreak'))continue;const _0x4e6732=_0x4df24a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x459726}),_0x27ead7=_0x4df24a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x26ecf1));_0x21b6e9['data']['isSuggestion']&&_0x4df24a['writer']['addClass']('ck-suggestion-marker-'+_0x459726+'-new',_0x4e6732),this['activeChange']==_0x21b6e9&&_0x4df24a['writer']['addClass']('ck-suggestion-marker--active',_0x4e6732),_0x4df24a['writer']['insert'](_0x27ead7,_0x4e6732),_0x4df24a['mapper']['bindElementToMarker'](_0x4e6732,_0x5da6d7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3f375b=>{for(const _0x3eced6 of this['editor']['model']['document']['getRootNames']()){const _0x459325=this['editor']['model']['document']['getRoot'](_0x3eced6),_0xa11b09=this['editor']['editing']['view']['document']['getRoot'](_0x3eced6);if(_0xa11b09){const _0x1b9f8a=_0x459325['getAttribute']('revisionHistoryAttachChange');if(_0x3f375b['removeAttribute']('data-change-id',_0xa11b09),_0x3f375b['removeClass']('ck-revision-history-root-add',_0xa11b09),_0x3f375b['removeClass']('ck-revision-history-root-remove',_0xa11b09),_0x3f375b['removeClass']('ck-revision-history-root--active',_0xa11b09),_0x1b9f8a){const _0xe6f020=this['_getChangeFromId'](_0x1b9f8a);if(!_0xe6f020)return null;_0x3f375b['setAttribute']('data-change-id',_0x1b9f8a,_0xa11b09),_0x3f375b['addClass']('ck-revision-history-root-'+_0xe6f020['type'],_0xa11b09),this['activeChange']==_0xe6f020&&_0x3f375b['addClass']('ck-revision-history-root--active',_0xa11b09);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3267ff=>'revision-comment:'+_0x3267ff,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x102c6f=>'revision-suggestion:'+_0x102c6f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x22b30e=>({'name':'suggestion:'+_0x22b30e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x33a441=>{const _0xfc2a60=_0x33a441['markerName']['split'](':')[0x1];return'insertion'!=_0xfc2a60&&'deletion'!=_0xfc2a60?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xfc2a60]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x404b3b,_0x34efb3,_0x59a552)=>{const _0x19faa6=_0x59a552['mapper']['markerNameToElements'](_0x34efb3['markerName']);if(_0x19faa6){for(const _0x292672 of _0x19faa6)_0x292672['is']('uiElement')&&(_0x59a552['mapper']['unbindElementFromMarkerName'](_0x292672,_0x34efb3['markerName']),_0x59a552['writer']['remove'](_0x292672));}},{'priority':'high'});}['_getChangeFromId'](_0x6d6c6f){return this['_changeIdToChange']['get'](_0x6d6c6f);}['_getViewForChange'](_0x3bf3fb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3bf3fb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x31d9da,_0x2816a2,_0x5534e4,_0x3baeb0)=>{_0x3baeb0&&this['_balloon']['remove'](_0x3baeb0),_0x5534e4&&(this['_balloon']['add']({'view':_0x5534e4,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xbf3a94=this['editor']['editing'],_0x487630=this['_getChangeFromId'](_0x5534e4['changeId']);let _0xc753ea;if(_0x487630['data']['isOnRoot']){const _0x3869e4=_0xbf3a94['view']['getDomRoot'](_0x487630['rootName']);_0xc753ea=Array['from'](_0x3869e4['getClientRects']());}else{const _0x2dabd6=this['editor']['model']['markers']['get']('revision:'+_0x5534e4['changeId']);_0xc753ea=Array['from'](_0xbf3a94['mapper']['markerNameToElements'](_0x2dabd6['name']))['map'](_0x2b37b0=>_0xbf3a94['view']['domConverter']['mapViewToDom'](_0x2b37b0))['map'](_0x3f81fa=>Array['from'](_0x3f81fa['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc753ea[0x0];return _0xc753ea['find'](_0x1222af=>_0x1222af['top']-0x3<=this['_activeViewTarget']['y']&&_0x1222af['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1222af['left']-0x3<=this['_activeViewTarget']['x']&&_0x1222af['right']+0x3>=this['_activeViewTarget']['x'])||_0xc753ea[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x574b52,_0x369a3c,_0x4d4fc4,_0xbb4cd9)=>{this['activeView']=_0x4d4fc4?this['_getViewForChange'](_0x4d4fc4):null,this['editor']['model']['change'](()=>{const _0xc13d65=this['editor']['editing'];_0xbb4cd9&&(_0xbb4cd9['data']['isOnRoot']?_0xc13d65['view']['change'](_0x954868=>{_0x954868['removeClass']('ck-revision-history-root--active',_0xc13d65['view']['document']['getRoot'](_0xbb4cd9['rootName']));}):_0xc13d65['reconvertMarker']('revision:'+_0xbb4cd9['id'])),_0x4d4fc4&&(_0x4d4fc4['data']['isOnRoot']?_0xc13d65['view']['change'](_0x19e223=>{_0x19e223['addClass']('ck-revision-history-root--active',_0xc13d65['view']['document']['getRoot'](_0x4d4fc4['rootName']));}):_0xc13d65['reconvertMarker']('revision:'+_0x4d4fc4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x366986,_0x5cb182)=>{if(this['activeChange'])return;const _0x56204b=this['_findChangeIdFromDomTarget'](_0x5cb182['target']),_0x27655e=this['_changeIdToChange']['get'](_0x56204b);_0x27655e?(this['_activeViewTarget']={'x':_0x5cb182['domEvent']['x'],'y':_0x5cb182['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x27655e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1a7497,_0x3dab4c)=>{const _0x3eb8eb=this['_findChangeIdFromDomTarget'](_0x3dab4c['target']),_0x25a4e5=this['_changeIdToChange']['get'](_0x3eb8eb);_0x25a4e5?(this['_activeViewTarget']={'x':_0x3dab4c['domEvent']['x'],'y':_0x3dab4c['domEvent']['y']},_0x25a4e5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25a4e5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2980f2){do{const _0x3f5992=_0x2980f2['getAttribute']('data-change-id');if(_0x3f5992)return _0x3f5992;_0x2980f2=_0x2980f2['parent'];}while(_0x2980f2);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xff7a20=>{for(const _0xc4ead4 of this['editor']['model']['markers'])_0xff7a20['removeMarker'](_0xc4ead4);});}}function Q(_0x1e81ce,_0xe33459){return(_0x115d15,_0x29fd9e,_0x2bd52a)=>{if(!_0x2bd52a['consumable']['test'](_0x29fd9e['markerRange'],_0x115d15['name']))return;const _0x5c3f4e=_0x29fd9e['markerRange']['getWalker'](),_0x8ba006=_0x29fd9e['markerRange']['start'],_0xf1cb16=_0x1e81ce['model']['schema'];let _0x1d8914=null,_0x29d15c=null,_0x292de3=!0x1,_0x214455=!0x1;for(const _0x3ca02e of _0x5c3f4e){const _0x2013b6=_0x3ca02e['item'];_0x292de3=_0x292de3||_0xf1cb16['isContent'](_0x2013b6);const _0x405fca=_0x2bd52a['mapper']['toViewElement'](_0x2013b6);if(_0x405fca&&_0x405fca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ca02e['type']&&(_0xf1cb16['isBlock'](_0x2013b6)&&!_0xf1cb16['isLimit'](_0x2013b6)&&(_0x2013b6['nextSibling']||_0x8ba006['isAtEnd']?_0x1d8914&&_0x1d8914['parent']==_0x2013b6||(_0x1d8914=_0x2013b6,_0x4e12b2(_0x3ca02e['previousPosition']),_0x214455=!0x0):_0x29d15c=_0x29d15c||_0x3ca02e['previousPosition']));}function _0x4e12b2(_0x565a56){const _0x5f0c87=_0x2bd52a['mapper']['toViewPosition'](_0x565a56),_0x36211a=_0x2bd52a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xe33459});_0x2bd52a['writer']['insert'](_0x5f0c87,_0x36211a),_0x2bd52a['mapper']['bindElementToMarker'](_0x36211a,_0x29fd9e['markerName']);}_0x292de3||_0x214455||!_0x29d15c||_0x4e12b2(_0x29d15c);};}class nt extends _0x31431b{constructor(_0x432bec){super(_0x432bec);const _0xdd9e40=_0x432bec['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0xdd9e40,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xdd9e40,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2cc75f=this['editor'],_0x1a7f95=_0x2cc75f['plugins']['get'](l),_0x553bfa=_0x1a7f95['isReady']?_0x1a7f95['diff']['newRevisionId']:null;_0x2cc75f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x553bfa);}['refresh'](){const {isReady:_0x5a5b2e,isEnabled:_0x539676,repository:_0x3cd3ee,diff:_0x17ff80}=this['editor']['plugins']['get'](l),_0x92ab91=_0x17ff80&&_0x3cd3ee['getLaterVisibleRevision'](_0x17ff80['newRevisionId']);this['isEnabled']=_0x5a5b2e&&_0x539676&&Boolean(_0x92ab91);}}class rt extends _0x31431b{['_step'];constructor(_0x1ad2bd,{direction:_0x3b5d91}){super(_0x1ad2bd);const _0x306bb7=_0x1ad2bd['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x3b5d91?0x1:-0x1,this['listenTo'](_0x306bb7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x306bb7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x306bb7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x271354=this['editor'],_0x48591d=_0x271354['plugins']['get'](l),{isNavigationMode:_0x21ba44,currentChangeNumber:_0x48d74f}=_0x48591d;let _0x16b509;if(_0x48591d['activeChange']=_0x21ba44?_0x48591d['diff']['changes']['get'](_0x48d74f+this['_step']):_0x48591d['diff']['changes']['first'],_0x48591d['activeChange']['data']['isOnRoot'])_0x16b509=_0x271354['editing']['view']['getDomRoot'](_0x48591d['activeChange']['rootName']);else{const _0x4320cf=_0x271354['model']['markers']['get']('revision:'+_0x48591d['activeChange']['id']);_0x16b509=_0x291ee7(_0x271354['editing'],_0x4320cf);}_0x52ec3f({'target':_0x16b509,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xf68630,currentChangeNumber:_0x5c7dfd,numberOfChanges:_0x3e2022,isReady:_0xc277d0,isEnabled:_0x2a3f4e}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x2a3f4e&&_0xc277d0&&_0x3e2022)&&(!_0xf68630||(0x1===this['_step']?_0x5c7dfd<_0x3e2022-0x1:_0x5c7dfd>0x0));}}class Ri extends _0x47987e{constructor(_0x4a0c96){super(_0x4a0c96);const _0x436c96=this['bindTemplate'],_0x409de0=new _0x18e75a(_0x4a0c96),_0x17f3b3=new _0x18e75a(_0x4a0c96);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',(_0x39bbea,_0x57529f)=>_0x39bbea&&_0x57529f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1bf5c3,_0x3c0117,_0xc28eb4,_0x300da8)=>{if(!_0x1bf5c3)return R(_0x4a0c96,'Loading...');if(!_0xc28eb4)return R(_0x4a0c96,'No\x20changes');const _0xcf37f9=R(_0x4a0c96,'NUMBER_OF_CHANGES',_0xc28eb4);return _0x300da8?R(_0x4a0c96,'X_OF_Y_CHANGES',[_0x3c0117+0x1,_0xc28eb4]):_0xcf37f9;}),_0x409de0['set']({'label':R(_0x4a0c96,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5a82ac}),_0x17f3b3['set']({'label':R(_0x4a0c96,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x38eb4d}),_0x409de0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x17f3b3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x409de0['on']('execute',()=>this['fire']('execute','backward')),_0x17f3b3['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',_0x436c96['if']('_isStatusLabelVisible','ck-hidden',_0x53e4b5=>!_0x53e4b5)]},'children':[{'text':_0x436c96['to']('isNavigationMode',_0x449ba5=>_0x449ba5?R(_0x4a0c96,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4a0c96,'Total')+':\x20')}]},{'text':_0x436c96['to']('_statusText')}]},new _0x28081e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x409de0,_0x17f3b3]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x594d24{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5b8bd7=this['editor']['editing']['view'];_0x5b8bd7['change'](_0x130dd0=>{for(const _0x1a1179 of _0x5b8bd7['document']['roots'])_0x130dd0['addClass'](ge,_0x1a1179);});}['hide'](){const _0x582771=this['editor']['editing']['view'];_0x582771['change'](_0x561fd7=>{for(const _0x52baa0 of _0x582771['document']['roots'])_0x561fd7['removeClass'](ge,_0x52baa0);});}}class u extends _0x594d24{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x1f0569=this['editor'],_0x3e1e81=_0x1f0569['plugins']['get'](l),_0x513558=_0x1f0569['plugins']['get'](ji);_0x1f0569['ui']['componentFactory']['add']('exitToEditing',_0x25841a=>{const _0x376e9a=new _0x18e75a(_0x25841a);return _0x376e9a['set']({'label':R(_0x25841a,'Back\x20to\x20editing'),'icon':_0x1995d5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x376e9a,'execute',()=>{_0x1f0569['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x376e9a;}),_0x1f0569['ui']['componentFactory']['add']('restoreRevision',_0x2432fe=>{const _0x4a4ebf=new _0x18e75a(_0x2432fe);return _0x4a4ebf['set']({'label':R(_0x2432fe,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4a4ebf['bind']('isEnabled')['to'](_0x1f0569['commands']['get']('restoreRevision')),this['listenTo'](_0x4a4ebf,'execute',()=>_0x1f0569['execute']('restoreRevision')),_0x4a4ebf;}),_0x1f0569['ui']['componentFactory']['add']('changesNavigation',_0x568cb9=>{const _0x176891=new Ri(_0x568cb9),_0x14933b=_0x1f0569['commands']['get']('showPreviousChange'),_0x5adf40=_0x1f0569['commands']['get']('showNextChange');return _0x176891['bind']('isBackwardNavigationEnabled')['to'](_0x14933b,'isEnabled'),_0x176891['bind']('isForwardNavigationEnabled')['to'](_0x5adf40,'isEnabled'),_0x176891['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3e1e81),this['listenTo'](_0x176891,'execute',(_0x399ea6,_0x1482cb)=>{_0x1f0569['execute']('forward'===_0x1482cb?'showNextChange':'showPreviousChange');}),_0x176891;}),_0x513558['show'](),_0x3e1e81['on']('change:isReady',(_0x4a8ce8,_0x34e017,_0x3025fa)=>{_0x3025fa?_0x513558['hide']():_0x513558['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x326aef,_0x152a06){super(_0x326aef,_0x152a06);const _0x531364=this['bindTemplate'];this['set']({'label':R(_0x326aef,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x326aef,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x531364['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x59aa65=this['fieldView']['element'];this['_tooltipString']=_0x59aa65['scrollWidth']>_0x59aa65['clientWidth']&&_0x59aa65['value']||'';}}class ni extends _0x47987e{constructor(_0x13e74e,_0x49f5b7,_0x348f37){super(_0x13e74e);const _0x3d69b9=new _0x26b0bd();_0x3d69b9['set']({'content':_0x14b518,'viewBox':'0\x200\x2011\x2010'});const _0x1d5ce5=['ck','ck-revision-history-sidebar__revision-author'];_0x348f37&&_0x1d5ce5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4d9bbe=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x13e74e,_0x348f37?'Revision\x20creator':'Revision\x20author')},'children':[_0x3d69b9,_0x49f5b7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1d5ce5},'children':_0x4d9bbe});}}function ci(_0xaa8643,_0x55dfb8){const _0x54ccf=_0xaa8643['bindTemplate'],_0x2518cc=_0xaa8643['locale'],_0xee9198=_0x514a35(_0x2518cc);_0xee9198['panelPosition']='sw';const _0x361162=function(_0x13f312,_0x1f5de4){const _0xb96a5c=function(_0x160757,_0x523227){const _0x4b4571=_0x160757['locale'],_0x56a557={'Compare\x20against\x20selected':R(_0x4b4571,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4b4571,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4b4571,'Restore\x20this\x20revision')};return _0x523227['map'](_0x5e1974=>{const _0xd3e5a8=_0x56a557[_0x5e1974['name']];return _0xd3e5a8&&_0xd3e5a8!==_0x5e1974['name']&&(_0x5e1974['name']=_0xd3e5a8),_0x5e1974;});}(_0x13f312,_0x1f5de4),_0x213265=new _0x2d4b38();for(const _0xf662e8 of _0xb96a5c){const _0x4abcb1={'type':'button','model':new to({'label':_0xf662e8['name'],'class':_0xf662e8['class'],'withText':!0x0,'role':'menuitem','_action':_0xf662e8['action']})};_0x4abcb1['model']['bind']('isEnabled')['to'](_0x13f312,'isActionsDropdownOpen',_0x382e9c=>'function'!=typeof _0xf662e8['isEnabled']||(!_0x382e9c||_0xf662e8['isEnabled'](_0x13f312))),_0x213265['add'](_0x4abcb1);}return _0x213265;}(_0xaa8643,_0x55dfb8);return _0xaa8643['bind']('isActionsDropdownOpen')['to'](_0xee9198,'isOpen'),_0xee9198['buttonView']['set']({'label':R(_0x2518cc,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xf8bf85}),_0xee9198['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x54ccf['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x54ccf['to'](_0x17c53a=>_0x17c53a['stopPropagation']())}}),_0xee9198['on']('execute',_0x337906=>{_0xaa8643['isReady']&&'function'==typeof _0x337906['source']['_action']&&_0x337906['source']['_action'](_0xaa8643);}),_0x1e3dad(_0xee9198,_0x361162,{'role':'menu'}),_0xee9198['listenTo'](_0xaa8643,'change:isActionsDropdownOpen',(_0x4b0aee,_0x1d0571,_0xe816fa)=>{if(_0xe816fa)for(const _0x3e9f51 of _0xee9198['listView']['items']){const _0x2c4398=_0x3e9f51['children']['first'],_0x18fb70=_0x55dfb8['find'](_0x5796a2=>_0x5796a2['action']===_0x2c4398['_action'])['isVisible'];_0x3e9f51['isVisible']=void 0x0===_0x18fb70||_0x18fb70(_0xaa8643);}}),_0xee9198;}class _i extends/* #__PURE__ -- @preserve */
27
+ _0x424bb4(_0x47987e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2ad032,_0x17c4c3,_0x2b9317,_0x49eace){super(_0x2ad032);const _0x2ebac3=this['bindTemplate'],_0x919000=function(_0x172fe1,_0x1d6462){const _0x7e7e3f=Array['from'](_0x1d6462['authors'])['filter'](_0x2e9da6=>_0x2e9da6!=_0x1d6462['creator']);return _0x1d6462['creator']&&_0x7e7e3f['unshift'](_0x1d6462['creator']),_0x7e7e3f['map'](_0x343230=>new ni(_0x172fe1,_0x343230,_0x343230==_0x1d6462['creator']));}(_0x2ad032,_0x17c4c3);this['id']=_0x17c4c3['id'],this['_revision']=_0x17c4c3,this['_requireRevisionName']=_0x49eace,this['bind']('name','createdAt')['to'](_0x17c4c3),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x36393b=>{return _0x54060a=_0x2ad032['uiLanguage'],(_0x1757cd=_0x36393b)['toLocaleDateString'](_0x54060a,{'month':'long','day':'numeric'})+',\x20'+_0x1757cd['toLocaleTimeString'](_0x54060a,{'hour':'numeric','minute':'numeric'});var _0x54060a,_0x1757cd;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x2ad032,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2842c1=>_0x2842c1||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x511115,_0x323d5e)=>_0x511115&&_0x323d5e),this['revisionActionsView']=_0x2b9317&&_0x2b9317['length']?ci(this,_0x2b9317):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2ebac3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2ebac3['if']('isEnabled','ck-disabled',_0x3c08d2=>!_0x3c08d2),_0x2ebac3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2ebac3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2ebac3['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':_0x2ebac3['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':_0x919000}]},this['revisionActionsView']],'on':{'click':_0x2ebac3['to'](_0x548d38=>{_0x548d38['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x11bfe3=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x11bfe3,'change',()=>{this['_requireRevisionName']&&!_0x11bfe3['value']||this['fire']('setName',{'id':this['id'],'name':_0x11bfe3['value']}),_0x11bfe3['value']||(_0x11bfe3['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x5569fe,_0x45f3ae){const _0x3a0777=_0x26b2ca['fromJSDate'](_0x5569fe)['setLocale'](_0x45f3ae),_0x479e43=_0x26b2ca['local'](),_0x11d2cf=_0x479e43['minus']({'days':0x1})['startOf']('day');let _0x3e2edb,_0x3e2871;return _0x3a0777['hasSame'](_0x479e43,'day')?(_0x3e2edb=_0x3a0777['startOf']('day')['toJSDate'](),_0x3e2871=_0x3a0777['toRelativeCalendar']()):_0x3a0777['hasSame'](_0x11d2cf,'day')?(_0x3e2edb=_0x11d2cf['toJSDate'](),_0x3e2871=_0x3a0777['toRelativeCalendar']()):_0x3a0777['hasSame'](_0x479e43,'week')?(_0x3e2edb=_0x3a0777['startOf']('week')['toJSDate'](),_0x3e2871=_0x3a0777['weekdayLong']||''):_0x3a0777['hasSame'](_0x479e43,'year')?(_0x3e2edb=_0x3a0777['startOf']('month')['toJSDate'](),_0x3e2871=_0x3a0777['monthLong']||''):(_0x3e2edb=_0x3a0777['startOf']('year')['toJSDate'](),_0x3e2871=String(_0x3a0777['year'])),{'startDate':_0x3e2edb,'localizedPeriodName':_0x3e2871};}class bi extends _0x47987e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x559a29,_0x514ac8,_0x29c09e,_0x33dcb2){super(_0x559a29);const _0x1c89a6=li(_0x514ac8,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x514ac8,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x29c09e,this['_requireRevisionName']=_0x33dcb2,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':_0x1c89a6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2eec72){const _0x25e917=new _i(this['locale'],_0x2eec72,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x25e917);}['removeRevision'](_0xc46781){const _0x361011=this['revisionViews']['find'](_0x25d17f=>_0x25d17f['id']===_0xc46781['id']);this['revisionViews']['remove'](_0x361011);}}class fi extends _0x47987e{constructor(_0x1f797e){super(_0x1f797e);const _0x17da9f=new _0x26b0bd();_0x17da9f['content']=_0x1c60bc,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x17da9f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x1f797e,'Revision\x20history')]}]});}}class di extends _0x47987e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x452d4a,_0x3b5197,_0x2f7c26,_0x57a91d){super(_0x452d4a);const _0x262799=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3b5197,this['_revisionActions']=_0x2f7c26,this['_requireRevisionName']=_0x57a91d,this['on']('select',(_0xa57b5b,_0x5c1014)=>{this['fire']('revisionSelected',_0x5c1014);}),this['on']('setName',(_0x273b5b,_0x5e2d1c)=>{this['fire']('revisionSetName',_0x5e2d1c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x452d4a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x262799['if']('isEnabled','ck-disabled',_0x3f613a=>!_0x3f613a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x57b77c of this['_revisions'])this['_addRevision'](_0x57b77c);this['_revisions']['on']('add',(_0x361ca4,_0x4f4ded)=>{this['_addRevision'](_0x4f4ded);}),this['_revisions']['on']('remove',(_0x3234c5,_0x18689a)=>{this['_removeRevision'](_0x18689a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x53ba28=>_0x53ba28['revisionViews']['map'](_0x8e0970=>_0x8e0970))['flat']();}['selectRevision'](_0x52fc65){for(const _0x1d0f37 of this['revisionViews'])_0x52fc65&&_0x52fc65['id']===_0x1d0f37['id']?_0x1d0f37['select']():_0x1d0f37['deselect']();}['highlightRevisions'](_0x3d2d43){for(const _0x266ac4 of this['revisionViews'])_0x3d2d43['some'](({id:_0x453b42})=>_0x453b42===_0x266ac4['id'])?_0x266ac4['highlight']():_0x266ac4['unhighlight']();}['_addRevision'](_0x32b499){const _0xc09457=li(_0x32b499['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x42c99c=this['timePeriodViews']['get'](0x0);_0x42c99c&&_0x42c99c['startDate']['getTime']()===_0xc09457['getTime']()||(_0x42c99c=new bi(this['locale'],_0xc09457,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x42c99c)),_0x42c99c['addRevision'](_0x32b499);}['_removeRevision'](_0xc215d6){const _0x35ee6b=li(_0xc215d6['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x35ee6b)['removeRevision'](_0xc215d6);}['_getTimePeriodViewByStartDate'](_0x1f934b){return this['timePeriodViews']['find'](_0xb83d40=>_0xb83d40['startDate']['getTime']()===_0x1f934b['getTime']());}}class f extends _0x594d24{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
28
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x10e21d){super(_0x10e21d),this['_revisionViewer']=_0x10e21d['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x23c83b=this['_revisionsRepository']['_revisions'],_0xaad543=this['_createRevisionActions'](),_0x2ca1b2=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x23c83b,_0xaad543,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',(_0x1e8139,_0x118070)=>{_0x118070['revisionViews']['on']('add',(_0x584f46,_0x59bdd1)=>{_0x59bdd1['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)),_0x2ca1b2['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xfb38db=this['_revisionsRepository']['getRevision'](0x0);if(_0xfb38db){const _0x3b5b55=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xfb38db['id']);this['_revisionViewer']['compare'](_0xfb38db,_0x3b5b55);}}['_handleRevisionSelected'](_0x3994cb,_0x4a603e){const _0xaa7494=this['_revisionsRepository']['getRevision'](_0x4a603e['id']),_0x3fa675=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xaa7494['id']);this['_revisionViewer']['compare'](_0xaa7494,_0x3fa675);}['_handleRevisionSetName'](_0x435c1c,_0xe000fb){this['_revisionsRepository']['getRevision'](_0xe000fb['id'])['setName'](_0xe000fb['name']);}['_handleDiffChange'](_0x413f45,_0x3de9f7,_0x503880){const _0x3aa582=this['_revisionsRepository']['getRevisionsInDiff'](_0x503880);_0x3aa582['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3aa582),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3aa582[0x0]));}['_createRevisionActions'](){const _0x2c02df=this['editor'],_0x11035b=d['availableRevisionActions'],_0x1777ac=_0x2c02df['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x1777ac['length'])return _0x1777ac['map'](_0x19e7f3=>{const _0x278c84='string'==typeof _0x19e7f3?Object['assign']({},_0x11035b[_0x19e7f3]):_0x19e7f3;return _0x278c84['action']=_0x278c84['action']['bind'](this,_0x2c02df),_0x278c84['isVisible']&&(_0x278c84['isVisible']=_0x278c84['isVisible']['bind'](this,_0x2c02df)),_0x278c84;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1d8b76},_0xb07c68)=>{const _0xa29c6=_0x1d8b76['get'](m),_0x1774ec=_0xa29c6['repository'];let _0x49b207=_0xa29c6['diff']['newRevisionId'],_0x278658=_0xb07c68['id'];_0x1774ec['getIndex'](_0x49b207)>_0x1774ec['getIndex'](_0x278658)&&([_0x49b207,_0x278658]=[_0x278658,_0x49b207]),_0xa29c6['compare'](_0x49b207,_0x278658);},'isVisible':({plugins:_0x5e6718},_0x3aed36)=>{const _0x2c380d=_0x5e6718['get'](m);return!(_0x2c380d['repository']['getRevisionsInDiff'](_0x2c380d['diff'])['length']>0x2)&&!_0x3aed36['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4fb7f5,{id:_0x3ca327})=>{_0x4fb7f5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ca327);},'isVisible':({plugins:_0x2fe05b},_0x5c877e)=>!!_0x2fe05b['get'](m)['repository']['getLaterVisibleRevision'](_0x5c877e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x417346},{id:_0x1e3b90,revisionNameView:_0x3daf2f})=>{const _0x4a991f=_0x417346['get'](m),_0x2f5f78=_0x4a991f['repository']['getEarlierVisibleRevision'](_0x1e3b90);_0x4a991f['compare'](_0x1e3b90,_0x2f5f78),_0x3daf2f['focus'](),_0x3daf2f['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x570570,_0x589619){super(_0x570570),this['_view']=_0x589619,this['_toolbarConfig']=et(_0x570570['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x4b3b23){const _0x51f545=this['editor'],_0xc3fa88=this['view'],_0x3f841d=_0x51f545['editing']['view'],_0x4407ab=_0xc3fa88['editable'],_0x354312=_0x3f841d['document']['getRoot']();_0x4407ab['name']=_0x354312['rootName'],_0xc3fa88['render']();const _0x5edc62=_0x4407ab['element'];this['setEditableElement'](_0x4407ab['name'],_0x5edc62),_0xc3fa88['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3f841d['attachDomRoot'](_0x5edc62),this['_elementReplacer']['replace'](_0x4b3b23,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x11a79d=this['view'],_0x3ae122=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3ae122['detachDomRoot'](_0x11a79d['editable']['name']),_0x11a79d['destroy']();}['_initToolbar'](){const _0x246eda=this['view'];_0x246eda['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x246eda['stickyPanel']['limiterElement']=_0x246eda['element'],_0x246eda['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5aad9c})=>_0x5aad9c),_0x246eda['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x246eda['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4567dc,_0x497b37,_0x12aa0e={}){super(_0x4567dc),this['stickyPanel']=new ht(_0x4567dc),this['toolbar']=new dt(_0x4567dc,{'shouldGroupWhenFull':_0x12aa0e['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x4567dc,_0x497b37);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- _0x446a9a(_0x2d9f85){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2ef7d6,_0xf9202c){super(_0xf9202c),this['sourceElement']=_0x2ef7d6,this['model']['document']['createRoot']();const _0x4ac68f=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x4ac68f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x274f1d,_0x5cc034){const _0x31c4d1=new this(_0x274f1d,_0x5cc034);return await _0x31c4d1['initPlugins'](),await _0x31c4d1['ui']['init'](_0x274f1d),await _0x31c4d1['data']['init'](_0x31c4d1['config']['get']('initialData')||''),_0x31c4d1['fire']('ready'),_0x31c4d1;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x569b2d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x152976){function _0x1a9d3b(_0x4c49ed){return _0x4c49ed['map'](_0x47b0ff=>String['fromCharCode'](_0x47b0ff))['join']('');}super(_0x152976),this['result']='end',_0x152976[_0x1a9d3b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a9d3b([0x76,0x69,0x65,0x77])][_0x1a9d3b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a9d3b([0x61,0x75,0x74,0x6f]),_0x152976[_0x1a9d3b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1a9d3b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a9d3b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1a9d3b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1a9d3b([0x6f,0x6b])});}}class k extends _0x569b2d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x42dd5e){if(super(_0x42dd5e),!this['editor']['config']['get']('revisionHistory'))throw new _0x10de98('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4e6bb9=>this['_showRevisionViewer']({..._0x4e6bb9,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xb7b56c=>this['_closeRevisionViewer'](_0xb7b56c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x430ec5=>this['_restoreRevision'](_0x430ec5)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3e5e3c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3e5e3c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x102aeb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x102aeb);}['getRevision'](_0xfe193a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xfe193a);}['getRevisions'](_0x3d7000){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3d7000||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x360731=this['editor'],_0x4dfff3=_0x4c78ca(_0x360731,p),_0x349f78=_0x360731['plugins']['get']('RevisionTracker'),_0x2e2f1c=_0x360731['plugins']['get']('Users')['users'];return _0x4dfff3['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4dfff3['lazyRoots'],(_0x4dfff3['plugins']['push'](_t,m,R,class extends _0x569b2d{static get['requires'](){return[m,'Users'];}['init'](){const _0x1ebf57=this['editor']['plugins']['get']('Users');for(const _0x4cf2e1 of _0x2e2f1c)_0x4cf2e1['isAnonymous']||_0x1ebf57['getUser'](_0x4cf2e1['id'])||_0x1ebf57['addUser'](_0x4cf2e1);const _0x9f6c9b=_0x349f78['repository']['getRevisions']();let _0x1616d2=null;const _0x1d3524=this['editor']['plugins']['get']('RevisionViewer');_0x1d3524['adapter']=_0x349f78['adapter'],_0x1d3524['bind']('isEnabled')['to'](_0x349f78),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x360731,'isReadOnly',_0x2d0872=>!_0x2d0872);for(const _0x11d990 of _0x9f6c9b){const _0x377131=null===_0x11d990['creator'];if(_0x377131&&_0x11d990['toVersion']===_0x11d990['fromVersion'])continue;const _0x189e9a=_0x11d990['toJSON']();_0x1d3524['addRevisionData'](_0x189e9a,(_0x4c9d5d,_0x4ae057,_0x3f8852)=>{if(_0x377131){if(_0x1616d2)_0x1616d2['_update'](_0x4c9d5d,_0x4ae057);else{if(!_0x4ae057){const _0x15371b=_0x3f8852['toJSON']();_0x15371b['id']=_0x21b6c1(),_0x349f78['saveRevision'](_0x15371b,_0x3f8852['toVersion'])['then'](_0x10cf77=>{_0x1616d2=_0x10cf77;});}}}else _0x11d990['_update'](_0x4c9d5d,_0x4ae057);});}}},d),_0x4dfff3);}['_enhanceShowRevisionViewerCallback'](){const _0x4c7bc2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x36d1d8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xfb2a09=this['editor']['plugins']['get']('Autosave');await _0xfb2a09['save']();}else await _0x36d1d8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x54d368=this['editor']['plugins']['get']('Dialog');_0x54d368['isOpen']&&_0x54d368['hide']();}const _0x27ff36=this['_getRevisionViewerEditorConfig']();return _0x4c7bc2(_0x27ff36)['then'](_0x551051=>{return(this['_viewerEditor']=_0x551051,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x551051);})['catch'](_0x3f238c=>(console['error'](_0x3f238c),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2e56e7=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2e56e7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2c5a61=this['editor']['plugins']['get']('Annotations');_0x2c5a61['refreshVisibility'](),_0x2c5a61['refreshPositioning']();}})));}['_showRevisionViewer'](_0x534620){const _0x4321e0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5f4aec=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x39c9dc=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x39c9dc,_0x534620)['then'](_0x3515c1=>(_0x5f4aec['style']['display']='block',_0x4321e0['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x3515c1));}['_closeRevisionViewer'](_0x1f0f25){const _0x242ab7=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x242ab7['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1f0f25['destroy']();}async['_restoreRevision'](_0x585c59){const _0x8cd57a=this['editor'],_0x44e175=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x46bb1f=_0x8cd57a['plugins']['get']('RevisionTracker'),_0xcbe2a3=_0x8cd57a['plugins']['get']('RevisionHistoryUtils'),_0x3af602=_0x44e175['repository']['getRevision'](_0x585c59);let _0x1fb9c9,_0x70c1d8,_0xd5f7df;try{await _0xcbe2a3['loadRevisionData'](_0x3af602,this['adapter']),_0x1fb9c9=_0xcbe2a3['getRevisionDocumentData'](_0x3af602),_0x70c1d8=_0xcbe2a3['getRevisionRootsAttributes'](_0x3af602);}catch(_0x230973){return void console['error'](_0x230973);}_0x8cd57a['model']['change'](_0x33b771=>{for(const _0x1a9173 of Array['from'](_0x8cd57a['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x33b771['removeMarker'](_0x1a9173);}),_0x44e175['isReady']=!0x1,_0x8cd57a['model']['enqueueChange'](_0x13d477=>{_0x13d477['setSelection'](null),_0x13d477['removeSelectionAttribute'](_0x8cd57a['model']['document']['selection']['getAttributeKeys']());const _0x1efe5b=Object['keys'](_0x1fb9c9);for(const _0x2db1f8 of _0x8cd57a['model']['document']['roots'])'$graveyard'!=_0x2db1f8['rootName']&&_0x2db1f8['isAttached']()&&!_0x1efe5b['includes'](_0x2db1f8['rootName'])&&_0x13d477['detachRoot'](_0x2db1f8);for(const _0x1132ef of _0x1efe5b){let _0x5dcb5e=_0x8cd57a['model']['document']['getRoot'](_0x1132ef);_0x5dcb5e&&_0x5dcb5e['isAttached']()||(_0x5dcb5e=_0x13d477['addRoot'](_0x1132ef));const _0x57ec8e=_0x70c1d8[_0x1132ef],_0xf59993=Object['keys'](_0x57ec8e),_0x4a584a=_0x1fb9c9[_0x1132ef];for(const _0x2337e4 of _0x5dcb5e['getAttributeKeys']())_0xf59993['includes'](_0x2337e4)||_0x13d477['removeAttribute'](_0x2337e4,_0x5dcb5e);for(const _0x13b95a of _0xf59993)_0x13d477['setAttribute'](_0x13b95a,_0x70c1d8[_0x1132ef][_0x13b95a],_0x5dcb5e);_0x13d477['remove'](_0x13d477['createRangeIn'](_0x5dcb5e)),_0x13d477['insert'](_0x8cd57a['data']['parse'](_0x4a584a,_0x5dcb5e),_0x5dcb5e,0x0);}});const _0x4769d0=g(_0x8cd57a['locale'],'Restored');if(_0x3af602['name'])_0xd5f7df=-0x1==_0x3af602['name']['indexOf'](_0x4769d0)?_0x4769d0+':\x20'+_0x3af602['name']:_0x3af602['name'];else _0xd5f7df=_0x4769d0+':\x20'+(_0x3af602['createdAt']['toLocaleDateString'](_0x8cd57a['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3af602['createdAt']['toLocaleTimeString'](_0x8cd57a['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x46bb1f['saveRevision']({'name':_0xd5f7df}),_0x44e175['isReady']=!0x0,_0x8cd57a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
29
+ at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x301633){super(_0x301633),this['_revisionViewer']=_0x301633['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x28bb17=this['_revisionsRepository']['_revisions'],_0x1dc0fe=this['_createRevisionActions'](),_0x38b1b8=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x28bb17,_0x1dc0fe,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',(_0x4f7899,_0xc758f1)=>{_0xc758f1['revisionViews']['on']('add',(_0xb4e5f7,_0x3d2a04)=>{_0x3d2a04['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)),_0x38b1b8['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x24668e=this['_revisionsRepository']['getRevision'](0x0);if(_0x24668e){const _0x3ad0af=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x24668e['id']);this['_revisionViewer']['compare'](_0x24668e,_0x3ad0af);}}['_handleRevisionSelected'](_0x1f71d1,_0x2d6e5a){const _0x12b6a2=this['_revisionsRepository']['getRevision'](_0x2d6e5a['id']),_0x4e54ca=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x12b6a2['id']);this['_revisionViewer']['compare'](_0x12b6a2,_0x4e54ca);}['_handleRevisionSetName'](_0x539709,_0x34d2e7){this['_revisionsRepository']['getRevision'](_0x34d2e7['id'])['setName'](_0x34d2e7['name']);}['_handleDiffChange'](_0x2b9116,_0x382dec,_0x1e8d37){const _0x148403=this['_revisionsRepository']['getRevisionsInDiff'](_0x1e8d37);_0x148403['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x148403),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x148403[0x0]));}['_createRevisionActions'](){const _0x165321=this['editor'],_0x248427=f['availableRevisionActions'],_0x27084c=_0x165321['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x27084c['length'])return _0x27084c['map'](_0x4053ca=>{const _0x1cbfc5='string'==typeof _0x4053ca?Object['assign']({},_0x248427[_0x4053ca]):_0x4053ca;return _0x1cbfc5['action']=_0x1cbfc5['action']['bind'](this,_0x165321),_0x1cbfc5['isVisible']&&(_0x1cbfc5['isVisible']=_0x1cbfc5['isVisible']['bind'](this,_0x165321)),_0x1cbfc5;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x15f535},_0x4117f6)=>{const _0x46d460=_0x15f535['get'](l),_0x30873c=_0x46d460['repository'];let _0x5766f7=_0x46d460['diff']['newRevisionId'],_0x28432e=_0x4117f6['id'];_0x30873c['getIndex'](_0x5766f7)>_0x30873c['getIndex'](_0x28432e)&&([_0x5766f7,_0x28432e]=[_0x28432e,_0x5766f7]),_0x46d460['compare'](_0x5766f7,_0x28432e);},'isVisible':({plugins:_0x1799fb},_0x3cd3c9)=>{const _0x4edea7=_0x1799fb['get'](l);return!(_0x4edea7['repository']['getRevisionsInDiff'](_0x4edea7['diff'])['length']>0x2)&&!_0x3cd3c9['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x11cf40,{id:_0xf5e23e})=>{_0x11cf40['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xf5e23e);},'isVisible':({plugins:_0x3caa2e},_0x3f4917)=>!!_0x3caa2e['get'](l)['repository']['getLaterVisibleRevision'](_0x3f4917['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4216e4},{id:_0x1a2125,revisionNameView:_0x5ed76c})=>{const _0x24f936=_0x4216e4['get'](l),_0x7a0573=_0x24f936['repository']['getEarlierVisibleRevision'](_0x1a2125);_0x24f936['compare'](_0x1a2125,_0x7a0573),_0x5ed76c['focus'](),_0x5ed76c['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xc1ac61,_0x1e57b6){super(_0xc1ac61),this['_view']=_0x1e57b6,this['_toolbarConfig']=st(_0xc1ac61['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x5476d0){const _0x478d5b=this['editor'],_0x180280=this['view'],_0x3c6f10=_0x478d5b['editing']['view'],_0x264e0c=_0x180280['editable'],_0x28a81e=_0x3c6f10['document']['getRoot']();_0x264e0c['name']=_0x28a81e['rootName'],_0x180280['render']();const _0x566634=_0x264e0c['element'];this['setEditableElement'](_0x264e0c['name'],_0x566634),_0x180280['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3c6f10['attachDomRoot'](_0x566634),this['_elementReplacer']['replace'](_0x5476d0,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3dfc1c=this['view'],_0x281cad=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x281cad['detachDomRoot'](_0x3dfc1c['editable']['name']),_0x3dfc1c['destroy']();}['_initToolbar'](){const _0x35469f=this['view'];_0x35469f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x35469f['stickyPanel']['limiterElement']=_0x35469f['element'],_0x35469f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1dc8e9})=>_0x1dc8e9),_0x35469f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x35469f['toolbar']);}}class ii extends _0x5c6dee{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x22a21d,_0x56b8b2,_0x166ae6={}){super(_0x22a21d),this['stickyPanel']=new _0x4a5029(_0x22a21d),this['toolbar']=new _0x443442(_0x22a21d,{'shouldGroupWhenFull':_0x166ae6['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x22a21d,_0x56b8b2);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
30
+ _0x2cebf3(_0x5d886f){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3a39dc,_0x4863ed){super(_0x4863ed),this['sourceElement']=_0x3a39dc,this['model']['document']['createRoot']();const _0x35c209=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x35c209);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x946fb4,_0x1433a0){const _0x2e32e2=new this(_0x946fb4,_0x1433a0);return await _0x2e32e2['initPlugins'](),await _0x2e32e2['ui']['init'](_0x946fb4),await _0x2e32e2['data']['init'](_0x2e32e2['config']['get']('initialData')||''),_0x2e32e2['fire']('ready'),_0x2e32e2;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x594d24{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1451d5){function _0x3fe888(_0x44ef1c){return _0x44ef1c['map'](_0x1a4f58=>String['fromCharCode'](_0x1a4f58))['join']('');}super(_0x1451d5),this['result']='end',_0x1451d5[_0x3fe888([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fe888([0x76,0x69,0x65,0x77])][_0x3fe888([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fe888([0x61,0x75,0x74,0x6f]),_0x1451d5[_0x3fe888([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3fe888([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fe888([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3fe888([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3fe888([0x6f,0x6b])});}}class ct extends _0x594d24{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x576558){if(super(_0x576558),!this['editor']['config']['get']('revisionHistory'))throw new _0x4303f6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4ff420=>this['_showRevisionViewer']({..._0x4ff420,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x35a05c=>this['_closeRevisionViewer'](_0x35a05c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x548134=>this['_restoreRevision'](_0x548134)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x136d0c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x136d0c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x300488){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x300488);}['getRevision'](_0x5e10bd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5e10bd);}['getRevisions'](_0x5d9fe9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5d9fe9||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5ecc94=this['editor'],_0x20f8c5=_0x2648be(_0x5ecc94,d),_0x2c5da0=_0x5ecc94['plugins']['get']('RevisionTracker'),_0x88d768=_0x5ecc94['plugins']['get']('Users')['users'];return _0x20f8c5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x20f8c5['lazyRoots'],(_0x20f8c5['plugins']['push'](ht,l,u,class extends _0x594d24{static get['requires'](){return[l,'Users'];}['init'](){const _0x130b6a=this['editor']['plugins']['get']('Users');for(const _0x5f53ec of _0x88d768)_0x5f53ec['isAnonymous']||_0x130b6a['getUser'](_0x5f53ec['id'])||_0x130b6a['addUser'](_0x5f53ec);const _0x32830d=_0x2c5da0['repository']['getRevisions']();let _0x39183c=null;const _0x5d3528=this['editor']['plugins']['get']('RevisionViewer');_0x5d3528['adapter']=_0x2c5da0['adapter'],_0x5d3528['bind']('isEnabled')['to'](_0x2c5da0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5ecc94,'isReadOnly',_0xdac6ee=>!_0xdac6ee);for(const _0x3cf0bd of _0x32830d){const _0x91c1e4=null===_0x3cf0bd['creator'];if(_0x91c1e4&&_0x3cf0bd['toVersion']===_0x3cf0bd['fromVersion'])continue;const _0x38a117=_0x3cf0bd['toJSON']();_0x5d3528['addRevisionData'](_0x38a117,(_0x4d29d1,_0x533e4b,_0x43c14d)=>{if(_0x91c1e4){if(_0x39183c)_0x39183c['_update'](_0x4d29d1,_0x533e4b);else{if(!_0x533e4b){const _0xb55565=_0x43c14d['toJSON']();_0xb55565['id']=_0x29d31e(),_0x2c5da0['saveRevision'](_0xb55565,_0x43c14d['toVersion'])['then'](_0x5bd43e=>{_0x39183c=_0x5bd43e;});}}}else _0x3cf0bd['_update'](_0x4d29d1,_0x533e4b);});}}},f),_0x20f8c5);}['_enhanceShowRevisionViewerCallback'](){const _0x276316=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4fd699=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x57498a=this['editor']['plugins']['get']('Autosave');await _0x57498a['save']();}else await _0x4fd699['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x31b282=this['editor']['plugins']['get']('Dialog');_0x31b282['isOpen']&&_0x31b282['hide']();}const _0x18a7b4=this['_getRevisionViewerEditorConfig']();return _0x276316(_0x18a7b4)['then'](_0x3f5a27=>{return(this['_viewerEditor']=_0x3f5a27,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x3f5a27);})['catch'](_0x2f197b=>(console['error'](_0x2f197b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4ee42c=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4ee42c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x30aa22=this['editor']['plugins']['get']('Annotations');_0x30aa22['refreshVisibility'](),_0x30aa22['refreshPositioning']();}})));}['_showRevisionViewer'](_0x23aabe){const _0x1169b7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x34216a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4d5763=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4d5763,_0x23aabe)['then'](_0xfb123a=>(_0x34216a['style']['display']='block',_0x1169b7['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xfb123a));}['_closeRevisionViewer'](_0x342705){const _0x350d2b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x350d2b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x342705['destroy']();}async['_restoreRevision'](_0x23c468){const _0x4810c=this['editor'],_0xc48f54=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3dd0af=_0x4810c['plugins']['get']('RevisionTracker'),_0x4f3663=_0x4810c['plugins']['get']('RevisionHistoryUtils'),_0x113a3f=_0xc48f54['repository']['getRevision'](_0x23c468);let _0x5603eb,_0x5cb072,_0xbd0e02;try{await _0x4f3663['loadRevisionData'](_0x113a3f,this['adapter']),_0x5603eb=_0x4f3663['getRevisionDocumentData'](_0x113a3f),_0x5cb072=_0x4f3663['getRevisionRootsAttributes'](_0x113a3f);}catch(_0x4596be){return void console['error'](_0x4596be);}_0x4810c['model']['change'](_0x233c44=>{for(const _0xf4ef3b of Array['from'](_0x4810c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x233c44['removeMarker'](_0xf4ef3b);}),_0xc48f54['isReady']=!0x1,_0x4810c['model']['enqueueChange'](_0x51e502=>{_0x51e502['setSelection'](null),_0x51e502['removeSelectionAttribute'](_0x4810c['model']['document']['selection']['getAttributeKeys']());const _0x449ab6=Object['keys'](_0x5603eb);for(const _0x3c98ac of _0x4810c['model']['document']['roots'])'$graveyard'!=_0x3c98ac['rootName']&&_0x3c98ac['isAttached']()&&!_0x449ab6['includes'](_0x3c98ac['rootName'])&&_0x51e502['detachRoot'](_0x3c98ac);for(const _0x49cc0a of _0x449ab6){let _0x2138c0=_0x4810c['model']['document']['getRoot'](_0x49cc0a);_0x2138c0&&_0x2138c0['isAttached']()||(_0x2138c0=_0x51e502['addRoot'](_0x49cc0a));const _0x5cf63d=_0x5cb072[_0x49cc0a],_0x514eb8=Object['keys'](_0x5cf63d),_0x42f186=_0x5603eb[_0x49cc0a];for(const _0x307e49 of _0x2138c0['getAttributeKeys']())_0x514eb8['includes'](_0x307e49)||_0x51e502['removeAttribute'](_0x307e49,_0x2138c0);for(const _0x4aa780 of _0x514eb8)_0x51e502['setAttribute'](_0x4aa780,_0x5cb072[_0x49cc0a][_0x4aa780],_0x2138c0);_0x51e502['remove'](_0x51e502['createRangeIn'](_0x2138c0)),_0x51e502['insert'](_0x4810c['data']['parse'](_0x42f186,_0x2138c0),_0x2138c0,0x0);}});const _0x19ba4d=R(_0x4810c['locale'],'Restored');if(_0x113a3f['name'])_0xbd0e02=-0x1==_0x113a3f['name']['indexOf'](_0x19ba4d)?_0x19ba4d+':\x20'+_0x113a3f['name']:_0x113a3f['name'];else _0xbd0e02=_0x19ba4d+':\x20'+(_0x113a3f['createdAt']['toLocaleDateString'](_0x4810c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x113a3f['createdAt']['toLocaleTimeString'](_0x4810c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3dd0af['saveRevision']({'name':_0xbd0e02}),_0xc48f54['isReady']=!0x0,_0x4810c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};