@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250120.0 → 0.0.0-nightly-20250121.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +8 -8
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x153256,uid as _0x1de225,Collection as _0x369930,logWarning as _0x31f83f,FocusTracker as _0x46dc44,KeystrokeHandler as _0x3c8938,scrollViewportToShowTarget as _0x54a603,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x404111}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x140c2b,set as _0xfa1a26,unset as _0x431668,isEqual as _0x4852ea}from'lodash-es';import{Plugin as _0x46c671,PendingActions as _0x581fb9,icons as _0x36297c,Command as _0x49e04e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5bda76,getMarkerDomElement as _0x1adcad,ConfirmMixin as _0x1d95fd,sanitizeEditorConfig as _0x587d03}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2ec321,ViewText as _0x5aeb6e,ViewElement as _0x3d1ce6,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x12a9ad,ViewAttributeElement as _0x276013,ViewEmptyElement as _0x57a21f,ViewRawElement as _0x347dc5,ViewUIElement as _0x18c6ed,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x3191d2,injectCssTransitionDisabler as ts,submitHandler as _0x2d472c,LabeledFieldView as nt,createLabeledInputText as _0x101bc4,createDropdown as _0x4ce21a,ListView as _0x4cd0b4,ListItemView as _0x26a18a,ButtonView as _0x5d5006,MenuBarMenuView as _0x37fedc,MenuBarMenuListView as _0x1a6348,MenuBarMenuListItemView as _0x48e1ba,MenuBarMenuListItemButtonView as _0x4b263a,ContextualBalloon as _0xeb8c9,ToolbarSeparatorView as _0x1c1102,IconView as _0x3ca579,addListToDropdown as _0x32e9dd,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x459ebb}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x153256(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xbeb02f){super(),this['id']=_0xbeb02f['id']||_0x1de225(),this['creator']=_0xbeb02f['creator']||null,this['authors']=_0xbeb02f['authors']||[],this['diffData']=_0xbeb02f['diffData']||null,this['toVersion']=_0xbeb02f['toVersion']||0x0,this['fromVersion']=_0xbeb02f['fromVersion']||0x0,this['set']('name',_0xbeb02f['name']||''),this['set']('createdAt',_0xbeb02f['createdAt']||new Date()),this['set']('attributes',_0xbeb02f['attributes']||{});}['setName'](_0x1a942b){this['_update']({'name':_0x1a942b});}['setAttribute'](_0x1b695f,_0x2810f4){const _0x12d4d2=_0x140c2b(this['attributes']);_0xfa1a26(_0x12d4d2,_0x1b695f,_0x2810f4),this['_update']({'attributes':_0x12d4d2});}['removeAttribute'](_0x2029e8){const _0x4adb72=_0x140c2b(this['attributes']);_0x431668(_0x4adb72,_0x2029e8),this['_update']({'attributes':_0x4adb72});}['_update'](_0xcb916a,_0x7d5b3e=!0x1){let _0x5bd6a9=!0x1;const _0x236f8f={'id':this['id']},_0xc50d42=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4c9997 of _0xc50d42){const _0x1652a8=_0xcb916a[_0x4c9997];void 0x0!==_0x1652a8&&_0x1652a8!==this[_0x4c9997]&&(this[_0x4c9997]=_0x1652a8,_0x236f8f[_0x4c9997]=_0x1652a8,_0x5bd6a9=!0x0);}_0x5bd6a9&&(_0x236f8f['authors']&&(_0x236f8f['authorsIds']=_0x236f8f['authors']['map'](_0x360349=>_0x360349['id']),delete _0x236f8f['authors']),this['fire']('_update',_0x236f8f,_0x7d5b3e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2f0c02=>_0x2f0c02['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x46c671{['_revisions'];static get['requires'](){return[_0x5bda76];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x525469){super(_0x525469),this['_revisions']=new _0x369930();}['afterInit'](){!async function(_0xbf7686){const _0x2ff29f=_0x3be786([0x6a,0x4c,0x67,0x75,0x52,0x6c,0x45,0x31,0x56,0x43,0x71,0x5a,0x64,0x62,0x74,0x73,0x54,0x33,0x38,0x32,0x69,0x48,0x72,0x35,0x51,0x4d,0x30,0x76,0x6b,0x77,0x36,0x47,0x68,0x4e,0x42,0x44,0x39,0x6e,0x59,0x79,0x55,0x70,0x49,0x34,0x37,0x50,0x65,0x7a,0x4b,0x53,0x6d,0x66,0x61,0x6f,0x4f,0x57,0x41,0x46,0x78,0x63,0x58,0x4a]),_0xbf4f0a=0xeb829,_0x3b3986=0x7d1a394a,_0x3e5afe=0x7d1d646a^_0x3b3986,_0x36a36e=window[_0x3be786([0x44,0x61,0x74,0x65])][_0x3be786([0x6e,0x6f,0x77])](),_0x5040be=_0xbf7686[_0x3be786([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa952d6=new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf2e087=>{_0x5040be[_0x3be786([0x6f,0x6e,0x63,0x65])](_0x3be786([0x72,0x65,0x61,0x64,0x79]),_0xf2e087);}),_0x250712={[_0x3be786([0x6b,0x74,0x79])]:_0x3be786([0x45,0x43]),[_0x3be786([0x75,0x73,0x65])]:_0x3be786([0x73,0x69,0x67]),[_0x3be786([0x63,0x72,0x76])]:_0x3be786([0x50,0x2d,0x32,0x35,0x36]),[_0x3be786([0x78])]:_0x3be786([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]),[_0x3be786([0x79])]:_0x3be786([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]),[_0x3be786([0x61,0x6c,0x67])]:_0x3be786([0x45,0x53,0x32,0x35,0x36])},_0x19ffe2=_0x5040be[_0x3be786([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3be786([0x67,0x65,0x74])](_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e65bd(){let _0x44039c,_0x52ea7b=null,_0x5e0560=null;try{if(_0x19ffe2==_0x3be786([0x47,0x50,0x4c]))return _0x3be786([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44039c=_0x3a8b49(),!_0x44039c)return _0x3be786([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44039c[_0x3be786([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e0560=_0x3b1210(_0x44039c[_0x3be786([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44039c[_0x3be786([0x6a,0x74,0x69])])),await _0x2399bd()?_0x4327c8()?_0x5558ca()?_0x3be786([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x353200()?(_0x44039c[_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3be786([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x52ea7b=_0x252ab2(_0x3be786([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44039c[_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3be786([0x74,0x72,0x69,0x61,0x6c])&&(_0x52ea7b=_0x252ab2(_0x3be786([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x44039c[_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3be786([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x52ea7b=_0x252ab2(_0x3be786([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a1231()):_0x3be786([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3be786([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3be786([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x44e08b){return _0x3be786([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5558ca(){const _0x4cbd38=[_0x3be786([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3be786([0x74,0x72,0x69,0x61,0x6c])][_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44039c[_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36a36e/0x3e8:0xe10*_0x3e5afe;return _0x44039c[_0x3be786([0x65,0x78,0x70])]<_0x4cbd38;}function _0x4327c8(){const _0x50a1d7=_0x44039c[_0x3be786([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x50a1d7)return!0x1;if(_0x50a1d7[_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3be786([0x2a])))return!0x0;if(_0x50a1d7[_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3be786([0x52,0x48])))return!0x0;if(_0x50a1d7[_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3be786([0x52,0x52,0x48]))){if(_0x48840f())return!0x0;if(_0x12f23c()||_0x358fb9())return!0x0;}return!0x1;}function _0x353200(){const _0x198352=_0x44039c[_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x198352||0x0==_0x198352[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f48c7}=new URL(window[_0x3be786([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x198352[_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f48c7))return!0x0;const _0x5f483e=_0x1f48c7[_0x3be786([0x73,0x70,0x6c,0x69,0x74])](_0x3be786([0x2e]));return _0x198352[_0x3be786([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54d57a=>_0x54d57a[_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3be786([0x2a])))[_0x3be786([0x6d,0x61,0x70])](_0x2e3c6a=>_0x2e3c6a[_0x3be786([0x73,0x70,0x6c,0x69,0x74])](_0x3be786([0x2e])))[_0x3be786([0x73,0x6f,0x6d,0x65])](_0x597a6c=>_0x5f483e[_0x3be786([0x65,0x76,0x65,0x72,0x79])]((_0x1c9baa,_0xf8c9d2)=>_0x597a6c[_0xf8c9d2]===_0x1c9baa||_0x597a6c[_0xf8c9d2]===_0x3be786([0x2a])));}function _0x5a1231(){return _0x52ea7b&&_0x5e0560?new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9b0c,_0x43abc3)=>{_0x52ea7b[_0x3be786([0x74,0x68,0x65,0x6e])](_0x2d9b0c,_0x43abc3),_0x5e0560[_0x3be786([0x74,0x68,0x65,0x6e])](_0x187dd6=>{_0x187dd6!=_0x3be786([0x56,0x61,0x6c,0x69,0x64])&&_0x2d9b0c(_0x187dd6);},_0x43abc3);}):_0x52ea7b||_0x5e0560||_0x3be786([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b1210(_0x2b6011,_0x264ae2){return new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c6ea2=>{if(_0x55ffc9())return _0x5c6ea2(_0x3be786([0x56,0x61,0x6c,0x69,0x64]));_0x6a4dd5(),_0x5040be[_0x3be786([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3be786([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4094c7=!0x1;const _0xdc3a62=_0x1de225();function _0x34cf69(_0x309b59){return!!_0x309b59&&(typeof _0x309b59===_0x3be786([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x309b59===_0x3be786([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x309b59[_0x3be786([0x74,0x68,0x65,0x6e])]===_0x3be786([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x309b59[_0x3be786([0x63,0x61,0x74,0x63,0x68])]===_0x3be786([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d2358(_0x6f6317){_0x3f4d9(_0x6f6317)[_0x3be786([0x74,0x68,0x65,0x6e])](_0xb06052=>{if(!_0xb06052||_0xb06052[_0x3be786([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3be786([0x6f,0x6b]))return _0x3be786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8348f(_0x11f52f(_0xdc3a62+_0x264ae2))!=_0xb06052[_0x3be786([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3be786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3be786([0x56,0x61,0x6c,0x69,0x64]);})[_0x3be786([0x74,0x68,0x65,0x6e])](_0x58e2a6=>(_0x3c8967(),_0x58e2a6),()=>{const _0x3d3133=_0x129326();return null==_0x3d3133?(_0x3c8967(),_0x3be786([0x56,0x61,0x6c,0x69,0x64])):_0x3be786(_0x36a36e-_0x3d3133>(0x5916bd4a^_0x3b3986)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3be786([0x74,0x68,0x65,0x6e])](_0x5c6ea2)[_0x3be786([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c6ea2(_0x3be786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b3ae5=0x7d2cd7ca^_0x3b3986;function _0x3c8967(){const _0x5bb578=_0x3be786([0x6c,0x6c,0x63,0x74,0x2d])+_0x8348f(_0x11f52f(_0x2b6011)),_0x5d3923=_0x3aa9a2(_0x8348f(window[_0x3be786([0x4d,0x61,0x74,0x68])][_0x3be786([0x63,0x65,0x69,0x6c])](_0x36a36e/_0x5b3ae5)));window[_0x3be786([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3be786([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bb578,_0x5d3923);}function _0x129326(){const _0x86940=_0x3be786([0x6c,0x6c,0x63,0x74,0x2d])+_0x8348f(_0x11f52f(_0x2b6011)),_0x200c8f=window[_0x3be786([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3be786([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x86940);return _0x200c8f?window[_0x3be786([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3aa9a2(_0x200c8f),0x10)*_0x5b3ae5:null;}function _0x3f4d9(_0xa3e2ce){return new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x172238,_0x480525)=>{_0xa3e2ce[_0x3be786([0x74,0x68,0x65,0x6e])](_0x172238,_0x480525),window[_0x3be786([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x480525,0x7d1bed8a^_0x3b3986);});}}_0x5040be[_0x3be786([0x6f,0x6e])](_0x3be786([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd94f3a,_0x3686d4)=>{if(_0x3686d4[0x0]!=_0x2b6011)return _0x5c6ea2(_0x3be786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3686d4[0x1]={..._0x3686d4[0x1],[_0x3be786([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xdc3a62};},{[_0x3be786([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3be786([0x68,0x69,0x67,0x68])}),_0x5040be[_0x3be786([0x6f,0x6e])](_0x3be786([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x350e18=>{_0x34cf69(_0x350e18[_0x3be786([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4094c7=!0x0,_0x2d2358(_0x350e18[_0x3be786([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3be786([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3be786([0x6c,0x6f,0x77])}),_0xa952d6[_0x3be786([0x74,0x68,0x65,0x6e])](()=>{_0x4094c7||_0x5c6ea2(_0x3be786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55ffc9(){return _0x5040be[_0x3be786([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3be786([0x76,0x69,0x65,0x77])][_0x3be786([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3be786([0x61,0x75,0x74,0x6f]);}function _0x6a4dd5(){_0x5040be[_0x3be786([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3be786([0x76,0x69,0x65,0x77])][_0x3be786([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3be786([0x61,0x75,0x74,0x6f]);}}function _0x252ab2(_0x59e6c4){const _0xd2baa1=[new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264c7a=>setTimeout(_0x264c7a,0x7d130786^_0x3b3986)),_0xa952d6[_0x3be786([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c23a6=>{const _0x5a33a3=0x7d1a394d^_0x3b3986,_0x51c4e4=_0xbf7686[_0x3be786([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x54c699(){_0x51c4e4[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5a33a3&&_0x1c23a6();}_0x54c699(),_0x51c4e4[_0x3be786([0x6f,0x6e])](_0x3be786([0x61,0x64,0x64]),_0x54c699);})),new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53b3a4=>{function _0x54db48(){for(const _0x635087 in window)if(window[_0x3be786([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3be786([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x635087))&&window[_0x635087]==_0xbf4f0a)return _0x53b3a4();_0x5040be[_0x3be786([0x73,0x74,0x61,0x74,0x65])]!=_0x3be786([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3be786([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54db48,0x7d1a2ac2^_0x3b3986);}_0x28eb39(_0x3be786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x54db48();})];return window[_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3be786([0x72,0x61,0x63,0x65])](_0xd2baa1)[_0x3be786([0x74,0x68,0x65,0x6e])](()=>_0x59e6c4);}async function _0x3ac9c4(){if(await _0xa952d6,_0x28eb39(_0x3be786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x28dd01=_0xbf7686[_0x3be786([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x53a61c=_0xbf7686[_0x3be786([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])](_0x28dd01[_0x3be786([0x69,0x64])]),_0x3f62a6=_0x9657c8(_0x3be786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3f62a6[_0x3be786([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x28dd01['id'],_0x53a61c?_0x53a61c['id']:null,!0x0),_0x3f62a6[_0x3be786([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3be786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3f62a6[_0x3be786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3f62a6[_0x3be786([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4206b8,void(_0x3f62a6[_0x3be786([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4206b8);}if(_0x28eb39(_0x3be786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4b3294=_0x9657c8(_0x3be786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4b3294[_0x3be786([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3be786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4b3294[_0x3be786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4b3294[_0x3be786([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4206b8,_0x4b3294[_0x3be786([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4206b8;}_0x5040be[_0x3be786([0x6d,0x6f,0x64,0x65,0x6c])][_0x3be786([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4206b8,_0x5040be[_0x3be786([0x6d,0x6f,0x64,0x65,0x6c])][_0x3be786([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4206b8,_0x5040be[_0x3be786([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3be786([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48840f(){return _0x28eb39(_0x3be786([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x9657c8(_0x3be786([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3be786([0x73,0x74,0x61,0x74,0x65])]==_0x3be786([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x12f23c(){return _0x28eb39(_0x3be786([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 _0x358fb9(){return _0x28eb39(_0x3be786([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xfa1bdd(_0x1c6e99){const _0x11776a=_0x130f0c();_0x5040be[_0x11776a]=_0x3be786([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])+_0x1c6e99,_0x1c6e99[_0x3be786([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3be786([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x130f0c()]=_0xbf4f0a),_0x1c6e99!=_0x3be786([0x56,0x61,0x6c,0x69,0x64])&&_0x3ac9c4();}function _0x130f0c(){const _0x2a229c=window[_0x3be786([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3be786([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3be786([0x6e,0x6f,0x77])]())[_0x3be786([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3be786([0x2e]),'');let _0x1a5552=_0x3be786([0x6a]);for(let _0x1fd1b4=0x0;_0x1fd1b4<_0x2a229c[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fd1b4+=0x2){let _0x25178a=window[_0x3be786([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a229c[_0x3be786([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fd1b4,_0x1fd1b4+0x2));_0x25178a>=_0x2ff29f[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25178a-=_0x2ff29f[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a5552+=_0x2ff29f[_0x25178a];}return _0x1a5552;}function _0x3a8b49(){const _0x3d59d9=_0x19ffe2[_0x3be786([0x73,0x70,0x6c,0x69,0x74])](_0x3be786([0x2e]));if(0x3!=_0x3d59d9[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c2ada(_0x3d59d9[0x1]);function _0x2c2ada(_0x1548d1){const _0xe2319a=_0x41ab5c(_0x1548d1);return _0xe2319a&&_0x1c491b()?_0xe2319a:null;function _0x1c491b(){const _0x5ba5d0=_0xe2319a[_0x3be786([0x6a,0x74,0x69])],_0x146e3e=window[_0x3be786([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ba5d0[_0x3be786([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ba5d0[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x422c86={..._0xe2319a,[_0x3be786([0x6a,0x74,0x69])]:_0x5ba5d0[_0x3be786([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ba5d0[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x422c86[_0x3be786([0x76,0x63])],_0x11f52f(_0x422c86)==_0x146e3e;}}}async function _0x2399bd(){let _0x165666=!0x0;try{const _0x323e9f=_0x19ffe2[_0x3be786([0x73,0x70,0x6c,0x69,0x74])](_0x3be786([0x2e])),[_0x5cb271,_0x28baef,_0x3edebc]=_0x323e9f;return _0x2357a4(_0x5cb271),await _0x3a66b1(_0x5cb271,_0x28baef,_0x3edebc),_0x165666;}catch(_0x5a61ad){return!0x1;}function _0x2357a4(_0x51a534){const _0x451818=_0x41ab5c(_0x51a534);_0x451818&&_0x451818[_0x3be786([0x61,0x6c,0x67])]==_0x3be786([0x45,0x53,0x32,0x35,0x36])||(_0x165666=!0x1);}async function _0x3a66b1(_0x27b3c6,_0x5cbfbf,_0xe1ab3){const _0x5c8f77=window[_0x3be786([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3be786([0x66,0x72,0x6f,0x6d])](_0x2a9924(_0xe1ab3),_0x2dacb2=>_0x2dacb2[_0x3be786([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x567be0=new window[(_0x3be786([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3be786([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27b3c6+_0x3be786([0x2e])+_0x5cbfbf),_0x26c58d=window[_0x3be786([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3be786([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26c58d)return;const _0x5f2877=await _0x26c58d[_0x3be786([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3be786([0x6a,0x77,0x6b]),_0x250712,{[_0x3be786([0x6e,0x61,0x6d,0x65])]:_0x3be786([0x45,0x43,0x44,0x53,0x41]),[_0x3be786([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3be786([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3be786([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26c58d[_0x3be786([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3be786([0x6e,0x61,0x6d,0x65])]:_0x3be786([0x45,0x43,0x44,0x53,0x41]),[_0x3be786([0x68,0x61,0x73,0x68])]:{[_0x3be786([0x6e,0x61,0x6d,0x65])]:_0x3be786([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f2877,_0x5c8f77,_0x567be0)||(_0x165666=!0x1);}}function _0x41ab5c(_0x36573d){return _0x36573d[_0x3be786([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3be786([0x65,0x79]))?JSON[_0x3be786([0x70,0x61,0x72,0x73,0x65])](_0x2a9924(_0x36573d)):null;}function _0x2a9924(_0x3c735a){return window[_0x3be786([0x61,0x74,0x6f,0x62])](_0x3c735a[_0x3be786([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3be786([0x2b]))[_0x3be786([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3be786([0x2f])));}function _0x11f52f(_0x4d6797){let _0x343955=0x1505;function _0x51b181(_0x46ecd5){for(let _0xbf589=0x0;_0xbf589<_0x46ecd5[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbf589++){const _0x2924e0=_0x46ecd5[_0x3be786([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xbf589);_0x343955=(_0x343955<<0x5)+_0x343955+_0x2924e0,_0x343955&=_0x343955;}}function _0x724e6f(_0x2d4bd0){Array[_0x3be786([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d4bd0)?_0x2d4bd0[_0x3be786([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x724e6f):_0x2d4bd0&&typeof _0x2d4bd0==_0x3be786([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3be786([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d4bd0)[_0x3be786([0x73,0x6f,0x72,0x74])]()[_0x3be786([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11a0ee,_0x486f88])=>{_0x51b181(_0x11a0ee),_0x724e6f(_0x486f88);}):_0x51b181(window[_0x3be786([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d4bd0));}return _0x724e6f(_0x4d6797),_0x343955>>>0x0;}function _0x8348f(_0x1dfbad){return _0x1dfbad[_0x3be786([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3be786([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3be786([0x30]));}function _0x3aa9a2(_0x21f0d3){return _0x21f0d3[_0x3be786([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3be786([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3be786([0x6a,0x6f,0x69,0x6e])]('');}function _0x28eb39(_0x17006b){return _0x5040be[_0x3be786([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3be786([0x68,0x61,0x73])](_0x17006b);}function _0x9657c8(_0x481a8c){return _0x5040be[_0x3be786([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3be786([0x67,0x65,0x74])](_0x481a8c);}function _0x4206b8(){}function _0x3be786(_0x321538){return _0x321538['map'](_0x30a943=>String['fromCharCode'](_0x30a943))['join']('');}_0xfa1bdd(await _0x5e65bd());}(this);}['createRevision'](_0x4e0553){const _0x2fceac=this['editor']['plugins']['get']('Users');return new a({'id':_0x4e0553['id'],'name':_0x4e0553['name'],'creator':_0x4e0553['creatorId']?_0x2fceac['getUser'](_0x4e0553['creatorId']):null,'diffData':_0x4e0553['diffData']||_0x4e0553['data'],'authors':_0x4e0553['authorsIds']['map'](_0x15c106=>_0x2fceac['getUser'](_0x15c106)),'createdAt':new Date(_0x4e0553['createdAt']),'attributes':_0x4e0553['attributes'],'fromVersion':_0x4e0553['fromVersion'],'toVersion':_0x4e0553['toVersion']});}['addRevision'](_0x475aa6,_0x218bce=0x0){this['_revisions']['add'](_0x475aa6,_0x218bce);}['getRevision'](_0x273880){return this['_revisions']['get'](_0x273880);}['getRevisions'](_0x25902f={'toJSON':!0x1}){const _0x542871=Array['from'](this['_revisions']);return _0x542871['reverse'](),_0x25902f['toJSON']?_0x542871['map'](_0x14a1e5=>_0x14a1e5['toJSON']()):_0x542871;}['getIndex'](_0x2ae39b){return this['_revisions']['getIndex'](_0x2ae39b);}['getEarlierVisibleRevision'](_0x1c27b4){const [,_0x355819]=this['getRevisionsIterator'](_0x1c27b4,{'direction':'earlier'});return _0x355819;}['getLaterVisibleRevision'](_0x1dd5a2){const [,_0x3799b5]=this['getRevisionsIterator'](_0x1dd5a2,{'direction':'later'});return _0x3799b5;}['getRevisionsInDiff'](_0xcaefc4){const _0x593a7a=[];for(const _0x1420b7 of this['getRevisionsIterator'](_0xcaefc4['newRevisionId']))if(_0x593a7a['push'](_0x1420b7),_0x1420b7['id']===_0xcaefc4['oldRevisionId'])break;return _0x593a7a;}*['getRevisionsIterator'](_0x5466af,{direction:_0x402d9f='earlier',filter:_0x1e8719=()=>!0x0}={}){const _0x1b0e1e='earlier'===_0x402d9f?0x1:-0x1;let _0x2e6069=this['_revisions']['get'](_0x5466af),_0x513306=this['getIndex'](_0x2e6069);for(yield _0x2e6069;_0x2e6069;){if(_0x513306+=_0x1b0e1e,_0x2e6069=this['getRevision'](_0x513306),!_0x2e6069)return;_0x1e8719(_0x2e6069)&&(yield _0x2e6069);}}}function m(_0x135e1d,_0x42ef42,_0x3b04fb){const t=_0x135e1d['t'];switch(_0x42ef42){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'},_0x3b04fb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3b04fb);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x12a9ad,'a':_0x276013,'e':_0x57a21f,'r':_0x347dc5,'u':_0x18c6ed};class l extends _0x46c671{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5bda76,j,_0x581fb9];}constructor(_0x22bc6d){super(_0x22bc6d),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4fcf63=_0x1de225();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4fcf63},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x2876aa=this['repository']['getRevision'](0x0),_0x1fed67=_0x2876aa&&null===_0x2876aa['creator']?_0x2876aa:null;if(this['_continueCurrentRevision']=!!_0x1fed67&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3e55d5=this['_source']['getCurrentRevisionId'](),_0x14e5e4=this['repository']['getRevision'](_0x3e55d5);if(_0x14e5e4)this['_startingVersion']=_0x14e5e4['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xa87728=this['_source']['history']['_operations']['find'](_0x3f37f6=>!_0x3f37f6['_isInit']),_0xb77008=_0xa87728?_0xa87728['baseVersion']:this['_source']['history']['version'];_0x2876aa?(_0x2876aa['toVersion']<_0xb77008&&_0x2876aa['_update']({'toVersion':_0xb77008}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1fed67['id'],this['_startingVersion']=_0x1fed67['fromVersion']):(this['_startingVersion']=_0x2876aa['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xb77008,this['_continueCurrentRevision']=!0x1);}}else _0x1fed67&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1fed67['toVersion'],this['editor']['model']['document']['history']['version']),_0x1fed67['fromVersion']===_0x1fed67['toVersion']?(0x0!==_0x1fed67['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1fed67['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1fed67['id'],this['_startingVersion']=_0x1fed67['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',_0x41f624=>!_0x41f624),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb6ab15=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5016dd;for(const _0x111c0a in _0xb6ab15){const _0x395bdf=_0x111c0a,_0x49ba37=_0xb6ab15[_0x395bdf];if('revisionHistoryLicenseKeyValid'==_0x49ba37||'revisionHistoryLicenseKeyInvalid'==_0x49ba37||'revisionHistoryLicenseKeyExpired'==_0x49ba37||'revisionHistoryLicenseKeyDomainLimit'==_0x49ba37||'revisionHistoryLicenseKeyNotAllowed'==_0x49ba37||'revisionHistoryLicenseKeyEvaluationLimit'==_0x49ba37||'revisionHistoryLicenseKeyTrialLimit'==_0x49ba37||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x49ba37||'revisionHistoryLicenseKeyUsageLimit'==_0x49ba37){delete _0xb6ab15[_0x395bdf],_0x5016dd=_0x49ba37,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5016dd&&_0xb6ab15['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5016dd&&_0xb6ab15['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5016dd&&_0xb6ab15['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5016dd&&_0xb6ab15['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5016dd&&_0xb6ab15['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5016dd&&_0xb6ab15['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5016dd&&_0xb6ab15['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5016dd&&_0xb6ab15['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x58cbe5=this['repository']['getRevision'](0x0),_0x2aede4=await this['getRevisionDocumentData'](_0x58cbe5),_0x27eb9b=await this['getRevisionRootsAttributes'](_0x58cbe5);this['_replaceEditorDataWithRevisionData'](_0x2aede4,_0x27eb9b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3846b5){this['_source']=_0x3846b5;}async['update'](){const _0x125b76=await this['_source']['getLatestVersion']();if(_0x125b76>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5c77d1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x125b76});_0x5c77d1['authors']=_0x5c77d1['authorsIds']['map'](_0x20fe79=>this['editor']['plugins']['get']('Users')['getUser'](_0x20fe79)),this['currentRevision']['_update'](_0x5c77d1);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x2c2aa6={},_0x5663d8=null){const _0x59488c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5663d8>this['currentRevision']['toVersion']&&(_0x5663d8=null),null===_0x5663d8&&(_0x5663d8=await this['_source']['getLatestVersion']());const _0x6eea43=this['_getFromVersion'](_0x5663d8),_0x7b45ba=this['buildRevisionData']({'from':_0x6eea43,'to':_0x5663d8});if(this['currentRevision']['toVersion']<_0x5663d8){const _0x477611=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5663d8,'to':_0x5663d8});_0x477611['authors']=[],_0x477611['authorsIds']=[],_0x477611['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x477611,!0x0),delete _0x477611['authors'],_0x59488c['push'](_0x477611);}_0x2c2aa6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c2aa6['name']=_0x2c2aa6['name']||null,_0x2c2aa6['id']=_0x2c2aa6['id']||_0x1de225(),_0x2c2aa6={..._0x2c2aa6,..._0x7b45ba};const _0x4e8356=this['addRevisionData'](_0x2c2aa6);_0x59488c['push'](_0x2c2aa6);const _0x28e9b7=this['repository']['getIndex'](_0x4e8356);if(0x0!==_0x28e9b7){const _0x2f2d75=this['repository']['getRevision'](_0x28e9b7-0x1);if(_0x2f2d75['fromVersion']!==_0x5663d8){const _0x2faa16=this['_revisionDataBuilder']['getData'](_0x5663d8,_0x2f2d75['toVersion']),_0x3904eb={'id':_0x2f2d75['id'],'diffData':_0x2faa16['diffData'],'authorsIds':_0x2faa16['authorsIds'],'authors':_0x2faa16['authorsIds']['map'](_0x4a4768=>this['editor']['plugins']['get']('Users')['getUser'](_0x4a4768)),'fromVersion':_0x5663d8};_0x2f2d75===this['currentRevision']&&(_0x3904eb['createdAt']=new Date(_0x2c2aa6['createdAt']['getTime']()+0xa)),_0x2f2d75['_update'](_0x3904eb,!0x0),delete _0x3904eb['authors'],_0x59488c['push'](_0x3904eb);}}if(this['adapter']){for(const _0x9c9315 of _0x59488c)this['_bufferUpdate'](_0x9c9315['id'],_0x9c9315,!0x0);this['sendBufferedUpdates']();}return _0x4e8356;}['addRevisionData'](_0x18df59){const _0x5eaa7f=this['repository']['createRevision'](_0x18df59);return this['adapter']&&_0x5eaa7f['on']('_update',(_0x5b54cc,_0x32336e,_0xdb3627)=>{_0xdb3627||(this['_bufferUpdate'](_0x32336e['id'],_0x32336e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5eaa7f,this['_findInsertionIndex'](_0x5eaa7f)),_0x5eaa7f;}async['getRevisionDocumentData'](_0x5953d0){await this['_loadRevisionData'](_0x5953d0);const _0x30f0b5={};for(const _0x572507 in _0x5953d0['diffData']){if(_0x5953d0['diffData'][_0x572507]['attachChange']&&!_0x5953d0['diffData'][_0x572507]['attachChange']['isAttached'])continue;const _0x49f2b3=this['_removeRevisionMarkers'](JSON['parse'](_0x5953d0['diffData'][_0x572507]['insertions'])),_0x52482d=this['editor']['editing']['view']['document'],_0x376ce9=new _0x2ec321(_0x52482d,_0x49f2b3['map'](_0xd1319f=>C(_0xd1319f,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x30f0b5[_0x572507]=this['editor']['data']['processor']['toData'](_0x376ce9),this['editor']['data']['processor']['useFillerType']('default');}return _0x30f0b5;}async['getRevisionRootsAttributes'](_0x22783b){await this['_loadRevisionData'](_0x22783b);const _0x1b723b={};for(const _0x43f1bd in _0x22783b['diffData'])_0x22783b['diffData'][_0x43f1bd]['attachChange']&&!_0x22783b['diffData'][_0x43f1bd]['attachChange']['isAttached']||(_0x1b723b[_0x43f1bd]=_0x22783b['diffData'][_0x43f1bd]['attributesAfter']||{});return _0x1b723b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x20a784=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x252812=0x0;_0x252812<_0x20a784['length'];_0x252812++){const _0x12fa24=_0x20a784[_0x252812];let _0x16ba48=!0x1;for(const _0x59a77a of Object['keys'](_0x12fa24))void 0x0===_0x12fa24[_0x59a77a]?delete _0x12fa24[_0x59a77a]:'id'!==_0x59a77a&&(_0x16ba48=!0x0);_0x16ba48||(_0x20a784[_0x252812]=null);}if(_0x20a784=_0x20a784['filter'](_0x36392d=>null!==_0x36392d),!_0x20a784['length'])return;for(let _0x2dbcc9=0x0;_0x2dbcc9<_0x20a784['length'];_0x2dbcc9++){const _0x43e34b=_0x20a784[_0x2dbcc9];void 0x0!==_0x43e34b['fromVersion']&&void 0x0===_0x43e34b['toVersion']&&(_0x43e34b['toVersion']=this['repository']['getRevision'](_0x43e34b['id'])['toVersion']),void 0x0!==_0x43e34b['toVersion']&&void 0x0===_0x43e34b['fromVersion']&&(_0x43e34b['fromVersion']=this['repository']['getRevision'](_0x43e34b['id'])['fromVersion']);}const _0x362244=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x20a784,_0x362244)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1e1dde=>{if(_0x1e1dde){for(const _0x18e28a of _0x1e1dde)this['setRevisionData']({'id':_0x18e28a['id'],'createdAt':_0x18e28a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x45b982,_0x534cb5){let _0x29a750=this['editor']['config']['get']('initialData'),_0x5523c0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x29a750){_0x29a750={};for(const _0x1b378f of this['editor']['model']['document']['getRootNames']())_0x29a750[_0x1b378f]='';}if('string'==typeof _0x29a750&&(_0x29a750={'main':_0x29a750}),void 0x0===_0x5523c0){_0x5523c0={};for(const _0x2a6017 of this['editor']['model']['document']['getRootNames']())_0x5523c0[_0x2a6017]={};}let _0x109c4f=!0x1;const _0x4fa122=Object['keys'](_0x29a750),_0x4d3e23=Object['keys'](_0x45b982);for(const _0x262328 of _0x4fa122){if(_0x29a750[_0x262328]!==_0x45b982[_0x262328]&&''!==_0x29a750[_0x262328]['trim']()){_0x109c4f=!0x0;break;}if(!_0x4852ea(_0x5523c0[_0x262328],_0x534cb5[_0x262328])&&Object['keys'](_0x5523c0[_0x262328])['length']>0x0){_0x109c4f=!0x0;break;}}_0x109c4f||(_0x109c4f=_0x4d3e23['some'](_0x5d37db=>!this['editor']['model']['document']['getRoot'](_0x5d37db))),_0x109c4f&&_0x31f83f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x29a750,'editorRootsAttributes':_0x5523c0,'revisionData':_0x45b982,'revisionRootsAttributes':_0x534cb5}),this['editor']['config']['set']('initialData',_0x45b982),this['editor']['config']['set']('rootsAttributes',_0x534cb5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x35aa2f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x35aa2f['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1a58cf){const _0x596597=this['repository']['getRevisions']();_0x596597['reverse']();let _0x43ed11=0x0;for(;_0x43ed11<_0x596597['length'];){const _0xcb2a80=_0x596597[_0x43ed11];if(_0xcb2a80===this['currentRevision']){_0x43ed11++;continue;}if(_0xcb2a80['id']===this['_initialRevisionId'])break;const _0x3a1c87=_0x1a58cf['toVersion']-_0xcb2a80['toVersion']||_0x1a58cf['fromVersion']-_0xcb2a80['fromVersion'];if(_0x3a1c87>0x0)break;if(_0x3a1c87<0x0)_0x43ed11++;else{if(!_0x1a58cf['creator']&&_0xcb2a80['creator'])break;if(_0xcb2a80['creator']||!_0x1a58cf['creator']){if(_0x1a58cf['createdAt']>_0xcb2a80['createdAt'])break;_0x43ed11++;}else _0x43ed11++;}}return _0x43ed11;}['setRevisionData'](_0x2b3a5a){const _0x5c1588=this['repository']['getRevision'](_0x2b3a5a['id']);if(_0x2b3a5a['createdAt']&&(_0x2b3a5a['createdAt']=new Date(_0x2b3a5a['createdAt'])),_0x2b3a5a['authorsIds']){const _0x30301d=this['editor']['plugins']['get']('Users');_0x2b3a5a['authors']=_0x2b3a5a['authorsIds']['map'](_0x100996=>_0x30301d['getUser'](_0x100996));}_0x5c1588['_update'](_0x2b3a5a,!0x0);}['buildRevisionData']({revision:_0x44d614=null,from:_0x2bb88b=null,to:_0x3467bb=null}){_0x2bb88b=null!==_0x2bb88b?_0x2bb88b:_0x44d614['fromVersion'],_0x3467bb=null!==_0x3467bb?_0x3467bb:_0x44d614['toVersion'];const _0x389ace=this['_revisionDataBuilder']['getData'](_0x2bb88b,_0x3467bb),_0x5e377b={'diffData':_0x389ace['diffData'],'authorsIds':_0x389ace['authorsIds'],'fromVersion':_0x2bb88b,'toVersion':_0x3467bb};if(!_0x44d614||_0x3467bb!==_0x44d614['toVersion']){const _0x4b3d64=_0x3467bb-0x1,_0x4d6b11=this['_source']['history']['getOperation'](_0x4b3d64);_0x5e377b['createdAt']=_0x4d6b11&&_0x4d6b11['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2bb88b===this['_loadedStateData']['fromVersion']){for(const _0x38e120 of this['_loadedStateData']['authors'])_0x5e377b['authorsIds']['includes'](_0x38e120['id'])||_0x5e377b['authorsIds']['push'](_0x38e120['id']);}return _0x5e377b;}['_loadRevisionData'](_0x1653fb){if(!_0x1653fb||_0x1653fb['diffData'])return Promise['resolve']();{const _0xb5a7fb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xb5a7fb,'revisionId':_0x1653fb['id']})['then'](_0x112594=>{_0x1653fb['diffData']=_0x112594['diffData'];});}}['_bufferUpdate'](_0x3eb02d,_0x7160f1,_0x2a1473){if(this['_bufferedUpdates']['has'](_0x3eb02d)){const _0x58886f=this['_bufferedUpdates']['get'](_0x3eb02d);_0x7160f1=_0x2a1473?{..._0x58886f,..._0x7160f1}:{..._0x7160f1,..._0x58886f};}this['_bufferedUpdates']['set'](_0x3eb02d,_0x7160f1);}['_getFromVersion'](_0x43ea81){const _0x10ebc0=this['repository']['getRevisions']();_0x10ebc0['reverse'](),_0x10ebc0['shift']();const _0x6f0798=_0x10ebc0['find'](_0x41f180=>_0x41f180['toVersion']<=_0x43ea81)['toVersion'];return _0x6f0798<this['_startingVersion']?this['_startingVersion']:_0x6f0798;}['_createInitialRevision'](_0x124653){const _0x36181c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x36181c)this['_initialRevisionId']=_0x36181c['id'];else{const _0x4470e1=!this['editor']['model']['document']['roots']['find'](_0x9f9460=>this['editor']['model']['hasContent'](_0x9f9460)),_0x43f6eb=this['editor']['plugins']['get']('Users')['me']['id'],_0x1f08b1=m(this['editor']['locale'],_0x4470e1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x124653,'to':_0x124653,'id':this['_initialRevisionId'],'name':_0x1f08b1,'creatorId':_0x43f6eb});}}['_createCurrentRevision'](_0x575f3c){const _0x2d6d15=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2d6d15),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x575f3c,'to':_0x575f3c,'id':_0x2d6d15,'name':'','creatorId':null}));}['_makeRevision']({name:_0x156327,from:_0x57f0a8,to:_0x12b17,creatorId:_0x4f8df1,id:_0x40d15b}){const _0x4d7f41=this['buildRevisionData']({'from':_0x57f0a8,'to':_0x12b17});_0x4d7f41['name']=_0x156327,_0x4d7f41['creatorId']=_0x4f8df1,_0x4d7f41['id']=_0x40d15b;const _0x2edf5d=this['addRevisionData'](_0x4d7f41);return this['adapter']&&this['_bufferUpdate'](_0x4d7f41['id'],_0x4d7f41,!0x0),_0x2edf5d;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4358db){return(_0x4358db=_0x4358db['filter'](_0xb406c1=>!_0xb406c1['name']||'revision-start'!==_0xb406c1['name']&&'revision-end'!==_0xb406c1['name']))['forEach'](_0x5ea7a7=>{'string'!=typeof _0x5ea7a7&&(_0x5ea7a7['children']=this['_removeRevisionMarkers'](_0x5ea7a7['children']),_0x5ea7a7['attributes']=_0x5ea7a7['attributes']['filter'](_0x47f0b9=>!_0x47f0b9[0x0]['startsWith']('data-revision-')));}),_0x4358db;}}function C(_0x35df29,_0xd7cdcd){const _0x39a5bc=_0xd7cdcd['editing']['view']['document'];if('string'==typeof _0x35df29)return new _0x5aeb6e(_0x39a5bc,_0x35df29);{const _0x31451f=_0x35df29['children']['map'](_0x277ce5=>C(_0x277ce5,_0xd7cdcd));return new(P[_0x35df29['type']]||_0x3d1ce6)(_0x39a5bc,_0x35df29['name'],_0x35df29['attributes'],_0x31451f);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5619ce){this['editor']=_0x5619ce,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'](_0x1de85f){this['source']=_0x1de85f;const _0x5e4020=new Map(),_0x7b9679=new Map(),_0x56e6ff=this['editor']['model']['document']['roots']['map'](_0x34ed4f=>_0x34ed4f['rootName']);for(const _0x4be191 of _0x56e6ff){const _0x1f49a1=this['editor']['model']['document']['getRoot'](_0x4be191),_0x27d055=T(_0x1f49a1);_0x5e4020['set'](_0x4be191,_0x27d055),_0x7b9679['set'](_0x4be191,Object['fromEntries'](_0x1f49a1['getAttributes']()));}const _0x33b5b3=Array['from'](this['editor']['model']['markers'])['map'](_0x506448=>[_0x506448['name'],_0x506448['getRange']()]),_0xf9f5f=this['source']['version'];this['_saveMetaData'](_0xf9f5f,_0x5e4020,_0x33b5b3,_0x7b9679),this['_startingRevisionId']=this['_revisionId'];const _0xf9f06e=new Map(),_0x3f84b1=new Map();for(const _0x21d0d2 of _0x56e6ff){const _0x404fb4=F(_0x21d0d2);_0xf9f06e['set'](_0x21d0d2,_0x404fb4),_0x3f84b1['set'](_0x21d0d2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xf9f06e,[],_0x3f84b1);}['getData'](_0x2b3002,_0x531160){if(this['_lastFrom']===_0x2b3002&&this['_lastTo']<=_0x531160)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x531160,!0x0);else{if(!this['_savedMetaData']['has'](_0x2b3002)){const _0x400c2d=this['_getPreviousFrom'](_0x2b3002);this['_calculateMetaData'](_0x400c2d,_0x2b3002,!0x1);}this['_calculateMetaData'](_0x2b3002,_0x531160,!0x0);}return this['_lastFrom']=_0x2b3002,this['_lastTo']=_0x531160,this['_getState']();}['loadState'](_0x359d24){this['_reset'](),this['_lastFrom']=_0x359d24['fromVersion'],this['_lastTo']=_0x359d24['toVersion'];for(const _0x3f58fd in _0x359d24['diffData']){const _0x1fb205=_0x359d24['diffData'][_0x3f58fd]['attachChange'],_0x36de89=_0x140c2b(_0x359d24['diffData'][_0x3f58fd]['attributesBefore'])||{},_0x54cb42=this['_makeModelFromViewString'](_0x359d24['diffData'][_0x3f58fd]['deletions']);_0x54cb42['rootName']=_0x3f58fd,_0x54cb42['_isAttached']=!_0x1fb205||!_0x1fb205['isAttached'],_0x54cb42['isAttached']=()=>_0x54cb42['_isAttached'],this['_baseRoots']['set'](_0x3f58fd,_0x54cb42),this['_baseRootsAttributes']['set'](_0x3f58fd,_0x36de89),_0x1fb205&&this['_touchedRoots']['set'](_0x3f58fd,_0x1fb205);const _0x1f7789=this['_makeIdsRoot'](_0x54cb42);this['_baseIdsRoots']['set'](_0x3f58fd,_0x1f7789);for(const [_0x582419,_0x33c222]of _0x54cb42['markers']){if(!_0x582419['startsWith']('revision:'))continue;const _0x296689=_0x582419['split'](':')[0x2];for(const _0x1415d5 of _0x33c222['getWalker']({'singleCharacters':!0x0})){const _0x319fd5=this['_getVidAttributeName'](_0x1415d5),_0x2fa254='elementEnd'==_0x1415d5['type']?_0x1415d5['previousPosition']['path']['slice'](0x0,-0x1):_0x1415d5['previousPosition']['path'],_0x49b958=_0x1f7789['getNodeByPath'](_0x2fa254)['getAttribute'](_0x319fd5);this['_touched']['set'](_0x49b958,{'userId':_0x296689});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4d1c1c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4918e2=>!this['_touched']['has'](_0x4918e2));let _0x1b74e7=0x0;const _0x362b55=new Map();for(const _0x465c65 in _0x359d24['diffData']){const _0x1acdbd=_0x359d24['diffData'][_0x465c65]['attachChange'],_0x58d527=_0x140c2b(_0x359d24['diffData'][_0x465c65]['attributesAfter'])||{},_0x4453c4=this['_makeModelFromViewString'](_0x359d24['diffData'][_0x465c65]['insertions']);_0x4453c4['rootName']=_0x465c65,_0x4453c4['_isAttached']=!_0x1acdbd||_0x1acdbd['isAttached'],_0x4453c4['isAttached']=()=>_0x4453c4['_isAttached'],this['_diffRoots']['set'](_0x465c65,_0x4453c4),this['_diffRootsAttributes']['set'](_0x465c65,_0x58d527);const _0x2525ca=this['_makeIdsRoot'](_0x4453c4,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x465c65,_0x2525ca),_0x362b55['set'](_0x465c65,_0x4453c4['isAttached']()?_0x58d527:{});for(const [_0x272bf7,_0x4033ec]of _0x4453c4['markers']){if(!_0x272bf7['startsWith']('revision:'))continue;const _0x35c59e=_0x272bf7['split'](':')[0x2];for(const _0x2d18e8 of _0x4033ec['getWalker']({'singleCharacters':!0x0})){const _0xd89402=this['_getVidAttributeName'](_0x2d18e8),_0x3de7f7=this['_revisionId']++,_0x49c325='elementEnd'==_0x2d18e8['type']?_0x2d18e8['previousPosition']['path']['slice'](0x0,-0x1):_0x2d18e8['previousPosition']['path'];_0x2525ca['getNodeByPath'](_0x49c325)['_setAttribute'](_0xd89402,_0x3de7f7),this['_touched']['set'](_0x3de7f7,{'userId':_0x35c59e});}}for(const _0x5644e5 of this['editor']['model']['createRangeIn'](_0x4453c4)['getWalker']({'singleCharacters':!0x0})){const _0x594e1d=this['_getVidAttributeName'](_0x5644e5),_0x329136='elementEnd'==_0x5644e5['type']?_0x5644e5['previousPosition']['path']['slice'](0x0,-0x1):_0x5644e5['previousPosition']['path'],_0x458ffe=_0x2525ca['getNodeByPath'](_0x329136);_0x458ffe['getAttribute'](_0x594e1d)>0x0||_0x458ffe['_setAttribute'](_0x594e1d,_0x4d1c1c[_0x1b74e7++]);}for(const [_0x5a7a39,_0x4a5d3f]of _0x4453c4['markers'])_0x5a7a39['startsWith']('revision:')||this['_markers']['set'](_0x5a7a39,_0x4a5d3f);}const _0x195fcb=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x195fcb),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x195fcb,0x1));const _0xa2f97f=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xa2f97f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xa2f97f,0x1));const _0x2ffaf5=Array['from'](this['_diffRoots'])['map'](([_0x69eaad,_0x5360cf])=>[_0x69eaad,T(_0x5360cf)]);this['_saveMetaData'](this['_lastTo'],_0x2ffaf5,this['_markers'],_0x362b55);}['_makeModelFromViewString'](_0x39b2ee){const _0x1895af=JSON['parse'](_0x39b2ee),_0x20a5ea=this['editor']['editing']['view']['document'],_0x56b431=new _0x2ec321(_0x20a5ea,_0x1895af['map'](_0xf3605e=>C(_0xf3605e,this['editor'])));return this['editor']['data']['toModel'](_0x56b431);}['_saveMetaData'](_0x137c33,_0x4b1af2,_0x35b242,_0x38c8c9){const _0x14dc5e=new Map(_0x4b1af2),_0x182de1=new Map(_0x140c2b(_0x38c8c9)),_0xa52e96=new Map();for(const [_0x284943,_0x5d8815]of _0x35b242)_0xa52e96['set'](_0x284943,{'start':_0x5d8815['start']['clone'](),'end':_0x5d8815['end']['clone'](),'rootName':_0x5d8815['root']['rootName']});this['_savedMetaData']['set'](_0x137c33,{'roots':_0x14dc5e,'markers':_0xa52e96,'rootsAttributes':_0x182de1});}['_removeMetaData'](_0x47abe4){this['_savedMetaData']['delete'](_0x47abe4);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x3370ef,_0x5ad7ba=null){let _0x89c6af=null;_0x3370ef['is']('documentFragment')||(_0x89c6af=new ft(_0x3370ef['name'],{'vid_start':null===_0x5ad7ba?this['_revisionId']++:_0x5ad7ba++}));const _0x3d4e5f=[];for(const _0x5efd55 of _0x3370ef['getChildren']())if(_0x5efd55['is']('element')){_0x3d4e5f['push'](this['_makeIdsRoot'](_0x5efd55,_0x5ad7ba));const _0x14764a=_0x3d4e5f[_0x3d4e5f['length']-0x1];null!==_0x5ad7ba&&(_0x5ad7ba=_0x14764a['is']('element','$text')?_0x14764a['getAttribute']('vid')+0x1:_0x14764a['getAttribute']('vid_end')+0x1);}else{for(let _0x44ed32=0x0;_0x44ed32<_0x5efd55['offsetSize'];_0x44ed32++)_0x3d4e5f['push'](new ft('$text',{'vid':null===_0x5ad7ba?this['_revisionId']++:_0x5ad7ba++}));}if(_0x3370ef['is']('documentFragment')){const _0x625193=F(_0x3370ef['rootName']);return _0x625193['_insertChild'](0x0,_0x3d4e5f),_0x625193;}return _0x89c6af['_setAttribute']('vid_end',null===_0x5ad7ba?this['_revisionId']++:_0x5ad7ba++),_0x89c6af['_insertChild'](0x0,_0x3d4e5f),_0x89c6af;}['_calculateMetaData'](_0x12c8e7,_0x28e806,_0x4de3c8){this['_reset']();const {roots:_0x54fa79,markers:_0x16fc64,rootsAttributes:_0x5a8361}=this['_savedMetaData']['get'](_0x12c8e7);this['_baseRoots']=new Map(_0x54fa79),this['_baseRootsAttributes']=new Map(_0x140c2b(_0x5a8361));for(const [_0x42295f,_0x3f6d12]of this['_baseRoots'])if('$graveyard'!==_0x42295f&&(this['_diffRoots']['set'](_0x42295f,T(_0x3f6d12)),this['_diffRootsAttributes']=new Map(_0x140c2b(_0x5a8361)),_0x4de3c8)){const _0x4bff56=this['_revisionId'];this['_idsRoots']['set'](_0x42295f,this['_makeIdsRoot'](_0x3f6d12)),this['_baseIdsRoots']['set'](_0x42295f,this['_makeIdsRoot'](_0x3f6d12,_0x4bff56));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4de3c8&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2d95dd,_0x3e5c5f]of _0x16fc64){const _0x54bf7d=this['_baseRoots']['get'](_0x3e5c5f['rootName']),_0x2ed914=this['_diffRoots']['get'](_0x3e5c5f['rootName']),_0x1ed9d8=new vt(this['_fixPosition'](_0x3e5c5f['start'],_0x54bf7d),this['_fixPosition'](_0x3e5c5f['end'],_0x54bf7d)),_0x4ca005=this['_fixRange'](_0x1ed9d8,_0x2ed914);_0x54bf7d['markers']['set'](_0x2d95dd,_0x1ed9d8),this['_markers']['set'](_0x2d95dd,_0x4ca005);}this['_applyOperations'](_0x12c8e7,_0x28e806,_0x4de3c8);}['_applyOperations'](_0x401ed2,_0x34226b,_0x9fb69a){for(const _0x1c4b39 of this['source']['getOperations'](_0x401ed2,_0x34226b))this['_handleOperation'](_0x1c4b39,_0x9fb69a);for(const _0x26be12 of this['_diffRoots']['values']())_0x26be12['markers']['clear']();for(const [_0x52e021,_0x4972a8]of this['_markers']){this['_diffRoots']['get'](_0x4972a8['root']['rootName'])['markers']['set'](_0x52e021,_0x4972a8['clone']());}const _0x330071=new Map(),_0x5d2596=new Map();for(const [_0x444e7d,_0x4669c5]of this['_diffRoots'])_0x330071['set'](_0x444e7d,T(_0x4669c5)),_0x5d2596['set'](_0x444e7d,this['_diffRootsAttributes']['get'](_0x444e7d));this['_saveMetaData'](_0x34226b,_0x330071,this['_markers'],_0x5d2596);}['_getPreviousFrom'](_0x46ffec){const _0x22d3c7=Array['from'](this['_savedMetaData']['keys']());_0x22d3c7['sort']((_0x36a73a,_0x3b04b2)=>_0x36a73a-_0x3b04b2),_0x22d3c7['reverse']();for(const _0x14b09d of _0x22d3c7)if(_0x14b09d<_0x46ffec)return _0x14b09d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x52c214,_0x2c3ce8){const _0x3073b9=Array['from'](_0x2c3ce8['markers'])['map'](([_0x28f38e,_0x1de39d])=>[_0x28f38e,this['_fixRange'](_0x1de39d,_0x52c214)]);_0x52c214['markers']=new Map(_0x3073b9);}['_transformMarkers'](_0x4b6047){for(const _0x5f4327 of this['_markers']['values']()){const _0x3bebc6=_0x5f4327['getTransformedByOperation'](_0x4b6047),_0x4e6724=vt['_createFromRanges'](_0x3bebc6);_0x5f4327['start']=_0x4e6724['start'],_0x5f4327['end']=_0x4e6724['end'];}}['_handleOperation'](_0x4373e7,_0x16f968){if('addRoot'!=_0x4373e7['type']&&'detachRoot'!=_0x4373e7['type']){if('insert'==_0x4373e7['type']){const _0x248e0b=_0x4373e7['position']['root']['rootName'];this['_diffRoots']['has'](_0x248e0b)||(this['_diffRoots']['set'](_0x248e0b,F(_0x248e0b,!0x0)),this['_diffRootsAttributes']['set'](_0x248e0b,{}),_0x16f968&&this['_idsRoots']['set'](_0x248e0b,F(_0x248e0b,!0x0)));}else{if('addRootAttribute'==_0x4373e7['type']||'removeRootAttribute'==_0x4373e7['type']||'changeRootAttribute'==_0x4373e7['type'])return void this['_handleRootAttributeOperation'](_0x4373e7);'marker'==_0x4373e7['type']&&this['_handleMarkerOperation'](_0x4373e7);}if('marker'!==_0x4373e7['type']){const _0x63a910=this['_cloneOperation'](_0x4373e7,this['_diffRoots']);_0x63a910['_execute'](),this['_transformMarkers'](_0x63a910);}if(_0x16f968)switch(_0x4373e7['type']){case'insert':this['_handleInsertOperation'](_0x4373e7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4373e7);break;case'merge':this['_handleMergeOperation'](_0x4373e7);break;case'split':this['_handleSplitOperation'](_0x4373e7);}}else this['_handleRootOperation'](_0x4373e7,_0x16f968);}['_cloneOperation'](_0x4ff1ca,_0x25dfd2){const _0x439637=_0x4ff1ca['clone']();return _0x439637['_authorId']=_0x4ff1ca['_authorId'],this['_fixOperation'](_0x439637,_0x25dfd2),_0x439637;}['_getBaseVids'](_0x19d760){return _0x19d760['map'](_0x35cf1c=>{const _0x1fd577=this['_getVidAttributeName'](_0x35cf1c);return Number(_0x35cf1c['item']['getAttribute'](_0x1fd577));});}['_generateTape'](_0x5c907d,_0xea07d7){if(_0x5c907d['is']('element','$text'))_0xea07d7['push']({'item':_0x5c907d,'type':'text'});else{_0x5c907d['is']('element')&&_0xea07d7['push']({'item':_0x5c907d,'type':'elementStart'});for(const _0x46fef2 of _0x5c907d['getChildren']())this['_generateTape'](_0x46fef2,_0xea07d7);_0x5c907d['is']('element')&&_0xea07d7['push']({'item':_0x5c907d,'type':'elementEnd'});}return _0xea07d7;}['_getState'](){const _0x8a13d8=new Map(this['_touched']),_0x5dc5ee=new Map(_0x8a13d8),_0x25d694=new Map(),_0x26f7eb={'insertions':{},'deletions':{}},_0x42edb8={'insertions':{},'deletions':{}},_0x5e435a=new Map(),_0x58c34c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x58c34c['delete']('$graveyard');for(const _0x371af4 of _0x58c34c){const _0x3b8d4b=this['_diffRoots']['get'](_0x371af4)||F(_0x371af4,!0x1),_0x3e926c=this['_baseRoots']['get'](_0x371af4)||F(_0x371af4,!0x1);_0x3b8d4b['isAttached']()||_0x3e926c['isAttached']()?(_0x26f7eb['insertions'][_0x371af4]=T(_0x3b8d4b),_0x26f7eb['deletions'][_0x371af4]=T(_0x3e926c),this['_copyMarkers'](_0x26f7eb['deletions'][_0x371af4],_0x3e926c),this['_copyMarkers'](_0x26f7eb['insertions'][_0x371af4],_0x3b8d4b),_0x42edb8['insertions'][_0x371af4]=this['_generateTape'](this['_idsRoots']['get'](_0x371af4),[]),_0x42edb8['deletions'][_0x371af4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x371af4)||F(_0x371af4,!0x1),[])):_0x58c34c['delete'](_0x371af4);}for(const _0x3fe833 of _0x58c34c){const _0x24256c=_0x42edb8['insertions'][_0x3fe833];for(const _0x33e928 of _0x24256c){const _0x1fdf8c=this['_getVidAttributeName'](_0x33e928),_0x2103ca=_0x33e928['item']['getAttribute'](_0x1fdf8c);_0x5dc5ee['delete'](_0x2103ca),_0x2103ca>=this['_startingRevisionId']&&_0x25d694['set'](_0x2103ca,_0x8a13d8['get'](_0x2103ca));}}for(const _0x4383e7 of _0x58c34c){const _0x544570=_0x42edb8['insertions'][_0x4383e7],_0x5d4c73=this['_getBaseVids'](_0x42edb8['deletions'][_0x4383e7]);let _0xb90ac=0x0;for(const _0x5146ec of _0x544570){const _0x357265=this['_getVidAttributeName'](_0x5146ec),_0x95e683=_0x5146ec['item']['getAttribute'](_0x357265);if(!_0x25d694['has'](_0x95e683)&&!_0x5e435a['has'](_0x95e683)){if(_0x5dc5ee['has'](_0x95e683))_0xb90ac++;else{if(_0x95e683!=_0x5d4c73[_0xb90ac]){const _0x3f7606=_0x8a13d8['get'](_0x95e683)||_0x8a13d8['get'](_0x5d4c73[_0xb90ac]);for(;_0x95e683!=_0x5d4c73[_0xb90ac];)_0x5dc5ee['has'](_0x5d4c73[_0xb90ac])||(_0x5e435a['set'](_0x5d4c73[_0xb90ac],_0x3f7606),_0x8a13d8['set'](_0x5d4c73[_0xb90ac],_0x3f7606)),_0xb90ac++;}_0xb90ac++;}}}}for(const _0x11a9e6 of _0x58c34c){const _0x59616a=_0x42edb8['insertions'][_0x11a9e6];for(const _0x827a9d of _0x59616a){const _0x3af9c1=this['_getVidAttributeName'](_0x827a9d),_0x1c0bf2=_0x827a9d['item']['getAttribute'](_0x3af9c1);if(_0x5e435a['has'](_0x1c0bf2)){const _0x4a7536=_0x5e435a['get'](_0x1c0bf2);_0x5dc5ee['has'](_0x1c0bf2)||_0x5dc5ee['set'](_0x1c0bf2,{..._0x4a7536}),_0x25d694['set'](_0x1c0bf2,{..._0x4a7536});}}}for(const _0x1854cd of _0x5dc5ee['keys']())_0x1854cd>=this['_startingRevisionId']&&_0x5dc5ee['delete'](_0x1854cd);const _0x1e7b82=new Map();for(const _0x3705cb of _0x58c34c){let _0xb8893=_0x42edb8['insertions'][_0x3705cb];for(const _0x28e0bd of _0xb8893)if(_0x28e0bd['item']['is']('element','tableCell')){const _0x5c9cb3=this['_getVidAttributeName'](_0x28e0bd),_0x51d613=_0x28e0bd['item']['getAttribute'](_0x5c9cb3);if(_0x25d694['has'](_0x51d613)){const _0x7ac296=_0x28e0bd['item']['parent']['parent']['getAttribute']('vid_start'),_0x85af65=_0x1e7b82['get'](_0x7ac296)||new Set();_0x85af65['add'](_0x25d694['get'](_0x51d613)['userId']),_0x1e7b82['set'](_0x7ac296,_0x85af65);}}_0xb8893=_0x42edb8['deletions'][_0x3705cb];for(const _0x18928e of _0xb8893)if(_0x18928e['item']['is']('element','tableCell')){const _0x1d203a=this['_getVidAttributeName'](_0x18928e),_0x3d58a5=_0x18928e['item']['getAttribute'](_0x1d203a);if(_0x5dc5ee['has'](_0x3d58a5)){const _0x3a7ac6=_0x18928e['item']['parent']['parent']['getAttribute']('vid_start'),_0xeb9f35=_0x1e7b82['get'](_0x3a7ac6)||new Set();_0xeb9f35['add'](_0x5dc5ee['get'](_0x3d58a5)['userId']),_0x1e7b82['set'](_0x3a7ac6,_0xeb9f35);}}for(const _0x2219e2 of _0x1e7b82['keys']())(_0x25d694['has'](_0x2219e2)||_0x5dc5ee['has'](_0x2219e2))&&_0x1e7b82['delete'](_0x2219e2);}for(const _0x39de06 of _0x58c34c){const _0x146f7c=_0x42edb8['insertions'][_0x39de06];let _0x32bcf5=null,_0x984a6b=null;for(const _0x1ef536 of _0x146f7c){const _0xbd9214=this['_getVidAttributeName'](_0x1ef536),_0xeb555a=_0x1ef536['item']['getAttribute'](_0xbd9214),_0x36f21e=_0x1e7b82['get'](_0xeb555a);_0x36f21e&&'elementStart'==_0x1ef536['type']&&(_0x32bcf5=Array['from'](_0x36f21e)[0x0],_0x984a6b=_0x1ef536['item']['getAttribute']('vid_end')),_0x32bcf5&&(_0x5dc5ee['set'](_0xeb555a,{'userId':_0x32bcf5}),_0x25d694['set'](_0xeb555a,{'userId':_0x32bcf5})),_0xeb555a==_0x984a6b&&(_0x32bcf5=null,_0x984a6b=null);}}const _0x51e551={},_0x2996ce=new Set();for(const _0x1a3218 of _0x58c34c){const _0x11f558=_0x26f7eb['deletions'][_0x1a3218],_0x208232=_0x26f7eb['insertions'][_0x1a3218];for(const {userId:_0x5bcc7f}of this['_touchedMarkers']['values']())null!==_0x5bcc7f&&_0x2996ce['add'](_0x5bcc7f);for(const {userId:_0x33a503}of this['_touchedRoots']['values']())null!==_0x33a503&&_0x2996ce['add'](_0x33a503);this['_markChanges'](_0x208232,_0x42edb8['insertions'][_0x1a3218],_0x25d694,'insertion',_0x2996ce),this['_markChanges'](_0x11f558,_0x42edb8['deletions'][_0x1a3218],_0x5dc5ee,'deletion',_0x2996ce),_0x51e551[_0x1a3218]={'insertions':this['_prepareViewToSave'](_0x208232),'deletions':this['_prepareViewToSave'](_0x11f558),'attachChange':this['_touchedRoots']['get'](_0x1a3218)||null,'attributesBefore':_0x140c2b(this['_baseRootsAttributes']['get'](_0x1a3218))||{},'attributesAfter':_0x140c2b(this['_diffRootsAttributes']['get'](_0x1a3218))};}return{'diffData':_0x51e551,'authorsIds':Array['from'](_0x2996ce)};}['_processRootBeforeSave'](_0x5f3acd){for(const [,_0x294a03]of _0x5f3acd['markers']){const _0x542a9b=_0x294a03['start']['getAncestors']()['filter'](_0x2b4b81=>'tableCell'==_0x2b4b81['name']);for(const _0x1c5fba of _0x542a9b)0x1==_0x1c5fba['childCount']&&_0x1c5fba['getChild'](0x0)['is']('element','paragraph')&&_0x1c5fba['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x18f8ad){this['_processRootBeforeSave'](_0x18f8ad);const _0x531c34=this['editor']['data']['toView'](_0x18f8ad,{}),_0x27cd6a=Array['from'](_0x531c34['getChildren']())['map'](_0x1c7463=>this['_getViewJson'](_0x1c7463));return JSON['stringify'](_0x27cd6a);}['_getViewJson'](_0x3104b9){if(_0x3104b9['is']('$text'))return _0x3104b9['data'];{const _0x161957=_0x3104b9;return{'type':Object['keys'](P)['find'](_0x2ca0a5=>_0x3104b9 instanceof P[_0x2ca0a5]),'name':_0x161957['name'],'attributes':Array['from'](_0x161957['getAttributes']()),'children':Array['from'](_0x161957['getChildren']())['map'](_0x247541=>this['_getViewJson'](_0x247541))};}}['_markChanges'](_0x221e76,_0x1ee522,_0x56eba8,_0x50f4d9,_0x11cdbf){let _0x55f494=null,_0x3bb00b=null,_0x5f5b09=0x0;const _0x2337a6=this['editor']['model'];for(let _0x2ff33a=0x0;_0x2ff33a<_0x1ee522['length'];_0x2ff33a++){const _0x17043e=this['_getVidAttributeName'](_0x1ee522[_0x2ff33a]),_0x30a530=_0x1ee522[_0x2ff33a]['item']['getAttribute'](_0x17043e),_0x500a13=_0x56eba8['get'](_0x30a530),_0x2632b8=_0x2ff33a==_0x1ee522['length']-0x1;(!_0x55f494&&_0x500a13&&(_0x55f494=_0x500a13,_0x3bb00b=_0x1ee522[_0x2ff33a]),_0x55f494&&(!_0x500a13||_0x500a13['userId']!=_0x55f494['userId']))&&(_0x1e3420(_0x500a13,B(_0x3bb00b,_0x221e76,_0x2337a6),B(_0x1ee522[_0x2ff33a],_0x221e76,_0x2337a6)),_0x55f494=_0x500a13||null,_0x3bb00b=_0x500a13?_0x1ee522[_0x2ff33a]:null),_0x55f494&&_0x2632b8&&_0x1e3420(_0x500a13,B(_0x3bb00b,_0x221e76,_0x2337a6),J(_0x1ee522[_0x2ff33a],_0x221e76,_0x2337a6));}function _0x1e3420(_0x5d91aa,_0x5f382b,_0x37a717){const _0x4e9073=_0x55f494['userId'],_0x30feb8='revision:'+_0x50f4d9+':'+_0x4e9073+':'+_0x5f5b09++,_0x58eca2=_0x2337a6['createRange'](_0x5f382b,_0x37a717);_0x221e76['markers']['set'](_0x30feb8,_0x58eca2),null!==_0x4e9073&&_0x11cdbf['add'](_0x4e9073);}}['_getVidAttributeName'](_0x5d545b){switch(_0x5d545b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x410631,_0x1fa166){_0x410631['baseVersion']=null;for(const _0x33f18e in _0x410631){const _0x59f334=_0x410631[_0x33f18e];if(_0x59f334 instanceof gt){const _0x461f7a=_0x1fa166['get'](_0x59f334['root']['rootName']);_0x410631[_0x33f18e]=this['_fixPosition'](_0x59f334,_0x461f7a);}if(_0x59f334 instanceof vt){const _0x320928=_0x1fa166['get'](_0x59f334['root']['rootName']);_0x410631[_0x33f18e]=this['_fixRange'](_0x59f334,_0x320928);}'root'===_0x33f18e&&(_0x410631['root']=_0x1fa166['get'](_0x410631['root']['rootName']));}}['_fixRange'](_0xe3a788,_0x388c1c){return this['editor']['model']['createRange'](this['_fixPosition'](_0xe3a788['start'],_0x388c1c),this['_fixPosition'](_0xe3a788['end'],_0x388c1c));}['_fixPosition'](_0x2c1e9b,_0x38f1fb){return this['editor']['model']['createPositionFromPath'](_0x38f1fb,_0x2c1e9b['path'],_0x2c1e9b['stickiness']);}['_handleInsertOperation'](_0xb93c3f){const _0x3b35f0=this['_idsRoots']['get'](_0xb93c3f['position']['root']['rootName']),_0x25cb8c=this['_fixPosition'](_0xb93c3f['position'],_0x3b35f0),_0x518a20=null===_0xb93c3f['_authorId']?null:_0xb93c3f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x59b438=_0x25cb8c['parent'],_0x28f054=this['_revisionId'],_0x1fbd44=[];for(const _0x4cf8e1 of _0xb93c3f['nodes'])if(_0x4cf8e1['is']('element'))_0x1fbd44['push'](this['_makeIdsRoot'](_0x4cf8e1));else{for(let _0x11d3d5=0x0;_0x11d3d5<_0x4cf8e1['offsetSize'];_0x11d3d5++)_0x1fbd44['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x397c04=this['_revisionId'];for(let _0x1bc1cc=_0x28f054;_0x1bc1cc<_0x397c04;_0x1bc1cc++)this['_touched']['set'](_0x1bc1cc,{'userId':_0x518a20});_0x59b438['_insertChild'](_0x25cb8c['offset'],_0x1fbd44);}['_handleMoveOperation'](_0x3e80d6){(_0x3e80d6=this['_cloneOperation'](_0x3e80d6,this['_idsRoots']))['_execute']();const _0x586f10=null===_0x3e80d6['_authorId']?null:_0x3e80d6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7032f0=_0x3e80d6['getMovedRangeStart'](),_0x217a10=_0x7032f0['parent'],_0x56c689=_0x7032f0['offset'];!function _0x3e590a(_0x5e8589,_0x24a11a,_0x434b32,_0x4e5fe2){for(let _0x5df863=_0x434b32;_0x5df863<_0x4e5fe2;_0x5df863++){const _0x28bfaa=_0x24a11a['getChild'](_0x5df863);_0x28bfaa['is']('element','$text')?_0x5e8589['set'](_0x28bfaa['getAttribute']('vid'),{'userId':_0x586f10}):(_0x5e8589['set'](_0x28bfaa['getAttribute']('vid_start'),{'userId':_0x586f10}),_0x3e590a(_0x5e8589,_0x28bfaa,0x0,_0x28bfaa['childCount']),_0x5e8589['set'](_0x28bfaa['getAttribute']('vid_end'),{'userId':_0x586f10}));}}(this['_touched'],_0x217a10,_0x56c689,_0x56c689+_0x3e80d6['howMany']);}['_handleMergeOperation'](_0x1c487f){const _0x4dc2c4=null===(_0x1c487f=this['_cloneOperation'](_0x1c487f,this['_idsRoots']))['_authorId']?null:_0x1c487f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28f297=_0x1c487f['targetPosition']['parent'],_0x244076=_0x1c487f['sourcePosition']['parent'],_0x11d7cd=_0x28f297['getAttribute']('vid_end'),_0x200194=_0x244076['getAttribute']('vid_start');_0x28f297['_setAttribute']('vid_end',_0x244076['getAttribute']('vid_end')),_0x244076['_setAttribute']('vid_end',_0x11d7cd),this['_touched']['set'](_0x200194,{'userId':_0x4dc2c4}),this['_touched']['set'](_0x11d7cd,{'userId':_0x4dc2c4}),_0x1c487f['_execute']();}['_handleSplitOperation'](_0x549331){const _0xf4b364=null===(_0x549331=this['_cloneOperation'](_0x549331,this['_idsRoots']))['_authorId']?null:_0x549331['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x228986=_0x549331['graveyardPosition'],_0x3564d9=_0x549331['splitPosition']['parent'];_0x549331['_execute']();const _0xe2d7e7=_0x3564d9['getAttribute']('vid_end'),_0x527d59=_0x549331['insertionPosition']['nodeAfter'];if(_0x228986){const _0x8c981d=_0x527d59['getAttribute']('vid_end'),_0x3494ae=_0x3564d9['getAttribute']('vid_end');_0x3564d9['_setAttribute']('vid_end',_0x8c981d),_0x527d59['_setAttribute']('vid_end',_0x3494ae),this['_touched']['set'](_0x3564d9['getAttribute']('vid_end'),{'userId':_0xf4b364}),this['_touched']['set'](_0x527d59['getAttribute']('vid_start'),{'userId':_0xf4b364});}else{const _0xf4ab36=this['_revisionId']++,_0x352a09=this['_revisionId']++;_0x3564d9['_setAttribute']('vid_end',_0xf4ab36),_0x527d59['_setAttribute']('vid_start',_0x352a09),_0x527d59['_setAttribute']('vid_end',_0xe2d7e7),this['_touched']['set'](_0xf4ab36,{'userId':_0xf4b364}),this['_touched']['set'](_0x352a09,{'userId':_0xf4b364});}}['_handleMarkerOperation'](_0x79bd7a){if(!_0x79bd7a['affectsData'])return;const _0x4538b0=(_0x79bd7a=this['_cloneOperation'](_0x79bd7a,this['_diffRoots']))['oldRange']?_0x79bd7a['oldRange']['root']:null,_0x23a2e1=_0x79bd7a['newRange']?_0x79bd7a['newRange']['root']:null;_0x4538b0&&this['_markers']['delete'](_0x79bd7a['name']),_0x23a2e1&&this['_markers']['set'](_0x79bd7a['name'],_0x79bd7a['newRange']['clone']());const _0x54ae5d=null===_0x79bd7a['_authorId']?null:_0x79bd7a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x181760=_0x79bd7a['name'];if(!this['_touchedMarkers']['has'](_0x181760))return void this['_touchedMarkers']['set'](_0x181760,{'range':_0x79bd7a['oldRange'],'userId':_0x54ae5d});const _0x310eed=this['_touchedMarkers']['get'](_0x181760),_0x1abce6=_0x310eed['range'],_0x35f02e=_0x79bd7a['newRange'];null==_0x1abce6&&null==_0x35f02e||_0x1abce6&&_0x35f02e&&_0x1abce6['isEqual'](_0x35f02e)?this['_touchedMarkers']['delete'](_0x79bd7a['name']):_0x310eed['userId']=_0x54ae5d;}['_handleRootOperation'](_0x358375,_0x4b2074){this['_diffRoots']['has'](_0x358375['rootName'])?this['_diffRoots']['get'](_0x358375['rootName'])['_isAttached']=_0x358375['isAdd']:(this['_diffRoots']['set'](_0x358375['rootName'],F(_0x358375['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x358375['rootName'],{}),_0x4b2074&&this['_idsRoots']['set'](_0x358375['rootName'],F(_0x358375['rootName'],!0x0)));const _0x3206ab=null===_0x358375['_authorId']?null:_0x358375['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x439d15=this['_touchedRoots']['get'](_0x358375['rootName']);_0x439d15&&_0x439d15['userId']===_0x3206ab?this['_touchedRoots']['delete'](_0x358375['rootName']):this['_touchedRoots']['set'](_0x358375['rootName'],{'userId':_0x3206ab,'isAttached':_0x358375['isAdd']});}['_handleRootAttributeOperation'](_0xb820da){const _0x49f83c=this['_diffRootsAttributes']['get'](_0xb820da['root']['rootName']);null===_0xb820da['newValue']?delete _0x49f83c[_0xb820da['key']]:_0x49f83c[_0xb820da['key']]=_0xb820da['newValue'];}}function T(_0x1dc741){const _0x2e23df=F(_0x1dc741['rootName'],_0x1dc741['isAttached']());for(const _0x67dc0a of _0x1dc741['getChildren']()){const _0x2efdeb=_0x67dc0a['_clone'](!0x0);_0x2e23df['_appendChild'](_0x2efdeb);}return _0x2e23df;}function F(_0x2af9d7,_0x58680a=!0x0){const _0x5ec03a=new mt();return _0x5ec03a['rootName']=_0x2af9d7,_0x5ec03a['_isAttached']=_0x58680a,_0x5ec03a['isAttached']=()=>_0x5ec03a['_isAttached'],_0x5ec03a;}function B(_0x42d160,_0x4789f1,_0xadd3c6){const _0x26c091='elementEnd'==_0x42d160['type']?_0xadd3c6['createPositionAt'](_0x42d160['item'],'end'):_0xadd3c6['createPositionBefore'](_0x42d160['item']);return _0xadd3c6['createPositionFromPath'](_0x4789f1,_0x26c091['path'],_0x26c091['stickiness']);}function J(_0x5b97f7,_0x3f5c65,_0x2dfd50){const _0x2024ae='elementStart'==_0x5b97f7['type']?_0x2dfd50['createPositionAt'](_0x5b97f7['item'],0x0):_0x2dfd50['createPositionAfter'](_0x5b97f7['item']);return _0x2dfd50['createPositionFromPath'](_0x3f5c65,_0x2024ae['path'],_0x2024ae['stickiness']);}class hs extends _0x3191d2{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5f15ed,_0x189f86){super(_0x5f15ed),this['focusTracker']=new _0x46dc44(),this['keystrokes']=new _0x3c8938(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x189f86),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x2d472c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2f565c=_0x2953ed=>_0x2953ed['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2f565c),this['keystrokes']['set']('arrowleft',_0x2f565c),this['keystrokes']['set']('arrowup',_0x2f565c),this['keystrokes']['set']('arrowdown',_0x2f565c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2e5dcd){this['revisionNameInputView']['fieldView']['element']['value']=_0x2e5dcd['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x9cd2d4){const _0x1fb5e8=new nt(this['locale'],_0x101bc4),_0x533b89=_0x1fb5e8['fieldView'];_0x533b89['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x513cb1=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x9cd2d4&&(_0x513cb1+='\x20('+m(this['locale'],'optional')+')'),(_0x1fb5e8['label']=_0x513cb1,_0x533b89['on']('input',()=>{this['revisionNameInputValue']=_0x533b89['element']['value']['trim']();}),_0x1fb5e8);}}class u extends _0x46c671{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x56a76c=this['editor'],_0x146e9f=_0x56a76c['plugins']['get']('RevisionTracker');_0x56a76c['ui']['componentFactory']['add']('revisionHistory',_0x4837ee=>{const _0x2ca9f3=_0x4ce21a(_0x4837ee),_0x1cf04b=_0x2ca9f3['panelView']['children'],_0x3c8c26=new _0x4cd0b4(_0x4837ee),_0x4b4ed7=new _0x26a18a(_0x4837ee),_0x3d291a=new _0x5d5006(_0x4837ee),_0x9729d=new _0x26a18a(_0x4837ee),_0x15e6a9=new _0x5d5006(_0x4837ee);return _0x2ca9f3['bind']('isEnabled')['to'](_0x146e9f,'isReady',_0x146e9f,'isEnabled',_0x56a76c,'isReadOnly',(_0x451f5c,_0x23b889,_0xb704a0)=>_0x451f5c&&_0x23b889&&!_0xb704a0),_0x2ca9f3['buttonView']['set']({'icon':_0x36297c['history'],'label':m(_0x4837ee,'Revision\x20history'),'tooltip':!0x0}),_0x3d291a['set']({'label':m(_0x4837ee,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3d291a['bind']('isEnabled')['to'](_0x146e9f,'isReady',_0x146e9f,'isEnabled',_0x56a76c,'isReadOnly',(_0x34b87f,_0x5f2688,_0x26d63d)=>_0x34b87f&&_0x5f2688&&!_0x26d63d),_0x3d291a['on']('execute',()=>this['_showDialog']()),_0x15e6a9['set']({'label':m(_0x4837ee,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x15e6a9['bind']('isEnabled')['to'](_0x146e9f,'isReady',_0x56a76c,'isReadOnly',(_0x32da5a,_0x54be50)=>_0x32da5a&&!_0x54be50),_0x15e6a9['on']('execute',()=>{_0x56a76c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2ca9f3['isOpen']=!0x1,_0x56a76c['editing']['view']['focus']();}),_0x4b4ed7['children']['add'](_0x3d291a),_0x9729d['children']['add'](_0x15e6a9),_0x3c8c26['role']='menu',_0x3c8c26['items']['addMany']([_0x4b4ed7,_0x9729d]),_0x1cf04b['add'](_0x3c8c26),_0x2ca9f3;}),_0x56a76c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x467213=this['editor'],_0x290107=_0x467213['locale'],_0x5438b1=new _0x37fedc(_0x290107),_0x1ddeba=new _0x1a6348(_0x290107);_0x5438b1['buttonView']['set']({'icon':_0x36297c['history'],'label':m(_0x290107,'Revision\x20history')});const _0x150032=new _0x48e1ba(_0x290107,_0x5438b1),_0x393284=new _0x4b263a(_0x290107);_0x393284['set']({'label':m(_0x290107,'Save\x20current\x20revision')}),_0x393284['delegate']('execute')['to'](_0x5438b1),_0x393284['on']('execute',()=>{this['_showDialog']();}),_0x150032['children']['add'](_0x393284),_0x1ddeba['items']['add'](_0x150032);const _0x215405=new _0x48e1ba(_0x290107,_0x5438b1),_0x48f297=new _0x4b263a(_0x290107);return _0x48f297['set']({'label':m(_0x290107,'Open\x20revision\x20history')}),_0x48f297['delegate']('execute')['to'](_0x5438b1),_0x48f297['on']('execute',()=>{_0x467213['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x215405['children']['add'](_0x48f297),_0x1ddeba['items']['add'](_0x215405),_0x5438b1['panelView']['children']['add'](_0x1ddeba),_0x5438b1;}['_showDialog'](){const _0x59cc8f=this['editor'],_0x25c5ef=_0x59cc8f['locale'],_0x25eb80=_0x59cc8f['plugins']['get']('Dialog'),_0x9366dd=_0x59cc8f['plugins']['get']('RevisionTracker');function _0x4ba6bb(_0x7399a1){_0x59cc8f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x7399a1['revisionName']?_0x7399a1['revisionNameInputView']['errorText']=m(_0x25c5ef,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x59cc8f['plugins']['get'](l)['saveRevision']({'name':_0x7399a1['revisionName']}),_0x25eb80['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4ba6bb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x25eb80['show']({'id':'revisionSave','title':m(_0x25c5ef,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x59cc8f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x25eb80['hide']()},{'label':m(_0x59cc8f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x49de91){_0x49de91['bind']('isEnabled')['to'](_0x9366dd,'isReady',_0x9366dd,'isEnabled',_0x59cc8f,'isReadOnly',(_0x3afe7c,_0x23f738,_0x15e7a2)=>_0x3afe7c&&_0x23f738&&!_0x15e7a2);},'onExecute':()=>_0x4ba6bb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x25c3ce=this['editor'],_0x1adbf3=_0x25c3ce['locale'];this['_saveRevisionFormView']=new hs(_0x1adbf3,_0x25c3ce['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3191d2{['changeId'];['_model'];constructor(_0x32ae23,_0x18be4d){super(_0x32ae23),this['_model']=_0x18be4d,this['changeId']=_0x18be4d['id'];const _0x16fa0a=this['bindTemplate'],_0x1b5d4a=m(_0x32ae23,_0x18be4d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x18be4d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x18be4d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x16fa0a['to']('type',_0x44cc97=>'ck-revision-change__'+_0x44cc97)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1b5d4a}]},{'text':'\x20'+_0x18be4d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x153256(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xa6bf21){super(),this['id']=_0xa6bf21['id']||_0x1de225(),this['author']=_0xa6bf21['author'],this['type']=_0xa6bf21['type'],this['data']=_0xa6bf21['data']||{},this['rootName']=_0xa6bf21['rootName'],this['set']('createdAt',_0xa6bf21['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1475b9,_0xcf70b5){this['newRevisionId']=_0x1475b9,this['oldRevisionId']=_0xcf70b5,this['changes']=new _0x369930();}['_setChanges'](_0x5e0d6f){for(const _0x48775c of _0x5e0d6f)this['changes']['add'](_0x48775c);}}const Y={'c':_0x12a9ad,'a':_0x276013,'e':_0x57a21f,'r':_0x347dc5,'u':_0x18c6ed};class d extends _0x46c671{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5bda76,_0xeb8c9,j];}constructor(_0x17d952){super(_0x17d952),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x28faea,_0x48bf6c,_0x25dd2f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x15c57c=>{for(const _0xf9e687 of this['editor']['editing']['view']['document']['roots'])_0x25dd2f?_0x15c57c['removeClass']('ck-editor__editable__overlay',_0xf9e687):_0x15c57c['addClass']('ck-editor__editable__overlay',_0xf9e687);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xb3a8d7=>null!==_0xb3a8d7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xbaab43,_0x29771b,_0x4fb419)=>_0xbaab43&&_0x4fb419?_0x29771b['changes']['getIndex'](_0x4fb419):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x412af1,_0xcf65a6)=>_0x412af1?_0xcf65a6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xeb8c9);}['init'](){const _0x2feae7=this['editor'],_0x297ba0=new yt(_0x2feae7,{'direction':'backward'}),_0x3ab455=new yt(_0x2feae7,{'direction':'forward'});(_0x2feae7['commands']['add']('showPreviousChange',_0x297ba0),_0x2feae7['commands']['add']('showNextChange',_0x3ab455),_0x2feae7['commands']['add']('restoreRevision',new _t(_0x2feae7)),this['on']('change:numberOfChanges',()=>{_0x297ba0['refresh'](),_0x3ab455['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2feae7['enableReadOnlyMode']('revision-viewer'),_0x2feae7['plugins']['has']('WidgetToolbarRepository'))&&_0x2feae7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5bf442){await this['loadRevisionData'](_0x5bf442);const _0x178058={};for(const _0x379a23 in _0x5bf442['diffData']){if(_0x5bf442['diffData'][_0x379a23]['attachChange']&&!_0x5bf442['diffData'][_0x379a23]['attachChange']['isAttached'])continue;const _0x3aac28=this['_removeRevisionMarkers'](JSON['parse'](_0x5bf442['diffData'][_0x379a23]['insertions'])),_0x243a37=this['editor']['editing']['view']['document'],_0x216de3=new _0x2ec321(_0x243a37,_0x3aac28['map'](_0x4ba480=>this['_getViewObj'](_0x4ba480)));this['editor']['data']['processor']['useFillerType']('marked'),_0x178058[_0x379a23]=this['editor']['data']['processor']['toData'](_0x216de3),this['editor']['data']['processor']['useFillerType']('default');}return _0x178058;}async['getRevisionRootsAttributes'](_0x5b8541){await this['loadRevisionData'](_0x5b8541);const _0xf3f6cd={};for(const _0x134b8e in _0x5b8541['diffData'])_0x5b8541['diffData'][_0x134b8e]['attachChange']&&!_0x5b8541['diffData'][_0x134b8e]['attachChange']['isAttached']||(_0xf3f6cd[_0x134b8e]=_0x5b8541['diffData'][_0x134b8e]['attributesAfter']||{});return _0xf3f6cd;}['_removeRevisionMarkers'](_0x48b6f4){return(_0x48b6f4=_0x48b6f4['filter'](_0x1ad2b1=>!_0x1ad2b1['name']||'revision-start'!==_0x1ad2b1['name']&&'revision-end'!==_0x1ad2b1['name']))['forEach'](_0x329802=>{'string'!=typeof _0x329802&&(_0x329802['children']=this['_removeRevisionMarkers'](_0x329802['children']),_0x329802['attributes']=_0x329802['attributes']['filter'](_0x24812e=>!_0x24812e[0x0]['startsWith']('data-revision-')));}),_0x48b6f4;}async['compare'](_0x5ee815,_0x38afd9,_0x45a5a9=!0x1){if(!this['isEnabled'])return;const _0x430798=this['diff'],_0x157032=this['repository'],_0x3cfa21='string'==typeof _0x5ee815?_0x157032['getRevision'](_0x5ee815):_0x5ee815,_0x24d7a4='string'==typeof _0x38afd9?_0x157032['getRevision'](_0x38afd9):_0x38afd9,_0x393d4a=_0x3cfa21['id'],_0xbbc12=_0x24d7a4?_0x24d7a4['id']:null;if(!_0x45a5a9&&this['diff']&&this['diff']['newRevisionId']===_0x393d4a&&this['diff']['oldRevisionId']===_0xbbc12)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x393d4a,_0xbbc12);const _0xfd4eee=this['_getRevisionsRange'](_0x3cfa21,_0x24d7a4,!0x0)['map'](_0x36a22b=>this['loadRevisionData'](_0x36a22b));return _0xfd4eee['push'](new Promise(_0xf0176e=>{setTimeout(_0xf0176e,0x14);})),Promise['all'](_0xfd4eee)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x20b1cf=this['_getDiff'](_0x393d4a,_0xbbc12);for(const _0x3a84a5 of _0x20b1cf['changes'])this['_changeIdToChange']['set'](_0x3a84a5['id'],_0x3a84a5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4b8354=>{for(const _0x1b618a of this['editor']['model']['document']['getRootNames']())_0x4b8354['detachRoot'](_0x1b618a);for(const _0x375577 of Object['keys'](_0x20b1cf['model'])){const _0x2e831=_0x4b8354['addRoot'](_0x375577);for(const _0x120aa2 of Object['keys'](_0x20b1cf['attributes'][_0x375577]))_0x4b8354['setAttribute'](_0x120aa2,_0x20b1cf['attributes'][_0x375577][_0x120aa2],_0x2e831);_0x4b8354['insert'](_0x20b1cf['model'][_0x375577],_0x2e831,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x20b1cf['changes'])),this['isReady']=!0x0;})['catch'](_0x14b935=>{console['error'](_0x14b935),this['_cleanUp'](),_0x430798&&(this['diff']=_0x430798),this['isReady']=!0x0;});}['addRevisionData'](_0x535357,_0x25f07e){const _0x2c60f7=this['repository']['createRevision'](_0x535357);return _0x2c60f7['on']('_update',(_0x497ab7,_0x5a5bfc,_0x314058)=>_0x25f07e(_0x5a5bfc,_0x314058,_0x2c60f7)),this['repository']['addRevision'](_0x2c60f7),_0x2c60f7;}['loadRevisionData'](_0x2344c9){if(!_0x2344c9||_0x2344c9['diffData'])return Promise['resolve']();{const _0x575d4a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x575d4a,'revisionId':_0x2344c9['id']})['then'](_0x4d7871=>{_0x2344c9['_update']({'diffData':_0x4d7871['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xf4f19b=>{for(const _0x550c30 of this['editor']['model']['document']['getRootNames']())_0xf4f19b['detachRoot'](_0x550c30);});}['_sortAndFilterDiffChanges'](_0x539b31){const _0x272081=[],_0x5cea1c=new Map();for(const _0x4093d6 of this['editor']['model']['document']['getRootNames']()){const _0x38436b=this['editor']['editing']['view']['getDomRoot'](_0x4093d6);if(!_0x38436b)continue;const _0x3cc92b=_0x38436b['getClientRects']()['item'](0x0);_0x3cc92b&&(_0x272081['push'](_0x4093d6),_0x5cea1c['set'](_0x4093d6,_0x3cc92b));}return _0x272081['sort']((_0x299c29,_0x5b9885)=>{const _0x264abe=_0x5cea1c['get'](_0x299c29),_0x4e603f=_0x5cea1c['get'](_0x5b9885);return _0x264abe['y']-_0x4e603f['y']||_0x264abe['x']-_0x4e603f['x'];}),(_0x539b31=_0x539b31['filter'](_0x2eeabb=>_0x272081['includes'](_0x2eeabb['rootName'])))['sort']((_0x9f99c5,_0x4fc770)=>_0x272081['indexOf'](_0x9f99c5['rootName'])-_0x272081['indexOf'](_0x4fc770['rootName'])),_0x539b31;}['_makeTape'](_0x2937dd){const _0x4fd978=Array['from'](_0x2937dd['markers'])['filter'](([_0x16acc6,_0x5ccfc8])=>_0x16acc6['startsWith']('revision:')&&!_0x5ccfc8['isCollapsed']),_0x1dd6df=Array['from'](this['editor']['model']['createRangeIn'](_0x2937dd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4fd978['length'])for(const _0x157a41 of _0x1dd6df){const [_0x2c0ff1,_0x4cc0af]=_0x4fd978[0x0],[,_0x4f3178,_0x58f180]=_0x2c0ff1['split'](':');if(_0x4cc0af['end']['isEqual'](_0x157a41['nextPosition'])&&_0x4fd978['shift'](),(_0x157a41['previousPosition']['isEqual'](_0x4cc0af['start'])||_0x157a41['previousPosition']['isAfter'](_0x4cc0af['start']))&&('insertion'==_0x4f3178?_0x157a41['isAdded']={'userId':_0x58f180}:'deletion'==_0x4f3178&&(_0x157a41['isRemoved']={'userId':_0x58f180})),0x0==_0x4fd978['length'])break;}return _0x1dd6df;}['_refreshStartEndIndex'](_0x223b05){const _0x347770=new Map();for(let _0x5dca5c=0x0;_0x5dca5c<_0x223b05['length'];_0x5dca5c++)'text'===_0x223b05[_0x5dca5c]['type']?(_0x223b05[_0x5dca5c]['item']['startIndex']=_0x5dca5c,_0x223b05[_0x5dca5c]['item']['endIndex']=_0x5dca5c):('elementStart'===_0x223b05[_0x5dca5c]['type']?_0x223b05[_0x5dca5c]['item']['startIndex']=_0x5dca5c:'elementEnd'===_0x223b05[_0x5dca5c]['type']&&(_0x223b05[_0x5dca5c]['item']['endIndex']=_0x5dca5c),_0x347770['set'](_0x223b05[_0x5dca5c]['id'],_0x5dca5c));for(const _0x45aef7 of _0x347770['values']())'elementStart'===_0x223b05[_0x45aef7]['type']?_0x223b05[_0x45aef7]['item']['endIndex']=_0x347770['get'](_0x223b05[_0x45aef7]['pairId']):'elementEnd'===_0x223b05[_0x45aef7]['type']&&(_0x223b05[_0x45aef7]['item']['startIndex']=_0x347770['get'](_0x223b05[_0x45aef7]['pairId']));}['_processTape'](_0x57f2a2){for(let _0x40257e=0x0;_0x40257e<_0x57f2a2['length'];_0x40257e++){if('elementStart'===_0x57f2a2[_0x40257e]['type'])_0x57f2a2[_0x40257e]['item']['startIndex']=_0x40257e;else{if('elementEnd'===_0x57f2a2[_0x40257e]['type']){_0x57f2a2[_0x40257e]['item']['endIndex']=_0x40257e;const _0x29dc7b=_0x57f2a2[_0x40257e]['item']['startIndex'];_0x57f2a2[_0x29dc7b]['pairId']=_0x57f2a2[_0x40257e]['id'],_0x57f2a2[_0x40257e]['pairId']=_0x57f2a2[_0x29dc7b]['id'];}else _0x57f2a2[_0x40257e]['item']['startIndex']=_0x40257e,_0x57f2a2[_0x40257e]['item']['endIndex']=_0x40257e,_0x57f2a2[_0x40257e]['pairId']=null;}_0x57f2a2[_0x40257e]['markersStart']||(_0x57f2a2[_0x40257e]['markersStart']=[],_0x57f2a2[_0x40257e]['markersEnd']=[]);}}['_markInsertions'](_0xa848a6,_0x25a55a){const _0x27c7c4=_0xa848a6['filter'](_0x56296b=>!_0x56296b['isAdded']);for(let _0x3a420b=0x0;_0x3a420b<_0x25a55a['length'];_0x3a420b++)_0x25a55a[_0x3a420b]['isAdded']&&(_0x27c7c4[_0x3a420b]['isAdded']=_0x25a55a[_0x3a420b]['isAdded']);}['_makeModelFromViewString'](_0x5a7b9a){const _0x305088=JSON['parse'](_0x5a7b9a),_0x5f2324=this['editor']['editing']['view']['document'],_0x52f223=new _0x2ec321(_0x5f2324,_0x305088['map'](_0xf9281b=>this['_getViewObj'](_0xf9281b)));return this['editor']['data']['toModel'](_0x52f223);}['_getViewObj'](_0x334fd6){const _0x5985cb=this['editor']['editing']['view']['document'];if('string'==typeof _0x334fd6)return new _0x5aeb6e(_0x5985cb,_0x334fd6);{const _0x5d9f8d=_0x334fd6['children']['map'](_0x4ed47d=>this['_getViewObj'](_0x4ed47d));return new(Y[_0x334fd6['type']]||_0x3d1ce6)(_0x5985cb,_0x334fd6['name'],_0x334fd6['attributes'],_0x5d9f8d);}}['_getDiff'](_0x203a0c,_0x552bbe=null){const _0x26ac77=this['repository']['getRevision'](_0x203a0c),_0x137c2b=_0x552bbe?this['repository']['getRevision'](_0x552bbe):null,_0x3c7f2e=this['_getRevisionsRange'](_0x26ac77,_0x137c2b),_0x2714c2=_0x3c7f2e[_0x3c7f2e['length']-0x1],_0x4da8e8=new Map(),_0x3f9168={'model':{},'attributes':{},'changes':[]},_0x68d973=new Set(),_0x5c4d5c=new Map();for(let _0x1b458f=_0x3c7f2e['length']-0x1;_0x1b458f>=0x0;_0x1b458f--){const _0x572959=_0x3c7f2e[_0x1b458f];for(const _0x1ceb6f of Object['keys'](_0x572959['diffData']))if(_0x572959['diffData'][_0x1ceb6f]['attachChange']){const _0x872a11=_0x572959['diffData'][_0x1ceb6f]['attachChange'];_0x872a11['isAttached']?(_0x68d973['add'](_0x1ceb6f),_0x5c4d5c['has'](_0x1ceb6f)&&_0x5c4d5c['get'](_0x1ceb6f)['userId']==_0x872a11['userId']?_0x5c4d5c['delete'](_0x1ceb6f):_0x5c4d5c['set'](_0x1ceb6f,_0x872a11)):_0x5c4d5c['has'](_0x1ceb6f)?(_0x68d973['delete'](_0x1ceb6f),_0x5c4d5c['delete'](_0x1ceb6f)):(_0x68d973['add'](_0x1ceb6f),_0x5c4d5c['set'](_0x1ceb6f,_0x872a11));}else _0x68d973['add'](_0x1ceb6f);}for(const _0x48f7e3 of _0x68d973){const _0x65919f=_0x5c4d5c['has'](_0x48f7e3)&&!_0x5c4d5c['get'](_0x48f7e3)['isAttached'];let _0x3ece8f=_0x65919f?_0x3c7f2e['length']-0x1:0x0;const _0x4e80d2=_0x65919f?-0x1:0x1;for(;_0x3c7f2e[_0x3ece8f];){const _0xdd7fd6=_0x3c7f2e[_0x3ece8f];if(_0xdd7fd6['diffData'][_0x48f7e3]){const _0x48cd71=_0x65919f?_0xdd7fd6['diffData'][_0x48f7e3]['attributesBefore']:_0xdd7fd6['diffData'][_0x48f7e3]['attributesAfter'];_0x3f9168['attributes'][_0x48f7e3]=_0x48cd71?_0x140c2b(_0x48cd71):{};break;}_0x3ece8f+=_0x4e80d2;}}for(const _0x20d1d9 of _0x3c7f2e){_0x20d1d9['model']={};for(const _0x551b96 of _0x20d1d9['authors'])_0x4da8e8['set'](_0x551b96['id'],_0x551b96);for(const _0x482d3c of _0x68d973){const _0xdc5829=_0x20d1d9['diffData'][_0x482d3c]?_0x20d1d9['diffData'][_0x482d3c]['insertions']:'[]',_0x543107=_0x20d1d9['diffData'][_0x482d3c]?_0x20d1d9['diffData'][_0x482d3c]['deletions']:'[]';_0x20d1d9['model'][_0x482d3c]={'insertions':this['_makeModelFromViewString'](_0xdc5829),'deletions':this['_makeModelFromViewString'](_0x543107)};}}for(const _0x37c20f of _0x68d973){let _0x5ee111=null,_0x3f93b0=0x0;const _0x465ece=new Map(Array['from'](_0x26ac77['model'][_0x37c20f]['insertions']['markers'])['filter'](([_0x40e3ca])=>!_0x40e3ca['startsWith']('revision:')));let _0x41eb8a=0x0;for(const _0x4a8a08 of _0x3c7f2e){const _0x244f6e=this['_makeTape'](_0x4a8a08['model'][_0x37c20f]['insertions']);_0x4a8a08==_0x26ac77?(_0x5ee111=_0x244f6e,_0x3f93b0=_0x5ee111['length'],_0x5ee111['forEach'](_0x395684=>{_0x395684['id']=_0x41eb8a++;}),this['_processTape'](_0x5ee111)):this['_markInsertions'](_0x5ee111,_0x244f6e);const _0x1a2dcc=_0x5ee111['filter'](_0x38b6fe=>!_0x38b6fe['isAdded'])['map'](_0x3419c8=>_0x3419c8['id']);let _0x2e41c2=0x0;const _0x52c96a=this['_makeTape'](_0x4a8a08['model'][_0x37c20f]['deletions']);_0x52c96a['forEach'](_0x3d2e80=>{_0x3d2e80['isRemoved']?_0x3d2e80['id']=_0x3f93b0++:_0x3d2e80['id']=_0x1a2dcc[_0x2e41c2++];}),this['_processTape'](_0x52c96a),this['_setDistance'](_0x5ee111,'isAdded'),this['_setDistance'](_0x52c96a,'isRemoved'),_0x4a8a08==_0x26ac77&&this['_markMarkers'](_0x5ee111,_0x465ece),_0x5ee111=this['_joinTapes'](_0x5ee111,_0x52c96a),this['_refreshStartEndIndex'](_0x5ee111),this['_setDistance'](_0x5ee111,'isRemoved');}_0x5ee111=_0x5ee111['filter'](_0x18a60f=>!(_0x18a60f['isAdded']&&_0x18a60f['isRemoved']));const _0x7360f7=new Map(_0x2714c2['model'][_0x37c20f]['deletions']['markers']),_0x23322b=new Set(_0x465ece['keys']());for(const _0x4a7ebf of _0x7360f7['keys']())_0x23322b['delete'](_0x4a7ebf);this['_markSuggestions'](_0x5ee111,_0x23322b),this['_fixObsoleteTags'](_0x5ee111),_0x5ee111=this['_removeMissingPairs'](_0x5ee111),_0x5ee111=this['_markMismatchedRemovedTags'](_0x5ee111),_0x5ee111=this['_removeUnsupportedChanges'](_0x5ee111);const {root:_0x436a8c,changes:_0x44aeec}=this['_makeModelFromTape'](_0x5ee111,_0x4da8e8,_0x37c20f);_0x3f9168['model'][_0x37c20f]=_0x436a8c;const _0x5b61b1=_0x5c4d5c['get'](_0x37c20f);if(_0x5b61b1){const _0x534083=_0x4da8e8['get'](_0x5b61b1['userId']),_0x156c03=new r({'author':_0x534083,'type':_0x5b61b1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x37c20f});_0x44aeec['unshift'](_0x156c03),_0x3f9168['attributes'][_0x37c20f]['revisionHistoryAttachChange']=_0x156c03['id'];}_0x3f9168['changes']=_0x3f9168['changes']['concat'](_0x44aeec);}return _0x3f9168;}['_markMarkers'](_0x21dc89,_0x35eebe){for(let _0x5e6d23=0x0;_0x5e6d23<_0x21dc89['length'];_0x5e6d23++)for(const [_0x95df64,_0x5aaa07]of _0x35eebe)_0x5aaa07['start']['isEqual'](_0x21dc89[_0x5e6d23]['previousPosition'])&&_0x21dc89[_0x5e6d23]['markersStart']['push'](_0x95df64),_0x5aaa07['end']['isEqual'](_0x21dc89[_0x5e6d23]['nextPosition'])&&_0x21dc89[_0x5e6d23]['markersEnd']['push'](_0x95df64);}['_joinTapes'](_0x1b3b32,_0x4e72c9){let _0xd37d4a=[],_0x67fca8=0x0,_0x8d7ccb=0x0;for(;_0x67fca8<_0x1b3b32['length']||_0x8d7ccb<_0x4e72c9['length'];){const _0x1c0f65=_0x1b3b32[_0x67fca8]||{},_0x32fd09=_0x4e72c9[_0x8d7ccb]||{};if(_0x1c0f65['id']==_0x32fd09['id'])_0x67fca8++,_0x8d7ccb++,_0xd37d4a['push'](_0x1c0f65);else{if(_0x32fd09['isRemoved']&&_0x1c0f65['isAdded']){const {commonTape:_0x4f23fe,iEnd:_0x3f1301,jEnd:_0x2a9c4a}=this['_threeWayMerge'](_0x1b3b32,_0x67fca8,_0x4e72c9,_0x8d7ccb);_0xd37d4a=_0xd37d4a['concat'](_0x4f23fe),_0x67fca8=_0x3f1301,_0x8d7ccb=_0x2a9c4a;}else _0x32fd09['isRemoved']?(_0x8d7ccb++,_0xd37d4a['push'](_0x32fd09)):(_0x67fca8++,_0xd37d4a['push'](_0x1c0f65));}}return _0xd37d4a;}['_markSuggestions'](_0x130955,_0x3be8bb){const _0x3dc5b5=[];for(let _0x392f19=0x0;_0x392f19<_0x130955['length'];_0x392f19++){for(let _0x372e9f=0x0;_0x372e9f<_0x130955[_0x392f19]['markersStart']['length'];_0x372e9f++){const _0xd7e7f2=_0x130955[_0x392f19]['markersStart'][_0x372e9f];if(!_0x3be8bb['has'](_0xd7e7f2))continue;const {group:_0x245718,type:_0x181422,authorId:_0x66e944}=_0x54a4d6(_0xd7e7f2);'revision-suggestion'!=_0x245718||'insertion'!=_0x181422&&'deletion'!=_0x181422||(_0x3dc5b5['unshift']({'type':_0x181422,'name':_0xd7e7f2,'userId':_0x66e944}),_0x130955[_0x392f19]['markersStart']['splice'](_0x372e9f,0x1),_0x372e9f--);}_0x3ee5dc(_0x130955[_0x392f19]);for(let _0x4c0af8=0x0;_0x4c0af8<_0x130955[_0x392f19]['markersEnd']['length'];_0x4c0af8++){const _0x3fe759=_0x130955[_0x392f19]['markersEnd'][_0x4c0af8];if(!_0x3be8bb['has'](_0x3fe759))continue;const {group:_0x456ed5,type:_0x4356a4}=_0x54a4d6(_0x3fe759);if('revision-suggestion'!=_0x456ed5||'insertion'!=_0x4356a4&&'deletion'!=_0x4356a4)continue;_0x130955[_0x392f19]['markersEnd']['splice'](_0x4c0af8,0x1),_0x4c0af8--;const _0x12abdc=_0x3dc5b5['findIndex'](_0x2da909=>_0x2da909['name']==_0x3fe759);_0x12abdc>-0x1&&_0x3dc5b5['splice'](_0x12abdc,0x1);}}function _0x54a4d6(_0x30c0cf){const _0x5aa9c5=_0x30c0cf['split'](':');return{'group':_0x5aa9c5[0x0],'type':_0x5aa9c5[0x1],'subType':_0x5aa9c5['length']>=0x5?_0x5aa9c5[0x2]:null,'id':_0x5aa9c5['length']<0x5?_0x5aa9c5[0x2]:_0x5aa9c5[0x3],'authorId':_0x5aa9c5['length']<0x5?_0x5aa9c5[0x3]:_0x5aa9c5[0x4],'markerCount':0x6==_0x5aa9c5['length']?_0x5aa9c5[0x5]:null};}function _0x3ee5dc(_0x43432f){for(let _0x3f31c7=0x0;_0x3f31c7<_0x3dc5b5['length'];_0x3f31c7++){if(_0x43432f['isAdded']&&'insertion'==_0x3dc5b5[_0x3f31c7]['type'])return _0x43432f['isAddSuggestion']=_0x3dc5b5[_0x3f31c7],void delete _0x43432f['isAdded'];if(!_0x43432f['isAdded']&&!_0x43432f['isRemoved']&&'deletion'==_0x3dc5b5[_0x3f31c7]['type'])return void(_0x43432f['isRemoveSuggestion']=_0x3dc5b5[_0x3f31c7]);}}}['_setDistance'](_0x570a78,_0x20d9f4){let _0x2ddf28=0x0,_0x173f33=!0x1;const _0x28a087=new Map();for(const _0x2a69fb of _0x570a78)_0x2a69fb[_0x20d9f4]?_0x173f33&&(_0x2ddf28++,_0x173f33=!0x1):(_0x2ddf28++,_0x173f33=!0x0),_0x28a087['set'](_0x2a69fb['id'],_0x2ddf28);for(let _0x45776f=0x0;_0x45776f<_0x570a78['length'];_0x45776f++){if('isRemoved'==_0x20d9f4&&_0x570a78[_0x45776f]['isAdded']||'isAdded'==_0x20d9f4&&_0x570a78[_0x45776f]['isRemoved'])continue;if('text'==_0x570a78[_0x45776f]['type']){_0x570a78[_0x45776f]['distance']=0x0;continue;}const _0x5803d2=_0x28a087['get'](_0x570a78[_0x45776f]['pairId']),_0xd2ef91=_0x28a087['get'](_0x570a78[_0x45776f]['id']);_0x570a78[_0x45776f]['distance']=_0x5803d2-_0xd2ef91;}}['_getRevisionsRange'](_0xea3ba8,_0x24bf76,_0x334d8f=!0x1){const _0x56d875=[];let _0x29bfae=this['repository']['getIndex'](_0xea3ba8),_0xd963a5=this['repository']['getIndex'](_0x24bf76);for(-0x1==_0xd963a5&&(_0xd963a5=this['repository']['_revisions']['length'],_0x334d8f=!0x1);_0x29bfae<_0xd963a5;)_0x56d875['push'](this['repository']['getRevision'](_0x29bfae)),_0x29bfae++;return _0x334d8f&&_0x56d875['push'](this['repository']['getRevision'](_0x29bfae)),_0x56d875;}['_threeWayMerge'](_0x565607,_0x53df36,_0x2fbdf9,_0x120e68){const _0xdcc0c9=this['editor']['model']['schema'];let _0x20b52b=_0x53df36;for(;_0x565607[_0x20b52b]&&_0x565607[_0x20b52b]['isAdded'];)_0x20b52b++;let _0x4f3498=_0x120e68;for(;_0x2fbdf9[_0x4f3498]&&_0x2fbdf9[_0x4f3498]['isRemoved'];)_0x4f3498++;_0x1ccd50(_0x565607,_0x53df36,_0x20b52b),_0x1ccd50(_0x2fbdf9,_0x120e68,_0x4f3498);const _0x450d22=_0x2fbdf9['slice'](_0x120e68,_0x4f3498)['concat'](_0x565607['slice'](_0x53df36,_0x20b52b));return _0x450d22['sort']((_0x19ff7b,_0xcdf614)=>_0x19ff7b['side']!=_0xcdf614['side']?_0x19ff7b['side']-_0xcdf614['side']:_0x19ff7b['level']!=_0xcdf614['level']?_0x19ff7b['level']-_0xcdf614['level']:_0x19ff7b['distance']!=_0xcdf614['distance']?_0xcdf614['distance']-_0x19ff7b['distance']:!!_0x19ff7b['isAdded']!=!!_0xcdf614['isAdded']?-0x1==_0x19ff7b['side']||0x0==_0x19ff7b['side']?_0x19ff7b['isAdded']?-0x1:0x1:_0x19ff7b['isAdded']?0x1:-0x1:_0x19ff7b['index']-_0xcdf614['index']),{'commonTape':_0x450d22,'iEnd':_0x20b52b,'jEnd':_0x4f3498};function _0x1ccd50(_0x5c5321,_0x9074c8,_0x32e7be){let _0xa9e0e6=-0x1,_0x1595ec=Number['POSITIVE_INFINITY'],_0x58f077=!0x0;for(let _0x14f22d=_0x9074c8;_0x14f22d<_0x32e7be;_0x14f22d++)if(_0xdcc0c9['isInline'](_0x5c5321[_0x14f22d]['item'])||(_0x58f077=!0x1),_0x5c5321[_0x14f22d]['item']['startIndex']<_0x9074c8&&(_0xa9e0e6=_0x14f22d),_0x5c5321[_0x14f22d]['item']['endIndex']>=_0x32e7be){_0x1595ec=_0x14f22d;break;}_0x58f077&&(_0xa9e0e6=_0x32e7be-0x1);for(let _0x32b3c9=_0x9074c8;_0x32b3c9<_0x32e7be;_0x32b3c9++)_0x5c5321[_0x32b3c9]['side']=_0x32b3c9<=_0xa9e0e6?-0x1:_0x32b3c9<_0x1595ec?0x0:0x1,_0x5c5321[_0x32b3c9]['index']=_0x32b3c9;let _0x8e7dc7=0x0;for(let _0x23889c=_0x9074c8;_0x23889c<=_0xa9e0e6;_0x23889c++)0x0==_0x5c5321[_0x23889c]['distance']?_0x5c5321[_0x23889c]['level']=_0x8e7dc7:(_0x8e7dc7++,_0x5c5321[_0x23889c]['level']=_0x8e7dc7,_0x8e7dc7++);for(let _0x1ef797=_0x9074c8;_0x1ef797<_0x32e7be;_0x1ef797++)0x0==_0x5c5321[_0x1ef797]['side']&&(_0x5c5321[_0x1ef797]['level']=_0x8e7dc7);_0x8e7dc7=0x0;for(let _0x462120=_0x32e7be-0x1;_0x462120>=_0x1595ec;_0x462120--)0x0==_0x5c5321[_0x462120]['distance']?_0x5c5321[_0x462120]['level']=_0x8e7dc7:(_0x8e7dc7--,_0x5c5321[_0x462120]['level']=_0x8e7dc7,_0x8e7dc7--);}}['_fixObsoleteTags'](_0x3d0fba){const _0x4b9a5f=new Map(),_0x3bec43=this['editor']['model']['schema'];for(let _0x2e83f3=0x1;_0x2e83f3<_0x3d0fba['length'];_0x2e83f3++){let _0x4d24d8,_0x2fd11a,_0x5aeb11;const _0x4b104e=_0x3d0fba[_0x2e83f3],_0x121c09=_0x3d0fba[_0x2e83f3-0x1];if('text'==_0x4b104e['type'])continue;if(_0x4b104e['type']!=_0x121c09['type'])continue;if(!_0x3bec43['isBlock'](_0x121c09['item'])||_0x3bec43['isLimit'](_0x121c09['item']))continue;if(!_0x3bec43['isBlock'](_0x4b104e['item'])||_0x3bec43['isLimit'](_0x4b104e['item']))continue;if((_0x3d0fba[_0x2e83f3]['isAdded']||_0x3d0fba[_0x2e83f3]['isAddSuggestion'])&&_0x3d0fba[_0x2e83f3-0x1]['isRemoved'])_0x4d24d8=_0x3d0fba[_0x2e83f3],_0x2fd11a=_0x3d0fba[_0x2e83f3-0x1],_0x5aeb11=_0x2e83f3-0x1;else{if(!_0x3d0fba[_0x2e83f3]['isRemoved']||!_0x3d0fba[_0x2e83f3-0x1]['isAdded']&&!_0x3d0fba[_0x2e83f3-0x1]['isAddSuggestion'])continue;_0x4d24d8=_0x3d0fba[_0x2e83f3-0x1],_0x2fd11a=_0x3d0fba[_0x2e83f3],_0x5aeb11=_0x2e83f3;}const _0x4fe45d=_0x4d24d8['level']==_0x2fd11a['level'],_0x35686a=Math['abs'](_0x4d24d8['level'])<Math['abs'](_0x2fd11a['level'])&&0x0==_0x2fd11a['distance'];(_0x4fe45d||_0x35686a)&&(_0x4b9a5f['set'](_0x2fd11a['id'],_0x4d24d8['id']),_0x3d0fba['splice'](_0x5aeb11,0x1),_0x2e83f3--,_0x4d24d8['isAdded']=!0x1);}for(let _0x25b773=0x0;_0x25b773<_0x3d0fba['length'];_0x25b773++)_0x4b9a5f['has'](_0x3d0fba[_0x25b773]['pairId'])&&(_0x3d0fba[_0x25b773]['pairId']=_0x4b9a5f['get'](_0x3d0fba[_0x25b773]['pairId']));}['_removeMissingPairs'](_0x1b992b){const _0x3d0dd0=new Set(_0x1b992b['map'](_0x53a97c=>_0x53a97c['id']));for(let _0x2317c9=0x0;_0x2317c9<_0x1b992b['length'];_0x2317c9++)_0x3d0dd0['has'](_0x1b992b[_0x2317c9]['pairId'])||0x0==_0x1b992b[_0x2317c9]['distance']||(_0x1b992b[_0x2317c9]['isIncorrect']=!0x0);return _0x1b992b['filter'](_0xefdd21=>!_0xefdd21['isIncorrect']);}['_markMismatchedRemovedTags'](_0x48d238){const _0x189969=new Set();for(let _0x33b1c6=0x0;_0x33b1c6<_0x48d238['length'];_0x33b1c6++){if(_0x189969['has'](_0x48d238[_0x33b1c6]['id'])&&_0x48d238[_0x33b1c6]['isRemoved']&&(_0x48d238[_0x33b1c6]['isIncorrect']=!0x0),_0x48d238[_0x33b1c6]['isIncorrect'])continue;if(0x0==_0x48d238[_0x33b1c6]['distance'])continue;if('elementStart'!=_0x48d238[_0x33b1c6]['type'])continue;if(null==_0x48d238[_0x33b1c6]['pairId'])continue;let _0x1f95a7=_0x33b1c6+0x1,_0x1d67c1=0x0;for(;_0x48d238[_0x1f95a7]['id']!=_0x48d238[_0x33b1c6]['pairId'];)'elementStart'==_0x48d238[_0x1f95a7]['type']?_0x1d67c1++:'elementEnd'==_0x48d238[_0x1f95a7]['type']&&_0x1d67c1--,_0x1f95a7++;if(0x0!=_0x1d67c1){if(_0x48d238[_0x33b1c6]['isRemoved'])_0x48d238[_0x33b1c6]['isIncorrect']=!0x0;else{for(;_0x1f95a7!=_0x33b1c6;)_0x48d238[_0x1f95a7]['isRemoved']&&0x0!=_0x48d238[_0x1f95a7]['distance']&&(_0x48d238[_0x1f95a7]['isIncorrect']=!0x0,_0x189969['add'](_0x48d238[_0x1f95a7]['pairId'])),_0x1f95a7--;}}}return _0x48d238['filter'](_0x28e003=>!_0x28e003['isIncorrect']);}['_removeUnsupportedChanges'](_0x135a72){const _0x1c1b54=this['editor']['model']['schema'];for(let _0x4a42cf=0x0;_0x4a42cf<_0x135a72['length'];_0x4a42cf++){if(!(_0x135a72[_0x4a42cf]['isAdded']||_0x135a72[_0x4a42cf]['isAddSuggestion']||_0x135a72[_0x4a42cf]['isRemoved']||_0x135a72[_0x4a42cf]['isRemoveSuggestion']))continue;if(0x0==_0x135a72[_0x4a42cf]['distance'])continue;const _0x305e9d=_0x135a72[_0x4a42cf]['item'];_0x1c1b54['isBlock'](_0x305e9d)||_0x1c1b54['isLimit'](_0x305e9d)||(_0x135a72[_0x4a42cf]['isAdded']&&delete _0x135a72[_0x4a42cf]['isAdded'],_0x135a72[_0x4a42cf]['isAddSuggestion']&&delete _0x135a72[_0x4a42cf]['isAddSuggestion'],_0x135a72[_0x4a42cf]['isRemoveSuggestion']&&delete _0x135a72[_0x4a42cf]['isRemoveSuggestion'],_0x135a72[_0x4a42cf]['isRemoved']&&(_0x135a72[_0x4a42cf]['isIncorrect']=!0x0));}return _0x135a72['filter'](_0x301282=>!_0x301282['isIncorrect']);}['_makeModelFromTape'](_0x176d95,_0x3725e2,_0x1d2335){const _0x658cd4=new mt(),_0x1bff1e=[],_0x583c1c=new Map(),_0x249775=this['editor']['model'],_0x50292a=_0x249775['schema'],_0x5d5a3b=[_0x658cd4],_0x46de57={},_0x2dadbe={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3b873f=null;const _0x39401f=[0x0];for(let _0x3f6aa4=0x0;_0x3f6aa4<_0x176d95['length'];_0x3f6aa4++)if('elementStart'===_0x176d95[_0x3f6aa4]['type']){_0x176d95[_0x3f6aa4]['previousPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f);const _0x3f0745=new ft(_0x176d95[_0x3f6aa4]['item']['name'],_0x176d95[_0x3f6aa4]['item']['getAttributes']());_0x5d5a3b[0x0]['_appendChild'](_0x3f0745),_0x39401f['push'](0x0),_0x5d5a3b['unshift'](_0x3f0745),_0x176d95[_0x3f6aa4]['nextPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f);}else'elementEnd'===_0x176d95[_0x3f6aa4]['type']?(_0x5d5a3b['shift'](),_0x176d95[_0x3f6aa4]['previousPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f),_0x39401f['pop'](),_0x39401f[_0x39401f['length']-0x1]++,_0x176d95[_0x3f6aa4]['nextPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f)):(_0x176d95[_0x3f6aa4]['previousPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f),_0x3b873f?_0x3b873f['_data']+=_0x176d95[_0x3f6aa4]['item']['data']:_0x3b873f=new wt(_0x176d95[_0x3f6aa4]['item']['data'],_0x176d95[_0x3f6aa4]['item']['getAttributes']()),_0x176d95[_0x3f6aa4+0x1]&&'text'===_0x176d95[_0x3f6aa4+0x1]['type']&&_0x537a67(_0x3b873f,_0x176d95[_0x3f6aa4+0x1]['item'])||(_0x5d5a3b[0x0]['_appendChild'](_0x3b873f),_0x3b873f=null),_0x39401f[_0x39401f['length']-0x1]+=_0x176d95[_0x3f6aa4]['item']['offsetSize'],_0x176d95[_0x3f6aa4]['nextPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f));for(let _0x5cee03=0x0;_0x5cee03<_0x176d95['length'];_0x5cee03++){const _0x1f738a=_0x176d95[_0x5cee03]['previousPosition'],_0x3ffbbe=_0x176d95[_0x5cee03]['nextPosition'];for(const _0x1f8610 of _0x176d95[_0x5cee03]['markersStart'])_0x583c1c['set'](_0x1f8610,{'start':_0x1f738a,'end':null});_0x344d45('isRemoveSuggestion',_0x5cee03,_0x1f738a,_0x3ffbbe),_0x344d45('isAddSuggestion',_0x5cee03,_0x1f738a,_0x3ffbbe),_0x344d45('isRemoved',_0x5cee03,_0x1f738a,_0x3ffbbe),_0x344d45('isAdded',_0x5cee03,_0x1f738a,_0x3ffbbe);for(const _0x550124 of _0x176d95[_0x5cee03]['markersEnd']){_0x583c1c['get'](_0x550124)['end']=_0x3ffbbe;}}for(const [_0x12c368,_0x3006cb]of _0x583c1c){const _0x37fe15=this['editor']['model']['createRange'](_0x3006cb['start'],_0x3006cb['end']);_0x658cd4['markers']['set'](_0x12c368,_0x37fe15);}return _0x1bff1e['sort']((_0x107b2a,_0x39d7b3)=>{const _0x2f07e7=_0x658cd4['markers']['get']('revision:'+_0x107b2a['id']),_0x5cc386=_0x658cd4['markers']['get']('revision:'+_0x39d7b3['id']);return _0x2f07e7['start']['isBefore'](_0x5cc386['start'])?-0x1:_0x2f07e7['start']['isAfter'](_0x5cc386['start'])?0x1:_0x2f07e7['end']['isBefore'](_0x5cc386['end'])?-0x1:_0x2f07e7['end']['isAfter'](_0x5cc386['end'])?0x1:'add'===_0x107b2a['type']?-0x1:0x1;}),{'root':_0x658cd4,'changes':_0x1bff1e};function _0x344d45(_0x23705f,_0x39951b,_0x2db12e,_0x5b473a){const _0x514700=!!_0x176d95[_0x39951b][_0x23705f],_0x247153=_0x514700?_0x176d95[_0x39951b][_0x23705f]['userId']:null,_0x5404c9=_0x39951b===_0x176d95['length']-0x1,_0x18ba0f=_0x2dadbe[_0x23705f][0x0],_0xe1257b=_0x50292a['isObject'](_0x176d95[_0x39951b]['item']);!_0x46de57[_0x23705f]&&_0x514700?_0x46de57[_0x23705f]={'start':_0x2db12e,'tapeItem':_0x176d95[_0x39951b],'userId':_0x247153,'type':_0x23705f}:_0x46de57[_0x23705f]&&!_0x514700?(_0x46de57[_0x23705f]['end']=_0x2db12e,_0x34daea(_0x46de57[_0x23705f]),_0x46de57[_0x23705f]=null):_0x46de57[_0x23705f]&&_0x514700&&_0x46de57[_0x23705f]['userId']!==_0x247153&&(_0x46de57[_0x23705f]['end']=_0x2db12e,_0x18ba0f&&_0x18ba0f['userId']===_0x46de57[_0x23705f]['userId']||_0x34daea(_0x46de57[_0x23705f]),_0x46de57[_0x23705f]={'start':_0x2db12e,'tapeItem':_0x176d95[_0x39951b],'userId':_0x247153,'type':_0x23705f}),_0x46de57[_0x23705f]&&_0xe1257b&&('elementStart'!==_0x176d95[_0x39951b]['type']||_0x18ba0f&&_0x18ba0f['userId']===_0x247153||_0x2dadbe[_0x23705f]['unshift']({'userId':_0x247153,'object':_0x176d95[_0x39951b]['item'],'change':_0x46de57[_0x23705f]}),'elementEnd'===_0x176d95[_0x39951b]['type']&&_0x18ba0f&&_0x18ba0f['object']===_0x176d95[_0x39951b]['item']&&(_0x2dadbe[_0x23705f]['shift'](),_0x46de57[_0x23705f]=_0x18ba0f['change'])),_0x46de57[_0x23705f]&&_0x5404c9&&(_0x46de57[_0x23705f]['end']=_0x5b473a,_0x34daea(_0x46de57[_0x23705f]),_0x46de57[_0x23705f]=null);}function _0x34daea({start:_0x38c08c,end:_0x3b3f3f,tapeItem:_0x3ab6db,userId:_0x255475,type:_0xf734e8}){const _0xad18e4=_0x3ab6db['item'],_0x47bda3=_0x249775['schema']['isBlock'](_0xad18e4)&&!_0x249775['schema']['isLimit'](_0xad18e4),_0x3396b7=_0x38c08c['nodeAfter']==_0x3b3f3f['parent']&&_0x3b3f3f['isAtStart'];if(_0x47bda3&&_0x3396b7)return;const _0x593854=_0x249775['createRange'](_0x38c08c,_0x3b3f3f),_0x4f299b=_0x3725e2['get'](_0x255475),_0x5373db=new r({'author':_0x4f299b,'type':'isAdded'==_0xf734e8||'isAddSuggestion'==_0xf734e8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xf734e8||'isRemoveSuggestion'==_0xf734e8},'createdAt':new Date(),'rootName':_0x1d2335});_0x1bff1e['push'](_0x5373db),_0x658cd4['markers']['set']('revision:'+_0x5373db['id'],_0x593854);}function _0x537a67(_0x502403,_0x15a9de){const _0x4adf9e=_0x502403['getAttributes'](),_0x110d32=_0x15a9de['getAttributes']();for(const _0x281980 of _0x4adf9e){if(_0x281980[0x1]!==_0x15a9de['getAttribute'](_0x281980[0x0]))return!0x1;_0x110d32['next']();}return _0x110d32['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5bfc81=>{const _0x40310e=_0x5bfc81['markerName']['split'](':')[0x1],_0x130da0=this['_getChangeFromId'](_0x40310e);if(!_0x130da0)return null;const _0x1765a6='add'==_0x130da0['type']?'insertion':'deletion',_0x462940=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1765a6];return _0x130da0['data']['isSuggestion']&&_0x462940['push']('ck-suggestion-marker-'+_0x1765a6+'-new'),this['activeChange']==_0x130da0&&_0x462940['push']('ck-suggestion-marker--active'),{'classes':_0x462940,'attributes':{'data-change-id':_0x40310e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x569ca6=>{_0x569ca6['on']('element:pre',(_0x337803,_0x5444e1,_0x536b6c)=>{const _0x11be73=_0x5444e1['viewItem']['getChild'](0x0);if(!_0x11be73||!_0x11be73['is']('element','code'))return;if(!_0x536b6c['consumable']['consume'](_0x11be73,{'attributes':['vid_start','vid_end']}))return;const _0x1cc03c=_0x5444e1['modelRange']['start']['nodeAfter'];_0x536b6c['writer']['setAttribute']('vid_start',_0x11be73['getAttribute']('vid_start'),_0x1cc03c),_0x536b6c['writer']['setAttribute']('vid_end',_0x11be73['getAttribute']('vid_end'),_0x1cc03c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4bae85=>{_0x4bae85['on']('element',(_0x79dd6e,_0x5743f6,_0x3b47c2)=>{if(!_0x3b47c2['consumable']['consume'](_0x5743f6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5743f6['modelRange']['isCollapsed'])return;const _0x5dc9f4=_0x5743f6['modelRange']['start']['nodeAfter'];_0x5dc9f4['hasAttribute']('vid_start')||_0x5dc9f4['hasAttribute']('vid')||(_0x3b47c2['writer']['setAttribute']('vid_start',_0x5743f6['viewItem']['getAttribute']('vid_start'),_0x5dc9f4),_0x3b47c2['writer']['setAttribute']('vid_end',_0x5743f6['viewItem']['getAttribute']('vid_end'),_0x5dc9f4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x8833ba=>_0x8833ba['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x45823f,[,_0x108732])=>{['vid_start','vid_end','vid']['includes'](_0x108732)&&(_0x45823f['return']=!0x0,_0x45823f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x19e032=>{_0x19e032['on']('attribute:vid',(_0x47815c,_0xfa481e,_0x59dacc)=>{if('\x20'!=_0xfa481e['item']['data']||_0xfa481e['item']['parent']['maxOffset']>0x1)return;if(!_0x59dacc['consumable']['consume'](_0xfa481e['item'],_0x47815c['name']))return;const _0x41dcd2=_0x59dacc['writer'],_0x5a2bc5=_0x59dacc['mapper']['toViewRange'](_0xfa481e['range']);_0x41dcd2['wrap'](_0x5a2bc5,_0x41dcd2['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2be0f9){const _0x1893eb=_0x2be0f9['plugins']['get']('RevisionViewer');return(_0xcb3c10,_0x14950f,_0x47b1eb)=>{const _0x450e88=_0x14950f['markerName']['split'](':')[0x1],_0x646a91=_0x1893eb['_getChangeFromId'](_0x450e88);if(!_0x646a91)return null;const _0x38a10a='add'==_0x646a91['type']?'split':'merge';if(!_0x47b1eb['consumable']['test'](_0x14950f['markerRange'],_0xcb3c10['name']))return;const _0x3ff5ed=_0x14950f['markerRange']['getWalker'](),_0xba1046=_0x14950f['markerRange']['start'],_0x31cbdd=_0x2be0f9['model']['schema'];let _0x528f27=null,_0x34cbfe=null,_0x19ec0c=!0x1,_0x2a4f04=!0x1;for(const _0x1c74f8 of _0x3ff5ed){const _0xc55023=_0x1c74f8['item'];_0x19ec0c=_0x19ec0c||_0x31cbdd['isContent'](_0xc55023);const _0x2bb0b1=_0x47b1eb['mapper']['toViewElement'](_0xc55023);if(_0x2bb0b1&&_0x2bb0b1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c74f8['type']&&(_0x31cbdd['isBlock'](_0xc55023)&&!_0x31cbdd['isLimit'](_0xc55023)&&(_0xc55023['nextSibling']||_0xba1046['isAtEnd']?_0x528f27&&_0x528f27['parent']==_0xc55023||(_0x528f27=_0xc55023,_0x5867b9(_0x1c74f8['previousPosition']),_0x2a4f04=!0x0):_0x34cbfe=_0x34cbfe||_0x1c74f8['previousPosition']));}function _0x5867b9(_0x31f290){const _0x3b34fc=_0x47b1eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38a10a}),_0xb648fc=_0x47b1eb['mapper']['toViewPosition'](_0x31f290);_0x646a91['data']['isSuggestion']&&_0x47b1eb['writer']['addClass']('ck-suggestion-marker-'+_0x38a10a+'-new',_0x3b34fc),_0x1893eb['activeChange']==_0x646a91&&_0x47b1eb['writer']['addClass']('ck-suggestion-marker--active',_0x3b34fc),_0x47b1eb['writer']['insert'](_0xb648fc,_0x3b34fc),_0x47b1eb['mapper']['bindElementToMarker'](_0x3b34fc,_0x14950f['markerName']);}_0x19ec0c||_0x2a4f04||!_0x34cbfe||_0x5867b9(_0x34cbfe);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x386912,_0x3b3287,_0x1d5ac1)=>{const _0x4009af=_0x1d5ac1['mapper']['markerNameToElements'](_0x3b3287['markerName']);if(_0x4009af){for(const _0xbff787 of _0x4009af)(_0xbff787['hasClass']('ck-suggestion-marker-split')||_0xbff787['hasClass']('ck-suggestion-marker-merge'))&&(_0x1d5ac1['mapper']['unbindElementFromMarkerName'](_0xbff787,_0x3b3287['markerName']),_0x1d5ac1['writer']['remove'](_0xbff787));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x44c558,_0x2233fa,_0x3b63a0)=>{const _0x482298=_0x2233fa['markerName']['split'](':')[0x1],_0x4caf6e=this['_getChangeFromId'](_0x482298);if(!_0x4caf6e)return null;const _0x4b45f9='add'==_0x4caf6e['type']?'split':'merge';if(_0x3b63a0['consumable']['test'](_0x2233fa['markerRange'],_0x44c558['name']))for(const _0x3cf560 of _0x2233fa['markerRange']['getItems']()){if(!_0x3cf560['is']('element','softBreak'))continue;const _0x5d3008=_0x3b63a0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b45f9}),_0x19021f=_0x3b63a0['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3cf560));_0x4caf6e['data']['isSuggestion']&&_0x3b63a0['writer']['addClass']('ck-suggestion-marker-'+_0x4b45f9+'-new',_0x5d3008),this['activeChange']==_0x4caf6e&&_0x3b63a0['writer']['addClass']('ck-suggestion-marker--active',_0x5d3008),_0x3b63a0['writer']['insert'](_0x19021f,_0x5d3008),_0x3b63a0['mapper']['bindElementToMarker'](_0x5d3008,_0x2233fa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x26fe2f=>{for(const _0x3d734e of this['editor']['model']['document']['getRootNames']()){const _0x4450c7=this['editor']['model']['document']['getRoot'](_0x3d734e),_0x395771=this['editor']['editing']['view']['document']['getRoot'](_0x3d734e);if(_0x395771){const _0x3ee99b=_0x4450c7['getAttribute']('revisionHistoryAttachChange');if(_0x26fe2f['removeAttribute']('data-change-id',_0x395771),_0x26fe2f['removeClass']('ck-revision-history-root-add',_0x395771),_0x26fe2f['removeClass']('ck-revision-history-root-remove',_0x395771),_0x26fe2f['removeClass']('ck-revision-history-root--active',_0x395771),_0x3ee99b){const _0x34499c=this['_getChangeFromId'](_0x3ee99b);if(!_0x34499c)return null;_0x26fe2f['setAttribute']('data-change-id',_0x3ee99b,_0x395771),_0x26fe2f['addClass']('ck-revision-history-root-'+_0x34499c['type'],_0x395771),this['activeChange']==_0x34499c&&_0x26fe2f['addClass']('ck-revision-history-root--active',_0x395771);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3f842a=>'revision-comment:'+_0x3f842a,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x587d23=>'revision-suggestion:'+_0x587d23,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2ac1bc=>({'name':'suggestion:'+_0x2ac1bc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x47fd7e=>{const _0x434276=_0x47fd7e['markerName']['split'](':')[0x1];return'insertion'!=_0x434276&&'deletion'!=_0x434276?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x434276]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x2cfa39,_0x2c6199,_0x4a75ae)=>{const _0x512ed8=_0x4a75ae['mapper']['markerNameToElements'](_0x2c6199['markerName']);if(_0x512ed8){for(const _0x3ccf75 of _0x512ed8)_0x3ccf75['is']('uiElement')&&(_0x4a75ae['mapper']['unbindElementFromMarkerName'](_0x3ccf75,_0x2c6199['markerName']),_0x4a75ae['writer']['remove'](_0x3ccf75));}},{'priority':'high'});}['_getChangeFromId'](_0x19814c){return this['_changeIdToChange']['get'](_0x19814c);}['_getViewForChange'](_0xa73f99){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0xa73f99),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5d7eb1,_0x53167d,_0x2e765d,_0x57edde)=>{_0x57edde&&this['_balloon']['remove'](_0x57edde),_0x2e765d&&(this['_balloon']['add']({'view':_0x2e765d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x577836=this['editor']['editing'],_0x364357=this['_getChangeFromId'](_0x2e765d['changeId']);let _0x27d758;if(_0x364357['data']['isOnRoot']){const _0x4047a1=_0x577836['view']['getDomRoot'](_0x364357['rootName']);_0x27d758=Array['from'](_0x4047a1['getClientRects']());}else{const _0x141499=this['editor']['model']['markers']['get']('revision:'+_0x2e765d['changeId']);_0x27d758=Array['from'](_0x577836['mapper']['markerNameToElements'](_0x141499['name']))['map'](_0x17a7a0=>_0x577836['view']['domConverter']['mapViewToDom'](_0x17a7a0))['map'](_0x573e78=>Array['from'](_0x573e78['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x27d758[0x0];return _0x27d758['find'](_0x436a28=>_0x436a28['top']-0x3<=this['_activeViewTarget']['y']&&_0x436a28['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x436a28['left']-0x3<=this['_activeViewTarget']['x']&&_0x436a28['right']+0x3>=this['_activeViewTarget']['x'])||_0x27d758[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x258d77,_0x48187d,_0x43d6d0,_0x4812f0)=>{this['activeView']=_0x43d6d0?this['_getViewForChange'](_0x43d6d0):null,this['editor']['model']['change'](()=>{const _0x418cfa=this['editor']['editing'];_0x4812f0&&(_0x4812f0['data']['isOnRoot']?_0x418cfa['view']['change'](_0x119d65=>{_0x119d65['removeClass']('ck-revision-history-root--active',_0x418cfa['view']['document']['getRoot'](_0x4812f0['rootName']));}):_0x418cfa['reconvertMarker']('revision:'+_0x4812f0['id'])),_0x43d6d0&&(_0x43d6d0['data']['isOnRoot']?_0x418cfa['view']['change'](_0x5e9e43=>{_0x5e9e43['addClass']('ck-revision-history-root--active',_0x418cfa['view']['document']['getRoot'](_0x43d6d0['rootName']));}):_0x418cfa['reconvertMarker']('revision:'+_0x43d6d0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x56c5e3,_0x20c31b)=>{if(this['activeChange'])return;const _0x2eead9=this['_findChangeIdFromDomTarget'](_0x20c31b['target']),_0x248284=this['_changeIdToChange']['get'](_0x2eead9);_0x248284?(this['_activeViewTarget']={'x':_0x20c31b['domEvent']['x'],'y':_0x20c31b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x248284)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x45daf0,_0x1b0af1)=>{const _0x28442d=this['_findChangeIdFromDomTarget'](_0x1b0af1['target']),_0x8a374f=this['_changeIdToChange']['get'](_0x28442d);_0x8a374f?(this['_activeViewTarget']={'x':_0x1b0af1['domEvent']['x'],'y':_0x1b0af1['domEvent']['y']},_0x8a374f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x8a374f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f06a5){do{const _0x3b0e7b=_0x2f06a5['getAttribute']('data-change-id');if(_0x3b0e7b)return _0x3b0e7b;_0x2f06a5=_0x2f06a5['parent'];}while(_0x2f06a5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25d01e=>{for(const _0x44805b of this['editor']['model']['markers'])_0x25d01e['removeMarker'](_0x44805b);});}}function Z(_0x51c76f,_0x46843d){return(_0x5042e3,_0x5c4e9e,_0x5aca81)=>{if(!_0x5aca81['consumable']['test'](_0x5c4e9e['markerRange'],_0x5042e3['name']))return;const _0x36f7ed=_0x5c4e9e['markerRange']['getWalker'](),_0x4784fc=_0x5c4e9e['markerRange']['start'],_0x483f0c=_0x51c76f['model']['schema'];let _0x47470d=null,_0x5814b1=null,_0x52e8dc=!0x1,_0x26d394=!0x1;for(const _0x239136 of _0x36f7ed){const _0x2a1c5c=_0x239136['item'];_0x52e8dc=_0x52e8dc||_0x483f0c['isContent'](_0x2a1c5c);const _0x5b3206=_0x5aca81['mapper']['toViewElement'](_0x2a1c5c);if(_0x5b3206&&_0x5b3206['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x239136['type']&&(_0x483f0c['isBlock'](_0x2a1c5c)&&!_0x483f0c['isLimit'](_0x2a1c5c)&&(_0x2a1c5c['nextSibling']||_0x4784fc['isAtEnd']?_0x47470d&&_0x47470d['parent']==_0x2a1c5c||(_0x47470d=_0x2a1c5c,_0x1b686c(_0x239136['previousPosition']),_0x26d394=!0x0):_0x5814b1=_0x5814b1||_0x239136['previousPosition']));}function _0x1b686c(_0x5982de){const _0x1c8352=_0x5aca81['mapper']['toViewPosition'](_0x5982de),_0x3344f9=_0x5aca81['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x46843d});_0x5aca81['writer']['insert'](_0x1c8352,_0x3344f9),_0x5aca81['mapper']['bindElementToMarker'](_0x3344f9,_0x5c4e9e['markerName']);}_0x52e8dc||_0x26d394||!_0x5814b1||_0x1b686c(_0x5814b1);};}class _t extends _0x49e04e{constructor(_0x2ad715){super(_0x2ad715);const _0x1412d4=_0x2ad715['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1412d4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1412d4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x94a6ed=this['editor'],_0x22a0b1=_0x94a6ed['plugins']['get'](d),_0x5c1877=_0x22a0b1['isReady']?_0x22a0b1['diff']['newRevisionId']:null;_0x94a6ed['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5c1877);}['refresh'](){const {isReady:_0x244616,isEnabled:_0x3ba3c6,repository:_0x5c7b47,diff:_0x42c9ae}=this['editor']['plugins']['get'](d),_0x461482=_0x42c9ae&&_0x5c7b47['getLaterVisibleRevision'](_0x42c9ae['newRevisionId']);this['isEnabled']=_0x244616&&_0x3ba3c6&&Boolean(_0x461482);}}class yt extends _0x49e04e{['_step'];constructor(_0x517a05,{direction:_0x2e3de9}){super(_0x517a05);const _0x295533=_0x517a05['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2e3de9?0x1:-0x1,this['listenTo'](_0x295533,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x295533,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x295533,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x8223c5=this['editor'],_0x4e792d=_0x8223c5['plugins']['get'](d),{isNavigationMode:_0xcbf768,currentChangeNumber:_0x11445d}=_0x4e792d;let _0x38fffc;if(_0x4e792d['activeChange']=_0xcbf768?_0x4e792d['diff']['changes']['get'](_0x11445d+this['_step']):_0x4e792d['diff']['changes']['first'],_0x4e792d['activeChange']['data']['isOnRoot'])_0x38fffc=_0x8223c5['editing']['view']['getDomRoot'](_0x4e792d['activeChange']['rootName']);else{const _0x3ff890=_0x8223c5['model']['markers']['get']('revision:'+_0x4e792d['activeChange']['id']);_0x38fffc=_0x1adcad(_0x8223c5['editing'],_0x3ff890);}_0x54a603({'target':_0x38fffc,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xfde203,currentChangeNumber:_0x3d419e,numberOfChanges:_0x2c9f66,isReady:_0x17a966,isEnabled:_0xf01af4}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xf01af4&&_0x17a966&&_0x2c9f66)&&(!_0xfde203||(0x1===this['_step']?_0x3d419e<_0x2c9f66-0x1:_0x3d419e>0x0));}}class bi extends _0x3191d2{constructor(_0x460f51){super(_0x460f51);const _0x1b86be=this['bindTemplate'],_0x57490f=new _0x5d5006(_0x460f51),_0x5eaf4f=new _0x5d5006(_0x460f51);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',(_0x1a3327,_0x29e25c)=>_0x1a3327&&_0x29e25c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x58d6fa,_0x11620c,_0x118699,_0x75b23a)=>{if(!_0x58d6fa)return m(_0x460f51,'Loading...');if(!_0x118699)return m(_0x460f51,'No\x20changes');const _0x1f4ddc=m(_0x460f51,'NUMBER_OF_CHANGES',_0x118699);return _0x75b23a?m(_0x460f51,'X_OF_Y_CHANGES',[_0x11620c+0x1,_0x118699]):_0x1f4ddc;}),_0x57490f['set']({'label':m(_0x460f51,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x5eaf4f['set']({'label':m(_0x460f51,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x57490f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5eaf4f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x57490f['on']('execute',()=>this['fire']('execute','backward')),_0x5eaf4f['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',_0x1b86be['if']('_isStatusLabelVisible','ck-hidden',_0x5eeb08=>!_0x5eeb08)]},'children':[{'text':_0x1b86be['to']('isNavigationMode',_0x5d2231=>_0x5d2231?m(_0x460f51,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x460f51,'Total')+':\x20')}]},{'text':_0x1b86be['to']('_statusText')}]},new _0x1c1102(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x57490f,_0x5eaf4f]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x46c671{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xd70ce4=this['editor']['editing']['view'];_0xd70ce4['change'](_0xafa630=>{for(const _0x4d6b20 of _0xd70ce4['document']['roots'])_0xafa630['addClass'](ie,_0x4d6b20);});}['hide'](){const _0x5832d1=this['editor']['editing']['view'];_0x5832d1['change'](_0x1f4246=>{for(const _0x3a2f0d of _0x5832d1['document']['roots'])_0x1f4246['removeClass'](ie,_0x3a2f0d);});}}class g extends _0x46c671{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x4d7a20=this['editor'],_0x4e9b4b=_0x4d7a20['plugins']['get'](d),_0x2622c6=_0x4d7a20['plugins']['get'](te);_0x4d7a20['ui']['componentFactory']['add']('exitToEditing',_0x7c406=>{const _0x4f5cc0=new _0x5d5006(_0x7c406);return _0x4f5cc0['set']({'label':m(_0x7c406,'Back\x20to\x20editing'),'icon':_0x36297c['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4f5cc0,'execute',()=>{_0x4d7a20['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4f5cc0;}),_0x4d7a20['ui']['componentFactory']['add']('restoreRevision',_0x1d67f7=>{const _0x292dfb=new _0x5d5006(_0x1d67f7);return _0x292dfb['set']({'label':m(_0x1d67f7,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x292dfb['bind']('isEnabled')['to'](_0x4d7a20['commands']['get']('restoreRevision')),this['listenTo'](_0x292dfb,'execute',()=>_0x4d7a20['execute']('restoreRevision')),_0x292dfb;}),_0x4d7a20['ui']['componentFactory']['add']('changesNavigation',_0x5e738a=>{const _0x24de98=new bi(_0x5e738a),_0x32fec8=_0x4d7a20['commands']['get']('showPreviousChange'),_0x4cef1e=_0x4d7a20['commands']['get']('showNextChange');return _0x24de98['bind']('isBackwardNavigationEnabled')['to'](_0x32fec8,'isEnabled'),_0x24de98['bind']('isForwardNavigationEnabled')['to'](_0x4cef1e,'isEnabled'),_0x24de98['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4e9b4b),this['listenTo'](_0x24de98,'execute',(_0x24ea80,_0x371630)=>{_0x4d7a20['execute']('forward'===_0x371630?'showNextChange':'showPreviousChange');}),_0x24de98;}),_0x2622c6['show'](),_0x4e9b4b['on']('change:isReady',(_0x32e575,_0x4721cd,_0x24e93e)=>{_0x24e93e?_0x2622c6['hide']():_0x2622c6['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x21e98b,_0x1e0163){super(_0x21e98b,_0x1e0163);const _0x252fd4=this['bindTemplate'];this['set']({'label':m(_0x21e98b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x21e98b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x252fd4['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x495291=this['fieldView']['element'];this['_tooltipString']=_0x495291['scrollWidth']>_0x495291['clientWidth']&&_0x495291['value']||'';}}class ti extends _0x3191d2{constructor(_0x5232df,_0x27d85f,_0x57a825){super(_0x5232df);const _0x25a8f2=new _0x3ca579();_0x25a8f2['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x48d64f=['ck','ck-revision-history-sidebar__revision-author'];_0x57a825&&_0x48d64f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2b8a20=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5232df,_0x57a825?'Revision\x20creator':'Revision\x20author')},'children':[_0x25a8f2,_0x27d85f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x48d64f},'children':_0x2b8a20});}}function ni(_0x228307,_0x46414a){const _0x27512e=_0x228307['bindTemplate'],_0xfcb94f=_0x228307['locale'],_0x237bbe=_0x4ce21a(_0xfcb94f);_0x237bbe['panelPosition']='sw';const _0x4a8573=function(_0x359fa7,_0x4c0cc9){const _0x5c17df=function(_0x45d2ae,_0x14e725){const _0x20aafb=_0x45d2ae['locale'],_0x1e0727={'Compare\x20against\x20selected':m(_0x20aafb,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x20aafb,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x20aafb,'Restore\x20this\x20revision')};return _0x14e725['map'](_0xd3ba90=>{const _0x51aaac=_0x1e0727[_0xd3ba90['name']];return _0x51aaac&&_0x51aaac!==_0xd3ba90['name']&&(_0xd3ba90['name']=_0x51aaac),_0xd3ba90;});}(_0x359fa7,_0x4c0cc9),_0x13a649=new _0x369930();for(const _0xb5dca5 of _0x5c17df){const _0x3e3196={'type':'button','model':new to({'label':_0xb5dca5['name'],'class':_0xb5dca5['class'],'withText':!0x0,'role':'menuitem','_action':_0xb5dca5['action']})};_0x3e3196['model']['bind']('isEnabled')['to'](_0x359fa7,'isActionsDropdownOpen',_0x4e7ff3=>'function'!=typeof _0xb5dca5['isEnabled']||(!_0x4e7ff3||_0xb5dca5['isEnabled'](_0x359fa7))),_0x13a649['add'](_0x3e3196);}return _0x13a649;}(_0x228307,_0x46414a);return _0x228307['bind']('isActionsDropdownOpen')['to'](_0x237bbe,'isOpen'),_0x237bbe['buttonView']['set']({'label':m(_0xfcb94f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x36297c['threeVerticalDots']}),_0x237bbe['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x27512e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x27512e['to'](_0x1f9190=>_0x1f9190['stopPropagation']())}}),_0x237bbe['on']('execute',_0x4459d2=>{_0x228307['isReady']&&'function'==typeof _0x4459d2['source']['_action']&&_0x4459d2['source']['_action'](_0x228307);}),_0x32e9dd(_0x237bbe,_0x4a8573,{'role':'menu'}),_0x237bbe['listenTo'](_0x228307,'change:isActionsDropdownOpen',(_0x41c7e7,_0x6bdef0,_0x43a225)=>{if(_0x43a225)for(const _0x3f6c09 of _0x237bbe['listView']['items']){const _0x166a11=_0x3f6c09['children']['first'],_0x3ebe54=_0x46414a['find'](_0x13d1c9=>_0x13d1c9['action']===_0x166a11['_action'])['isVisible'];_0x3f6c09['isVisible']=void 0x0===_0x3ebe54||_0x3ebe54(_0x228307);}}),_0x237bbe;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x1d95fd(_0x3191d2){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xee298b,_0x3a65c4,_0x4815e7,_0xd00aa4){super(_0xee298b);const _0x6e10fd=this['bindTemplate'],_0x2c4c8c=function(_0xd1cfc2,_0x1406a3){const _0xc30d6=Array['from'](_0x1406a3['authors'])['filter'](_0x131324=>_0x131324!=_0x1406a3['creator']);return _0x1406a3['creator']&&_0xc30d6['unshift'](_0x1406a3['creator']),_0xc30d6['map'](_0x57a0c0=>new ti(_0xd1cfc2,_0x57a0c0,_0x57a0c0==_0x1406a3['creator']));}(_0xee298b,_0x3a65c4);this['id']=_0x3a65c4['id'],this['_revision']=_0x3a65c4,this['_requireRevisionName']=_0xd00aa4,this['bind']('name','createdAt')['to'](_0x3a65c4),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5b5010=>{return _0x41e601=_0xee298b['uiLanguage'],(_0x2ff1d7=_0x5b5010)['toLocaleDateString'](_0x41e601,{'month':'long','day':'numeric'})+',\x20'+_0x2ff1d7['toLocaleTimeString'](_0x41e601,{'hour':'numeric','minute':'numeric'});var _0x41e601,_0x2ff1d7;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0xee298b,_0x101bc4),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3acab5=>_0x3acab5||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x34b133,_0x40223e)=>_0x34b133&&_0x40223e),this['revisionActionsView']=_0x4815e7&&_0x4815e7['length']?ni(this,_0x4815e7):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x6e10fd['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x6e10fd['if']('isEnabled','ck-disabled',_0x5a90a4=>!_0x5a90a4),_0x6e10fd['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x6e10fd['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x6e10fd['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':_0x6e10fd['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':_0x2c4c8c}]},this['revisionActionsView']],'on':{'click':_0x6e10fd['to'](_0x4f9a6a=>{_0x4f9a6a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1ff6ca=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1ff6ca,'change',()=>{this['_requireRevisionName']&&!_0x1ff6ca['value']||this['fire']('setName',{'id':this['id'],'name':_0x1ff6ca['value']}),_0x1ff6ca['value']||(_0x1ff6ca['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x4a5fac,_0x3ad24b){const _0x141bc6=_0x459ebb['fromJSDate'](_0x4a5fac)['setLocale'](_0x3ad24b),_0x3640e1=_0x459ebb['local'](),_0x4de3c1=_0x3640e1['minus']({'days':0x1})['startOf']('day');let _0x9dc390,_0x33d162;return _0x141bc6['hasSame'](_0x3640e1,'day')?(_0x9dc390=_0x141bc6['startOf']('day')['toJSDate'](),_0x33d162=_0x141bc6['toRelativeCalendar']()):_0x141bc6['hasSame'](_0x4de3c1,'day')?(_0x9dc390=_0x4de3c1['toJSDate'](),_0x33d162=_0x141bc6['toRelativeCalendar']()):_0x141bc6['hasSame'](_0x3640e1,'week')?(_0x9dc390=_0x141bc6['startOf']('week')['toJSDate'](),_0x33d162=_0x141bc6['weekdayLong']||''):_0x141bc6['hasSame'](_0x3640e1,'year')?(_0x9dc390=_0x141bc6['startOf']('month')['toJSDate'](),_0x33d162=_0x141bc6['monthLong']||''):(_0x9dc390=_0x141bc6['startOf']('year')['toJSDate'](),_0x33d162=String(_0x141bc6['year'])),{'startDate':_0x9dc390,'localizedPeriodName':_0x33d162};}class mi extends _0x3191d2{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2097cb,_0x151cd9,_0x452a9d,_0x5cea0c){super(_0x2097cb);const _0x96ad79=di(_0x151cd9,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x151cd9,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x452a9d,this['_requireRevisionName']=_0x5cea0c,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':_0x96ad79}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x580e11){const _0x24d1d6=new ai(this['locale'],_0x580e11,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x24d1d6);}['removeRevision'](_0x935040){const _0x1f8980=this['revisionViews']['find'](_0x4f0e7e=>_0x4f0e7e['id']===_0x935040['id']);this['revisionViews']['remove'](_0x1f8980);}}class rs extends _0x3191d2{constructor(_0x189fce){super(_0x189fce);const _0x28f271=new _0x3ca579();_0x28f271['content']=_0x36297c['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x28f271,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x189fce,'Revision\x20history')]}]});}}class ci extends _0x3191d2{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x168bf2,_0x4fbde9,_0x1f4860,_0x2c7313){super(_0x168bf2);const _0x432a5c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4fbde9,this['_revisionActions']=_0x1f4860,this['_requireRevisionName']=_0x2c7313,this['on']('select',(_0x502e45,_0x13a45c)=>{this['fire']('revisionSelected',_0x13a45c);}),this['on']('setName',(_0x4630b1,_0x1e4ef9)=>{this['fire']('revisionSetName',_0x1e4ef9);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x168bf2),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x432a5c['if']('isEnabled','ck-disabled',_0x561b5b=>!_0x561b5b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3be876 of this['_revisions'])this['_addRevision'](_0x3be876);this['_revisions']['on']('add',(_0x3683e8,_0x54ffc9)=>{this['_addRevision'](_0x54ffc9);}),this['_revisions']['on']('remove',(_0x3cb5e3,_0x284e7b)=>{this['_removeRevision'](_0x284e7b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x35d3fa=>_0x35d3fa['revisionViews']['map'](_0x559e2a=>_0x559e2a))['flat']();}['selectRevision'](_0x118f42){for(const _0x15a2db of this['revisionViews'])_0x118f42&&_0x118f42['id']===_0x15a2db['id']?_0x15a2db['select']():_0x15a2db['deselect']();}['highlightRevisions'](_0x4b9c84){for(const _0x1fb812 of this['revisionViews'])_0x4b9c84['some'](({id:_0x4e1bdc})=>_0x4e1bdc===_0x1fb812['id'])?_0x1fb812['highlight']():_0x1fb812['unhighlight']();}['_addRevision'](_0x2383bc){const _0x4274f2=di(_0x2383bc['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x580176=this['timePeriodViews']['get'](0x0);_0x580176&&_0x580176['startDate']['getTime']()===_0x4274f2['getTime']()||(_0x580176=new mi(this['locale'],_0x4274f2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x580176)),_0x580176['addRevision'](_0x2383bc);}['_removeRevision'](_0x1a3d9e){const _0x16fcd9=di(_0x1a3d9e['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x16fcd9)['removeRevision'](_0x1a3d9e);}['_getTimePeriodViewByStartDate'](_0x49c4d7){return this['timePeriodViews']['find'](_0x418663=>_0x418663['startDate']['getTime']()===_0x49c4d7['getTime']());}}class w extends _0x46c671{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x59dc1c,uid as _0x731d10,Collection as _0x28b682,logWarning as _0x4bc96c,FocusTracker as _0xaee184,KeystrokeHandler as _0x142a9d,scrollViewportToShowTarget as _0x383918,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x3781c3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3eb603,set as _0x533a37,unset as _0x9d3b81,isEqual as _0x1871c4}from'lodash-es';import{Plugin as _0x1c983f,PendingActions as _0x4769f2,icons as _0x5d34ae,Command as _0x157788,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5ebf97,getMarkerDomElement as _0x10cdf2,ConfirmMixin as _0x3f83fe,sanitizeEditorConfig as _0x14ad6d}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x352937,ViewText as _0x1ade11,ViewElement as _0x29faa1,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x154874,ViewAttributeElement as _0x59b955,ViewEmptyElement as _0x86ac4d,ViewRawElement as _0x3e22f5,ViewUIElement as _0x264338,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x57d690,injectCssTransitionDisabler as ts,submitHandler as _0x267d55,LabeledFieldView as nt,createLabeledInputText as _0x242d1c,createDropdown as _0x23cafe,ListView as te,ListItemView as _0xa50924,ButtonView as _0x5c3b92,MenuBarMenuView as _0x3c32f3,MenuBarMenuListView as _0x1d1da8,MenuBarMenuListItemView as _0x4840b2,MenuBarMenuListItemButtonView as _0x235ae5,ContextualBalloon as _0x2f6501,ToolbarSeparatorView as _0x574f5a,IconView as _0x538b97,addListToDropdown as _0x33bd8c,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x212522}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x59dc1c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3ec626){super(),this['id']=_0x3ec626['id']||_0x731d10(),this['creator']=_0x3ec626['creator']||null,this['authors']=_0x3ec626['authors']||[],this['diffData']=_0x3ec626['diffData']||null,this['toVersion']=_0x3ec626['toVersion']||0x0,this['fromVersion']=_0x3ec626['fromVersion']||0x0,this['set']('name',_0x3ec626['name']||''),this['set']('createdAt',_0x3ec626['createdAt']||new Date()),this['set']('attributes',_0x3ec626['attributes']||{});}['setName'](_0x4937fa){this['_update']({'name':_0x4937fa});}['setAttribute'](_0x1a3920,_0x19fb50){const _0x5d7d46=_0x3eb603(this['attributes']);_0x533a37(_0x5d7d46,_0x1a3920,_0x19fb50),this['_update']({'attributes':_0x5d7d46});}['removeAttribute'](_0x1768f2){const _0x5bdada=_0x3eb603(this['attributes']);_0x9d3b81(_0x5bdada,_0x1768f2),this['_update']({'attributes':_0x5bdada});}['_update'](_0x206513,_0x1e69ac=!0x1){let _0x163647=!0x1;const _0x1819c8={'id':this['id']},_0x2815f1=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5367c2 of _0x2815f1){const _0x3b577f=_0x206513[_0x5367c2];void 0x0!==_0x3b577f&&_0x3b577f!==this[_0x5367c2]&&(this[_0x5367c2]=_0x3b577f,_0x1819c8[_0x5367c2]=_0x3b577f,_0x163647=!0x0);}_0x163647&&(_0x1819c8['authors']&&(_0x1819c8['authorsIds']=_0x1819c8['authors']['map'](_0x1f8504=>_0x1f8504['id']),delete _0x1819c8['authors']),this['fire']('_update',_0x1819c8,_0x1e69ac));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2b4137=>_0x2b4137['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1c983f{['_revisions'];static get['requires'](){return[_0x5ebf97];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3f1b71){super(_0x3f1b71),this['_revisions']=new _0x28b682();}['afterInit'](){!async function(_0xd8e928){const _0x25e4c8=_0x16af43([0x42,0x67,0x6b,0x49,0x61,0x76,0x43,0x71,0x31,0x6a,0x4f,0x73,0x38,0x6d,0x53,0x4e,0x4c,0x77,0x6f,0x36,0x59,0x63,0x32,0x45,0x56,0x30,0x48,0x74,0x51,0x79,0x47,0x34,0x4d,0x72,0x78,0x69,0x37,0x6e,0x66,0x6c,0x70,0x58,0x4b,0x4a,0x5a,0x46,0x62,0x35,0x39,0x54,0x50,0x44,0x52,0x75,0x55,0x64,0x7a,0x33,0x41,0x68,0x57,0x65]),_0x1abe82=0xeb829,_0x1cb8ad=0x4e1d46e5,_0x3d8afb=0x4e1a1bdd^_0x1cb8ad,_0x169e0a=window[_0x16af43([0x44,0x61,0x74,0x65])][_0x16af43([0x6e,0x6f,0x77])](),_0x435a94=_0xd8e928[_0x16af43([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x448cd8=new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6983d=>{_0x435a94[_0x16af43([0x6f,0x6e,0x63,0x65])](_0x16af43([0x72,0x65,0x61,0x64,0x79]),_0x6983d);}),_0x34f836={[_0x16af43([0x6b,0x74,0x79])]:_0x16af43([0x45,0x43]),[_0x16af43([0x75,0x73,0x65])]:_0x16af43([0x73,0x69,0x67]),[_0x16af43([0x63,0x72,0x76])]:_0x16af43([0x50,0x2d,0x32,0x35,0x36]),[_0x16af43([0x78])]:_0x16af43([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]),[_0x16af43([0x79])]:_0x16af43([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]),[_0x16af43([0x61,0x6c,0x67])]:_0x16af43([0x45,0x53,0x32,0x35,0x36])},_0x8c695d=_0x435a94[_0x16af43([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x16af43([0x67,0x65,0x74])](_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23fa35(){let _0x33f06a,_0x1ced10=null,_0x5106e0=null;try{if(_0x8c695d==_0x16af43([0x47,0x50,0x4c]))return _0x16af43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x33f06a=_0x8166c2(),!_0x33f06a)return _0x16af43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x33f06a[_0x16af43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5106e0=_0x160c81(_0x33f06a[_0x16af43([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x33f06a[_0x16af43([0x6a,0x74,0x69])])),await _0x314130()?_0x7f74bf()?_0x427cfd()?_0x16af43([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x457b87()?(_0x33f06a[_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16af43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1ced10=_0x37f77a(_0x16af43([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x33f06a[_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16af43([0x74,0x72,0x69,0x61,0x6c])&&(_0x1ced10=_0x37f77a(_0x16af43([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x33f06a[_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x16af43([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1ced10=_0x37f77a(_0x16af43([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e6c18()):_0x16af43([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x16af43([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x16af43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2d7ea7){return _0x16af43([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x427cfd(){const _0x3ea431=[_0x16af43([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x16af43([0x74,0x72,0x69,0x61,0x6c])][_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x33f06a[_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x169e0a/0x3e8:0xe10*_0x3d8afb;return _0x33f06a[_0x16af43([0x65,0x78,0x70])]<_0x3ea431;}function _0x7f74bf(){const _0x280894=_0x33f06a[_0x16af43([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x280894)return!0x1;if(_0x280894[_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16af43([0x2a])))return!0x0;if(_0x280894[_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16af43([0x52,0x48])))return!0x0;if(_0x280894[_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16af43([0x52,0x52,0x48]))){if(_0x15c014())return!0x0;if(_0x27c50c()||_0x208b43())return!0x0;}return!0x1;}function _0x457b87(){const _0x2620dc=_0x33f06a[_0x16af43([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2620dc||0x0==_0x2620dc[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa3f15d}=new URL(window[_0x16af43([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2620dc[_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3f15d))return!0x0;const _0x487fce=_0xa3f15d[_0x16af43([0x73,0x70,0x6c,0x69,0x74])](_0x16af43([0x2e]));return _0x2620dc[_0x16af43([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x6409b5=>_0x6409b5[_0x16af43([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16af43([0x2a])))[_0x16af43([0x6d,0x61,0x70])](_0x390095=>_0x390095[_0x16af43([0x73,0x70,0x6c,0x69,0x74])](_0x16af43([0x2e])))[_0x16af43([0x73,0x6f,0x6d,0x65])](_0x17f5ec=>_0x487fce[_0x16af43([0x65,0x76,0x65,0x72,0x79])]((_0x35b06d,_0x1034ea)=>_0x17f5ec[_0x1034ea]===_0x35b06d||_0x17f5ec[_0x1034ea]===_0x16af43([0x2a])));}function _0x1e6c18(){return _0x1ced10&&_0x5106e0?new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45c923,_0x13223e)=>{_0x1ced10[_0x16af43([0x74,0x68,0x65,0x6e])](_0x45c923,_0x13223e),_0x5106e0[_0x16af43([0x74,0x68,0x65,0x6e])](_0x2b6aed=>{_0x2b6aed!=_0x16af43([0x56,0x61,0x6c,0x69,0x64])&&_0x45c923(_0x2b6aed);},_0x13223e);}):_0x1ced10||_0x5106e0||_0x16af43([0x56,0x61,0x6c,0x69,0x64]);}}function _0x160c81(_0x3c57c0,_0x36b4ad){return new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9548c1=>{if(_0x9997ad())return _0x9548c1(_0x16af43([0x56,0x61,0x6c,0x69,0x64]));_0x40c94e(),_0x435a94[_0x16af43([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x16af43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2cc931=!0x1;const _0x3e6f65=_0x731d10();function _0x4d79fa(_0x39b061){return!!_0x39b061&&(typeof _0x39b061===_0x16af43([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x39b061===_0x16af43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x39b061[_0x16af43([0x74,0x68,0x65,0x6e])]===_0x16af43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x39b061[_0x16af43([0x63,0x61,0x74,0x63,0x68])]===_0x16af43([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f1514(_0x78e257){_0x516f71(_0x78e257)[_0x16af43([0x74,0x68,0x65,0x6e])](_0x1d9bb3=>{if(!_0x1d9bb3||_0x1d9bb3[_0x16af43([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x16af43([0x6f,0x6b]))return _0x16af43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f5d11(_0x2a5beb(_0x3e6f65+_0x36b4ad))!=_0x1d9bb3[_0x16af43([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x16af43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x16af43([0x56,0x61,0x6c,0x69,0x64]);})[_0x16af43([0x74,0x68,0x65,0x6e])](_0x5c958c=>(_0x104868(),_0x5c958c),()=>{const _0x3f0e2d=_0xb38799();return null==_0x3f0e2d?(_0x104868(),_0x16af43([0x56,0x61,0x6c,0x69,0x64])):_0x16af43(_0x169e0a-_0x3f0e2d>(0x6a11c2e5^_0x1cb8ad)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x16af43([0x74,0x68,0x65,0x6e])](_0x9548c1)[_0x16af43([0x63,0x61,0x74,0x63,0x68])](()=>{_0x9548c1(_0x16af43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d6e16=0x4e2ba865^_0x1cb8ad;function _0x104868(){const _0x5a739f=_0x16af43([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f5d11(_0x2a5beb(_0x3c57c0)),_0x11f434=_0xe66451(_0x1f5d11(window[_0x16af43([0x4d,0x61,0x74,0x68])][_0x16af43([0x63,0x65,0x69,0x6c])](_0x169e0a/_0x5d6e16)));window[_0x16af43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16af43([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a739f,_0x11f434);}function _0xb38799(){const _0x1cb0c2=_0x16af43([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f5d11(_0x2a5beb(_0x3c57c0)),_0x225182=window[_0x16af43([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x16af43([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cb0c2);return _0x225182?window[_0x16af43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe66451(_0x225182),0x10)*_0x5d6e16:null;}function _0x516f71(_0x43f8d8){return new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x443c9c,_0x62e9b0)=>{_0x43f8d8[_0x16af43([0x74,0x68,0x65,0x6e])](_0x443c9c,_0x62e9b0),window[_0x16af43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x62e9b0,0x4e1c9225^_0x1cb8ad);});}}_0x435a94[_0x16af43([0x6f,0x6e])](_0x16af43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2b9cfb,_0x231396)=>{if(_0x231396[0x0]!=_0x3c57c0)return _0x9548c1(_0x16af43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x231396[0x1]={..._0x231396[0x1],[_0x16af43([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e6f65};},{[_0x16af43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16af43([0x68,0x69,0x67,0x68])}),_0x435a94[_0x16af43([0x6f,0x6e])](_0x16af43([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x402cdf=>{_0x4d79fa(_0x402cdf[_0x16af43([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2cc931=!0x0,_0x4f1514(_0x402cdf[_0x16af43([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x16af43([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x16af43([0x6c,0x6f,0x77])}),_0x448cd8[_0x16af43([0x74,0x68,0x65,0x6e])](()=>{_0x2cc931||_0x9548c1(_0x16af43([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9997ad(){return _0x435a94[_0x16af43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16af43([0x76,0x69,0x65,0x77])][_0x16af43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x16af43([0x61,0x75,0x74,0x6f]);}function _0x40c94e(){_0x435a94[_0x16af43([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16af43([0x76,0x69,0x65,0x77])][_0x16af43([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16af43([0x61,0x75,0x74,0x6f]);}}function _0x37f77a(_0x4a2735){const _0xea67cc=[new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21bc33=>setTimeout(_0x21bc33,0x4e147829^_0x1cb8ad)),_0x448cd8[_0x16af43([0x74,0x68,0x65,0x6e])](()=>new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49381a=>{const _0x1dd028=0x4e1d46e2^_0x1cb8ad,_0x4bcd30=_0xd8e928[_0x16af43([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2ad889(){_0x4bcd30[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1dd028&&_0x49381a();}_0x2ad889(),_0x4bcd30[_0x16af43([0x6f,0x6e])](_0x16af43([0x61,0x64,0x64]),_0x2ad889);})),new window[(_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46e332=>{function _0x1e740b(){for(const _0x26496f in window)if(window[_0x16af43([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x16af43([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x26496f))&&window[_0x26496f]==_0x1abe82)return _0x46e332();_0x435a94[_0x16af43([0x73,0x74,0x61,0x74,0x65])]!=_0x16af43([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x16af43([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e740b,0x4e1d556d^_0x1cb8ad);}_0x57f091(_0x16af43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1e740b();})];return window[_0x16af43([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16af43([0x72,0x61,0x63,0x65])](_0xea67cc)[_0x16af43([0x74,0x68,0x65,0x6e])](()=>_0x4a2735);}async function _0xeb0802(){if(await _0x448cd8,_0x57f091(_0x16af43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x54a102=_0xd8e928[_0x16af43([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xd0576a=_0xd8e928[_0x16af43([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])](_0x54a102[_0x16af43([0x69,0x64])]),_0x5bb6eb=_0x1a7868(_0x16af43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5bb6eb[_0x16af43([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x54a102['id'],_0xd0576a?_0xd0576a['id']:null,!0x0),_0x5bb6eb[_0x16af43([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x16af43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bb6eb[_0x16af43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bb6eb[_0x16af43([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x23e99b,void(_0x5bb6eb[_0x16af43([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x23e99b);}if(_0x57f091(_0x16af43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xfde4c4=_0x1a7868(_0x16af43([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xfde4c4[_0x16af43([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x16af43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xfde4c4[_0x16af43([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xfde4c4[_0x16af43([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x23e99b,_0xfde4c4[_0x16af43([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x23e99b;}_0x435a94[_0x16af43([0x6d,0x6f,0x64,0x65,0x6c])][_0x16af43([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23e99b,_0x435a94[_0x16af43([0x6d,0x6f,0x64,0x65,0x6c])][_0x16af43([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23e99b,_0x435a94[_0x16af43([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x16af43([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15c014(){return _0x57f091(_0x16af43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1a7868(_0x16af43([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x16af43([0x73,0x74,0x61,0x74,0x65])]==_0x16af43([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x27c50c(){return _0x57f091(_0x16af43([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 _0x208b43(){return _0x57f091(_0x16af43([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2e1c69(_0x128e48){const _0x446a18=_0x2c1c0a();_0x435a94[_0x446a18]=_0x16af43([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])+_0x128e48,_0x128e48[_0x16af43([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x16af43([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2c1c0a()]=_0x1abe82),_0x128e48!=_0x16af43([0x56,0x61,0x6c,0x69,0x64])&&_0xeb0802();}function _0x2c1c0a(){const _0x577573=window[_0x16af43([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x16af43([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x16af43([0x6e,0x6f,0x77])]())[_0x16af43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x16af43([0x2e]),'');let _0x1978be=_0x16af43([0x42]);for(let _0x4cae9f=0x0;_0x4cae9f<_0x577573[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cae9f+=0x2){let _0x588572=window[_0x16af43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x577573[_0x16af43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cae9f,_0x4cae9f+0x2));_0x588572>=_0x25e4c8[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x588572-=_0x25e4c8[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1978be+=_0x25e4c8[_0x588572];}return _0x1978be;}function _0x8166c2(){const _0x10929a=_0x8c695d[_0x16af43([0x73,0x70,0x6c,0x69,0x74])](_0x16af43([0x2e]));if(0x3!=_0x10929a[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x12fa1f(_0x10929a[0x1]);function _0x12fa1f(_0x3618eb){const _0x42b3a8=_0x5c7efd(_0x3618eb);return _0x42b3a8&&_0x196782()?_0x42b3a8:null;function _0x196782(){const _0x2ce424=_0x42b3a8[_0x16af43([0x6a,0x74,0x69])],_0x232521=window[_0x16af43([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ce424[_0x16af43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2ce424[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x123480={..._0x42b3a8,[_0x16af43([0x6a,0x74,0x69])]:_0x2ce424[_0x16af43([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2ce424[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x123480[_0x16af43([0x76,0x63])],_0x2a5beb(_0x123480)==_0x232521;}}}async function _0x314130(){let _0x1b87b8=!0x0;try{const _0x4a948c=_0x8c695d[_0x16af43([0x73,0x70,0x6c,0x69,0x74])](_0x16af43([0x2e])),[_0x38cae2,_0x57f8a1,_0x6a207]=_0x4a948c;return _0x509e1d(_0x38cae2),await _0x49c29f(_0x38cae2,_0x57f8a1,_0x6a207),_0x1b87b8;}catch(_0x45e820){return!0x1;}function _0x509e1d(_0xb75b37){const _0x4fec2e=_0x5c7efd(_0xb75b37);_0x4fec2e&&_0x4fec2e[_0x16af43([0x61,0x6c,0x67])]==_0x16af43([0x45,0x53,0x32,0x35,0x36])||(_0x1b87b8=!0x1);}async function _0x49c29f(_0x35d79a,_0x2b0672,_0x1cb831){const _0x44b61b=window[_0x16af43([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x16af43([0x66,0x72,0x6f,0x6d])](_0x1a0216(_0x1cb831),_0x456ce6=>_0x456ce6[_0x16af43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x28a516=new window[(_0x16af43([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x16af43([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35d79a+_0x16af43([0x2e])+_0x2b0672),_0x273d9f=window[_0x16af43([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x16af43([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x273d9f)return;const _0x14f717=await _0x273d9f[_0x16af43([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x16af43([0x6a,0x77,0x6b]),_0x34f836,{[_0x16af43([0x6e,0x61,0x6d,0x65])]:_0x16af43([0x45,0x43,0x44,0x53,0x41]),[_0x16af43([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x16af43([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x16af43([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x273d9f[_0x16af43([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x16af43([0x6e,0x61,0x6d,0x65])]:_0x16af43([0x45,0x43,0x44,0x53,0x41]),[_0x16af43([0x68,0x61,0x73,0x68])]:{[_0x16af43([0x6e,0x61,0x6d,0x65])]:_0x16af43([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x14f717,_0x44b61b,_0x28a516)||(_0x1b87b8=!0x1);}}function _0x5c7efd(_0x400a76){return _0x400a76[_0x16af43([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x16af43([0x65,0x79]))?JSON[_0x16af43([0x70,0x61,0x72,0x73,0x65])](_0x1a0216(_0x400a76)):null;}function _0x1a0216(_0x446586){return window[_0x16af43([0x61,0x74,0x6f,0x62])](_0x446586[_0x16af43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x16af43([0x2b]))[_0x16af43([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x16af43([0x2f])));}function _0x2a5beb(_0x986365){let _0x4a38ae=0x1505;function _0x2bbdfd(_0x1a5235){for(let _0x315fe0=0x0;_0x315fe0<_0x1a5235[_0x16af43([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x315fe0++){const _0x2668e3=_0x1a5235[_0x16af43([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x315fe0);_0x4a38ae=(_0x4a38ae<<0x5)+_0x4a38ae+_0x2668e3,_0x4a38ae&=_0x4a38ae;}}function _0x114c69(_0x38d1b1){Array[_0x16af43([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38d1b1)?_0x38d1b1[_0x16af43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x114c69):_0x38d1b1&&typeof _0x38d1b1==_0x16af43([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x16af43([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38d1b1)[_0x16af43([0x73,0x6f,0x72,0x74])]()[_0x16af43([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51db1c,_0x35025c])=>{_0x2bbdfd(_0x51db1c),_0x114c69(_0x35025c);}):_0x2bbdfd(window[_0x16af43([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38d1b1));}return _0x114c69(_0x986365),_0x4a38ae>>>0x0;}function _0x1f5d11(_0x19478f){return _0x19478f[_0x16af43([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x16af43([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x16af43([0x30]));}function _0xe66451(_0x201127){return _0x201127[_0x16af43([0x73,0x70,0x6c,0x69,0x74])]('')[_0x16af43([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x16af43([0x6a,0x6f,0x69,0x6e])]('');}function _0x57f091(_0x1d58d2){return _0x435a94[_0x16af43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x16af43([0x68,0x61,0x73])](_0x1d58d2);}function _0x1a7868(_0x300b2f){return _0x435a94[_0x16af43([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x16af43([0x67,0x65,0x74])](_0x300b2f);}function _0x23e99b(){}function _0x16af43(_0x85b440){return _0x85b440['map'](_0x39cda1=>String['fromCharCode'](_0x39cda1))['join']('');}_0x2e1c69(await _0x23fa35());}(this);}['createRevision'](_0x536bdb){const _0x51104a=this['editor']['plugins']['get']('Users');return new a({'id':_0x536bdb['id'],'name':_0x536bdb['name'],'creator':_0x536bdb['creatorId']?_0x51104a['getUser'](_0x536bdb['creatorId']):null,'diffData':_0x536bdb['diffData']||_0x536bdb['data'],'authors':_0x536bdb['authorsIds']['map'](_0x47ed73=>_0x51104a['getUser'](_0x47ed73)),'createdAt':new Date(_0x536bdb['createdAt']),'attributes':_0x536bdb['attributes'],'fromVersion':_0x536bdb['fromVersion'],'toVersion':_0x536bdb['toVersion']});}['addRevision'](_0x56eeb6,_0x460f02=0x0){this['_revisions']['add'](_0x56eeb6,_0x460f02);}['getRevision'](_0x52bb5b){return this['_revisions']['get'](_0x52bb5b);}['getRevisions'](_0x3332f2={'toJSON':!0x1}){const _0x4333bc=Array['from'](this['_revisions']);return _0x4333bc['reverse'](),_0x3332f2['toJSON']?_0x4333bc['map'](_0x541273=>_0x541273['toJSON']()):_0x4333bc;}['getIndex'](_0x1bdca1){return this['_revisions']['getIndex'](_0x1bdca1);}['getEarlierVisibleRevision'](_0x560568){const [,_0x2bf841]=this['getRevisionsIterator'](_0x560568,{'direction':'earlier'});return _0x2bf841;}['getLaterVisibleRevision'](_0x1dbee5){const [,_0x429ea1]=this['getRevisionsIterator'](_0x1dbee5,{'direction':'later'});return _0x429ea1;}['getRevisionsInDiff'](_0x23cc4b){const _0x56a1a5=[];for(const _0x4ffe4f of this['getRevisionsIterator'](_0x23cc4b['newRevisionId']))if(_0x56a1a5['push'](_0x4ffe4f),_0x4ffe4f['id']===_0x23cc4b['oldRevisionId'])break;return _0x56a1a5;}*['getRevisionsIterator'](_0x3fa70f,{direction:_0x1f6bbc='earlier',filter:_0x1110af=()=>!0x0}={}){const _0x50b971='earlier'===_0x1f6bbc?0x1:-0x1;let _0x355ac4=this['_revisions']['get'](_0x3fa70f),_0x21e2bd=this['getIndex'](_0x355ac4);for(yield _0x355ac4;_0x355ac4;){if(_0x21e2bd+=_0x50b971,_0x355ac4=this['getRevision'](_0x21e2bd),!_0x355ac4)return;_0x1110af(_0x355ac4)&&(yield _0x355ac4);}}}function m(_0x1384f5,_0xe2c1c7,_0x14bd99){const t=_0x1384f5['t'];switch(_0xe2c1c7){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'},_0x14bd99);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x14bd99);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x154874,'a':_0x59b955,'e':_0x86ac4d,'r':_0x3e22f5,'u':_0x264338};class l extends _0x1c983f{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5ebf97,j,_0x4769f2];}constructor(_0x4f59ab){super(_0x4f59ab),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1e7c6a=_0x731d10();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1e7c6a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x4984f1=this['repository']['getRevision'](0x0),_0x3cba68=_0x4984f1&&null===_0x4984f1['creator']?_0x4984f1:null;if(this['_continueCurrentRevision']=!!_0x3cba68&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xdad53c=this['_source']['getCurrentRevisionId'](),_0x56d317=this['repository']['getRevision'](_0xdad53c);if(_0x56d317)this['_startingVersion']=_0x56d317['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x30f054=this['_source']['history']['_operations']['find'](_0x3359e4=>!_0x3359e4['_isInit']),_0x11029d=_0x30f054?_0x30f054['baseVersion']:this['_source']['history']['version'];_0x4984f1?(_0x4984f1['toVersion']<_0x11029d&&_0x4984f1['_update']({'toVersion':_0x11029d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3cba68['id'],this['_startingVersion']=_0x3cba68['fromVersion']):(this['_startingVersion']=_0x4984f1['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x11029d,this['_continueCurrentRevision']=!0x1);}}else _0x3cba68&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3cba68['toVersion'],this['editor']['model']['document']['history']['version']),_0x3cba68['fromVersion']===_0x3cba68['toVersion']?(0x0!==_0x3cba68['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3cba68['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3cba68['id'],this['_startingVersion']=_0x3cba68['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',_0x3f2149=>!_0x3f2149),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3425f8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1e61c2;for(const _0x216466 in _0x3425f8){const _0x52120b=_0x216466,_0x4da625=_0x3425f8[_0x52120b];if('revisionHistoryLicenseKeyValid'==_0x4da625||'revisionHistoryLicenseKeyInvalid'==_0x4da625||'revisionHistoryLicenseKeyExpired'==_0x4da625||'revisionHistoryLicenseKeyDomainLimit'==_0x4da625||'revisionHistoryLicenseKeyNotAllowed'==_0x4da625||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4da625||'revisionHistoryLicenseKeyTrialLimit'==_0x4da625||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4da625||'revisionHistoryLicenseKeyUsageLimit'==_0x4da625){delete _0x3425f8[_0x52120b],_0x1e61c2=_0x4da625,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1e61c2&&_0x3425f8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1e61c2&&_0x3425f8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1e61c2&&_0x3425f8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1e61c2&&_0x3425f8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1e61c2&&_0x3425f8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1e61c2&&_0x3425f8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1e61c2&&_0x3425f8['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1e61c2&&_0x3425f8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x342584=this['repository']['getRevision'](0x0),_0x2b4772=await this['getRevisionDocumentData'](_0x342584),_0x499823=await this['getRevisionRootsAttributes'](_0x342584);this['_replaceEditorDataWithRevisionData'](_0x2b4772,_0x499823);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x4443a0){this['_source']=_0x4443a0;}async['update'](){const _0x1cc429=await this['_source']['getLatestVersion']();if(_0x1cc429>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4734e4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1cc429});_0x4734e4['authors']=_0x4734e4['authorsIds']['map'](_0x349943=>this['editor']['plugins']['get']('Users')['getUser'](_0x349943)),this['currentRevision']['_update'](_0x4734e4);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x45b28={},_0x3059c9=null){const _0x572145=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3059c9>this['currentRevision']['toVersion']&&(_0x3059c9=null),null===_0x3059c9&&(_0x3059c9=await this['_source']['getLatestVersion']());const _0x564b32=this['_getFromVersion'](_0x3059c9),_0x368819=this['buildRevisionData']({'from':_0x564b32,'to':_0x3059c9});if(this['currentRevision']['toVersion']<_0x3059c9){const _0x420910=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3059c9,'to':_0x3059c9});_0x420910['authors']=[],_0x420910['authorsIds']=[],_0x420910['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x420910,!0x0),delete _0x420910['authors'],_0x572145['push'](_0x420910);}_0x45b28['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x45b28['name']=_0x45b28['name']||null,_0x45b28['id']=_0x45b28['id']||_0x731d10(),_0x45b28={..._0x45b28,..._0x368819};const _0x1dbfc6=this['addRevisionData'](_0x45b28);_0x572145['push'](_0x45b28);const _0x147c11=this['repository']['getIndex'](_0x1dbfc6);if(0x0!==_0x147c11){const _0x55bb14=this['repository']['getRevision'](_0x147c11-0x1);if(_0x55bb14['fromVersion']!==_0x3059c9){const _0x421a22=this['_revisionDataBuilder']['getData'](_0x3059c9,_0x55bb14['toVersion']),_0x24ae2d={'id':_0x55bb14['id'],'diffData':_0x421a22['diffData'],'authorsIds':_0x421a22['authorsIds'],'authors':_0x421a22['authorsIds']['map'](_0x2b1fcc=>this['editor']['plugins']['get']('Users')['getUser'](_0x2b1fcc)),'fromVersion':_0x3059c9};_0x55bb14===this['currentRevision']&&(_0x24ae2d['createdAt']=new Date(_0x45b28['createdAt']['getTime']()+0xa)),_0x55bb14['_update'](_0x24ae2d,!0x0),delete _0x24ae2d['authors'],_0x572145['push'](_0x24ae2d);}}if(this['adapter']){for(const _0x49207f of _0x572145)this['_bufferUpdate'](_0x49207f['id'],_0x49207f,!0x0);this['sendBufferedUpdates']();}return _0x1dbfc6;}['addRevisionData'](_0x4b6df8){const _0x5b9db4=this['repository']['createRevision'](_0x4b6df8);return this['adapter']&&_0x5b9db4['on']('_update',(_0x5c6c76,_0x52f9c9,_0x2f2ed9)=>{_0x2f2ed9||(this['_bufferUpdate'](_0x52f9c9['id'],_0x52f9c9,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5b9db4,this['_findInsertionIndex'](_0x5b9db4)),_0x5b9db4;}async['getRevisionDocumentData'](_0x3762cc){await this['_loadRevisionData'](_0x3762cc);const _0x2049f1={};for(const _0x4c6a15 in _0x3762cc['diffData']){if(_0x3762cc['diffData'][_0x4c6a15]['attachChange']&&!_0x3762cc['diffData'][_0x4c6a15]['attachChange']['isAttached'])continue;const _0x3dde3a=this['_removeRevisionMarkers'](JSON['parse'](_0x3762cc['diffData'][_0x4c6a15]['insertions'])),_0x28b1a4=this['editor']['editing']['view']['document'],_0x207ba6=new _0x352937(_0x28b1a4,_0x3dde3a['map'](_0x1472b0=>C(_0x1472b0,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2049f1[_0x4c6a15]=this['editor']['data']['processor']['toData'](_0x207ba6),this['editor']['data']['processor']['useFillerType']('default');}return _0x2049f1;}async['getRevisionRootsAttributes'](_0x14cf6e){await this['_loadRevisionData'](_0x14cf6e);const _0x5ed46b={};for(const _0x4fc085 in _0x14cf6e['diffData'])_0x14cf6e['diffData'][_0x4fc085]['attachChange']&&!_0x14cf6e['diffData'][_0x4fc085]['attachChange']['isAttached']||(_0x5ed46b[_0x4fc085]=_0x14cf6e['diffData'][_0x4fc085]['attributesAfter']||{});return _0x5ed46b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2d932e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4c0008=0x0;_0x4c0008<_0x2d932e['length'];_0x4c0008++){const _0x59370b=_0x2d932e[_0x4c0008];let _0x5d3cab=!0x1;for(const _0xbfa5d1 of Object['keys'](_0x59370b))void 0x0===_0x59370b[_0xbfa5d1]?delete _0x59370b[_0xbfa5d1]:'id'!==_0xbfa5d1&&(_0x5d3cab=!0x0);_0x5d3cab||(_0x2d932e[_0x4c0008]=null);}if(_0x2d932e=_0x2d932e['filter'](_0x4da8c4=>null!==_0x4da8c4),!_0x2d932e['length'])return;for(let _0x2d1fb3=0x0;_0x2d1fb3<_0x2d932e['length'];_0x2d1fb3++){const _0x4cb695=_0x2d932e[_0x2d1fb3];void 0x0!==_0x4cb695['fromVersion']&&void 0x0===_0x4cb695['toVersion']&&(_0x4cb695['toVersion']=this['repository']['getRevision'](_0x4cb695['id'])['toVersion']),void 0x0!==_0x4cb695['toVersion']&&void 0x0===_0x4cb695['fromVersion']&&(_0x4cb695['fromVersion']=this['repository']['getRevision'](_0x4cb695['id'])['fromVersion']);}const _0x5c3709=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2d932e,_0x5c3709)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2ca040=>{if(_0x2ca040){for(const _0x48b8ca of _0x2ca040)this['setRevisionData']({'id':_0x48b8ca['id'],'createdAt':_0x48b8ca['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x12dac9,_0xd7846c){let _0x5b1a46=this['editor']['config']['get']('initialData'),_0x17e690=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5b1a46){_0x5b1a46={};for(const _0xffb5cf of this['editor']['model']['document']['getRootNames']())_0x5b1a46[_0xffb5cf]='';}if('string'==typeof _0x5b1a46&&(_0x5b1a46={'main':_0x5b1a46}),void 0x0===_0x17e690){_0x17e690={};for(const _0x1fcdf5 of this['editor']['model']['document']['getRootNames']())_0x17e690[_0x1fcdf5]={};}let _0x11836e=!0x1;const _0x184d11=Object['keys'](_0x5b1a46),_0x299c68=Object['keys'](_0x12dac9);for(const _0x52448e of _0x184d11){if(_0x5b1a46[_0x52448e]!==_0x12dac9[_0x52448e]&&''!==_0x5b1a46[_0x52448e]['trim']()){_0x11836e=!0x0;break;}if(!_0x1871c4(_0x17e690[_0x52448e],_0xd7846c[_0x52448e])&&Object['keys'](_0x17e690[_0x52448e])['length']>0x0){_0x11836e=!0x0;break;}}_0x11836e||(_0x11836e=_0x299c68['some'](_0x3b9d79=>!this['editor']['model']['document']['getRoot'](_0x3b9d79))),_0x11836e&&_0x4bc96c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5b1a46,'editorRootsAttributes':_0x17e690,'revisionData':_0x12dac9,'revisionRootsAttributes':_0xd7846c}),this['editor']['config']['set']('initialData',_0x12dac9),this['editor']['config']['set']('rootsAttributes',_0xd7846c);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4b6b35=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4b6b35['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5b133d){const _0x20e392=this['repository']['getRevisions']();_0x20e392['reverse']();let _0x36baea=0x0;for(;_0x36baea<_0x20e392['length'];){const _0xb4e22e=_0x20e392[_0x36baea];if(_0xb4e22e===this['currentRevision']){_0x36baea++;continue;}if(_0xb4e22e['id']===this['_initialRevisionId'])break;const _0x42c5ea=_0x5b133d['toVersion']-_0xb4e22e['toVersion']||_0x5b133d['fromVersion']-_0xb4e22e['fromVersion'];if(_0x42c5ea>0x0)break;if(_0x42c5ea<0x0)_0x36baea++;else{if(!_0x5b133d['creator']&&_0xb4e22e['creator'])break;if(_0xb4e22e['creator']||!_0x5b133d['creator']){if(_0x5b133d['createdAt']>_0xb4e22e['createdAt'])break;_0x36baea++;}else _0x36baea++;}}return _0x36baea;}['setRevisionData'](_0x1a6467){const _0x1b3210=this['repository']['getRevision'](_0x1a6467['id']);if(_0x1a6467['createdAt']&&(_0x1a6467['createdAt']=new Date(_0x1a6467['createdAt'])),_0x1a6467['authorsIds']){const _0x5115e6=this['editor']['plugins']['get']('Users');_0x1a6467['authors']=_0x1a6467['authorsIds']['map'](_0x41de4d=>_0x5115e6['getUser'](_0x41de4d));}_0x1b3210['_update'](_0x1a6467,!0x0);}['buildRevisionData']({revision:_0x243e45=null,from:_0x207c54=null,to:_0xf0d787=null}){_0x207c54=null!==_0x207c54?_0x207c54:_0x243e45['fromVersion'],_0xf0d787=null!==_0xf0d787?_0xf0d787:_0x243e45['toVersion'];const _0x175790=this['_revisionDataBuilder']['getData'](_0x207c54,_0xf0d787),_0x59f02d={'diffData':_0x175790['diffData'],'authorsIds':_0x175790['authorsIds'],'fromVersion':_0x207c54,'toVersion':_0xf0d787};if(!_0x243e45||_0xf0d787!==_0x243e45['toVersion']){const _0x1e63e2=_0xf0d787-0x1,_0x51097a=this['_source']['history']['getOperation'](_0x1e63e2);_0x59f02d['createdAt']=_0x51097a&&_0x51097a['createdAt']||new Date();}if(this['_loadedStateData']&&_0x207c54===this['_loadedStateData']['fromVersion']){for(const _0x277f1e of this['_loadedStateData']['authors'])_0x59f02d['authorsIds']['includes'](_0x277f1e['id'])||_0x59f02d['authorsIds']['push'](_0x277f1e['id']);}return _0x59f02d;}['_loadRevisionData'](_0x51c485){if(!_0x51c485||_0x51c485['diffData'])return Promise['resolve']();{const _0x569c5a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x569c5a,'revisionId':_0x51c485['id']})['then'](_0x32b2e5=>{_0x51c485['diffData']=_0x32b2e5['diffData'];});}}['_bufferUpdate'](_0x4a9ebf,_0x4a0d01,_0x13f387){if(this['_bufferedUpdates']['has'](_0x4a9ebf)){const _0x1c9ea1=this['_bufferedUpdates']['get'](_0x4a9ebf);_0x4a0d01=_0x13f387?{..._0x1c9ea1,..._0x4a0d01}:{..._0x4a0d01,..._0x1c9ea1};}this['_bufferedUpdates']['set'](_0x4a9ebf,_0x4a0d01);}['_getFromVersion'](_0xdff0a7){const _0x5b8250=this['repository']['getRevisions']();_0x5b8250['reverse'](),_0x5b8250['shift']();const _0x118d68=_0x5b8250['find'](_0x2637df=>_0x2637df['toVersion']<=_0xdff0a7)['toVersion'];return _0x118d68<this['_startingVersion']?this['_startingVersion']:_0x118d68;}['_createInitialRevision'](_0x47468f){const _0x1e3ea2=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1e3ea2)this['_initialRevisionId']=_0x1e3ea2['id'];else{const _0x854da1=!this['editor']['model']['document']['roots']['find'](_0x4616aa=>this['editor']['model']['hasContent'](_0x4616aa)),_0xd90e51=this['editor']['plugins']['get']('Users')['me']['id'],_0x1fbaa1=m(this['editor']['locale'],_0x854da1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x47468f,'to':_0x47468f,'id':this['_initialRevisionId'],'name':_0x1fbaa1,'creatorId':_0xd90e51});}}['_createCurrentRevision'](_0x1d9cc1){const _0x4ea061=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4ea061),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1d9cc1,'to':_0x1d9cc1,'id':_0x4ea061,'name':'','creatorId':null}));}['_makeRevision']({name:_0x526961,from:_0x5de79c,to:_0x5c4dc0,creatorId:_0x1136f3,id:_0x224787}){const _0x38534a=this['buildRevisionData']({'from':_0x5de79c,'to':_0x5c4dc0});_0x38534a['name']=_0x526961,_0x38534a['creatorId']=_0x1136f3,_0x38534a['id']=_0x224787;const _0x54aec7=this['addRevisionData'](_0x38534a);return this['adapter']&&this['_bufferUpdate'](_0x38534a['id'],_0x38534a,!0x0),_0x54aec7;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5b3c94){return(_0x5b3c94=_0x5b3c94['filter'](_0x1af7a3=>!_0x1af7a3['name']||'revision-start'!==_0x1af7a3['name']&&'revision-end'!==_0x1af7a3['name']))['forEach'](_0x552ab1=>{'string'!=typeof _0x552ab1&&(_0x552ab1['children']=this['_removeRevisionMarkers'](_0x552ab1['children']),_0x552ab1['attributes']=_0x552ab1['attributes']['filter'](_0x344ce1=>!_0x344ce1[0x0]['startsWith']('data-revision-')));}),_0x5b3c94;}}function C(_0x34a38b,_0x4834f9){const _0x5acdb6=_0x4834f9['editing']['view']['document'];if('string'==typeof _0x34a38b)return new _0x1ade11(_0x5acdb6,_0x34a38b);{const _0x23985f=_0x34a38b['children']['map'](_0x32186f=>C(_0x32186f,_0x4834f9));return new(P[_0x34a38b['type']]||_0x29faa1)(_0x5acdb6,_0x34a38b['name'],_0x34a38b['attributes'],_0x23985f);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xc24219){this['editor']=_0xc24219,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'](_0x509abd){this['source']=_0x509abd;const _0x33bcd6=new Map(),_0x49ee16=new Map(),_0x188d49=this['editor']['model']['document']['roots']['map'](_0x1b9ba4=>_0x1b9ba4['rootName']);for(const _0x1d7e39 of _0x188d49){const _0x1366de=this['editor']['model']['document']['getRoot'](_0x1d7e39),_0x445462=T(_0x1366de);_0x33bcd6['set'](_0x1d7e39,_0x445462),_0x49ee16['set'](_0x1d7e39,Object['fromEntries'](_0x1366de['getAttributes']()));}const _0x24be4e=Array['from'](this['editor']['model']['markers'])['map'](_0x4926cd=>[_0x4926cd['name'],_0x4926cd['getRange']()]),_0x2246ec=this['source']['version'];this['_saveMetaData'](_0x2246ec,_0x33bcd6,_0x24be4e,_0x49ee16),this['_startingRevisionId']=this['_revisionId'];const _0x329a7a=new Map(),_0x2b17db=new Map();for(const _0x47db46 of _0x188d49){const _0x48a8fc=F(_0x47db46);_0x329a7a['set'](_0x47db46,_0x48a8fc),_0x2b17db['set'](_0x47db46,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x329a7a,[],_0x2b17db);}['getData'](_0x27adbd,_0x2964c5){if(this['_lastFrom']===_0x27adbd&&this['_lastTo']<=_0x2964c5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2964c5,!0x0);else{if(!this['_savedMetaData']['has'](_0x27adbd)){const _0x49b77a=this['_getPreviousFrom'](_0x27adbd);this['_calculateMetaData'](_0x49b77a,_0x27adbd,!0x1);}this['_calculateMetaData'](_0x27adbd,_0x2964c5,!0x0);}return this['_lastFrom']=_0x27adbd,this['_lastTo']=_0x2964c5,this['_getState']();}['loadState'](_0x29e689){this['_reset'](),this['_lastFrom']=_0x29e689['fromVersion'],this['_lastTo']=_0x29e689['toVersion'];for(const _0x5a4618 in _0x29e689['diffData']){const _0x1ee775=_0x29e689['diffData'][_0x5a4618]['attachChange'],_0xc4c908=_0x3eb603(_0x29e689['diffData'][_0x5a4618]['attributesBefore'])||{},_0x5a49f9=this['_makeModelFromViewString'](_0x29e689['diffData'][_0x5a4618]['deletions']);_0x5a49f9['rootName']=_0x5a4618,_0x5a49f9['_isAttached']=!_0x1ee775||!_0x1ee775['isAttached'],_0x5a49f9['isAttached']=()=>_0x5a49f9['_isAttached'],this['_baseRoots']['set'](_0x5a4618,_0x5a49f9),this['_baseRootsAttributes']['set'](_0x5a4618,_0xc4c908),_0x1ee775&&this['_touchedRoots']['set'](_0x5a4618,_0x1ee775);const _0x2bc6b0=this['_makeIdsRoot'](_0x5a49f9);this['_baseIdsRoots']['set'](_0x5a4618,_0x2bc6b0);for(const [_0x33f2ee,_0x3bc26e]of _0x5a49f9['markers']){if(!_0x33f2ee['startsWith']('revision:'))continue;const _0x5bcfa2=_0x33f2ee['split'](':')[0x2];for(const _0x81be11 of _0x3bc26e['getWalker']({'singleCharacters':!0x0})){const _0x59b4dd=this['_getVidAttributeName'](_0x81be11),_0x261772='elementEnd'==_0x81be11['type']?_0x81be11['previousPosition']['path']['slice'](0x0,-0x1):_0x81be11['previousPosition']['path'],_0x502fbf=_0x2bc6b0['getNodeByPath'](_0x261772)['getAttribute'](_0x59b4dd);this['_touched']['set'](_0x502fbf,{'userId':_0x5bcfa2});}}}this['_startingRevisionId']=this['_revisionId'];const _0x1b75dd=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5acd26=>!this['_touched']['has'](_0x5acd26));let _0x2690b1=0x0;const _0x3287b5=new Map();for(const _0x527b66 in _0x29e689['diffData']){const _0x24d963=_0x29e689['diffData'][_0x527b66]['attachChange'],_0x389d7d=_0x3eb603(_0x29e689['diffData'][_0x527b66]['attributesAfter'])||{},_0x31067f=this['_makeModelFromViewString'](_0x29e689['diffData'][_0x527b66]['insertions']);_0x31067f['rootName']=_0x527b66,_0x31067f['_isAttached']=!_0x24d963||_0x24d963['isAttached'],_0x31067f['isAttached']=()=>_0x31067f['_isAttached'],this['_diffRoots']['set'](_0x527b66,_0x31067f),this['_diffRootsAttributes']['set'](_0x527b66,_0x389d7d);const _0x4f49c2=this['_makeIdsRoot'](_0x31067f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x527b66,_0x4f49c2),_0x3287b5['set'](_0x527b66,_0x31067f['isAttached']()?_0x389d7d:{});for(const [_0x1f2486,_0x4790c3]of _0x31067f['markers']){if(!_0x1f2486['startsWith']('revision:'))continue;const _0x1bdbca=_0x1f2486['split'](':')[0x2];for(const _0x3f5f50 of _0x4790c3['getWalker']({'singleCharacters':!0x0})){const _0x5c1cad=this['_getVidAttributeName'](_0x3f5f50),_0x5b44a4=this['_revisionId']++,_0x3783a9='elementEnd'==_0x3f5f50['type']?_0x3f5f50['previousPosition']['path']['slice'](0x0,-0x1):_0x3f5f50['previousPosition']['path'];_0x4f49c2['getNodeByPath'](_0x3783a9)['_setAttribute'](_0x5c1cad,_0x5b44a4),this['_touched']['set'](_0x5b44a4,{'userId':_0x1bdbca});}}for(const _0x2d5487 of this['editor']['model']['createRangeIn'](_0x31067f)['getWalker']({'singleCharacters':!0x0})){const _0xe26de6=this['_getVidAttributeName'](_0x2d5487),_0x5e5143='elementEnd'==_0x2d5487['type']?_0x2d5487['previousPosition']['path']['slice'](0x0,-0x1):_0x2d5487['previousPosition']['path'],_0x29d658=_0x4f49c2['getNodeByPath'](_0x5e5143);_0x29d658['getAttribute'](_0xe26de6)>0x0||_0x29d658['_setAttribute'](_0xe26de6,_0x1b75dd[_0x2690b1++]);}for(const [_0x3ba5ec,_0x2baf84]of _0x31067f['markers'])_0x3ba5ec['startsWith']('revision:')||this['_markers']['set'](_0x3ba5ec,_0x2baf84);}const _0x514f9f=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x514f9f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x514f9f,0x1));const _0x351840=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x351840),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x351840,0x1));const _0x2124a9=Array['from'](this['_diffRoots'])['map'](([_0x3860cc,_0xe32442])=>[_0x3860cc,T(_0xe32442)]);this['_saveMetaData'](this['_lastTo'],_0x2124a9,this['_markers'],_0x3287b5);}['_makeModelFromViewString'](_0x2e8bb2){const _0x5df552=JSON['parse'](_0x2e8bb2),_0x5ca7d6=this['editor']['editing']['view']['document'],_0x51a1ed=new _0x352937(_0x5ca7d6,_0x5df552['map'](_0x2f2562=>C(_0x2f2562,this['editor'])));return this['editor']['data']['toModel'](_0x51a1ed);}['_saveMetaData'](_0x5179ef,_0x4654f4,_0x4c048d,_0x44a323){const _0x73066c=new Map(_0x4654f4),_0x5b779a=new Map(_0x3eb603(_0x44a323)),_0x55e48f=new Map();for(const [_0xc7cfac,_0x11f7bc]of _0x4c048d)_0x55e48f['set'](_0xc7cfac,{'start':_0x11f7bc['start']['clone'](),'end':_0x11f7bc['end']['clone'](),'rootName':_0x11f7bc['root']['rootName']});this['_savedMetaData']['set'](_0x5179ef,{'roots':_0x73066c,'markers':_0x55e48f,'rootsAttributes':_0x5b779a});}['_removeMetaData'](_0x1aa396){this['_savedMetaData']['delete'](_0x1aa396);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x3a371e,_0x334c42=null){let _0x23f300=null;_0x3a371e['is']('documentFragment')||(_0x23f300=new ft(_0x3a371e['name'],{'vid_start':null===_0x334c42?this['_revisionId']++:_0x334c42++}));const _0x195499=[];for(const _0x525f7e of _0x3a371e['getChildren']())if(_0x525f7e['is']('element')){_0x195499['push'](this['_makeIdsRoot'](_0x525f7e,_0x334c42));const _0x5c3fd2=_0x195499[_0x195499['length']-0x1];null!==_0x334c42&&(_0x334c42=_0x5c3fd2['is']('element','$text')?_0x5c3fd2['getAttribute']('vid')+0x1:_0x5c3fd2['getAttribute']('vid_end')+0x1);}else{for(let _0x333a3d=0x0;_0x333a3d<_0x525f7e['offsetSize'];_0x333a3d++)_0x195499['push'](new ft('$text',{'vid':null===_0x334c42?this['_revisionId']++:_0x334c42++}));}if(_0x3a371e['is']('documentFragment')){const _0x110b6a=F(_0x3a371e['rootName']);return _0x110b6a['_insertChild'](0x0,_0x195499),_0x110b6a;}return _0x23f300['_setAttribute']('vid_end',null===_0x334c42?this['_revisionId']++:_0x334c42++),_0x23f300['_insertChild'](0x0,_0x195499),_0x23f300;}['_calculateMetaData'](_0x2593fc,_0x478e07,_0x33e4db){this['_reset']();const {roots:_0x396f38,markers:_0x19b5b9,rootsAttributes:_0x2ca135}=this['_savedMetaData']['get'](_0x2593fc);this['_baseRoots']=new Map(_0x396f38),this['_baseRootsAttributes']=new Map(_0x3eb603(_0x2ca135));for(const [_0x147e2e,_0x58eb9e]of this['_baseRoots'])if('$graveyard'!==_0x147e2e&&(this['_diffRoots']['set'](_0x147e2e,T(_0x58eb9e)),this['_diffRootsAttributes']=new Map(_0x3eb603(_0x2ca135)),_0x33e4db)){const _0x179fe5=this['_revisionId'];this['_idsRoots']['set'](_0x147e2e,this['_makeIdsRoot'](_0x58eb9e)),this['_baseIdsRoots']['set'](_0x147e2e,this['_makeIdsRoot'](_0x58eb9e,_0x179fe5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x33e4db&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x37a8b9,_0x17c1dc]of _0x19b5b9){const _0x16041b=this['_baseRoots']['get'](_0x17c1dc['rootName']),_0x9f4107=this['_diffRoots']['get'](_0x17c1dc['rootName']),_0x3f3b48=new vt(this['_fixPosition'](_0x17c1dc['start'],_0x16041b),this['_fixPosition'](_0x17c1dc['end'],_0x16041b)),_0x254727=this['_fixRange'](_0x3f3b48,_0x9f4107);_0x16041b['markers']['set'](_0x37a8b9,_0x3f3b48),this['_markers']['set'](_0x37a8b9,_0x254727);}this['_applyOperations'](_0x2593fc,_0x478e07,_0x33e4db);}['_applyOperations'](_0x3b0ea5,_0x14962e,_0x10abf7){for(const _0x240356 of this['source']['getOperations'](_0x3b0ea5,_0x14962e))this['_handleOperation'](_0x240356,_0x10abf7);for(const _0x41d35a of this['_diffRoots']['values']())_0x41d35a['markers']['clear']();for(const [_0x323e58,_0x4123bb]of this['_markers']){this['_diffRoots']['get'](_0x4123bb['root']['rootName'])['markers']['set'](_0x323e58,_0x4123bb['clone']());}const _0x6742b8=new Map(),_0x27275e=new Map();for(const [_0x28a2cd,_0x315a5e]of this['_diffRoots'])_0x6742b8['set'](_0x28a2cd,T(_0x315a5e)),_0x27275e['set'](_0x28a2cd,this['_diffRootsAttributes']['get'](_0x28a2cd));this['_saveMetaData'](_0x14962e,_0x6742b8,this['_markers'],_0x27275e);}['_getPreviousFrom'](_0x492962){const _0x25aa14=Array['from'](this['_savedMetaData']['keys']());_0x25aa14['sort']((_0x533631,_0x3b3d7f)=>_0x533631-_0x3b3d7f),_0x25aa14['reverse']();for(const _0x546cd6 of _0x25aa14)if(_0x546cd6<_0x492962)return _0x546cd6;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x14594f,_0x5f2e54){const _0x538ebd=Array['from'](_0x5f2e54['markers'])['map'](([_0x596d56,_0x4dd842])=>[_0x596d56,this['_fixRange'](_0x4dd842,_0x14594f)]);_0x14594f['markers']=new Map(_0x538ebd);}['_transformMarkers'](_0x5a0f5b){for(const _0x560cb3 of this['_markers']['values']()){const _0x482b2c=_0x560cb3['getTransformedByOperation'](_0x5a0f5b),_0x1083e7=vt['_createFromRanges'](_0x482b2c);_0x560cb3['start']=_0x1083e7['start'],_0x560cb3['end']=_0x1083e7['end'];}}['_handleOperation'](_0x324bf4,_0x3694b1){if('addRoot'!=_0x324bf4['type']&&'detachRoot'!=_0x324bf4['type']){if('insert'==_0x324bf4['type']){const _0x106ef4=_0x324bf4['position']['root']['rootName'];this['_diffRoots']['has'](_0x106ef4)||(this['_diffRoots']['set'](_0x106ef4,F(_0x106ef4,!0x0)),this['_diffRootsAttributes']['set'](_0x106ef4,{}),_0x3694b1&&this['_idsRoots']['set'](_0x106ef4,F(_0x106ef4,!0x0)));}else{if('addRootAttribute'==_0x324bf4['type']||'removeRootAttribute'==_0x324bf4['type']||'changeRootAttribute'==_0x324bf4['type'])return void this['_handleRootAttributeOperation'](_0x324bf4);'marker'==_0x324bf4['type']&&this['_handleMarkerOperation'](_0x324bf4);}if('marker'!==_0x324bf4['type']){const _0x2a9086=this['_cloneOperation'](_0x324bf4,this['_diffRoots']);_0x2a9086['_execute'](),this['_transformMarkers'](_0x2a9086);}if(_0x3694b1)switch(_0x324bf4['type']){case'insert':this['_handleInsertOperation'](_0x324bf4);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x324bf4);break;case'merge':this['_handleMergeOperation'](_0x324bf4);break;case'split':this['_handleSplitOperation'](_0x324bf4);}}else this['_handleRootOperation'](_0x324bf4,_0x3694b1);}['_cloneOperation'](_0x2abc40,_0x3bd05c){const _0x5276b8=_0x2abc40['clone']();return _0x5276b8['_authorId']=_0x2abc40['_authorId'],this['_fixOperation'](_0x5276b8,_0x3bd05c),_0x5276b8;}['_getBaseVids'](_0x26d701){return _0x26d701['map'](_0xec5950=>{const _0x2d77d4=this['_getVidAttributeName'](_0xec5950);return Number(_0xec5950['item']['getAttribute'](_0x2d77d4));});}['_generateTape'](_0x56c7ed,_0x554e01){if(_0x56c7ed['is']('element','$text'))_0x554e01['push']({'item':_0x56c7ed,'type':'text'});else{_0x56c7ed['is']('element')&&_0x554e01['push']({'item':_0x56c7ed,'type':'elementStart'});for(const _0x21fcc6 of _0x56c7ed['getChildren']())this['_generateTape'](_0x21fcc6,_0x554e01);_0x56c7ed['is']('element')&&_0x554e01['push']({'item':_0x56c7ed,'type':'elementEnd'});}return _0x554e01;}['_getState'](){const _0x40a830=new Map(this['_touched']),_0x52d220=new Map(_0x40a830),_0x47b714=new Map(),_0x420593={'insertions':{},'deletions':{}},_0x17bca5={'insertions':{},'deletions':{}},_0x265454=new Map(),_0x206b61=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x206b61['delete']('$graveyard');for(const _0x1664a4 of _0x206b61){const _0x3aedbd=this['_diffRoots']['get'](_0x1664a4)||F(_0x1664a4,!0x1),_0x21b781=this['_baseRoots']['get'](_0x1664a4)||F(_0x1664a4,!0x1);_0x3aedbd['isAttached']()||_0x21b781['isAttached']()?(_0x420593['insertions'][_0x1664a4]=T(_0x3aedbd),_0x420593['deletions'][_0x1664a4]=T(_0x21b781),this['_copyMarkers'](_0x420593['deletions'][_0x1664a4],_0x21b781),this['_copyMarkers'](_0x420593['insertions'][_0x1664a4],_0x3aedbd),_0x17bca5['insertions'][_0x1664a4]=this['_generateTape'](this['_idsRoots']['get'](_0x1664a4),[]),_0x17bca5['deletions'][_0x1664a4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1664a4)||F(_0x1664a4,!0x1),[])):_0x206b61['delete'](_0x1664a4);}for(const _0x2133fe of _0x206b61){const _0x254381=_0x17bca5['insertions'][_0x2133fe];for(const _0x2c96a4 of _0x254381){const _0xb5f472=this['_getVidAttributeName'](_0x2c96a4),_0x1fd213=_0x2c96a4['item']['getAttribute'](_0xb5f472);_0x52d220['delete'](_0x1fd213),_0x1fd213>=this['_startingRevisionId']&&_0x47b714['set'](_0x1fd213,_0x40a830['get'](_0x1fd213));}}for(const _0x32fed0 of _0x206b61){const _0xd99988=_0x17bca5['insertions'][_0x32fed0],_0x3d34c7=this['_getBaseVids'](_0x17bca5['deletions'][_0x32fed0]);let _0x3ad823=0x0;for(const _0x5482ed of _0xd99988){const _0x3e525f=this['_getVidAttributeName'](_0x5482ed),_0x35e3c9=_0x5482ed['item']['getAttribute'](_0x3e525f);if(!_0x47b714['has'](_0x35e3c9)&&!_0x265454['has'](_0x35e3c9)){if(_0x52d220['has'](_0x35e3c9))_0x3ad823++;else{if(_0x35e3c9!=_0x3d34c7[_0x3ad823]){const _0x5ebc4a=_0x40a830['get'](_0x35e3c9)||_0x40a830['get'](_0x3d34c7[_0x3ad823]);for(;_0x35e3c9!=_0x3d34c7[_0x3ad823];)_0x52d220['has'](_0x3d34c7[_0x3ad823])||(_0x265454['set'](_0x3d34c7[_0x3ad823],_0x5ebc4a),_0x40a830['set'](_0x3d34c7[_0x3ad823],_0x5ebc4a)),_0x3ad823++;}_0x3ad823++;}}}}for(const _0x332c7d of _0x206b61){const _0x3f47a6=_0x17bca5['insertions'][_0x332c7d];for(const _0x511ff9 of _0x3f47a6){const _0x35050c=this['_getVidAttributeName'](_0x511ff9),_0x46d325=_0x511ff9['item']['getAttribute'](_0x35050c);if(_0x265454['has'](_0x46d325)){const _0x183ee2=_0x265454['get'](_0x46d325);_0x52d220['has'](_0x46d325)||_0x52d220['set'](_0x46d325,{..._0x183ee2}),_0x47b714['set'](_0x46d325,{..._0x183ee2});}}}for(const _0x3be8c9 of _0x52d220['keys']())_0x3be8c9>=this['_startingRevisionId']&&_0x52d220['delete'](_0x3be8c9);const _0x2bd479=new Map();for(const _0x4cc859 of _0x206b61){let _0x3f6df1=_0x17bca5['insertions'][_0x4cc859];for(const _0x412d58 of _0x3f6df1)if(_0x412d58['item']['is']('element','tableCell')){const _0x2060e6=this['_getVidAttributeName'](_0x412d58),_0x2e6b33=_0x412d58['item']['getAttribute'](_0x2060e6);if(_0x47b714['has'](_0x2e6b33)){const _0x130990=_0x412d58['item']['parent']['parent']['getAttribute']('vid_start'),_0x2cd060=_0x2bd479['get'](_0x130990)||new Set();_0x2cd060['add'](_0x47b714['get'](_0x2e6b33)['userId']),_0x2bd479['set'](_0x130990,_0x2cd060);}}_0x3f6df1=_0x17bca5['deletions'][_0x4cc859];for(const _0x486e89 of _0x3f6df1)if(_0x486e89['item']['is']('element','tableCell')){const _0x1e81cf=this['_getVidAttributeName'](_0x486e89),_0x1c2b23=_0x486e89['item']['getAttribute'](_0x1e81cf);if(_0x52d220['has'](_0x1c2b23)){const _0x431006=_0x486e89['item']['parent']['parent']['getAttribute']('vid_start'),_0x35d66c=_0x2bd479['get'](_0x431006)||new Set();_0x35d66c['add'](_0x52d220['get'](_0x1c2b23)['userId']),_0x2bd479['set'](_0x431006,_0x35d66c);}}for(const _0x14051d of _0x2bd479['keys']())(_0x47b714['has'](_0x14051d)||_0x52d220['has'](_0x14051d))&&_0x2bd479['delete'](_0x14051d);}for(const _0xd90b9f of _0x206b61){const _0x13e94a=_0x17bca5['insertions'][_0xd90b9f];let _0x1ad6af=null,_0x58cf5a=null;for(const _0x5e50a1 of _0x13e94a){const _0x34a30f=this['_getVidAttributeName'](_0x5e50a1),_0x347707=_0x5e50a1['item']['getAttribute'](_0x34a30f),_0x5ddbd3=_0x2bd479['get'](_0x347707);_0x5ddbd3&&'elementStart'==_0x5e50a1['type']&&(_0x1ad6af=Array['from'](_0x5ddbd3)[0x0],_0x58cf5a=_0x5e50a1['item']['getAttribute']('vid_end')),_0x1ad6af&&(_0x52d220['set'](_0x347707,{'userId':_0x1ad6af}),_0x47b714['set'](_0x347707,{'userId':_0x1ad6af})),_0x347707==_0x58cf5a&&(_0x1ad6af=null,_0x58cf5a=null);}}const _0x20aed8={},_0x17cd42=new Set();for(const _0x1e5408 of _0x206b61){const _0x4793ad=_0x420593['deletions'][_0x1e5408],_0x2ed1b0=_0x420593['insertions'][_0x1e5408];for(const {userId:_0xebd6df}of this['_touchedMarkers']['values']())null!==_0xebd6df&&_0x17cd42['add'](_0xebd6df);for(const {userId:_0x5195fa}of this['_touchedRoots']['values']())null!==_0x5195fa&&_0x17cd42['add'](_0x5195fa);this['_markChanges'](_0x2ed1b0,_0x17bca5['insertions'][_0x1e5408],_0x47b714,'insertion',_0x17cd42),this['_markChanges'](_0x4793ad,_0x17bca5['deletions'][_0x1e5408],_0x52d220,'deletion',_0x17cd42),_0x20aed8[_0x1e5408]={'insertions':this['_prepareViewToSave'](_0x2ed1b0),'deletions':this['_prepareViewToSave'](_0x4793ad),'attachChange':this['_touchedRoots']['get'](_0x1e5408)||null,'attributesBefore':_0x3eb603(this['_baseRootsAttributes']['get'](_0x1e5408))||{},'attributesAfter':_0x3eb603(this['_diffRootsAttributes']['get'](_0x1e5408))};}return{'diffData':_0x20aed8,'authorsIds':Array['from'](_0x17cd42)};}['_processRootBeforeSave'](_0x3fda65){for(const [,_0x107ec3]of _0x3fda65['markers']){const _0x20886d=_0x107ec3['start']['getAncestors']()['filter'](_0x51e260=>'tableCell'==_0x51e260['name']);for(const _0x2d5ed of _0x20886d)0x1==_0x2d5ed['childCount']&&_0x2d5ed['getChild'](0x0)['is']('element','paragraph')&&_0x2d5ed['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xc97a08){this['_processRootBeforeSave'](_0xc97a08);const _0x27958a=this['editor']['data']['toView'](_0xc97a08,{}),_0x4a8495=Array['from'](_0x27958a['getChildren']())['map'](_0x436eb6=>this['_getViewJson'](_0x436eb6));return JSON['stringify'](_0x4a8495);}['_getViewJson'](_0x35e379){if(_0x35e379['is']('$text'))return _0x35e379['data'];{const _0x981d6e=_0x35e379;return{'type':Object['keys'](P)['find'](_0x2fab88=>_0x35e379 instanceof P[_0x2fab88]),'name':_0x981d6e['name'],'attributes':Array['from'](_0x981d6e['getAttributes']()),'children':Array['from'](_0x981d6e['getChildren']())['map'](_0x12a2e2=>this['_getViewJson'](_0x12a2e2))};}}['_markChanges'](_0x5dfe13,_0xbe91ca,_0x2df8b7,_0x4885dc,_0x38e944){let _0x59f83f=null,_0x3cef65=null,_0x5dd95a=0x0;const _0x12726f=this['editor']['model'];for(let _0x3deb23=0x0;_0x3deb23<_0xbe91ca['length'];_0x3deb23++){const _0x371531=this['_getVidAttributeName'](_0xbe91ca[_0x3deb23]),_0x17d042=_0xbe91ca[_0x3deb23]['item']['getAttribute'](_0x371531),_0x27be00=_0x2df8b7['get'](_0x17d042),_0x54c0f4=_0x3deb23==_0xbe91ca['length']-0x1;(!_0x59f83f&&_0x27be00&&(_0x59f83f=_0x27be00,_0x3cef65=_0xbe91ca[_0x3deb23]),_0x59f83f&&(!_0x27be00||_0x27be00['userId']!=_0x59f83f['userId']))&&(_0x1d6432(_0x27be00,B(_0x3cef65,_0x5dfe13,_0x12726f),B(_0xbe91ca[_0x3deb23],_0x5dfe13,_0x12726f)),_0x59f83f=_0x27be00||null,_0x3cef65=_0x27be00?_0xbe91ca[_0x3deb23]:null),_0x59f83f&&_0x54c0f4&&_0x1d6432(_0x27be00,B(_0x3cef65,_0x5dfe13,_0x12726f),J(_0xbe91ca[_0x3deb23],_0x5dfe13,_0x12726f));}function _0x1d6432(_0x4f078c,_0x257f47,_0x544fd6){const _0x550b6b=_0x59f83f['userId'],_0xc9f7c7='revision:'+_0x4885dc+':'+_0x550b6b+':'+_0x5dd95a++,_0x5b85ac=_0x12726f['createRange'](_0x257f47,_0x544fd6);_0x5dfe13['markers']['set'](_0xc9f7c7,_0x5b85ac),null!==_0x550b6b&&_0x38e944['add'](_0x550b6b);}}['_getVidAttributeName'](_0x381818){switch(_0x381818['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x554179,_0x5211cf){_0x554179['baseVersion']=null;for(const _0xc08f42 in _0x554179){const _0x32e1a5=_0x554179[_0xc08f42];if(_0x32e1a5 instanceof gt){const _0x5c831a=_0x5211cf['get'](_0x32e1a5['root']['rootName']);_0x554179[_0xc08f42]=this['_fixPosition'](_0x32e1a5,_0x5c831a);}if(_0x32e1a5 instanceof vt){const _0x5cf801=_0x5211cf['get'](_0x32e1a5['root']['rootName']);_0x554179[_0xc08f42]=this['_fixRange'](_0x32e1a5,_0x5cf801);}'root'===_0xc08f42&&(_0x554179['root']=_0x5211cf['get'](_0x554179['root']['rootName']));}}['_fixRange'](_0x360922,_0x4a5198){return this['editor']['model']['createRange'](this['_fixPosition'](_0x360922['start'],_0x4a5198),this['_fixPosition'](_0x360922['end'],_0x4a5198));}['_fixPosition'](_0x11dc9f,_0x16474b){return this['editor']['model']['createPositionFromPath'](_0x16474b,_0x11dc9f['path'],_0x11dc9f['stickiness']);}['_handleInsertOperation'](_0x338cca){const _0x3b527e=this['_idsRoots']['get'](_0x338cca['position']['root']['rootName']),_0x318bbc=this['_fixPosition'](_0x338cca['position'],_0x3b527e),_0x46dbe9=null===_0x338cca['_authorId']?null:_0x338cca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x31bf81=_0x318bbc['parent'],_0x42818d=this['_revisionId'],_0x36e0af=[];for(const _0x452f4b of _0x338cca['nodes'])if(_0x452f4b['is']('element'))_0x36e0af['push'](this['_makeIdsRoot'](_0x452f4b));else{for(let _0x4aa591=0x0;_0x4aa591<_0x452f4b['offsetSize'];_0x4aa591++)_0x36e0af['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x392dcd=this['_revisionId'];for(let _0x31051c=_0x42818d;_0x31051c<_0x392dcd;_0x31051c++)this['_touched']['set'](_0x31051c,{'userId':_0x46dbe9});_0x31bf81['_insertChild'](_0x318bbc['offset'],_0x36e0af);}['_handleMoveOperation'](_0x22aa82){(_0x22aa82=this['_cloneOperation'](_0x22aa82,this['_idsRoots']))['_execute']();const _0x4277f4=null===_0x22aa82['_authorId']?null:_0x22aa82['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30badc=_0x22aa82['getMovedRangeStart'](),_0x2ee14e=_0x30badc['parent'],_0x28113d=_0x30badc['offset'];!function _0x1f092a(_0x3dac64,_0x2cfa50,_0x5750c2,_0xa96dba){for(let _0x53733a=_0x5750c2;_0x53733a<_0xa96dba;_0x53733a++){const _0x58a922=_0x2cfa50['getChild'](_0x53733a);_0x58a922['is']('element','$text')?_0x3dac64['set'](_0x58a922['getAttribute']('vid'),{'userId':_0x4277f4}):(_0x3dac64['set'](_0x58a922['getAttribute']('vid_start'),{'userId':_0x4277f4}),_0x1f092a(_0x3dac64,_0x58a922,0x0,_0x58a922['childCount']),_0x3dac64['set'](_0x58a922['getAttribute']('vid_end'),{'userId':_0x4277f4}));}}(this['_touched'],_0x2ee14e,_0x28113d,_0x28113d+_0x22aa82['howMany']);}['_handleMergeOperation'](_0x3bd6b2){const _0x167c72=null===(_0x3bd6b2=this['_cloneOperation'](_0x3bd6b2,this['_idsRoots']))['_authorId']?null:_0x3bd6b2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7bea60=_0x3bd6b2['targetPosition']['parent'],_0x906817=_0x3bd6b2['sourcePosition']['parent'],_0x175292=_0x7bea60['getAttribute']('vid_end'),_0x6b6b11=_0x906817['getAttribute']('vid_start');_0x7bea60['_setAttribute']('vid_end',_0x906817['getAttribute']('vid_end')),_0x906817['_setAttribute']('vid_end',_0x175292),this['_touched']['set'](_0x6b6b11,{'userId':_0x167c72}),this['_touched']['set'](_0x175292,{'userId':_0x167c72}),_0x3bd6b2['_execute']();}['_handleSplitOperation'](_0x244605){const _0x57be18=null===(_0x244605=this['_cloneOperation'](_0x244605,this['_idsRoots']))['_authorId']?null:_0x244605['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37b6ac=_0x244605['graveyardPosition'],_0x255d84=_0x244605['splitPosition']['parent'];_0x244605['_execute']();const _0x4cc890=_0x255d84['getAttribute']('vid_end'),_0x39e8e4=_0x244605['insertionPosition']['nodeAfter'];if(_0x37b6ac){const _0x5e82a2=_0x39e8e4['getAttribute']('vid_end'),_0x1dabfa=_0x255d84['getAttribute']('vid_end');_0x255d84['_setAttribute']('vid_end',_0x5e82a2),_0x39e8e4['_setAttribute']('vid_end',_0x1dabfa),this['_touched']['set'](_0x255d84['getAttribute']('vid_end'),{'userId':_0x57be18}),this['_touched']['set'](_0x39e8e4['getAttribute']('vid_start'),{'userId':_0x57be18});}else{const _0x2d10d8=this['_revisionId']++,_0x214be4=this['_revisionId']++;_0x255d84['_setAttribute']('vid_end',_0x2d10d8),_0x39e8e4['_setAttribute']('vid_start',_0x214be4),_0x39e8e4['_setAttribute']('vid_end',_0x4cc890),this['_touched']['set'](_0x2d10d8,{'userId':_0x57be18}),this['_touched']['set'](_0x214be4,{'userId':_0x57be18});}}['_handleMarkerOperation'](_0x222703){if(!_0x222703['affectsData'])return;const _0x30a4c6=(_0x222703=this['_cloneOperation'](_0x222703,this['_diffRoots']))['oldRange']?_0x222703['oldRange']['root']:null,_0x2c36e7=_0x222703['newRange']?_0x222703['newRange']['root']:null;_0x30a4c6&&this['_markers']['delete'](_0x222703['name']),_0x2c36e7&&this['_markers']['set'](_0x222703['name'],_0x222703['newRange']['clone']());const _0x332643=null===_0x222703['_authorId']?null:_0x222703['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24cc8d=_0x222703['name'];if(!this['_touchedMarkers']['has'](_0x24cc8d))return void this['_touchedMarkers']['set'](_0x24cc8d,{'range':_0x222703['oldRange'],'userId':_0x332643});const _0x1e2338=this['_touchedMarkers']['get'](_0x24cc8d),_0x385458=_0x1e2338['range'],_0x45e583=_0x222703['newRange'];null==_0x385458&&null==_0x45e583||_0x385458&&_0x45e583&&_0x385458['isEqual'](_0x45e583)?this['_touchedMarkers']['delete'](_0x222703['name']):_0x1e2338['userId']=_0x332643;}['_handleRootOperation'](_0x165013,_0xb2575d){this['_diffRoots']['has'](_0x165013['rootName'])?this['_diffRoots']['get'](_0x165013['rootName'])['_isAttached']=_0x165013['isAdd']:(this['_diffRoots']['set'](_0x165013['rootName'],F(_0x165013['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x165013['rootName'],{}),_0xb2575d&&this['_idsRoots']['set'](_0x165013['rootName'],F(_0x165013['rootName'],!0x0)));const _0x4f19a5=null===_0x165013['_authorId']?null:_0x165013['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x14cc79=this['_touchedRoots']['get'](_0x165013['rootName']);_0x14cc79&&_0x14cc79['userId']===_0x4f19a5?this['_touchedRoots']['delete'](_0x165013['rootName']):this['_touchedRoots']['set'](_0x165013['rootName'],{'userId':_0x4f19a5,'isAttached':_0x165013['isAdd']});}['_handleRootAttributeOperation'](_0x3da527){const _0x489e65=this['_diffRootsAttributes']['get'](_0x3da527['root']['rootName']);null===_0x3da527['newValue']?delete _0x489e65[_0x3da527['key']]:_0x489e65[_0x3da527['key']]=_0x3da527['newValue'];}}function T(_0x4e3b2c){const _0x17137e=F(_0x4e3b2c['rootName'],_0x4e3b2c['isAttached']());for(const _0x57e7fd of _0x4e3b2c['getChildren']()){const _0x22db54=_0x57e7fd['_clone'](!0x0);_0x17137e['_appendChild'](_0x22db54);}return _0x17137e;}function F(_0x38a73b,_0xa8f99c=!0x0){const _0x2f6d5a=new mt();return _0x2f6d5a['rootName']=_0x38a73b,_0x2f6d5a['_isAttached']=_0xa8f99c,_0x2f6d5a['isAttached']=()=>_0x2f6d5a['_isAttached'],_0x2f6d5a;}function B(_0x2a898f,_0x1a7fc4,_0x13fb9e){const _0xadaa76='elementEnd'==_0x2a898f['type']?_0x13fb9e['createPositionAt'](_0x2a898f['item'],'end'):_0x13fb9e['createPositionBefore'](_0x2a898f['item']);return _0x13fb9e['createPositionFromPath'](_0x1a7fc4,_0xadaa76['path'],_0xadaa76['stickiness']);}function J(_0x2e4e78,_0x2c6460,_0x52ec9b){const _0x161737='elementStart'==_0x2e4e78['type']?_0x52ec9b['createPositionAt'](_0x2e4e78['item'],0x0):_0x52ec9b['createPositionAfter'](_0x2e4e78['item']);return _0x52ec9b['createPositionFromPath'](_0x2c6460,_0x161737['path'],_0x161737['stickiness']);}class ns extends _0x57d690{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x484d44,_0x4e2837){super(_0x484d44),this['focusTracker']=new _0xaee184(),this['keystrokes']=new _0x142a9d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x4e2837),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x267d55({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1319ba=_0x39efa3=>_0x39efa3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1319ba),this['keystrokes']['set']('arrowleft',_0x1319ba),this['keystrokes']['set']('arrowup',_0x1319ba),this['keystrokes']['set']('arrowdown',_0x1319ba);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x53fb6e){this['revisionNameInputView']['fieldView']['element']['value']=_0x53fb6e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2bc68c){const _0x2a548d=new nt(this['locale'],_0x242d1c),_0x1414e5=_0x2a548d['fieldView'];_0x1414e5['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x39ca38=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2bc68c&&(_0x39ca38+='\x20('+m(this['locale'],'optional')+')'),(_0x2a548d['label']=_0x39ca38,_0x1414e5['on']('input',()=>{this['revisionNameInputValue']=_0x1414e5['element']['value']['trim']();}),_0x2a548d);}}class u extends _0x1c983f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x50d9d7=this['editor'],_0x15e7b3=_0x50d9d7['plugins']['get']('RevisionTracker');_0x50d9d7['ui']['componentFactory']['add']('revisionHistory',_0x496187=>{const _0x41bf78=_0x23cafe(_0x496187),_0x204491=_0x41bf78['panelView']['children'],_0x2b77c2=new te(_0x496187),_0x2292c0=new _0xa50924(_0x496187),_0x493e15=new _0x5c3b92(_0x496187),_0x3177af=new _0xa50924(_0x496187),_0x2f0894=new _0x5c3b92(_0x496187);return _0x41bf78['bind']('isEnabled')['to'](_0x15e7b3,'isReady',_0x15e7b3,'isEnabled',_0x50d9d7,'isReadOnly',(_0x5f5360,_0x35cd1a,_0x41e963)=>_0x5f5360&&_0x35cd1a&&!_0x41e963),_0x41bf78['buttonView']['set']({'icon':_0x5d34ae['history'],'label':m(_0x496187,'Revision\x20history'),'tooltip':!0x0}),_0x493e15['set']({'label':m(_0x496187,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x493e15['bind']('isEnabled')['to'](_0x15e7b3,'isReady',_0x15e7b3,'isEnabled',_0x50d9d7,'isReadOnly',(_0x5e84f8,_0x28ef36,_0x351a6f)=>_0x5e84f8&&_0x28ef36&&!_0x351a6f),_0x493e15['on']('execute',()=>this['_showDialog']()),_0x2f0894['set']({'label':m(_0x496187,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2f0894['bind']('isEnabled')['to'](_0x15e7b3,'isReady',_0x50d9d7,'isReadOnly',(_0xcefad1,_0x682a3b)=>_0xcefad1&&!_0x682a3b),_0x2f0894['on']('execute',()=>{_0x50d9d7['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x41bf78['isOpen']=!0x1,_0x50d9d7['editing']['view']['focus']();}),_0x2292c0['children']['add'](_0x493e15),_0x3177af['children']['add'](_0x2f0894),_0x2b77c2['role']='menu',_0x2b77c2['items']['addMany']([_0x2292c0,_0x3177af]),_0x204491['add'](_0x2b77c2),_0x41bf78;}),_0x50d9d7['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x36f733=this['editor'],_0x4b53df=_0x36f733['locale'],_0x4c6b01=new _0x3c32f3(_0x4b53df),_0x10f99f=new _0x1d1da8(_0x4b53df);_0x4c6b01['buttonView']['set']({'icon':_0x5d34ae['history'],'label':m(_0x4b53df,'Revision\x20history')});const _0x48fd12=new _0x4840b2(_0x4b53df,_0x4c6b01),_0x13e7e7=new _0x235ae5(_0x4b53df);_0x13e7e7['set']({'label':m(_0x4b53df,'Save\x20current\x20revision')}),_0x13e7e7['delegate']('execute')['to'](_0x4c6b01),_0x13e7e7['on']('execute',()=>{this['_showDialog']();}),_0x48fd12['children']['add'](_0x13e7e7),_0x10f99f['items']['add'](_0x48fd12);const _0x372cba=new _0x4840b2(_0x4b53df,_0x4c6b01),_0x49413b=new _0x235ae5(_0x4b53df);return _0x49413b['set']({'label':m(_0x4b53df,'Open\x20revision\x20history')}),_0x49413b['delegate']('execute')['to'](_0x4c6b01),_0x49413b['on']('execute',()=>{_0x36f733['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x372cba['children']['add'](_0x49413b),_0x10f99f['items']['add'](_0x372cba),_0x4c6b01['panelView']['children']['add'](_0x10f99f),_0x4c6b01;}['_showDialog'](){const _0x8a53f0=this['editor'],_0x288c9e=_0x8a53f0['locale'],_0xae7679=_0x8a53f0['plugins']['get']('Dialog'),_0x2ffb00=_0x8a53f0['plugins']['get']('RevisionTracker');function _0x943e88(_0x11398a){_0x8a53f0['config']['get']('revisionHistory.requireRevisionName')&&''===_0x11398a['revisionName']?_0x11398a['revisionNameInputView']['errorText']=m(_0x288c9e,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x8a53f0['plugins']['get'](l)['saveRevision']({'name':_0x11398a['revisionName']}),_0xae7679['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x943e88(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xae7679['show']({'id':'revisionSave','title':m(_0x288c9e,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x8a53f0['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xae7679['hide']()},{'label':m(_0x8a53f0['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1c0520){_0x1c0520['bind']('isEnabled')['to'](_0x2ffb00,'isReady',_0x2ffb00,'isEnabled',_0x8a53f0,'isReadOnly',(_0x18e31b,_0x330d68,_0x2b3e3d)=>_0x18e31b&&_0x330d68&&!_0x2b3e3d);},'onExecute':()=>_0x943e88(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4a8cc6=this['editor'],_0x1ac26e=_0x4a8cc6['locale'];this['_saveRevisionFormView']=new ns(_0x1ac26e,_0x4a8cc6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x57d690{['changeId'];['_model'];constructor(_0x158331,_0x19dfd7){super(_0x158331),this['_model']=_0x19dfd7,this['changeId']=_0x19dfd7['id'];const _0xcdb98a=this['bindTemplate'],_0x3f9b4d=m(_0x158331,_0x19dfd7['data']['isSuggestion']?'Suggested\x20by':'add'==_0x19dfd7['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x19dfd7['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0xcdb98a['to']('type',_0x3979da=>'ck-revision-change__'+_0x3979da)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3f9b4d}]},{'text':'\x20'+_0x19dfd7['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x59dc1c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5c8b2e){super(),this['id']=_0x5c8b2e['id']||_0x731d10(),this['author']=_0x5c8b2e['author'],this['type']=_0x5c8b2e['type'],this['data']=_0x5c8b2e['data']||{},this['rootName']=_0x5c8b2e['rootName'],this['set']('createdAt',_0x5c8b2e['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3110c0,_0x560519){this['newRevisionId']=_0x3110c0,this['oldRevisionId']=_0x560519,this['changes']=new _0x28b682();}['_setChanges'](_0x58f718){for(const _0x61e007 of _0x58f718)this['changes']['add'](_0x61e007);}}const Y={'c':_0x154874,'a':_0x59b955,'e':_0x86ac4d,'r':_0x3e22f5,'u':_0x264338};class d extends _0x1c983f{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5ebf97,_0x2f6501,j];}constructor(_0x4a2824){super(_0x4a2824),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4f91f7,_0x2a2155,_0x5697a0)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4bea40=>{for(const _0x5d33bd of this['editor']['editing']['view']['document']['roots'])_0x5697a0?_0x4bea40['removeClass']('ck-editor__editable__overlay',_0x5d33bd):_0x4bea40['addClass']('ck-editor__editable__overlay',_0x5d33bd);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x504c29=>null!==_0x504c29),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3a55b2,_0x55f6d2,_0x2943bc)=>_0x3a55b2&&_0x2943bc?_0x55f6d2['changes']['getIndex'](_0x2943bc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5e492b,_0x84c5ce)=>_0x5e492b?_0x84c5ce['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x2f6501);}['init'](){const _0x97e4ff=this['editor'],_0x408aa6=new yt(_0x97e4ff,{'direction':'backward'}),_0x46804f=new yt(_0x97e4ff,{'direction':'forward'});(_0x97e4ff['commands']['add']('showPreviousChange',_0x408aa6),_0x97e4ff['commands']['add']('showNextChange',_0x46804f),_0x97e4ff['commands']['add']('restoreRevision',new _t(_0x97e4ff)),this['on']('change:numberOfChanges',()=>{_0x408aa6['refresh'](),_0x46804f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x97e4ff['enableReadOnlyMode']('revision-viewer'),_0x97e4ff['plugins']['has']('WidgetToolbarRepository'))&&_0x97e4ff['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x28b216){await this['loadRevisionData'](_0x28b216);const _0x962636={};for(const _0x2fabf1 in _0x28b216['diffData']){if(_0x28b216['diffData'][_0x2fabf1]['attachChange']&&!_0x28b216['diffData'][_0x2fabf1]['attachChange']['isAttached'])continue;const _0x2a8bff=this['_removeRevisionMarkers'](JSON['parse'](_0x28b216['diffData'][_0x2fabf1]['insertions'])),_0x55e514=this['editor']['editing']['view']['document'],_0x50eceb=new _0x352937(_0x55e514,_0x2a8bff['map'](_0x216b38=>this['_getViewObj'](_0x216b38)));this['editor']['data']['processor']['useFillerType']('marked'),_0x962636[_0x2fabf1]=this['editor']['data']['processor']['toData'](_0x50eceb),this['editor']['data']['processor']['useFillerType']('default');}return _0x962636;}async['getRevisionRootsAttributes'](_0x3c40a9){await this['loadRevisionData'](_0x3c40a9);const _0xbc1d1a={};for(const _0x4c0f8a in _0x3c40a9['diffData'])_0x3c40a9['diffData'][_0x4c0f8a]['attachChange']&&!_0x3c40a9['diffData'][_0x4c0f8a]['attachChange']['isAttached']||(_0xbc1d1a[_0x4c0f8a]=_0x3c40a9['diffData'][_0x4c0f8a]['attributesAfter']||{});return _0xbc1d1a;}['_removeRevisionMarkers'](_0x4b2dd6){return(_0x4b2dd6=_0x4b2dd6['filter'](_0x4b4173=>!_0x4b4173['name']||'revision-start'!==_0x4b4173['name']&&'revision-end'!==_0x4b4173['name']))['forEach'](_0xb022ca=>{'string'!=typeof _0xb022ca&&(_0xb022ca['children']=this['_removeRevisionMarkers'](_0xb022ca['children']),_0xb022ca['attributes']=_0xb022ca['attributes']['filter'](_0x14d31f=>!_0x14d31f[0x0]['startsWith']('data-revision-')));}),_0x4b2dd6;}async['compare'](_0x428222,_0x3dc1d5,_0x4f86cb=!0x1){if(!this['isEnabled'])return;const _0x3dccac=this['diff'],_0x14ed4f=this['repository'],_0x508329='string'==typeof _0x428222?_0x14ed4f['getRevision'](_0x428222):_0x428222,_0x4c0929='string'==typeof _0x3dc1d5?_0x14ed4f['getRevision'](_0x3dc1d5):_0x3dc1d5,_0x2fdacf=_0x508329['id'],_0x4b9b38=_0x4c0929?_0x4c0929['id']:null;if(!_0x4f86cb&&this['diff']&&this['diff']['newRevisionId']===_0x2fdacf&&this['diff']['oldRevisionId']===_0x4b9b38)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2fdacf,_0x4b9b38);const _0x335e8c=this['_getRevisionsRange'](_0x508329,_0x4c0929,!0x0)['map'](_0x5efc4e=>this['loadRevisionData'](_0x5efc4e));return _0x335e8c['push'](new Promise(_0x4e1488=>{setTimeout(_0x4e1488,0x14);})),Promise['all'](_0x335e8c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1f0477=this['_getDiff'](_0x2fdacf,_0x4b9b38);for(const _0x3b7994 of _0x1f0477['changes'])this['_changeIdToChange']['set'](_0x3b7994['id'],_0x3b7994);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3be522=>{for(const _0xf26ab1 of this['editor']['model']['document']['getRootNames']())_0x3be522['detachRoot'](_0xf26ab1);for(const _0x415786 of Object['keys'](_0x1f0477['model'])){const _0x11c725=_0x3be522['addRoot'](_0x415786);for(const _0x326250 of Object['keys'](_0x1f0477['attributes'][_0x415786]))_0x3be522['setAttribute'](_0x326250,_0x1f0477['attributes'][_0x415786][_0x326250],_0x11c725);_0x3be522['insert'](_0x1f0477['model'][_0x415786],_0x11c725,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1f0477['changes'])),this['isReady']=!0x0;})['catch'](_0x4876ff=>{console['error'](_0x4876ff),this['_cleanUp'](),_0x3dccac&&(this['diff']=_0x3dccac),this['isReady']=!0x0;});}['addRevisionData'](_0x2cac98,_0x2776e5){const _0x1a61ee=this['repository']['createRevision'](_0x2cac98);return _0x1a61ee['on']('_update',(_0xce969e,_0x125620,_0x3bf705)=>_0x2776e5(_0x125620,_0x3bf705,_0x1a61ee)),this['repository']['addRevision'](_0x1a61ee),_0x1a61ee;}['loadRevisionData'](_0x2a0770){if(!_0x2a0770||_0x2a0770['diffData'])return Promise['resolve']();{const _0x345157=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x345157,'revisionId':_0x2a0770['id']})['then'](_0x12a629=>{_0x2a0770['_update']({'diffData':_0x12a629['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x15a27d=>{for(const _0x5a21a5 of this['editor']['model']['document']['getRootNames']())_0x15a27d['detachRoot'](_0x5a21a5);});}['_sortAndFilterDiffChanges'](_0x224fcd){const _0x3c5d6d=[],_0x1668b6=new Map();for(const _0x522e84 of this['editor']['model']['document']['getRootNames']()){const _0x25bf3a=this['editor']['editing']['view']['getDomRoot'](_0x522e84);if(!_0x25bf3a)continue;const _0xeca085=_0x25bf3a['getClientRects']()['item'](0x0);_0xeca085&&(_0x3c5d6d['push'](_0x522e84),_0x1668b6['set'](_0x522e84,_0xeca085));}return _0x3c5d6d['sort']((_0x30a4f2,_0x472873)=>{const _0xa73b2b=_0x1668b6['get'](_0x30a4f2),_0x1924c1=_0x1668b6['get'](_0x472873);return _0xa73b2b['y']-_0x1924c1['y']||_0xa73b2b['x']-_0x1924c1['x'];}),(_0x224fcd=_0x224fcd['filter'](_0x56e2f0=>_0x3c5d6d['includes'](_0x56e2f0['rootName'])))['sort']((_0xaa83d5,_0x1e6c9e)=>_0x3c5d6d['indexOf'](_0xaa83d5['rootName'])-_0x3c5d6d['indexOf'](_0x1e6c9e['rootName'])),_0x224fcd;}['_makeTape'](_0x3db9c3){const _0x4065a4=Array['from'](_0x3db9c3['markers'])['filter'](([_0x500ea6,_0x35ccf9])=>_0x500ea6['startsWith']('revision:')&&!_0x35ccf9['isCollapsed']),_0x333ac8=Array['from'](this['editor']['model']['createRangeIn'](_0x3db9c3)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4065a4['length'])for(const _0x135bc0 of _0x333ac8){const [_0x4477de,_0x199dca]=_0x4065a4[0x0],[,_0x34d2d9,_0x2ed60d]=_0x4477de['split'](':');if(_0x199dca['end']['isEqual'](_0x135bc0['nextPosition'])&&_0x4065a4['shift'](),(_0x135bc0['previousPosition']['isEqual'](_0x199dca['start'])||_0x135bc0['previousPosition']['isAfter'](_0x199dca['start']))&&('insertion'==_0x34d2d9?_0x135bc0['isAdded']={'userId':_0x2ed60d}:'deletion'==_0x34d2d9&&(_0x135bc0['isRemoved']={'userId':_0x2ed60d})),0x0==_0x4065a4['length'])break;}return _0x333ac8;}['_refreshStartEndIndex'](_0x2a838b){const _0x560d2a=new Map();for(let _0x34e78a=0x0;_0x34e78a<_0x2a838b['length'];_0x34e78a++)'text'===_0x2a838b[_0x34e78a]['type']?(_0x2a838b[_0x34e78a]['item']['startIndex']=_0x34e78a,_0x2a838b[_0x34e78a]['item']['endIndex']=_0x34e78a):('elementStart'===_0x2a838b[_0x34e78a]['type']?_0x2a838b[_0x34e78a]['item']['startIndex']=_0x34e78a:'elementEnd'===_0x2a838b[_0x34e78a]['type']&&(_0x2a838b[_0x34e78a]['item']['endIndex']=_0x34e78a),_0x560d2a['set'](_0x2a838b[_0x34e78a]['id'],_0x34e78a));for(const _0x258b4b of _0x560d2a['values']())'elementStart'===_0x2a838b[_0x258b4b]['type']?_0x2a838b[_0x258b4b]['item']['endIndex']=_0x560d2a['get'](_0x2a838b[_0x258b4b]['pairId']):'elementEnd'===_0x2a838b[_0x258b4b]['type']&&(_0x2a838b[_0x258b4b]['item']['startIndex']=_0x560d2a['get'](_0x2a838b[_0x258b4b]['pairId']));}['_processTape'](_0x52f592){for(let _0xf420d8=0x0;_0xf420d8<_0x52f592['length'];_0xf420d8++){if('elementStart'===_0x52f592[_0xf420d8]['type'])_0x52f592[_0xf420d8]['item']['startIndex']=_0xf420d8;else{if('elementEnd'===_0x52f592[_0xf420d8]['type']){_0x52f592[_0xf420d8]['item']['endIndex']=_0xf420d8;const _0x357d1e=_0x52f592[_0xf420d8]['item']['startIndex'];_0x52f592[_0x357d1e]['pairId']=_0x52f592[_0xf420d8]['id'],_0x52f592[_0xf420d8]['pairId']=_0x52f592[_0x357d1e]['id'];}else _0x52f592[_0xf420d8]['item']['startIndex']=_0xf420d8,_0x52f592[_0xf420d8]['item']['endIndex']=_0xf420d8,_0x52f592[_0xf420d8]['pairId']=null;}_0x52f592[_0xf420d8]['markersStart']||(_0x52f592[_0xf420d8]['markersStart']=[],_0x52f592[_0xf420d8]['markersEnd']=[]);}}['_markInsertions'](_0x58b874,_0x2c99e6){const _0x2aac40=_0x58b874['filter'](_0x2b5225=>!_0x2b5225['isAdded']);for(let _0x514ff5=0x0;_0x514ff5<_0x2c99e6['length'];_0x514ff5++)_0x2c99e6[_0x514ff5]['isAdded']&&(_0x2aac40[_0x514ff5]['isAdded']=_0x2c99e6[_0x514ff5]['isAdded']);}['_makeModelFromViewString'](_0x165afb){const _0x54284a=JSON['parse'](_0x165afb),_0x527049=this['editor']['editing']['view']['document'],_0x4cd6bc=new _0x352937(_0x527049,_0x54284a['map'](_0x5209f8=>this['_getViewObj'](_0x5209f8)));return this['editor']['data']['toModel'](_0x4cd6bc);}['_getViewObj'](_0x7a5204){const _0x1b11ed=this['editor']['editing']['view']['document'];if('string'==typeof _0x7a5204)return new _0x1ade11(_0x1b11ed,_0x7a5204);{const _0x5de310=_0x7a5204['children']['map'](_0x7f34db=>this['_getViewObj'](_0x7f34db));return new(Y[_0x7a5204['type']]||_0x29faa1)(_0x1b11ed,_0x7a5204['name'],_0x7a5204['attributes'],_0x5de310);}}['_getDiff'](_0x363059,_0x1f5b78=null){const _0x2e9e62=this['repository']['getRevision'](_0x363059),_0x5dc53c=_0x1f5b78?this['repository']['getRevision'](_0x1f5b78):null,_0x340852=this['_getRevisionsRange'](_0x2e9e62,_0x5dc53c),_0x19523f=_0x340852[_0x340852['length']-0x1],_0x3a4522=new Map(),_0xd9c52c={'model':{},'attributes':{},'changes':[]},_0x44324e=new Set(),_0x390a68=new Map();for(let _0x4f2f2c=_0x340852['length']-0x1;_0x4f2f2c>=0x0;_0x4f2f2c--){const _0x2e5488=_0x340852[_0x4f2f2c];for(const _0x4d1488 of Object['keys'](_0x2e5488['diffData']))if(_0x2e5488['diffData'][_0x4d1488]['attachChange']){const _0xf129b0=_0x2e5488['diffData'][_0x4d1488]['attachChange'];_0xf129b0['isAttached']?(_0x44324e['add'](_0x4d1488),_0x390a68['has'](_0x4d1488)&&_0x390a68['get'](_0x4d1488)['userId']==_0xf129b0['userId']?_0x390a68['delete'](_0x4d1488):_0x390a68['set'](_0x4d1488,_0xf129b0)):_0x390a68['has'](_0x4d1488)?(_0x44324e['delete'](_0x4d1488),_0x390a68['delete'](_0x4d1488)):(_0x44324e['add'](_0x4d1488),_0x390a68['set'](_0x4d1488,_0xf129b0));}else _0x44324e['add'](_0x4d1488);}for(const _0x5aa228 of _0x44324e){const _0x19f3c8=_0x390a68['has'](_0x5aa228)&&!_0x390a68['get'](_0x5aa228)['isAttached'];let _0x45c4d9=_0x19f3c8?_0x340852['length']-0x1:0x0;const _0x1395b4=_0x19f3c8?-0x1:0x1;for(;_0x340852[_0x45c4d9];){const _0x4a3219=_0x340852[_0x45c4d9];if(_0x4a3219['diffData'][_0x5aa228]){const _0x3ccdd7=_0x19f3c8?_0x4a3219['diffData'][_0x5aa228]['attributesBefore']:_0x4a3219['diffData'][_0x5aa228]['attributesAfter'];_0xd9c52c['attributes'][_0x5aa228]=_0x3ccdd7?_0x3eb603(_0x3ccdd7):{};break;}_0x45c4d9+=_0x1395b4;}}for(const _0x2db246 of _0x340852){_0x2db246['model']={};for(const _0x151dd0 of _0x2db246['authors'])_0x3a4522['set'](_0x151dd0['id'],_0x151dd0);for(const _0x19551c of _0x44324e){const _0x5f09b8=_0x2db246['diffData'][_0x19551c]?_0x2db246['diffData'][_0x19551c]['insertions']:'[]',_0x41e61c=_0x2db246['diffData'][_0x19551c]?_0x2db246['diffData'][_0x19551c]['deletions']:'[]';_0x2db246['model'][_0x19551c]={'insertions':this['_makeModelFromViewString'](_0x5f09b8),'deletions':this['_makeModelFromViewString'](_0x41e61c)};}}for(const _0xf42045 of _0x44324e){let _0x49d78b=null,_0x6c8f37=0x0;const _0x536a20=new Map(Array['from'](_0x2e9e62['model'][_0xf42045]['insertions']['markers'])['filter'](([_0x279e3c])=>!_0x279e3c['startsWith']('revision:')));let _0x3bb81d=0x0;for(const _0x2b1646 of _0x340852){const _0x4a8f8b=this['_makeTape'](_0x2b1646['model'][_0xf42045]['insertions']);_0x2b1646==_0x2e9e62?(_0x49d78b=_0x4a8f8b,_0x6c8f37=_0x49d78b['length'],_0x49d78b['forEach'](_0x45dd69=>{_0x45dd69['id']=_0x3bb81d++;}),this['_processTape'](_0x49d78b)):this['_markInsertions'](_0x49d78b,_0x4a8f8b);const _0x2f61d6=_0x49d78b['filter'](_0x4433e0=>!_0x4433e0['isAdded'])['map'](_0x47afc7=>_0x47afc7['id']);let _0x2e6270=0x0;const _0x33bc00=this['_makeTape'](_0x2b1646['model'][_0xf42045]['deletions']);_0x33bc00['forEach'](_0x1439d1=>{_0x1439d1['isRemoved']?_0x1439d1['id']=_0x6c8f37++:_0x1439d1['id']=_0x2f61d6[_0x2e6270++];}),this['_processTape'](_0x33bc00),this['_setDistance'](_0x49d78b,'isAdded'),this['_setDistance'](_0x33bc00,'isRemoved'),_0x2b1646==_0x2e9e62&&this['_markMarkers'](_0x49d78b,_0x536a20),_0x49d78b=this['_joinTapes'](_0x49d78b,_0x33bc00),this['_refreshStartEndIndex'](_0x49d78b),this['_setDistance'](_0x49d78b,'isRemoved');}_0x49d78b=_0x49d78b['filter'](_0x481851=>!(_0x481851['isAdded']&&_0x481851['isRemoved']));const _0x2169fb=new Map(_0x19523f['model'][_0xf42045]['deletions']['markers']),_0x12774b=new Set(_0x536a20['keys']());for(const _0x2dcd21 of _0x2169fb['keys']())_0x12774b['delete'](_0x2dcd21);this['_markSuggestions'](_0x49d78b,_0x12774b),this['_fixObsoleteTags'](_0x49d78b),_0x49d78b=this['_removeMissingPairs'](_0x49d78b),_0x49d78b=this['_markMismatchedRemovedTags'](_0x49d78b),_0x49d78b=this['_removeUnsupportedChanges'](_0x49d78b);const {root:_0x31204a,changes:_0x64d19f}=this['_makeModelFromTape'](_0x49d78b,_0x3a4522,_0xf42045);_0xd9c52c['model'][_0xf42045]=_0x31204a;const _0x5e83be=_0x390a68['get'](_0xf42045);if(_0x5e83be){const _0xbdaa8c=_0x3a4522['get'](_0x5e83be['userId']),_0x4476d1=new r({'author':_0xbdaa8c,'type':_0x5e83be['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xf42045});_0x64d19f['unshift'](_0x4476d1),_0xd9c52c['attributes'][_0xf42045]['revisionHistoryAttachChange']=_0x4476d1['id'];}_0xd9c52c['changes']=_0xd9c52c['changes']['concat'](_0x64d19f);}return _0xd9c52c;}['_markMarkers'](_0x7d6805,_0x5f8be0){for(let _0x5c5fa1=0x0;_0x5c5fa1<_0x7d6805['length'];_0x5c5fa1++)for(const [_0x40c9ff,_0x240642]of _0x5f8be0)_0x240642['start']['isEqual'](_0x7d6805[_0x5c5fa1]['previousPosition'])&&_0x7d6805[_0x5c5fa1]['markersStart']['push'](_0x40c9ff),_0x240642['end']['isEqual'](_0x7d6805[_0x5c5fa1]['nextPosition'])&&_0x7d6805[_0x5c5fa1]['markersEnd']['push'](_0x40c9ff);}['_joinTapes'](_0x4c6508,_0x750024){let _0x3ab472=[],_0x566181=0x0,_0x3b50c4=0x0;for(;_0x566181<_0x4c6508['length']||_0x3b50c4<_0x750024['length'];){const _0x398915=_0x4c6508[_0x566181]||{},_0x654ac8=_0x750024[_0x3b50c4]||{};if(_0x398915['id']==_0x654ac8['id'])_0x566181++,_0x3b50c4++,_0x3ab472['push'](_0x398915);else{if(_0x654ac8['isRemoved']&&_0x398915['isAdded']){const {commonTape:_0x1cb2b4,iEnd:_0x7ffbb3,jEnd:_0x2223ce}=this['_threeWayMerge'](_0x4c6508,_0x566181,_0x750024,_0x3b50c4);_0x3ab472=_0x3ab472['concat'](_0x1cb2b4),_0x566181=_0x7ffbb3,_0x3b50c4=_0x2223ce;}else _0x654ac8['isRemoved']?(_0x3b50c4++,_0x3ab472['push'](_0x654ac8)):(_0x566181++,_0x3ab472['push'](_0x398915));}}return _0x3ab472;}['_markSuggestions'](_0x51faed,_0x5eacda){const _0x3808dd=[];for(let _0x54d276=0x0;_0x54d276<_0x51faed['length'];_0x54d276++){for(let _0x31cd8d=0x0;_0x31cd8d<_0x51faed[_0x54d276]['markersStart']['length'];_0x31cd8d++){const _0x455548=_0x51faed[_0x54d276]['markersStart'][_0x31cd8d];if(!_0x5eacda['has'](_0x455548))continue;const {group:_0x4c8fd5,type:_0x3869a1,authorId:_0x5cc689}=_0x3f6c10(_0x455548);'revision-suggestion'!=_0x4c8fd5||'insertion'!=_0x3869a1&&'deletion'!=_0x3869a1||(_0x3808dd['unshift']({'type':_0x3869a1,'name':_0x455548,'userId':_0x5cc689}),_0x51faed[_0x54d276]['markersStart']['splice'](_0x31cd8d,0x1),_0x31cd8d--);}_0x736a53(_0x51faed[_0x54d276]);for(let _0x1eb751=0x0;_0x1eb751<_0x51faed[_0x54d276]['markersEnd']['length'];_0x1eb751++){const _0x2c5ec3=_0x51faed[_0x54d276]['markersEnd'][_0x1eb751];if(!_0x5eacda['has'](_0x2c5ec3))continue;const {group:_0x5bdd24,type:_0x5812da}=_0x3f6c10(_0x2c5ec3);if('revision-suggestion'!=_0x5bdd24||'insertion'!=_0x5812da&&'deletion'!=_0x5812da)continue;_0x51faed[_0x54d276]['markersEnd']['splice'](_0x1eb751,0x1),_0x1eb751--;const _0x50012a=_0x3808dd['findIndex'](_0x54f2e8=>_0x54f2e8['name']==_0x2c5ec3);_0x50012a>-0x1&&_0x3808dd['splice'](_0x50012a,0x1);}}function _0x3f6c10(_0x20c340){const _0x2d434e=_0x20c340['split'](':');return{'group':_0x2d434e[0x0],'type':_0x2d434e[0x1],'subType':_0x2d434e['length']>=0x5?_0x2d434e[0x2]:null,'id':_0x2d434e['length']<0x5?_0x2d434e[0x2]:_0x2d434e[0x3],'authorId':_0x2d434e['length']<0x5?_0x2d434e[0x3]:_0x2d434e[0x4],'markerCount':0x6==_0x2d434e['length']?_0x2d434e[0x5]:null};}function _0x736a53(_0xe1612e){for(let _0x1c48c2=0x0;_0x1c48c2<_0x3808dd['length'];_0x1c48c2++){if(_0xe1612e['isAdded']&&'insertion'==_0x3808dd[_0x1c48c2]['type'])return _0xe1612e['isAddSuggestion']=_0x3808dd[_0x1c48c2],void delete _0xe1612e['isAdded'];if(!_0xe1612e['isAdded']&&!_0xe1612e['isRemoved']&&'deletion'==_0x3808dd[_0x1c48c2]['type'])return void(_0xe1612e['isRemoveSuggestion']=_0x3808dd[_0x1c48c2]);}}}['_setDistance'](_0x5aeab6,_0x11c64f){let _0x4b8735=0x0,_0x3d98fa=!0x1;const _0x180d3f=new Map();for(const _0x3c94bf of _0x5aeab6)_0x3c94bf[_0x11c64f]?_0x3d98fa&&(_0x4b8735++,_0x3d98fa=!0x1):(_0x4b8735++,_0x3d98fa=!0x0),_0x180d3f['set'](_0x3c94bf['id'],_0x4b8735);for(let _0x2fc61d=0x0;_0x2fc61d<_0x5aeab6['length'];_0x2fc61d++){if('isRemoved'==_0x11c64f&&_0x5aeab6[_0x2fc61d]['isAdded']||'isAdded'==_0x11c64f&&_0x5aeab6[_0x2fc61d]['isRemoved'])continue;if('text'==_0x5aeab6[_0x2fc61d]['type']){_0x5aeab6[_0x2fc61d]['distance']=0x0;continue;}const _0x25f547=_0x180d3f['get'](_0x5aeab6[_0x2fc61d]['pairId']),_0x1edb2a=_0x180d3f['get'](_0x5aeab6[_0x2fc61d]['id']);_0x5aeab6[_0x2fc61d]['distance']=_0x25f547-_0x1edb2a;}}['_getRevisionsRange'](_0xd9d287,_0x1f5c06,_0x1000d7=!0x1){const _0x12f81e=[];let _0x1cfb9d=this['repository']['getIndex'](_0xd9d287),_0x343b61=this['repository']['getIndex'](_0x1f5c06);for(-0x1==_0x343b61&&(_0x343b61=this['repository']['_revisions']['length'],_0x1000d7=!0x1);_0x1cfb9d<_0x343b61;)_0x12f81e['push'](this['repository']['getRevision'](_0x1cfb9d)),_0x1cfb9d++;return _0x1000d7&&_0x12f81e['push'](this['repository']['getRevision'](_0x1cfb9d)),_0x12f81e;}['_threeWayMerge'](_0x336bf4,_0x3471ea,_0x295993,_0x475c79){const _0x1e8dd7=this['editor']['model']['schema'];let _0x5eef2b=_0x3471ea;for(;_0x336bf4[_0x5eef2b]&&_0x336bf4[_0x5eef2b]['isAdded'];)_0x5eef2b++;let _0x12b809=_0x475c79;for(;_0x295993[_0x12b809]&&_0x295993[_0x12b809]['isRemoved'];)_0x12b809++;_0x1f1aea(_0x336bf4,_0x3471ea,_0x5eef2b),_0x1f1aea(_0x295993,_0x475c79,_0x12b809);const _0x32d183=_0x295993['slice'](_0x475c79,_0x12b809)['concat'](_0x336bf4['slice'](_0x3471ea,_0x5eef2b));return _0x32d183['sort']((_0xd36540,_0x47ba6e)=>_0xd36540['side']!=_0x47ba6e['side']?_0xd36540['side']-_0x47ba6e['side']:_0xd36540['level']!=_0x47ba6e['level']?_0xd36540['level']-_0x47ba6e['level']:_0xd36540['distance']!=_0x47ba6e['distance']?_0x47ba6e['distance']-_0xd36540['distance']:!!_0xd36540['isAdded']!=!!_0x47ba6e['isAdded']?-0x1==_0xd36540['side']||0x0==_0xd36540['side']?_0xd36540['isAdded']?-0x1:0x1:_0xd36540['isAdded']?0x1:-0x1:_0xd36540['index']-_0x47ba6e['index']),{'commonTape':_0x32d183,'iEnd':_0x5eef2b,'jEnd':_0x12b809};function _0x1f1aea(_0x2ea9c1,_0x521e0b,_0x31f456){let _0x1fb97e=-0x1,_0x1f24d7=Number['POSITIVE_INFINITY'],_0x521809=!0x0;for(let _0x116806=_0x521e0b;_0x116806<_0x31f456;_0x116806++)if(_0x1e8dd7['isInline'](_0x2ea9c1[_0x116806]['item'])||(_0x521809=!0x1),_0x2ea9c1[_0x116806]['item']['startIndex']<_0x521e0b&&(_0x1fb97e=_0x116806),_0x2ea9c1[_0x116806]['item']['endIndex']>=_0x31f456){_0x1f24d7=_0x116806;break;}_0x521809&&(_0x1fb97e=_0x31f456-0x1);for(let _0x120065=_0x521e0b;_0x120065<_0x31f456;_0x120065++)_0x2ea9c1[_0x120065]['side']=_0x120065<=_0x1fb97e?-0x1:_0x120065<_0x1f24d7?0x0:0x1,_0x2ea9c1[_0x120065]['index']=_0x120065;let _0x43927d=0x0;for(let _0x156737=_0x521e0b;_0x156737<=_0x1fb97e;_0x156737++)0x0==_0x2ea9c1[_0x156737]['distance']?_0x2ea9c1[_0x156737]['level']=_0x43927d:(_0x43927d++,_0x2ea9c1[_0x156737]['level']=_0x43927d,_0x43927d++);for(let _0x4b24e1=_0x521e0b;_0x4b24e1<_0x31f456;_0x4b24e1++)0x0==_0x2ea9c1[_0x4b24e1]['side']&&(_0x2ea9c1[_0x4b24e1]['level']=_0x43927d);_0x43927d=0x0;for(let _0x4b3af4=_0x31f456-0x1;_0x4b3af4>=_0x1f24d7;_0x4b3af4--)0x0==_0x2ea9c1[_0x4b3af4]['distance']?_0x2ea9c1[_0x4b3af4]['level']=_0x43927d:(_0x43927d--,_0x2ea9c1[_0x4b3af4]['level']=_0x43927d,_0x43927d--);}}['_fixObsoleteTags'](_0x23199b){const _0x4d36ed=new Map(),_0x511dd7=this['editor']['model']['schema'];for(let _0x464af4=0x1;_0x464af4<_0x23199b['length'];_0x464af4++){let _0x21a6da,_0x5987b7,_0x583286;const _0x1b81a5=_0x23199b[_0x464af4],_0x4060c8=_0x23199b[_0x464af4-0x1];if('text'==_0x1b81a5['type'])continue;if(_0x1b81a5['type']!=_0x4060c8['type'])continue;if(!_0x511dd7['isBlock'](_0x4060c8['item'])||_0x511dd7['isLimit'](_0x4060c8['item']))continue;if(!_0x511dd7['isBlock'](_0x1b81a5['item'])||_0x511dd7['isLimit'](_0x1b81a5['item']))continue;if((_0x23199b[_0x464af4]['isAdded']||_0x23199b[_0x464af4]['isAddSuggestion'])&&_0x23199b[_0x464af4-0x1]['isRemoved'])_0x21a6da=_0x23199b[_0x464af4],_0x5987b7=_0x23199b[_0x464af4-0x1],_0x583286=_0x464af4-0x1;else{if(!_0x23199b[_0x464af4]['isRemoved']||!_0x23199b[_0x464af4-0x1]['isAdded']&&!_0x23199b[_0x464af4-0x1]['isAddSuggestion'])continue;_0x21a6da=_0x23199b[_0x464af4-0x1],_0x5987b7=_0x23199b[_0x464af4],_0x583286=_0x464af4;}const _0xd40da9=_0x21a6da['level']==_0x5987b7['level'],_0x36809f=Math['abs'](_0x21a6da['level'])<Math['abs'](_0x5987b7['level'])&&0x0==_0x5987b7['distance'];(_0xd40da9||_0x36809f)&&(_0x4d36ed['set'](_0x5987b7['id'],_0x21a6da['id']),_0x23199b['splice'](_0x583286,0x1),_0x464af4--,_0x21a6da['isAdded']=!0x1);}for(let _0xa86633=0x0;_0xa86633<_0x23199b['length'];_0xa86633++)_0x4d36ed['has'](_0x23199b[_0xa86633]['pairId'])&&(_0x23199b[_0xa86633]['pairId']=_0x4d36ed['get'](_0x23199b[_0xa86633]['pairId']));}['_removeMissingPairs'](_0x53044d){const _0x560341=new Set(_0x53044d['map'](_0xa0ca9d=>_0xa0ca9d['id']));for(let _0x12b0f2=0x0;_0x12b0f2<_0x53044d['length'];_0x12b0f2++)_0x560341['has'](_0x53044d[_0x12b0f2]['pairId'])||0x0==_0x53044d[_0x12b0f2]['distance']||(_0x53044d[_0x12b0f2]['isIncorrect']=!0x0);return _0x53044d['filter'](_0x2092eb=>!_0x2092eb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2469ba){const _0x3f6025=new Set();for(let _0xad1b51=0x0;_0xad1b51<_0x2469ba['length'];_0xad1b51++){if(_0x3f6025['has'](_0x2469ba[_0xad1b51]['id'])&&_0x2469ba[_0xad1b51]['isRemoved']&&(_0x2469ba[_0xad1b51]['isIncorrect']=!0x0),_0x2469ba[_0xad1b51]['isIncorrect'])continue;if(0x0==_0x2469ba[_0xad1b51]['distance'])continue;if('elementStart'!=_0x2469ba[_0xad1b51]['type'])continue;if(null==_0x2469ba[_0xad1b51]['pairId'])continue;let _0x3d6a64=_0xad1b51+0x1,_0x251611=0x0;for(;_0x2469ba[_0x3d6a64]['id']!=_0x2469ba[_0xad1b51]['pairId'];)'elementStart'==_0x2469ba[_0x3d6a64]['type']?_0x251611++:'elementEnd'==_0x2469ba[_0x3d6a64]['type']&&_0x251611--,_0x3d6a64++;if(0x0!=_0x251611){if(_0x2469ba[_0xad1b51]['isRemoved'])_0x2469ba[_0xad1b51]['isIncorrect']=!0x0;else{for(;_0x3d6a64!=_0xad1b51;)_0x2469ba[_0x3d6a64]['isRemoved']&&0x0!=_0x2469ba[_0x3d6a64]['distance']&&(_0x2469ba[_0x3d6a64]['isIncorrect']=!0x0,_0x3f6025['add'](_0x2469ba[_0x3d6a64]['pairId'])),_0x3d6a64--;}}}return _0x2469ba['filter'](_0x53267b=>!_0x53267b['isIncorrect']);}['_removeUnsupportedChanges'](_0x541990){const _0x4e41b8=this['editor']['model']['schema'];for(let _0x446d4d=0x0;_0x446d4d<_0x541990['length'];_0x446d4d++){if(!(_0x541990[_0x446d4d]['isAdded']||_0x541990[_0x446d4d]['isAddSuggestion']||_0x541990[_0x446d4d]['isRemoved']||_0x541990[_0x446d4d]['isRemoveSuggestion']))continue;if(0x0==_0x541990[_0x446d4d]['distance'])continue;const _0x25cf27=_0x541990[_0x446d4d]['item'];_0x4e41b8['isBlock'](_0x25cf27)||_0x4e41b8['isLimit'](_0x25cf27)||(_0x541990[_0x446d4d]['isAdded']&&delete _0x541990[_0x446d4d]['isAdded'],_0x541990[_0x446d4d]['isAddSuggestion']&&delete _0x541990[_0x446d4d]['isAddSuggestion'],_0x541990[_0x446d4d]['isRemoveSuggestion']&&delete _0x541990[_0x446d4d]['isRemoveSuggestion'],_0x541990[_0x446d4d]['isRemoved']&&(_0x541990[_0x446d4d]['isIncorrect']=!0x0));}return _0x541990['filter'](_0x260051=>!_0x260051['isIncorrect']);}['_makeModelFromTape'](_0x12db8f,_0x1128c3,_0x20c3fb){const _0x3c45b9=new mt(),_0xeee354=[],_0x1d1357=new Map(),_0x43a769=this['editor']['model'],_0x40060f=_0x43a769['schema'],_0x4dd96a=[_0x3c45b9],_0x389bc9={},_0x30e9fa={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x26bcbf=null;const _0x20f0e1=[0x0];for(let _0x470196=0x0;_0x470196<_0x12db8f['length'];_0x470196++)if('elementStart'===_0x12db8f[_0x470196]['type']){_0x12db8f[_0x470196]['previousPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1);const _0x411516=new ft(_0x12db8f[_0x470196]['item']['name'],_0x12db8f[_0x470196]['item']['getAttributes']());_0x4dd96a[0x0]['_appendChild'](_0x411516),_0x20f0e1['push'](0x0),_0x4dd96a['unshift'](_0x411516),_0x12db8f[_0x470196]['nextPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1);}else'elementEnd'===_0x12db8f[_0x470196]['type']?(_0x4dd96a['shift'](),_0x12db8f[_0x470196]['previousPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1),_0x20f0e1['pop'](),_0x20f0e1[_0x20f0e1['length']-0x1]++,_0x12db8f[_0x470196]['nextPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1)):(_0x12db8f[_0x470196]['previousPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1),_0x26bcbf?_0x26bcbf['_data']+=_0x12db8f[_0x470196]['item']['data']:_0x26bcbf=new wt(_0x12db8f[_0x470196]['item']['data'],_0x12db8f[_0x470196]['item']['getAttributes']()),_0x12db8f[_0x470196+0x1]&&'text'===_0x12db8f[_0x470196+0x1]['type']&&_0x4eb88e(_0x26bcbf,_0x12db8f[_0x470196+0x1]['item'])||(_0x4dd96a[0x0]['_appendChild'](_0x26bcbf),_0x26bcbf=null),_0x20f0e1[_0x20f0e1['length']-0x1]+=_0x12db8f[_0x470196]['item']['offsetSize'],_0x12db8f[_0x470196]['nextPosition']=_0x43a769['createPositionFromPath'](_0x3c45b9,_0x20f0e1));for(let _0x1d1115=0x0;_0x1d1115<_0x12db8f['length'];_0x1d1115++){const _0x4a9a6f=_0x12db8f[_0x1d1115]['previousPosition'],_0x49934f=_0x12db8f[_0x1d1115]['nextPosition'];for(const _0x2eefd7 of _0x12db8f[_0x1d1115]['markersStart'])_0x1d1357['set'](_0x2eefd7,{'start':_0x4a9a6f,'end':null});_0x4a837a('isRemoveSuggestion',_0x1d1115,_0x4a9a6f,_0x49934f),_0x4a837a('isAddSuggestion',_0x1d1115,_0x4a9a6f,_0x49934f),_0x4a837a('isRemoved',_0x1d1115,_0x4a9a6f,_0x49934f),_0x4a837a('isAdded',_0x1d1115,_0x4a9a6f,_0x49934f);for(const _0x50aacb of _0x12db8f[_0x1d1115]['markersEnd']){_0x1d1357['get'](_0x50aacb)['end']=_0x49934f;}}for(const [_0x4d6a31,_0x5cc0c5]of _0x1d1357){const _0x41a434=this['editor']['model']['createRange'](_0x5cc0c5['start'],_0x5cc0c5['end']);_0x3c45b9['markers']['set'](_0x4d6a31,_0x41a434);}return _0xeee354['sort']((_0x539f71,_0x4b96de)=>{const _0x4dbd6e=_0x3c45b9['markers']['get']('revision:'+_0x539f71['id']),_0x50ca17=_0x3c45b9['markers']['get']('revision:'+_0x4b96de['id']);return _0x4dbd6e['start']['isBefore'](_0x50ca17['start'])?-0x1:_0x4dbd6e['start']['isAfter'](_0x50ca17['start'])?0x1:_0x4dbd6e['end']['isBefore'](_0x50ca17['end'])?-0x1:_0x4dbd6e['end']['isAfter'](_0x50ca17['end'])?0x1:'add'===_0x539f71['type']?-0x1:0x1;}),{'root':_0x3c45b9,'changes':_0xeee354};function _0x4a837a(_0x578d94,_0x42bc1a,_0x553b98,_0x38a0a2){const _0x396037=!!_0x12db8f[_0x42bc1a][_0x578d94],_0x4c3298=_0x396037?_0x12db8f[_0x42bc1a][_0x578d94]['userId']:null,_0x5cb066=_0x42bc1a===_0x12db8f['length']-0x1,_0x5ee77f=_0x30e9fa[_0x578d94][0x0],_0x1a1d6c=_0x40060f['isObject'](_0x12db8f[_0x42bc1a]['item']);!_0x389bc9[_0x578d94]&&_0x396037?_0x389bc9[_0x578d94]={'start':_0x553b98,'tapeItem':_0x12db8f[_0x42bc1a],'userId':_0x4c3298,'type':_0x578d94}:_0x389bc9[_0x578d94]&&!_0x396037?(_0x389bc9[_0x578d94]['end']=_0x553b98,_0x19e9b1(_0x389bc9[_0x578d94]),_0x389bc9[_0x578d94]=null):_0x389bc9[_0x578d94]&&_0x396037&&_0x389bc9[_0x578d94]['userId']!==_0x4c3298&&(_0x389bc9[_0x578d94]['end']=_0x553b98,_0x5ee77f&&_0x5ee77f['userId']===_0x389bc9[_0x578d94]['userId']||_0x19e9b1(_0x389bc9[_0x578d94]),_0x389bc9[_0x578d94]={'start':_0x553b98,'tapeItem':_0x12db8f[_0x42bc1a],'userId':_0x4c3298,'type':_0x578d94}),_0x389bc9[_0x578d94]&&_0x1a1d6c&&('elementStart'!==_0x12db8f[_0x42bc1a]['type']||_0x5ee77f&&_0x5ee77f['userId']===_0x4c3298||_0x30e9fa[_0x578d94]['unshift']({'userId':_0x4c3298,'object':_0x12db8f[_0x42bc1a]['item'],'change':_0x389bc9[_0x578d94]}),'elementEnd'===_0x12db8f[_0x42bc1a]['type']&&_0x5ee77f&&_0x5ee77f['object']===_0x12db8f[_0x42bc1a]['item']&&(_0x30e9fa[_0x578d94]['shift'](),_0x389bc9[_0x578d94]=_0x5ee77f['change'])),_0x389bc9[_0x578d94]&&_0x5cb066&&(_0x389bc9[_0x578d94]['end']=_0x38a0a2,_0x19e9b1(_0x389bc9[_0x578d94]),_0x389bc9[_0x578d94]=null);}function _0x19e9b1({start:_0x447296,end:_0x1533d7,tapeItem:_0x5a96b6,userId:_0x6bf229,type:_0x1cce09}){const _0xd0f869=_0x5a96b6['item'],_0x3efa1c=_0x43a769['schema']['isBlock'](_0xd0f869)&&!_0x43a769['schema']['isLimit'](_0xd0f869),_0x491708=_0x447296['nodeAfter']==_0x1533d7['parent']&&_0x1533d7['isAtStart'];if(_0x3efa1c&&_0x491708)return;const _0x39aea4=_0x43a769['createRange'](_0x447296,_0x1533d7),_0x42b8b7=_0x1128c3['get'](_0x6bf229),_0x1690c6=new r({'author':_0x42b8b7,'type':'isAdded'==_0x1cce09||'isAddSuggestion'==_0x1cce09?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1cce09||'isRemoveSuggestion'==_0x1cce09},'createdAt':new Date(),'rootName':_0x20c3fb});_0xeee354['push'](_0x1690c6),_0x3c45b9['markers']['set']('revision:'+_0x1690c6['id'],_0x39aea4);}function _0x4eb88e(_0x1f6e6c,_0x453a9b){const _0x28409a=_0x1f6e6c['getAttributes'](),_0x441f79=_0x453a9b['getAttributes']();for(const _0x3c5dfa of _0x28409a){if(_0x3c5dfa[0x1]!==_0x453a9b['getAttribute'](_0x3c5dfa[0x0]))return!0x1;_0x441f79['next']();}return _0x441f79['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x58c726=>{const _0x3dcede=_0x58c726['markerName']['split'](':')[0x1],_0x21cd09=this['_getChangeFromId'](_0x3dcede);if(!_0x21cd09)return null;const _0x31114c='add'==_0x21cd09['type']?'insertion':'deletion',_0x1f62d2=['ck-suggestion-marker','ck-suggestion-marker-'+_0x31114c];return _0x21cd09['data']['isSuggestion']&&_0x1f62d2['push']('ck-suggestion-marker-'+_0x31114c+'-new'),this['activeChange']==_0x21cd09&&_0x1f62d2['push']('ck-suggestion-marker--active'),{'classes':_0x1f62d2,'attributes':{'data-change-id':_0x3dcede}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2619c5=>{_0x2619c5['on']('element:pre',(_0xc45ac7,_0xcc324e,_0x3ca129)=>{const _0x7b8dda=_0xcc324e['viewItem']['getChild'](0x0);if(!_0x7b8dda||!_0x7b8dda['is']('element','code'))return;if(!_0x3ca129['consumable']['consume'](_0x7b8dda,{'attributes':['vid_start','vid_end']}))return;const _0x2266c1=_0xcc324e['modelRange']['start']['nodeAfter'];_0x3ca129['writer']['setAttribute']('vid_start',_0x7b8dda['getAttribute']('vid_start'),_0x2266c1),_0x3ca129['writer']['setAttribute']('vid_end',_0x7b8dda['getAttribute']('vid_end'),_0x2266c1);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x546708=>{_0x546708['on']('element',(_0x791971,_0x16f2e1,_0x35e125)=>{if(!_0x35e125['consumable']['consume'](_0x16f2e1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x16f2e1['modelRange']['isCollapsed'])return;const _0x1bba8a=_0x16f2e1['modelRange']['start']['nodeAfter'];_0x1bba8a['hasAttribute']('vid_start')||_0x1bba8a['hasAttribute']('vid')||(_0x35e125['writer']['setAttribute']('vid_start',_0x16f2e1['viewItem']['getAttribute']('vid_start'),_0x1bba8a),_0x35e125['writer']['setAttribute']('vid_end',_0x16f2e1['viewItem']['getAttribute']('vid_end'),_0x1bba8a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x3792e6=>_0x3792e6['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x492366,[,_0x570eea])=>{['vid_start','vid_end','vid']['includes'](_0x570eea)&&(_0x492366['return']=!0x0,_0x492366['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x48555b=>{_0x48555b['on']('attribute:vid',(_0x1050f7,_0x1f91d4,_0xfd71d)=>{if('\x20'!=_0x1f91d4['item']['data']||_0x1f91d4['item']['parent']['maxOffset']>0x1)return;if(!_0xfd71d['consumable']['consume'](_0x1f91d4['item'],_0x1050f7['name']))return;const _0x14f34b=_0xfd71d['writer'],_0x770b0d=_0xfd71d['mapper']['toViewRange'](_0x1f91d4['range']);_0x14f34b['wrap'](_0x770b0d,_0x14f34b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x14c018){const _0x2259a4=_0x14c018['plugins']['get']('RevisionViewer');return(_0x1c56e3,_0x3897ce,_0xd2acd4)=>{const _0x13459f=_0x3897ce['markerName']['split'](':')[0x1],_0x22ffa5=_0x2259a4['_getChangeFromId'](_0x13459f);if(!_0x22ffa5)return null;const _0x301bf8='add'==_0x22ffa5['type']?'split':'merge';if(!_0xd2acd4['consumable']['test'](_0x3897ce['markerRange'],_0x1c56e3['name']))return;const _0x503328=_0x3897ce['markerRange']['getWalker'](),_0xe0f058=_0x3897ce['markerRange']['start'],_0xc2f905=_0x14c018['model']['schema'];let _0x34f02c=null,_0x480fd4=null,_0x5877bf=!0x1,_0x569289=!0x1;for(const _0xfead19 of _0x503328){const _0x37f0cf=_0xfead19['item'];_0x5877bf=_0x5877bf||_0xc2f905['isContent'](_0x37f0cf);const _0x382776=_0xd2acd4['mapper']['toViewElement'](_0x37f0cf);if(_0x382776&&_0x382776['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xfead19['type']&&(_0xc2f905['isBlock'](_0x37f0cf)&&!_0xc2f905['isLimit'](_0x37f0cf)&&(_0x37f0cf['nextSibling']||_0xe0f058['isAtEnd']?_0x34f02c&&_0x34f02c['parent']==_0x37f0cf||(_0x34f02c=_0x37f0cf,_0x4298cd(_0xfead19['previousPosition']),_0x569289=!0x0):_0x480fd4=_0x480fd4||_0xfead19['previousPosition']));}function _0x4298cd(_0xc0e286){const _0x3113f8=_0xd2acd4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x301bf8}),_0x7c9f17=_0xd2acd4['mapper']['toViewPosition'](_0xc0e286);_0x22ffa5['data']['isSuggestion']&&_0xd2acd4['writer']['addClass']('ck-suggestion-marker-'+_0x301bf8+'-new',_0x3113f8),_0x2259a4['activeChange']==_0x22ffa5&&_0xd2acd4['writer']['addClass']('ck-suggestion-marker--active',_0x3113f8),_0xd2acd4['writer']['insert'](_0x7c9f17,_0x3113f8),_0xd2acd4['mapper']['bindElementToMarker'](_0x3113f8,_0x3897ce['markerName']);}_0x5877bf||_0x569289||!_0x480fd4||_0x4298cd(_0x480fd4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x37fbe9,_0x244848,_0x111941)=>{const _0x4f3043=_0x111941['mapper']['markerNameToElements'](_0x244848['markerName']);if(_0x4f3043){for(const _0x3adce4 of _0x4f3043)(_0x3adce4['hasClass']('ck-suggestion-marker-split')||_0x3adce4['hasClass']('ck-suggestion-marker-merge'))&&(_0x111941['mapper']['unbindElementFromMarkerName'](_0x3adce4,_0x244848['markerName']),_0x111941['writer']['remove'](_0x3adce4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x509397,_0x25c4df,_0x4f368b)=>{const _0x1d868b=_0x25c4df['markerName']['split'](':')[0x1],_0x1b0624=this['_getChangeFromId'](_0x1d868b);if(!_0x1b0624)return null;const _0x3a4f9f='add'==_0x1b0624['type']?'split':'merge';if(_0x4f368b['consumable']['test'](_0x25c4df['markerRange'],_0x509397['name']))for(const _0x5dbbf1 of _0x25c4df['markerRange']['getItems']()){if(!_0x5dbbf1['is']('element','softBreak'))continue;const _0x5ae08b=_0x4f368b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a4f9f}),_0x2220dd=_0x4f368b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5dbbf1));_0x1b0624['data']['isSuggestion']&&_0x4f368b['writer']['addClass']('ck-suggestion-marker-'+_0x3a4f9f+'-new',_0x5ae08b),this['activeChange']==_0x1b0624&&_0x4f368b['writer']['addClass']('ck-suggestion-marker--active',_0x5ae08b),_0x4f368b['writer']['insert'](_0x2220dd,_0x5ae08b),_0x4f368b['mapper']['bindElementToMarker'](_0x5ae08b,_0x25c4df['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x167d3b=>{for(const _0x5ec20d of this['editor']['model']['document']['getRootNames']()){const _0x235092=this['editor']['model']['document']['getRoot'](_0x5ec20d),_0x3c160f=this['editor']['editing']['view']['document']['getRoot'](_0x5ec20d);if(_0x3c160f){const _0xfbff8=_0x235092['getAttribute']('revisionHistoryAttachChange');if(_0x167d3b['removeAttribute']('data-change-id',_0x3c160f),_0x167d3b['removeClass']('ck-revision-history-root-add',_0x3c160f),_0x167d3b['removeClass']('ck-revision-history-root-remove',_0x3c160f),_0x167d3b['removeClass']('ck-revision-history-root--active',_0x3c160f),_0xfbff8){const _0x43387b=this['_getChangeFromId'](_0xfbff8);if(!_0x43387b)return null;_0x167d3b['setAttribute']('data-change-id',_0xfbff8,_0x3c160f),_0x167d3b['addClass']('ck-revision-history-root-'+_0x43387b['type'],_0x3c160f),this['activeChange']==_0x43387b&&_0x167d3b['addClass']('ck-revision-history-root--active',_0x3c160f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5c2e09=>'revision-comment:'+_0x5c2e09,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3c27ab=>'revision-suggestion:'+_0x3c27ab,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x7a8fb4=>({'name':'suggestion:'+_0x7a8fb4,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x22ebea=>{const _0x328a65=_0x22ebea['markerName']['split'](':')[0x1];return'insertion'!=_0x328a65&&'deletion'!=_0x328a65?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x328a65]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xb528c4,_0x6faedc,_0x50749b)=>{const _0x122bff=_0x50749b['mapper']['markerNameToElements'](_0x6faedc['markerName']);if(_0x122bff){for(const _0x540e3a of _0x122bff)_0x540e3a['is']('uiElement')&&(_0x50749b['mapper']['unbindElementFromMarkerName'](_0x540e3a,_0x6faedc['markerName']),_0x50749b['writer']['remove'](_0x540e3a));}},{'priority':'high'});}['_getChangeFromId'](_0x5c3af4){return this['_changeIdToChange']['get'](_0x5c3af4);}['_getViewForChange'](_0xe6977c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0xe6977c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xeb8a8e,_0x2c45c9,_0x16c562,_0x3481ba)=>{_0x3481ba&&this['_balloon']['remove'](_0x3481ba),_0x16c562&&(this['_balloon']['add']({'view':_0x16c562,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1cac10=this['editor']['editing'],_0x2285e9=this['_getChangeFromId'](_0x16c562['changeId']);let _0x4f40f;if(_0x2285e9['data']['isOnRoot']){const _0x422f55=_0x1cac10['view']['getDomRoot'](_0x2285e9['rootName']);_0x4f40f=Array['from'](_0x422f55['getClientRects']());}else{const _0x561d86=this['editor']['model']['markers']['get']('revision:'+_0x16c562['changeId']);_0x4f40f=Array['from'](_0x1cac10['mapper']['markerNameToElements'](_0x561d86['name']))['map'](_0x158911=>_0x1cac10['view']['domConverter']['mapViewToDom'](_0x158911))['map'](_0x4cebf9=>Array['from'](_0x4cebf9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4f40f[0x0];return _0x4f40f['find'](_0x3ed7b5=>_0x3ed7b5['top']-0x3<=this['_activeViewTarget']['y']&&_0x3ed7b5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3ed7b5['left']-0x3<=this['_activeViewTarget']['x']&&_0x3ed7b5['right']+0x3>=this['_activeViewTarget']['x'])||_0x4f40f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x296734,_0xa9f066,_0x297161,_0x22795c)=>{this['activeView']=_0x297161?this['_getViewForChange'](_0x297161):null,this['editor']['model']['change'](()=>{const _0x63d2b6=this['editor']['editing'];_0x22795c&&(_0x22795c['data']['isOnRoot']?_0x63d2b6['view']['change'](_0xaf679f=>{_0xaf679f['removeClass']('ck-revision-history-root--active',_0x63d2b6['view']['document']['getRoot'](_0x22795c['rootName']));}):_0x63d2b6['reconvertMarker']('revision:'+_0x22795c['id'])),_0x297161&&(_0x297161['data']['isOnRoot']?_0x63d2b6['view']['change'](_0x5d6049=>{_0x5d6049['addClass']('ck-revision-history-root--active',_0x63d2b6['view']['document']['getRoot'](_0x297161['rootName']));}):_0x63d2b6['reconvertMarker']('revision:'+_0x297161['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x58f4f6,_0x195542)=>{if(this['activeChange'])return;const _0x5c885b=this['_findChangeIdFromDomTarget'](_0x195542['target']),_0xa344c=this['_changeIdToChange']['get'](_0x5c885b);_0xa344c?(this['_activeViewTarget']={'x':_0x195542['domEvent']['x'],'y':_0x195542['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xa344c)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x37b4ce,_0x592d2c)=>{const _0x29083f=this['_findChangeIdFromDomTarget'](_0x592d2c['target']),_0x168049=this['_changeIdToChange']['get'](_0x29083f);_0x168049?(this['_activeViewTarget']={'x':_0x592d2c['domEvent']['x'],'y':_0x592d2c['domEvent']['y']},_0x168049===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x168049):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x129ac9){do{const _0x4b8537=_0x129ac9['getAttribute']('data-change-id');if(_0x4b8537)return _0x4b8537;_0x129ac9=_0x129ac9['parent'];}while(_0x129ac9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x64b945=>{for(const _0x3999cb of this['editor']['model']['markers'])_0x64b945['removeMarker'](_0x3999cb);});}}function Z(_0x159707,_0x2f512c){return(_0x1ea0ba,_0x35c36e,_0x238250)=>{if(!_0x238250['consumable']['test'](_0x35c36e['markerRange'],_0x1ea0ba['name']))return;const _0x16f949=_0x35c36e['markerRange']['getWalker'](),_0x407b90=_0x35c36e['markerRange']['start'],_0x156ba9=_0x159707['model']['schema'];let _0x25b09f=null,_0x1e5349=null,_0x54c227=!0x1,_0xd38e4a=!0x1;for(const _0x5dc922 of _0x16f949){const _0x1a5933=_0x5dc922['item'];_0x54c227=_0x54c227||_0x156ba9['isContent'](_0x1a5933);const _0x214695=_0x238250['mapper']['toViewElement'](_0x1a5933);if(_0x214695&&_0x214695['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5dc922['type']&&(_0x156ba9['isBlock'](_0x1a5933)&&!_0x156ba9['isLimit'](_0x1a5933)&&(_0x1a5933['nextSibling']||_0x407b90['isAtEnd']?_0x25b09f&&_0x25b09f['parent']==_0x1a5933||(_0x25b09f=_0x1a5933,_0x3f0840(_0x5dc922['previousPosition']),_0xd38e4a=!0x0):_0x1e5349=_0x1e5349||_0x5dc922['previousPosition']));}function _0x3f0840(_0x57e726){const _0x2e47d8=_0x238250['mapper']['toViewPosition'](_0x57e726),_0x1de4ec=_0x238250['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2f512c});_0x238250['writer']['insert'](_0x2e47d8,_0x1de4ec),_0x238250['mapper']['bindElementToMarker'](_0x1de4ec,_0x35c36e['markerName']);}_0x54c227||_0xd38e4a||!_0x1e5349||_0x3f0840(_0x1e5349);};}class _t extends _0x157788{constructor(_0x482e5f){super(_0x482e5f);const _0x532f23=_0x482e5f['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x532f23,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x532f23,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2ba709=this['editor'],_0x2838b8=_0x2ba709['plugins']['get'](d),_0x4db2ce=_0x2838b8['isReady']?_0x2838b8['diff']['newRevisionId']:null;_0x2ba709['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4db2ce);}['refresh'](){const {isReady:_0x4b653c,isEnabled:_0x6f3028,repository:_0x50c32b,diff:_0x383282}=this['editor']['plugins']['get'](d),_0x1aa0a6=_0x383282&&_0x50c32b['getLaterVisibleRevision'](_0x383282['newRevisionId']);this['isEnabled']=_0x4b653c&&_0x6f3028&&Boolean(_0x1aa0a6);}}class yt extends _0x157788{['_step'];constructor(_0x93a7b1,{direction:_0x4911cb}){super(_0x93a7b1);const _0x3f4c77=_0x93a7b1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4911cb?0x1:-0x1,this['listenTo'](_0x3f4c77,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3f4c77,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3f4c77,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x38b69d=this['editor'],_0x589351=_0x38b69d['plugins']['get'](d),{isNavigationMode:_0x1a2df7,currentChangeNumber:_0x1a2d47}=_0x589351;let _0x48c64c;if(_0x589351['activeChange']=_0x1a2df7?_0x589351['diff']['changes']['get'](_0x1a2d47+this['_step']):_0x589351['diff']['changes']['first'],_0x589351['activeChange']['data']['isOnRoot'])_0x48c64c=_0x38b69d['editing']['view']['getDomRoot'](_0x589351['activeChange']['rootName']);else{const _0x8be197=_0x38b69d['model']['markers']['get']('revision:'+_0x589351['activeChange']['id']);_0x48c64c=_0x10cdf2(_0x38b69d['editing'],_0x8be197);}_0x383918({'target':_0x48c64c,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x12445a,currentChangeNumber:_0x64e371,numberOfChanges:_0xa9fcd6,isReady:_0x5a7831,isEnabled:_0x5e39d7}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5e39d7&&_0x5a7831&&_0xa9fcd6)&&(!_0x12445a||(0x1===this['_step']?_0x64e371<_0xa9fcd6-0x1:_0x64e371>0x0));}}class di extends _0x57d690{constructor(_0x3305a8){super(_0x3305a8);const _0xc7df53=this['bindTemplate'],_0x35285d=new _0x5c3b92(_0x3305a8),_0x56cc=new _0x5c3b92(_0x3305a8);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',(_0xe83fca,_0x4b1576)=>_0xe83fca&&_0x4b1576>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x272fd8,_0x3e140d,_0x4788d0,_0x4bd685)=>{if(!_0x272fd8)return m(_0x3305a8,'Loading...');if(!_0x4788d0)return m(_0x3305a8,'No\x20changes');const _0x20d6eb=m(_0x3305a8,'NUMBER_OF_CHANGES',_0x4788d0);return _0x4bd685?m(_0x3305a8,'X_OF_Y_CHANGES',[_0x3e140d+0x1,_0x4788d0]):_0x20d6eb;}),_0x35285d['set']({'label':m(_0x3305a8,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x56cc['set']({'label':m(_0x3305a8,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x35285d['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x56cc['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x35285d['on']('execute',()=>this['fire']('execute','backward')),_0x56cc['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',_0xc7df53['if']('_isStatusLabelVisible','ck-hidden',_0x972253=>!_0x972253)]},'children':[{'text':_0xc7df53['to']('isNavigationMode',_0x47d381=>_0x47d381?m(_0x3305a8,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3305a8,'Total')+':\x20')}]},{'text':_0xc7df53['to']('_statusText')}]},new _0x574f5a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x35285d,_0x56cc]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x1c983f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x44568c=this['editor']['editing']['view'];_0x44568c['change'](_0x35fd7c=>{for(const _0xf20654 of _0x44568c['document']['roots'])_0x35fd7c['addClass'](ce,_0xf20654);});}['hide'](){const _0x2508d0=this['editor']['editing']['view'];_0x2508d0['change'](_0x191302=>{for(const _0x9851fe of _0x2508d0['document']['roots'])_0x191302['removeClass'](ce,_0x9851fe);});}}class g extends _0x1c983f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x139446=this['editor'],_0x34f5af=_0x139446['plugins']['get'](d),_0x138202=_0x139446['plugins']['get'](ae);_0x139446['ui']['componentFactory']['add']('exitToEditing',_0x2748cf=>{const _0x3d6549=new _0x5c3b92(_0x2748cf);return _0x3d6549['set']({'label':m(_0x2748cf,'Back\x20to\x20editing'),'icon':_0x5d34ae['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3d6549,'execute',()=>{_0x139446['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3d6549;}),_0x139446['ui']['componentFactory']['add']('restoreRevision',_0x3e91fc=>{const _0x2c405f=new _0x5c3b92(_0x3e91fc);return _0x2c405f['set']({'label':m(_0x3e91fc,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2c405f['bind']('isEnabled')['to'](_0x139446['commands']['get']('restoreRevision')),this['listenTo'](_0x2c405f,'execute',()=>_0x139446['execute']('restoreRevision')),_0x2c405f;}),_0x139446['ui']['componentFactory']['add']('changesNavigation',_0x54b76f=>{const _0x17c0dd=new di(_0x54b76f),_0x5e7c36=_0x139446['commands']['get']('showPreviousChange'),_0x2ac448=_0x139446['commands']['get']('showNextChange');return _0x17c0dd['bind']('isBackwardNavigationEnabled')['to'](_0x5e7c36,'isEnabled'),_0x17c0dd['bind']('isForwardNavigationEnabled')['to'](_0x2ac448,'isEnabled'),_0x17c0dd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x34f5af),this['listenTo'](_0x17c0dd,'execute',(_0xd2842c,_0xc33e5)=>{_0x139446['execute']('forward'===_0xc33e5?'showNextChange':'showPreviousChange');}),_0x17c0dd;}),_0x138202['show'](),_0x34f5af['on']('change:isReady',(_0x4d96f3,_0x9f36ab,_0x1d8310)=>{_0x1d8310?_0x138202['hide']():_0x138202['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x24e320,_0x551a37){super(_0x24e320,_0x551a37);const _0x11d10e=this['bindTemplate'];this['set']({'label':m(_0x24e320,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x24e320,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x11d10e['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3ccac4=this['fieldView']['element'];this['_tooltipString']=_0x3ccac4['scrollWidth']>_0x3ccac4['clientWidth']&&_0x3ccac4['value']||'';}}class ti extends _0x57d690{constructor(_0x35babe,_0xd9da27,_0x43f9ac){super(_0x35babe);const _0x15e8a8=new _0x538b97();_0x15e8a8['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x2fd0d9=['ck','ck-revision-history-sidebar__revision-author'];_0x43f9ac&&_0x2fd0d9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x48a746=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x35babe,_0x43f9ac?'Revision\x20creator':'Revision\x20author')},'children':[_0x15e8a8,_0xd9da27['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2fd0d9},'children':_0x48a746});}}function ni(_0x77ec60,_0x3386d3){const _0x585dba=_0x77ec60['bindTemplate'],_0x34741f=_0x77ec60['locale'],_0x93d41=_0x23cafe(_0x34741f);_0x93d41['panelPosition']='sw';const _0x422563=function(_0x498bc7,_0x1cff31){const _0x34a737=function(_0x454fcf,_0x15d15e){const _0x21be45=_0x454fcf['locale'],_0x3f9228={'Compare\x20against\x20selected':m(_0x21be45,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x21be45,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x21be45,'Restore\x20this\x20revision')};return _0x15d15e['map'](_0x254d42=>{const _0x42dfb5=_0x3f9228[_0x254d42['name']];return _0x42dfb5&&_0x42dfb5!==_0x254d42['name']&&(_0x254d42['name']=_0x42dfb5),_0x254d42;});}(_0x498bc7,_0x1cff31),_0x28ab74=new _0x28b682();for(const _0x4967ac of _0x34a737){const _0x2e403b={'type':'button','model':new to({'label':_0x4967ac['name'],'class':_0x4967ac['class'],'withText':!0x0,'role':'menuitem','_action':_0x4967ac['action']})};_0x2e403b['model']['bind']('isEnabled')['to'](_0x498bc7,'isActionsDropdownOpen',_0x376318=>'function'!=typeof _0x4967ac['isEnabled']||(!_0x376318||_0x4967ac['isEnabled'](_0x498bc7))),_0x28ab74['add'](_0x2e403b);}return _0x28ab74;}(_0x77ec60,_0x3386d3);return _0x77ec60['bind']('isActionsDropdownOpen')['to'](_0x93d41,'isOpen'),_0x93d41['buttonView']['set']({'label':m(_0x34741f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5d34ae['threeVerticalDots']}),_0x93d41['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x585dba['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x585dba['to'](_0x2f2ede=>_0x2f2ede['stopPropagation']())}}),_0x93d41['on']('execute',_0x191d0b=>{_0x77ec60['isReady']&&'function'==typeof _0x191d0b['source']['_action']&&_0x191d0b['source']['_action'](_0x77ec60);}),_0x33bd8c(_0x93d41,_0x422563,{'role':'menu'}),_0x93d41['listenTo'](_0x77ec60,'change:isActionsDropdownOpen',(_0x418261,_0x147564,_0x4816d1)=>{if(_0x4816d1)for(const _0x21f1a3 of _0x93d41['listView']['items']){const _0x5f1fa7=_0x21f1a3['children']['first'],_0x1d2cd4=_0x3386d3['find'](_0x3bfd45=>_0x3bfd45['action']===_0x5f1fa7['_action'])['isVisible'];_0x21f1a3['isVisible']=void 0x0===_0x1d2cd4||_0x1d2cd4(_0x77ec60);}}),_0x93d41;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x3f83fe(_0x57d690){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3298d0,_0x2c46f1,_0x3c844a,_0x34654b){super(_0x3298d0);const _0xc61d66=this['bindTemplate'],_0x50377f=function(_0x296b9e,_0x325dba){const _0x1fd376=Array['from'](_0x325dba['authors'])['filter'](_0x2e468b=>_0x2e468b!=_0x325dba['creator']);return _0x325dba['creator']&&_0x1fd376['unshift'](_0x325dba['creator']),_0x1fd376['map'](_0x6e122b=>new ti(_0x296b9e,_0x6e122b,_0x6e122b==_0x325dba['creator']));}(_0x3298d0,_0x2c46f1);this['id']=_0x2c46f1['id'],this['_revision']=_0x2c46f1,this['_requireRevisionName']=_0x34654b,this['bind']('name','createdAt')['to'](_0x2c46f1),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x26ec7d=>{return _0x18d260=_0x3298d0['uiLanguage'],(_0x3b6192=_0x26ec7d)['toLocaleDateString'](_0x18d260,{'month':'long','day':'numeric'})+',\x20'+_0x3b6192['toLocaleTimeString'](_0x18d260,{'hour':'numeric','minute':'numeric'});var _0x18d260,_0x3b6192;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x3298d0,_0x242d1c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x18ad4d=>_0x18ad4d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2cd538,_0xb933a4)=>_0x2cd538&&_0xb933a4),this['revisionActionsView']=_0x3c844a&&_0x3c844a['length']?ni(this,_0x3c844a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xc61d66['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xc61d66['if']('isEnabled','ck-disabled',_0x1119db=>!_0x1119db),_0xc61d66['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xc61d66['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xc61d66['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':_0xc61d66['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':_0x50377f}]},this['revisionActionsView']],'on':{'click':_0xc61d66['to'](_0x3e6c85=>{_0x3e6c85['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2ce304=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2ce304,'change',()=>{this['_requireRevisionName']&&!_0x2ce304['value']||this['fire']('setName',{'id':this['id'],'name':_0x2ce304['value']}),_0x2ce304['value']||(_0x2ce304['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x49d10b,_0x473aed){const _0x5097fd=_0x212522['fromJSDate'](_0x49d10b)['setLocale'](_0x473aed),_0x364f4d=_0x212522['local'](),_0x53a0ae=_0x364f4d['minus']({'days':0x1})['startOf']('day');let _0x189e27,_0x44732e;return _0x5097fd['hasSame'](_0x364f4d,'day')?(_0x189e27=_0x5097fd['startOf']('day')['toJSDate'](),_0x44732e=_0x5097fd['toRelativeCalendar']()):_0x5097fd['hasSame'](_0x53a0ae,'day')?(_0x189e27=_0x53a0ae['toJSDate'](),_0x44732e=_0x5097fd['toRelativeCalendar']()):_0x5097fd['hasSame'](_0x364f4d,'week')?(_0x189e27=_0x5097fd['startOf']('week')['toJSDate'](),_0x44732e=_0x5097fd['weekdayLong']||''):_0x5097fd['hasSame'](_0x364f4d,'year')?(_0x189e27=_0x5097fd['startOf']('month')['toJSDate'](),_0x44732e=_0x5097fd['monthLong']||''):(_0x189e27=_0x5097fd['startOf']('year')['toJSDate'](),_0x44732e=String(_0x5097fd['year'])),{'startDate':_0x189e27,'localizedPeriodName':_0x44732e};}class vi extends _0x57d690{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x35dc9f,_0x208dc4,_0xa8ba6d,_0x5f2202){super(_0x35dc9f);const _0x1dbe23=mi(_0x208dc4,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x208dc4,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xa8ba6d,this['_requireRevisionName']=_0x5f2202,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':_0x1dbe23}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1f70fd){const _0x3179fc=new ai(this['locale'],_0x1f70fd,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3179fc);}['removeRevision'](_0x4cd307){const _0x200439=this['revisionViews']['find'](_0x1eec4e=>_0x1eec4e['id']===_0x4cd307['id']);this['revisionViews']['remove'](_0x200439);}}class as extends _0x57d690{constructor(_0x6f535){super(_0x6f535);const _0x13f4fc=new _0x538b97();_0x13f4fc['content']=_0x5d34ae['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x13f4fc,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x6f535,'Revision\x20history')]}]});}}class li extends _0x57d690{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5b1bf5,_0x9e627,_0x45ac46,_0x346244){super(_0x5b1bf5);const _0xa854a6=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x9e627,this['_revisionActions']=_0x45ac46,this['_requireRevisionName']=_0x346244,this['on']('select',(_0xd76c2d,_0x9c5913)=>{this['fire']('revisionSelected',_0x9c5913);}),this['on']('setName',(_0x4bfbc5,_0x38f784)=>{this['fire']('revisionSetName',_0x38f784);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5b1bf5),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xa854a6['if']('isEnabled','ck-disabled',_0x451e7c=>!_0x451e7c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x47bbf7 of this['_revisions'])this['_addRevision'](_0x47bbf7);this['_revisions']['on']('add',(_0x5787de,_0x52cd08)=>{this['_addRevision'](_0x52cd08);}),this['_revisions']['on']('remove',(_0x3f1fa7,_0x41f11f)=>{this['_removeRevision'](_0x41f11f);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1226e0=>_0x1226e0['revisionViews']['map'](_0x23e441=>_0x23e441))['flat']();}['selectRevision'](_0x5d5334){for(const _0x5d9af6 of this['revisionViews'])_0x5d5334&&_0x5d5334['id']===_0x5d9af6['id']?_0x5d9af6['select']():_0x5d9af6['deselect']();}['highlightRevisions'](_0x3ac7d8){for(const _0x14dce6 of this['revisionViews'])_0x3ac7d8['some'](({id:_0x226e07})=>_0x226e07===_0x14dce6['id'])?_0x14dce6['highlight']():_0x14dce6['unhighlight']();}['_addRevision'](_0x1b5130){const _0x45945d=mi(_0x1b5130['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x253424=this['timePeriodViews']['get'](0x0);_0x253424&&_0x253424['startDate']['getTime']()===_0x45945d['getTime']()||(_0x253424=new vi(this['locale'],_0x45945d,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x253424)),_0x253424['addRevision'](_0x1b5130);}['_removeRevision'](_0x567ff5){const _0x4adb19=mi(_0x567ff5['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4adb19)['removeRevision'](_0x567ff5);}['_getTimePeriodViewByStartDate'](_0x30fba7){return this['timePeriodViews']['find'](_0x1dea70=>_0x1dea70['startDate']['getTime']()===_0x30fba7['getTime']());}}class w extends _0x1c983f{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1daa5c){super(_0x1daa5c),this['_revisionViewer']=_0x1daa5c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x35bb63=this['_revisionsRepository']['_revisions'],_0x106f98=this['_createRevisionActions'](),_0x4d42e0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x35bb63,_0x106f98,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',(_0x1ffdd1,_0x50e6da)=>{_0x50e6da['revisionViews']['on']('add',(_0x55eb7c,_0x436024)=>{_0x436024['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)),_0x4d42e0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x16c001=this['_revisionsRepository']['getRevision'](0x0);if(_0x16c001){const _0x24b71d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x16c001['id']);this['_revisionViewer']['compare'](_0x16c001,_0x24b71d);}}['_handleRevisionSelected'](_0x1c777d,_0x4cd810){const _0x45010a=this['_revisionsRepository']['getRevision'](_0x4cd810['id']),_0x4b56aa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x45010a['id']);this['_revisionViewer']['compare'](_0x45010a,_0x4b56aa);}['_handleRevisionSetName'](_0x3f0cb9,_0x3289e2){this['_revisionsRepository']['getRevision'](_0x3289e2['id'])['setName'](_0x3289e2['name']);}['_handleDiffChange'](_0x296dbd,_0x16ff2f,_0x437f1f){const _0x3f9a4d=this['_revisionsRepository']['getRevisionsInDiff'](_0x437f1f);_0x3f9a4d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3f9a4d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3f9a4d[0x0]));}['_createRevisionActions'](){const _0x28d8ce=this['editor'],_0x34e66c=w['availableRevisionActions'],_0x269f50=_0x28d8ce['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x269f50['length'])return _0x269f50['map'](_0x29b554=>{const _0x39548d='string'==typeof _0x29b554?Object['assign']({},_0x34e66c[_0x29b554]):_0x29b554;return _0x39548d['action']=_0x39548d['action']['bind'](this,_0x28d8ce),_0x39548d['isVisible']&&(_0x39548d['isVisible']=_0x39548d['isVisible']['bind'](this,_0x28d8ce)),_0x39548d;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xce2d38},_0x31f810)=>{const _0x5daccd=_0xce2d38['get'](d),_0x132961=_0x5daccd['repository'];let _0x3bad9b=_0x5daccd['diff']['newRevisionId'],_0x4fac92=_0x31f810['id'];_0x132961['getIndex'](_0x3bad9b)>_0x132961['getIndex'](_0x4fac92)&&([_0x3bad9b,_0x4fac92]=[_0x4fac92,_0x3bad9b]),_0x5daccd['compare'](_0x3bad9b,_0x4fac92);},'isVisible':({plugins:_0x519bcf},_0x5551de)=>{const _0xe15b15=_0x519bcf['get'](d);return!(_0xe15b15['repository']['getRevisionsInDiff'](_0xe15b15['diff'])['length']>0x2)&&!_0x5551de['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xfacbc1,{id:_0x21b2fa})=>{_0xfacbc1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x21b2fa);},'isVisible':({plugins:_0x33c49a},_0x9553db)=>!!_0x33c49a['get'](d)['repository']['getLaterVisibleRevision'](_0x9553db['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x47bd2d},{id:_0x564172,revisionNameView:_0x11a7e9})=>{const _0x2cf556=_0x47bd2d['get'](d),_0x2bc10a=_0x2cf556['repository']['getEarlierVisibleRevision'](_0x564172);_0x2cf556['compare'](_0x564172,_0x2bc10a),_0x11a7e9['focus'](),_0x11a7e9['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3d7d40,_0x326bde){super(_0x3d7d40),this['_view']=_0x326bde,this['_toolbarConfig']=ot(_0x3d7d40['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x514b8e){const _0x46a1b5=this['editor'],_0x1c38f2=this['view'],_0x1ffbc2=_0x46a1b5['editing']['view'],_0x4da68b=_0x1c38f2['editable'],_0x2efc71=_0x1ffbc2['document']['getRoot']();_0x4da68b['name']=_0x2efc71['rootName'],_0x1c38f2['render']();const _0x2f2360=_0x4da68b['element'];this['setEditableElement'](_0x4da68b['name'],_0x2f2360),_0x1c38f2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1ffbc2['attachDomRoot'](_0x2f2360),this['_elementReplacer']['replace'](_0x514b8e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x36fccd=this['view'],_0x469871=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x469871['detachDomRoot'](_0x36fccd['editable']['name']),_0x36fccd['destroy']();}['_initToolbar'](){const _0x59c09b=this['view'];_0x59c09b['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x59c09b['stickyPanel']['limiterElement']=_0x59c09b['element'],_0x59c09b['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5904f5})=>_0x5904f5),_0x59c09b['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x59c09b['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x166e1c,_0x5cdee4,_0x22f046={}){super(_0x166e1c),this['stickyPanel']=new ut(_0x166e1c),this['toolbar']=new lt(_0x166e1c,{'shouldGroupWhenFull':_0x22f046['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x166e1c,_0x5cdee4);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xf8b9f3,_0x5a1e6d){super(_0x5a1e6d),this['sourceElement']=_0xf8b9f3,this['model']['document']['createRoot']();const _0x1ea83a=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1ea83a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3ddeeb,_0x54c748){const _0x202e15=new this(_0x3ddeeb,_0x54c748);return await _0x202e15['initPlugins'](),await _0x202e15['ui']['init'](_0x3ddeeb),await _0x202e15['data']['init'](_0x202e15['config']['get']('initialData')||''),_0x202e15['fire']('ready'),_0x202e15;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x46c671{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xadaf28){function _0x4d3f3a(_0x4a55bf){return _0x4a55bf['map'](_0x352016=>String['fromCharCode'](_0x352016))['join']('');}super(_0xadaf28),this['result']='end',_0xadaf28[_0x4d3f3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d3f3a([0x76,0x69,0x65,0x77])][_0x4d3f3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d3f3a([0x61,0x75,0x74,0x6f]),_0xadaf28[_0x4d3f3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4d3f3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d3f3a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4d3f3a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4d3f3a([0x6f,0x6b])});}}class k extends _0x46c671{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x36f8b8){if(super(_0x36f8b8),!this['editor']['config']['get']('revisionHistory'))throw new _0x404111('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x31f697=>this['_showRevisionViewer']({..._0x31f697,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4adad2=>this['_closeRevisionViewer'](_0x4adad2)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x21e41d=>this['_restoreRevision'](_0x21e41d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x38caa7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x38caa7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4c1051){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4c1051);}['getRevision'](_0xc07806){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xc07806);}['getRevisions'](_0x35b315){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x35b315||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3a37e6=this['editor'],_0x448ab8=_0x587d03(_0x3a37e6,p),_0x4948dd=_0x3a37e6['plugins']['get']('RevisionTracker'),_0x30931a=_0x3a37e6['plugins']['get']('Users')['users'];return _0x448ab8['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x448ab8['lazyRoots'],(_0x448ab8['plugins']['push'](Rt,d,g,class extends _0x46c671{static get['requires'](){return[d,'Users'];}['init'](){const _0x258182=this['editor']['plugins']['get']('Users');for(const _0x41d9b7 of _0x30931a)_0x41d9b7['isAnonymous']||_0x258182['getUser'](_0x41d9b7['id'])||_0x258182['addUser'](_0x41d9b7);const _0x1a2f50=_0x4948dd['repository']['getRevisions']();let _0x40faad=null;const _0x32f342=this['editor']['plugins']['get']('RevisionViewer');_0x32f342['adapter']=_0x4948dd['adapter'],_0x32f342['bind']('isEnabled')['to'](_0x4948dd),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3a37e6,'isReadOnly',_0x3f96e2=>!_0x3f96e2);for(const _0x339c06 of _0x1a2f50){const _0x26dfd3=null===_0x339c06['creator'];if(_0x26dfd3&&_0x339c06['toVersion']===_0x339c06['fromVersion'])continue;const _0x5eba18=_0x339c06['toJSON']();_0x32f342['addRevisionData'](_0x5eba18,(_0x266685,_0x37a80d,_0x3dc6a4)=>{if(_0x26dfd3){if(_0x40faad)_0x40faad['_update'](_0x266685,_0x37a80d);else{if(!_0x37a80d){const _0x27f286=_0x3dc6a4['toJSON']();_0x27f286['id']=_0x1de225(),_0x4948dd['saveRevision'](_0x27f286,_0x3dc6a4['toVersion'])['then'](_0x3be1df=>{_0x40faad=_0x3be1df;});}}}else _0x339c06['_update'](_0x266685,_0x37a80d);});}}},w),_0x448ab8);}['_enhanceShowRevisionViewerCallback'](){const _0x4b9931=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x69716b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3b3c1a=this['editor']['plugins']['get']('Autosave');await _0x3b3c1a['save']();}else await _0x69716b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3e662d=this['editor']['plugins']['get']('Dialog');_0x3e662d['isOpen']&&_0x3e662d['hide']();}const _0x2e7c22=this['_getRevisionViewerEditorConfig']();return _0x4b9931(_0x2e7c22)['then'](_0x433a3a=>{return(this['_viewerEditor']=_0x433a3a,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x433a3a;})['catch'](_0x507eda=>(console['error'](_0x507eda),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x531aa4=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x531aa4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xe15af=this['editor']['plugins']['get']('Annotations');_0xe15af['refreshVisibility'](),_0xe15af['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2e9f6b){const _0x4099b3=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x58ff53=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5a3a21=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x5a3a21,_0x2e9f6b)['then'](_0x301799=>(_0x58ff53['style']['display']='block',_0x4099b3['style']['display']='none',_0x301799));}['_closeRevisionViewer'](_0x45c4cc){const _0x50d8f6=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x50d8f6['style']['display']='',_0x45c4cc['destroy']();}async['_restoreRevision'](_0x4b7245){const _0x3ebcd2=this['editor'],_0x548a3f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3fd496=_0x3ebcd2['plugins']['get']('RevisionTracker'),_0x2c3011=_0x548a3f['repository']['getRevision'](_0x4b7245);let _0x2bac52,_0x9aeba5,_0x21844d;try{_0x2bac52=await _0x548a3f['getRevisionData'](_0x2c3011),_0x9aeba5=await _0x548a3f['getRevisionRootsAttributes'](_0x2c3011);}catch(_0x42675c){return void console['error'](_0x42675c);}_0x3ebcd2['model']['change'](_0x2a619d=>{for(const _0x3c49b1 of Array['from'](_0x3ebcd2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2a619d['removeMarker'](_0x3c49b1);}),_0x548a3f['isReady']=!0x1,_0x3ebcd2['model']['enqueueChange'](_0x44d84b=>{_0x44d84b['setSelection'](null),_0x44d84b['removeSelectionAttribute'](_0x3ebcd2['model']['document']['selection']['getAttributeKeys']());const _0xf5c96a=Object['keys'](_0x2bac52);for(const _0x32c997 of _0x3ebcd2['model']['document']['roots'])'$graveyard'!=_0x32c997['rootName']&&_0x32c997['isAttached']()&&!_0xf5c96a['includes'](_0x32c997['rootName'])&&_0x44d84b['detachRoot'](_0x32c997);for(const _0x14fde9 of _0xf5c96a){let _0x58d6bd=_0x3ebcd2['model']['document']['getRoot'](_0x14fde9);_0x58d6bd&&_0x58d6bd['isAttached']()||(_0x58d6bd=_0x44d84b['addRoot'](_0x14fde9));const _0x2fd279=_0x9aeba5[_0x14fde9],_0x84a285=Object['keys'](_0x2fd279),_0x8a8740=_0x2bac52[_0x14fde9];for(const _0x5a597c of _0x58d6bd['getAttributeKeys']())_0x84a285['includes'](_0x5a597c)||_0x44d84b['removeAttribute'](_0x5a597c,_0x58d6bd);for(const _0x476c74 of _0x84a285)_0x44d84b['setAttribute'](_0x476c74,_0x9aeba5[_0x14fde9][_0x476c74],_0x58d6bd);_0x44d84b['remove'](_0x44d84b['createRangeIn'](_0x58d6bd)),_0x44d84b['insert'](_0x3ebcd2['data']['parse'](_0x8a8740,_0x58d6bd),_0x58d6bd,0x0);}});const _0x1c19cd=m(_0x3ebcd2['locale'],'Restored');if(_0x2c3011['name'])_0x21844d=-0x1==_0x2c3011['name']['indexOf'](_0x1c19cd)?_0x1c19cd+':\x20'+_0x2c3011['name']:_0x2c3011['name'];else _0x21844d=_0x1c19cd+':\x20'+(_0x2c3011['createdAt']['toLocaleDateString'](_0x3ebcd2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2c3011['createdAt']['toLocaleTimeString'](_0x3ebcd2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3fd496['saveRevision']({'name':_0x21844d}),_0x548a3f['isReady']=!0x0,_0x3ebcd2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x310762){super(_0x310762),this['_revisionViewer']=_0x310762['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x43709f=this['_revisionsRepository']['_revisions'],_0x5efcbe=this['_createRevisionActions'](),_0x59edb8=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x43709f,_0x5efcbe,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',(_0x210359,_0x1d5d53)=>{_0x1d5d53['revisionViews']['on']('add',(_0x3df32a,_0x5a8b47)=>{_0x5a8b47['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)),_0x59edb8['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4d16bf=this['_revisionsRepository']['getRevision'](0x0);if(_0x4d16bf){const _0x173dc3=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4d16bf['id']);this['_revisionViewer']['compare'](_0x4d16bf,_0x173dc3);}}['_handleRevisionSelected'](_0x320828,_0x5e6f71){const _0x69d4ae=this['_revisionsRepository']['getRevision'](_0x5e6f71['id']),_0x17abc9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x69d4ae['id']);this['_revisionViewer']['compare'](_0x69d4ae,_0x17abc9);}['_handleRevisionSetName'](_0x76744d,_0x238093){this['_revisionsRepository']['getRevision'](_0x238093['id'])['setName'](_0x238093['name']);}['_handleDiffChange'](_0x4dd34c,_0x4f3b7c,_0x99d955){const _0xc51225=this['_revisionsRepository']['getRevisionsInDiff'](_0x99d955);_0xc51225['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xc51225),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xc51225[0x0]));}['_createRevisionActions'](){const _0xcbce39=this['editor'],_0x23cdee=w['availableRevisionActions'],_0x2d0509=_0xcbce39['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x2d0509['length'])return _0x2d0509['map'](_0x27193a=>{const _0x411ba5='string'==typeof _0x27193a?Object['assign']({},_0x23cdee[_0x27193a]):_0x27193a;return _0x411ba5['action']=_0x411ba5['action']['bind'](this,_0xcbce39),_0x411ba5['isVisible']&&(_0x411ba5['isVisible']=_0x411ba5['isVisible']['bind'](this,_0xcbce39)),_0x411ba5;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x40563e},_0xcfbb24)=>{const _0xcc7d50=_0x40563e['get'](d),_0x522a0f=_0xcc7d50['repository'];let _0x1aea4a=_0xcc7d50['diff']['newRevisionId'],_0x41e55f=_0xcfbb24['id'];_0x522a0f['getIndex'](_0x1aea4a)>_0x522a0f['getIndex'](_0x41e55f)&&([_0x1aea4a,_0x41e55f]=[_0x41e55f,_0x1aea4a]),_0xcc7d50['compare'](_0x1aea4a,_0x41e55f);},'isVisible':({plugins:_0x31487f},_0x5a502c)=>{const _0x5b433f=_0x31487f['get'](d);return!(_0x5b433f['repository']['getRevisionsInDiff'](_0x5b433f['diff'])['length']>0x2)&&!_0x5a502c['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3a5ef1,{id:_0x539b57})=>{_0x3a5ef1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x539b57);},'isVisible':({plugins:_0x332cf3},_0x3bd8dd)=>!!_0x332cf3['get'](d)['repository']['getLaterVisibleRevision'](_0x3bd8dd['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x123922},{id:_0x57f5c3,revisionNameView:_0x5cdd35})=>{const _0x3de9d3=_0x123922['get'](d),_0x2d840f=_0x3de9d3['repository']['getEarlierVisibleRevision'](_0x57f5c3);_0x3de9d3['compare'](_0x57f5c3,_0x2d840f),_0x5cdd35['focus'](),_0x5cdd35['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xc69d07,_0x5d2423){super(_0xc69d07),this['_view']=_0x5d2423,this['_toolbarConfig']=ot(_0xc69d07['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x5052e4){const _0x1e2d08=this['editor'],_0x41c963=this['view'],_0x16fea9=_0x1e2d08['editing']['view'],_0x48e1a2=_0x41c963['editable'],_0x3106c4=_0x16fea9['document']['getRoot']();_0x48e1a2['name']=_0x3106c4['rootName'],_0x41c963['render']();const _0x2579f5=_0x48e1a2['element'];this['setEditableElement'](_0x48e1a2['name'],_0x2579f5),_0x41c963['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x16fea9['attachDomRoot'](_0x2579f5),this['_elementReplacer']['replace'](_0x5052e4,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4f6868=this['view'],_0x5ea35a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5ea35a['detachDomRoot'](_0x4f6868['editable']['name']),_0x4f6868['destroy']();}['_initToolbar'](){const _0xe3b142=this['view'];_0xe3b142['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xe3b142['stickyPanel']['limiterElement']=_0xe3b142['element'],_0xe3b142['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4f9272})=>_0x4f9272),_0xe3b142['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xe3b142['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x426ae2,_0x5f35d1,_0x2c7bfd={}){super(_0x426ae2),this['stickyPanel']=new ut(_0x426ae2),this['toolbar']=new lt(_0x426ae2,{'shouldGroupWhenFull':_0x2c7bfd['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x426ae2,_0x5f35d1);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x16cdc5,_0x2130c0){super(_0x2130c0),this['sourceElement']=_0x16cdc5,this['model']['document']['createRoot']();const _0x320fc9=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x320fc9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x239e23,_0x525506){const _0x3ec967=new this(_0x239e23,_0x525506);return await _0x3ec967['initPlugins'](),await _0x3ec967['ui']['init'](_0x239e23),await _0x3ec967['data']['init'](_0x3ec967['config']['get']('initialData')||''),_0x3ec967['fire']('ready'),_0x3ec967;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x1c983f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44780b){function _0x496e9c(_0x3cdd10){return _0x3cdd10['map'](_0x263e5d=>String['fromCharCode'](_0x263e5d))['join']('');}super(_0x44780b),this['result']='end',_0x44780b[_0x496e9c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x496e9c([0x76,0x69,0x65,0x77])][_0x496e9c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x496e9c([0x61,0x75,0x74,0x6f]),_0x44780b[_0x496e9c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x496e9c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x496e9c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x496e9c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x496e9c([0x6f,0x6b])});}}class k extends _0x1c983f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x9f6592){if(super(_0x9f6592),!this['editor']['config']['get']('revisionHistory'))throw new _0x3781c3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5e28ad=>this['_showRevisionViewer']({..._0x5e28ad,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x49ab8a=>this['_closeRevisionViewer'](_0x49ab8a)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x13cb10=>this['_restoreRevision'](_0x13cb10)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2f3cc8){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2f3cc8;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x442e18){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x442e18);}['getRevision'](_0x82f1cb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x82f1cb);}['getRevisions'](_0x3464e2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3464e2||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x37986a=this['editor'],_0x41db5e=_0x14ad6d(_0x37986a,p),_0x4d9752=_0x37986a['plugins']['get']('RevisionTracker'),_0x347508=_0x37986a['plugins']['get']('Users')['users'];return _0x41db5e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x41db5e['lazyRoots'],(_0x41db5e['plugins']['push'](Rt,d,g,class extends _0x1c983f{static get['requires'](){return[d,'Users'];}['init'](){const _0x5a746f=this['editor']['plugins']['get']('Users');for(const _0x29a364 of _0x347508)_0x29a364['isAnonymous']||_0x5a746f['getUser'](_0x29a364['id'])||_0x5a746f['addUser'](_0x29a364);const _0x30f5d8=_0x4d9752['repository']['getRevisions']();let _0xa4733b=null;const _0xe1aa6c=this['editor']['plugins']['get']('RevisionViewer');_0xe1aa6c['adapter']=_0x4d9752['adapter'],_0xe1aa6c['bind']('isEnabled')['to'](_0x4d9752),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x37986a,'isReadOnly',_0x5aa528=>!_0x5aa528);for(const _0x44c3fc of _0x30f5d8){const _0x100b59=null===_0x44c3fc['creator'];if(_0x100b59&&_0x44c3fc['toVersion']===_0x44c3fc['fromVersion'])continue;const _0x18b1bf=_0x44c3fc['toJSON']();_0xe1aa6c['addRevisionData'](_0x18b1bf,(_0x4ce73d,_0x19129c,_0x42414f)=>{if(_0x100b59){if(_0xa4733b)_0xa4733b['_update'](_0x4ce73d,_0x19129c);else{if(!_0x19129c){const _0x350832=_0x42414f['toJSON']();_0x350832['id']=_0x731d10(),_0x4d9752['saveRevision'](_0x350832,_0x42414f['toVersion'])['then'](_0x3f0ea2=>{_0xa4733b=_0x3f0ea2;});}}}else _0x44c3fc['_update'](_0x4ce73d,_0x19129c);});}}},w),_0x41db5e);}['_enhanceShowRevisionViewerCallback'](){const _0x3f68c6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5b4aa9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1f4aef=this['editor']['plugins']['get']('Autosave');await _0x1f4aef['save']();}else await _0x5b4aa9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1d30ef=this['editor']['plugins']['get']('Dialog');_0x1d30ef['isOpen']&&_0x1d30ef['hide']();}const _0x5a8ceb=this['_getRevisionViewerEditorConfig']();return _0x3f68c6(_0x5a8ceb)['then'](_0x4bcf49=>{return(this['_viewerEditor']=_0x4bcf49,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x4bcf49;})['catch'](_0x3df6a9=>(console['error'](_0x3df6a9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1727ff=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1727ff(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xf859b2=this['editor']['plugins']['get']('Annotations');_0xf859b2['refreshVisibility'](),_0xf859b2['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5dc57f){const _0x5baa35=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x37563b=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4ba014=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x4ba014,_0x5dc57f)['then'](_0x13edef=>(_0x37563b['style']['display']='block',_0x5baa35['style']['display']='none',_0x13edef));}['_closeRevisionViewer'](_0x950395){const _0x132294=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x132294['style']['display']='',_0x950395['destroy']();}async['_restoreRevision'](_0xeaf33c){const _0x328c94=this['editor'],_0x3372b6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xfb203c=_0x328c94['plugins']['get']('RevisionTracker'),_0x18b473=_0x3372b6['repository']['getRevision'](_0xeaf33c);let _0x41b528,_0x36eae0,_0x28fc68;try{_0x41b528=await _0x3372b6['getRevisionData'](_0x18b473),_0x36eae0=await _0x3372b6['getRevisionRootsAttributes'](_0x18b473);}catch(_0x34f929){return void console['error'](_0x34f929);}_0x328c94['model']['change'](_0x4abb57=>{for(const _0x1ba8b2 of Array['from'](_0x328c94['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4abb57['removeMarker'](_0x1ba8b2);}),_0x3372b6['isReady']=!0x1,_0x328c94['model']['enqueueChange'](_0x4714b2=>{_0x4714b2['setSelection'](null),_0x4714b2['removeSelectionAttribute'](_0x328c94['model']['document']['selection']['getAttributeKeys']());const _0x2beaec=Object['keys'](_0x41b528);for(const _0x28fe31 of _0x328c94['model']['document']['roots'])'$graveyard'!=_0x28fe31['rootName']&&_0x28fe31['isAttached']()&&!_0x2beaec['includes'](_0x28fe31['rootName'])&&_0x4714b2['detachRoot'](_0x28fe31);for(const _0x1040ae of _0x2beaec){let _0x293b0d=_0x328c94['model']['document']['getRoot'](_0x1040ae);_0x293b0d&&_0x293b0d['isAttached']()||(_0x293b0d=_0x4714b2['addRoot'](_0x1040ae));const _0x3e3565=_0x36eae0[_0x1040ae],_0x3e5f5f=Object['keys'](_0x3e3565),_0x492c78=_0x41b528[_0x1040ae];for(const _0x3daa2c of _0x293b0d['getAttributeKeys']())_0x3e5f5f['includes'](_0x3daa2c)||_0x4714b2['removeAttribute'](_0x3daa2c,_0x293b0d);for(const _0x3fe610 of _0x3e5f5f)_0x4714b2['setAttribute'](_0x3fe610,_0x36eae0[_0x1040ae][_0x3fe610],_0x293b0d);_0x4714b2['remove'](_0x4714b2['createRangeIn'](_0x293b0d)),_0x4714b2['insert'](_0x328c94['data']['parse'](_0x492c78,_0x293b0d),_0x293b0d,0x0);}});const _0x1d3f89=m(_0x328c94['locale'],'Restored');if(_0x18b473['name'])_0x28fc68=-0x1==_0x18b473['name']['indexOf'](_0x1d3f89)?_0x1d3f89+':\x20'+_0x18b473['name']:_0x18b473['name'];else _0x28fc68=_0x1d3f89+':\x20'+(_0x18b473['createdAt']['toLocaleDateString'](_0x328c94['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x18b473['createdAt']['toLocaleTimeString'](_0x328c94['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xfb203c['saveRevision']({'name':_0x28fc68}),_0x3372b6['isReady']=!0x0,_0x328c94['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};