@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250102.0 → 0.0.0-nightly-20250104.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 _0x16ad9e,uid as _0x49b2b2,Collection as _0x24f698,logWarning as _0x263ef1,FocusTracker as _0xf20832,KeystrokeHandler as _0x282e49,scrollViewportToShowTarget as _0x2ad45b,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x53c33b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2b9a95,set as _0x90e3f0,unset as _0x4f9793,isEqual as _0x23f9d9}from'lodash-es';import{Plugin as _0x27bfb5,PendingActions as _0x382727,icons as _0x1fbbe3,Command as _0x419747,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3253d7,getMarkerDomElement as _0x4c1d78,ConfirmMixin as ti,sanitizeEditorConfig as _0x25769a}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2d7291,ViewText as _0x309635,ViewElement as _0x3489bf,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x1cf001,ViewAttributeElement as _0x14893b,ViewEmptyElement as _0x815d87,ViewRawElement as _0xa92a0d,ViewUIElement as _0x34b803,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x105f99,submitHandler as _0x24b08d,LabeledFieldView as _0x3bef68,createLabeledInputText as _0x4d2d9f,createDropdown as _0x327b70,ListView as _0x3362f5,ListItemView as _0x2be56c,ButtonView as te,MenuBarMenuView as _0x236325,MenuBarMenuListView as _0x3ecedc,MenuBarMenuListItemView as _0x391bac,MenuBarMenuListItemButtonView as _0x47c8b3,ContextualBalloon as _0x112130,ToolbarSeparatorView as _0x4e96f3,IconView as _0x32e90e,addListToDropdown as to,ViewModel as _0x2cea3a,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x49cbb2}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x16ad9e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x53e82f){super(),this['id']=_0x53e82f['id']||_0x49b2b2(),this['creator']=_0x53e82f['creator']||null,this['authors']=_0x53e82f['authors']||[],this['diffData']=_0x53e82f['diffData']||null,this['toVersion']=_0x53e82f['toVersion']||0x0,this['fromVersion']=_0x53e82f['fromVersion']||0x0,this['set']('name',_0x53e82f['name']||''),this['set']('createdAt',_0x53e82f['createdAt']||new Date()),this['set']('attributes',_0x53e82f['attributes']||{});}['setName'](_0x511392){this['_update']({'name':_0x511392});}['setAttribute'](_0x43dbde,_0xf8623f){const _0x13a812=_0x2b9a95(this['attributes']);_0x90e3f0(_0x13a812,_0x43dbde,_0xf8623f),this['_update']({'attributes':_0x13a812});}['removeAttribute'](_0x5051c8){const _0x390dab=_0x2b9a95(this['attributes']);_0x4f9793(_0x390dab,_0x5051c8),this['_update']({'attributes':_0x390dab});}['_update'](_0x38d1ef,_0x5e6853=!0x1){let _0x4f8060=!0x1;const _0x1391af={'id':this['id']},_0x37f8ad=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x282257 of _0x37f8ad){const _0x10efad=_0x38d1ef[_0x282257];void 0x0!==_0x10efad&&_0x10efad!==this[_0x282257]&&(this[_0x282257]=_0x10efad,_0x1391af[_0x282257]=_0x10efad,_0x4f8060=!0x0);}_0x4f8060&&(_0x1391af['authors']&&(_0x1391af['authorsIds']=_0x1391af['authors']['map'](_0x3cd2a2=>_0x3cd2a2['id']),delete _0x1391af['authors']),this['fire']('_update',_0x1391af,_0x5e6853));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5a1c96=>_0x5a1c96['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x27bfb5{['_revisions'];static get['requires'](){return[_0x3253d7];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x50dddf){super(_0x50dddf),this['_revisions']=new _0x24f698();}['afterInit'](){!async function(_0x179738){const _0x29186=_0x3daf34([0x51,0x64,0x79,0x44,0x32,0x53,0x4e,0x49,0x41,0x42,0x46,0x43,0x75,0x68,0x31,0x4a,0x69,0x55,0x73,0x77,0x58,0x59,0x6c,0x66,0x67,0x50,0x30,0x6b,0x6d,0x57,0x36,0x7a,0x4c,0x6f,0x56,0x37,0x70,0x35,0x33,0x47,0x71,0x38,0x4d,0x6e,0x61,0x4f,0x78,0x62,0x65,0x74,0x5a,0x54,0x63,0x4b,0x72,0x6a,0x76,0x39,0x48,0x52,0x45,0x34]),_0x46ecfb=0xeb829,_0x5b25fa=0x405d899c,_0x88b36f=0x405ad2ec^_0x5b25fa,_0x252d22=window[_0x3daf34([0x44,0x61,0x74,0x65])][_0x3daf34([0x6e,0x6f,0x77])](),_0x2ea138=_0x179738[_0x3daf34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x50cddb=new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51cdcd=>{_0x2ea138[_0x3daf34([0x6f,0x6e,0x63,0x65])](_0x3daf34([0x72,0x65,0x61,0x64,0x79]),_0x51cdcd);}),_0x30a349={[_0x3daf34([0x6b,0x74,0x79])]:_0x3daf34([0x45,0x43]),[_0x3daf34([0x75,0x73,0x65])]:_0x3daf34([0x73,0x69,0x67]),[_0x3daf34([0x63,0x72,0x76])]:_0x3daf34([0x50,0x2d,0x32,0x35,0x36]),[_0x3daf34([0x78])]:_0x3daf34([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]),[_0x3daf34([0x79])]:_0x3daf34([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]),[_0x3daf34([0x61,0x6c,0x67])]:_0x3daf34([0x45,0x53,0x32,0x35,0x36])},_0x360883=_0x2ea138[_0x3daf34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3daf34([0x67,0x65,0x74])](_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e6979(){let _0x2b4dd7,_0x3d5bd=null,_0x26ec06=null;try{if(_0x360883==_0x3daf34([0x47,0x50,0x4c]))return _0x3daf34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b4dd7=_0x28b455(),!_0x2b4dd7)return _0x3daf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b4dd7[_0x3daf34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26ec06=_0x4b44d6(_0x2b4dd7[_0x3daf34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b4dd7[_0x3daf34([0x6a,0x74,0x69])])),await _0x4b393d()?_0x45fed4()?_0x4478df()?_0x3daf34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x518f26()?(_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3daf34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3d5bd=_0x54832f(_0x3daf34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3daf34([0x74,0x72,0x69,0x61,0x6c])&&(_0x3d5bd=_0x54832f(_0x3daf34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3daf34([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3d5bd=_0x54832f(_0x3daf34([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xf3c372()):_0x3daf34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3daf34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3daf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x4cbe8e){return _0x3daf34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4478df(){const _0x4e75f5=[_0x3daf34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3daf34([0x74,0x72,0x69,0x61,0x6c])][_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x252d22/0x3e8:0xe10*_0x88b36f;return _0x2b4dd7[_0x3daf34([0x65,0x78,0x70])]<_0x4e75f5;}function _0x45fed4(){const _0x2d9fcc=_0x2b4dd7[_0x3daf34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2d9fcc)return!0x1;if(_0x2d9fcc[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x2a])))return!0x0;if(_0x2d9fcc[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x52,0x48])))return!0x0;if(_0x2d9fcc[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x52,0x52,0x48]))){if(_0x3c0712())return!0x0;if(_0x408483()||_0x20dc50())return!0x0;}return!0x1;}function _0x518f26(){const _0x5732e2=_0x2b4dd7[_0x3daf34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5732e2||0x0==_0x5732e2[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x486694}=new URL(window[_0x3daf34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5732e2[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x486694))return!0x0;const _0x5669d0=_0x486694[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e]));return _0x5732e2[_0x3daf34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2160c4=>_0x2160c4[_0x3daf34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3daf34([0x2a])))[_0x3daf34([0x6d,0x61,0x70])](_0x44d033=>_0x44d033[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e])))[_0x3daf34([0x73,0x6f,0x6d,0x65])](_0x2a1216=>_0x5669d0[_0x3daf34([0x65,0x76,0x65,0x72,0x79])]((_0x1cf0ce,_0x1d7e49)=>_0x2a1216[_0x1d7e49]===_0x1cf0ce||_0x2a1216[_0x1d7e49]===_0x3daf34([0x2a])));}function _0xf3c372(){return _0x3d5bd&&_0x26ec06?new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cd04e,_0x23f4b7)=>{_0x3d5bd[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x2cd04e,_0x23f4b7),_0x26ec06[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x2decda=>{_0x2decda!=_0x3daf34([0x56,0x61,0x6c,0x69,0x64])&&_0x2cd04e(_0x2decda);},_0x23f4b7);}):_0x3d5bd||_0x26ec06||_0x3daf34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b44d6(_0x20a1e8,_0x137a10){return new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2efd79=>{if(_0x3fd7e3())return _0x2efd79(_0x3daf34([0x56,0x61,0x6c,0x69,0x64]));_0x4f495d(),_0x2ea138[_0x3daf34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3daf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4ed219=!0x1;const _0x1d0f73=_0x49b2b2();function _0x2acff9(_0x502d77){return!!_0x502d77&&(typeof _0x502d77===_0x3daf34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x502d77===_0x3daf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x502d77[_0x3daf34([0x74,0x68,0x65,0x6e])]===_0x3daf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x502d77[_0x3daf34([0x63,0x61,0x74,0x63,0x68])]===_0x3daf34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x423f8d(_0xbbc9a6){_0x54d5ca(_0xbbc9a6)[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x413b3b=>{if(!_0x413b3b||_0x413b3b[_0x3daf34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3daf34([0x6f,0x6b]))return _0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x572711(_0x158add(_0x1d0f73+_0x137a10))!=_0x413b3b[_0x3daf34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3daf34([0x56,0x61,0x6c,0x69,0x64]);})[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x1f6ca6=>(_0x534217(),_0x1f6ca6),()=>{const _0x387e2d=_0x2da112();return null==_0x387e2d?(_0x534217(),_0x3daf34([0x56,0x61,0x6c,0x69,0x64])):_0x3daf34(_0x252d22-_0x387e2d>(0x64510d9c^_0x5b25fa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x2efd79)[_0x3daf34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2efd79(_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4bb09e=0x406b671c^_0x5b25fa;function _0x534217(){const _0x4dd4c9=_0x3daf34([0x6c,0x6c,0x63,0x74,0x2d])+_0x572711(_0x158add(_0x20a1e8)),_0x4bf69d=_0x1d3aec(_0x572711(window[_0x3daf34([0x4d,0x61,0x74,0x68])][_0x3daf34([0x63,0x65,0x69,0x6c])](_0x252d22/_0x4bb09e)));window[_0x3daf34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3daf34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dd4c9,_0x4bf69d);}function _0x2da112(){const _0x334483=_0x3daf34([0x6c,0x6c,0x63,0x74,0x2d])+_0x572711(_0x158add(_0x20a1e8)),_0x5ec565=window[_0x3daf34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3daf34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x334483);return _0x5ec565?window[_0x3daf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d3aec(_0x5ec565),0x10)*_0x4bb09e:null;}function _0x54d5ca(_0x520222){return new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49b893,_0x1069c9)=>{_0x520222[_0x3daf34([0x74,0x68,0x65,0x6e])](_0x49b893,_0x1069c9),window[_0x3daf34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1069c9,0x405c5d5c^_0x5b25fa);});}}_0x2ea138[_0x3daf34([0x6f,0x6e])](_0x3daf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x361a00,_0x3c986b)=>{if(_0x3c986b[0x0]!=_0x20a1e8)return _0x2efd79(_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c986b[0x1]={..._0x3c986b[0x1],[_0x3daf34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1d0f73};},{[_0x3daf34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3daf34([0x68,0x69,0x67,0x68])}),_0x2ea138[_0x3daf34([0x6f,0x6e])](_0x3daf34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4dbdbb=>{_0x2acff9(_0x4dbdbb[_0x3daf34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4ed219=!0x0,_0x423f8d(_0x4dbdbb[_0x3daf34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3daf34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3daf34([0x6c,0x6f,0x77])}),_0x50cddb[_0x3daf34([0x74,0x68,0x65,0x6e])](()=>{_0x4ed219||_0x2efd79(_0x3daf34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3fd7e3(){return _0x2ea138[_0x3daf34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3daf34([0x76,0x69,0x65,0x77])][_0x3daf34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3daf34([0x61,0x75,0x74,0x6f]);}function _0x4f495d(){_0x2ea138[_0x3daf34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3daf34([0x76,0x69,0x65,0x77])][_0x3daf34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3daf34([0x61,0x75,0x74,0x6f]);}}function _0x54832f(_0x4df090){const _0xa643fe=[new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1188bb=>setTimeout(_0x1188bb,0x4054b750^_0x5b25fa)),_0x50cddb[_0x3daf34([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf3c566=>{const _0x8d5ea=0x405d899b^_0x5b25fa,_0x5138a7=_0x179738[_0x3daf34([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x364cc1(){_0x5138a7[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x8d5ea&&_0xf3c566();}_0x364cc1(),_0x5138a7[_0x3daf34([0x6f,0x6e])](_0x3daf34([0x61,0x64,0x64]),_0x364cc1);})),new window[(_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7a1ea3=>{function _0x2a1b08(){for(const _0x26d39b in window)if(window[_0x3daf34([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3daf34([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x26d39b))&&window[_0x26d39b]==_0x46ecfb)return _0x7a1ea3();_0x2ea138[_0x3daf34([0x73,0x74,0x61,0x74,0x65])]!=_0x3daf34([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3daf34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a1b08,0x405d9a14^_0x5b25fa);}_0x5e11a9(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2a1b08();})];return window[_0x3daf34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3daf34([0x72,0x61,0x63,0x65])](_0xa643fe)[_0x3daf34([0x74,0x68,0x65,0x6e])](()=>_0x4df090);}async function _0x348dc5(){if(await _0x50cddb,_0x5e11a9(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1ead5e=_0x179738[_0x3daf34([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x553371=_0x179738[_0x3daf34([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])](_0x1ead5e[_0x3daf34([0x69,0x64])]),_0x4e4ad0=_0x40b1d7(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4e4ad0[_0x3daf34([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1ead5e['id'],_0x553371?_0x553371['id']:null,!0x0),_0x4e4ad0[_0x3daf34([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4e4ad0[_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4e4ad0[_0x3daf34([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5cc247,void(_0x4e4ad0[_0x3daf34([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5cc247);}if(_0x5e11a9(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x472eb3=_0x40b1d7(_0x3daf34([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x472eb3[_0x3daf34([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x472eb3[_0x3daf34([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x472eb3[_0x3daf34([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5cc247,_0x472eb3[_0x3daf34([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5cc247;}_0x2ea138[_0x3daf34([0x6d,0x6f,0x64,0x65,0x6c])][_0x3daf34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cc247,_0x2ea138[_0x3daf34([0x6d,0x6f,0x64,0x65,0x6c])][_0x3daf34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cc247,_0x2ea138[_0x3daf34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3daf34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c0712(){return _0x5e11a9(_0x3daf34([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x40b1d7(_0x3daf34([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3daf34([0x73,0x74,0x61,0x74,0x65])]==_0x3daf34([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x408483(){return _0x5e11a9(_0x3daf34([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 _0x20dc50(){return _0x5e11a9(_0x3daf34([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3cc412(_0x1f6f1b){const _0x3ce969=_0x83e8a1();_0x2ea138[_0x3ce969]=_0x3daf34([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])+_0x1f6f1b,_0x1f6f1b[_0x3daf34([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3daf34([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x83e8a1()]=_0x46ecfb),_0x1f6f1b!=_0x3daf34([0x56,0x61,0x6c,0x69,0x64])&&_0x348dc5();}function _0x83e8a1(){const _0x2ea970=window[_0x3daf34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3daf34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3daf34([0x6e,0x6f,0x77])]())[_0x3daf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3daf34([0x2e]),'');let _0x3379da=_0x3daf34([0x51]);for(let _0x343cb8=0x0;_0x343cb8<_0x2ea970[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x343cb8+=0x2){let _0x5b2be0=window[_0x3daf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ea970[_0x3daf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x343cb8,_0x343cb8+0x2));_0x5b2be0>=_0x29186[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b2be0-=_0x29186[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3379da+=_0x29186[_0x5b2be0];}return _0x3379da;}function _0x28b455(){const _0x2d198e=_0x360883[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e]));if(0x3!=_0x2d198e[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4f0c9d(_0x2d198e[0x1]);function _0x4f0c9d(_0x4f4b7a){const _0x325eec=_0x22ae10(_0x4f4b7a);return _0x325eec&&_0x41eebe()?_0x325eec:null;function _0x41eebe(){const _0x31134b=_0x325eec[_0x3daf34([0x6a,0x74,0x69])],_0x489402=window[_0x3daf34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31134b[_0x3daf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x31134b[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x296af3={..._0x325eec,[_0x3daf34([0x6a,0x74,0x69])]:_0x31134b[_0x3daf34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x31134b[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x296af3[_0x3daf34([0x76,0x63])],_0x158add(_0x296af3)==_0x489402;}}}async function _0x4b393d(){let _0x5a9f97=!0x0;try{const _0x5954ed=_0x360883[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])](_0x3daf34([0x2e])),[_0xe541af,_0x5a54cc,_0x2acc4c]=_0x5954ed;return _0x14ccf0(_0xe541af),await _0x3278e6(_0xe541af,_0x5a54cc,_0x2acc4c),_0x5a9f97;}catch(_0x2197ae){return!0x1;}function _0x14ccf0(_0xb7e847){const _0x2f6559=_0x22ae10(_0xb7e847);_0x2f6559&&_0x2f6559[_0x3daf34([0x61,0x6c,0x67])]==_0x3daf34([0x45,0x53,0x32,0x35,0x36])||(_0x5a9f97=!0x1);}async function _0x3278e6(_0x209e16,_0x1dba54,_0x2f9e43){const _0x410369=window[_0x3daf34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3daf34([0x66,0x72,0x6f,0x6d])](_0xe5e4aa(_0x2f9e43),_0x1675b2=>_0x1675b2[_0x3daf34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19a98b=new window[(_0x3daf34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3daf34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x209e16+_0x3daf34([0x2e])+_0x1dba54),_0x53bac4=window[_0x3daf34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3daf34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53bac4)return;const _0x4074de=await _0x53bac4[_0x3daf34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3daf34([0x6a,0x77,0x6b]),_0x30a349,{[_0x3daf34([0x6e,0x61,0x6d,0x65])]:_0x3daf34([0x45,0x43,0x44,0x53,0x41]),[_0x3daf34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3daf34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3daf34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53bac4[_0x3daf34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3daf34([0x6e,0x61,0x6d,0x65])]:_0x3daf34([0x45,0x43,0x44,0x53,0x41]),[_0x3daf34([0x68,0x61,0x73,0x68])]:{[_0x3daf34([0x6e,0x61,0x6d,0x65])]:_0x3daf34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4074de,_0x410369,_0x19a98b)||(_0x5a9f97=!0x1);}}function _0x22ae10(_0x24fd1c){return _0x24fd1c[_0x3daf34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3daf34([0x65,0x79]))?JSON[_0x3daf34([0x70,0x61,0x72,0x73,0x65])](_0xe5e4aa(_0x24fd1c)):null;}function _0xe5e4aa(_0x5eb733){return window[_0x3daf34([0x61,0x74,0x6f,0x62])](_0x5eb733[_0x3daf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3daf34([0x2b]))[_0x3daf34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3daf34([0x2f])));}function _0x158add(_0x5c6615){let _0xd92dbd=0x1505;function _0x2aa56b(_0x8c8104){for(let _0x23cce2=0x0;_0x23cce2<_0x8c8104[_0x3daf34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23cce2++){const _0x4fe018=_0x8c8104[_0x3daf34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x23cce2);_0xd92dbd=(_0xd92dbd<<0x5)+_0xd92dbd+_0x4fe018,_0xd92dbd&=_0xd92dbd;}}function _0x1f2afe(_0x3c7492){Array[_0x3daf34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c7492)?_0x3c7492[_0x3daf34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f2afe):_0x3c7492&&typeof _0x3c7492==_0x3daf34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3daf34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c7492)[_0x3daf34([0x73,0x6f,0x72,0x74])]()[_0x3daf34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x205236,_0x433d3b])=>{_0x2aa56b(_0x205236),_0x1f2afe(_0x433d3b);}):_0x2aa56b(window[_0x3daf34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c7492));}return _0x1f2afe(_0x5c6615),_0xd92dbd>>>0x0;}function _0x572711(_0x3dd9ba){return _0x3dd9ba[_0x3daf34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3daf34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3daf34([0x30]));}function _0x1d3aec(_0x25d67e){return _0x25d67e[_0x3daf34([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3daf34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3daf34([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e11a9(_0x4293e9){return _0x2ea138[_0x3daf34([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3daf34([0x68,0x61,0x73])](_0x4293e9);}function _0x40b1d7(_0x2d2ee6){return _0x2ea138[_0x3daf34([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3daf34([0x67,0x65,0x74])](_0x2d2ee6);}function _0x5cc247(){}function _0x3daf34(_0x3e1c5e){return _0x3e1c5e['map'](_0xbc90ba=>String['fromCharCode'](_0xbc90ba))['join']('');}_0x3cc412(await _0x3e6979());}(this);}['createRevision'](_0x4f124d){const _0xc1d1a1=this['editor']['plugins']['get']('Users');return new a({'id':_0x4f124d['id'],'name':_0x4f124d['name'],'creator':_0x4f124d['creatorId']?_0xc1d1a1['getUser'](_0x4f124d['creatorId']):null,'diffData':_0x4f124d['diffData']||_0x4f124d['data'],'authors':_0x4f124d['authorsIds']['map'](_0x543392=>_0xc1d1a1['getUser'](_0x543392)),'createdAt':new Date(_0x4f124d['createdAt']),'attributes':_0x4f124d['attributes'],'fromVersion':_0x4f124d['fromVersion'],'toVersion':_0x4f124d['toVersion']});}['addRevision'](_0x228128,_0x299714=0x0){this['_revisions']['add'](_0x228128,_0x299714);}['getRevision'](_0xf430e9){return this['_revisions']['get'](_0xf430e9);}['getRevisions'](_0x304ab8={'toJSON':!0x1}){const _0xa9e0c3=Array['from'](this['_revisions']);return _0xa9e0c3['reverse'](),_0x304ab8['toJSON']?_0xa9e0c3['map'](_0x3e39c3=>_0x3e39c3['toJSON']()):_0xa9e0c3;}['getIndex'](_0x54b95f){return this['_revisions']['getIndex'](_0x54b95f);}['getEarlierVisibleRevision'](_0x40e6ba){const [,_0x168b1c]=this['getRevisionsIterator'](_0x40e6ba,{'direction':'earlier'});return _0x168b1c;}['getLaterVisibleRevision'](_0x17e789){const [,_0x142c51]=this['getRevisionsIterator'](_0x17e789,{'direction':'later'});return _0x142c51;}['getRevisionsInDiff'](_0x57e9ef){const _0xdbf1e7=[];for(const _0x3a8f76 of this['getRevisionsIterator'](_0x57e9ef['newRevisionId']))if(_0xdbf1e7['push'](_0x3a8f76),_0x3a8f76['id']===_0x57e9ef['oldRevisionId'])break;return _0xdbf1e7;}*['getRevisionsIterator'](_0x42fc33,{direction:_0x1457f1='earlier',filter:_0x3daa93=()=>!0x0}={}){const _0x195d03='earlier'===_0x1457f1?0x1:-0x1;let _0x5044a2=this['_revisions']['get'](_0x42fc33),_0x3deebb=this['getIndex'](_0x5044a2);for(yield _0x5044a2;_0x5044a2;){if(_0x3deebb+=_0x195d03,_0x5044a2=this['getRevision'](_0x3deebb),!_0x5044a2)return;_0x3daa93(_0x5044a2)&&(yield _0x5044a2);}}}function R(_0x301c55,_0x42b82d,_0x3ee0ff){const t=_0x301c55['t'];switch(_0x42b82d){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'},_0x3ee0ff);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3ee0ff);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 C={'c':_0x1cf001,'a':_0x14893b,'e':_0x815d87,'r':_0xa92a0d,'u':_0x34b803};class l extends _0x27bfb5{['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[_0x3253d7,j,_0x382727];}constructor(_0x3303ed){super(_0x3303ed),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xb1856f=_0x49b2b2();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xb1856f},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 _0x576683=this['repository']['getRevision'](0x0),_0x3f7f5d=_0x576683&&null===_0x576683['creator']?_0x576683:null;if(this['_continueCurrentRevision']=!!_0x3f7f5d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x50db27=this['_source']['getCurrentRevisionId'](),_0x3d1064=this['repository']['getRevision'](_0x50db27);if(_0x3d1064)this['_startingVersion']=_0x3d1064['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5cc675=this['_source']['history']['_operations']['find'](_0x123b56=>!_0x123b56['_isInit']),_0x2e75d8=_0x5cc675?_0x5cc675['baseVersion']:this['_source']['history']['version'];_0x576683?(_0x576683['toVersion']<_0x2e75d8&&_0x576683['_update']({'toVersion':_0x2e75d8}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3f7f5d['id'],this['_startingVersion']=_0x3f7f5d['fromVersion']):(this['_startingVersion']=_0x576683['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2e75d8,this['_continueCurrentRevision']=!0x1);}}else _0x3f7f5d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3f7f5d['toVersion'],this['editor']['model']['document']['history']['version']),_0x3f7f5d['fromVersion']===_0x3f7f5d['toVersion']?(0x0!==_0x3f7f5d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3f7f5d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3f7f5d['id'],this['_startingVersion']=_0x3f7f5d['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',_0x3713ec=>!_0x3713ec),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x120bbc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4b2dca;for(const _0x1b8166 in _0x120bbc){const _0x36eabd=_0x1b8166,_0x4c74b9=_0x120bbc[_0x36eabd];if('revisionHistoryLicenseKeyValid'==_0x4c74b9||'revisionHistoryLicenseKeyInvalid'==_0x4c74b9||'revisionHistoryLicenseKeyExpired'==_0x4c74b9||'revisionHistoryLicenseKeyDomainLimit'==_0x4c74b9||'revisionHistoryLicenseKeyNotAllowed'==_0x4c74b9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4c74b9||'revisionHistoryLicenseKeyTrialLimit'==_0x4c74b9||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4c74b9||'revisionHistoryLicenseKeyUsageLimit'==_0x4c74b9){delete _0x120bbc[_0x36eabd],_0x4b2dca=_0x4c74b9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4b2dca&&_0x120bbc['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4b2dca&&_0x120bbc['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4b2dca&&_0x120bbc['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4b2dca&&_0x120bbc['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5508f0=this['repository']['getRevision'](0x0),_0x32fac1=await this['getRevisionDocumentData'](_0x5508f0),_0x1874d1=await this['getRevisionRootsAttributes'](_0x5508f0);this['_replaceEditorDataWithRevisionData'](_0x32fac1,_0x1874d1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xad9af6){this['_source']=_0xad9af6;}async['update'](){const _0x379c5d=await this['_source']['getLatestVersion']();if(_0x379c5d>this['currentRevision']['toVersion']){await this['_loadState']();const _0xa96159=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x379c5d});_0xa96159['authors']=_0xa96159['authorsIds']['map'](_0x2d0faa=>this['editor']['plugins']['get']('Users')['getUser'](_0x2d0faa)),this['currentRevision']['_update'](_0xa96159);}}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'](_0x691d36={},_0x2739fa=null){const _0x1edd8b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2739fa>this['currentRevision']['toVersion']&&(_0x2739fa=null),null===_0x2739fa&&(_0x2739fa=await this['_source']['getLatestVersion']());const _0x2ed99d=this['_getFromVersion'](_0x2739fa),_0xd8afa7=this['buildRevisionData']({'from':_0x2ed99d,'to':_0x2739fa});if(this['currentRevision']['toVersion']<_0x2739fa){const _0xf9a99=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2739fa,'to':_0x2739fa});_0xf9a99['authors']=[],_0xf9a99['authorsIds']=[],_0xf9a99['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xf9a99,!0x0),delete _0xf9a99['authors'],_0x1edd8b['push'](_0xf9a99);}_0x691d36['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x691d36['name']=_0x691d36['name']||null,_0x691d36['id']=_0x691d36['id']||_0x49b2b2(),_0x691d36={..._0x691d36,..._0xd8afa7};const _0x33f230=this['addRevisionData'](_0x691d36);_0x1edd8b['push'](_0x691d36);const _0x34300b=this['repository']['getIndex'](_0x33f230);if(0x0!==_0x34300b){const _0x333087=this['repository']['getRevision'](_0x34300b-0x1);if(_0x333087['fromVersion']!==_0x2739fa){const _0x31eed3=this['_revisionDataBuilder']['getData'](_0x2739fa,_0x333087['toVersion']),_0x2d7207={'id':_0x333087['id'],'diffData':_0x31eed3['diffData'],'authorsIds':_0x31eed3['authorsIds'],'authors':_0x31eed3['authorsIds']['map'](_0x90f6c3=>this['editor']['plugins']['get']('Users')['getUser'](_0x90f6c3)),'fromVersion':_0x2739fa};_0x333087===this['currentRevision']&&(_0x2d7207['createdAt']=new Date(_0x691d36['createdAt']['getTime']()+0xa)),_0x333087['_update'](_0x2d7207,!0x0),delete _0x2d7207['authors'],_0x1edd8b['push'](_0x2d7207);}}if(this['adapter']){for(const _0x813e7 of _0x1edd8b)this['_bufferUpdate'](_0x813e7['id'],_0x813e7,!0x0);this['sendBufferedUpdates']();}return _0x33f230;}['addRevisionData'](_0x5dc0e6){const _0x59a0ac=this['repository']['createRevision'](_0x5dc0e6);return this['adapter']&&_0x59a0ac['on']('_update',(_0x1c9927,_0x5d18ff,_0x5ea2ca)=>{_0x5ea2ca||(this['_bufferUpdate'](_0x5d18ff['id'],_0x5d18ff,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x59a0ac,this['_findInsertionIndex'](_0x59a0ac)),_0x59a0ac;}async['getRevisionDocumentData'](_0x3fd0d5){await this['_loadRevisionData'](_0x3fd0d5);const _0x525de9={};for(const _0x52fc58 in _0x3fd0d5['diffData']){if(_0x3fd0d5['diffData'][_0x52fc58]['attachChange']&&!_0x3fd0d5['diffData'][_0x52fc58]['attachChange']['isAttached'])continue;const _0x238b58=this['_removeRevisionMarkers'](JSON['parse'](_0x3fd0d5['diffData'][_0x52fc58]['insertions'])),_0x4197a2=this['editor']['editing']['view']['document'],_0x481c97=new _0x2d7291(_0x4197a2,_0x238b58['map'](_0x454dc7=>V(_0x454dc7,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x525de9[_0x52fc58]=this['editor']['data']['processor']['toData'](_0x481c97),this['editor']['data']['processor']['useFillerType']('default');}return _0x525de9;}async['getRevisionRootsAttributes'](_0x34d89e){await this['_loadRevisionData'](_0x34d89e);const _0x3ce859={};for(const _0xae3eb7 in _0x34d89e['diffData'])_0x34d89e['diffData'][_0xae3eb7]['attachChange']&&!_0x34d89e['diffData'][_0xae3eb7]['attachChange']['isAttached']||(_0x3ce859[_0xae3eb7]=_0x34d89e['diffData'][_0xae3eb7]['attributesAfter']||{});return _0x3ce859;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x21c2ba=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1b420e=0x0;_0x1b420e<_0x21c2ba['length'];_0x1b420e++){const _0x1d3e1e=_0x21c2ba[_0x1b420e];let _0x3a742f=!0x1;for(const _0x7a59b2 of Object['keys'](_0x1d3e1e))void 0x0===_0x1d3e1e[_0x7a59b2]?delete _0x1d3e1e[_0x7a59b2]:'id'!==_0x7a59b2&&(_0x3a742f=!0x0);_0x3a742f||(_0x21c2ba[_0x1b420e]=null);}if(_0x21c2ba=_0x21c2ba['filter'](_0x2de3c5=>null!==_0x2de3c5),!_0x21c2ba['length'])return;for(let _0x320f87=0x0;_0x320f87<_0x21c2ba['length'];_0x320f87++){const _0x482b5b=_0x21c2ba[_0x320f87];void 0x0!==_0x482b5b['fromVersion']&&void 0x0===_0x482b5b['toVersion']&&(_0x482b5b['toVersion']=this['repository']['getRevision'](_0x482b5b['id'])['toVersion']),void 0x0!==_0x482b5b['toVersion']&&void 0x0===_0x482b5b['fromVersion']&&(_0x482b5b['fromVersion']=this['repository']['getRevision'](_0x482b5b['id'])['fromVersion']);}const _0x25c7ee=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x21c2ba,_0x25c7ee)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x294161=>{if(_0x294161){for(const _0x5c7082 of _0x294161)this['setRevisionData']({'id':_0x5c7082['id'],'createdAt':_0x5c7082['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2e0073,_0x460ebc){let _0x23d465=this['editor']['config']['get']('initialData'),_0xff5a23=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x23d465){_0x23d465={};for(const _0x17b390 of this['editor']['model']['document']['getRootNames']())_0x23d465[_0x17b390]='';}if('string'==typeof _0x23d465&&(_0x23d465={'main':_0x23d465}),void 0x0===_0xff5a23){_0xff5a23={};for(const _0x330c84 of this['editor']['model']['document']['getRootNames']())_0xff5a23[_0x330c84]={};}let _0x47995a=!0x1;const _0x2c7baa=Object['keys'](_0x23d465),_0x5d9994=Object['keys'](_0x2e0073);for(const _0x4364c6 of _0x2c7baa){if(_0x23d465[_0x4364c6]!==_0x2e0073[_0x4364c6]&&''!==_0x23d465[_0x4364c6]['trim']()){_0x47995a=!0x0;break;}if(!_0x23f9d9(_0xff5a23[_0x4364c6],_0x460ebc[_0x4364c6])&&Object['keys'](_0xff5a23[_0x4364c6])['length']>0x0){_0x47995a=!0x0;break;}}_0x47995a||(_0x47995a=_0x5d9994['some'](_0x303e84=>!this['editor']['model']['document']['getRoot'](_0x303e84))),_0x47995a&&_0x263ef1('editor-initial-data-replaced-with-revision-data',{'editorData':_0x23d465,'editorRootsAttributes':_0xff5a23,'revisionData':_0x2e0073,'revisionRootsAttributes':_0x460ebc}),this['editor']['config']['set']('initialData',_0x2e0073),this['editor']['config']['set']('rootsAttributes',_0x460ebc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x51131d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x51131d['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x36a908){const _0x71f104=this['repository']['getRevisions']();_0x71f104['reverse']();let _0x209974=0x0;for(;_0x209974<_0x71f104['length'];){const _0xe12989=_0x71f104[_0x209974];if(_0xe12989===this['currentRevision']){_0x209974++;continue;}if(_0xe12989['id']===this['_initialRevisionId'])break;const _0x7bd985=_0x36a908['toVersion']-_0xe12989['toVersion']||_0x36a908['fromVersion']-_0xe12989['fromVersion'];if(_0x7bd985>0x0)break;if(_0x7bd985<0x0)_0x209974++;else{if(!_0x36a908['creator']&&_0xe12989['creator'])break;if(_0xe12989['creator']||!_0x36a908['creator']){if(_0x36a908['createdAt']>_0xe12989['createdAt'])break;_0x209974++;}else _0x209974++;}}return _0x209974;}['setRevisionData'](_0xf1b75e){const _0x323f0d=this['repository']['getRevision'](_0xf1b75e['id']);if(_0xf1b75e['createdAt']&&(_0xf1b75e['createdAt']=new Date(_0xf1b75e['createdAt'])),_0xf1b75e['authorsIds']){const _0x1a03dd=this['editor']['plugins']['get']('Users');_0xf1b75e['authors']=_0xf1b75e['authorsIds']['map'](_0x3114d1=>_0x1a03dd['getUser'](_0x3114d1));}_0x323f0d['_update'](_0xf1b75e,!0x0);}['buildRevisionData']({revision:_0x2ecbd9=null,from:_0x5bfb8a=null,to:_0x1f3c24=null}){_0x5bfb8a=null!==_0x5bfb8a?_0x5bfb8a:_0x2ecbd9['fromVersion'],_0x1f3c24=null!==_0x1f3c24?_0x1f3c24:_0x2ecbd9['toVersion'];const _0x570540=this['_revisionDataBuilder']['getData'](_0x5bfb8a,_0x1f3c24),_0x31b111={'diffData':_0x570540['diffData'],'authorsIds':_0x570540['authorsIds'],'fromVersion':_0x5bfb8a,'toVersion':_0x1f3c24};if(!_0x2ecbd9||_0x1f3c24!==_0x2ecbd9['toVersion']){const _0x50f178=_0x1f3c24-0x1,_0x5abb5e=this['_source']['history']['getOperation'](_0x50f178);_0x31b111['createdAt']=_0x5abb5e&&_0x5abb5e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5bfb8a===this['_loadedStateData']['fromVersion']){for(const _0x271cbe of this['_loadedStateData']['authors'])_0x31b111['authorsIds']['includes'](_0x271cbe['id'])||_0x31b111['authorsIds']['push'](_0x271cbe['id']);}return _0x31b111;}['_loadRevisionData'](_0x3a5d15){if(!_0x3a5d15||_0x3a5d15['diffData'])return Promise['resolve']();{const _0x9e6ca2=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x9e6ca2,'revisionId':_0x3a5d15['id']})['then'](_0x5cd110=>{_0x3a5d15['diffData']=_0x5cd110['diffData'];});}}['_bufferUpdate'](_0x3e9428,_0x66c2d7,_0x587e80){if(this['_bufferedUpdates']['has'](_0x3e9428)){const _0x397e3a=this['_bufferedUpdates']['get'](_0x3e9428);_0x66c2d7=_0x587e80?{..._0x397e3a,..._0x66c2d7}:{..._0x66c2d7,..._0x397e3a};}this['_bufferedUpdates']['set'](_0x3e9428,_0x66c2d7);}['_getFromVersion'](_0x3c5764){const _0x1d6110=this['repository']['getRevisions']();_0x1d6110['reverse'](),_0x1d6110['shift']();const _0x2f8445=_0x1d6110['find'](_0x260caa=>_0x260caa['toVersion']<=_0x3c5764)['toVersion'];return _0x2f8445<this['_startingVersion']?this['_startingVersion']:_0x2f8445;}['_createInitialRevision'](_0x1a2214){const _0x30d697=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x30d697)this['_initialRevisionId']=_0x30d697['id'];else{const _0x4d6ec0=!this['editor']['model']['document']['roots']['find'](_0x340772=>this['editor']['model']['hasContent'](_0x340772)),_0x2e6ec6=this['editor']['plugins']['get']('Users')['me']['id'],_0x4492f2=R(this['editor']['locale'],_0x4d6ec0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1a2214,'to':_0x1a2214,'id':this['_initialRevisionId'],'name':_0x4492f2,'creatorId':_0x2e6ec6});}}['_createCurrentRevision'](_0x46dabb){const _0x51a536=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x51a536),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x46dabb,'to':_0x46dabb,'id':_0x51a536,'name':'','creatorId':null}));}['_makeRevision']({name:_0x13f1ab,from:_0xaa543,to:_0x36235f,creatorId:_0xc2544f,id:_0x271a79}){const _0x576711=this['buildRevisionData']({'from':_0xaa543,'to':_0x36235f});_0x576711['name']=_0x13f1ab,_0x576711['creatorId']=_0xc2544f,_0x576711['id']=_0x271a79;const _0x234858=this['addRevisionData'](_0x576711);return this['adapter']&&this['_bufferUpdate'](_0x576711['id'],_0x576711,!0x0),_0x234858;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x25b89a){return(_0x25b89a=_0x25b89a['filter'](_0x5d1293=>!_0x5d1293['name']||'revision-start'!==_0x5d1293['name']&&'revision-end'!==_0x5d1293['name']))['forEach'](_0x358e5d=>{'string'!=typeof _0x358e5d&&(_0x358e5d['children']=this['_removeRevisionMarkers'](_0x358e5d['children']),_0x358e5d['attributes']=_0x358e5d['attributes']['filter'](_0x574c6f=>!_0x574c6f[0x0]['startsWith']('data-revision-')));}),_0x25b89a;}}function V(_0x61d035,_0x225d6e){const _0xeafad0=_0x225d6e['editing']['view']['document'];if('string'==typeof _0x61d035)return new _0x309635(_0xeafad0,_0x61d035);{const _0x3c70c5=_0x61d035['children']['map'](_0x125185=>V(_0x125185,_0x225d6e));return new(C[_0x61d035['type']]||_0x3489bf)(_0xeafad0,_0x61d035['name'],_0x61d035['attributes'],_0x3c70c5);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1e3f73){this['editor']=_0x1e3f73,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'](_0x94e661){this['source']=_0x94e661;const _0x52b037=new Map(),_0x2851a0=new Map(),_0x7ed1=this['editor']['model']['document']['roots']['map'](_0x48e510=>_0x48e510['rootName']);for(const _0xa130ed of _0x7ed1){const _0x6f57ce=this['editor']['model']['document']['getRoot'](_0xa130ed),_0x52dbb8=F(_0x6f57ce);_0x52b037['set'](_0xa130ed,_0x52dbb8),_0x2851a0['set'](_0xa130ed,Object['fromEntries'](_0x6f57ce['getAttributes']()));}const _0x238299=Array['from'](this['editor']['model']['markers'])['map'](_0x51a495=>[_0x51a495['name'],_0x51a495['getRange']()]),_0x281844=this['source']['version'];this['_saveMetaData'](_0x281844,_0x52b037,_0x238299,_0x2851a0),this['_startingRevisionId']=this['_revisionId'];const _0x971ba5=new Map(),_0x45da51=new Map();for(const _0x103711 of _0x7ed1){const _0x2741c3=B(_0x103711);_0x971ba5['set'](_0x103711,_0x2741c3),_0x45da51['set'](_0x103711,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x971ba5,[],_0x45da51);}['getData'](_0x1a36c8,_0x53730a){if(this['_lastFrom']===_0x1a36c8&&this['_lastTo']<=_0x53730a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x53730a,!0x0);else{if(!this['_savedMetaData']['has'](_0x1a36c8)){const _0x5e5144=this['_getPreviousFrom'](_0x1a36c8);this['_calculateMetaData'](_0x5e5144,_0x1a36c8,!0x1);}this['_calculateMetaData'](_0x1a36c8,_0x53730a,!0x0);}return this['_lastFrom']=_0x1a36c8,this['_lastTo']=_0x53730a,this['_getState']();}['loadState'](_0xbe564b){this['_reset'](),this['_lastFrom']=_0xbe564b['fromVersion'],this['_lastTo']=_0xbe564b['toVersion'];for(const _0x248318 in _0xbe564b['diffData']){const _0x26e798=_0xbe564b['diffData'][_0x248318]['attachChange'],_0x46c922=_0x2b9a95(_0xbe564b['diffData'][_0x248318]['attributesBefore'])||{},_0x412fe3=this['_makeModelFromViewString'](_0xbe564b['diffData'][_0x248318]['deletions']);_0x412fe3['rootName']=_0x248318,_0x412fe3['_isAttached']=!_0x26e798||!_0x26e798['isAttached'],_0x412fe3['isAttached']=()=>_0x412fe3['_isAttached'],this['_baseRoots']['set'](_0x248318,_0x412fe3),this['_baseRootsAttributes']['set'](_0x248318,_0x46c922),_0x26e798&&this['_touchedRoots']['set'](_0x248318,_0x26e798);const _0x48e7a9=this['_makeIdsRoot'](_0x412fe3);this['_baseIdsRoots']['set'](_0x248318,_0x48e7a9);for(const [_0x84e5cf,_0x43648b]of _0x412fe3['markers']){if(!_0x84e5cf['startsWith']('revision:'))continue;const _0x48b185=_0x84e5cf['split'](':')[0x2];for(const _0x43d1bf of _0x43648b['getWalker']({'singleCharacters':!0x0})){const _0x5c6539=this['_getVidAttributeName'](_0x43d1bf),_0x3e557a='elementEnd'==_0x43d1bf['type']?_0x43d1bf['previousPosition']['path']['slice'](0x0,-0x1):_0x43d1bf['previousPosition']['path'],_0x25c67a=_0x48e7a9['getNodeByPath'](_0x3e557a)['getAttribute'](_0x5c6539);this['_touched']['set'](_0x25c67a,{'userId':_0x48b185});}}}this['_startingRevisionId']=this['_revisionId'];const _0x103241=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x582916=>!this['_touched']['has'](_0x582916));let _0x5bfa3e=0x0;const _0x3108fc=new Map();for(const _0x44f0d9 in _0xbe564b['diffData']){const _0x31fa80=_0xbe564b['diffData'][_0x44f0d9]['attachChange'],_0x290f1f=_0x2b9a95(_0xbe564b['diffData'][_0x44f0d9]['attributesAfter'])||{},_0x502f63=this['_makeModelFromViewString'](_0xbe564b['diffData'][_0x44f0d9]['insertions']);_0x502f63['rootName']=_0x44f0d9,_0x502f63['_isAttached']=!_0x31fa80||_0x31fa80['isAttached'],_0x502f63['isAttached']=()=>_0x502f63['_isAttached'],this['_diffRoots']['set'](_0x44f0d9,_0x502f63),this['_diffRootsAttributes']['set'](_0x44f0d9,_0x290f1f);const _0x15e4da=this['_makeIdsRoot'](_0x502f63,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x44f0d9,_0x15e4da),_0x3108fc['set'](_0x44f0d9,_0x502f63['isAttached']()?_0x290f1f:{});for(const [_0x53074a,_0x158562]of _0x502f63['markers']){if(!_0x53074a['startsWith']('revision:'))continue;const _0x23c898=_0x53074a['split'](':')[0x2];for(const _0x125ecd of _0x158562['getWalker']({'singleCharacters':!0x0})){const _0x14b5c9=this['_getVidAttributeName'](_0x125ecd),_0x477d4b=this['_revisionId']++,_0xe704d='elementEnd'==_0x125ecd['type']?_0x125ecd['previousPosition']['path']['slice'](0x0,-0x1):_0x125ecd['previousPosition']['path'];_0x15e4da['getNodeByPath'](_0xe704d)['_setAttribute'](_0x14b5c9,_0x477d4b),this['_touched']['set'](_0x477d4b,{'userId':_0x23c898});}}for(const _0x525d13 of this['editor']['model']['createRangeIn'](_0x502f63)['getWalker']({'singleCharacters':!0x0})){const _0x41220e=this['_getVidAttributeName'](_0x525d13),_0x20b11a='elementEnd'==_0x525d13['type']?_0x525d13['previousPosition']['path']['slice'](0x0,-0x1):_0x525d13['previousPosition']['path'],_0x5353f4=_0x15e4da['getNodeByPath'](_0x20b11a);_0x5353f4['getAttribute'](_0x41220e)>0x0||_0x5353f4['_setAttribute'](_0x41220e,_0x103241[_0x5bfa3e++]);}for(const [_0x63bc3d,_0x143997]of _0x502f63['markers'])_0x63bc3d['startsWith']('revision:')||this['_markers']['set'](_0x63bc3d,_0x143997);}const _0x15ccfc=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x15ccfc),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x15ccfc,0x1));const _0xf28af2=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0xf28af2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xf28af2,0x1));const _0x35fee5=Array['from'](this['_diffRoots'])['map'](([_0x46804b,_0xbaef83])=>[_0x46804b,F(_0xbaef83)]);this['_saveMetaData'](this['_lastTo'],_0x35fee5,this['_markers'],_0x3108fc);}['_makeModelFromViewString'](_0x4b98db){const _0x12a2ae=JSON['parse'](_0x4b98db),_0x5d84ff=this['editor']['editing']['view']['document'],_0x3eb596=new _0x2d7291(_0x5d84ff,_0x12a2ae['map'](_0x49e413=>V(_0x49e413,this['editor'])));return this['editor']['data']['toModel'](_0x3eb596);}['_saveMetaData'](_0x102d9a,_0x3bd018,_0x340b2b,_0x90fd01){const _0x338d7d=new Map(_0x3bd018),_0x3b17cc=new Map(_0x2b9a95(_0x90fd01)),_0x178169=new Map();for(const [_0x39f1f9,_0x32c01e]of _0x340b2b)_0x178169['set'](_0x39f1f9,{'start':_0x32c01e['start']['clone'](),'end':_0x32c01e['end']['clone'](),'rootName':_0x32c01e['root']['rootName']});this['_savedMetaData']['set'](_0x102d9a,{'roots':_0x338d7d,'markers':_0x178169,'rootsAttributes':_0x3b17cc});}['_removeMetaData'](_0x27a7c7){this['_savedMetaData']['delete'](_0x27a7c7);}['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'](_0x1be006,_0x3bfdbd=null){let _0x589904=null;_0x1be006['is']('documentFragment')||(_0x589904=new ft(_0x1be006['name'],{'vid_start':null===_0x3bfdbd?this['_revisionId']++:_0x3bfdbd++}));const _0x534edd=[];for(const _0x1ea679 of _0x1be006['getChildren']())if(_0x1ea679['is']('element')){_0x534edd['push'](this['_makeIdsRoot'](_0x1ea679,_0x3bfdbd));const _0x35761d=_0x534edd[_0x534edd['length']-0x1];null!==_0x3bfdbd&&(_0x3bfdbd=_0x35761d['is']('element','$text')?_0x35761d['getAttribute']('vid')+0x1:_0x35761d['getAttribute']('vid_end')+0x1);}else{for(let _0xb86fab=0x0;_0xb86fab<_0x1ea679['offsetSize'];_0xb86fab++)_0x534edd['push'](new ft('$text',{'vid':null===_0x3bfdbd?this['_revisionId']++:_0x3bfdbd++}));}if(_0x1be006['is']('documentFragment')){const _0x446e9e=B(_0x1be006['rootName']);return _0x446e9e['_insertChild'](0x0,_0x534edd),_0x446e9e;}return _0x589904['_setAttribute']('vid_end',null===_0x3bfdbd?this['_revisionId']++:_0x3bfdbd++),_0x589904['_insertChild'](0x0,_0x534edd),_0x589904;}['_calculateMetaData'](_0x2ecc7a,_0x3538ef,_0x3887dd){this['_reset']();const {roots:_0x3effe5,markers:_0x136d40,rootsAttributes:_0xef34f9}=this['_savedMetaData']['get'](_0x2ecc7a);this['_baseRoots']=new Map(_0x3effe5),this['_baseRootsAttributes']=new Map(_0x2b9a95(_0xef34f9));for(const [_0x4372ca,_0x5c1e75]of this['_baseRoots'])if('$graveyard'!==_0x4372ca&&(this['_diffRoots']['set'](_0x4372ca,F(_0x5c1e75)),this['_diffRootsAttributes']=new Map(_0x2b9a95(_0xef34f9)),_0x3887dd)){const _0x38bb64=this['_revisionId'];this['_idsRoots']['set'](_0x4372ca,this['_makeIdsRoot'](_0x5c1e75)),this['_baseIdsRoots']['set'](_0x4372ca,this['_makeIdsRoot'](_0x5c1e75,_0x38bb64));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3887dd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x358a8e,_0x2b4922]of _0x136d40){const _0x1443ac=this['_baseRoots']['get'](_0x2b4922['rootName']),_0xded7f0=this['_diffRoots']['get'](_0x2b4922['rootName']),_0x5bded7=new vt(this['_fixPosition'](_0x2b4922['start'],_0x1443ac),this['_fixPosition'](_0x2b4922['end'],_0x1443ac)),_0x56b804=this['_fixRange'](_0x5bded7,_0xded7f0);_0x1443ac['markers']['set'](_0x358a8e,_0x5bded7),this['_markers']['set'](_0x358a8e,_0x56b804);}this['_applyOperations'](_0x2ecc7a,_0x3538ef,_0x3887dd);}['_applyOperations'](_0xbb97cf,_0x2e0713,_0x54692e){for(const _0x407f95 of this['source']['getOperations'](_0xbb97cf,_0x2e0713))this['_handleOperation'](_0x407f95,_0x54692e);for(const _0x43d9d0 of this['_diffRoots']['values']())_0x43d9d0['markers']['clear']();for(const [_0x9367ec,_0x3fca48]of this['_markers']){this['_diffRoots']['get'](_0x3fca48['root']['rootName'])['markers']['set'](_0x9367ec,_0x3fca48['clone']());}const _0x4d6480=new Map(),_0x5877fc=new Map();for(const [_0x24b433,_0x404980]of this['_diffRoots'])_0x4d6480['set'](_0x24b433,F(_0x404980)),_0x5877fc['set'](_0x24b433,this['_diffRootsAttributes']['get'](_0x24b433));this['_saveMetaData'](_0x2e0713,_0x4d6480,this['_markers'],_0x5877fc);}['_getPreviousFrom'](_0x51b33c){const _0x36e8ad=Array['from'](this['_savedMetaData']['keys']());_0x36e8ad['sort']((_0x442ca5,_0x27defe)=>_0x442ca5-_0x27defe),_0x36e8ad['reverse']();for(const _0xaaa098 of _0x36e8ad)if(_0xaaa098<_0x51b33c)return _0xaaa098;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2bfcb8,_0x3c6814){const _0x467dcd=Array['from'](_0x3c6814['markers'])['map'](([_0x5c916a,_0x37fdee])=>[_0x5c916a,this['_fixRange'](_0x37fdee,_0x2bfcb8)]);_0x2bfcb8['markers']=new Map(_0x467dcd);}['_transformMarkers'](_0x1ad72d){for(const _0x33ab81 of this['_markers']['values']()){const _0x22c0bc=_0x33ab81['getTransformedByOperation'](_0x1ad72d),_0x196797=vt['_createFromRanges'](_0x22c0bc);_0x33ab81['start']=_0x196797['start'],_0x33ab81['end']=_0x196797['end'];}}['_handleOperation'](_0x230a2d,_0x5f1d59){if('addRoot'!=_0x230a2d['type']&&'detachRoot'!=_0x230a2d['type']){if('insert'==_0x230a2d['type']){const _0x21ed36=_0x230a2d['position']['root']['rootName'];this['_diffRoots']['has'](_0x21ed36)||(this['_diffRoots']['set'](_0x21ed36,B(_0x21ed36,!0x0)),this['_diffRootsAttributes']['set'](_0x21ed36,{}),_0x5f1d59&&this['_idsRoots']['set'](_0x21ed36,B(_0x21ed36,!0x0)));}else{if('addRootAttribute'==_0x230a2d['type']||'removeRootAttribute'==_0x230a2d['type']||'changeRootAttribute'==_0x230a2d['type'])return void this['_handleRootAttributeOperation'](_0x230a2d);'marker'==_0x230a2d['type']&&this['_handleMarkerOperation'](_0x230a2d);}if('marker'!==_0x230a2d['type']){const _0x248cda=this['_cloneOperation'](_0x230a2d,this['_diffRoots']);_0x248cda['_execute'](),this['_transformMarkers'](_0x248cda);}if(_0x5f1d59)switch(_0x230a2d['type']){case'insert':this['_handleInsertOperation'](_0x230a2d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x230a2d);break;case'merge':this['_handleMergeOperation'](_0x230a2d);break;case'split':this['_handleSplitOperation'](_0x230a2d);}}else this['_handleRootOperation'](_0x230a2d,_0x5f1d59);}['_cloneOperation'](_0x288e30,_0x7bef1d){const _0x513f6c=_0x288e30['clone']();return _0x513f6c['_authorId']=_0x288e30['_authorId'],this['_fixOperation'](_0x513f6c,_0x7bef1d),_0x513f6c;}['_getBaseVids'](_0x591058){return _0x591058['map'](_0x5502c0=>{const _0x5678bc=this['_getVidAttributeName'](_0x5502c0);return Number(_0x5502c0['item']['getAttribute'](_0x5678bc));});}['_generateTape'](_0x1a96ba,_0x7c5654){if(_0x1a96ba['is']('element','$text'))_0x7c5654['push']({'item':_0x1a96ba,'type':'text'});else{_0x1a96ba['is']('element')&&_0x7c5654['push']({'item':_0x1a96ba,'type':'elementStart'});for(const _0x2a8d57 of _0x1a96ba['getChildren']())this['_generateTape'](_0x2a8d57,_0x7c5654);_0x1a96ba['is']('element')&&_0x7c5654['push']({'item':_0x1a96ba,'type':'elementEnd'});}return _0x7c5654;}['_getState'](){const _0x1c5010=new Map(this['_touched']),_0x173263=new Map(_0x1c5010),_0x338dbc=new Map(),_0x3924b1={'insertions':{},'deletions':{}},_0x50a4c8={'insertions':{},'deletions':{}},_0x5436ff=new Map(),_0x2af4ce=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2af4ce['delete']('$graveyard');for(const _0x2df96f of _0x2af4ce){const _0x2864cc=this['_diffRoots']['get'](_0x2df96f)||B(_0x2df96f,!0x1),_0x2252e4=this['_baseRoots']['get'](_0x2df96f)||B(_0x2df96f,!0x1);_0x2864cc['isAttached']()||_0x2252e4['isAttached']()?(_0x3924b1['insertions'][_0x2df96f]=F(_0x2864cc),_0x3924b1['deletions'][_0x2df96f]=F(_0x2252e4),this['_copyMarkers'](_0x3924b1['deletions'][_0x2df96f],_0x2252e4),this['_copyMarkers'](_0x3924b1['insertions'][_0x2df96f],_0x2864cc),_0x50a4c8['insertions'][_0x2df96f]=this['_generateTape'](this['_idsRoots']['get'](_0x2df96f),[]),_0x50a4c8['deletions'][_0x2df96f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2df96f)||B(_0x2df96f,!0x1),[])):_0x2af4ce['delete'](_0x2df96f);}for(const _0x9c8f71 of _0x2af4ce){const _0x13f96e=_0x50a4c8['insertions'][_0x9c8f71];for(const _0x2cd4fa of _0x13f96e){const _0x3de769=this['_getVidAttributeName'](_0x2cd4fa),_0x291cac=_0x2cd4fa['item']['getAttribute'](_0x3de769);_0x173263['delete'](_0x291cac),_0x291cac>=this['_startingRevisionId']&&_0x338dbc['set'](_0x291cac,_0x1c5010['get'](_0x291cac));}}for(const _0x2a8dd9 of _0x2af4ce){const _0x6f7ea9=_0x50a4c8['insertions'][_0x2a8dd9],_0x13b6ca=this['_getBaseVids'](_0x50a4c8['deletions'][_0x2a8dd9]);let _0x9b5023=0x0;for(const _0x30ddb3 of _0x6f7ea9){const _0x3a0c32=this['_getVidAttributeName'](_0x30ddb3),_0x17f767=_0x30ddb3['item']['getAttribute'](_0x3a0c32);if(!_0x338dbc['has'](_0x17f767)&&!_0x5436ff['has'](_0x17f767)){if(_0x173263['has'](_0x17f767))_0x9b5023++;else{if(_0x17f767!=_0x13b6ca[_0x9b5023]){const _0x1f2159=_0x1c5010['get'](_0x17f767)||_0x1c5010['get'](_0x13b6ca[_0x9b5023]);for(;_0x17f767!=_0x13b6ca[_0x9b5023];)_0x173263['has'](_0x13b6ca[_0x9b5023])||(_0x5436ff['set'](_0x13b6ca[_0x9b5023],_0x1f2159),_0x1c5010['set'](_0x13b6ca[_0x9b5023],_0x1f2159)),_0x9b5023++;}_0x9b5023++;}}}}for(const _0x5e8f78 of _0x2af4ce){const _0x10a7aa=_0x50a4c8['insertions'][_0x5e8f78];for(const _0x2ebdcc of _0x10a7aa){const _0x2669cb=this['_getVidAttributeName'](_0x2ebdcc),_0x1a7279=_0x2ebdcc['item']['getAttribute'](_0x2669cb);if(_0x5436ff['has'](_0x1a7279)){const _0xfabe47=_0x5436ff['get'](_0x1a7279);_0x173263['has'](_0x1a7279)||_0x173263['set'](_0x1a7279,{..._0xfabe47}),_0x338dbc['set'](_0x1a7279,{..._0xfabe47});}}}for(const _0x411a43 of _0x173263['keys']())_0x411a43>=this['_startingRevisionId']&&_0x173263['delete'](_0x411a43);const _0x353db0=new Map();for(const _0x47ae07 of _0x2af4ce){let _0x47dc77=_0x50a4c8['insertions'][_0x47ae07];for(const _0xf5b244 of _0x47dc77)if(_0xf5b244['item']['is']('element','tableCell')){const _0x356386=this['_getVidAttributeName'](_0xf5b244),_0xe5e052=_0xf5b244['item']['getAttribute'](_0x356386);if(_0x338dbc['has'](_0xe5e052)){const _0x2e3407=_0xf5b244['item']['parent']['parent']['getAttribute']('vid_start'),_0x348739=_0x353db0['get'](_0x2e3407)||new Set();_0x348739['add'](_0x338dbc['get'](_0xe5e052)['userId']),_0x353db0['set'](_0x2e3407,_0x348739);}}_0x47dc77=_0x50a4c8['deletions'][_0x47ae07];for(const _0x296156 of _0x47dc77)if(_0x296156['item']['is']('element','tableCell')){const _0x3ea9b9=this['_getVidAttributeName'](_0x296156),_0x1d2b73=_0x296156['item']['getAttribute'](_0x3ea9b9);if(_0x173263['has'](_0x1d2b73)){const _0x34b4b5=_0x296156['item']['parent']['parent']['getAttribute']('vid_start'),_0x80224=_0x353db0['get'](_0x34b4b5)||new Set();_0x80224['add'](_0x173263['get'](_0x1d2b73)['userId']),_0x353db0['set'](_0x34b4b5,_0x80224);}}for(const _0x138ce5 of _0x353db0['keys']())(_0x338dbc['has'](_0x138ce5)||_0x173263['has'](_0x138ce5))&&_0x353db0['delete'](_0x138ce5);}for(const _0x33630d of _0x2af4ce){const _0xa35c46=_0x50a4c8['insertions'][_0x33630d];let _0x3499ce=null,_0x2693e7=null;for(const _0x373a17 of _0xa35c46){const _0xe7e3e5=this['_getVidAttributeName'](_0x373a17),_0x5275d6=_0x373a17['item']['getAttribute'](_0xe7e3e5),_0x29e477=_0x353db0['get'](_0x5275d6);_0x29e477&&'elementStart'==_0x373a17['type']&&(_0x3499ce=Array['from'](_0x29e477)[0x0],_0x2693e7=_0x373a17['item']['getAttribute']('vid_end')),_0x3499ce&&(_0x173263['set'](_0x5275d6,{'userId':_0x3499ce}),_0x338dbc['set'](_0x5275d6,{'userId':_0x3499ce})),_0x5275d6==_0x2693e7&&(_0x3499ce=null,_0x2693e7=null);}}const _0x467ce2={},_0xef4baa=new Set();for(const _0x481ef3 of _0x2af4ce){const _0x4ac529=_0x3924b1['deletions'][_0x481ef3],_0x2bfdd9=_0x3924b1['insertions'][_0x481ef3];for(const {userId:_0x1a92b8}of this['_touchedMarkers']['values']())null!==_0x1a92b8&&_0xef4baa['add'](_0x1a92b8);for(const {userId:_0x47bf54}of this['_touchedRoots']['values']())null!==_0x47bf54&&_0xef4baa['add'](_0x47bf54);this['_markChanges'](_0x2bfdd9,_0x50a4c8['insertions'][_0x481ef3],_0x338dbc,'insertion',_0xef4baa),this['_markChanges'](_0x4ac529,_0x50a4c8['deletions'][_0x481ef3],_0x173263,'deletion',_0xef4baa),_0x467ce2[_0x481ef3]={'insertions':this['_prepareViewToSave'](_0x2bfdd9),'deletions':this['_prepareViewToSave'](_0x4ac529),'attachChange':this['_touchedRoots']['get'](_0x481ef3)||null,'attributesBefore':_0x2b9a95(this['_baseRootsAttributes']['get'](_0x481ef3))||{},'attributesAfter':_0x2b9a95(this['_diffRootsAttributes']['get'](_0x481ef3))};}return{'diffData':_0x467ce2,'authorsIds':Array['from'](_0xef4baa)};}['_processRootBeforeSave'](_0x225b88){for(const [,_0x3a769c]of _0x225b88['markers']){const _0x28b003=_0x3a769c['start']['getAncestors']()['filter'](_0x43cc78=>'tableCell'==_0x43cc78['name']);for(const _0x2f14bd of _0x28b003)0x1==_0x2f14bd['childCount']&&_0x2f14bd['getChild'](0x0)['is']('element','paragraph')&&_0x2f14bd['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x363627){this['_processRootBeforeSave'](_0x363627);const _0x4d3e92=this['editor']['data']['toView'](_0x363627,{}),_0x5bb39b=Array['from'](_0x4d3e92['getChildren']())['map'](_0x5702d4=>this['_getViewJson'](_0x5702d4));return JSON['stringify'](_0x5bb39b);}['_getViewJson'](_0x25d110){if(_0x25d110['is']('$text'))return _0x25d110['data'];{const _0x3f08b5=_0x25d110;return{'type':Object['keys'](C)['find'](_0x218a88=>_0x25d110 instanceof C[_0x218a88]),'name':_0x3f08b5['name'],'attributes':Array['from'](_0x3f08b5['getAttributes']()),'children':Array['from'](_0x3f08b5['getChildren']())['map'](_0x5f4a2e=>this['_getViewJson'](_0x5f4a2e))};}}['_markChanges'](_0x2e4317,_0x34fa2f,_0x12f413,_0x34b45b,_0x4cbeca){let _0x44ace3=null,_0xc78b2d=null,_0x4812e6=0x0;const _0x345e92=this['editor']['model'];for(let _0x125b44=0x0;_0x125b44<_0x34fa2f['length'];_0x125b44++){const _0x27bb48=this['_getVidAttributeName'](_0x34fa2f[_0x125b44]),_0x36aa27=_0x34fa2f[_0x125b44]['item']['getAttribute'](_0x27bb48),_0x436005=_0x12f413['get'](_0x36aa27),_0x453be8=_0x125b44==_0x34fa2f['length']-0x1;(!_0x44ace3&&_0x436005&&(_0x44ace3=_0x436005,_0xc78b2d=_0x34fa2f[_0x125b44]),_0x44ace3&&(!_0x436005||_0x436005['userId']!=_0x44ace3['userId']))&&(_0x50737f(_0x436005,J(_0xc78b2d,_0x2e4317,_0x345e92),J(_0x34fa2f[_0x125b44],_0x2e4317,_0x345e92)),_0x44ace3=_0x436005||null,_0xc78b2d=_0x436005?_0x34fa2f[_0x125b44]:null),_0x44ace3&&_0x453be8&&_0x50737f(_0x436005,J(_0xc78b2d,_0x2e4317,_0x345e92),q(_0x34fa2f[_0x125b44],_0x2e4317,_0x345e92));}function _0x50737f(_0x3501cb,_0x169967,_0x54a080){const _0x1062b8=_0x44ace3['userId'],_0x166977='revision:'+_0x34b45b+':'+_0x1062b8+':'+_0x4812e6++,_0x1aa20c=_0x345e92['createRange'](_0x169967,_0x54a080);_0x2e4317['markers']['set'](_0x166977,_0x1aa20c),null!==_0x1062b8&&_0x4cbeca['add'](_0x1062b8);}}['_getVidAttributeName'](_0x28fb7e){switch(_0x28fb7e['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x50b154,_0x494f68){_0x50b154['baseVersion']=null;for(const _0x2a2138 in _0x50b154){const _0x353f71=_0x50b154[_0x2a2138];if(_0x353f71 instanceof gt){const _0x321c5c=_0x494f68['get'](_0x353f71['root']['rootName']);_0x50b154[_0x2a2138]=this['_fixPosition'](_0x353f71,_0x321c5c);}if(_0x353f71 instanceof vt){const _0x457490=_0x494f68['get'](_0x353f71['root']['rootName']);_0x50b154[_0x2a2138]=this['_fixRange'](_0x353f71,_0x457490);}'root'===_0x2a2138&&(_0x50b154['root']=_0x494f68['get'](_0x50b154['root']['rootName']));}}['_fixRange'](_0x58a225,_0x4c366b){return this['editor']['model']['createRange'](this['_fixPosition'](_0x58a225['start'],_0x4c366b),this['_fixPosition'](_0x58a225['end'],_0x4c366b));}['_fixPosition'](_0x4514b1,_0x57339a){return this['editor']['model']['createPositionFromPath'](_0x57339a,_0x4514b1['path'],_0x4514b1['stickiness']);}['_handleInsertOperation'](_0x44901e){const _0x55f12e=this['_idsRoots']['get'](_0x44901e['position']['root']['rootName']),_0x4027eb=this['_fixPosition'](_0x44901e['position'],_0x55f12e),_0x3975cf=null===_0x44901e['_authorId']?null:_0x44901e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa20124=_0x4027eb['parent'],_0x1be5d9=this['_revisionId'],_0x5aeceb=[];for(const _0x3a9b6c of _0x44901e['nodes'])if(_0x3a9b6c['is']('element'))_0x5aeceb['push'](this['_makeIdsRoot'](_0x3a9b6c));else{for(let _0x5522e2=0x0;_0x5522e2<_0x3a9b6c['offsetSize'];_0x5522e2++)_0x5aeceb['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x52fa87=this['_revisionId'];for(let _0x4bbc01=_0x1be5d9;_0x4bbc01<_0x52fa87;_0x4bbc01++)this['_touched']['set'](_0x4bbc01,{'userId':_0x3975cf});_0xa20124['_insertChild'](_0x4027eb['offset'],_0x5aeceb);}['_handleMoveOperation'](_0x579b13){(_0x579b13=this['_cloneOperation'](_0x579b13,this['_idsRoots']))['_execute']();const _0x40f71d=null===_0x579b13['_authorId']?null:_0x579b13['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x143859=_0x579b13['getMovedRangeStart'](),_0x235570=_0x143859['parent'],_0x36180c=_0x143859['offset'];!function _0x4231a3(_0x27f816,_0x178271,_0x2753b3,_0x5e7dc2){for(let _0x26761b=_0x2753b3;_0x26761b<_0x5e7dc2;_0x26761b++){const _0x1272ba=_0x178271['getChild'](_0x26761b);_0x1272ba['is']('element','$text')?_0x27f816['set'](_0x1272ba['getAttribute']('vid'),{'userId':_0x40f71d}):(_0x27f816['set'](_0x1272ba['getAttribute']('vid_start'),{'userId':_0x40f71d}),_0x4231a3(_0x27f816,_0x1272ba,0x0,_0x1272ba['childCount']),_0x27f816['set'](_0x1272ba['getAttribute']('vid_end'),{'userId':_0x40f71d}));}}(this['_touched'],_0x235570,_0x36180c,_0x36180c+_0x579b13['howMany']);}['_handleMergeOperation'](_0x44f069){const _0x1ed7cd=null===(_0x44f069=this['_cloneOperation'](_0x44f069,this['_idsRoots']))['_authorId']?null:_0x44f069['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bdc5f=_0x44f069['targetPosition']['parent'],_0x32f4b0=_0x44f069['sourcePosition']['parent'],_0x4da512=_0x2bdc5f['getAttribute']('vid_end'),_0xab72b5=_0x32f4b0['getAttribute']('vid_start');_0x2bdc5f['_setAttribute']('vid_end',_0x32f4b0['getAttribute']('vid_end')),_0x32f4b0['_setAttribute']('vid_end',_0x4da512),this['_touched']['set'](_0xab72b5,{'userId':_0x1ed7cd}),this['_touched']['set'](_0x4da512,{'userId':_0x1ed7cd}),_0x44f069['_execute']();}['_handleSplitOperation'](_0x3988cf){const _0x5e4594=null===(_0x3988cf=this['_cloneOperation'](_0x3988cf,this['_idsRoots']))['_authorId']?null:_0x3988cf['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x920233=_0x3988cf['graveyardPosition'],_0xc5f0f3=_0x3988cf['splitPosition']['parent'];_0x3988cf['_execute']();const _0x34896c=_0xc5f0f3['getAttribute']('vid_end'),_0x39d160=_0x3988cf['insertionPosition']['nodeAfter'];if(_0x920233){const _0x214757=_0x39d160['getAttribute']('vid_end'),_0x28dcd7=_0xc5f0f3['getAttribute']('vid_end');_0xc5f0f3['_setAttribute']('vid_end',_0x214757),_0x39d160['_setAttribute']('vid_end',_0x28dcd7),this['_touched']['set'](_0xc5f0f3['getAttribute']('vid_end'),{'userId':_0x5e4594}),this['_touched']['set'](_0x39d160['getAttribute']('vid_start'),{'userId':_0x5e4594});}else{const _0x127e98=this['_revisionId']++,_0x9d10b3=this['_revisionId']++;_0xc5f0f3['_setAttribute']('vid_end',_0x127e98),_0x39d160['_setAttribute']('vid_start',_0x9d10b3),_0x39d160['_setAttribute']('vid_end',_0x34896c),this['_touched']['set'](_0x127e98,{'userId':_0x5e4594}),this['_touched']['set'](_0x9d10b3,{'userId':_0x5e4594});}}['_handleMarkerOperation'](_0x5c0105){if(!_0x5c0105['affectsData'])return;const _0x6c86d7=(_0x5c0105=this['_cloneOperation'](_0x5c0105,this['_diffRoots']))['oldRange']?_0x5c0105['oldRange']['root']:null,_0x3d7d4b=_0x5c0105['newRange']?_0x5c0105['newRange']['root']:null;_0x6c86d7&&this['_markers']['delete'](_0x5c0105['name']),_0x3d7d4b&&this['_markers']['set'](_0x5c0105['name'],_0x5c0105['newRange']['clone']());const _0x5ab811=null===_0x5c0105['_authorId']?null:_0x5c0105['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e86f6=_0x5c0105['name'];if(!this['_touchedMarkers']['has'](_0x2e86f6))return void this['_touchedMarkers']['set'](_0x2e86f6,{'range':_0x5c0105['oldRange'],'userId':_0x5ab811});const _0x4ed442=this['_touchedMarkers']['get'](_0x2e86f6),_0xa890d=_0x4ed442['range'],_0x2717de=_0x5c0105['newRange'];null==_0xa890d&&null==_0x2717de||_0xa890d&&_0x2717de&&_0xa890d['isEqual'](_0x2717de)?this['_touchedMarkers']['delete'](_0x5c0105['name']):_0x4ed442['userId']=_0x5ab811;}['_handleRootOperation'](_0x111d69,_0xea8da2){this['_diffRoots']['has'](_0x111d69['rootName'])?this['_diffRoots']['get'](_0x111d69['rootName'])['_isAttached']=_0x111d69['isAdd']:(this['_diffRoots']['set'](_0x111d69['rootName'],B(_0x111d69['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x111d69['rootName'],{}),_0xea8da2&&this['_idsRoots']['set'](_0x111d69['rootName'],B(_0x111d69['rootName'],!0x0)));const _0x36227e=null===_0x111d69['_authorId']?null:_0x111d69['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa8ae2a=this['_touchedRoots']['get'](_0x111d69['rootName']);_0xa8ae2a&&_0xa8ae2a['userId']===_0x36227e?this['_touchedRoots']['delete'](_0x111d69['rootName']):this['_touchedRoots']['set'](_0x111d69['rootName'],{'userId':_0x36227e,'isAttached':_0x111d69['isAdd']});}['_handleRootAttributeOperation'](_0x577498){const _0x526c50=this['_diffRootsAttributes']['get'](_0x577498['root']['rootName']);null===_0x577498['newValue']?delete _0x526c50[_0x577498['key']]:_0x526c50[_0x577498['key']]=_0x577498['newValue'];}}function F(_0x3db3fe){const _0xe4da1e=B(_0x3db3fe['rootName'],_0x3db3fe['isAttached']());for(const _0x43f575 of _0x3db3fe['getChildren']()){const _0xfbc9b4=_0x43f575['_clone'](!0x0);_0xe4da1e['_appendChild'](_0xfbc9b4);}return _0xe4da1e;}function B(_0x2366bc,_0x24ef0b=!0x0){const _0x121983=new mt();return _0x121983['rootName']=_0x2366bc,_0x121983['_isAttached']=_0x24ef0b,_0x121983['isAttached']=()=>_0x121983['_isAttached'],_0x121983;}function J(_0x12341c,_0x444b44,_0x2d4234){const _0x45d692='elementEnd'==_0x12341c['type']?_0x2d4234['createPositionAt'](_0x12341c['item'],'end'):_0x2d4234['createPositionBefore'](_0x12341c['item']);return _0x2d4234['createPositionFromPath'](_0x444b44,_0x45d692['path'],_0x45d692['stickiness']);}function q(_0x494f87,_0x5c362f,_0x4750d4){const _0x53ae59='elementStart'==_0x494f87['type']?_0x4750d4['createPositionAt'](_0x494f87['item'],0x0):_0x4750d4['createPositionAfter'](_0x494f87['item']);return _0x4750d4['createPositionFromPath'](_0x5c362f,_0x53ae59['path'],_0x53ae59['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x368337,_0x355702){super(_0x368337),this['focusTracker']=new _0xf20832(),this['keystrokes']=new _0x282e49(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x355702),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x105f99(this);}['render'](){super['render'](),_0x24b08d({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xa68cb3=_0x5d1638=>_0x5d1638['stopPropagation']();this['keystrokes']['set']('arrowright',_0xa68cb3),this['keystrokes']['set']('arrowleft',_0xa68cb3),this['keystrokes']['set']('arrowup',_0xa68cb3),this['keystrokes']['set']('arrowdown',_0xa68cb3);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x165840){this['revisionNameInputView']['fieldView']['element']['value']=_0x165840['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x35ea51){const _0x4e9177=new _0x3bef68(this['locale'],_0x4d2d9f),_0x498b50=_0x4e9177['fieldView'];_0x498b50['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3cc4d8=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x35ea51&&(_0x3cc4d8+='\x20('+R(this['locale'],'optional')+')'),(_0x4e9177['label']=_0x3cc4d8,_0x498b50['on']('input',()=>{this['revisionNameInputValue']=_0x498b50['element']['value']['trim']();}),_0x4e9177);}}class u extends _0x27bfb5{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xd33d9f=this['editor'],_0x538c26=_0xd33d9f['plugins']['get']('RevisionTracker');_0xd33d9f['ui']['componentFactory']['add']('revisionHistory',_0x32869e=>{const _0x4433f3=_0x327b70(_0x32869e),_0x4d294d=_0x4433f3['panelView']['children'],_0x386357=new _0x3362f5(_0x32869e),_0x2851af=new _0x2be56c(_0x32869e),_0x164115=new te(_0x32869e),_0x41e458=new _0x2be56c(_0x32869e),_0x4bda6b=new te(_0x32869e);return _0x4433f3['bind']('isEnabled')['to'](_0x538c26,'isReady',_0x538c26,'isEnabled',_0xd33d9f,'isReadOnly',(_0x4405f2,_0x1fb57f,_0x349b7a)=>_0x4405f2&&_0x1fb57f&&!_0x349b7a),_0x4433f3['buttonView']['set']({'icon':_0x1fbbe3['history'],'label':R(_0x32869e,'Revision\x20history'),'tooltip':!0x0}),_0x164115['set']({'label':R(_0x32869e,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x164115['bind']('isEnabled')['to'](_0x538c26,'isReady',_0x538c26,'isEnabled',_0xd33d9f,'isReadOnly',(_0x39fa45,_0x2a2a14,_0x3b33ec)=>_0x39fa45&&_0x2a2a14&&!_0x3b33ec),_0x164115['on']('execute',()=>this['_showDialog']()),_0x4bda6b['set']({'label':R(_0x32869e,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4bda6b['bind']('isEnabled')['to'](_0x538c26,'isReady',_0xd33d9f,'isReadOnly',(_0x2a688b,_0x5dfcea)=>_0x2a688b&&!_0x5dfcea),_0x4bda6b['on']('execute',()=>{_0xd33d9f['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4433f3['isOpen']=!0x1,_0xd33d9f['editing']['view']['focus']();}),_0x2851af['children']['add'](_0x164115),_0x41e458['children']['add'](_0x4bda6b),_0x386357['role']='menu',_0x386357['items']['addMany']([_0x2851af,_0x41e458]),_0x4d294d['add'](_0x386357),_0x4433f3;}),_0xd33d9f['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4f0c77=this['editor'],_0x4399b5=_0x4f0c77['locale'],_0x1d6249=new _0x236325(_0x4399b5),_0x5de0be=new _0x3ecedc(_0x4399b5);_0x1d6249['buttonView']['set']({'icon':_0x1fbbe3['history'],'label':R(_0x4399b5,'Revision\x20history')});const _0x34b169=new _0x391bac(_0x4399b5,_0x1d6249),_0x8ed6a9=new _0x47c8b3(_0x4399b5);_0x8ed6a9['set']({'label':R(_0x4399b5,'Save\x20current\x20revision')}),_0x8ed6a9['delegate']('execute')['to'](_0x1d6249),_0x8ed6a9['on']('execute',()=>{this['_showDialog']();}),_0x34b169['children']['add'](_0x8ed6a9),_0x5de0be['items']['add'](_0x34b169);const _0x24f1dc=new _0x391bac(_0x4399b5,_0x1d6249),_0x438cde=new _0x47c8b3(_0x4399b5);return _0x438cde['set']({'label':R(_0x4399b5,'Open\x20revision\x20history')}),_0x438cde['delegate']('execute')['to'](_0x1d6249),_0x438cde['on']('execute',()=>{_0x4f0c77['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x24f1dc['children']['add'](_0x438cde),_0x5de0be['items']['add'](_0x24f1dc),_0x1d6249['panelView']['children']['add'](_0x5de0be),_0x1d6249;}['_showDialog'](){const _0x328b5e=this['editor'],_0x177dc6=_0x328b5e['locale'],_0xb63fe2=_0x328b5e['plugins']['get']('Dialog'),_0x26c5c1=_0x328b5e['plugins']['get']('RevisionTracker');function _0x346d09(_0x1078eb){_0x328b5e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1078eb['revisionName']?_0x1078eb['revisionNameInputView']['errorText']=R(_0x177dc6,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x328b5e['plugins']['get'](l)['saveRevision']({'name':_0x1078eb['revisionName']}),_0xb63fe2['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x346d09(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xb63fe2['show']({'id':'revisionSave','title':R(_0x177dc6,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x328b5e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xb63fe2['hide']()},{'label':R(_0x328b5e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4955da){_0x4955da['bind']('isEnabled')['to'](_0x26c5c1,'isReady',_0x26c5c1,'isEnabled',_0x328b5e,'isReadOnly',(_0x510720,_0x1aaf90,_0x496845)=>_0x510720&&_0x1aaf90&&!_0x496845);},'onExecute':()=>_0x346d09(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4717c7=this['editor'],_0x3621e0=_0x4717c7['locale'];this['_saveRevisionFormView']=new hs(_0x3621e0,_0x4717c7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x24507d,_0x43d1e2){super(_0x24507d),this['_model']=_0x43d1e2,this['changeId']=_0x43d1e2['id'];const _0x8f2c99=this['bindTemplate'],_0x49ff88=R(_0x24507d,_0x43d1e2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x43d1e2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x43d1e2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x8f2c99['to']('type',_0x1b8325=>'ck-revision-change__'+_0x1b8325)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x49ff88}]},{'text':'\x20'+_0x43d1e2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x16ad9e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1b8c37){super(),this['id']=_0x1b8c37['id']||_0x49b2b2(),this['author']=_0x1b8c37['author'],this['type']=_0x1b8c37['type'],this['data']=_0x1b8c37['data']||{},this['rootName']=_0x1b8c37['rootName'],this['set']('createdAt',_0x1b8c37['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(_0x557768,_0x1fd650){this['newRevisionId']=_0x557768,this['oldRevisionId']=_0x1fd650,this['changes']=new _0x24f698();}['_setChanges'](_0x444f85){for(const _0x419796 of _0x444f85)this['changes']['add'](_0x419796);}}const Z={'c':_0x1cf001,'a':_0x14893b,'e':_0x815d87,'r':_0xa92a0d,'u':_0x34b803};class d extends _0x27bfb5{['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[_0x3253d7,_0x112130,j];}constructor(_0x3256d0){super(_0x3256d0),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',(_0x563515,_0x4e829c,_0x5295ac)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2c98a0=>{for(const _0x4b14c5 of this['editor']['editing']['view']['document']['roots'])_0x5295ac?_0x2c98a0['removeClass']('ck-editor__editable__overlay',_0x4b14c5):_0x2c98a0['addClass']('ck-editor__editable__overlay',_0x4b14c5);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x540533=>null!==_0x540533),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x27a754,_0x1f0be5,_0x43a2f2)=>_0x27a754&&_0x43a2f2?_0x1f0be5['changes']['getIndex'](_0x43a2f2):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x57d32c,_0xd3cec0)=>_0x57d32c?_0xd3cec0['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x112130);}['init'](){const _0x229843=this['editor'],_0x593b7f=new yt(_0x229843,{'direction':'backward'}),_0x2855b3=new yt(_0x229843,{'direction':'forward'});(_0x229843['commands']['add']('showPreviousChange',_0x593b7f),_0x229843['commands']['add']('showNextChange',_0x2855b3),_0x229843['commands']['add']('restoreRevision',new _t(_0x229843)),this['on']('change:numberOfChanges',()=>{_0x593b7f['refresh'](),_0x2855b3['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x229843['enableReadOnlyMode']('revision-viewer'),_0x229843['plugins']['has']('WidgetToolbarRepository'))&&_0x229843['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x376f17){await this['loadRevisionData'](_0x376f17);const _0x49456a={};for(const _0x20e344 in _0x376f17['diffData']){if(_0x376f17['diffData'][_0x20e344]['attachChange']&&!_0x376f17['diffData'][_0x20e344]['attachChange']['isAttached'])continue;const _0x4fbc45=this['_removeRevisionMarkers'](JSON['parse'](_0x376f17['diffData'][_0x20e344]['insertions'])),_0x50bb3b=this['editor']['editing']['view']['document'],_0x4a4ee0=new _0x2d7291(_0x50bb3b,_0x4fbc45['map'](_0x3e622e=>this['_getViewObj'](_0x3e622e)));this['editor']['data']['processor']['useFillerType']('marked'),_0x49456a[_0x20e344]=this['editor']['data']['processor']['toData'](_0x4a4ee0),this['editor']['data']['processor']['useFillerType']('default');}return _0x49456a;}async['getRevisionRootsAttributes'](_0x5ed7bd){await this['loadRevisionData'](_0x5ed7bd);const _0x1e8ae3={};for(const _0x2bbb8d in _0x5ed7bd['diffData'])_0x5ed7bd['diffData'][_0x2bbb8d]['attachChange']&&!_0x5ed7bd['diffData'][_0x2bbb8d]['attachChange']['isAttached']||(_0x1e8ae3[_0x2bbb8d]=_0x5ed7bd['diffData'][_0x2bbb8d]['attributesAfter']||{});return _0x1e8ae3;}['_removeRevisionMarkers'](_0x5d5010){return(_0x5d5010=_0x5d5010['filter'](_0x406a3f=>!_0x406a3f['name']||'revision-start'!==_0x406a3f['name']&&'revision-end'!==_0x406a3f['name']))['forEach'](_0x2c03f1=>{'string'!=typeof _0x2c03f1&&(_0x2c03f1['children']=this['_removeRevisionMarkers'](_0x2c03f1['children']),_0x2c03f1['attributes']=_0x2c03f1['attributes']['filter'](_0x3fae97=>!_0x3fae97[0x0]['startsWith']('data-revision-')));}),_0x5d5010;}async['compare'](_0x9d6dda,_0x5bdb4f,_0x55129e=!0x1){if(!this['isEnabled'])return;const _0x542fb2=this['diff'],_0x32254b=this['repository'],_0x3ebc7b='string'==typeof _0x9d6dda?_0x32254b['getRevision'](_0x9d6dda):_0x9d6dda,_0xf7a29d='string'==typeof _0x5bdb4f?_0x32254b['getRevision'](_0x5bdb4f):_0x5bdb4f,_0x1c09f7=_0x3ebc7b['id'],_0x4b20a0=_0xf7a29d?_0xf7a29d['id']:null;if(!_0x55129e&&this['diff']&&this['diff']['newRevisionId']===_0x1c09f7&&this['diff']['oldRevisionId']===_0x4b20a0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1c09f7,_0x4b20a0);const _0x29f774=this['_getRevisionsRange'](_0x3ebc7b,_0xf7a29d,!0x0)['map'](_0x2416c3=>this['loadRevisionData'](_0x2416c3));return _0x29f774['push'](new Promise(_0x443945=>{setTimeout(_0x443945,0x14);})),Promise['all'](_0x29f774)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3584ff=this['_getDiff'](_0x1c09f7,_0x4b20a0);for(const _0x176fa1 of _0x3584ff['changes'])this['_changeIdToChange']['set'](_0x176fa1['id'],_0x176fa1);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc99371=>{for(const _0x35fb9f of this['editor']['model']['document']['getRootNames']())_0xc99371['detachRoot'](_0x35fb9f);for(const _0x2dc5ba of Object['keys'](_0x3584ff['model'])){const _0x70e35e=_0xc99371['addRoot'](_0x2dc5ba);for(const _0x3579f1 of Object['keys'](_0x3584ff['attributes'][_0x2dc5ba]))_0xc99371['setAttribute'](_0x3579f1,_0x3584ff['attributes'][_0x2dc5ba][_0x3579f1],_0x70e35e);_0xc99371['insert'](_0x3584ff['model'][_0x2dc5ba],_0x70e35e,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3584ff['changes'])),this['isReady']=!0x0;})['catch'](_0x25b4b6=>{console['error'](_0x25b4b6),this['_cleanUp'](),_0x542fb2&&(this['diff']=_0x542fb2),this['isReady']=!0x0;});}['addRevisionData'](_0x54156a,_0x248d28){const _0x166317=this['repository']['createRevision'](_0x54156a);return _0x166317['on']('_update',(_0xb1bece,_0x29afa8,_0x6f96f9)=>_0x248d28(_0x29afa8,_0x6f96f9,_0x166317)),this['repository']['addRevision'](_0x166317),_0x166317;}['loadRevisionData'](_0x377330){if(!_0x377330||_0x377330['diffData'])return Promise['resolve']();{const _0xcd661d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xcd661d,'revisionId':_0x377330['id']})['then'](_0x4c3c54=>{_0x377330['_update']({'diffData':_0x4c3c54['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},_0x53fae0=>{for(const _0x4fcd30 of this['editor']['model']['document']['getRootNames']())_0x53fae0['detachRoot'](_0x4fcd30);});}['_sortAndFilterDiffChanges'](_0x458b2e){const _0x2f76c2=[],_0x1a61be=new Map();for(const _0x40acd0 of this['editor']['model']['document']['getRootNames']()){const _0x5df763=this['editor']['editing']['view']['getDomRoot'](_0x40acd0);if(!_0x5df763)continue;const _0xd9b013=_0x5df763['getClientRects']()['item'](0x0);_0xd9b013&&(_0x2f76c2['push'](_0x40acd0),_0x1a61be['set'](_0x40acd0,_0xd9b013));}return _0x2f76c2['sort']((_0x519e9d,_0x3fc077)=>{const _0x312bfd=_0x1a61be['get'](_0x519e9d),_0x52b6b1=_0x1a61be['get'](_0x3fc077);return _0x312bfd['y']-_0x52b6b1['y']||_0x312bfd['x']-_0x52b6b1['x'];}),(_0x458b2e=_0x458b2e['filter'](_0x360ec7=>_0x2f76c2['includes'](_0x360ec7['rootName'])))['sort']((_0x45a763,_0x254524)=>_0x2f76c2['indexOf'](_0x45a763['rootName'])-_0x2f76c2['indexOf'](_0x254524['rootName'])),_0x458b2e;}['_makeTape'](_0xc17974){const _0x59e0a3=Array['from'](_0xc17974['markers'])['filter'](([_0x2977ce,_0x2d6fc7])=>_0x2977ce['startsWith']('revision:')&&!_0x2d6fc7['isCollapsed']),_0x61ed7=Array['from'](this['editor']['model']['createRangeIn'](_0xc17974)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x59e0a3['length'])for(const _0xfd21f7 of _0x61ed7){const [_0xd10d80,_0x224d54]=_0x59e0a3[0x0],[,_0x3a74fe,_0x441b36]=_0xd10d80['split'](':');if(_0x224d54['end']['isEqual'](_0xfd21f7['nextPosition'])&&_0x59e0a3['shift'](),(_0xfd21f7['previousPosition']['isEqual'](_0x224d54['start'])||_0xfd21f7['previousPosition']['isAfter'](_0x224d54['start']))&&('insertion'==_0x3a74fe?_0xfd21f7['isAdded']={'userId':_0x441b36}:'deletion'==_0x3a74fe&&(_0xfd21f7['isRemoved']={'userId':_0x441b36})),0x0==_0x59e0a3['length'])break;}return _0x61ed7;}['_refreshStartEndIndex'](_0x4b4a04){const _0x3dbca6=new Map();for(let _0x2f5302=0x0;_0x2f5302<_0x4b4a04['length'];_0x2f5302++)'text'===_0x4b4a04[_0x2f5302]['type']?(_0x4b4a04[_0x2f5302]['item']['startIndex']=_0x2f5302,_0x4b4a04[_0x2f5302]['item']['endIndex']=_0x2f5302):('elementStart'===_0x4b4a04[_0x2f5302]['type']?_0x4b4a04[_0x2f5302]['item']['startIndex']=_0x2f5302:'elementEnd'===_0x4b4a04[_0x2f5302]['type']&&(_0x4b4a04[_0x2f5302]['item']['endIndex']=_0x2f5302),_0x3dbca6['set'](_0x4b4a04[_0x2f5302]['id'],_0x2f5302));for(const _0x2d2eb0 of _0x3dbca6['values']())'elementStart'===_0x4b4a04[_0x2d2eb0]['type']?_0x4b4a04[_0x2d2eb0]['item']['endIndex']=_0x3dbca6['get'](_0x4b4a04[_0x2d2eb0]['pairId']):'elementEnd'===_0x4b4a04[_0x2d2eb0]['type']&&(_0x4b4a04[_0x2d2eb0]['item']['startIndex']=_0x3dbca6['get'](_0x4b4a04[_0x2d2eb0]['pairId']));}['_processTape'](_0x4165f8){for(let _0x1df855=0x0;_0x1df855<_0x4165f8['length'];_0x1df855++){if('elementStart'===_0x4165f8[_0x1df855]['type'])_0x4165f8[_0x1df855]['item']['startIndex']=_0x1df855;else{if('elementEnd'===_0x4165f8[_0x1df855]['type']){_0x4165f8[_0x1df855]['item']['endIndex']=_0x1df855;const _0x28ccfa=_0x4165f8[_0x1df855]['item']['startIndex'];_0x4165f8[_0x28ccfa]['pairId']=_0x4165f8[_0x1df855]['id'],_0x4165f8[_0x1df855]['pairId']=_0x4165f8[_0x28ccfa]['id'];}else _0x4165f8[_0x1df855]['item']['startIndex']=_0x1df855,_0x4165f8[_0x1df855]['item']['endIndex']=_0x1df855,_0x4165f8[_0x1df855]['pairId']=null;}_0x4165f8[_0x1df855]['markersStart']||(_0x4165f8[_0x1df855]['markersStart']=[],_0x4165f8[_0x1df855]['markersEnd']=[]);}}['_markInsertions'](_0x539b59,_0x5c089b){const _0xb51e4b=_0x539b59['filter'](_0x6a9a58=>!_0x6a9a58['isAdded']);for(let _0x39ec74=0x0;_0x39ec74<_0x5c089b['length'];_0x39ec74++)_0x5c089b[_0x39ec74]['isAdded']&&(_0xb51e4b[_0x39ec74]['isAdded']=_0x5c089b[_0x39ec74]['isAdded']);}['_makeModelFromViewString'](_0x3b85a5){const _0x4cf8a=JSON['parse'](_0x3b85a5),_0x49c0fa=this['editor']['editing']['view']['document'],_0xfa0bd0=new _0x2d7291(_0x49c0fa,_0x4cf8a['map'](_0xf3953d=>this['_getViewObj'](_0xf3953d)));return this['editor']['data']['toModel'](_0xfa0bd0);}['_getViewObj'](_0x94b4fc){const _0x483c93=this['editor']['editing']['view']['document'];if('string'==typeof _0x94b4fc)return new _0x309635(_0x483c93,_0x94b4fc);{const _0x363636=_0x94b4fc['children']['map'](_0xe58112=>this['_getViewObj'](_0xe58112));return new(Z[_0x94b4fc['type']]||_0x3489bf)(_0x483c93,_0x94b4fc['name'],_0x94b4fc['attributes'],_0x363636);}}['_getDiff'](_0x178eb8,_0x3cd307=null){const _0x3a4a60=this['repository']['getRevision'](_0x178eb8),_0x361a9d=_0x3cd307?this['repository']['getRevision'](_0x3cd307):null,_0x8c127c=this['_getRevisionsRange'](_0x3a4a60,_0x361a9d),_0x516138=_0x8c127c[_0x8c127c['length']-0x1],_0x51f4ff=new Map(),_0x17661b={'model':{},'attributes':{},'changes':[]},_0x1e63ae=new Set(),_0x4b9f55=new Map();for(let _0x138754=_0x8c127c['length']-0x1;_0x138754>=0x0;_0x138754--){const _0x5be6b9=_0x8c127c[_0x138754];for(const _0x46c0a9 of Object['keys'](_0x5be6b9['diffData']))if(_0x5be6b9['diffData'][_0x46c0a9]['attachChange']){const _0x691fde=_0x5be6b9['diffData'][_0x46c0a9]['attachChange'];_0x691fde['isAttached']?(_0x1e63ae['add'](_0x46c0a9),_0x4b9f55['has'](_0x46c0a9)&&_0x4b9f55['get'](_0x46c0a9)['userId']==_0x691fde['userId']?_0x4b9f55['delete'](_0x46c0a9):_0x4b9f55['set'](_0x46c0a9,_0x691fde)):_0x4b9f55['has'](_0x46c0a9)?(_0x1e63ae['delete'](_0x46c0a9),_0x4b9f55['delete'](_0x46c0a9)):(_0x1e63ae['add'](_0x46c0a9),_0x4b9f55['set'](_0x46c0a9,_0x691fde));}else _0x1e63ae['add'](_0x46c0a9);}for(const _0x24bafd of _0x1e63ae){const _0x138072=_0x4b9f55['has'](_0x24bafd)&&!_0x4b9f55['get'](_0x24bafd)['isAttached'];let _0x20a843=_0x138072?_0x8c127c['length']-0x1:0x0;const _0x51154e=_0x138072?-0x1:0x1;for(;_0x8c127c[_0x20a843];){const _0x4a858b=_0x8c127c[_0x20a843];if(_0x4a858b['diffData'][_0x24bafd]){const _0x2e5790=_0x138072?_0x4a858b['diffData'][_0x24bafd]['attributesBefore']:_0x4a858b['diffData'][_0x24bafd]['attributesAfter'];_0x17661b['attributes'][_0x24bafd]=_0x2e5790?_0x2b9a95(_0x2e5790):{};break;}_0x20a843+=_0x51154e;}}for(const _0xe4a39f of _0x8c127c){_0xe4a39f['model']={};for(const _0xb70ded of _0xe4a39f['authors'])_0x51f4ff['set'](_0xb70ded['id'],_0xb70ded);for(const _0x41775e of _0x1e63ae){const _0x366bab=_0xe4a39f['diffData'][_0x41775e]?_0xe4a39f['diffData'][_0x41775e]['insertions']:'[]',_0x85ffa5=_0xe4a39f['diffData'][_0x41775e]?_0xe4a39f['diffData'][_0x41775e]['deletions']:'[]';_0xe4a39f['model'][_0x41775e]={'insertions':this['_makeModelFromViewString'](_0x366bab),'deletions':this['_makeModelFromViewString'](_0x85ffa5)};}}for(const _0x62e427 of _0x1e63ae){let _0x10004b=null,_0x74d701=0x0;const _0x130c58=new Map(Array['from'](_0x3a4a60['model'][_0x62e427]['insertions']['markers'])['filter'](([_0xf1da6b])=>!_0xf1da6b['startsWith']('revision:')));let _0x4c3cd3=0x0;for(const _0x449fc2 of _0x8c127c){const _0x4ab6a3=this['_makeTape'](_0x449fc2['model'][_0x62e427]['insertions']);_0x449fc2==_0x3a4a60?(_0x10004b=_0x4ab6a3,_0x74d701=_0x10004b['length'],_0x10004b['forEach'](_0x374e08=>{_0x374e08['id']=_0x4c3cd3++;}),this['_processTape'](_0x10004b)):this['_markInsertions'](_0x10004b,_0x4ab6a3);const _0x3ba2e5=_0x10004b['filter'](_0x1fce7b=>!_0x1fce7b['isAdded'])['map'](_0x102a36=>_0x102a36['id']);let _0x4d8842=0x0;const _0x2b964f=this['_makeTape'](_0x449fc2['model'][_0x62e427]['deletions']);_0x2b964f['forEach'](_0x4d1fcf=>{_0x4d1fcf['isRemoved']?_0x4d1fcf['id']=_0x74d701++:_0x4d1fcf['id']=_0x3ba2e5[_0x4d8842++];}),this['_processTape'](_0x2b964f),this['_setDistance'](_0x10004b,'isAdded'),this['_setDistance'](_0x2b964f,'isRemoved'),_0x449fc2==_0x3a4a60&&this['_markMarkers'](_0x10004b,_0x130c58),_0x10004b=this['_joinTapes'](_0x10004b,_0x2b964f),this['_refreshStartEndIndex'](_0x10004b),this['_setDistance'](_0x10004b,'isRemoved');}_0x10004b=_0x10004b['filter'](_0x4b80e2=>!(_0x4b80e2['isAdded']&&_0x4b80e2['isRemoved']));const _0x296ba9=new Map(_0x516138['model'][_0x62e427]['deletions']['markers']),_0x333095=new Set(_0x130c58['keys']());for(const _0x1e7a35 of _0x296ba9['keys']())_0x333095['delete'](_0x1e7a35);this['_markSuggestions'](_0x10004b,_0x333095),this['_fixObsoleteTags'](_0x10004b),_0x10004b=this['_removeMissingPairs'](_0x10004b),_0x10004b=this['_markMismatchedRemovedTags'](_0x10004b),_0x10004b=this['_removeUnsupportedChanges'](_0x10004b);const {root:_0x4a46c1,changes:_0x35e2b5}=this['_makeModelFromTape'](_0x10004b,_0x51f4ff,_0x62e427);_0x17661b['model'][_0x62e427]=_0x4a46c1;const _0x5ae188=_0x4b9f55['get'](_0x62e427);if(_0x5ae188){const _0x379a9c=_0x51f4ff['get'](_0x5ae188['userId']),_0x28f3fe=new r({'author':_0x379a9c,'type':_0x5ae188['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x62e427});_0x35e2b5['unshift'](_0x28f3fe),_0x17661b['attributes'][_0x62e427]['revisionHistoryAttachChange']=_0x28f3fe['id'];}_0x17661b['changes']=_0x17661b['changes']['concat'](_0x35e2b5);}return _0x17661b;}['_markMarkers'](_0x613dd0,_0x239c8a){for(let _0x5976db=0x0;_0x5976db<_0x613dd0['length'];_0x5976db++)for(const [_0x1f8255,_0x29fbda]of _0x239c8a)_0x29fbda['start']['isEqual'](_0x613dd0[_0x5976db]['previousPosition'])&&_0x613dd0[_0x5976db]['markersStart']['push'](_0x1f8255),_0x29fbda['end']['isEqual'](_0x613dd0[_0x5976db]['nextPosition'])&&_0x613dd0[_0x5976db]['markersEnd']['push'](_0x1f8255);}['_joinTapes'](_0x686dbc,_0x18da1d){let _0xd70e42=[],_0x47020f=0x0,_0x26207c=0x0;for(;_0x47020f<_0x686dbc['length']||_0x26207c<_0x18da1d['length'];){const _0x38478a=_0x686dbc[_0x47020f]||{},_0xda72b8=_0x18da1d[_0x26207c]||{};if(_0x38478a['id']==_0xda72b8['id'])_0x47020f++,_0x26207c++,_0xd70e42['push'](_0x38478a);else{if(_0xda72b8['isRemoved']&&_0x38478a['isAdded']){const {commonTape:_0xef2f68,iEnd:_0x4fdb38,jEnd:_0x140c0c}=this['_threeWayMerge'](_0x686dbc,_0x47020f,_0x18da1d,_0x26207c);_0xd70e42=_0xd70e42['concat'](_0xef2f68),_0x47020f=_0x4fdb38,_0x26207c=_0x140c0c;}else _0xda72b8['isRemoved']?(_0x26207c++,_0xd70e42['push'](_0xda72b8)):(_0x47020f++,_0xd70e42['push'](_0x38478a));}}return _0xd70e42;}['_markSuggestions'](_0x548cf7,_0x1a689b){const _0x32cb5d=[];for(let _0x978992=0x0;_0x978992<_0x548cf7['length'];_0x978992++){for(let _0x13fd12=0x0;_0x13fd12<_0x548cf7[_0x978992]['markersStart']['length'];_0x13fd12++){const _0x472637=_0x548cf7[_0x978992]['markersStart'][_0x13fd12];if(!_0x1a689b['has'](_0x472637))continue;const {group:_0x2ed440,type:_0x26956e,authorId:_0x4b4506}=_0x3f78d0(_0x472637);'revision-suggestion'!=_0x2ed440||'insertion'!=_0x26956e&&'deletion'!=_0x26956e||(_0x32cb5d['unshift']({'type':_0x26956e,'name':_0x472637,'userId':_0x4b4506}),_0x548cf7[_0x978992]['markersStart']['splice'](_0x13fd12,0x1),_0x13fd12--);}_0x3c29b7(_0x548cf7[_0x978992]);for(let _0x5e3167=0x0;_0x5e3167<_0x548cf7[_0x978992]['markersEnd']['length'];_0x5e3167++){const _0x2a014e=_0x548cf7[_0x978992]['markersEnd'][_0x5e3167];if(!_0x1a689b['has'](_0x2a014e))continue;const {group:_0x269f5a,type:_0x5c5820}=_0x3f78d0(_0x2a014e);if('revision-suggestion'!=_0x269f5a||'insertion'!=_0x5c5820&&'deletion'!=_0x5c5820)continue;_0x548cf7[_0x978992]['markersEnd']['splice'](_0x5e3167,0x1),_0x5e3167--;const _0x9a83a=_0x32cb5d['findIndex'](_0x1c6fde=>_0x1c6fde['name']==_0x2a014e);_0x9a83a>-0x1&&_0x32cb5d['splice'](_0x9a83a,0x1);}}function _0x3f78d0(_0x162a8b){const _0x32633d=_0x162a8b['split'](':');return{'group':_0x32633d[0x0],'type':_0x32633d[0x1],'subType':_0x32633d['length']>=0x5?_0x32633d[0x2]:null,'id':_0x32633d['length']<0x5?_0x32633d[0x2]:_0x32633d[0x3],'authorId':_0x32633d['length']<0x5?_0x32633d[0x3]:_0x32633d[0x4],'markerCount':0x6==_0x32633d['length']?_0x32633d[0x5]:null};}function _0x3c29b7(_0x3643f0){for(let _0x184257=0x0;_0x184257<_0x32cb5d['length'];_0x184257++){if(_0x3643f0['isAdded']&&'insertion'==_0x32cb5d[_0x184257]['type'])return _0x3643f0['isAddSuggestion']=_0x32cb5d[_0x184257],void delete _0x3643f0['isAdded'];if(!_0x3643f0['isAdded']&&!_0x3643f0['isRemoved']&&'deletion'==_0x32cb5d[_0x184257]['type'])return void(_0x3643f0['isRemoveSuggestion']=_0x32cb5d[_0x184257]);}}}['_setDistance'](_0x40c7a0,_0x427af7){let _0x58f780=0x0,_0x4391ac=!0x1;const _0x31361c=new Map();for(const _0x5d9542 of _0x40c7a0)_0x5d9542[_0x427af7]?_0x4391ac&&(_0x58f780++,_0x4391ac=!0x1):(_0x58f780++,_0x4391ac=!0x0),_0x31361c['set'](_0x5d9542['id'],_0x58f780);for(let _0x2d4fd6=0x0;_0x2d4fd6<_0x40c7a0['length'];_0x2d4fd6++){if('isRemoved'==_0x427af7&&_0x40c7a0[_0x2d4fd6]['isAdded']||'isAdded'==_0x427af7&&_0x40c7a0[_0x2d4fd6]['isRemoved'])continue;if('text'==_0x40c7a0[_0x2d4fd6]['type']){_0x40c7a0[_0x2d4fd6]['distance']=0x0;continue;}const _0x365901=_0x31361c['get'](_0x40c7a0[_0x2d4fd6]['pairId']),_0x517ae0=_0x31361c['get'](_0x40c7a0[_0x2d4fd6]['id']);_0x40c7a0[_0x2d4fd6]['distance']=_0x365901-_0x517ae0;}}['_getRevisionsRange'](_0x573d61,_0x3f7b54,_0x5adf4b=!0x1){const _0x112d3a=[];let _0x262658=this['repository']['getIndex'](_0x573d61),_0x4430ba=this['repository']['getIndex'](_0x3f7b54);for(-0x1==_0x4430ba&&(_0x4430ba=this['repository']['_revisions']['length'],_0x5adf4b=!0x1);_0x262658<_0x4430ba;)_0x112d3a['push'](this['repository']['getRevision'](_0x262658)),_0x262658++;return _0x5adf4b&&_0x112d3a['push'](this['repository']['getRevision'](_0x262658)),_0x112d3a;}['_threeWayMerge'](_0x19ae76,_0x351a83,_0x2cc293,_0x25fc5d){const _0x4efc1f=this['editor']['model']['schema'];let _0x3ea27f=_0x351a83;for(;_0x19ae76[_0x3ea27f]&&_0x19ae76[_0x3ea27f]['isAdded'];)_0x3ea27f++;let _0x512ff8=_0x25fc5d;for(;_0x2cc293[_0x512ff8]&&_0x2cc293[_0x512ff8]['isRemoved'];)_0x512ff8++;_0x393c89(_0x19ae76,_0x351a83,_0x3ea27f),_0x393c89(_0x2cc293,_0x25fc5d,_0x512ff8);const _0x380b86=_0x2cc293['slice'](_0x25fc5d,_0x512ff8)['concat'](_0x19ae76['slice'](_0x351a83,_0x3ea27f));return _0x380b86['sort']((_0x4b7920,_0x13350f)=>_0x4b7920['side']!=_0x13350f['side']?_0x4b7920['side']-_0x13350f['side']:_0x4b7920['level']!=_0x13350f['level']?_0x4b7920['level']-_0x13350f['level']:_0x4b7920['distance']!=_0x13350f['distance']?_0x13350f['distance']-_0x4b7920['distance']:!!_0x4b7920['isAdded']!=!!_0x13350f['isAdded']?-0x1==_0x4b7920['side']||0x0==_0x4b7920['side']?_0x4b7920['isAdded']?-0x1:0x1:_0x4b7920['isAdded']?0x1:-0x1:_0x4b7920['index']-_0x13350f['index']),{'commonTape':_0x380b86,'iEnd':_0x3ea27f,'jEnd':_0x512ff8};function _0x393c89(_0x548167,_0x3bfdf7,_0x28d169){let _0x107186=-0x1,_0x32127b=Number['POSITIVE_INFINITY'],_0x3a5357=!0x0;for(let _0x102e11=_0x3bfdf7;_0x102e11<_0x28d169;_0x102e11++)if(_0x4efc1f['isInline'](_0x548167[_0x102e11]['item'])||(_0x3a5357=!0x1),_0x548167[_0x102e11]['item']['startIndex']<_0x3bfdf7&&(_0x107186=_0x102e11),_0x548167[_0x102e11]['item']['endIndex']>=_0x28d169){_0x32127b=_0x102e11;break;}_0x3a5357&&(_0x107186=_0x28d169-0x1);for(let _0x5caea0=_0x3bfdf7;_0x5caea0<_0x28d169;_0x5caea0++)_0x548167[_0x5caea0]['side']=_0x5caea0<=_0x107186?-0x1:_0x5caea0<_0x32127b?0x0:0x1,_0x548167[_0x5caea0]['index']=_0x5caea0;let _0x17cdb9=0x0;for(let _0x5738c8=_0x3bfdf7;_0x5738c8<=_0x107186;_0x5738c8++)0x0==_0x548167[_0x5738c8]['distance']?_0x548167[_0x5738c8]['level']=_0x17cdb9:(_0x17cdb9++,_0x548167[_0x5738c8]['level']=_0x17cdb9,_0x17cdb9++);for(let _0x16528d=_0x3bfdf7;_0x16528d<_0x28d169;_0x16528d++)0x0==_0x548167[_0x16528d]['side']&&(_0x548167[_0x16528d]['level']=_0x17cdb9);_0x17cdb9=0x0;for(let _0x211252=_0x28d169-0x1;_0x211252>=_0x32127b;_0x211252--)0x0==_0x548167[_0x211252]['distance']?_0x548167[_0x211252]['level']=_0x17cdb9:(_0x17cdb9--,_0x548167[_0x211252]['level']=_0x17cdb9,_0x17cdb9--);}}['_fixObsoleteTags'](_0x1db992){const _0x1efb6a=new Map(),_0x1865b2=this['editor']['model']['schema'];for(let _0x7dd145=0x1;_0x7dd145<_0x1db992['length'];_0x7dd145++){let _0x1588b6,_0x293743,_0x13de96;const _0x30453b=_0x1db992[_0x7dd145],_0x1daa9f=_0x1db992[_0x7dd145-0x1];if('text'==_0x30453b['type'])continue;if(_0x30453b['type']!=_0x1daa9f['type'])continue;if(!_0x1865b2['isBlock'](_0x1daa9f['item'])||_0x1865b2['isLimit'](_0x1daa9f['item']))continue;if(!_0x1865b2['isBlock'](_0x30453b['item'])||_0x1865b2['isLimit'](_0x30453b['item']))continue;if((_0x1db992[_0x7dd145]['isAdded']||_0x1db992[_0x7dd145]['isAddSuggestion'])&&_0x1db992[_0x7dd145-0x1]['isRemoved'])_0x1588b6=_0x1db992[_0x7dd145],_0x293743=_0x1db992[_0x7dd145-0x1],_0x13de96=_0x7dd145-0x1;else{if(!_0x1db992[_0x7dd145]['isRemoved']||!_0x1db992[_0x7dd145-0x1]['isAdded']&&!_0x1db992[_0x7dd145-0x1]['isAddSuggestion'])continue;_0x1588b6=_0x1db992[_0x7dd145-0x1],_0x293743=_0x1db992[_0x7dd145],_0x13de96=_0x7dd145;}const _0x547259=_0x1588b6['level']==_0x293743['level'],_0x234769=Math['abs'](_0x1588b6['level'])<Math['abs'](_0x293743['level'])&&0x0==_0x293743['distance'];(_0x547259||_0x234769)&&(_0x1efb6a['set'](_0x293743['id'],_0x1588b6['id']),_0x1db992['splice'](_0x13de96,0x1),_0x7dd145--,_0x1588b6['isAdded']=!0x1);}for(let _0x5abda4=0x0;_0x5abda4<_0x1db992['length'];_0x5abda4++)_0x1efb6a['has'](_0x1db992[_0x5abda4]['pairId'])&&(_0x1db992[_0x5abda4]['pairId']=_0x1efb6a['get'](_0x1db992[_0x5abda4]['pairId']));}['_removeMissingPairs'](_0x3ced13){const _0x20730e=new Set(_0x3ced13['map'](_0x77e1b6=>_0x77e1b6['id']));for(let _0x4d1ef4=0x0;_0x4d1ef4<_0x3ced13['length'];_0x4d1ef4++)_0x20730e['has'](_0x3ced13[_0x4d1ef4]['pairId'])||0x0==_0x3ced13[_0x4d1ef4]['distance']||(_0x3ced13[_0x4d1ef4]['isIncorrect']=!0x0);return _0x3ced13['filter'](_0x3f91ff=>!_0x3f91ff['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4ec946){const _0x1c4319=new Set();for(let _0x103d3e=0x0;_0x103d3e<_0x4ec946['length'];_0x103d3e++){if(_0x1c4319['has'](_0x4ec946[_0x103d3e]['id'])&&_0x4ec946[_0x103d3e]['isRemoved']&&(_0x4ec946[_0x103d3e]['isIncorrect']=!0x0),_0x4ec946[_0x103d3e]['isIncorrect'])continue;if(0x0==_0x4ec946[_0x103d3e]['distance'])continue;if('elementStart'!=_0x4ec946[_0x103d3e]['type'])continue;if(null==_0x4ec946[_0x103d3e]['pairId'])continue;let _0x2342d0=_0x103d3e+0x1,_0x21e3d7=0x0;for(;_0x4ec946[_0x2342d0]['id']!=_0x4ec946[_0x103d3e]['pairId'];)'elementStart'==_0x4ec946[_0x2342d0]['type']?_0x21e3d7++:'elementEnd'==_0x4ec946[_0x2342d0]['type']&&_0x21e3d7--,_0x2342d0++;if(0x0!=_0x21e3d7){if(_0x4ec946[_0x103d3e]['isRemoved'])_0x4ec946[_0x103d3e]['isIncorrect']=!0x0;else{for(;_0x2342d0!=_0x103d3e;)_0x4ec946[_0x2342d0]['isRemoved']&&0x0!=_0x4ec946[_0x2342d0]['distance']&&(_0x4ec946[_0x2342d0]['isIncorrect']=!0x0,_0x1c4319['add'](_0x4ec946[_0x2342d0]['pairId'])),_0x2342d0--;}}}return _0x4ec946['filter'](_0x2ab2ef=>!_0x2ab2ef['isIncorrect']);}['_removeUnsupportedChanges'](_0x5b872d){const _0x3b8246=this['editor']['model']['schema'];for(let _0x59f589=0x0;_0x59f589<_0x5b872d['length'];_0x59f589++){if(!(_0x5b872d[_0x59f589]['isAdded']||_0x5b872d[_0x59f589]['isAddSuggestion']||_0x5b872d[_0x59f589]['isRemoved']||_0x5b872d[_0x59f589]['isRemoveSuggestion']))continue;if(0x0==_0x5b872d[_0x59f589]['distance'])continue;const _0x3b56b7=_0x5b872d[_0x59f589]['item'];_0x3b8246['isBlock'](_0x3b56b7)||_0x3b8246['isLimit'](_0x3b56b7)||(_0x5b872d[_0x59f589]['isAdded']&&delete _0x5b872d[_0x59f589]['isAdded'],_0x5b872d[_0x59f589]['isAddSuggestion']&&delete _0x5b872d[_0x59f589]['isAddSuggestion'],_0x5b872d[_0x59f589]['isRemoveSuggestion']&&delete _0x5b872d[_0x59f589]['isRemoveSuggestion'],_0x5b872d[_0x59f589]['isRemoved']&&(_0x5b872d[_0x59f589]['isIncorrect']=!0x0));}return _0x5b872d['filter'](_0x313dca=>!_0x313dca['isIncorrect']);}['_makeModelFromTape'](_0x310085,_0x2b5239,_0x416cf7){const _0x5cb760=new mt(),_0xab9630=[],_0x13faa9=new Map(),_0x4cedf5=this['editor']['model'],_0x37ece1=_0x4cedf5['schema'],_0xf93fc1=[_0x5cb760],_0x897120={},_0x56bea3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x443c98=null;const _0x4c3101=[0x0];for(let _0x3c9aef=0x0;_0x3c9aef<_0x310085['length'];_0x3c9aef++)if('elementStart'===_0x310085[_0x3c9aef]['type']){_0x310085[_0x3c9aef]['previousPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101);const _0x3a6eaa=new ft(_0x310085[_0x3c9aef]['item']['name'],_0x310085[_0x3c9aef]['item']['getAttributes']());_0xf93fc1[0x0]['_appendChild'](_0x3a6eaa),_0x4c3101['push'](0x0),_0xf93fc1['unshift'](_0x3a6eaa),_0x310085[_0x3c9aef]['nextPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101);}else'elementEnd'===_0x310085[_0x3c9aef]['type']?(_0xf93fc1['shift'](),_0x310085[_0x3c9aef]['previousPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101),_0x4c3101['pop'](),_0x4c3101[_0x4c3101['length']-0x1]++,_0x310085[_0x3c9aef]['nextPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101)):(_0x310085[_0x3c9aef]['previousPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101),_0x443c98?_0x443c98['_data']+=_0x310085[_0x3c9aef]['item']['data']:_0x443c98=new wt(_0x310085[_0x3c9aef]['item']['data'],_0x310085[_0x3c9aef]['item']['getAttributes']()),_0x310085[_0x3c9aef+0x1]&&'text'===_0x310085[_0x3c9aef+0x1]['type']&&_0x34bffc(_0x443c98,_0x310085[_0x3c9aef+0x1]['item'])||(_0xf93fc1[0x0]['_appendChild'](_0x443c98),_0x443c98=null),_0x4c3101[_0x4c3101['length']-0x1]+=_0x310085[_0x3c9aef]['item']['offsetSize'],_0x310085[_0x3c9aef]['nextPosition']=_0x4cedf5['createPositionFromPath'](_0x5cb760,_0x4c3101));for(let _0x42da9d=0x0;_0x42da9d<_0x310085['length'];_0x42da9d++){const _0x45d5bb=_0x310085[_0x42da9d]['previousPosition'],_0x1a17b5=_0x310085[_0x42da9d]['nextPosition'];for(const _0x4b5122 of _0x310085[_0x42da9d]['markersStart'])_0x13faa9['set'](_0x4b5122,{'start':_0x45d5bb,'end':null});_0x22ad7c('isRemoveSuggestion',_0x42da9d,_0x45d5bb,_0x1a17b5),_0x22ad7c('isAddSuggestion',_0x42da9d,_0x45d5bb,_0x1a17b5),_0x22ad7c('isRemoved',_0x42da9d,_0x45d5bb,_0x1a17b5),_0x22ad7c('isAdded',_0x42da9d,_0x45d5bb,_0x1a17b5);for(const _0x38c847 of _0x310085[_0x42da9d]['markersEnd']){_0x13faa9['get'](_0x38c847)['end']=_0x1a17b5;}}for(const [_0xf8407a,_0x4e95f4]of _0x13faa9){const _0x41275b=this['editor']['model']['createRange'](_0x4e95f4['start'],_0x4e95f4['end']);_0x5cb760['markers']['set'](_0xf8407a,_0x41275b);}return _0xab9630['sort']((_0x1c0558,_0x3a43c6)=>{const _0x521cb7=_0x5cb760['markers']['get']('revision:'+_0x1c0558['id']),_0xf26e44=_0x5cb760['markers']['get']('revision:'+_0x3a43c6['id']);return _0x521cb7['start']['isBefore'](_0xf26e44['start'])?-0x1:_0x521cb7['start']['isAfter'](_0xf26e44['start'])?0x1:_0x521cb7['end']['isBefore'](_0xf26e44['end'])?-0x1:_0x521cb7['end']['isAfter'](_0xf26e44['end'])?0x1:'add'===_0x1c0558['type']?-0x1:0x1;}),{'root':_0x5cb760,'changes':_0xab9630};function _0x22ad7c(_0x405736,_0x1fe17e,_0x260c34,_0x2ee222){const _0x189e87=!!_0x310085[_0x1fe17e][_0x405736],_0x55dfd8=_0x189e87?_0x310085[_0x1fe17e][_0x405736]['userId']:null,_0x3612b4=_0x1fe17e===_0x310085['length']-0x1,_0x37adc2=_0x56bea3[_0x405736][0x0],_0x272bd0=_0x37ece1['isObject'](_0x310085[_0x1fe17e]['item']);!_0x897120[_0x405736]&&_0x189e87?_0x897120[_0x405736]={'start':_0x260c34,'tapeItem':_0x310085[_0x1fe17e],'userId':_0x55dfd8,'type':_0x405736}:_0x897120[_0x405736]&&!_0x189e87?(_0x897120[_0x405736]['end']=_0x260c34,_0x585376(_0x897120[_0x405736]),_0x897120[_0x405736]=null):_0x897120[_0x405736]&&_0x189e87&&_0x897120[_0x405736]['userId']!==_0x55dfd8&&(_0x897120[_0x405736]['end']=_0x260c34,_0x37adc2&&_0x37adc2['userId']===_0x897120[_0x405736]['userId']||_0x585376(_0x897120[_0x405736]),_0x897120[_0x405736]={'start':_0x260c34,'tapeItem':_0x310085[_0x1fe17e],'userId':_0x55dfd8,'type':_0x405736}),_0x897120[_0x405736]&&_0x272bd0&&('elementStart'!==_0x310085[_0x1fe17e]['type']||_0x37adc2&&_0x37adc2['userId']===_0x55dfd8||_0x56bea3[_0x405736]['unshift']({'userId':_0x55dfd8,'object':_0x310085[_0x1fe17e]['item'],'change':_0x897120[_0x405736]}),'elementEnd'===_0x310085[_0x1fe17e]['type']&&_0x37adc2&&_0x37adc2['object']===_0x310085[_0x1fe17e]['item']&&(_0x56bea3[_0x405736]['shift'](),_0x897120[_0x405736]=_0x37adc2['change'])),_0x897120[_0x405736]&&_0x3612b4&&(_0x897120[_0x405736]['end']=_0x2ee222,_0x585376(_0x897120[_0x405736]),_0x897120[_0x405736]=null);}function _0x585376({start:_0x36e853,end:_0x5211ce,tapeItem:_0x4a6a09,userId:_0x5ab361,type:_0x2d3342}){const _0x57aefd=_0x4a6a09['item'],_0x451705=_0x4cedf5['schema']['isBlock'](_0x57aefd)&&!_0x4cedf5['schema']['isLimit'](_0x57aefd),_0x529443=_0x36e853['nodeAfter']==_0x5211ce['parent']&&_0x5211ce['isAtStart'];if(_0x451705&&_0x529443)return;const _0x40cc3d=_0x4cedf5['createRange'](_0x36e853,_0x5211ce),_0x116daf=_0x2b5239['get'](_0x5ab361),_0x23f2c4=new r({'author':_0x116daf,'type':'isAdded'==_0x2d3342||'isAddSuggestion'==_0x2d3342?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2d3342||'isRemoveSuggestion'==_0x2d3342},'createdAt':new Date(),'rootName':_0x416cf7});_0xab9630['push'](_0x23f2c4),_0x5cb760['markers']['set']('revision:'+_0x23f2c4['id'],_0x40cc3d);}function _0x34bffc(_0x16793f,_0x5dfdde){const _0x4dd752=_0x16793f['getAttributes'](),_0xae642e=_0x5dfdde['getAttributes']();for(const _0x3ce68b of _0x4dd752){if(_0x3ce68b[0x1]!==_0x5dfdde['getAttribute'](_0x3ce68b[0x0]))return!0x1;_0xae642e['next']();}return _0xae642e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1c72ea=>{const _0x4b6b0d=_0x1c72ea['markerName']['split'](':')[0x1],_0x4e1a7e=this['_getChangeFromId'](_0x4b6b0d);if(!_0x4e1a7e)return null;const _0x1240d2='add'==_0x4e1a7e['type']?'insertion':'deletion',_0xb21a11=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1240d2];return _0x4e1a7e['data']['isSuggestion']&&_0xb21a11['push']('ck-suggestion-marker-'+_0x1240d2+'-new'),this['activeChange']==_0x4e1a7e&&_0xb21a11['push']('ck-suggestion-marker--active'),{'classes':_0xb21a11,'attributes':{'data-change-id':_0x4b6b0d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x16ae12=>{_0x16ae12['on']('element:pre',(_0x1c00a8,_0x14069a,_0x48608f)=>{const _0x2833af=_0x14069a['viewItem']['getChild'](0x0);if(!_0x2833af||!_0x2833af['is']('element','code'))return;if(!_0x48608f['consumable']['consume'](_0x2833af,{'attributes':['vid_start','vid_end']}))return;const _0x28068f=_0x14069a['modelRange']['start']['nodeAfter'];_0x48608f['writer']['setAttribute']('vid_start',_0x2833af['getAttribute']('vid_start'),_0x28068f),_0x48608f['writer']['setAttribute']('vid_end',_0x2833af['getAttribute']('vid_end'),_0x28068f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x32ec30=>{_0x32ec30['on']('element',(_0x2f7039,_0x3e7202,_0x1a2fff)=>{if(!_0x1a2fff['consumable']['consume'](_0x3e7202['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3e7202['modelRange']['isCollapsed'])return;const _0x501eb9=_0x3e7202['modelRange']['start']['nodeAfter'];_0x501eb9['hasAttribute']('vid_start')||_0x501eb9['hasAttribute']('vid')||(_0x1a2fff['writer']['setAttribute']('vid_start',_0x3e7202['viewItem']['getAttribute']('vid_start'),_0x501eb9),_0x1a2fff['writer']['setAttribute']('vid_end',_0x3e7202['viewItem']['getAttribute']('vid_end'),_0x501eb9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5cb223=>_0x5cb223['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3498ff,[,_0x1c1575])=>{['vid_start','vid_end','vid']['includes'](_0x1c1575)&&(_0x3498ff['return']=!0x0,_0x3498ff['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4435f1=>{_0x4435f1['on']('attribute:vid',(_0x4a89c8,_0x317e45,_0x19d441)=>{if('\x20'!=_0x317e45['item']['data']||_0x317e45['item']['parent']['maxOffset']>0x1)return;if(!_0x19d441['consumable']['consume'](_0x317e45['item'],_0x4a89c8['name']))return;const _0x28493b=_0x19d441['writer'],_0x456e64=_0x19d441['mapper']['toViewRange'](_0x317e45['range']);_0x28493b['wrap'](_0x456e64,_0x28493b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x24c6fc){const _0x163ec9=_0x24c6fc['plugins']['get']('RevisionViewer');return(_0x172f5d,_0x339015,_0x39330d)=>{const _0x27eafa=_0x339015['markerName']['split'](':')[0x1],_0x44abbc=_0x163ec9['_getChangeFromId'](_0x27eafa);if(!_0x44abbc)return null;const _0x5ddbc2='add'==_0x44abbc['type']?'split':'merge';if(!_0x39330d['consumable']['test'](_0x339015['markerRange'],_0x172f5d['name']))return;const _0x455beb=_0x339015['markerRange']['getWalker'](),_0x235486=_0x339015['markerRange']['start'],_0x132753=_0x24c6fc['model']['schema'];let _0x5765d8=null,_0x4d1f47=null,_0x14277f=!0x1,_0x22f4e8=!0x1;for(const _0x5829e5 of _0x455beb){const _0x470ac4=_0x5829e5['item'];_0x14277f=_0x14277f||_0x132753['isContent'](_0x470ac4);const _0x102b86=_0x39330d['mapper']['toViewElement'](_0x470ac4);if(_0x102b86&&_0x102b86['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5829e5['type']&&(_0x132753['isBlock'](_0x470ac4)&&!_0x132753['isLimit'](_0x470ac4)&&(_0x470ac4['nextSibling']||_0x235486['isAtEnd']?_0x5765d8&&_0x5765d8['parent']==_0x470ac4||(_0x5765d8=_0x470ac4,_0x13c3f7(_0x5829e5['previousPosition']),_0x22f4e8=!0x0):_0x4d1f47=_0x4d1f47||_0x5829e5['previousPosition']));}function _0x13c3f7(_0x9706a4){const _0x2929b3=_0x39330d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5ddbc2}),_0x4b7c35=_0x39330d['mapper']['toViewPosition'](_0x9706a4);_0x44abbc['data']['isSuggestion']&&_0x39330d['writer']['addClass']('ck-suggestion-marker-'+_0x5ddbc2+'-new',_0x2929b3),_0x163ec9['activeChange']==_0x44abbc&&_0x39330d['writer']['addClass']('ck-suggestion-marker--active',_0x2929b3),_0x39330d['writer']['insert'](_0x4b7c35,_0x2929b3),_0x39330d['mapper']['bindElementToMarker'](_0x2929b3,_0x339015['markerName']);}_0x14277f||_0x22f4e8||!_0x4d1f47||_0x13c3f7(_0x4d1f47);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x17ced5,_0x2c9af0,_0x7e90cc)=>{const _0x5c2030=_0x7e90cc['mapper']['markerNameToElements'](_0x2c9af0['markerName']);if(_0x5c2030){for(const _0x4a4d0e of _0x5c2030)(_0x4a4d0e['hasClass']('ck-suggestion-marker-split')||_0x4a4d0e['hasClass']('ck-suggestion-marker-merge'))&&(_0x7e90cc['mapper']['unbindElementFromMarkerName'](_0x4a4d0e,_0x2c9af0['markerName']),_0x7e90cc['writer']['remove'](_0x4a4d0e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2998f6,_0x52488b,_0x2331dd)=>{const _0x463b54=_0x52488b['markerName']['split'](':')[0x1],_0xafc038=this['_getChangeFromId'](_0x463b54);if(!_0xafc038)return null;const _0x1b9023='add'==_0xafc038['type']?'split':'merge';if(_0x2331dd['consumable']['test'](_0x52488b['markerRange'],_0x2998f6['name']))for(const _0x1eb889 of _0x52488b['markerRange']['getItems']()){if(!_0x1eb889['is']('element','softBreak'))continue;const _0x2aecda=_0x2331dd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b9023}),_0x6cff97=_0x2331dd['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1eb889));_0xafc038['data']['isSuggestion']&&_0x2331dd['writer']['addClass']('ck-suggestion-marker-'+_0x1b9023+'-new',_0x2aecda),this['activeChange']==_0xafc038&&_0x2331dd['writer']['addClass']('ck-suggestion-marker--active',_0x2aecda),_0x2331dd['writer']['insert'](_0x6cff97,_0x2aecda),_0x2331dd['mapper']['bindElementToMarker'](_0x2aecda,_0x52488b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x161edd=>{for(const _0x21cf4f of this['editor']['model']['document']['getRootNames']()){const _0x113549=this['editor']['model']['document']['getRoot'](_0x21cf4f),_0xf647d4=this['editor']['editing']['view']['document']['getRoot'](_0x21cf4f);if(_0xf647d4){const _0x3686c5=_0x113549['getAttribute']('revisionHistoryAttachChange');if(_0x161edd['removeAttribute']('data-change-id',_0xf647d4),_0x161edd['removeClass']('ck-revision-history-root-add',_0xf647d4),_0x161edd['removeClass']('ck-revision-history-root-remove',_0xf647d4),_0x161edd['removeClass']('ck-revision-history-root--active',_0xf647d4),_0x3686c5){const _0x3b1714=this['_getChangeFromId'](_0x3686c5);if(!_0x3b1714)return null;_0x161edd['setAttribute']('data-change-id',_0x3686c5,_0xf647d4),_0x161edd['addClass']('ck-revision-history-root-'+_0x3b1714['type'],_0xf647d4),this['activeChange']==_0x3b1714&&_0x161edd['addClass']('ck-revision-history-root--active',_0xf647d4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x18e309=>'revision-comment:'+_0x18e309,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x123c22=>'revision-suggestion:'+_0x123c22,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x515086=>({'name':'suggestion:'+_0x515086,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x153bc4=>{const _0x299198=_0x153bc4['markerName']['split'](':')[0x1];return'insertion'!=_0x299198&&'deletion'!=_0x299198?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x299198]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x567407,_0x4d547d,_0x41c0c3)=>{const _0x24ea9e=_0x41c0c3['mapper']['markerNameToElements'](_0x4d547d['markerName']);if(_0x24ea9e){for(const _0x567835 of _0x24ea9e)_0x567835['is']('uiElement')&&(_0x41c0c3['mapper']['unbindElementFromMarkerName'](_0x567835,_0x4d547d['markerName']),_0x41c0c3['writer']['remove'](_0x567835));}},{'priority':'high'});}['_getChangeFromId'](_0x2608fd){return this['_changeIdToChange']['get'](_0x2608fd);}['_getViewForChange'](_0x24c4b3){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x24c4b3),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1912fc,_0x155eed,_0x4b95f5,_0x2dd2de)=>{_0x2dd2de&&this['_balloon']['remove'](_0x2dd2de),_0x4b95f5&&(this['_balloon']['add']({'view':_0x4b95f5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3d106e=this['editor']['editing'],_0x7aca32=this['_getChangeFromId'](_0x4b95f5['changeId']);let _0x1279e3;if(_0x7aca32['data']['isOnRoot']){const _0x181633=_0x3d106e['view']['getDomRoot'](_0x7aca32['rootName']);_0x1279e3=Array['from'](_0x181633['getClientRects']());}else{const _0x31db13=this['editor']['model']['markers']['get']('revision:'+_0x4b95f5['changeId']);_0x1279e3=Array['from'](_0x3d106e['mapper']['markerNameToElements'](_0x31db13['name']))['map'](_0x3f990d=>_0x3d106e['view']['domConverter']['mapViewToDom'](_0x3f990d))['map'](_0x19ccfe=>Array['from'](_0x19ccfe['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1279e3[0x0];return _0x1279e3['find'](_0x319724=>_0x319724['top']-0x3<=this['_activeViewTarget']['y']&&_0x319724['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x319724['left']-0x3<=this['_activeViewTarget']['x']&&_0x319724['right']+0x3>=this['_activeViewTarget']['x'])||_0x1279e3[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x425527,_0x216c93,_0x3b8da0,_0x2d8e2e)=>{this['activeView']=_0x3b8da0?this['_getViewForChange'](_0x3b8da0):null,this['editor']['model']['change'](()=>{const _0x23f2c0=this['editor']['editing'];_0x2d8e2e&&(_0x2d8e2e['data']['isOnRoot']?_0x23f2c0['view']['change'](_0x957d14=>{_0x957d14['removeClass']('ck-revision-history-root--active',_0x23f2c0['view']['document']['getRoot'](_0x2d8e2e['rootName']));}):_0x23f2c0['reconvertMarker']('revision:'+_0x2d8e2e['id'])),_0x3b8da0&&(_0x3b8da0['data']['isOnRoot']?_0x23f2c0['view']['change'](_0x58fc91=>{_0x58fc91['addClass']('ck-revision-history-root--active',_0x23f2c0['view']['document']['getRoot'](_0x3b8da0['rootName']));}):_0x23f2c0['reconvertMarker']('revision:'+_0x3b8da0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4185ed,_0x4fb9c6)=>{if(this['activeChange'])return;const _0x145922=this['_findChangeIdFromDomTarget'](_0x4fb9c6['target']),_0x2deb52=this['_changeIdToChange']['get'](_0x145922);_0x2deb52?(this['_activeViewTarget']={'x':_0x4fb9c6['domEvent']['x'],'y':_0x4fb9c6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2deb52)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x50cf37,_0x13c33e)=>{const _0x36cb9a=this['_findChangeIdFromDomTarget'](_0x13c33e['target']),_0x4275b3=this['_changeIdToChange']['get'](_0x36cb9a);_0x4275b3?(this['_activeViewTarget']={'x':_0x13c33e['domEvent']['x'],'y':_0x13c33e['domEvent']['y']},_0x4275b3===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4275b3):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x140cc5){do{const _0x5a8746=_0x140cc5['getAttribute']('data-change-id');if(_0x5a8746)return _0x5a8746;_0x140cc5=_0x140cc5['parent'];}while(_0x140cc5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x287bb6=>{for(const _0x2042bc of this['editor']['model']['markers'])_0x287bb6['removeMarker'](_0x2042bc);});}}function tt(_0x3e845c,_0x1e7cbb){return(_0x1d3bb8,_0x9a56ce,_0xcadafa)=>{if(!_0xcadafa['consumable']['test'](_0x9a56ce['markerRange'],_0x1d3bb8['name']))return;const _0x364ad0=_0x9a56ce['markerRange']['getWalker'](),_0x3d93c4=_0x9a56ce['markerRange']['start'],_0x41b976=_0x3e845c['model']['schema'];let _0x3856a2=null,_0x2c635c=null,_0x4dd4af=!0x1,_0x498906=!0x1;for(const _0x35c464 of _0x364ad0){const _0x5d631d=_0x35c464['item'];_0x4dd4af=_0x4dd4af||_0x41b976['isContent'](_0x5d631d);const _0x54e612=_0xcadafa['mapper']['toViewElement'](_0x5d631d);if(_0x54e612&&_0x54e612['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x35c464['type']&&(_0x41b976['isBlock'](_0x5d631d)&&!_0x41b976['isLimit'](_0x5d631d)&&(_0x5d631d['nextSibling']||_0x3d93c4['isAtEnd']?_0x3856a2&&_0x3856a2['parent']==_0x5d631d||(_0x3856a2=_0x5d631d,_0x405ce3(_0x35c464['previousPosition']),_0x498906=!0x0):_0x2c635c=_0x2c635c||_0x35c464['previousPosition']));}function _0x405ce3(_0x5f4af7){const _0x226925=_0xcadafa['mapper']['toViewPosition'](_0x5f4af7),_0x596724=_0xcadafa['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1e7cbb});_0xcadafa['writer']['insert'](_0x226925,_0x596724),_0xcadafa['mapper']['bindElementToMarker'](_0x596724,_0x9a56ce['markerName']);}_0x4dd4af||_0x498906||!_0x2c635c||_0x405ce3(_0x2c635c);};}class _t extends _0x419747{constructor(_0x4bd8cb){super(_0x4bd8cb);const _0x42298f=_0x4bd8cb['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x42298f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x42298f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5bfddb=this['editor'],_0x3891a1=_0x5bfddb['plugins']['get'](d),_0x34a657=_0x3891a1['isReady']?_0x3891a1['diff']['newRevisionId']:null;_0x5bfddb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x34a657);}['refresh'](){const {isReady:_0x12f4db,isEnabled:_0x164ddc,repository:_0x1b201d,diff:_0x117002}=this['editor']['plugins']['get'](d),_0x3383bd=_0x117002&&_0x1b201d['getLaterVisibleRevision'](_0x117002['newRevisionId']);this['isEnabled']=_0x12f4db&&_0x164ddc&&Boolean(_0x3383bd);}}class yt extends _0x419747{['_step'];constructor(_0x1aa893,{direction:_0x5d3cfc}){super(_0x1aa893);const _0x13f990=_0x1aa893['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5d3cfc?0x1:-0x1,this['listenTo'](_0x13f990,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x13f990,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x13f990,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x50a76f=this['editor'],_0x39c171=_0x50a76f['plugins']['get'](d),{isNavigationMode:_0x400131,currentChangeNumber:_0x29692e}=_0x39c171;let _0x52b84a;if(_0x39c171['activeChange']=_0x400131?_0x39c171['diff']['changes']['get'](_0x29692e+this['_step']):_0x39c171['diff']['changes']['first'],_0x39c171['activeChange']['data']['isOnRoot'])_0x52b84a=_0x50a76f['editing']['view']['getDomRoot'](_0x39c171['activeChange']['rootName']);else{const _0xf8eb79=_0x50a76f['model']['markers']['get']('revision:'+_0x39c171['activeChange']['id']);_0x52b84a=_0x4c1d78(_0x50a76f['editing'],_0xf8eb79);}_0x2ad45b({'target':_0x52b84a,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x5d1573,currentChangeNumber:_0x4e6ad0,numberOfChanges:_0x1e31e2,isReady:_0x5c0b1f,isEnabled:_0x345560}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x345560&&_0x5c0b1f&&_0x1e31e2)&&(!_0x5d1573||(0x1===this['_step']?_0x4e6ad0<_0x1e31e2-0x1:_0x4e6ad0>0x0));}}class li extends ts{constructor(_0x9e279c){super(_0x9e279c);const _0x15a34c=this['bindTemplate'],_0xb5df65=new te(_0x9e279c),_0x572a88=new te(_0x9e279c);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',(_0x171e08,_0x91ef6d)=>_0x171e08&&_0x91ef6d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5ae3c4,_0x43c934,_0x5dc501,_0x2440d0)=>{if(!_0x5ae3c4)return R(_0x9e279c,'Loading...');if(!_0x5dc501)return R(_0x9e279c,'No\x20changes');const _0x4039be=R(_0x9e279c,'NUMBER_OF_CHANGES',_0x5dc501);return _0x2440d0?R(_0x9e279c,'X_OF_Y_CHANGES',[_0x43c934+0x1,_0x5dc501]):_0x4039be;}),_0xb5df65['set']({'label':R(_0x9e279c,'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'}),_0x572a88['set']({'label':R(_0x9e279c,'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'}),_0xb5df65['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x572a88['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xb5df65['on']('execute',()=>this['fire']('execute','backward')),_0x572a88['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',_0x15a34c['if']('_isStatusLabelVisible','ck-hidden',_0x41465b=>!_0x41465b)]},'children':[{'text':_0x15a34c['to']('isNavigationMode',_0x3adf38=>_0x3adf38?R(_0x9e279c,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x9e279c,'Total')+':\x20')}]},{'text':_0x15a34c['to']('_statusText')}]},new _0x4e96f3(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xb5df65,_0x572a88]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x27bfb5{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x6303e4=this['editor']['editing']['view'];_0x6303e4['change'](_0x4864ad=>{for(const _0x4ccc37 of _0x6303e4['document']['roots'])_0x4864ad['addClass'](le,_0x4ccc37);});}['hide'](){const _0x3abcf4=this['editor']['editing']['view'];_0x3abcf4['change'](_0x1300d0=>{for(const _0x130fa7 of _0x3abcf4['document']['roots'])_0x1300d0['removeClass'](le,_0x130fa7);});}}class m extends _0x27bfb5{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1bac38=this['editor'],_0x2f737c=_0x1bac38['plugins']['get'](d),_0x4b7ae4=_0x1bac38['plugins']['get'](ge);_0x1bac38['ui']['componentFactory']['add']('exitToEditing',_0x1e4d70=>{const _0x44da0d=new te(_0x1e4d70);return _0x44da0d['set']({'label':R(_0x1e4d70,'Back\x20to\x20editing'),'icon':_0x1fbbe3['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x44da0d,'execute',()=>{_0x1bac38['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x44da0d;}),_0x1bac38['ui']['componentFactory']['add']('restoreRevision',_0x1c63ad=>{const _0x5b0214=new te(_0x1c63ad);return _0x5b0214['set']({'label':R(_0x1c63ad,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5b0214['bind']('isEnabled')['to'](_0x1bac38['commands']['get']('restoreRevision')),this['listenTo'](_0x5b0214,'execute',()=>_0x1bac38['execute']('restoreRevision')),_0x5b0214;}),_0x1bac38['ui']['componentFactory']['add']('changesNavigation',_0xa73327=>{const _0x21f088=new li(_0xa73327),_0x46355e=_0x1bac38['commands']['get']('showPreviousChange'),_0x4bc63b=_0x1bac38['commands']['get']('showNextChange');return _0x21f088['bind']('isBackwardNavigationEnabled')['to'](_0x46355e,'isEnabled'),_0x21f088['bind']('isForwardNavigationEnabled')['to'](_0x4bc63b,'isEnabled'),_0x21f088['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2f737c),this['listenTo'](_0x21f088,'execute',(_0x4d9a4f,_0x116a2b)=>{_0x1bac38['execute']('forward'===_0x116a2b?'showNextChange':'showPreviousChange');}),_0x21f088;}),_0x4b7ae4['show'](),_0x2f737c['on']('change:isReady',(_0x456c58,_0x489d39,_0x57fc95)=>{_0x57fc95?_0x4b7ae4['hide']():_0x4b7ae4['show']();});}}class pt extends _0x3bef68{['_resizeObserver']=null;constructor(_0x49af24,_0x32e227){super(_0x49af24,_0x32e227);const _0x1f3d26=this['bindTemplate'];this['set']({'label':R(_0x49af24,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x49af24,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1f3d26['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 _0x3c624e=this['fieldView']['element'];this['_tooltipString']=_0x3c624e['scrollWidth']>_0x3c624e['clientWidth']&&_0x3c624e['value']||'';}}class ri extends ts{constructor(_0x243498,_0x37d636,_0x1e4568){super(_0x243498);const _0x216ba3=new _0x32e90e();_0x216ba3['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 _0xa16476=['ck','ck-revision-history-sidebar__revision-author'];_0x1e4568&&_0xa16476['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1fc14e=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x243498,_0x1e4568?'Revision\x20creator':'Revision\x20author')},'children':[_0x216ba3,_0x37d636['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xa16476},'children':_0x1fc14e});}}function oi(_0x2fd70b,_0xf11441){const _0x4da873=_0x2fd70b['bindTemplate'],_0x37fd3e=_0x2fd70b['locale'],_0xb5ba94=_0x327b70(_0x37fd3e);_0xb5ba94['panelPosition']='sw';const _0x24fd62=function(_0x2f90ce,_0x1b27ef){const _0xd9f2ac=function(_0x57ed47,_0x5e3f62){const _0x358434=_0x57ed47['locale'],_0x47e7d6={'Compare\x20against\x20selected':R(_0x358434,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x358434,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x358434,'Restore\x20this\x20revision')};return _0x5e3f62['map'](_0x5d4432=>{const _0x725f0=_0x47e7d6[_0x5d4432['name']];return _0x725f0&&_0x725f0!==_0x5d4432['name']&&(_0x5d4432['name']=_0x725f0),_0x5d4432;});}(_0x2f90ce,_0x1b27ef),_0x554be0=new _0x24f698();for(const _0x4f368e of _0xd9f2ac){const _0x2c6b5b={'type':'button','model':new _0x2cea3a({'label':_0x4f368e['name'],'class':_0x4f368e['class'],'withText':!0x0,'role':'menuitem','_action':_0x4f368e['action']})};_0x2c6b5b['model']['bind']('isEnabled')['to'](_0x2f90ce,'isActionsDropdownOpen',_0x3f3863=>'function'!=typeof _0x4f368e['isEnabled']||(!_0x3f3863||_0x4f368e['isEnabled'](_0x2f90ce))),_0x554be0['add'](_0x2c6b5b);}return _0x554be0;}(_0x2fd70b,_0xf11441);return _0x2fd70b['bind']('isActionsDropdownOpen')['to'](_0xb5ba94,'isOpen'),_0xb5ba94['buttonView']['set']({'label':R(_0x37fd3e,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1fbbe3['threeVerticalDots']}),_0xb5ba94['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4da873['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4da873['to'](_0x22ab55=>_0x22ab55['stopPropagation']())}}),_0xb5ba94['on']('execute',_0x47038d=>{_0x2fd70b['isReady']&&'function'==typeof _0x47038d['source']['_action']&&_0x47038d['source']['_action'](_0x2fd70b);}),to(_0xb5ba94,_0x24fd62,{'role':'menu'}),_0xb5ba94['listenTo'](_0x2fd70b,'change:isActionsDropdownOpen',(_0x127d2c,_0x374868,_0x308f47)=>{if(_0x308f47)for(const _0x1a08e1 of _0xb5ba94['listView']['items']){const _0x4e93f7=_0x1a08e1['children']['first'],_0x4f03f6=_0xf11441['find'](_0x326912=>_0x326912['action']===_0x4e93f7['_action'])['isVisible'];_0x1a08e1['isVisible']=void 0x0===_0x4f03f6||_0x4f03f6(_0x2fd70b);}}),_0xb5ba94;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x16fb8d,_0x2030ae,_0x45842c,_0x4a0e78){super(_0x16fb8d);const _0x2b0668=this['bindTemplate'],_0x198183=function(_0x339227,_0x31f30c){const _0x13d000=Array['from'](_0x31f30c['authors'])['filter'](_0xac66ba=>_0xac66ba!=_0x31f30c['creator']);return _0x31f30c['creator']&&_0x13d000['unshift'](_0x31f30c['creator']),_0x13d000['map'](_0x196b8b=>new ri(_0x339227,_0x196b8b,_0x196b8b==_0x31f30c['creator']));}(_0x16fb8d,_0x2030ae);this['id']=_0x2030ae['id'],this['_revision']=_0x2030ae,this['_requireRevisionName']=_0x4a0e78,this['bind']('name','createdAt')['to'](_0x2030ae),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5ab238=>{return _0x2e21c8=_0x16fb8d['uiLanguage'],(_0x3a668a=_0x5ab238)['toLocaleDateString'](_0x2e21c8,{'month':'long','day':'numeric'})+',\x20'+_0x3a668a['toLocaleTimeString'](_0x2e21c8,{'hour':'numeric','minute':'numeric'});var _0x2e21c8,_0x3a668a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x16fb8d,_0x4d2d9f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xe1bfbb=>_0xe1bfbb||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1c0c59,_0xf419a8)=>_0x1c0c59&&_0xf419a8),this['revisionActionsView']=_0x45842c&&_0x45842c['length']?oi(this,_0x45842c):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2b0668['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2b0668['if']('isEnabled','ck-disabled',_0x426112=>!_0x426112),_0x2b0668['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2b0668['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2b0668['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':_0x2b0668['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':_0x198183}]},this['revisionActionsView']],'on':{'click':_0x2b0668['to'](_0x5b2b84=>{_0x5b2b84['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x26b19c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x26b19c,'change',()=>{this['_requireRevisionName']&&!_0x26b19c['value']||this['fire']('setName',{'id':this['id'],'name':_0x26b19c['value']}),_0x26b19c['value']||(_0x26b19c['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x16e1e9,_0x2b882b){const _0x28992b=_0x49cbb2['fromJSDate'](_0x16e1e9)['setLocale'](_0x2b882b),_0x4bda5f=_0x49cbb2['local'](),_0x3a2d67=_0x4bda5f['minus']({'days':0x1})['startOf']('day');let _0x2bb55c,_0x2a650d;return _0x28992b['hasSame'](_0x4bda5f,'day')?(_0x2bb55c=_0x28992b['startOf']('day')['toJSDate'](),_0x2a650d=_0x28992b['toRelativeCalendar']()):_0x28992b['hasSame'](_0x3a2d67,'day')?(_0x2bb55c=_0x3a2d67['toJSDate'](),_0x2a650d=_0x28992b['toRelativeCalendar']()):_0x28992b['hasSame'](_0x4bda5f,'week')?(_0x2bb55c=_0x28992b['startOf']('week')['toJSDate'](),_0x2a650d=_0x28992b['weekdayLong']||''):_0x28992b['hasSame'](_0x4bda5f,'year')?(_0x2bb55c=_0x28992b['startOf']('month')['toJSDate'](),_0x2a650d=_0x28992b['monthLong']||''):(_0x2bb55c=_0x28992b['startOf']('year')['toJSDate'](),_0x2a650d=String(_0x28992b['year'])),{'startDate':_0x2bb55c,'localizedPeriodName':_0x2a650d};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x289c16,_0x188f40,_0x226a4d,_0x19f6c2){super(_0x289c16);const _0x336914=ci(_0x188f40,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x188f40,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x226a4d,this['_requireRevisionName']=_0x19f6c2,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':_0x336914}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x788d8f){const _0xbb3ba=new hi(this['locale'],_0x788d8f,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xbb3ba);}['removeRevision'](_0xd9fc46){const _0x4c192e=this['revisionViews']['find'](_0x240132=>_0x240132['id']===_0xd9fc46['id']);this['revisionViews']['remove'](_0x4c192e);}}class as extends ts{constructor(_0x5cfc98){super(_0x5cfc98);const _0x3dca78=new _0x32e90e();_0x3dca78['content']=_0x1fbbe3['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3dca78,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x5cfc98,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5c8c54,_0x29cf0c,_0xfd107b,_0x5a042a){super(_0x5c8c54);const _0x53741c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x29cf0c,this['_revisionActions']=_0xfd107b,this['_requireRevisionName']=_0x5a042a,this['on']('select',(_0x1c1bd5,_0x7c5782)=>{this['fire']('revisionSelected',_0x7c5782);}),this['on']('setName',(_0x85a8b8,_0x3d1ada)=>{this['fire']('revisionSetName',_0x3d1ada);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5c8c54),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x53741c['if']('isEnabled','ck-disabled',_0x544c62=>!_0x544c62)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1b92c7 of this['_revisions'])this['_addRevision'](_0x1b92c7);this['_revisions']['on']('add',(_0x290bda,_0x733ec2)=>{this['_addRevision'](_0x733ec2);}),this['_revisions']['on']('remove',(_0x4da894,_0x4e4d67)=>{this['_removeRevision'](_0x4e4d67);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x241f56=>_0x241f56['revisionViews']['map'](_0x3095d3=>_0x3095d3))['flat']();}['selectRevision'](_0x3c1680){for(const _0x3b4709 of this['revisionViews'])_0x3c1680&&_0x3c1680['id']===_0x3b4709['id']?_0x3b4709['select']():_0x3b4709['deselect']();}['highlightRevisions'](_0x5c79c6){for(const _0x498f74 of this['revisionViews'])_0x5c79c6['some'](({id:_0x1b96c2})=>_0x1b96c2===_0x498f74['id'])?_0x498f74['highlight']():_0x498f74['unhighlight']();}['_addRevision'](_0x146bc8){const _0x803bd2=ci(_0x146bc8['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3621f7=this['timePeriodViews']['get'](0x0);_0x3621f7&&_0x3621f7['startDate']['getTime']()===_0x803bd2['getTime']()||(_0x3621f7=new ai(this['locale'],_0x803bd2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3621f7)),_0x3621f7['addRevision'](_0x146bc8);}['_removeRevision'](_0x25111a){const _0x4068db=ci(_0x25111a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4068db)['removeRevision'](_0x25111a);}['_getTimePeriodViewByStartDate'](_0x4aa412){return this['timePeriodViews']['find'](_0x18945a=>_0x18945a['startDate']['getTime']()===_0x4aa412['getTime']());}}class g extends _0x27bfb5{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x574c1c,uid as _0x550c17,Collection as _0x1a01dd,logWarning as _0x3f5218,FocusTracker as _0x3a76c5,KeystrokeHandler as _0x30129d,scrollViewportToShowTarget as _0x2b4ea3,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x4b5491}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x51a809,set as _0x33c6c1,unset as _0x495136,isEqual as _0x16990d}from'lodash-es';import{Plugin as _0x402cd2,PendingActions as _0x5d4558,icons as _0x9f8c6d,Command as _0x1b5e9a,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xbe6911,getMarkerDomElement as _0xf618ad,ConfirmMixin as _0x23ae36,sanitizeEditorConfig as _0x17e5d9}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x5deb62,ViewText as _0x88fe6e,ViewElement as _0x456d8f,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x56152c,ViewAttributeElement as _0x431e2c,ViewEmptyElement as _0x58e8fe,ViewRawElement as _0x15d160,ViewUIElement as _0x335e67,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x1f9e12,injectCssTransitionDisabler as ts,submitHandler as _0x1a6686,LabeledFieldView as at,createLabeledInputText as _0x2186b1,createDropdown as _0x2c9d20,ListView as te,ListItemView as _0x14c301,ButtonView as _0x4f565d,MenuBarMenuView as _0x54fa66,MenuBarMenuListView as _0xd62fd3,MenuBarMenuListItemView as _0x4a66b1,MenuBarMenuListItemButtonView as _0x166bdc,ContextualBalloon as _0x4ac98d,ToolbarSeparatorView as _0x319f4f,IconView as _0x2a2fa9,addListToDropdown as _0x3f963e,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x39bdfe}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x574c1c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x12d352){super(),this['id']=_0x12d352['id']||_0x550c17(),this['creator']=_0x12d352['creator']||null,this['authors']=_0x12d352['authors']||[],this['diffData']=_0x12d352['diffData']||null,this['toVersion']=_0x12d352['toVersion']||0x0,this['fromVersion']=_0x12d352['fromVersion']||0x0,this['set']('name',_0x12d352['name']||''),this['set']('createdAt',_0x12d352['createdAt']||new Date()),this['set']('attributes',_0x12d352['attributes']||{});}['setName'](_0x16d24d){this['_update']({'name':_0x16d24d});}['setAttribute'](_0x1bb605,_0x3c3ce0){const _0x33482f=_0x51a809(this['attributes']);_0x33c6c1(_0x33482f,_0x1bb605,_0x3c3ce0),this['_update']({'attributes':_0x33482f});}['removeAttribute'](_0x4a9b02){const _0x955ba8=_0x51a809(this['attributes']);_0x495136(_0x955ba8,_0x4a9b02),this['_update']({'attributes':_0x955ba8});}['_update'](_0x246eb5,_0x5d3896=!0x1){let _0x5c1e90=!0x1;const _0x300e20={'id':this['id']},_0x124507=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x1e0b60 of _0x124507){const _0x5213d3=_0x246eb5[_0x1e0b60];void 0x0!==_0x5213d3&&_0x5213d3!==this[_0x1e0b60]&&(this[_0x1e0b60]=_0x5213d3,_0x300e20[_0x1e0b60]=_0x5213d3,_0x5c1e90=!0x0);}_0x5c1e90&&(_0x300e20['authors']&&(_0x300e20['authorsIds']=_0x300e20['authors']['map'](_0x70dcd1=>_0x70dcd1['id']),delete _0x300e20['authors']),this['fire']('_update',_0x300e20,_0x5d3896));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5b3ecf=>_0x5b3ecf['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x402cd2{['_revisions'];static get['requires'](){return[_0xbe6911];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1c2800){super(_0x1c2800),this['_revisions']=new _0x1a01dd();}['afterInit'](){!async function(_0x1a4e29){const _0x39a217=_0x1ebc94([0x67,0x4b,0x70,0x36,0x55,0x76,0x35,0x46,0x53,0x6f,0x6e,0x45,0x56,0x5a,0x72,0x44,0x7a,0x30,0x48,0x6d,0x50,0x64,0x6c,0x34,0x54,0x63,0x61,0x38,0x65,0x73,0x47,0x75,0x51,0x71,0x79,0x59,0x39,0x78,0x74,0x33,0x77,0x58,0x42,0x66,0x6b,0x4c,0x4a,0x57,0x68,0x32,0x43,0x69,0x62,0x41,0x6a,0x52,0x31,0x37,0x4f,0x4e,0x49,0x4d]),_0x45ea45=0xeb829,_0x4ed4af=0xda22abd,_0x30dfbf=0xda5711d^_0x4ed4af,_0x1caee8=window[_0x1ebc94([0x44,0x61,0x74,0x65])][_0x1ebc94([0x6e,0x6f,0x77])](),_0x9ce09a=_0x1a4e29[_0x1ebc94([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xea7bb=new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1334a1=>{_0x9ce09a[_0x1ebc94([0x6f,0x6e,0x63,0x65])](_0x1ebc94([0x72,0x65,0x61,0x64,0x79]),_0x1334a1);}),_0x128279={[_0x1ebc94([0x6b,0x74,0x79])]:_0x1ebc94([0x45,0x43]),[_0x1ebc94([0x75,0x73,0x65])]:_0x1ebc94([0x73,0x69,0x67]),[_0x1ebc94([0x63,0x72,0x76])]:_0x1ebc94([0x50,0x2d,0x32,0x35,0x36]),[_0x1ebc94([0x78])]:_0x1ebc94([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]),[_0x1ebc94([0x79])]:_0x1ebc94([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]),[_0x1ebc94([0x61,0x6c,0x67])]:_0x1ebc94([0x45,0x53,0x32,0x35,0x36])},_0x27df4a=_0x9ce09a[_0x1ebc94([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ebc94([0x67,0x65,0x74])](_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e3a56(){let _0x2bc5c4,_0x38cdd4=null,_0x113fee=null;try{if(_0x27df4a==_0x1ebc94([0x47,0x50,0x4c]))return _0x1ebc94([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2bc5c4=_0x4764b2(),!_0x2bc5c4)return _0x1ebc94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2bc5c4[_0x1ebc94([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x113fee=_0xa3112b(_0x2bc5c4[_0x1ebc94([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2bc5c4[_0x1ebc94([0x6a,0x74,0x69])])),await _0x468b19()?_0x49bf5c()?_0x4ccfcd()?_0x1ebc94([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c6a3d()?(_0x2bc5c4[_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ebc94([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x38cdd4=_0x4fd549(_0x1ebc94([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bc5c4[_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ebc94([0x74,0x72,0x69,0x61,0x6c])&&(_0x38cdd4=_0x4fd549(_0x1ebc94([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2bc5c4[_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ebc94([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x38cdd4=_0x4fd549(_0x1ebc94([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0xc8a3a8()):_0x1ebc94([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ebc94([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ebc94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x11cbc2){return _0x1ebc94([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4ccfcd(){const _0x272684=[_0x1ebc94([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ebc94([0x74,0x72,0x69,0x61,0x6c])][_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2bc5c4[_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1caee8/0x3e8:0xe10*_0x30dfbf;return _0x2bc5c4[_0x1ebc94([0x65,0x78,0x70])]<_0x272684;}function _0x49bf5c(){const _0x54e8ac=_0x2bc5c4[_0x1ebc94([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x54e8ac)return!0x1;if(_0x54e8ac[_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebc94([0x2a])))return!0x0;if(_0x54e8ac[_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebc94([0x52,0x48])))return!0x0;if(_0x54e8ac[_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebc94([0x52,0x52,0x48]))){if(_0x287c41())return!0x0;if(_0x1c31c2()||_0x20a39a())return!0x0;}return!0x1;}function _0x3c6a3d(){const _0x5a86cc=_0x2bc5c4[_0x1ebc94([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5a86cc||0x0==_0x5a86cc[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5042f7}=new URL(window[_0x1ebc94([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5a86cc[_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5042f7))return!0x0;const _0x1aa509=_0x5042f7[_0x1ebc94([0x73,0x70,0x6c,0x69,0x74])](_0x1ebc94([0x2e]));return _0x5a86cc[_0x1ebc94([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b0078=>_0x4b0078[_0x1ebc94([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ebc94([0x2a])))[_0x1ebc94([0x6d,0x61,0x70])](_0x45552b=>_0x45552b[_0x1ebc94([0x73,0x70,0x6c,0x69,0x74])](_0x1ebc94([0x2e])))[_0x1ebc94([0x73,0x6f,0x6d,0x65])](_0xd7e7cf=>_0x1aa509[_0x1ebc94([0x65,0x76,0x65,0x72,0x79])]((_0x591fb0,_0x4d3bc0)=>_0xd7e7cf[_0x4d3bc0]===_0x591fb0||_0xd7e7cf[_0x4d3bc0]===_0x1ebc94([0x2a])));}function _0xc8a3a8(){return _0x38cdd4&&_0x113fee?new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xa715b0,_0x322032)=>{_0x38cdd4[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0xa715b0,_0x322032),_0x113fee[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0x205e85=>{_0x205e85!=_0x1ebc94([0x56,0x61,0x6c,0x69,0x64])&&_0xa715b0(_0x205e85);},_0x322032);}):_0x38cdd4||_0x113fee||_0x1ebc94([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa3112b(_0x10bc4f,_0x59af4d){return new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290cbc=>{if(_0x2e50e7())return _0x290cbc(_0x1ebc94([0x56,0x61,0x6c,0x69,0x64]));_0x2c62ab(),_0x9ce09a[_0x1ebc94([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ebc94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2d959b=!0x1;const _0x1f6ded=_0x550c17();function _0x24f759(_0x415f9b){return!!_0x415f9b&&(typeof _0x415f9b===_0x1ebc94([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x415f9b===_0x1ebc94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x415f9b[_0x1ebc94([0x74,0x68,0x65,0x6e])]===_0x1ebc94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x415f9b[_0x1ebc94([0x63,0x61,0x74,0x63,0x68])]===_0x1ebc94([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4079ef(_0x3fef47){_0x293fc2(_0x3fef47)[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0x34ff5f=>{if(!_0x34ff5f||_0x34ff5f[_0x1ebc94([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ebc94([0x6f,0x6b]))return _0x1ebc94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b6601(_0x7c03d2(_0x1f6ded+_0x59af4d))!=_0x34ff5f[_0x1ebc94([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ebc94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ebc94([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0x3587d4=>(_0x20c552(),_0x3587d4),()=>{const _0x53bf95=_0x1a110f();return null==_0x53bf95?(_0x20c552(),_0x1ebc94([0x56,0x61,0x6c,0x69,0x64])):_0x1ebc94(_0x1caee8-_0x53bf95>(0x29aeaebd^_0x4ed4af)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0x290cbc)[_0x1ebc94([0x63,0x61,0x74,0x63,0x68])](()=>{_0x290cbc(_0x1ebc94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11703c=0xd94c43d^_0x4ed4af;function _0x20c552(){const _0x3d79e8=_0x1ebc94([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b6601(_0x7c03d2(_0x10bc4f)),_0x1c90d2=_0x1edc02(_0x1b6601(window[_0x1ebc94([0x4d,0x61,0x74,0x68])][_0x1ebc94([0x63,0x65,0x69,0x6c])](_0x1caee8/_0x11703c)));window[_0x1ebc94([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ebc94([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d79e8,_0x1c90d2);}function _0x1a110f(){const _0x152dec=_0x1ebc94([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b6601(_0x7c03d2(_0x10bc4f)),_0x427dfb=window[_0x1ebc94([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ebc94([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x152dec);return _0x427dfb?window[_0x1ebc94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1edc02(_0x427dfb),0x10)*_0x11703c:null;}function _0x293fc2(_0x10919d){return new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bc675,_0x28def0)=>{_0x10919d[_0x1ebc94([0x74,0x68,0x65,0x6e])](_0x3bc675,_0x28def0),window[_0x1ebc94([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28def0,0xda3fe7d^_0x4ed4af);});}}_0x9ce09a[_0x1ebc94([0x6f,0x6e])](_0x1ebc94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xeea0aa,_0x4423ac)=>{if(_0x4423ac[0x0]!=_0x10bc4f)return _0x290cbc(_0x1ebc94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4423ac[0x1]={..._0x4423ac[0x1],[_0x1ebc94([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1f6ded};},{[_0x1ebc94([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ebc94([0x68,0x69,0x67,0x68])}),_0x9ce09a[_0x1ebc94([0x6f,0x6e])](_0x1ebc94([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2af2c0=>{_0x24f759(_0x2af2c0[_0x1ebc94([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2d959b=!0x0,_0x4079ef(_0x2af2c0[_0x1ebc94([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ebc94([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ebc94([0x6c,0x6f,0x77])}),_0xea7bb[_0x1ebc94([0x74,0x68,0x65,0x6e])](()=>{_0x2d959b||_0x290cbc(_0x1ebc94([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e50e7(){return _0x9ce09a[_0x1ebc94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ebc94([0x76,0x69,0x65,0x77])][_0x1ebc94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ebc94([0x61,0x75,0x74,0x6f]);}function _0x2c62ab(){_0x9ce09a[_0x1ebc94([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ebc94([0x76,0x69,0x65,0x77])][_0x1ebc94([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ebc94([0x61,0x75,0x74,0x6f]);}}function _0x4fd549(_0x465372){const _0x363c97=[new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3596eb=>setTimeout(_0x3596eb,0xdab1471^_0x4ed4af)),_0xea7bb[_0x1ebc94([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x77cfb7=>{const _0xcb9098=0xda22aba^_0x4ed4af,_0x3da302=_0x1a4e29[_0x1ebc94([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4e2c42(){_0x3da302[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xcb9098&&_0x77cfb7();}_0x4e2c42(),_0x3da302[_0x1ebc94([0x6f,0x6e])](_0x1ebc94([0x61,0x64,0x64]),_0x4e2c42);})),new window[(_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f8d8b=>{function _0x5ed102(){for(const _0x18213a in window)if(window[_0x1ebc94([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1ebc94([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x18213a))&&window[_0x18213a]==_0x45ea45)return _0x4f8d8b();_0x9ce09a[_0x1ebc94([0x73,0x74,0x61,0x74,0x65])]!=_0x1ebc94([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1ebc94([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ed102,0xda23935^_0x4ed4af);}_0xbad0d(_0x1ebc94([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5ed102();})];return window[_0x1ebc94([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ebc94([0x72,0x61,0x63,0x65])](_0x363c97)[_0x1ebc94([0x74,0x68,0x65,0x6e])](()=>_0x465372);}async function _0x1d05a7(){if(await _0xea7bb,_0xbad0d(_0x1ebc94([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x26166e=_0x1a4e29[_0x1ebc94([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5074e7=_0x1a4e29[_0x1ebc94([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])](_0x26166e[_0x1ebc94([0x69,0x64])]),_0x10ab36=_0x4d6de6(_0x1ebc94([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x10ab36[_0x1ebc94([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x26166e['id'],_0x5074e7?_0x5074e7['id']:null,!0x0),_0x10ab36[_0x1ebc94([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ebc94([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x10ab36[_0x1ebc94([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x10ab36[_0x1ebc94([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2fdfaf,void(_0x10ab36[_0x1ebc94([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2fdfaf);}if(_0xbad0d(_0x1ebc94([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3c51bb=_0x4d6de6(_0x1ebc94([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3c51bb[_0x1ebc94([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ebc94([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3c51bb[_0x1ebc94([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3c51bb[_0x1ebc94([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2fdfaf,_0x3c51bb[_0x1ebc94([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2fdfaf;}_0x9ce09a[_0x1ebc94([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ebc94([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2fdfaf,_0x9ce09a[_0x1ebc94([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ebc94([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2fdfaf,_0x9ce09a[_0x1ebc94([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ebc94([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x287c41(){return _0xbad0d(_0x1ebc94([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d6de6(_0x1ebc94([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1ebc94([0x73,0x74,0x61,0x74,0x65])]==_0x1ebc94([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1c31c2(){return _0xbad0d(_0x1ebc94([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 _0x20a39a(){return _0xbad0d(_0x1ebc94([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x36d732(_0x81658d){const _0xdfb530=_0x42a1ba();_0x9ce09a[_0xdfb530]=_0x1ebc94([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])+_0x81658d,_0x81658d[_0x1ebc94([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1ebc94([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x42a1ba()]=_0x45ea45),_0x81658d!=_0x1ebc94([0x56,0x61,0x6c,0x69,0x64])&&_0x1d05a7();}function _0x42a1ba(){const _0x497521=window[_0x1ebc94([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ebc94([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ebc94([0x6e,0x6f,0x77])]())[_0x1ebc94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ebc94([0x2e]),'');let _0x29b3f2=_0x1ebc94([0x67]);for(let _0x3a7cc7=0x0;_0x3a7cc7<_0x497521[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a7cc7+=0x2){let _0x4ac040=window[_0x1ebc94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x497521[_0x1ebc94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a7cc7,_0x3a7cc7+0x2));_0x4ac040>=_0x39a217[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ac040-=_0x39a217[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x29b3f2+=_0x39a217[_0x4ac040];}return _0x29b3f2;}function _0x4764b2(){const _0x298a5d=_0x27df4a[_0x1ebc94([0x73,0x70,0x6c,0x69,0x74])](_0x1ebc94([0x2e]));if(0x3!=_0x298a5d[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe721c9(_0x298a5d[0x1]);function _0xe721c9(_0x3138d5){const _0x455141=_0x2074c3(_0x3138d5);return _0x455141&&_0x35fd94()?_0x455141:null;function _0x35fd94(){const _0x274eac=_0x455141[_0x1ebc94([0x6a,0x74,0x69])],_0x2d9be2=window[_0x1ebc94([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x274eac[_0x1ebc94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x274eac[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x509bab={..._0x455141,[_0x1ebc94([0x6a,0x74,0x69])]:_0x274eac[_0x1ebc94([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x274eac[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x509bab[_0x1ebc94([0x76,0x63])],_0x7c03d2(_0x509bab)==_0x2d9be2;}}}async function _0x468b19(){let _0xa68e35=!0x0;try{const _0x427dff=_0x27df4a[_0x1ebc94([0x73,0x70,0x6c,0x69,0x74])](_0x1ebc94([0x2e])),[_0x51db50,_0x41a690,_0x537b9e]=_0x427dff;return _0x38d223(_0x51db50),await _0x588e45(_0x51db50,_0x41a690,_0x537b9e),_0xa68e35;}catch(_0x1a4bc6){return!0x1;}function _0x38d223(_0x59a431){const _0x23ab2f=_0x2074c3(_0x59a431);_0x23ab2f&&_0x23ab2f[_0x1ebc94([0x61,0x6c,0x67])]==_0x1ebc94([0x45,0x53,0x32,0x35,0x36])||(_0xa68e35=!0x1);}async function _0x588e45(_0x21847a,_0x1b5221,_0x4bf0ce){const _0x32a369=window[_0x1ebc94([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ebc94([0x66,0x72,0x6f,0x6d])](_0x4dd280(_0x4bf0ce),_0x2fbae6=>_0x2fbae6[_0x1ebc94([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x37bc3e=new window[(_0x1ebc94([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ebc94([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x21847a+_0x1ebc94([0x2e])+_0x1b5221),_0x5ef1fd=window[_0x1ebc94([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ebc94([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ef1fd)return;const _0x2c8ecd=await _0x5ef1fd[_0x1ebc94([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ebc94([0x6a,0x77,0x6b]),_0x128279,{[_0x1ebc94([0x6e,0x61,0x6d,0x65])]:_0x1ebc94([0x45,0x43,0x44,0x53,0x41]),[_0x1ebc94([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ebc94([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ebc94([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ef1fd[_0x1ebc94([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ebc94([0x6e,0x61,0x6d,0x65])]:_0x1ebc94([0x45,0x43,0x44,0x53,0x41]),[_0x1ebc94([0x68,0x61,0x73,0x68])]:{[_0x1ebc94([0x6e,0x61,0x6d,0x65])]:_0x1ebc94([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c8ecd,_0x32a369,_0x37bc3e)||(_0xa68e35=!0x1);}}function _0x2074c3(_0x34d428){return _0x34d428[_0x1ebc94([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ebc94([0x65,0x79]))?JSON[_0x1ebc94([0x70,0x61,0x72,0x73,0x65])](_0x4dd280(_0x34d428)):null;}function _0x4dd280(_0x8abd3f){return window[_0x1ebc94([0x61,0x74,0x6f,0x62])](_0x8abd3f[_0x1ebc94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ebc94([0x2b]))[_0x1ebc94([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ebc94([0x2f])));}function _0x7c03d2(_0x1f4a86){let _0x26c11e=0x1505;function _0x3eb306(_0x3b39a4){for(let _0x49f721=0x0;_0x49f721<_0x3b39a4[_0x1ebc94([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x49f721++){const _0x560bd2=_0x3b39a4[_0x1ebc94([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x49f721);_0x26c11e=(_0x26c11e<<0x5)+_0x26c11e+_0x560bd2,_0x26c11e&=_0x26c11e;}}function _0x28fe23(_0x44c542){Array[_0x1ebc94([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x44c542)?_0x44c542[_0x1ebc94([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x28fe23):_0x44c542&&typeof _0x44c542==_0x1ebc94([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ebc94([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x44c542)[_0x1ebc94([0x73,0x6f,0x72,0x74])]()[_0x1ebc94([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x440c82,_0x5b5ad7])=>{_0x3eb306(_0x440c82),_0x28fe23(_0x5b5ad7);}):_0x3eb306(window[_0x1ebc94([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x44c542));}return _0x28fe23(_0x1f4a86),_0x26c11e>>>0x0;}function _0x1b6601(_0x551a3f){return _0x551a3f[_0x1ebc94([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ebc94([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ebc94([0x30]));}function _0x1edc02(_0x54e662){return _0x54e662[_0x1ebc94([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ebc94([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ebc94([0x6a,0x6f,0x69,0x6e])]('');}function _0xbad0d(_0x50fc7a){return _0x9ce09a[_0x1ebc94([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ebc94([0x68,0x61,0x73])](_0x50fc7a);}function _0x4d6de6(_0x46ffbe){return _0x9ce09a[_0x1ebc94([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ebc94([0x67,0x65,0x74])](_0x46ffbe);}function _0x2fdfaf(){}function _0x1ebc94(_0x47f23b){return _0x47f23b['map'](_0x56acdb=>String['fromCharCode'](_0x56acdb))['join']('');}_0x36d732(await _0x5e3a56());}(this);}['createRevision'](_0x50b45c){const _0x73c995=this['editor']['plugins']['get']('Users');return new a({'id':_0x50b45c['id'],'name':_0x50b45c['name'],'creator':_0x50b45c['creatorId']?_0x73c995['getUser'](_0x50b45c['creatorId']):null,'diffData':_0x50b45c['diffData']||_0x50b45c['data'],'authors':_0x50b45c['authorsIds']['map'](_0x142000=>_0x73c995['getUser'](_0x142000)),'createdAt':new Date(_0x50b45c['createdAt']),'attributes':_0x50b45c['attributes'],'fromVersion':_0x50b45c['fromVersion'],'toVersion':_0x50b45c['toVersion']});}['addRevision'](_0x19e710,_0x4cf5dd=0x0){this['_revisions']['add'](_0x19e710,_0x4cf5dd);}['getRevision'](_0x2b0933){return this['_revisions']['get'](_0x2b0933);}['getRevisions'](_0x3fbea3={'toJSON':!0x1}){const _0xb04fa7=Array['from'](this['_revisions']);return _0xb04fa7['reverse'](),_0x3fbea3['toJSON']?_0xb04fa7['map'](_0x307e0d=>_0x307e0d['toJSON']()):_0xb04fa7;}['getIndex'](_0x40393f){return this['_revisions']['getIndex'](_0x40393f);}['getEarlierVisibleRevision'](_0x5f0eae){const [,_0x27afce]=this['getRevisionsIterator'](_0x5f0eae,{'direction':'earlier'});return _0x27afce;}['getLaterVisibleRevision'](_0x3f6939){const [,_0x47592a]=this['getRevisionsIterator'](_0x3f6939,{'direction':'later'});return _0x47592a;}['getRevisionsInDiff'](_0x3fe525){const _0x159aef=[];for(const _0x49d623 of this['getRevisionsIterator'](_0x3fe525['newRevisionId']))if(_0x159aef['push'](_0x49d623),_0x49d623['id']===_0x3fe525['oldRevisionId'])break;return _0x159aef;}*['getRevisionsIterator'](_0x4ef120,{direction:_0x38900d='earlier',filter:_0x2930d6=()=>!0x0}={}){const _0x4d53ac='earlier'===_0x38900d?0x1:-0x1;let _0x281f7f=this['_revisions']['get'](_0x4ef120),_0x5c0696=this['getIndex'](_0x281f7f);for(yield _0x281f7f;_0x281f7f;){if(_0x5c0696+=_0x4d53ac,_0x281f7f=this['getRevision'](_0x5c0696),!_0x281f7f)return;_0x2930d6(_0x281f7f)&&(yield _0x281f7f);}}}function R(_0x392f2a,_0x255699,_0x3e39ba){const t=_0x392f2a['t'];switch(_0x255699){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'},_0x3e39ba);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3e39ba);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 C={'c':_0x56152c,'a':_0x431e2c,'e':_0x58e8fe,'r':_0x15d160,'u':_0x335e67};class l extends _0x402cd2{['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[_0xbe6911,j,_0x5d4558];}constructor(_0x1501da){super(_0x1501da),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x19966b=_0x550c17();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x19966b},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 _0x3ec18e=this['repository']['getRevision'](0x0),_0x4d8c49=_0x3ec18e&&null===_0x3ec18e['creator']?_0x3ec18e:null;if(this['_continueCurrentRevision']=!!_0x4d8c49&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5619de=this['_source']['getCurrentRevisionId'](),_0xb0528d=this['repository']['getRevision'](_0x5619de);if(_0xb0528d)this['_startingVersion']=_0xb0528d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x20adb4=this['_source']['history']['_operations']['find'](_0x4991dc=>!_0x4991dc['_isInit']),_0x28805a=_0x20adb4?_0x20adb4['baseVersion']:this['_source']['history']['version'];_0x3ec18e?(_0x3ec18e['toVersion']<_0x28805a&&_0x3ec18e['_update']({'toVersion':_0x28805a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4d8c49['id'],this['_startingVersion']=_0x4d8c49['fromVersion']):(this['_startingVersion']=_0x3ec18e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x28805a,this['_continueCurrentRevision']=!0x1);}}else _0x4d8c49&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4d8c49['toVersion'],this['editor']['model']['document']['history']['version']),_0x4d8c49['fromVersion']===_0x4d8c49['toVersion']?(0x0!==_0x4d8c49['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4d8c49['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4d8c49['id'],this['_startingVersion']=_0x4d8c49['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',_0x314601=>!_0x314601),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x258779=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3d54ac;for(const _0x37f975 in _0x258779){const _0x34d653=_0x37f975,_0x1fbbcc=_0x258779[_0x34d653];if('revisionHistoryLicenseKeyValid'==_0x1fbbcc||'revisionHistoryLicenseKeyInvalid'==_0x1fbbcc||'revisionHistoryLicenseKeyExpired'==_0x1fbbcc||'revisionHistoryLicenseKeyDomainLimit'==_0x1fbbcc||'revisionHistoryLicenseKeyNotAllowed'==_0x1fbbcc||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1fbbcc||'revisionHistoryLicenseKeyTrialLimit'==_0x1fbbcc||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1fbbcc||'revisionHistoryLicenseKeyUsageLimit'==_0x1fbbcc){delete _0x258779[_0x34d653],_0x3d54ac=_0x1fbbcc,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x3d54ac&&_0x258779['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x3d54ac&&_0x258779['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x3d54ac&&_0x258779['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x3d54ac&&_0x258779['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x3d54ac&&_0x258779['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x3d54ac&&_0x258779['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x3d54ac&&_0x258779['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x3d54ac&&_0x258779['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4ffc0e=this['repository']['getRevision'](0x0),_0x4bff7e=await this['getRevisionDocumentData'](_0x4ffc0e),_0x54c60a=await this['getRevisionRootsAttributes'](_0x4ffc0e);this['_replaceEditorDataWithRevisionData'](_0x4bff7e,_0x54c60a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x87a420){this['_source']=_0x87a420;}async['update'](){const _0x1822e5=await this['_source']['getLatestVersion']();if(_0x1822e5>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1b3617=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1822e5});_0x1b3617['authors']=_0x1b3617['authorsIds']['map'](_0x169a3d=>this['editor']['plugins']['get']('Users')['getUser'](_0x169a3d)),this['currentRevision']['_update'](_0x1b3617);}}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'](_0x618e10={},_0x4a22a9=null){const _0x36b607=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4a22a9>this['currentRevision']['toVersion']&&(_0x4a22a9=null),null===_0x4a22a9&&(_0x4a22a9=await this['_source']['getLatestVersion']());const _0x376bbd=this['_getFromVersion'](_0x4a22a9),_0x5b1e56=this['buildRevisionData']({'from':_0x376bbd,'to':_0x4a22a9});if(this['currentRevision']['toVersion']<_0x4a22a9){const _0x5a04ab=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4a22a9,'to':_0x4a22a9});_0x5a04ab['authors']=[],_0x5a04ab['authorsIds']=[],_0x5a04ab['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x5a04ab,!0x0),delete _0x5a04ab['authors'],_0x36b607['push'](_0x5a04ab);}_0x618e10['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x618e10['name']=_0x618e10['name']||null,_0x618e10['id']=_0x618e10['id']||_0x550c17(),_0x618e10={..._0x618e10,..._0x5b1e56};const _0x3e7600=this['addRevisionData'](_0x618e10);_0x36b607['push'](_0x618e10);const _0x38853c=this['repository']['getIndex'](_0x3e7600);if(0x0!==_0x38853c){const _0x6f3b6a=this['repository']['getRevision'](_0x38853c-0x1);if(_0x6f3b6a['fromVersion']!==_0x4a22a9){const _0x346a2b=this['_revisionDataBuilder']['getData'](_0x4a22a9,_0x6f3b6a['toVersion']),_0x356464={'id':_0x6f3b6a['id'],'diffData':_0x346a2b['diffData'],'authorsIds':_0x346a2b['authorsIds'],'authors':_0x346a2b['authorsIds']['map'](_0x50f898=>this['editor']['plugins']['get']('Users')['getUser'](_0x50f898)),'fromVersion':_0x4a22a9};_0x6f3b6a===this['currentRevision']&&(_0x356464['createdAt']=new Date(_0x618e10['createdAt']['getTime']()+0xa)),_0x6f3b6a['_update'](_0x356464,!0x0),delete _0x356464['authors'],_0x36b607['push'](_0x356464);}}if(this['adapter']){for(const _0x9dc719 of _0x36b607)this['_bufferUpdate'](_0x9dc719['id'],_0x9dc719,!0x0);this['sendBufferedUpdates']();}return _0x3e7600;}['addRevisionData'](_0x45bf3f){const _0x15c6c3=this['repository']['createRevision'](_0x45bf3f);return this['adapter']&&_0x15c6c3['on']('_update',(_0x50a70b,_0x564e4b,_0x411353)=>{_0x411353||(this['_bufferUpdate'](_0x564e4b['id'],_0x564e4b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x15c6c3,this['_findInsertionIndex'](_0x15c6c3)),_0x15c6c3;}async['getRevisionDocumentData'](_0x2897b1){await this['_loadRevisionData'](_0x2897b1);const _0x26cc89={};for(const _0x4acdbb in _0x2897b1['diffData']){if(_0x2897b1['diffData'][_0x4acdbb]['attachChange']&&!_0x2897b1['diffData'][_0x4acdbb]['attachChange']['isAttached'])continue;const _0x208c83=this['_removeRevisionMarkers'](JSON['parse'](_0x2897b1['diffData'][_0x4acdbb]['insertions'])),_0x46028b=this['editor']['editing']['view']['document'],_0x17519b=new _0x5deb62(_0x46028b,_0x208c83['map'](_0x1674cd=>V(_0x1674cd,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x26cc89[_0x4acdbb]=this['editor']['data']['processor']['toData'](_0x17519b),this['editor']['data']['processor']['useFillerType']('default');}return _0x26cc89;}async['getRevisionRootsAttributes'](_0x3a927e){await this['_loadRevisionData'](_0x3a927e);const _0x21fe24={};for(const _0x116be0 in _0x3a927e['diffData'])_0x3a927e['diffData'][_0x116be0]['attachChange']&&!_0x3a927e['diffData'][_0x116be0]['attachChange']['isAttached']||(_0x21fe24[_0x116be0]=_0x3a927e['diffData'][_0x116be0]['attributesAfter']||{});return _0x21fe24;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2dec8e=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x216643=0x0;_0x216643<_0x2dec8e['length'];_0x216643++){const _0x184e4a=_0x2dec8e[_0x216643];let _0x19808f=!0x1;for(const _0x3df24a of Object['keys'](_0x184e4a))void 0x0===_0x184e4a[_0x3df24a]?delete _0x184e4a[_0x3df24a]:'id'!==_0x3df24a&&(_0x19808f=!0x0);_0x19808f||(_0x2dec8e[_0x216643]=null);}if(_0x2dec8e=_0x2dec8e['filter'](_0x57f4b4=>null!==_0x57f4b4),!_0x2dec8e['length'])return;for(let _0xcb74fb=0x0;_0xcb74fb<_0x2dec8e['length'];_0xcb74fb++){const _0x14d429=_0x2dec8e[_0xcb74fb];void 0x0!==_0x14d429['fromVersion']&&void 0x0===_0x14d429['toVersion']&&(_0x14d429['toVersion']=this['repository']['getRevision'](_0x14d429['id'])['toVersion']),void 0x0!==_0x14d429['toVersion']&&void 0x0===_0x14d429['fromVersion']&&(_0x14d429['fromVersion']=this['repository']['getRevision'](_0x14d429['id'])['fromVersion']);}const _0x1aba6e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2dec8e,_0x1aba6e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2ce18b=>{if(_0x2ce18b){for(const _0x22d1bd of _0x2ce18b)this['setRevisionData']({'id':_0x22d1bd['id'],'createdAt':_0x22d1bd['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x5d25c8,_0x13f466){let _0x1d6fc0=this['editor']['config']['get']('initialData'),_0x447291=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1d6fc0){_0x1d6fc0={};for(const _0x40ebcf of this['editor']['model']['document']['getRootNames']())_0x1d6fc0[_0x40ebcf]='';}if('string'==typeof _0x1d6fc0&&(_0x1d6fc0={'main':_0x1d6fc0}),void 0x0===_0x447291){_0x447291={};for(const _0x3f0db5 of this['editor']['model']['document']['getRootNames']())_0x447291[_0x3f0db5]={};}let _0x77b614=!0x1;const _0x2b233c=Object['keys'](_0x1d6fc0),_0x1510f8=Object['keys'](_0x5d25c8);for(const _0x16ce8b of _0x2b233c){if(_0x1d6fc0[_0x16ce8b]!==_0x5d25c8[_0x16ce8b]&&''!==_0x1d6fc0[_0x16ce8b]['trim']()){_0x77b614=!0x0;break;}if(!_0x16990d(_0x447291[_0x16ce8b],_0x13f466[_0x16ce8b])&&Object['keys'](_0x447291[_0x16ce8b])['length']>0x0){_0x77b614=!0x0;break;}}_0x77b614||(_0x77b614=_0x1510f8['some'](_0x566945=>!this['editor']['model']['document']['getRoot'](_0x566945))),_0x77b614&&_0x3f5218('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1d6fc0,'editorRootsAttributes':_0x447291,'revisionData':_0x5d25c8,'revisionRootsAttributes':_0x13f466}),this['editor']['config']['set']('initialData',_0x5d25c8),this['editor']['config']['set']('rootsAttributes',_0x13f466);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5db9f3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5db9f3['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x32629){const _0x2d8bda=this['repository']['getRevisions']();_0x2d8bda['reverse']();let _0x49dac7=0x0;for(;_0x49dac7<_0x2d8bda['length'];){const _0x5033dc=_0x2d8bda[_0x49dac7];if(_0x5033dc===this['currentRevision']){_0x49dac7++;continue;}if(_0x5033dc['id']===this['_initialRevisionId'])break;const _0x2556f8=_0x32629['toVersion']-_0x5033dc['toVersion']||_0x32629['fromVersion']-_0x5033dc['fromVersion'];if(_0x2556f8>0x0)break;if(_0x2556f8<0x0)_0x49dac7++;else{if(!_0x32629['creator']&&_0x5033dc['creator'])break;if(_0x5033dc['creator']||!_0x32629['creator']){if(_0x32629['createdAt']>_0x5033dc['createdAt'])break;_0x49dac7++;}else _0x49dac7++;}}return _0x49dac7;}['setRevisionData'](_0x1ef9e7){const _0x269e14=this['repository']['getRevision'](_0x1ef9e7['id']);if(_0x1ef9e7['createdAt']&&(_0x1ef9e7['createdAt']=new Date(_0x1ef9e7['createdAt'])),_0x1ef9e7['authorsIds']){const _0x19603d=this['editor']['plugins']['get']('Users');_0x1ef9e7['authors']=_0x1ef9e7['authorsIds']['map'](_0x3ae617=>_0x19603d['getUser'](_0x3ae617));}_0x269e14['_update'](_0x1ef9e7,!0x0);}['buildRevisionData']({revision:_0x3f275e=null,from:_0x4801f3=null,to:_0x171617=null}){_0x4801f3=null!==_0x4801f3?_0x4801f3:_0x3f275e['fromVersion'],_0x171617=null!==_0x171617?_0x171617:_0x3f275e['toVersion'];const _0x211dc9=this['_revisionDataBuilder']['getData'](_0x4801f3,_0x171617),_0x1bd65f={'diffData':_0x211dc9['diffData'],'authorsIds':_0x211dc9['authorsIds'],'fromVersion':_0x4801f3,'toVersion':_0x171617};if(!_0x3f275e||_0x171617!==_0x3f275e['toVersion']){const _0x33047f=_0x171617-0x1,_0x36fa12=this['_source']['history']['getOperation'](_0x33047f);_0x1bd65f['createdAt']=_0x36fa12&&_0x36fa12['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4801f3===this['_loadedStateData']['fromVersion']){for(const _0x22134f of this['_loadedStateData']['authors'])_0x1bd65f['authorsIds']['includes'](_0x22134f['id'])||_0x1bd65f['authorsIds']['push'](_0x22134f['id']);}return _0x1bd65f;}['_loadRevisionData'](_0x4e7075){if(!_0x4e7075||_0x4e7075['diffData'])return Promise['resolve']();{const _0x52d2a3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x52d2a3,'revisionId':_0x4e7075['id']})['then'](_0x419b59=>{_0x4e7075['diffData']=_0x419b59['diffData'];});}}['_bufferUpdate'](_0x3dabee,_0x282ae5,_0x24fe5e){if(this['_bufferedUpdates']['has'](_0x3dabee)){const _0x2d3dee=this['_bufferedUpdates']['get'](_0x3dabee);_0x282ae5=_0x24fe5e?{..._0x2d3dee,..._0x282ae5}:{..._0x282ae5,..._0x2d3dee};}this['_bufferedUpdates']['set'](_0x3dabee,_0x282ae5);}['_getFromVersion'](_0x5a22fd){const _0x262050=this['repository']['getRevisions']();_0x262050['reverse'](),_0x262050['shift']();const _0x5d7ab8=_0x262050['find'](_0x1d787a=>_0x1d787a['toVersion']<=_0x5a22fd)['toVersion'];return _0x5d7ab8<this['_startingVersion']?this['_startingVersion']:_0x5d7ab8;}['_createInitialRevision'](_0x416df8){const _0x249abe=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x249abe)this['_initialRevisionId']=_0x249abe['id'];else{const _0x2d0355=!this['editor']['model']['document']['roots']['find'](_0x13de3e=>this['editor']['model']['hasContent'](_0x13de3e)),_0x2b9205=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a41de=R(this['editor']['locale'],_0x2d0355?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x416df8,'to':_0x416df8,'id':this['_initialRevisionId'],'name':_0x3a41de,'creatorId':_0x2b9205});}}['_createCurrentRevision'](_0x1b7f97){const _0x5d1722=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5d1722),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1b7f97,'to':_0x1b7f97,'id':_0x5d1722,'name':'','creatorId':null}));}['_makeRevision']({name:_0x42cbba,from:_0x1f9363,to:_0x1c9ff3,creatorId:_0x318a2e,id:_0x7d6a4}){const _0x2f16bc=this['buildRevisionData']({'from':_0x1f9363,'to':_0x1c9ff3});_0x2f16bc['name']=_0x42cbba,_0x2f16bc['creatorId']=_0x318a2e,_0x2f16bc['id']=_0x7d6a4;const _0x86a4f1=this['addRevisionData'](_0x2f16bc);return this['adapter']&&this['_bufferUpdate'](_0x2f16bc['id'],_0x2f16bc,!0x0),_0x86a4f1;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0xe9ace7){return(_0xe9ace7=_0xe9ace7['filter'](_0x5891c6=>!_0x5891c6['name']||'revision-start'!==_0x5891c6['name']&&'revision-end'!==_0x5891c6['name']))['forEach'](_0x501e7e=>{'string'!=typeof _0x501e7e&&(_0x501e7e['children']=this['_removeRevisionMarkers'](_0x501e7e['children']),_0x501e7e['attributes']=_0x501e7e['attributes']['filter'](_0x234bd1=>!_0x234bd1[0x0]['startsWith']('data-revision-')));}),_0xe9ace7;}}function V(_0x1779a7,_0x515c41){const _0x4efe8b=_0x515c41['editing']['view']['document'];if('string'==typeof _0x1779a7)return new _0x88fe6e(_0x4efe8b,_0x1779a7);{const _0xc8006b=_0x1779a7['children']['map'](_0x10c190=>V(_0x10c190,_0x515c41));return new(C[_0x1779a7['type']]||_0x456d8f)(_0x4efe8b,_0x1779a7['name'],_0x1779a7['attributes'],_0xc8006b);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1c6d33){this['editor']=_0x1c6d33,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'](_0x5736b5){this['source']=_0x5736b5;const _0x36b9b9=new Map(),_0x15c950=new Map(),_0x54b521=this['editor']['model']['document']['roots']['map'](_0x13c58a=>_0x13c58a['rootName']);for(const _0x1f59f0 of _0x54b521){const _0x2db260=this['editor']['model']['document']['getRoot'](_0x1f59f0),_0x5ecbb8=F(_0x2db260);_0x36b9b9['set'](_0x1f59f0,_0x5ecbb8),_0x15c950['set'](_0x1f59f0,Object['fromEntries'](_0x2db260['getAttributes']()));}const _0x29e278=Array['from'](this['editor']['model']['markers'])['map'](_0x2b8db3=>[_0x2b8db3['name'],_0x2b8db3['getRange']()]),_0x5cfada=this['source']['version'];this['_saveMetaData'](_0x5cfada,_0x36b9b9,_0x29e278,_0x15c950),this['_startingRevisionId']=this['_revisionId'];const _0x1a4937=new Map(),_0x431939=new Map();for(const _0x9ee31b of _0x54b521){const _0xc8ed27=B(_0x9ee31b);_0x1a4937['set'](_0x9ee31b,_0xc8ed27),_0x431939['set'](_0x9ee31b,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1a4937,[],_0x431939);}['getData'](_0x3ee08d,_0xc6c9f5){if(this['_lastFrom']===_0x3ee08d&&this['_lastTo']<=_0xc6c9f5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xc6c9f5,!0x0);else{if(!this['_savedMetaData']['has'](_0x3ee08d)){const _0x133c23=this['_getPreviousFrom'](_0x3ee08d);this['_calculateMetaData'](_0x133c23,_0x3ee08d,!0x1);}this['_calculateMetaData'](_0x3ee08d,_0xc6c9f5,!0x0);}return this['_lastFrom']=_0x3ee08d,this['_lastTo']=_0xc6c9f5,this['_getState']();}['loadState'](_0x2f7ce6){this['_reset'](),this['_lastFrom']=_0x2f7ce6['fromVersion'],this['_lastTo']=_0x2f7ce6['toVersion'];for(const _0x3f5c88 in _0x2f7ce6['diffData']){const _0x4ca94a=_0x2f7ce6['diffData'][_0x3f5c88]['attachChange'],_0x450f2e=_0x51a809(_0x2f7ce6['diffData'][_0x3f5c88]['attributesBefore'])||{},_0x168e3e=this['_makeModelFromViewString'](_0x2f7ce6['diffData'][_0x3f5c88]['deletions']);_0x168e3e['rootName']=_0x3f5c88,_0x168e3e['_isAttached']=!_0x4ca94a||!_0x4ca94a['isAttached'],_0x168e3e['isAttached']=()=>_0x168e3e['_isAttached'],this['_baseRoots']['set'](_0x3f5c88,_0x168e3e),this['_baseRootsAttributes']['set'](_0x3f5c88,_0x450f2e),_0x4ca94a&&this['_touchedRoots']['set'](_0x3f5c88,_0x4ca94a);const _0x3f12d2=this['_makeIdsRoot'](_0x168e3e);this['_baseIdsRoots']['set'](_0x3f5c88,_0x3f12d2);for(const [_0x47e79b,_0x42a699]of _0x168e3e['markers']){if(!_0x47e79b['startsWith']('revision:'))continue;const _0x256775=_0x47e79b['split'](':')[0x2];for(const _0x11487e of _0x42a699['getWalker']({'singleCharacters':!0x0})){const _0x40ec39=this['_getVidAttributeName'](_0x11487e),_0x2708ea='elementEnd'==_0x11487e['type']?_0x11487e['previousPosition']['path']['slice'](0x0,-0x1):_0x11487e['previousPosition']['path'],_0x22f7fa=_0x3f12d2['getNodeByPath'](_0x2708ea)['getAttribute'](_0x40ec39);this['_touched']['set'](_0x22f7fa,{'userId':_0x256775});}}}this['_startingRevisionId']=this['_revisionId'];const _0x19cd25=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x22abed=>!this['_touched']['has'](_0x22abed));let _0xfe4e8e=0x0;const _0x9eabfa=new Map();for(const _0x3f0537 in _0x2f7ce6['diffData']){const _0x423d01=_0x2f7ce6['diffData'][_0x3f0537]['attachChange'],_0x3dcb47=_0x51a809(_0x2f7ce6['diffData'][_0x3f0537]['attributesAfter'])||{},_0x100009=this['_makeModelFromViewString'](_0x2f7ce6['diffData'][_0x3f0537]['insertions']);_0x100009['rootName']=_0x3f0537,_0x100009['_isAttached']=!_0x423d01||_0x423d01['isAttached'],_0x100009['isAttached']=()=>_0x100009['_isAttached'],this['_diffRoots']['set'](_0x3f0537,_0x100009),this['_diffRootsAttributes']['set'](_0x3f0537,_0x3dcb47);const _0x3e660a=this['_makeIdsRoot'](_0x100009,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3f0537,_0x3e660a),_0x9eabfa['set'](_0x3f0537,_0x100009['isAttached']()?_0x3dcb47:{});for(const [_0x2a3882,_0x1c1d7e]of _0x100009['markers']){if(!_0x2a3882['startsWith']('revision:'))continue;const _0x212bc5=_0x2a3882['split'](':')[0x2];for(const _0x3f2b74 of _0x1c1d7e['getWalker']({'singleCharacters':!0x0})){const _0x1a56c9=this['_getVidAttributeName'](_0x3f2b74),_0x4798c3=this['_revisionId']++,_0x2736a6='elementEnd'==_0x3f2b74['type']?_0x3f2b74['previousPosition']['path']['slice'](0x0,-0x1):_0x3f2b74['previousPosition']['path'];_0x3e660a['getNodeByPath'](_0x2736a6)['_setAttribute'](_0x1a56c9,_0x4798c3),this['_touched']['set'](_0x4798c3,{'userId':_0x212bc5});}}for(const _0x29522d of this['editor']['model']['createRangeIn'](_0x100009)['getWalker']({'singleCharacters':!0x0})){const _0xdc64b7=this['_getVidAttributeName'](_0x29522d),_0x1dd2ee='elementEnd'==_0x29522d['type']?_0x29522d['previousPosition']['path']['slice'](0x0,-0x1):_0x29522d['previousPosition']['path'],_0xa12900=_0x3e660a['getNodeByPath'](_0x1dd2ee);_0xa12900['getAttribute'](_0xdc64b7)>0x0||_0xa12900['_setAttribute'](_0xdc64b7,_0x19cd25[_0xfe4e8e++]);}for(const [_0x30d21b,_0xa2a612]of _0x100009['markers'])_0x30d21b['startsWith']('revision:')||this['_markers']['set'](_0x30d21b,_0xa2a612);}const _0x3070f2=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3070f2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3070f2,0x1));const _0x221526=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x221526),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x221526,0x1));const _0x5719b5=Array['from'](this['_diffRoots'])['map'](([_0x455af0,_0x1fbcb4])=>[_0x455af0,F(_0x1fbcb4)]);this['_saveMetaData'](this['_lastTo'],_0x5719b5,this['_markers'],_0x9eabfa);}['_makeModelFromViewString'](_0x56b210){const _0x48eedf=JSON['parse'](_0x56b210),_0x44e585=this['editor']['editing']['view']['document'],_0x4a7af7=new _0x5deb62(_0x44e585,_0x48eedf['map'](_0x2e4489=>V(_0x2e4489,this['editor'])));return this['editor']['data']['toModel'](_0x4a7af7);}['_saveMetaData'](_0x22edbf,_0x595e22,_0x225414,_0xc5b392){const _0x18044c=new Map(_0x595e22),_0xe0d6e1=new Map(_0x51a809(_0xc5b392)),_0x58e5a7=new Map();for(const [_0x34c0a5,_0x404e57]of _0x225414)_0x58e5a7['set'](_0x34c0a5,{'start':_0x404e57['start']['clone'](),'end':_0x404e57['end']['clone'](),'rootName':_0x404e57['root']['rootName']});this['_savedMetaData']['set'](_0x22edbf,{'roots':_0x18044c,'markers':_0x58e5a7,'rootsAttributes':_0xe0d6e1});}['_removeMetaData'](_0x3b3848){this['_savedMetaData']['delete'](_0x3b3848);}['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'](_0xb46423,_0x299352=null){let _0x4cb92f=null;_0xb46423['is']('documentFragment')||(_0x4cb92f=new ft(_0xb46423['name'],{'vid_start':null===_0x299352?this['_revisionId']++:_0x299352++}));const _0x7c8373=[];for(const _0x2b93ec of _0xb46423['getChildren']())if(_0x2b93ec['is']('element')){_0x7c8373['push'](this['_makeIdsRoot'](_0x2b93ec,_0x299352));const _0x513cc1=_0x7c8373[_0x7c8373['length']-0x1];null!==_0x299352&&(_0x299352=_0x513cc1['is']('element','$text')?_0x513cc1['getAttribute']('vid')+0x1:_0x513cc1['getAttribute']('vid_end')+0x1);}else{for(let _0x230caf=0x0;_0x230caf<_0x2b93ec['offsetSize'];_0x230caf++)_0x7c8373['push'](new ft('$text',{'vid':null===_0x299352?this['_revisionId']++:_0x299352++}));}if(_0xb46423['is']('documentFragment')){const _0x50a774=B(_0xb46423['rootName']);return _0x50a774['_insertChild'](0x0,_0x7c8373),_0x50a774;}return _0x4cb92f['_setAttribute']('vid_end',null===_0x299352?this['_revisionId']++:_0x299352++),_0x4cb92f['_insertChild'](0x0,_0x7c8373),_0x4cb92f;}['_calculateMetaData'](_0x1b3071,_0x2b3216,_0x5d8f87){this['_reset']();const {roots:_0x153ead,markers:_0x1c19ef,rootsAttributes:_0x28a0e0}=this['_savedMetaData']['get'](_0x1b3071);this['_baseRoots']=new Map(_0x153ead),this['_baseRootsAttributes']=new Map(_0x51a809(_0x28a0e0));for(const [_0x305ac1,_0x5e53f7]of this['_baseRoots'])if('$graveyard'!==_0x305ac1&&(this['_diffRoots']['set'](_0x305ac1,F(_0x5e53f7)),this['_diffRootsAttributes']=new Map(_0x51a809(_0x28a0e0)),_0x5d8f87)){const _0x45926a=this['_revisionId'];this['_idsRoots']['set'](_0x305ac1,this['_makeIdsRoot'](_0x5e53f7)),this['_baseIdsRoots']['set'](_0x305ac1,this['_makeIdsRoot'](_0x5e53f7,_0x45926a));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x5d8f87&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x58446f,_0x37f733]of _0x1c19ef){const _0xbf824f=this['_baseRoots']['get'](_0x37f733['rootName']),_0x1f5e0e=this['_diffRoots']['get'](_0x37f733['rootName']),_0x16c822=new vt(this['_fixPosition'](_0x37f733['start'],_0xbf824f),this['_fixPosition'](_0x37f733['end'],_0xbf824f)),_0x5ea15a=this['_fixRange'](_0x16c822,_0x1f5e0e);_0xbf824f['markers']['set'](_0x58446f,_0x16c822),this['_markers']['set'](_0x58446f,_0x5ea15a);}this['_applyOperations'](_0x1b3071,_0x2b3216,_0x5d8f87);}['_applyOperations'](_0x1476a6,_0xae71b8,_0x5f3480){for(const _0x4acf9e of this['source']['getOperations'](_0x1476a6,_0xae71b8))this['_handleOperation'](_0x4acf9e,_0x5f3480);for(const _0x3a5c88 of this['_diffRoots']['values']())_0x3a5c88['markers']['clear']();for(const [_0x509f52,_0x4baca5]of this['_markers']){this['_diffRoots']['get'](_0x4baca5['root']['rootName'])['markers']['set'](_0x509f52,_0x4baca5['clone']());}const _0x57f4f4=new Map(),_0x566fa8=new Map();for(const [_0x2c67cc,_0x3b5628]of this['_diffRoots'])_0x57f4f4['set'](_0x2c67cc,F(_0x3b5628)),_0x566fa8['set'](_0x2c67cc,this['_diffRootsAttributes']['get'](_0x2c67cc));this['_saveMetaData'](_0xae71b8,_0x57f4f4,this['_markers'],_0x566fa8);}['_getPreviousFrom'](_0x2d38ef){const _0x33cadb=Array['from'](this['_savedMetaData']['keys']());_0x33cadb['sort']((_0x264621,_0x2a5bf9)=>_0x264621-_0x2a5bf9),_0x33cadb['reverse']();for(const _0x1fb480 of _0x33cadb)if(_0x1fb480<_0x2d38ef)return _0x1fb480;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x187a62,_0x277a94){const _0x253327=Array['from'](_0x277a94['markers'])['map'](([_0x4c427d,_0x107215])=>[_0x4c427d,this['_fixRange'](_0x107215,_0x187a62)]);_0x187a62['markers']=new Map(_0x253327);}['_transformMarkers'](_0x7a384){for(const _0x328ebf of this['_markers']['values']()){const _0xc67c5e=_0x328ebf['getTransformedByOperation'](_0x7a384),_0x2ac299=vt['_createFromRanges'](_0xc67c5e);_0x328ebf['start']=_0x2ac299['start'],_0x328ebf['end']=_0x2ac299['end'];}}['_handleOperation'](_0x3f0dc9,_0x4f5c63){if('addRoot'!=_0x3f0dc9['type']&&'detachRoot'!=_0x3f0dc9['type']){if('insert'==_0x3f0dc9['type']){const _0x54d0a6=_0x3f0dc9['position']['root']['rootName'];this['_diffRoots']['has'](_0x54d0a6)||(this['_diffRoots']['set'](_0x54d0a6,B(_0x54d0a6,!0x0)),this['_diffRootsAttributes']['set'](_0x54d0a6,{}),_0x4f5c63&&this['_idsRoots']['set'](_0x54d0a6,B(_0x54d0a6,!0x0)));}else{if('addRootAttribute'==_0x3f0dc9['type']||'removeRootAttribute'==_0x3f0dc9['type']||'changeRootAttribute'==_0x3f0dc9['type'])return void this['_handleRootAttributeOperation'](_0x3f0dc9);'marker'==_0x3f0dc9['type']&&this['_handleMarkerOperation'](_0x3f0dc9);}if('marker'!==_0x3f0dc9['type']){const _0x58680f=this['_cloneOperation'](_0x3f0dc9,this['_diffRoots']);_0x58680f['_execute'](),this['_transformMarkers'](_0x58680f);}if(_0x4f5c63)switch(_0x3f0dc9['type']){case'insert':this['_handleInsertOperation'](_0x3f0dc9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3f0dc9);break;case'merge':this['_handleMergeOperation'](_0x3f0dc9);break;case'split':this['_handleSplitOperation'](_0x3f0dc9);}}else this['_handleRootOperation'](_0x3f0dc9,_0x4f5c63);}['_cloneOperation'](_0x3da0b1,_0x57b3c7){const _0x3a0060=_0x3da0b1['clone']();return _0x3a0060['_authorId']=_0x3da0b1['_authorId'],this['_fixOperation'](_0x3a0060,_0x57b3c7),_0x3a0060;}['_getBaseVids'](_0x435e11){return _0x435e11['map'](_0x3e9768=>{const _0x364681=this['_getVidAttributeName'](_0x3e9768);return Number(_0x3e9768['item']['getAttribute'](_0x364681));});}['_generateTape'](_0x3c634d,_0x260423){if(_0x3c634d['is']('element','$text'))_0x260423['push']({'item':_0x3c634d,'type':'text'});else{_0x3c634d['is']('element')&&_0x260423['push']({'item':_0x3c634d,'type':'elementStart'});for(const _0x635417 of _0x3c634d['getChildren']())this['_generateTape'](_0x635417,_0x260423);_0x3c634d['is']('element')&&_0x260423['push']({'item':_0x3c634d,'type':'elementEnd'});}return _0x260423;}['_getState'](){const _0x7ffc47=new Map(this['_touched']),_0x548ca6=new Map(_0x7ffc47),_0x4df487=new Map(),_0x1366fb={'insertions':{},'deletions':{}},_0x30ca2f={'insertions':{},'deletions':{}},_0x5d1c01=new Map(),_0xd34d88=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xd34d88['delete']('$graveyard');for(const _0x5dd571 of _0xd34d88){const _0x32e724=this['_diffRoots']['get'](_0x5dd571)||B(_0x5dd571,!0x1),_0x4f40f3=this['_baseRoots']['get'](_0x5dd571)||B(_0x5dd571,!0x1);_0x32e724['isAttached']()||_0x4f40f3['isAttached']()?(_0x1366fb['insertions'][_0x5dd571]=F(_0x32e724),_0x1366fb['deletions'][_0x5dd571]=F(_0x4f40f3),this['_copyMarkers'](_0x1366fb['deletions'][_0x5dd571],_0x4f40f3),this['_copyMarkers'](_0x1366fb['insertions'][_0x5dd571],_0x32e724),_0x30ca2f['insertions'][_0x5dd571]=this['_generateTape'](this['_idsRoots']['get'](_0x5dd571),[]),_0x30ca2f['deletions'][_0x5dd571]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5dd571)||B(_0x5dd571,!0x1),[])):_0xd34d88['delete'](_0x5dd571);}for(const _0x153d6a of _0xd34d88){const _0x820c59=_0x30ca2f['insertions'][_0x153d6a];for(const _0x182b85 of _0x820c59){const _0x412502=this['_getVidAttributeName'](_0x182b85),_0x22b016=_0x182b85['item']['getAttribute'](_0x412502);_0x548ca6['delete'](_0x22b016),_0x22b016>=this['_startingRevisionId']&&_0x4df487['set'](_0x22b016,_0x7ffc47['get'](_0x22b016));}}for(const _0x40f251 of _0xd34d88){const _0x17f399=_0x30ca2f['insertions'][_0x40f251],_0x3cd92f=this['_getBaseVids'](_0x30ca2f['deletions'][_0x40f251]);let _0x534eff=0x0;for(const _0x366f9e of _0x17f399){const _0x27d138=this['_getVidAttributeName'](_0x366f9e),_0x9628a=_0x366f9e['item']['getAttribute'](_0x27d138);if(!_0x4df487['has'](_0x9628a)&&!_0x5d1c01['has'](_0x9628a)){if(_0x548ca6['has'](_0x9628a))_0x534eff++;else{if(_0x9628a!=_0x3cd92f[_0x534eff]){const _0x140f85=_0x7ffc47['get'](_0x9628a)||_0x7ffc47['get'](_0x3cd92f[_0x534eff]);for(;_0x9628a!=_0x3cd92f[_0x534eff];)_0x548ca6['has'](_0x3cd92f[_0x534eff])||(_0x5d1c01['set'](_0x3cd92f[_0x534eff],_0x140f85),_0x7ffc47['set'](_0x3cd92f[_0x534eff],_0x140f85)),_0x534eff++;}_0x534eff++;}}}}for(const _0x4e755c of _0xd34d88){const _0x355e47=_0x30ca2f['insertions'][_0x4e755c];for(const _0x1fb2b4 of _0x355e47){const _0x954d6a=this['_getVidAttributeName'](_0x1fb2b4),_0x467cd4=_0x1fb2b4['item']['getAttribute'](_0x954d6a);if(_0x5d1c01['has'](_0x467cd4)){const _0x4dfcc9=_0x5d1c01['get'](_0x467cd4);_0x548ca6['has'](_0x467cd4)||_0x548ca6['set'](_0x467cd4,{..._0x4dfcc9}),_0x4df487['set'](_0x467cd4,{..._0x4dfcc9});}}}for(const _0x40967e of _0x548ca6['keys']())_0x40967e>=this['_startingRevisionId']&&_0x548ca6['delete'](_0x40967e);const _0x5b04bd=new Map();for(const _0x3f377f of _0xd34d88){let _0x3a0fd5=_0x30ca2f['insertions'][_0x3f377f];for(const _0x429d20 of _0x3a0fd5)if(_0x429d20['item']['is']('element','tableCell')){const _0x1c6d34=this['_getVidAttributeName'](_0x429d20),_0x265157=_0x429d20['item']['getAttribute'](_0x1c6d34);if(_0x4df487['has'](_0x265157)){const _0x1e91b6=_0x429d20['item']['parent']['parent']['getAttribute']('vid_start'),_0x471cd1=_0x5b04bd['get'](_0x1e91b6)||new Set();_0x471cd1['add'](_0x4df487['get'](_0x265157)['userId']),_0x5b04bd['set'](_0x1e91b6,_0x471cd1);}}_0x3a0fd5=_0x30ca2f['deletions'][_0x3f377f];for(const _0x5c5e1f of _0x3a0fd5)if(_0x5c5e1f['item']['is']('element','tableCell')){const _0x988d58=this['_getVidAttributeName'](_0x5c5e1f),_0xced4a3=_0x5c5e1f['item']['getAttribute'](_0x988d58);if(_0x548ca6['has'](_0xced4a3)){const _0x488f39=_0x5c5e1f['item']['parent']['parent']['getAttribute']('vid_start'),_0x4621c2=_0x5b04bd['get'](_0x488f39)||new Set();_0x4621c2['add'](_0x548ca6['get'](_0xced4a3)['userId']),_0x5b04bd['set'](_0x488f39,_0x4621c2);}}for(const _0x334d33 of _0x5b04bd['keys']())(_0x4df487['has'](_0x334d33)||_0x548ca6['has'](_0x334d33))&&_0x5b04bd['delete'](_0x334d33);}for(const _0x10a722 of _0xd34d88){const _0x24b61f=_0x30ca2f['insertions'][_0x10a722];let _0x28dfd9=null,_0x2a8e2=null;for(const _0xc5cc04 of _0x24b61f){const _0x2e4a7c=this['_getVidAttributeName'](_0xc5cc04),_0x412a88=_0xc5cc04['item']['getAttribute'](_0x2e4a7c),_0x484cc5=_0x5b04bd['get'](_0x412a88);_0x484cc5&&'elementStart'==_0xc5cc04['type']&&(_0x28dfd9=Array['from'](_0x484cc5)[0x0],_0x2a8e2=_0xc5cc04['item']['getAttribute']('vid_end')),_0x28dfd9&&(_0x548ca6['set'](_0x412a88,{'userId':_0x28dfd9}),_0x4df487['set'](_0x412a88,{'userId':_0x28dfd9})),_0x412a88==_0x2a8e2&&(_0x28dfd9=null,_0x2a8e2=null);}}const _0x1ed6f2={},_0x5b92e8=new Set();for(const _0x28ccab of _0xd34d88){const _0x2a76ac=_0x1366fb['deletions'][_0x28ccab],_0x5da62f=_0x1366fb['insertions'][_0x28ccab];for(const {userId:_0x64c0d2}of this['_touchedMarkers']['values']())null!==_0x64c0d2&&_0x5b92e8['add'](_0x64c0d2);for(const {userId:_0x86dd15}of this['_touchedRoots']['values']())null!==_0x86dd15&&_0x5b92e8['add'](_0x86dd15);this['_markChanges'](_0x5da62f,_0x30ca2f['insertions'][_0x28ccab],_0x4df487,'insertion',_0x5b92e8),this['_markChanges'](_0x2a76ac,_0x30ca2f['deletions'][_0x28ccab],_0x548ca6,'deletion',_0x5b92e8),_0x1ed6f2[_0x28ccab]={'insertions':this['_prepareViewToSave'](_0x5da62f),'deletions':this['_prepareViewToSave'](_0x2a76ac),'attachChange':this['_touchedRoots']['get'](_0x28ccab)||null,'attributesBefore':_0x51a809(this['_baseRootsAttributes']['get'](_0x28ccab))||{},'attributesAfter':_0x51a809(this['_diffRootsAttributes']['get'](_0x28ccab))};}return{'diffData':_0x1ed6f2,'authorsIds':Array['from'](_0x5b92e8)};}['_processRootBeforeSave'](_0x39a72b){for(const [,_0x183738]of _0x39a72b['markers']){const _0x5aee1c=_0x183738['start']['getAncestors']()['filter'](_0x2070f5=>'tableCell'==_0x2070f5['name']);for(const _0xc4196c of _0x5aee1c)0x1==_0xc4196c['childCount']&&_0xc4196c['getChild'](0x0)['is']('element','paragraph')&&_0xc4196c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x140091){this['_processRootBeforeSave'](_0x140091);const _0x2b7629=this['editor']['data']['toView'](_0x140091,{}),_0x206db0=Array['from'](_0x2b7629['getChildren']())['map'](_0x17a7e4=>this['_getViewJson'](_0x17a7e4));return JSON['stringify'](_0x206db0);}['_getViewJson'](_0x15f9c2){if(_0x15f9c2['is']('$text'))return _0x15f9c2['data'];{const _0xff7cd5=_0x15f9c2;return{'type':Object['keys'](C)['find'](_0x19c318=>_0x15f9c2 instanceof C[_0x19c318]),'name':_0xff7cd5['name'],'attributes':Array['from'](_0xff7cd5['getAttributes']()),'children':Array['from'](_0xff7cd5['getChildren']())['map'](_0x15bb66=>this['_getViewJson'](_0x15bb66))};}}['_markChanges'](_0x2a5aa7,_0x271ada,_0x14b6b3,_0x184beb,_0x3c5bd9){let _0x7a421=null,_0x1475f4=null,_0x2cd5a7=0x0;const _0x459265=this['editor']['model'];for(let _0x20696f=0x0;_0x20696f<_0x271ada['length'];_0x20696f++){const _0x460c04=this['_getVidAttributeName'](_0x271ada[_0x20696f]),_0x552404=_0x271ada[_0x20696f]['item']['getAttribute'](_0x460c04),_0x11b757=_0x14b6b3['get'](_0x552404),_0x591d80=_0x20696f==_0x271ada['length']-0x1;(!_0x7a421&&_0x11b757&&(_0x7a421=_0x11b757,_0x1475f4=_0x271ada[_0x20696f]),_0x7a421&&(!_0x11b757||_0x11b757['userId']!=_0x7a421['userId']))&&(_0x116e4a(_0x11b757,J(_0x1475f4,_0x2a5aa7,_0x459265),J(_0x271ada[_0x20696f],_0x2a5aa7,_0x459265)),_0x7a421=_0x11b757||null,_0x1475f4=_0x11b757?_0x271ada[_0x20696f]:null),_0x7a421&&_0x591d80&&_0x116e4a(_0x11b757,J(_0x1475f4,_0x2a5aa7,_0x459265),q(_0x271ada[_0x20696f],_0x2a5aa7,_0x459265));}function _0x116e4a(_0x47b53a,_0x573de4,_0x26f497){const _0x4c7206=_0x7a421['userId'],_0x2eb23b='revision:'+_0x184beb+':'+_0x4c7206+':'+_0x2cd5a7++,_0x2a7ac2=_0x459265['createRange'](_0x573de4,_0x26f497);_0x2a5aa7['markers']['set'](_0x2eb23b,_0x2a7ac2),null!==_0x4c7206&&_0x3c5bd9['add'](_0x4c7206);}}['_getVidAttributeName'](_0x3ae768){switch(_0x3ae768['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3c55c2,_0x445dd0){_0x3c55c2['baseVersion']=null;for(const _0x2755e0 in _0x3c55c2){const _0x4f8ec5=_0x3c55c2[_0x2755e0];if(_0x4f8ec5 instanceof gt){const _0x15a931=_0x445dd0['get'](_0x4f8ec5['root']['rootName']);_0x3c55c2[_0x2755e0]=this['_fixPosition'](_0x4f8ec5,_0x15a931);}if(_0x4f8ec5 instanceof vt){const _0xdaf642=_0x445dd0['get'](_0x4f8ec5['root']['rootName']);_0x3c55c2[_0x2755e0]=this['_fixRange'](_0x4f8ec5,_0xdaf642);}'root'===_0x2755e0&&(_0x3c55c2['root']=_0x445dd0['get'](_0x3c55c2['root']['rootName']));}}['_fixRange'](_0x565fd2,_0x5ae109){return this['editor']['model']['createRange'](this['_fixPosition'](_0x565fd2['start'],_0x5ae109),this['_fixPosition'](_0x565fd2['end'],_0x5ae109));}['_fixPosition'](_0x2344b9,_0x4233d0){return this['editor']['model']['createPositionFromPath'](_0x4233d0,_0x2344b9['path'],_0x2344b9['stickiness']);}['_handleInsertOperation'](_0x4c6c9b){const _0x1cfdd6=this['_idsRoots']['get'](_0x4c6c9b['position']['root']['rootName']),_0x9afb78=this['_fixPosition'](_0x4c6c9b['position'],_0x1cfdd6),_0x253472=null===_0x4c6c9b['_authorId']?null:_0x4c6c9b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x205117=_0x9afb78['parent'],_0x556f04=this['_revisionId'],_0x542702=[];for(const _0x5590e2 of _0x4c6c9b['nodes'])if(_0x5590e2['is']('element'))_0x542702['push'](this['_makeIdsRoot'](_0x5590e2));else{for(let _0x291988=0x0;_0x291988<_0x5590e2['offsetSize'];_0x291988++)_0x542702['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x546c7a=this['_revisionId'];for(let _0x1daec6=_0x556f04;_0x1daec6<_0x546c7a;_0x1daec6++)this['_touched']['set'](_0x1daec6,{'userId':_0x253472});_0x205117['_insertChild'](_0x9afb78['offset'],_0x542702);}['_handleMoveOperation'](_0x3c6c8d){(_0x3c6c8d=this['_cloneOperation'](_0x3c6c8d,this['_idsRoots']))['_execute']();const _0x12f099=null===_0x3c6c8d['_authorId']?null:_0x3c6c8d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x127f9d=_0x3c6c8d['getMovedRangeStart'](),_0x15f658=_0x127f9d['parent'],_0x4ad78e=_0x127f9d['offset'];!function _0x53ecff(_0x184df2,_0x295944,_0x1f09d3,_0x4d847c){for(let _0x46e523=_0x1f09d3;_0x46e523<_0x4d847c;_0x46e523++){const _0x62abca=_0x295944['getChild'](_0x46e523);_0x62abca['is']('element','$text')?_0x184df2['set'](_0x62abca['getAttribute']('vid'),{'userId':_0x12f099}):(_0x184df2['set'](_0x62abca['getAttribute']('vid_start'),{'userId':_0x12f099}),_0x53ecff(_0x184df2,_0x62abca,0x0,_0x62abca['childCount']),_0x184df2['set'](_0x62abca['getAttribute']('vid_end'),{'userId':_0x12f099}));}}(this['_touched'],_0x15f658,_0x4ad78e,_0x4ad78e+_0x3c6c8d['howMany']);}['_handleMergeOperation'](_0x5ca69c){const _0x3ca983=null===(_0x5ca69c=this['_cloneOperation'](_0x5ca69c,this['_idsRoots']))['_authorId']?null:_0x5ca69c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8c575c=_0x5ca69c['targetPosition']['parent'],_0x25579d=_0x5ca69c['sourcePosition']['parent'],_0x24ba50=_0x8c575c['getAttribute']('vid_end'),_0x584477=_0x25579d['getAttribute']('vid_start');_0x8c575c['_setAttribute']('vid_end',_0x25579d['getAttribute']('vid_end')),_0x25579d['_setAttribute']('vid_end',_0x24ba50),this['_touched']['set'](_0x584477,{'userId':_0x3ca983}),this['_touched']['set'](_0x24ba50,{'userId':_0x3ca983}),_0x5ca69c['_execute']();}['_handleSplitOperation'](_0xc86d5d){const _0x1fad76=null===(_0xc86d5d=this['_cloneOperation'](_0xc86d5d,this['_idsRoots']))['_authorId']?null:_0xc86d5d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x401cd=_0xc86d5d['graveyardPosition'],_0x29119b=_0xc86d5d['splitPosition']['parent'];_0xc86d5d['_execute']();const _0x56173b=_0x29119b['getAttribute']('vid_end'),_0x5c093b=_0xc86d5d['insertionPosition']['nodeAfter'];if(_0x401cd){const _0x381d57=_0x5c093b['getAttribute']('vid_end'),_0x4ec340=_0x29119b['getAttribute']('vid_end');_0x29119b['_setAttribute']('vid_end',_0x381d57),_0x5c093b['_setAttribute']('vid_end',_0x4ec340),this['_touched']['set'](_0x29119b['getAttribute']('vid_end'),{'userId':_0x1fad76}),this['_touched']['set'](_0x5c093b['getAttribute']('vid_start'),{'userId':_0x1fad76});}else{const _0x504810=this['_revisionId']++,_0x293c58=this['_revisionId']++;_0x29119b['_setAttribute']('vid_end',_0x504810),_0x5c093b['_setAttribute']('vid_start',_0x293c58),_0x5c093b['_setAttribute']('vid_end',_0x56173b),this['_touched']['set'](_0x504810,{'userId':_0x1fad76}),this['_touched']['set'](_0x293c58,{'userId':_0x1fad76});}}['_handleMarkerOperation'](_0x5acb6d){if(!_0x5acb6d['affectsData'])return;const _0x4f7b83=(_0x5acb6d=this['_cloneOperation'](_0x5acb6d,this['_diffRoots']))['oldRange']?_0x5acb6d['oldRange']['root']:null,_0x547ff6=_0x5acb6d['newRange']?_0x5acb6d['newRange']['root']:null;_0x4f7b83&&this['_markers']['delete'](_0x5acb6d['name']),_0x547ff6&&this['_markers']['set'](_0x5acb6d['name'],_0x5acb6d['newRange']['clone']());const _0x4f60f7=null===_0x5acb6d['_authorId']?null:_0x5acb6d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51ce9c=_0x5acb6d['name'];if(!this['_touchedMarkers']['has'](_0x51ce9c))return void this['_touchedMarkers']['set'](_0x51ce9c,{'range':_0x5acb6d['oldRange'],'userId':_0x4f60f7});const _0x17a897=this['_touchedMarkers']['get'](_0x51ce9c),_0x43e0bb=_0x17a897['range'],_0x546a1d=_0x5acb6d['newRange'];null==_0x43e0bb&&null==_0x546a1d||_0x43e0bb&&_0x546a1d&&_0x43e0bb['isEqual'](_0x546a1d)?this['_touchedMarkers']['delete'](_0x5acb6d['name']):_0x17a897['userId']=_0x4f60f7;}['_handleRootOperation'](_0x1f9af6,_0x12f16b){this['_diffRoots']['has'](_0x1f9af6['rootName'])?this['_diffRoots']['get'](_0x1f9af6['rootName'])['_isAttached']=_0x1f9af6['isAdd']:(this['_diffRoots']['set'](_0x1f9af6['rootName'],B(_0x1f9af6['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1f9af6['rootName'],{}),_0x12f16b&&this['_idsRoots']['set'](_0x1f9af6['rootName'],B(_0x1f9af6['rootName'],!0x0)));const _0x31d249=null===_0x1f9af6['_authorId']?null:_0x1f9af6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a2d9e=this['_touchedRoots']['get'](_0x1f9af6['rootName']);_0x4a2d9e&&_0x4a2d9e['userId']===_0x31d249?this['_touchedRoots']['delete'](_0x1f9af6['rootName']):this['_touchedRoots']['set'](_0x1f9af6['rootName'],{'userId':_0x31d249,'isAttached':_0x1f9af6['isAdd']});}['_handleRootAttributeOperation'](_0x39bd7d){const _0x1c3475=this['_diffRootsAttributes']['get'](_0x39bd7d['root']['rootName']);null===_0x39bd7d['newValue']?delete _0x1c3475[_0x39bd7d['key']]:_0x1c3475[_0x39bd7d['key']]=_0x39bd7d['newValue'];}}function F(_0x41209b){const _0x24fc1b=B(_0x41209b['rootName'],_0x41209b['isAttached']());for(const _0x285f9f of _0x41209b['getChildren']()){const _0x4bc6f5=_0x285f9f['_clone'](!0x0);_0x24fc1b['_appendChild'](_0x4bc6f5);}return _0x24fc1b;}function B(_0x5a6876,_0x12a441=!0x0){const _0x39948c=new wt();return _0x39948c['rootName']=_0x5a6876,_0x39948c['_isAttached']=_0x12a441,_0x39948c['isAttached']=()=>_0x39948c['_isAttached'],_0x39948c;}function J(_0x1f7957,_0x4c40a9,_0x441f3a){const _0x2b558c='elementEnd'==_0x1f7957['type']?_0x441f3a['createPositionAt'](_0x1f7957['item'],'end'):_0x441f3a['createPositionBefore'](_0x1f7957['item']);return _0x441f3a['createPositionFromPath'](_0x4c40a9,_0x2b558c['path'],_0x2b558c['stickiness']);}function q(_0x5dc30f,_0x305cac,_0x5d6e07){const _0x2310e4='elementStart'==_0x5dc30f['type']?_0x5d6e07['createPositionAt'](_0x5dc30f['item'],0x0):_0x5d6e07['createPositionAfter'](_0x5dc30f['item']);return _0x5d6e07['createPositionFromPath'](_0x305cac,_0x2310e4['path'],_0x2310e4['stickiness']);}class ns extends _0x1f9e12{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1ea343,_0x11bfe3){super(_0x1ea343),this['focusTracker']=new _0x3a76c5(),this['keystrokes']=new _0x30129d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x11bfe3),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'](),_0x1a6686({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x541c92=_0x440453=>_0x440453['stopPropagation']();this['keystrokes']['set']('arrowright',_0x541c92),this['keystrokes']['set']('arrowleft',_0x541c92),this['keystrokes']['set']('arrowup',_0x541c92),this['keystrokes']['set']('arrowdown',_0x541c92);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1aa156){this['revisionNameInputView']['fieldView']['element']['value']=_0x1aa156['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2fabc6){const _0x28a67d=new at(this['locale'],_0x2186b1),_0x20e487=_0x28a67d['fieldView'];_0x20e487['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x313cb7=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2fabc6&&(_0x313cb7+='\x20('+R(this['locale'],'optional')+')'),(_0x28a67d['label']=_0x313cb7,_0x20e487['on']('input',()=>{this['revisionNameInputValue']=_0x20e487['element']['value']['trim']();}),_0x28a67d);}}class u extends _0x402cd2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x30dfb3=this['editor'],_0x1c0e1c=_0x30dfb3['plugins']['get']('RevisionTracker');_0x30dfb3['ui']['componentFactory']['add']('revisionHistory',_0x707aaa=>{const _0x55e7e1=_0x2c9d20(_0x707aaa),_0x5ec7fe=_0x55e7e1['panelView']['children'],_0x2f77c7=new te(_0x707aaa),_0x39dff4=new _0x14c301(_0x707aaa),_0x18a437=new _0x4f565d(_0x707aaa),_0x52b545=new _0x14c301(_0x707aaa),_0x1ee1dd=new _0x4f565d(_0x707aaa);return _0x55e7e1['bind']('isEnabled')['to'](_0x1c0e1c,'isReady',_0x1c0e1c,'isEnabled',_0x30dfb3,'isReadOnly',(_0x504e8d,_0x454907,_0x554745)=>_0x504e8d&&_0x454907&&!_0x554745),_0x55e7e1['buttonView']['set']({'icon':_0x9f8c6d['history'],'label':R(_0x707aaa,'Revision\x20history'),'tooltip':!0x0}),_0x18a437['set']({'label':R(_0x707aaa,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x18a437['bind']('isEnabled')['to'](_0x1c0e1c,'isReady',_0x1c0e1c,'isEnabled',_0x30dfb3,'isReadOnly',(_0x256e4e,_0x537234,_0x4ba1b4)=>_0x256e4e&&_0x537234&&!_0x4ba1b4),_0x18a437['on']('execute',()=>this['_showDialog']()),_0x1ee1dd['set']({'label':R(_0x707aaa,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1ee1dd['bind']('isEnabled')['to'](_0x1c0e1c,'isReady',_0x30dfb3,'isReadOnly',(_0x1474ba,_0x147033)=>_0x1474ba&&!_0x147033),_0x1ee1dd['on']('execute',()=>{_0x30dfb3['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x55e7e1['isOpen']=!0x1,_0x30dfb3['editing']['view']['focus']();}),_0x39dff4['children']['add'](_0x18a437),_0x52b545['children']['add'](_0x1ee1dd),_0x2f77c7['role']='menu',_0x2f77c7['items']['addMany']([_0x39dff4,_0x52b545]),_0x5ec7fe['add'](_0x2f77c7),_0x55e7e1;}),_0x30dfb3['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x90136e=this['editor'],_0x24f513=_0x90136e['locale'],_0x1f237e=new _0x54fa66(_0x24f513),_0x4cbd1a=new _0xd62fd3(_0x24f513);_0x1f237e['buttonView']['set']({'icon':_0x9f8c6d['history'],'label':R(_0x24f513,'Revision\x20history')});const _0x2a187a=new _0x4a66b1(_0x24f513,_0x1f237e),_0x3cc20c=new _0x166bdc(_0x24f513);_0x3cc20c['set']({'label':R(_0x24f513,'Save\x20current\x20revision')}),_0x3cc20c['delegate']('execute')['to'](_0x1f237e),_0x3cc20c['on']('execute',()=>{this['_showDialog']();}),_0x2a187a['children']['add'](_0x3cc20c),_0x4cbd1a['items']['add'](_0x2a187a);const _0x28897e=new _0x4a66b1(_0x24f513,_0x1f237e),_0xff0860=new _0x166bdc(_0x24f513);return _0xff0860['set']({'label':R(_0x24f513,'Open\x20revision\x20history')}),_0xff0860['delegate']('execute')['to'](_0x1f237e),_0xff0860['on']('execute',()=>{_0x90136e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x28897e['children']['add'](_0xff0860),_0x4cbd1a['items']['add'](_0x28897e),_0x1f237e['panelView']['children']['add'](_0x4cbd1a),_0x1f237e;}['_showDialog'](){const _0x33374d=this['editor'],_0xf56cd1=_0x33374d['locale'],_0x5b668b=_0x33374d['plugins']['get']('Dialog'),_0x56dabd=_0x33374d['plugins']['get']('RevisionTracker');function _0x132ed1(_0x1efba0){_0x33374d['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1efba0['revisionName']?_0x1efba0['revisionNameInputView']['errorText']=R(_0xf56cd1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x33374d['plugins']['get'](l)['saveRevision']({'name':_0x1efba0['revisionName']}),_0x5b668b['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x132ed1(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5b668b['show']({'id':'revisionSave','title':R(_0xf56cd1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x33374d['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5b668b['hide']()},{'label':R(_0x33374d['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x51c2bf){_0x51c2bf['bind']('isEnabled')['to'](_0x56dabd,'isReady',_0x56dabd,'isEnabled',_0x33374d,'isReadOnly',(_0x5369c2,_0x4bc966,_0x536260)=>_0x5369c2&&_0x4bc966&&!_0x536260);},'onExecute':()=>_0x132ed1(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x59bdd7=this['editor'],_0x59c69f=_0x59bdd7['locale'];this['_saveRevisionFormView']=new ns(_0x59c69f,_0x59bdd7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x1f9e12{['changeId'];['_model'];constructor(_0x5955fe,_0x11336c){super(_0x5955fe),this['_model']=_0x11336c,this['changeId']=_0x11336c['id'];const _0x350360=this['bindTemplate'],_0x4f315c=R(_0x5955fe,_0x11336c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x11336c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x11336c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x350360['to']('type',_0xbbfca8=>'ck-revision-change__'+_0xbbfca8)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4f315c}]},{'text':'\x20'+_0x11336c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x574c1c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x55259f){super(),this['id']=_0x55259f['id']||_0x550c17(),this['author']=_0x55259f['author'],this['type']=_0x55259f['type'],this['data']=_0x55259f['data']||{},this['rootName']=_0x55259f['rootName'],this['set']('createdAt',_0x55259f['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(_0x30153a,_0x569a4f){this['newRevisionId']=_0x30153a,this['oldRevisionId']=_0x569a4f,this['changes']=new _0x1a01dd();}['_setChanges'](_0x37ce05){for(const _0x28f028 of _0x37ce05)this['changes']['add'](_0x28f028);}}const Z={'c':_0x56152c,'a':_0x431e2c,'e':_0x58e8fe,'r':_0x15d160,'u':_0x335e67};class d extends _0x402cd2{['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[_0xbe6911,_0x4ac98d,j];}constructor(_0x1d757f){super(_0x1d757f),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',(_0x153248,_0x2ecde0,_0x41d116)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5820dc=>{for(const _0x49ed6c of this['editor']['editing']['view']['document']['roots'])_0x41d116?_0x5820dc['removeClass']('ck-editor__editable__overlay',_0x49ed6c):_0x5820dc['addClass']('ck-editor__editable__overlay',_0x49ed6c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x404796=>null!==_0x404796),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x35b914,_0x457f38,_0xb6b3b5)=>_0x35b914&&_0xb6b3b5?_0x457f38['changes']['getIndex'](_0xb6b3b5):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x5b904a,_0x1925d4)=>_0x5b904a?_0x1925d4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4ac98d);}['init'](){const _0x5b0754=this['editor'],_0x5bf931=new bt(_0x5b0754,{'direction':'backward'}),_0x22301e=new bt(_0x5b0754,{'direction':'forward'});(_0x5b0754['commands']['add']('showPreviousChange',_0x5bf931),_0x5b0754['commands']['add']('showNextChange',_0x22301e),_0x5b0754['commands']['add']('restoreRevision',new yt(_0x5b0754)),this['on']('change:numberOfChanges',()=>{_0x5bf931['refresh'](),_0x22301e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b0754['enableReadOnlyMode']('revision-viewer'),_0x5b0754['plugins']['has']('WidgetToolbarRepository'))&&_0x5b0754['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2106e1){await this['loadRevisionData'](_0x2106e1);const _0x5721da={};for(const _0x16c57e in _0x2106e1['diffData']){if(_0x2106e1['diffData'][_0x16c57e]['attachChange']&&!_0x2106e1['diffData'][_0x16c57e]['attachChange']['isAttached'])continue;const _0x528d78=this['_removeRevisionMarkers'](JSON['parse'](_0x2106e1['diffData'][_0x16c57e]['insertions'])),_0xcf668c=this['editor']['editing']['view']['document'],_0x1ba276=new _0x5deb62(_0xcf668c,_0x528d78['map'](_0x49b97d=>this['_getViewObj'](_0x49b97d)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5721da[_0x16c57e]=this['editor']['data']['processor']['toData'](_0x1ba276),this['editor']['data']['processor']['useFillerType']('default');}return _0x5721da;}async['getRevisionRootsAttributes'](_0x5063b7){await this['loadRevisionData'](_0x5063b7);const _0x597018={};for(const _0x5c3450 in _0x5063b7['diffData'])_0x5063b7['diffData'][_0x5c3450]['attachChange']&&!_0x5063b7['diffData'][_0x5c3450]['attachChange']['isAttached']||(_0x597018[_0x5c3450]=_0x5063b7['diffData'][_0x5c3450]['attributesAfter']||{});return _0x597018;}['_removeRevisionMarkers'](_0x16a989){return(_0x16a989=_0x16a989['filter'](_0x1f3563=>!_0x1f3563['name']||'revision-start'!==_0x1f3563['name']&&'revision-end'!==_0x1f3563['name']))['forEach'](_0x36ac09=>{'string'!=typeof _0x36ac09&&(_0x36ac09['children']=this['_removeRevisionMarkers'](_0x36ac09['children']),_0x36ac09['attributes']=_0x36ac09['attributes']['filter'](_0x889bae=>!_0x889bae[0x0]['startsWith']('data-revision-')));}),_0x16a989;}async['compare'](_0x5d4955,_0x50d623,_0x288ff6=!0x1){if(!this['isEnabled'])return;const _0x59fcf3=this['diff'],_0x1d8122=this['repository'],_0x19cb60='string'==typeof _0x5d4955?_0x1d8122['getRevision'](_0x5d4955):_0x5d4955,_0x2d27ab='string'==typeof _0x50d623?_0x1d8122['getRevision'](_0x50d623):_0x50d623,_0x28d6d9=_0x19cb60['id'],_0x10eb91=_0x2d27ab?_0x2d27ab['id']:null;if(!_0x288ff6&&this['diff']&&this['diff']['newRevisionId']===_0x28d6d9&&this['diff']['oldRevisionId']===_0x10eb91)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x28d6d9,_0x10eb91);const _0x159692=this['_getRevisionsRange'](_0x19cb60,_0x2d27ab,!0x0)['map'](_0x3ba7f4=>this['loadRevisionData'](_0x3ba7f4));return _0x159692['push'](new Promise(_0x238a03=>{setTimeout(_0x238a03,0x14);})),Promise['all'](_0x159692)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4f6af3=this['_getDiff'](_0x28d6d9,_0x10eb91);for(const _0x6fbf27 of _0x4f6af3['changes'])this['_changeIdToChange']['set'](_0x6fbf27['id'],_0x6fbf27);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2e3c62=>{for(const _0x544df1 of this['editor']['model']['document']['getRootNames']())_0x2e3c62['detachRoot'](_0x544df1);for(const _0x4b9087 of Object['keys'](_0x4f6af3['model'])){const _0x1c9edd=_0x2e3c62['addRoot'](_0x4b9087);for(const _0x31509d of Object['keys'](_0x4f6af3['attributes'][_0x4b9087]))_0x2e3c62['setAttribute'](_0x31509d,_0x4f6af3['attributes'][_0x4b9087][_0x31509d],_0x1c9edd);_0x2e3c62['insert'](_0x4f6af3['model'][_0x4b9087],_0x1c9edd,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4f6af3['changes'])),this['isReady']=!0x0;})['catch'](_0x1135ba=>{console['error'](_0x1135ba),this['_cleanUp'](),_0x59fcf3&&(this['diff']=_0x59fcf3),this['isReady']=!0x0;});}['addRevisionData'](_0x40e1e0,_0x4639b9){const _0x1e91a6=this['repository']['createRevision'](_0x40e1e0);return _0x1e91a6['on']('_update',(_0x3494bd,_0x1aa5d4,_0x4dcf5b)=>_0x4639b9(_0x1aa5d4,_0x4dcf5b,_0x1e91a6)),this['repository']['addRevision'](_0x1e91a6),_0x1e91a6;}['loadRevisionData'](_0x4f5af8){if(!_0x4f5af8||_0x4f5af8['diffData'])return Promise['resolve']();{const _0x62f491=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x62f491,'revisionId':_0x4f5af8['id']})['then'](_0x434d37=>{_0x4f5af8['_update']({'diffData':_0x434d37['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},_0x3afc17=>{for(const _0x56d926 of this['editor']['model']['document']['getRootNames']())_0x3afc17['detachRoot'](_0x56d926);});}['_sortAndFilterDiffChanges'](_0x4d4229){const _0x117d1c=[],_0x1a913d=new Map();for(const _0x5e8ed1 of this['editor']['model']['document']['getRootNames']()){const _0x1ceab6=this['editor']['editing']['view']['getDomRoot'](_0x5e8ed1);if(!_0x1ceab6)continue;const _0x1c97c7=_0x1ceab6['getClientRects']()['item'](0x0);_0x1c97c7&&(_0x117d1c['push'](_0x5e8ed1),_0x1a913d['set'](_0x5e8ed1,_0x1c97c7));}return _0x117d1c['sort']((_0xc1bb8f,_0x413955)=>{const _0x427e2b=_0x1a913d['get'](_0xc1bb8f),_0x3067fe=_0x1a913d['get'](_0x413955);return _0x427e2b['y']-_0x3067fe['y']||_0x427e2b['x']-_0x3067fe['x'];}),(_0x4d4229=_0x4d4229['filter'](_0x20b0ee=>_0x117d1c['includes'](_0x20b0ee['rootName'])))['sort']((_0x37e5fa,_0x12995f)=>_0x117d1c['indexOf'](_0x37e5fa['rootName'])-_0x117d1c['indexOf'](_0x12995f['rootName'])),_0x4d4229;}['_makeTape'](_0xf206bf){const _0x3e72f0=Array['from'](_0xf206bf['markers'])['filter'](([_0x78c897,_0x6501f7])=>_0x78c897['startsWith']('revision:')&&!_0x6501f7['isCollapsed']),_0x273855=Array['from'](this['editor']['model']['createRangeIn'](_0xf206bf)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3e72f0['length'])for(const _0x3d6047 of _0x273855){const [_0xd09ffa,_0x5883db]=_0x3e72f0[0x0],[,_0xa45c24,_0x233ac0]=_0xd09ffa['split'](':');if(_0x5883db['end']['isEqual'](_0x3d6047['nextPosition'])&&_0x3e72f0['shift'](),(_0x3d6047['previousPosition']['isEqual'](_0x5883db['start'])||_0x3d6047['previousPosition']['isAfter'](_0x5883db['start']))&&('insertion'==_0xa45c24?_0x3d6047['isAdded']={'userId':_0x233ac0}:'deletion'==_0xa45c24&&(_0x3d6047['isRemoved']={'userId':_0x233ac0})),0x0==_0x3e72f0['length'])break;}return _0x273855;}['_refreshStartEndIndex'](_0x57b46f){const _0x45a7c3=new Map();for(let _0x6d6300=0x0;_0x6d6300<_0x57b46f['length'];_0x6d6300++)'text'===_0x57b46f[_0x6d6300]['type']?(_0x57b46f[_0x6d6300]['item']['startIndex']=_0x6d6300,_0x57b46f[_0x6d6300]['item']['endIndex']=_0x6d6300):('elementStart'===_0x57b46f[_0x6d6300]['type']?_0x57b46f[_0x6d6300]['item']['startIndex']=_0x6d6300:'elementEnd'===_0x57b46f[_0x6d6300]['type']&&(_0x57b46f[_0x6d6300]['item']['endIndex']=_0x6d6300),_0x45a7c3['set'](_0x57b46f[_0x6d6300]['id'],_0x6d6300));for(const _0x4d22ae of _0x45a7c3['values']())'elementStart'===_0x57b46f[_0x4d22ae]['type']?_0x57b46f[_0x4d22ae]['item']['endIndex']=_0x45a7c3['get'](_0x57b46f[_0x4d22ae]['pairId']):'elementEnd'===_0x57b46f[_0x4d22ae]['type']&&(_0x57b46f[_0x4d22ae]['item']['startIndex']=_0x45a7c3['get'](_0x57b46f[_0x4d22ae]['pairId']));}['_processTape'](_0x56750b){for(let _0x23519e=0x0;_0x23519e<_0x56750b['length'];_0x23519e++){if('elementStart'===_0x56750b[_0x23519e]['type'])_0x56750b[_0x23519e]['item']['startIndex']=_0x23519e;else{if('elementEnd'===_0x56750b[_0x23519e]['type']){_0x56750b[_0x23519e]['item']['endIndex']=_0x23519e;const _0x4f3266=_0x56750b[_0x23519e]['item']['startIndex'];_0x56750b[_0x4f3266]['pairId']=_0x56750b[_0x23519e]['id'],_0x56750b[_0x23519e]['pairId']=_0x56750b[_0x4f3266]['id'];}else _0x56750b[_0x23519e]['item']['startIndex']=_0x23519e,_0x56750b[_0x23519e]['item']['endIndex']=_0x23519e,_0x56750b[_0x23519e]['pairId']=null;}_0x56750b[_0x23519e]['markersStart']||(_0x56750b[_0x23519e]['markersStart']=[],_0x56750b[_0x23519e]['markersEnd']=[]);}}['_markInsertions'](_0x20d4f2,_0x14c9fe){const _0x948605=_0x20d4f2['filter'](_0x4fe720=>!_0x4fe720['isAdded']);for(let _0x263306=0x0;_0x263306<_0x14c9fe['length'];_0x263306++)_0x14c9fe[_0x263306]['isAdded']&&(_0x948605[_0x263306]['isAdded']=_0x14c9fe[_0x263306]['isAdded']);}['_makeModelFromViewString'](_0x9a8e96){const _0x95c833=JSON['parse'](_0x9a8e96),_0x527617=this['editor']['editing']['view']['document'],_0x431af0=new _0x5deb62(_0x527617,_0x95c833['map'](_0xf64b22=>this['_getViewObj'](_0xf64b22)));return this['editor']['data']['toModel'](_0x431af0);}['_getViewObj'](_0x43ac55){const _0x58be87=this['editor']['editing']['view']['document'];if('string'==typeof _0x43ac55)return new _0x88fe6e(_0x58be87,_0x43ac55);{const _0x2cbbf4=_0x43ac55['children']['map'](_0x489ecf=>this['_getViewObj'](_0x489ecf));return new(Z[_0x43ac55['type']]||_0x456d8f)(_0x58be87,_0x43ac55['name'],_0x43ac55['attributes'],_0x2cbbf4);}}['_getDiff'](_0x10f905,_0x2ad4e7=null){const _0x497d44=this['repository']['getRevision'](_0x10f905),_0x5c7852=_0x2ad4e7?this['repository']['getRevision'](_0x2ad4e7):null,_0x1f7288=this['_getRevisionsRange'](_0x497d44,_0x5c7852),_0x15608f=_0x1f7288[_0x1f7288['length']-0x1],_0x5df520=new Map(),_0x250b81={'model':{},'attributes':{},'changes':[]},_0x45aa68=new Set(),_0x3e48e4=new Map();for(let _0x592719=_0x1f7288['length']-0x1;_0x592719>=0x0;_0x592719--){const _0x4fc926=_0x1f7288[_0x592719];for(const _0x4f88d1 of Object['keys'](_0x4fc926['diffData']))if(_0x4fc926['diffData'][_0x4f88d1]['attachChange']){const _0x4ed01f=_0x4fc926['diffData'][_0x4f88d1]['attachChange'];_0x4ed01f['isAttached']?(_0x45aa68['add'](_0x4f88d1),_0x3e48e4['has'](_0x4f88d1)&&_0x3e48e4['get'](_0x4f88d1)['userId']==_0x4ed01f['userId']?_0x3e48e4['delete'](_0x4f88d1):_0x3e48e4['set'](_0x4f88d1,_0x4ed01f)):_0x3e48e4['has'](_0x4f88d1)?(_0x45aa68['delete'](_0x4f88d1),_0x3e48e4['delete'](_0x4f88d1)):(_0x45aa68['add'](_0x4f88d1),_0x3e48e4['set'](_0x4f88d1,_0x4ed01f));}else _0x45aa68['add'](_0x4f88d1);}for(const _0x4e99fb of _0x45aa68){const _0x552428=_0x3e48e4['has'](_0x4e99fb)&&!_0x3e48e4['get'](_0x4e99fb)['isAttached'];let _0xfe6810=_0x552428?_0x1f7288['length']-0x1:0x0;const _0xae2e00=_0x552428?-0x1:0x1;for(;_0x1f7288[_0xfe6810];){const _0x3eb9b=_0x1f7288[_0xfe6810];if(_0x3eb9b['diffData'][_0x4e99fb]){const _0xf13bac=_0x552428?_0x3eb9b['diffData'][_0x4e99fb]['attributesBefore']:_0x3eb9b['diffData'][_0x4e99fb]['attributesAfter'];_0x250b81['attributes'][_0x4e99fb]=_0xf13bac?_0x51a809(_0xf13bac):{};break;}_0xfe6810+=_0xae2e00;}}for(const _0x1e3e0d of _0x1f7288){_0x1e3e0d['model']={};for(const _0x1bbd4b of _0x1e3e0d['authors'])_0x5df520['set'](_0x1bbd4b['id'],_0x1bbd4b);for(const _0x48902a of _0x45aa68){const _0x3d8b5f=_0x1e3e0d['diffData'][_0x48902a]?_0x1e3e0d['diffData'][_0x48902a]['insertions']:'[]',_0x24005f=_0x1e3e0d['diffData'][_0x48902a]?_0x1e3e0d['diffData'][_0x48902a]['deletions']:'[]';_0x1e3e0d['model'][_0x48902a]={'insertions':this['_makeModelFromViewString'](_0x3d8b5f),'deletions':this['_makeModelFromViewString'](_0x24005f)};}}for(const _0x2e4277 of _0x45aa68){let _0x2bbc97=null,_0x462bb3=0x0;const _0x2259fb=new Map(Array['from'](_0x497d44['model'][_0x2e4277]['insertions']['markers'])['filter'](([_0x2e5f8a])=>!_0x2e5f8a['startsWith']('revision:')));let _0x13c439=0x0;for(const _0x449a2c of _0x1f7288){const _0x8a3d79=this['_makeTape'](_0x449a2c['model'][_0x2e4277]['insertions']);_0x449a2c==_0x497d44?(_0x2bbc97=_0x8a3d79,_0x462bb3=_0x2bbc97['length'],_0x2bbc97['forEach'](_0x217a92=>{_0x217a92['id']=_0x13c439++;}),this['_processTape'](_0x2bbc97)):this['_markInsertions'](_0x2bbc97,_0x8a3d79);const _0x47d93d=_0x2bbc97['filter'](_0x3b71ae=>!_0x3b71ae['isAdded'])['map'](_0x3e7123=>_0x3e7123['id']);let _0x140d78=0x0;const _0x5ba9bd=this['_makeTape'](_0x449a2c['model'][_0x2e4277]['deletions']);_0x5ba9bd['forEach'](_0x59563f=>{_0x59563f['isRemoved']?_0x59563f['id']=_0x462bb3++:_0x59563f['id']=_0x47d93d[_0x140d78++];}),this['_processTape'](_0x5ba9bd),this['_setDistance'](_0x2bbc97,'isAdded'),this['_setDistance'](_0x5ba9bd,'isRemoved'),_0x449a2c==_0x497d44&&this['_markMarkers'](_0x2bbc97,_0x2259fb),_0x2bbc97=this['_joinTapes'](_0x2bbc97,_0x5ba9bd),this['_refreshStartEndIndex'](_0x2bbc97),this['_setDistance'](_0x2bbc97,'isRemoved');}_0x2bbc97=_0x2bbc97['filter'](_0x731e2b=>!(_0x731e2b['isAdded']&&_0x731e2b['isRemoved']));const _0x88bc0f=new Map(_0x15608f['model'][_0x2e4277]['deletions']['markers']),_0x3c301a=new Set(_0x2259fb['keys']());for(const _0x3df466 of _0x88bc0f['keys']())_0x3c301a['delete'](_0x3df466);this['_markSuggestions'](_0x2bbc97,_0x3c301a),this['_fixObsoleteTags'](_0x2bbc97),_0x2bbc97=this['_removeMissingPairs'](_0x2bbc97),_0x2bbc97=this['_markMismatchedRemovedTags'](_0x2bbc97),_0x2bbc97=this['_removeUnsupportedChanges'](_0x2bbc97);const {root:_0x17c9e3,changes:_0xd40c0b}=this['_makeModelFromTape'](_0x2bbc97,_0x5df520,_0x2e4277);_0x250b81['model'][_0x2e4277]=_0x17c9e3;const _0x2f57ce=_0x3e48e4['get'](_0x2e4277);if(_0x2f57ce){const _0x5bae1c=_0x5df520['get'](_0x2f57ce['userId']),_0x42b65c=new r({'author':_0x5bae1c,'type':_0x2f57ce['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2e4277});_0xd40c0b['unshift'](_0x42b65c),_0x250b81['attributes'][_0x2e4277]['revisionHistoryAttachChange']=_0x42b65c['id'];}_0x250b81['changes']=_0x250b81['changes']['concat'](_0xd40c0b);}return _0x250b81;}['_markMarkers'](_0x5266eb,_0x3065e4){for(let _0x401433=0x0;_0x401433<_0x5266eb['length'];_0x401433++)for(const [_0x1737f9,_0x20ebdf]of _0x3065e4)_0x20ebdf['start']['isEqual'](_0x5266eb[_0x401433]['previousPosition'])&&_0x5266eb[_0x401433]['markersStart']['push'](_0x1737f9),_0x20ebdf['end']['isEqual'](_0x5266eb[_0x401433]['nextPosition'])&&_0x5266eb[_0x401433]['markersEnd']['push'](_0x1737f9);}['_joinTapes'](_0x3804b1,_0x58c20f){let _0x41d6fa=[],_0x39d8ae=0x0,_0x1e4f97=0x0;for(;_0x39d8ae<_0x3804b1['length']||_0x1e4f97<_0x58c20f['length'];){const _0x1d6756=_0x3804b1[_0x39d8ae]||{},_0x5e4759=_0x58c20f[_0x1e4f97]||{};if(_0x1d6756['id']==_0x5e4759['id'])_0x39d8ae++,_0x1e4f97++,_0x41d6fa['push'](_0x1d6756);else{if(_0x5e4759['isRemoved']&&_0x1d6756['isAdded']){const {commonTape:_0x4cf048,iEnd:_0x487a13,jEnd:_0x56d62a}=this['_threeWayMerge'](_0x3804b1,_0x39d8ae,_0x58c20f,_0x1e4f97);_0x41d6fa=_0x41d6fa['concat'](_0x4cf048),_0x39d8ae=_0x487a13,_0x1e4f97=_0x56d62a;}else _0x5e4759['isRemoved']?(_0x1e4f97++,_0x41d6fa['push'](_0x5e4759)):(_0x39d8ae++,_0x41d6fa['push'](_0x1d6756));}}return _0x41d6fa;}['_markSuggestions'](_0x4571d4,_0x2b99e1){const _0x42313e=[];for(let _0x1d0596=0x0;_0x1d0596<_0x4571d4['length'];_0x1d0596++){for(let _0x3d0cd7=0x0;_0x3d0cd7<_0x4571d4[_0x1d0596]['markersStart']['length'];_0x3d0cd7++){const _0x1e2232=_0x4571d4[_0x1d0596]['markersStart'][_0x3d0cd7];if(!_0x2b99e1['has'](_0x1e2232))continue;const {group:_0x2272e3,type:_0x11aa39,authorId:_0x53b399}=_0x125b47(_0x1e2232);'revision-suggestion'!=_0x2272e3||'insertion'!=_0x11aa39&&'deletion'!=_0x11aa39||(_0x42313e['unshift']({'type':_0x11aa39,'name':_0x1e2232,'userId':_0x53b399}),_0x4571d4[_0x1d0596]['markersStart']['splice'](_0x3d0cd7,0x1),_0x3d0cd7--);}_0x3b4da4(_0x4571d4[_0x1d0596]);for(let _0x19193b=0x0;_0x19193b<_0x4571d4[_0x1d0596]['markersEnd']['length'];_0x19193b++){const _0xf4f479=_0x4571d4[_0x1d0596]['markersEnd'][_0x19193b];if(!_0x2b99e1['has'](_0xf4f479))continue;const {group:_0x1cd6e7,type:_0x382e0c}=_0x125b47(_0xf4f479);if('revision-suggestion'!=_0x1cd6e7||'insertion'!=_0x382e0c&&'deletion'!=_0x382e0c)continue;_0x4571d4[_0x1d0596]['markersEnd']['splice'](_0x19193b,0x1),_0x19193b--;const _0x27d19d=_0x42313e['findIndex'](_0x28b66b=>_0x28b66b['name']==_0xf4f479);_0x27d19d>-0x1&&_0x42313e['splice'](_0x27d19d,0x1);}}function _0x125b47(_0x3a3b9b){const _0x54accd=_0x3a3b9b['split'](':');return{'group':_0x54accd[0x0],'type':_0x54accd[0x1],'subType':_0x54accd['length']>=0x5?_0x54accd[0x2]:null,'id':_0x54accd['length']<0x5?_0x54accd[0x2]:_0x54accd[0x3],'authorId':_0x54accd['length']<0x5?_0x54accd[0x3]:_0x54accd[0x4],'markerCount':0x6==_0x54accd['length']?_0x54accd[0x5]:null};}function _0x3b4da4(_0x4e6de7){for(let _0x481068=0x0;_0x481068<_0x42313e['length'];_0x481068++){if(_0x4e6de7['isAdded']&&'insertion'==_0x42313e[_0x481068]['type'])return _0x4e6de7['isAddSuggestion']=_0x42313e[_0x481068],void delete _0x4e6de7['isAdded'];if(!_0x4e6de7['isAdded']&&!_0x4e6de7['isRemoved']&&'deletion'==_0x42313e[_0x481068]['type'])return void(_0x4e6de7['isRemoveSuggestion']=_0x42313e[_0x481068]);}}}['_setDistance'](_0x433aff,_0x2aef9a){let _0x42227f=0x0,_0x58270c=!0x1;const _0x31d161=new Map();for(const _0x3ca82c of _0x433aff)_0x3ca82c[_0x2aef9a]?_0x58270c&&(_0x42227f++,_0x58270c=!0x1):(_0x42227f++,_0x58270c=!0x0),_0x31d161['set'](_0x3ca82c['id'],_0x42227f);for(let _0x3e8b51=0x0;_0x3e8b51<_0x433aff['length'];_0x3e8b51++){if('isRemoved'==_0x2aef9a&&_0x433aff[_0x3e8b51]['isAdded']||'isAdded'==_0x2aef9a&&_0x433aff[_0x3e8b51]['isRemoved'])continue;if('text'==_0x433aff[_0x3e8b51]['type']){_0x433aff[_0x3e8b51]['distance']=0x0;continue;}const _0x15e932=_0x31d161['get'](_0x433aff[_0x3e8b51]['pairId']),_0x55c61f=_0x31d161['get'](_0x433aff[_0x3e8b51]['id']);_0x433aff[_0x3e8b51]['distance']=_0x15e932-_0x55c61f;}}['_getRevisionsRange'](_0x126ed1,_0x21d6b3,_0x432515=!0x1){const _0x455dee=[];let _0x323afc=this['repository']['getIndex'](_0x126ed1),_0x202f5c=this['repository']['getIndex'](_0x21d6b3);for(-0x1==_0x202f5c&&(_0x202f5c=this['repository']['_revisions']['length'],_0x432515=!0x1);_0x323afc<_0x202f5c;)_0x455dee['push'](this['repository']['getRevision'](_0x323afc)),_0x323afc++;return _0x432515&&_0x455dee['push'](this['repository']['getRevision'](_0x323afc)),_0x455dee;}['_threeWayMerge'](_0x58d496,_0x3ef381,_0x4e2eff,_0xd725){const _0x59728e=this['editor']['model']['schema'];let _0x426c9a=_0x3ef381;for(;_0x58d496[_0x426c9a]&&_0x58d496[_0x426c9a]['isAdded'];)_0x426c9a++;let _0x3957e2=_0xd725;for(;_0x4e2eff[_0x3957e2]&&_0x4e2eff[_0x3957e2]['isRemoved'];)_0x3957e2++;_0x2b75dd(_0x58d496,_0x3ef381,_0x426c9a),_0x2b75dd(_0x4e2eff,_0xd725,_0x3957e2);const _0x1a83f0=_0x4e2eff['slice'](_0xd725,_0x3957e2)['concat'](_0x58d496['slice'](_0x3ef381,_0x426c9a));return _0x1a83f0['sort']((_0x38f4c8,_0x1d3746)=>_0x38f4c8['side']!=_0x1d3746['side']?_0x38f4c8['side']-_0x1d3746['side']:_0x38f4c8['level']!=_0x1d3746['level']?_0x38f4c8['level']-_0x1d3746['level']:_0x38f4c8['distance']!=_0x1d3746['distance']?_0x1d3746['distance']-_0x38f4c8['distance']:!!_0x38f4c8['isAdded']!=!!_0x1d3746['isAdded']?-0x1==_0x38f4c8['side']||0x0==_0x38f4c8['side']?_0x38f4c8['isAdded']?-0x1:0x1:_0x38f4c8['isAdded']?0x1:-0x1:_0x38f4c8['index']-_0x1d3746['index']),{'commonTape':_0x1a83f0,'iEnd':_0x426c9a,'jEnd':_0x3957e2};function _0x2b75dd(_0xa815d0,_0x885556,_0x3664b1){let _0x5b8f14=-0x1,_0x6a92be=Number['POSITIVE_INFINITY'],_0x4afa39=!0x0;for(let _0x261d07=_0x885556;_0x261d07<_0x3664b1;_0x261d07++)if(_0x59728e['isInline'](_0xa815d0[_0x261d07]['item'])||(_0x4afa39=!0x1),_0xa815d0[_0x261d07]['item']['startIndex']<_0x885556&&(_0x5b8f14=_0x261d07),_0xa815d0[_0x261d07]['item']['endIndex']>=_0x3664b1){_0x6a92be=_0x261d07;break;}_0x4afa39&&(_0x5b8f14=_0x3664b1-0x1);for(let _0x206768=_0x885556;_0x206768<_0x3664b1;_0x206768++)_0xa815d0[_0x206768]['side']=_0x206768<=_0x5b8f14?-0x1:_0x206768<_0x6a92be?0x0:0x1,_0xa815d0[_0x206768]['index']=_0x206768;let _0x380276=0x0;for(let _0x13dac3=_0x885556;_0x13dac3<=_0x5b8f14;_0x13dac3++)0x0==_0xa815d0[_0x13dac3]['distance']?_0xa815d0[_0x13dac3]['level']=_0x380276:(_0x380276++,_0xa815d0[_0x13dac3]['level']=_0x380276,_0x380276++);for(let _0x1d2ba1=_0x885556;_0x1d2ba1<_0x3664b1;_0x1d2ba1++)0x0==_0xa815d0[_0x1d2ba1]['side']&&(_0xa815d0[_0x1d2ba1]['level']=_0x380276);_0x380276=0x0;for(let _0x366e9d=_0x3664b1-0x1;_0x366e9d>=_0x6a92be;_0x366e9d--)0x0==_0xa815d0[_0x366e9d]['distance']?_0xa815d0[_0x366e9d]['level']=_0x380276:(_0x380276--,_0xa815d0[_0x366e9d]['level']=_0x380276,_0x380276--);}}['_fixObsoleteTags'](_0x1b2273){const _0x447849=new Map(),_0x4ea1df=this['editor']['model']['schema'];for(let _0x5e8600=0x1;_0x5e8600<_0x1b2273['length'];_0x5e8600++){let _0x47b524,_0x7adc58,_0x41333a;const _0x1b8362=_0x1b2273[_0x5e8600],_0x2f3d79=_0x1b2273[_0x5e8600-0x1];if('text'==_0x1b8362['type'])continue;if(_0x1b8362['type']!=_0x2f3d79['type'])continue;if(!_0x4ea1df['isBlock'](_0x2f3d79['item'])||_0x4ea1df['isLimit'](_0x2f3d79['item']))continue;if(!_0x4ea1df['isBlock'](_0x1b8362['item'])||_0x4ea1df['isLimit'](_0x1b8362['item']))continue;if((_0x1b2273[_0x5e8600]['isAdded']||_0x1b2273[_0x5e8600]['isAddSuggestion'])&&_0x1b2273[_0x5e8600-0x1]['isRemoved'])_0x47b524=_0x1b2273[_0x5e8600],_0x7adc58=_0x1b2273[_0x5e8600-0x1],_0x41333a=_0x5e8600-0x1;else{if(!_0x1b2273[_0x5e8600]['isRemoved']||!_0x1b2273[_0x5e8600-0x1]['isAdded']&&!_0x1b2273[_0x5e8600-0x1]['isAddSuggestion'])continue;_0x47b524=_0x1b2273[_0x5e8600-0x1],_0x7adc58=_0x1b2273[_0x5e8600],_0x41333a=_0x5e8600;}const _0x5e09a7=_0x47b524['level']==_0x7adc58['level'],_0x11f61f=Math['abs'](_0x47b524['level'])<Math['abs'](_0x7adc58['level'])&&0x0==_0x7adc58['distance'];(_0x5e09a7||_0x11f61f)&&(_0x447849['set'](_0x7adc58['id'],_0x47b524['id']),_0x1b2273['splice'](_0x41333a,0x1),_0x5e8600--,_0x47b524['isAdded']=!0x1);}for(let _0x142bde=0x0;_0x142bde<_0x1b2273['length'];_0x142bde++)_0x447849['has'](_0x1b2273[_0x142bde]['pairId'])&&(_0x1b2273[_0x142bde]['pairId']=_0x447849['get'](_0x1b2273[_0x142bde]['pairId']));}['_removeMissingPairs'](_0x515454){const _0x40384e=new Set(_0x515454['map'](_0x3da8f1=>_0x3da8f1['id']));for(let _0x5a9596=0x0;_0x5a9596<_0x515454['length'];_0x5a9596++)_0x40384e['has'](_0x515454[_0x5a9596]['pairId'])||0x0==_0x515454[_0x5a9596]['distance']||(_0x515454[_0x5a9596]['isIncorrect']=!0x0);return _0x515454['filter'](_0x312044=>!_0x312044['isIncorrect']);}['_markMismatchedRemovedTags'](_0x316314){const _0x3454b0=new Set();for(let _0x417944=0x0;_0x417944<_0x316314['length'];_0x417944++){if(_0x3454b0['has'](_0x316314[_0x417944]['id'])&&_0x316314[_0x417944]['isRemoved']&&(_0x316314[_0x417944]['isIncorrect']=!0x0),_0x316314[_0x417944]['isIncorrect'])continue;if(0x0==_0x316314[_0x417944]['distance'])continue;if('elementStart'!=_0x316314[_0x417944]['type'])continue;if(null==_0x316314[_0x417944]['pairId'])continue;let _0x432d04=_0x417944+0x1,_0x5a5270=0x0;for(;_0x316314[_0x432d04]['id']!=_0x316314[_0x417944]['pairId'];)'elementStart'==_0x316314[_0x432d04]['type']?_0x5a5270++:'elementEnd'==_0x316314[_0x432d04]['type']&&_0x5a5270--,_0x432d04++;if(0x0!=_0x5a5270){if(_0x316314[_0x417944]['isRemoved'])_0x316314[_0x417944]['isIncorrect']=!0x0;else{for(;_0x432d04!=_0x417944;)_0x316314[_0x432d04]['isRemoved']&&0x0!=_0x316314[_0x432d04]['distance']&&(_0x316314[_0x432d04]['isIncorrect']=!0x0,_0x3454b0['add'](_0x316314[_0x432d04]['pairId'])),_0x432d04--;}}}return _0x316314['filter'](_0x1cba42=>!_0x1cba42['isIncorrect']);}['_removeUnsupportedChanges'](_0x1aa7a2){const _0xefa48a=this['editor']['model']['schema'];for(let _0x359e1b=0x0;_0x359e1b<_0x1aa7a2['length'];_0x359e1b++){if(!(_0x1aa7a2[_0x359e1b]['isAdded']||_0x1aa7a2[_0x359e1b]['isAddSuggestion']||_0x1aa7a2[_0x359e1b]['isRemoved']||_0x1aa7a2[_0x359e1b]['isRemoveSuggestion']))continue;if(0x0==_0x1aa7a2[_0x359e1b]['distance'])continue;const _0x38f2ad=_0x1aa7a2[_0x359e1b]['item'];_0xefa48a['isBlock'](_0x38f2ad)||_0xefa48a['isLimit'](_0x38f2ad)||(_0x1aa7a2[_0x359e1b]['isAdded']&&delete _0x1aa7a2[_0x359e1b]['isAdded'],_0x1aa7a2[_0x359e1b]['isAddSuggestion']&&delete _0x1aa7a2[_0x359e1b]['isAddSuggestion'],_0x1aa7a2[_0x359e1b]['isRemoveSuggestion']&&delete _0x1aa7a2[_0x359e1b]['isRemoveSuggestion'],_0x1aa7a2[_0x359e1b]['isRemoved']&&(_0x1aa7a2[_0x359e1b]['isIncorrect']=!0x0));}return _0x1aa7a2['filter'](_0x236e69=>!_0x236e69['isIncorrect']);}['_makeModelFromTape'](_0x2c0bb0,_0x34c5db,_0x21c3db){const _0x28d87=new wt(),_0x1c97bc=[],_0x47fefd=new Map(),_0x353fc2=this['editor']['model'],_0x1355d1=_0x353fc2['schema'],_0x471fea=[_0x28d87],_0x4acc60={},_0x45e115={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x11d577=null;const _0x4392cc=[0x0];for(let _0x2e8537=0x0;_0x2e8537<_0x2c0bb0['length'];_0x2e8537++)if('elementStart'===_0x2c0bb0[_0x2e8537]['type']){_0x2c0bb0[_0x2e8537]['previousPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc);const _0x80ef8d=new ft(_0x2c0bb0[_0x2e8537]['item']['name'],_0x2c0bb0[_0x2e8537]['item']['getAttributes']());_0x471fea[0x0]['_appendChild'](_0x80ef8d),_0x4392cc['push'](0x0),_0x471fea['unshift'](_0x80ef8d),_0x2c0bb0[_0x2e8537]['nextPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc);}else'elementEnd'===_0x2c0bb0[_0x2e8537]['type']?(_0x471fea['shift'](),_0x2c0bb0[_0x2e8537]['previousPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc),_0x4392cc['pop'](),_0x4392cc[_0x4392cc['length']-0x1]++,_0x2c0bb0[_0x2e8537]['nextPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc)):(_0x2c0bb0[_0x2e8537]['previousPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc),_0x11d577?_0x11d577['_data']+=_0x2c0bb0[_0x2e8537]['item']['data']:_0x11d577=new _t(_0x2c0bb0[_0x2e8537]['item']['data'],_0x2c0bb0[_0x2e8537]['item']['getAttributes']()),_0x2c0bb0[_0x2e8537+0x1]&&'text'===_0x2c0bb0[_0x2e8537+0x1]['type']&&_0xf7b69d(_0x11d577,_0x2c0bb0[_0x2e8537+0x1]['item'])||(_0x471fea[0x0]['_appendChild'](_0x11d577),_0x11d577=null),_0x4392cc[_0x4392cc['length']-0x1]+=_0x2c0bb0[_0x2e8537]['item']['offsetSize'],_0x2c0bb0[_0x2e8537]['nextPosition']=_0x353fc2['createPositionFromPath'](_0x28d87,_0x4392cc));for(let _0x575410=0x0;_0x575410<_0x2c0bb0['length'];_0x575410++){const _0x225e3d=_0x2c0bb0[_0x575410]['previousPosition'],_0x5abd4e=_0x2c0bb0[_0x575410]['nextPosition'];for(const _0x23a157 of _0x2c0bb0[_0x575410]['markersStart'])_0x47fefd['set'](_0x23a157,{'start':_0x225e3d,'end':null});_0x154bc9('isRemoveSuggestion',_0x575410,_0x225e3d,_0x5abd4e),_0x154bc9('isAddSuggestion',_0x575410,_0x225e3d,_0x5abd4e),_0x154bc9('isRemoved',_0x575410,_0x225e3d,_0x5abd4e),_0x154bc9('isAdded',_0x575410,_0x225e3d,_0x5abd4e);for(const _0x1ff735 of _0x2c0bb0[_0x575410]['markersEnd']){_0x47fefd['get'](_0x1ff735)['end']=_0x5abd4e;}}for(const [_0x2a8099,_0x28b50a]of _0x47fefd){const _0x32c6e4=this['editor']['model']['createRange'](_0x28b50a['start'],_0x28b50a['end']);_0x28d87['markers']['set'](_0x2a8099,_0x32c6e4);}return _0x1c97bc['sort']((_0x20de95,_0x5dd289)=>{const _0x10aec3=_0x28d87['markers']['get']('revision:'+_0x20de95['id']),_0x4b84de=_0x28d87['markers']['get']('revision:'+_0x5dd289['id']);return _0x10aec3['start']['isBefore'](_0x4b84de['start'])?-0x1:_0x10aec3['start']['isAfter'](_0x4b84de['start'])?0x1:_0x10aec3['end']['isBefore'](_0x4b84de['end'])?-0x1:_0x10aec3['end']['isAfter'](_0x4b84de['end'])?0x1:'add'===_0x20de95['type']?-0x1:0x1;}),{'root':_0x28d87,'changes':_0x1c97bc};function _0x154bc9(_0x19be82,_0x1a69ca,_0x576233,_0xa819f4){const _0x8399ff=!!_0x2c0bb0[_0x1a69ca][_0x19be82],_0x205ddb=_0x8399ff?_0x2c0bb0[_0x1a69ca][_0x19be82]['userId']:null,_0x57c099=_0x1a69ca===_0x2c0bb0['length']-0x1,_0x346c24=_0x45e115[_0x19be82][0x0],_0x295dde=_0x1355d1['isObject'](_0x2c0bb0[_0x1a69ca]['item']);!_0x4acc60[_0x19be82]&&_0x8399ff?_0x4acc60[_0x19be82]={'start':_0x576233,'tapeItem':_0x2c0bb0[_0x1a69ca],'userId':_0x205ddb,'type':_0x19be82}:_0x4acc60[_0x19be82]&&!_0x8399ff?(_0x4acc60[_0x19be82]['end']=_0x576233,_0x1c83a2(_0x4acc60[_0x19be82]),_0x4acc60[_0x19be82]=null):_0x4acc60[_0x19be82]&&_0x8399ff&&_0x4acc60[_0x19be82]['userId']!==_0x205ddb&&(_0x4acc60[_0x19be82]['end']=_0x576233,_0x346c24&&_0x346c24['userId']===_0x4acc60[_0x19be82]['userId']||_0x1c83a2(_0x4acc60[_0x19be82]),_0x4acc60[_0x19be82]={'start':_0x576233,'tapeItem':_0x2c0bb0[_0x1a69ca],'userId':_0x205ddb,'type':_0x19be82}),_0x4acc60[_0x19be82]&&_0x295dde&&('elementStart'!==_0x2c0bb0[_0x1a69ca]['type']||_0x346c24&&_0x346c24['userId']===_0x205ddb||_0x45e115[_0x19be82]['unshift']({'userId':_0x205ddb,'object':_0x2c0bb0[_0x1a69ca]['item'],'change':_0x4acc60[_0x19be82]}),'elementEnd'===_0x2c0bb0[_0x1a69ca]['type']&&_0x346c24&&_0x346c24['object']===_0x2c0bb0[_0x1a69ca]['item']&&(_0x45e115[_0x19be82]['shift'](),_0x4acc60[_0x19be82]=_0x346c24['change'])),_0x4acc60[_0x19be82]&&_0x57c099&&(_0x4acc60[_0x19be82]['end']=_0xa819f4,_0x1c83a2(_0x4acc60[_0x19be82]),_0x4acc60[_0x19be82]=null);}function _0x1c83a2({start:_0x3a4146,end:_0x23a009,tapeItem:_0x5ed825,userId:_0x68ebc3,type:_0x4732a8}){const _0x5e0a9d=_0x5ed825['item'],_0x17f2f0=_0x353fc2['schema']['isBlock'](_0x5e0a9d)&&!_0x353fc2['schema']['isLimit'](_0x5e0a9d),_0x5138d3=_0x3a4146['nodeAfter']==_0x23a009['parent']&&_0x23a009['isAtStart'];if(_0x17f2f0&&_0x5138d3)return;const _0x402437=_0x353fc2['createRange'](_0x3a4146,_0x23a009),_0x1283d0=_0x34c5db['get'](_0x68ebc3),_0xac4de4=new r({'author':_0x1283d0,'type':'isAdded'==_0x4732a8||'isAddSuggestion'==_0x4732a8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4732a8||'isRemoveSuggestion'==_0x4732a8},'createdAt':new Date(),'rootName':_0x21c3db});_0x1c97bc['push'](_0xac4de4),_0x28d87['markers']['set']('revision:'+_0xac4de4['id'],_0x402437);}function _0xf7b69d(_0x4ca4c2,_0x39cb09){const _0x9a7960=_0x4ca4c2['getAttributes'](),_0x2bc0a8=_0x39cb09['getAttributes']();for(const _0x47c421 of _0x9a7960){if(_0x47c421[0x1]!==_0x39cb09['getAttribute'](_0x47c421[0x0]))return!0x1;_0x2bc0a8['next']();}return _0x2bc0a8['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x52ba7b=>{const _0x24da5d=_0x52ba7b['markerName']['split'](':')[0x1],_0x8f889=this['_getChangeFromId'](_0x24da5d);if(!_0x8f889)return null;const _0x15e982='add'==_0x8f889['type']?'insertion':'deletion',_0xb21967=['ck-suggestion-marker','ck-suggestion-marker-'+_0x15e982];return _0x8f889['data']['isSuggestion']&&_0xb21967['push']('ck-suggestion-marker-'+_0x15e982+'-new'),this['activeChange']==_0x8f889&&_0xb21967['push']('ck-suggestion-marker--active'),{'classes':_0xb21967,'attributes':{'data-change-id':_0x24da5d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4695c1=>{_0x4695c1['on']('element:pre',(_0x2799d7,_0x23bcaf,_0x13b627)=>{const _0x4a4f32=_0x23bcaf['viewItem']['getChild'](0x0);if(!_0x4a4f32||!_0x4a4f32['is']('element','code'))return;if(!_0x13b627['consumable']['consume'](_0x4a4f32,{'attributes':['vid_start','vid_end']}))return;const _0xda16f7=_0x23bcaf['modelRange']['start']['nodeAfter'];_0x13b627['writer']['setAttribute']('vid_start',_0x4a4f32['getAttribute']('vid_start'),_0xda16f7),_0x13b627['writer']['setAttribute']('vid_end',_0x4a4f32['getAttribute']('vid_end'),_0xda16f7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5123f2=>{_0x5123f2['on']('element',(_0xbe524,_0x528f38,_0x1d0f45)=>{if(!_0x1d0f45['consumable']['consume'](_0x528f38['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x528f38['modelRange']['isCollapsed'])return;const _0x3c70a0=_0x528f38['modelRange']['start']['nodeAfter'];_0x3c70a0['hasAttribute']('vid_start')||_0x3c70a0['hasAttribute']('vid')||(_0x1d0f45['writer']['setAttribute']('vid_start',_0x528f38['viewItem']['getAttribute']('vid_start'),_0x3c70a0),_0x1d0f45['writer']['setAttribute']('vid_end',_0x528f38['viewItem']['getAttribute']('vid_end'),_0x3c70a0));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2ade29=>_0x2ade29['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x466c84,[,_0x4c0674])=>{['vid_start','vid_end','vid']['includes'](_0x4c0674)&&(_0x466c84['return']=!0x0,_0x466c84['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x9da0d6=>{_0x9da0d6['on']('attribute:vid',(_0x31f3d3,_0x6b32ce,_0x2a81d3)=>{if('\x20'!=_0x6b32ce['item']['data']||_0x6b32ce['item']['parent']['maxOffset']>0x1)return;if(!_0x2a81d3['consumable']['consume'](_0x6b32ce['item'],_0x31f3d3['name']))return;const _0x3f0de1=_0x2a81d3['writer'],_0xcfde4f=_0x2a81d3['mapper']['toViewRange'](_0x6b32ce['range']);_0x3f0de1['wrap'](_0xcfde4f,_0x3f0de1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x39228d){const _0x58343f=_0x39228d['plugins']['get']('RevisionViewer');return(_0x201ce9,_0x55ff15,_0x3c1cdc)=>{const _0x43fb75=_0x55ff15['markerName']['split'](':')[0x1],_0x3e13f3=_0x58343f['_getChangeFromId'](_0x43fb75);if(!_0x3e13f3)return null;const _0x21b001='add'==_0x3e13f3['type']?'split':'merge';if(!_0x3c1cdc['consumable']['test'](_0x55ff15['markerRange'],_0x201ce9['name']))return;const _0x385350=_0x55ff15['markerRange']['getWalker'](),_0x468105=_0x55ff15['markerRange']['start'],_0x542769=_0x39228d['model']['schema'];let _0x1ad834=null,_0x107f23=null,_0x21e778=!0x1,_0x5cdd7c=!0x1;for(const _0x196dbe of _0x385350){const _0x31cb6c=_0x196dbe['item'];_0x21e778=_0x21e778||_0x542769['isContent'](_0x31cb6c);const _0x5cd168=_0x3c1cdc['mapper']['toViewElement'](_0x31cb6c);if(_0x5cd168&&_0x5cd168['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x196dbe['type']&&(_0x542769['isBlock'](_0x31cb6c)&&!_0x542769['isLimit'](_0x31cb6c)&&(_0x31cb6c['nextSibling']||_0x468105['isAtEnd']?_0x1ad834&&_0x1ad834['parent']==_0x31cb6c||(_0x1ad834=_0x31cb6c,_0x40223c(_0x196dbe['previousPosition']),_0x5cdd7c=!0x0):_0x107f23=_0x107f23||_0x196dbe['previousPosition']));}function _0x40223c(_0x153919){const _0x12c3ad=_0x3c1cdc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x21b001}),_0x1cb384=_0x3c1cdc['mapper']['toViewPosition'](_0x153919);_0x3e13f3['data']['isSuggestion']&&_0x3c1cdc['writer']['addClass']('ck-suggestion-marker-'+_0x21b001+'-new',_0x12c3ad),_0x58343f['activeChange']==_0x3e13f3&&_0x3c1cdc['writer']['addClass']('ck-suggestion-marker--active',_0x12c3ad),_0x3c1cdc['writer']['insert'](_0x1cb384,_0x12c3ad),_0x3c1cdc['mapper']['bindElementToMarker'](_0x12c3ad,_0x55ff15['markerName']);}_0x21e778||_0x5cdd7c||!_0x107f23||_0x40223c(_0x107f23);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x8fb3b6,_0xd4bd4a,_0x254369)=>{const _0x32a784=_0x254369['mapper']['markerNameToElements'](_0xd4bd4a['markerName']);if(_0x32a784){for(const _0x347ee4 of _0x32a784)(_0x347ee4['hasClass']('ck-suggestion-marker-split')||_0x347ee4['hasClass']('ck-suggestion-marker-merge'))&&(_0x254369['mapper']['unbindElementFromMarkerName'](_0x347ee4,_0xd4bd4a['markerName']),_0x254369['writer']['remove'](_0x347ee4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x35054c,_0x398727,_0x4e5b5e)=>{const _0x442a98=_0x398727['markerName']['split'](':')[0x1],_0x144925=this['_getChangeFromId'](_0x442a98);if(!_0x144925)return null;const _0x9c8395='add'==_0x144925['type']?'split':'merge';if(_0x4e5b5e['consumable']['test'](_0x398727['markerRange'],_0x35054c['name']))for(const _0x394b91 of _0x398727['markerRange']['getItems']()){if(!_0x394b91['is']('element','softBreak'))continue;const _0x422e74=_0x4e5b5e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x9c8395}),_0x6574b5=_0x4e5b5e['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x394b91));_0x144925['data']['isSuggestion']&&_0x4e5b5e['writer']['addClass']('ck-suggestion-marker-'+_0x9c8395+'-new',_0x422e74),this['activeChange']==_0x144925&&_0x4e5b5e['writer']['addClass']('ck-suggestion-marker--active',_0x422e74),_0x4e5b5e['writer']['insert'](_0x6574b5,_0x422e74),_0x4e5b5e['mapper']['bindElementToMarker'](_0x422e74,_0x398727['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0xaae4d3=>{for(const _0x57eb44 of this['editor']['model']['document']['getRootNames']()){const _0x4c44c7=this['editor']['model']['document']['getRoot'](_0x57eb44),_0x2f94bf=this['editor']['editing']['view']['document']['getRoot'](_0x57eb44);if(_0x2f94bf){const _0x45c16d=_0x4c44c7['getAttribute']('revisionHistoryAttachChange');if(_0xaae4d3['removeAttribute']('data-change-id',_0x2f94bf),_0xaae4d3['removeClass']('ck-revision-history-root-add',_0x2f94bf),_0xaae4d3['removeClass']('ck-revision-history-root-remove',_0x2f94bf),_0xaae4d3['removeClass']('ck-revision-history-root--active',_0x2f94bf),_0x45c16d){const _0x2e3e72=this['_getChangeFromId'](_0x45c16d);if(!_0x2e3e72)return null;_0xaae4d3['setAttribute']('data-change-id',_0x45c16d,_0x2f94bf),_0xaae4d3['addClass']('ck-revision-history-root-'+_0x2e3e72['type'],_0x2f94bf),this['activeChange']==_0x2e3e72&&_0xaae4d3['addClass']('ck-revision-history-root--active',_0x2f94bf);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x749a63=>'revision-comment:'+_0x749a63,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x434dad=>'revision-suggestion:'+_0x434dad,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x848ffd=>({'name':'suggestion:'+_0x848ffd,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x206ab4=>{const _0x4a3f9f=_0x206ab4['markerName']['split'](':')[0x1];return'insertion'!=_0x4a3f9f&&'deletion'!=_0x4a3f9f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4a3f9f]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x54c1d9,_0x264649,_0x3a6e5e)=>{const _0x2ddfe7=_0x3a6e5e['mapper']['markerNameToElements'](_0x264649['markerName']);if(_0x2ddfe7){for(const _0x17fcbd of _0x2ddfe7)_0x17fcbd['is']('uiElement')&&(_0x3a6e5e['mapper']['unbindElementFromMarkerName'](_0x17fcbd,_0x264649['markerName']),_0x3a6e5e['writer']['remove'](_0x17fcbd));}},{'priority':'high'});}['_getChangeFromId'](_0x3ad0b9){return this['_changeIdToChange']['get'](_0x3ad0b9);}['_getViewForChange'](_0x5c08c5){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5c08c5),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1bfa5c,_0xfe5eac,_0x245112,_0x131c7b)=>{_0x131c7b&&this['_balloon']['remove'](_0x131c7b),_0x245112&&(this['_balloon']['add']({'view':_0x245112,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x53f3c4=this['editor']['editing'],_0x47f225=this['_getChangeFromId'](_0x245112['changeId']);let _0x1c61e9;if(_0x47f225['data']['isOnRoot']){const _0x55ac9a=_0x53f3c4['view']['getDomRoot'](_0x47f225['rootName']);_0x1c61e9=Array['from'](_0x55ac9a['getClientRects']());}else{const _0x545f1a=this['editor']['model']['markers']['get']('revision:'+_0x245112['changeId']);_0x1c61e9=Array['from'](_0x53f3c4['mapper']['markerNameToElements'](_0x545f1a['name']))['map'](_0x42abc5=>_0x53f3c4['view']['domConverter']['mapViewToDom'](_0x42abc5))['map'](_0x2a8f36=>Array['from'](_0x2a8f36['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1c61e9[0x0];return _0x1c61e9['find'](_0x519623=>_0x519623['top']-0x3<=this['_activeViewTarget']['y']&&_0x519623['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x519623['left']-0x3<=this['_activeViewTarget']['x']&&_0x519623['right']+0x3>=this['_activeViewTarget']['x'])||_0x1c61e9[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1c1f75,_0x2084a4,_0x59efff,_0xd1c95)=>{this['activeView']=_0x59efff?this['_getViewForChange'](_0x59efff):null,this['editor']['model']['change'](()=>{const _0x21db8c=this['editor']['editing'];_0xd1c95&&(_0xd1c95['data']['isOnRoot']?_0x21db8c['view']['change'](_0xf19d38=>{_0xf19d38['removeClass']('ck-revision-history-root--active',_0x21db8c['view']['document']['getRoot'](_0xd1c95['rootName']));}):_0x21db8c['reconvertMarker']('revision:'+_0xd1c95['id'])),_0x59efff&&(_0x59efff['data']['isOnRoot']?_0x21db8c['view']['change'](_0x4077cc=>{_0x4077cc['addClass']('ck-revision-history-root--active',_0x21db8c['view']['document']['getRoot'](_0x59efff['rootName']));}):_0x21db8c['reconvertMarker']('revision:'+_0x59efff['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x592515,_0x2981f1)=>{if(this['activeChange'])return;const _0x4e088b=this['_findChangeIdFromDomTarget'](_0x2981f1['target']),_0x4b2c45=this['_changeIdToChange']['get'](_0x4e088b);_0x4b2c45?(this['_activeViewTarget']={'x':_0x2981f1['domEvent']['x'],'y':_0x2981f1['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4b2c45)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x19f832,_0x9ecc77)=>{const _0x1dd925=this['_findChangeIdFromDomTarget'](_0x9ecc77['target']),_0x17bd2f=this['_changeIdToChange']['get'](_0x1dd925);_0x17bd2f?(this['_activeViewTarget']={'x':_0x9ecc77['domEvent']['x'],'y':_0x9ecc77['domEvent']['y']},_0x17bd2f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x17bd2f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1ce2ec){do{const _0x56f168=_0x1ce2ec['getAttribute']('data-change-id');if(_0x56f168)return _0x56f168;_0x1ce2ec=_0x1ce2ec['parent'];}while(_0x1ce2ec);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3cd5cb=>{for(const _0x144290 of this['editor']['model']['markers'])_0x3cd5cb['removeMarker'](_0x144290);});}}function tt(_0x5702cb,_0x3d3446){return(_0x51189b,_0x4c4c3b,_0x56495a)=>{if(!_0x56495a['consumable']['test'](_0x4c4c3b['markerRange'],_0x51189b['name']))return;const _0x2ed703=_0x4c4c3b['markerRange']['getWalker'](),_0x5c13aa=_0x4c4c3b['markerRange']['start'],_0x3ecb12=_0x5702cb['model']['schema'];let _0x49b2f2=null,_0x4b5a41=null,_0xc340ce=!0x1,_0x7d9845=!0x1;for(const _0x8d0595 of _0x2ed703){const _0x6c798e=_0x8d0595['item'];_0xc340ce=_0xc340ce||_0x3ecb12['isContent'](_0x6c798e);const _0x4e480=_0x56495a['mapper']['toViewElement'](_0x6c798e);if(_0x4e480&&_0x4e480['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x8d0595['type']&&(_0x3ecb12['isBlock'](_0x6c798e)&&!_0x3ecb12['isLimit'](_0x6c798e)&&(_0x6c798e['nextSibling']||_0x5c13aa['isAtEnd']?_0x49b2f2&&_0x49b2f2['parent']==_0x6c798e||(_0x49b2f2=_0x6c798e,_0x152793(_0x8d0595['previousPosition']),_0x7d9845=!0x0):_0x4b5a41=_0x4b5a41||_0x8d0595['previousPosition']));}function _0x152793(_0x32f508){const _0x17d90a=_0x56495a['mapper']['toViewPosition'](_0x32f508),_0x5dfcd1=_0x56495a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3d3446});_0x56495a['writer']['insert'](_0x17d90a,_0x5dfcd1),_0x56495a['mapper']['bindElementToMarker'](_0x5dfcd1,_0x4c4c3b['markerName']);}_0xc340ce||_0x7d9845||!_0x4b5a41||_0x152793(_0x4b5a41);};}class yt extends _0x1b5e9a{constructor(_0x2fdd19){super(_0x2fdd19);const _0x4b5e50=_0x2fdd19['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4b5e50,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b5e50,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4dfa83=this['editor'],_0x3cda01=_0x4dfa83['plugins']['get'](d),_0x10630e=_0x3cda01['isReady']?_0x3cda01['diff']['newRevisionId']:null;_0x4dfa83['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x10630e);}['refresh'](){const {isReady:_0x121113,isEnabled:_0xc3f4db,repository:_0x1bf1b7,diff:_0x3eae83}=this['editor']['plugins']['get'](d),_0x18ba0d=_0x3eae83&&_0x1bf1b7['getLaterVisibleRevision'](_0x3eae83['newRevisionId']);this['isEnabled']=_0x121113&&_0xc3f4db&&Boolean(_0x18ba0d);}}class bt extends _0x1b5e9a{['_step'];constructor(_0x2ae913,{direction:_0xeac351}){super(_0x2ae913);const _0x3d9e9d=_0x2ae913['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0xeac351?0x1:-0x1,this['listenTo'](_0x3d9e9d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3d9e9d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3d9e9d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1f36fa=this['editor'],_0x73a55b=_0x1f36fa['plugins']['get'](d),{isNavigationMode:_0x45a5ed,currentChangeNumber:_0x589684}=_0x73a55b;let _0x3aa92f;if(_0x73a55b['activeChange']=_0x45a5ed?_0x73a55b['diff']['changes']['get'](_0x589684+this['_step']):_0x73a55b['diff']['changes']['first'],_0x73a55b['activeChange']['data']['isOnRoot'])_0x3aa92f=_0x1f36fa['editing']['view']['getDomRoot'](_0x73a55b['activeChange']['rootName']);else{const _0x51f66c=_0x1f36fa['model']['markers']['get']('revision:'+_0x73a55b['activeChange']['id']);_0x3aa92f=_0xf618ad(_0x1f36fa['editing'],_0x51f66c);}_0x2b4ea3({'target':_0x3aa92f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3ca3e0,currentChangeNumber:_0x111fb3,numberOfChanges:_0x2d21bc,isReady:_0x58b186,isEnabled:_0x2b8af8}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2b8af8&&_0x58b186&&_0x2d21bc)&&(!_0x3ca3e0||(0x1===this['_step']?_0x111fb3<_0x2d21bc-0x1:_0x111fb3>0x0));}}class di extends _0x1f9e12{constructor(_0x50e160){super(_0x50e160);const _0x4690c8=this['bindTemplate'],_0x5edf8e=new _0x4f565d(_0x50e160),_0x30a0fe=new _0x4f565d(_0x50e160);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',(_0x41a436,_0x5d20cd)=>_0x41a436&&_0x5d20cd>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3157ed,_0x29c099,_0xac4a83,_0x37acae)=>{if(!_0x3157ed)return R(_0x50e160,'Loading...');if(!_0xac4a83)return R(_0x50e160,'No\x20changes');const _0x4b0a13=R(_0x50e160,'NUMBER_OF_CHANGES',_0xac4a83);return _0x37acae?R(_0x50e160,'X_OF_Y_CHANGES',[_0x29c099+0x1,_0xac4a83]):_0x4b0a13;}),_0x5edf8e['set']({'label':R(_0x50e160,'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'}),_0x30a0fe['set']({'label':R(_0x50e160,'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'}),_0x5edf8e['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x30a0fe['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5edf8e['on']('execute',()=>this['fire']('execute','backward')),_0x30a0fe['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',_0x4690c8['if']('_isStatusLabelVisible','ck-hidden',_0x302edd=>!_0x302edd)]},'children':[{'text':_0x4690c8['to']('isNavigationMode',_0x3d081d=>_0x3d081d?R(_0x50e160,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x50e160,'Total')+':\x20')}]},{'text':_0x4690c8['to']('_statusText')}]},new _0x319f4f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5edf8e,_0x30a0fe]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x402cd2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x41383f=this['editor']['editing']['view'];_0x41383f['change'](_0x12e37c=>{for(const _0x53d671 of _0x41383f['document']['roots'])_0x12e37c['addClass'](ce,_0x53d671);});}['hide'](){const _0x533c55=this['editor']['editing']['view'];_0x533c55['change'](_0x2bd7cb=>{for(const _0x9150 of _0x533c55['document']['roots'])_0x2bd7cb['removeClass'](ce,_0x9150);});}}class m extends _0x402cd2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x2abe12=this['editor'],_0x24c387=_0x2abe12['plugins']['get'](d),_0x424e59=_0x2abe12['plugins']['get'](ae);_0x2abe12['ui']['componentFactory']['add']('exitToEditing',_0x1ab7d6=>{const _0x266d35=new _0x4f565d(_0x1ab7d6);return _0x266d35['set']({'label':R(_0x1ab7d6,'Back\x20to\x20editing'),'icon':_0x9f8c6d['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x266d35,'execute',()=>{_0x2abe12['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x266d35;}),_0x2abe12['ui']['componentFactory']['add']('restoreRevision',_0x3ec76a=>{const _0x57aa6c=new _0x4f565d(_0x3ec76a);return _0x57aa6c['set']({'label':R(_0x3ec76a,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x57aa6c['bind']('isEnabled')['to'](_0x2abe12['commands']['get']('restoreRevision')),this['listenTo'](_0x57aa6c,'execute',()=>_0x2abe12['execute']('restoreRevision')),_0x57aa6c;}),_0x2abe12['ui']['componentFactory']['add']('changesNavigation',_0x8dd116=>{const _0x4365ab=new di(_0x8dd116),_0x2d4bca=_0x2abe12['commands']['get']('showPreviousChange'),_0x5a6acc=_0x2abe12['commands']['get']('showNextChange');return _0x4365ab['bind']('isBackwardNavigationEnabled')['to'](_0x2d4bca,'isEnabled'),_0x4365ab['bind']('isForwardNavigationEnabled')['to'](_0x5a6acc,'isEnabled'),_0x4365ab['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x24c387),this['listenTo'](_0x4365ab,'execute',(_0x148ca8,_0x4a0246)=>{_0x2abe12['execute']('forward'===_0x4a0246?'showNextChange':'showPreviousChange');}),_0x4365ab;}),_0x424e59['show'](),_0x24c387['on']('change:isReady',(_0xfee43e,_0x39627a,_0x26a43f)=>{_0x26a43f?_0x424e59['hide']():_0x424e59['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x391fb8,_0xa3ee43){super(_0x391fb8,_0xa3ee43);const _0x3d0147=this['bindTemplate'];this['set']({'label':R(_0x391fb8,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x391fb8,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3d0147['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x39a311=this['fieldView']['element'];this['_tooltipString']=_0x39a311['scrollWidth']>_0x39a311['clientWidth']&&_0x39a311['value']||'';}}class ti extends _0x1f9e12{constructor(_0x5751f4,_0x28dc62,_0x47b0ec){super(_0x5751f4);const _0x3e8ac7=new _0x2a2fa9();_0x3e8ac7['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 _0x17fdd6=['ck','ck-revision-history-sidebar__revision-author'];_0x47b0ec&&_0x17fdd6['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3ef8e6=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x5751f4,_0x47b0ec?'Revision\x20creator':'Revision\x20author')},'children':[_0x3e8ac7,_0x28dc62['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x17fdd6},'children':_0x3ef8e6});}}function ni(_0x1f7def,_0x4fe17d){const _0x253372=_0x1f7def['bindTemplate'],_0x2a01a4=_0x1f7def['locale'],_0x2a1954=_0x2c9d20(_0x2a01a4);_0x2a1954['panelPosition']='sw';const _0x45df75=function(_0x1b2f65,_0x5afb64){const _0x3496c9=function(_0x539f6e,_0x593cf8){const _0x452f47=_0x539f6e['locale'],_0x4af5e6={'Compare\x20against\x20selected':R(_0x452f47,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x452f47,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x452f47,'Restore\x20this\x20revision')};return _0x593cf8['map'](_0x474c94=>{const _0x21ad1f=_0x4af5e6[_0x474c94['name']];return _0x21ad1f&&_0x21ad1f!==_0x474c94['name']&&(_0x474c94['name']=_0x21ad1f),_0x474c94;});}(_0x1b2f65,_0x5afb64),_0x1f64b0=new _0x1a01dd();for(const _0x33ffd1 of _0x3496c9){const _0x334235={'type':'button','model':new to({'label':_0x33ffd1['name'],'class':_0x33ffd1['class'],'withText':!0x0,'role':'menuitem','_action':_0x33ffd1['action']})};_0x334235['model']['bind']('isEnabled')['to'](_0x1b2f65,'isActionsDropdownOpen',_0x2ee028=>'function'!=typeof _0x33ffd1['isEnabled']||(!_0x2ee028||_0x33ffd1['isEnabled'](_0x1b2f65))),_0x1f64b0['add'](_0x334235);}return _0x1f64b0;}(_0x1f7def,_0x4fe17d);return _0x1f7def['bind']('isActionsDropdownOpen')['to'](_0x2a1954,'isOpen'),_0x2a1954['buttonView']['set']({'label':R(_0x2a01a4,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x9f8c6d['threeVerticalDots']}),_0x2a1954['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x253372['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x253372['to'](_0x1a7dbe=>_0x1a7dbe['stopPropagation']())}}),_0x2a1954['on']('execute',_0x34d1b1=>{_0x1f7def['isReady']&&'function'==typeof _0x34d1b1['source']['_action']&&_0x34d1b1['source']['_action'](_0x1f7def);}),_0x3f963e(_0x2a1954,_0x45df75,{'role':'menu'}),_0x2a1954['listenTo'](_0x1f7def,'change:isActionsDropdownOpen',(_0xe9108e,_0x53ca0c,_0xaa817f)=>{if(_0xaa817f)for(const _0x3e7075 of _0x2a1954['listView']['items']){const _0xd7cd98=_0x3e7075['children']['first'],_0x46b7bf=_0x4fe17d['find'](_0x531204=>_0x531204['action']===_0xd7cd98['_action'])['isVisible'];_0x3e7075['isVisible']=void 0x0===_0x46b7bf||_0x46b7bf(_0x1f7def);}}),_0x2a1954;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x23ae36(_0x1f9e12){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x25ab28,_0xe48cdf,_0x20354f,_0x1f2e09){super(_0x25ab28);const _0x366606=this['bindTemplate'],_0x31c927=function(_0x3c3d19,_0x57fc9b){const _0x3617db=Array['from'](_0x57fc9b['authors'])['filter'](_0x3b99ae=>_0x3b99ae!=_0x57fc9b['creator']);return _0x57fc9b['creator']&&_0x3617db['unshift'](_0x57fc9b['creator']),_0x3617db['map'](_0x4d8785=>new ti(_0x3c3d19,_0x4d8785,_0x4d8785==_0x57fc9b['creator']));}(_0x25ab28,_0xe48cdf);this['id']=_0xe48cdf['id'],this['_revision']=_0xe48cdf,this['_requireRevisionName']=_0x1f2e09,this['bind']('name','createdAt')['to'](_0xe48cdf),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3369a3=>{return _0x2bca18=_0x25ab28['uiLanguage'],(_0x1ebe00=_0x3369a3)['toLocaleDateString'](_0x2bca18,{'month':'long','day':'numeric'})+',\x20'+_0x1ebe00['toLocaleTimeString'](_0x2bca18,{'hour':'numeric','minute':'numeric'});var _0x2bca18,_0x1ebe00;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x25ab28,_0x2186b1),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x11c0e8=>_0x11c0e8||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xaae2b7,_0x90eb34)=>_0xaae2b7&&_0x90eb34),this['revisionActionsView']=_0x20354f&&_0x20354f['length']?ni(this,_0x20354f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x366606['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x366606['if']('isEnabled','ck-disabled',_0x54fd64=>!_0x54fd64),_0x366606['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x366606['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x366606['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':_0x366606['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':_0x31c927}]},this['revisionActionsView']],'on':{'click':_0x366606['to'](_0x349f9a=>{_0x349f9a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x422c6a=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x422c6a,'change',()=>{this['_requireRevisionName']&&!_0x422c6a['value']||this['fire']('setName',{'id':this['id'],'name':_0x422c6a['value']}),_0x422c6a['value']||(_0x422c6a['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(_0x2a5891,_0x59780d){const _0x5e0d39=_0x39bdfe['fromJSDate'](_0x2a5891)['setLocale'](_0x59780d),_0x5ab66f=_0x39bdfe['local'](),_0x38ff9b=_0x5ab66f['minus']({'days':0x1})['startOf']('day');let _0x1be6cb,_0x33cd7c;return _0x5e0d39['hasSame'](_0x5ab66f,'day')?(_0x1be6cb=_0x5e0d39['startOf']('day')['toJSDate'](),_0x33cd7c=_0x5e0d39['toRelativeCalendar']()):_0x5e0d39['hasSame'](_0x38ff9b,'day')?(_0x1be6cb=_0x38ff9b['toJSDate'](),_0x33cd7c=_0x5e0d39['toRelativeCalendar']()):_0x5e0d39['hasSame'](_0x5ab66f,'week')?(_0x1be6cb=_0x5e0d39['startOf']('week')['toJSDate'](),_0x33cd7c=_0x5e0d39['weekdayLong']||''):_0x5e0d39['hasSame'](_0x5ab66f,'year')?(_0x1be6cb=_0x5e0d39['startOf']('month')['toJSDate'](),_0x33cd7c=_0x5e0d39['monthLong']||''):(_0x1be6cb=_0x5e0d39['startOf']('year')['toJSDate'](),_0x33cd7c=String(_0x5e0d39['year'])),{'startDate':_0x1be6cb,'localizedPeriodName':_0x33cd7c};}class vi extends _0x1f9e12{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x143d68,_0x557172,_0x37466f,_0x2dcc42){super(_0x143d68);const _0xd1c7c1=mi(_0x557172,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x557172,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x37466f,this['_requireRevisionName']=_0x2dcc42,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':_0xd1c7c1}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3a8117){const _0x4ca534=new ai(this['locale'],_0x3a8117,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4ca534);}['removeRevision'](_0x124850){const _0x43853a=this['revisionViews']['find'](_0x5f566a=>_0x5f566a['id']===_0x124850['id']);this['revisionViews']['remove'](_0x43853a);}}class as extends _0x1f9e12{constructor(_0x22f162){super(_0x22f162);const _0x4e82d6=new _0x2a2fa9();_0x4e82d6['content']=_0x9f8c6d['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4e82d6,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x22f162,'Revision\x20history')]}]});}}class li extends _0x1f9e12{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d92f6,_0x2cf0f1,_0x54c7c9,_0x58121b){super(_0x3d92f6);const _0x1c61ab=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2cf0f1,this['_revisionActions']=_0x54c7c9,this['_requireRevisionName']=_0x58121b,this['on']('select',(_0x3d4d85,_0x4a48c9)=>{this['fire']('revisionSelected',_0x4a48c9);}),this['on']('setName',(_0x1021de,_0x5dccf6)=>{this['fire']('revisionSetName',_0x5dccf6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3d92f6),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x1c61ab['if']('isEnabled','ck-disabled',_0x3ff662=>!_0x3ff662)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2f26d0 of this['_revisions'])this['_addRevision'](_0x2f26d0);this['_revisions']['on']('add',(_0xdc2767,_0x21d95e)=>{this['_addRevision'](_0x21d95e);}),this['_revisions']['on']('remove',(_0x48cd53,_0x484d8a)=>{this['_removeRevision'](_0x484d8a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x98808b=>_0x98808b['revisionViews']['map'](_0xa04c2=>_0xa04c2))['flat']();}['selectRevision'](_0x50dddf){for(const _0x473213 of this['revisionViews'])_0x50dddf&&_0x50dddf['id']===_0x473213['id']?_0x473213['select']():_0x473213['deselect']();}['highlightRevisions'](_0x421d5b){for(const _0x499e8a of this['revisionViews'])_0x421d5b['some'](({id:_0x5b769a})=>_0x5b769a===_0x499e8a['id'])?_0x499e8a['highlight']():_0x499e8a['unhighlight']();}['_addRevision'](_0x324ab9){const _0x29038f=mi(_0x324ab9['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x428caa=this['timePeriodViews']['get'](0x0);_0x428caa&&_0x428caa['startDate']['getTime']()===_0x29038f['getTime']()||(_0x428caa=new vi(this['locale'],_0x29038f,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x428caa)),_0x428caa['addRevision'](_0x324ab9);}['_removeRevision'](_0x2f321a){const _0x139327=mi(_0x2f321a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x139327)['removeRevision'](_0x2f321a);}['_getTimePeriodViewByStartDate'](_0xecba2a){return this['timePeriodViews']['find'](_0x4d8950=>_0x4d8950['startDate']['getTime']()===_0xecba2a['getTime']());}}class g extends _0x402cd2{['_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(_0x208ad1){super(_0x208ad1),this['_revisionViewer']=_0x208ad1['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3913f8=this['_revisionsRepository']['_revisions'],_0x13e671=this['_createRevisionActions'](),_0x20f84a=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x3913f8,_0x13e671,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',(_0x1c7287,_0x1d078c)=>{_0x1d078c['revisionViews']['on']('add',(_0x3809cc,_0x190b40)=>{_0x190b40['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)),_0x20f84a['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x31d247=this['_revisionsRepository']['getRevision'](0x0);if(_0x31d247){const _0x54b653=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x31d247['id']);this['_revisionViewer']['compare'](_0x31d247,_0x54b653);}}['_handleRevisionSelected'](_0x20ada4,_0xb61620){const _0x5f1f1a=this['_revisionsRepository']['getRevision'](_0xb61620['id']),_0x2ed326=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5f1f1a['id']);this['_revisionViewer']['compare'](_0x5f1f1a,_0x2ed326);}['_handleRevisionSetName'](_0x1791dd,_0x264c77){this['_revisionsRepository']['getRevision'](_0x264c77['id'])['setName'](_0x264c77['name']);}['_handleDiffChange'](_0xc7354f,_0x4a1d73,_0x4c7d57){const _0x2be54b=this['_revisionsRepository']['getRevisionsInDiff'](_0x4c7d57);_0x2be54b['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2be54b),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2be54b[0x0]));}['_createRevisionActions'](){const _0x248e03=this['editor'],_0x195b17=g['availableRevisionActions'],_0x4cc222=_0x248e03['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x4cc222['length'])return _0x4cc222['map'](_0x370d13=>{const _0x5dd20b='string'==typeof _0x370d13?Object['assign']({},_0x195b17[_0x370d13]):_0x370d13;return _0x5dd20b['action']=_0x5dd20b['action']['bind'](this,_0x248e03),_0x5dd20b['isVisible']&&(_0x5dd20b['isVisible']=_0x5dd20b['isVisible']['bind'](this,_0x248e03)),_0x5dd20b;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1d0cd2},_0x56011d)=>{const _0x3fdeff=_0x1d0cd2['get'](d),_0x534251=_0x3fdeff['repository'];let _0x34ff39=_0x3fdeff['diff']['newRevisionId'],_0x33d6f4=_0x56011d['id'];_0x534251['getIndex'](_0x34ff39)>_0x534251['getIndex'](_0x33d6f4)&&([_0x34ff39,_0x33d6f4]=[_0x33d6f4,_0x34ff39]),_0x3fdeff['compare'](_0x34ff39,_0x33d6f4);},'isVisible':({plugins:_0x5d6e19},_0x5754bb)=>{const _0x4d8996=_0x5d6e19['get'](d);return!(_0x4d8996['repository']['getRevisionsInDiff'](_0x4d8996['diff'])['length']>0x2)&&!_0x5754bb['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x568735,{id:_0x492067})=>{_0x568735['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x492067);},'isVisible':({plugins:_0x20d49a},_0x3f1320)=>!!_0x20d49a['get'](d)['repository']['getLaterVisibleRevision'](_0x3f1320['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x57a374},{id:_0x22a02a,revisionNameView:_0x5643f0})=>{const _0x149c17=_0x57a374['get'](d),_0x450afc=_0x149c17['repository']['getEarlierVisibleRevision'](_0x22a02a);_0x149c17['compare'](_0x22a02a,_0x450afc),_0x5643f0['focus'](),_0x5643f0['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5e8d9e,_0x21d8d0){super(_0x5e8d9e),this['_view']=_0x21d8d0,this['_toolbarConfig']=ht(_0x5e8d9e['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x2d03e7){const _0x596c16=this['editor'],_0xd25ec4=this['view'],_0x2d5b09=_0x596c16['editing']['view'],_0x2ee3b5=_0xd25ec4['editable'],_0x4f02e6=_0x2d5b09['document']['getRoot']();_0x2ee3b5['name']=_0x4f02e6['rootName'],_0xd25ec4['render']();const _0x1c5c2e=_0x2ee3b5['element'];this['setEditableElement'](_0x2ee3b5['name'],_0x1c5c2e),_0xd25ec4['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2d5b09['attachDomRoot'](_0x1c5c2e),this['_elementReplacer']['replace'](_0x2d03e7,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x395a7b=this['view'],_0x3ea255=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3ea255['detachDomRoot'](_0x395a7b['editable']['name']),_0x395a7b['destroy']();}['_initToolbar'](){const _0x153da0=this['view'];_0x153da0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x153da0['stickyPanel']['limiterElement']=_0x153da0['element'],_0x153da0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0xc492f1})=>_0xc492f1),_0x153da0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x153da0['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3df475,_0x1066c4,_0x3a63f5={}){super(_0x3df475),this['stickyPanel']=new lt(_0x3df475),this['toolbar']=new nt(_0x3df475,{'shouldGroupWhenFull':_0x3a63f5['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x3df475,_0x1066c4);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2275a8,_0x1e1d8a){super(_0x1e1d8a),this['sourceElement']=_0x2275a8,this['model']['document']['createRoot']();const _0x585b93=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x585b93);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xa6a62,_0x1181e3){const _0x43503e=new this(_0xa6a62,_0x1181e3);return await _0x43503e['initPlugins'](),await _0x43503e['ui']['init'](_0xa6a62),await _0x43503e['data']['init'](_0x43503e['config']['get']('initialData')||''),_0x43503e['fire']('ready'),_0x43503e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x27bfb5{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x11d80b){function _0x4211c1(_0x12e4dd){return _0x12e4dd['map'](_0x467dc3=>String['fromCharCode'](_0x467dc3))['join']('');}super(_0x11d80b),this['result']='end',_0x11d80b[_0x4211c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4211c1([0x76,0x69,0x65,0x77])][_0x4211c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4211c1([0x61,0x75,0x74,0x6f]),_0x11d80b[_0x4211c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4211c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4211c1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4211c1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4211c1([0x6f,0x6b])});}}class H extends _0x27bfb5{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x26644a){if(super(_0x26644a),!this['editor']['config']['get']('revisionHistory'))throw new _0x53c33b('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5f189a=>this['_showRevisionViewer']({..._0x5f189a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3869c4=>this['_closeRevisionViewer'](_0x3869c4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2b801b=>this['_restoreRevision'](_0x2b801b)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x351c5c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x351c5c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x263ac3){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x263ac3);}['getRevision'](_0x6b2169){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x6b2169);}['getRevisions'](_0x4b4e78){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4b4e78||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x104fb8=this['editor'],_0x5dede2=_0x25769a(_0x104fb8,p),_0x3aa9b7=_0x104fb8['plugins']['get']('RevisionTracker'),_0x1bb9c6=_0x104fb8['plugins']['get']('Users')['users'];return _0x5dede2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5dede2['lazyRoots'],(_0x5dede2['plugins']['push'](k,d,m,class extends _0x27bfb5{static get['requires'](){return[d,'Users'];}['init'](){const _0x40a6a9=this['editor']['plugins']['get']('Users');for(const _0x324f77 of _0x1bb9c6)_0x324f77['isAnonymous']||_0x40a6a9['getUser'](_0x324f77['id'])||_0x40a6a9['addUser'](_0x324f77);const _0x3ca9d4=_0x3aa9b7['repository']['getRevisions']();let _0x4cbb94=null;const _0x189cd0=this['editor']['plugins']['get']('RevisionViewer');_0x189cd0['adapter']=_0x3aa9b7['adapter'],_0x189cd0['bind']('isEnabled')['to'](_0x3aa9b7),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x104fb8,'isReadOnly',_0x5ba649=>!_0x5ba649);for(const _0x2b69f6 of _0x3ca9d4){const _0x56479a=null===_0x2b69f6['creator'];if(_0x56479a&&_0x2b69f6['toVersion']===_0x2b69f6['fromVersion'])continue;const _0x3787e7=_0x2b69f6['toJSON']();_0x189cd0['addRevisionData'](_0x3787e7,(_0x5d5c46,_0x3e58fa,_0x32fbd1)=>{if(_0x56479a){if(_0x4cbb94)_0x4cbb94['_update'](_0x5d5c46,_0x3e58fa);else{if(!_0x3e58fa){const _0x4b8f48=_0x32fbd1['toJSON']();_0x4b8f48['id']=_0x49b2b2(),_0x3aa9b7['saveRevision'](_0x4b8f48,_0x32fbd1['toVersion'])['then'](_0x39bae0=>{_0x4cbb94=_0x39bae0;});}}}else _0x2b69f6['_update'](_0x5d5c46,_0x3e58fa);});}}},g),_0x5dede2);}['_enhanceShowRevisionViewerCallback'](){const _0x2b8794=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5689a3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4bb7e6=this['editor']['plugins']['get']('Autosave');await _0x4bb7e6['save']();}else await _0x5689a3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x6a7eaa=this['editor']['plugins']['get']('Dialog');_0x6a7eaa['isOpen']&&_0x6a7eaa['hide']();}const _0x3d921f=this['_getRevisionViewerEditorConfig']();return _0x2b8794(_0x3d921f)['then'](_0x27c591=>{return(this['_viewerEditor']=_0x27c591,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x27c591;})['catch'](_0x131e49=>(console['error'](_0x131e49),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5896bd=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'](),_0x5896bd(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x342515=this['editor']['plugins']['get']('Annotations');_0x342515['refreshVisibility'](),_0x342515['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5d040a){const _0x2b54d5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5a68e7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x33bd77=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x33bd77,_0x5d040a)['then'](_0x4b9126=>(_0x5a68e7['style']['display']='block',_0x2b54d5['style']['display']='none',_0x4b9126));}['_closeRevisionViewer'](_0x5552fc){const _0x55d5af=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x55d5af['style']['display']='',_0x5552fc['destroy']();}async['_restoreRevision'](_0x527666){const _0x49346b=this['editor'],_0x504897=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x674c8d=_0x49346b['plugins']['get']('RevisionTracker'),_0x113a94=_0x504897['repository']['getRevision'](_0x527666);let _0x25484d,_0x299753,_0x43c8a5;try{_0x25484d=await _0x504897['getRevisionData'](_0x113a94),_0x299753=await _0x504897['getRevisionRootsAttributes'](_0x113a94);}catch(_0x41d365){return void console['error'](_0x41d365);}_0x49346b['model']['change'](_0x441aa1=>{for(const _0x1d2e20 of Array['from'](_0x49346b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x441aa1['removeMarker'](_0x1d2e20);}),_0x504897['isReady']=!0x1,_0x49346b['model']['enqueueChange'](_0x35a0c9=>{_0x35a0c9['setSelection'](null),_0x35a0c9['removeSelectionAttribute'](_0x49346b['model']['document']['selection']['getAttributeKeys']());const _0x1b4784=Object['keys'](_0x25484d);for(const _0x1f55c2 of _0x49346b['model']['document']['roots'])'$graveyard'!=_0x1f55c2['rootName']&&_0x1f55c2['isAttached']()&&!_0x1b4784['includes'](_0x1f55c2['rootName'])&&_0x35a0c9['detachRoot'](_0x1f55c2);for(const _0x1f00c2 of _0x1b4784){let _0x160e6c=_0x49346b['model']['document']['getRoot'](_0x1f00c2);_0x160e6c&&_0x160e6c['isAttached']()||(_0x160e6c=_0x35a0c9['addRoot'](_0x1f00c2));const _0x2f7f39=_0x299753[_0x1f00c2],_0x2c3ed3=Object['keys'](_0x2f7f39),_0x2166bb=_0x25484d[_0x1f00c2];for(const _0x8f0a69 of _0x160e6c['getAttributeKeys']())_0x2c3ed3['includes'](_0x8f0a69)||_0x35a0c9['removeAttribute'](_0x8f0a69,_0x160e6c);for(const _0x1d9eae of _0x2c3ed3)_0x35a0c9['setAttribute'](_0x1d9eae,_0x299753[_0x1f00c2][_0x1d9eae],_0x160e6c);_0x35a0c9['remove'](_0x35a0c9['createRangeIn'](_0x160e6c)),_0x35a0c9['insert'](_0x49346b['data']['parse'](_0x2166bb,_0x160e6c),_0x160e6c,0x0);}});const _0xc0b4a6=R(_0x49346b['locale'],'Restored');if(_0x113a94['name'])_0x43c8a5=-0x1==_0x113a94['name']['indexOf'](_0xc0b4a6)?_0xc0b4a6+':\x20'+_0x113a94['name']:_0x113a94['name'];else _0x43c8a5=_0xc0b4a6+':\x20'+(_0x113a94['createdAt']['toLocaleDateString'](_0x49346b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x113a94['createdAt']['toLocaleTimeString'](_0x49346b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x674c8d['saveRevision']({'name':_0x43c8a5}),_0x504897['isReady']=!0x0,_0x49346b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x15584f){super(_0x15584f),this['_revisionViewer']=_0x15584f['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x22ed1c=this['_revisionsRepository']['_revisions'],_0x4f0c12=this['_createRevisionActions'](),_0x3c85d9=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x22ed1c,_0x4f0c12,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',(_0x1c2c56,_0x2c523d)=>{_0x2c523d['revisionViews']['on']('add',(_0x3be0e1,_0x28806e)=>{_0x28806e['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)),_0x3c85d9['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x5ea354=this['_revisionsRepository']['getRevision'](0x0);if(_0x5ea354){const _0xbcbd13=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x5ea354['id']);this['_revisionViewer']['compare'](_0x5ea354,_0xbcbd13);}}['_handleRevisionSelected'](_0x4a6548,_0x501e85){const _0xa89b02=this['_revisionsRepository']['getRevision'](_0x501e85['id']),_0x334335=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xa89b02['id']);this['_revisionViewer']['compare'](_0xa89b02,_0x334335);}['_handleRevisionSetName'](_0x4fb33d,_0x1b1fa6){this['_revisionsRepository']['getRevision'](_0x1b1fa6['id'])['setName'](_0x1b1fa6['name']);}['_handleDiffChange'](_0x4d14f8,_0xd0fdf6,_0x6cfee){const _0x130bd0=this['_revisionsRepository']['getRevisionsInDiff'](_0x6cfee);_0x130bd0['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x130bd0),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x130bd0[0x0]));}['_createRevisionActions'](){const _0x59e9a7=this['editor'],_0x3aeb83=g['availableRevisionActions'],_0x13db4a=_0x59e9a7['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x13db4a['length'])return _0x13db4a['map'](_0x2d408d=>{const _0x5e85cd='string'==typeof _0x2d408d?Object['assign']({},_0x3aeb83[_0x2d408d]):_0x2d408d;return _0x5e85cd['action']=_0x5e85cd['action']['bind'](this,_0x59e9a7),_0x5e85cd['isVisible']&&(_0x5e85cd['isVisible']=_0x5e85cd['isVisible']['bind'](this,_0x59e9a7)),_0x5e85cd;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2486f3},_0x4392d1)=>{const _0x44b176=_0x2486f3['get'](d),_0x325791=_0x44b176['repository'];let _0xc99776=_0x44b176['diff']['newRevisionId'],_0x1e94f5=_0x4392d1['id'];_0x325791['getIndex'](_0xc99776)>_0x325791['getIndex'](_0x1e94f5)&&([_0xc99776,_0x1e94f5]=[_0x1e94f5,_0xc99776]),_0x44b176['compare'](_0xc99776,_0x1e94f5);},'isVisible':({plugins:_0x486406},_0x2e4895)=>{const _0x31cb5b=_0x486406['get'](d);return!(_0x31cb5b['repository']['getRevisionsInDiff'](_0x31cb5b['diff'])['length']>0x2)&&!_0x2e4895['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3fdcd6,{id:_0x46a310})=>{_0x3fdcd6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x46a310);},'isVisible':({plugins:_0x453dc9},_0x4a3ac6)=>!!_0x453dc9['get'](d)['repository']['getLaterVisibleRevision'](_0x4a3ac6['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2512e5},{id:_0xfa291c,revisionNameView:_0x258cfa})=>{const _0x1f7eae=_0x2512e5['get'](d),_0x279f54=_0x1f7eae['repository']['getEarlierVisibleRevision'](_0xfa291c);_0x1f7eae['compare'](_0xfa291c,_0x279f54),_0x258cfa['focus'](),_0x258cfa['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4fc80e,_0x16e906){super(_0x4fc80e),this['_view']=_0x16e906,this['_toolbarConfig']=ht(_0x4fc80e['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x9dae2f){const _0x1c684c=this['editor'],_0x4456a8=this['view'],_0x12798b=_0x1c684c['editing']['view'],_0x31a0c5=_0x4456a8['editable'],_0x564cbc=_0x12798b['document']['getRoot']();_0x31a0c5['name']=_0x564cbc['rootName'],_0x4456a8['render']();const _0x125422=_0x31a0c5['element'];this['setEditableElement'](_0x31a0c5['name'],_0x125422),_0x4456a8['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x12798b['attachDomRoot'](_0x125422),this['_elementReplacer']['replace'](_0x9dae2f,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x542586=this['view'],_0x4bd224=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4bd224['detachDomRoot'](_0x542586['editable']['name']),_0x542586['destroy']();}['_initToolbar'](){const _0x18fa71=this['view'];_0x18fa71['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x18fa71['stickyPanel']['limiterElement']=_0x18fa71['element'],_0x18fa71['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x414b72})=>_0x414b72),_0x18fa71['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x18fa71['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xbbcda2,_0x2933ba,_0x240cbd={}){super(_0xbbcda2),this['stickyPanel']=new lt(_0xbbcda2),this['toolbar']=new nt(_0xbbcda2,{'shouldGroupWhenFull':_0x240cbd['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0xbbcda2,_0x2933ba);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5b4425,_0x2e2286){super(_0x2e2286),this['sourceElement']=_0x5b4425,this['model']['document']['createRoot']();const _0x3c7a2a=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x3c7a2a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2b9287,_0x5a3124){const _0x509d98=new this(_0x2b9287,_0x5a3124);return await _0x509d98['initPlugins'](),await _0x509d98['ui']['init'](_0x2b9287),await _0x509d98['data']['init'](_0x509d98['config']['get']('initialData')||''),_0x509d98['fire']('ready'),_0x509d98;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x402cd2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5abdac){function _0x6275b7(_0x53512f){return _0x53512f['map'](_0x48390c=>String['fromCharCode'](_0x48390c))['join']('');}super(_0x5abdac),this['result']='end',_0x5abdac[_0x6275b7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6275b7([0x76,0x69,0x65,0x77])][_0x6275b7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6275b7([0x61,0x75,0x74,0x6f]),_0x5abdac[_0x6275b7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x6275b7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6275b7([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x6275b7([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x6275b7([0x6f,0x6b])});}}class H extends _0x402cd2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x111266){if(super(_0x111266),!this['editor']['config']['get']('revisionHistory'))throw new _0x4b5491('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2d2257=>this['_showRevisionViewer']({..._0x2d2257,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x45b33e=>this['_closeRevisionViewer'](_0x45b33e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1473b0=>this['_restoreRevision'](_0x1473b0)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x385e82){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x385e82;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x37b533){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x37b533);}['getRevision'](_0x836879){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x836879);}['getRevisions'](_0x5899a1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5899a1||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2e7210=this['editor'],_0x165228=_0x17e5d9(_0x2e7210,p),_0x497b9c=_0x2e7210['plugins']['get']('RevisionTracker'),_0x1a6fd5=_0x2e7210['plugins']['get']('Users')['users'];return _0x165228['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x165228['lazyRoots'],(_0x165228['plugins']['push'](k,d,m,class extends _0x402cd2{static get['requires'](){return[d,'Users'];}['init'](){const _0x1976e0=this['editor']['plugins']['get']('Users');for(const _0x29cd51 of _0x1a6fd5)_0x29cd51['isAnonymous']||_0x1976e0['getUser'](_0x29cd51['id'])||_0x1976e0['addUser'](_0x29cd51);const _0x18944a=_0x497b9c['repository']['getRevisions']();let _0x362ad7=null;const _0x5a7b78=this['editor']['plugins']['get']('RevisionViewer');_0x5a7b78['adapter']=_0x497b9c['adapter'],_0x5a7b78['bind']('isEnabled')['to'](_0x497b9c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2e7210,'isReadOnly',_0x9acfd6=>!_0x9acfd6);for(const _0x2f6a93 of _0x18944a){const _0x4d067a=null===_0x2f6a93['creator'];if(_0x4d067a&&_0x2f6a93['toVersion']===_0x2f6a93['fromVersion'])continue;const _0x26b04a=_0x2f6a93['toJSON']();_0x5a7b78['addRevisionData'](_0x26b04a,(_0x527beb,_0x485f9f,_0x1c801d)=>{if(_0x4d067a){if(_0x362ad7)_0x362ad7['_update'](_0x527beb,_0x485f9f);else{if(!_0x485f9f){const _0x15efa8=_0x1c801d['toJSON']();_0x15efa8['id']=_0x550c17(),_0x497b9c['saveRevision'](_0x15efa8,_0x1c801d['toVersion'])['then'](_0x43a8a4=>{_0x362ad7=_0x43a8a4;});}}}else _0x2f6a93['_update'](_0x527beb,_0x485f9f);});}}},g),_0x165228);}['_enhanceShowRevisionViewerCallback'](){const _0x481803=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0xfdac09=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x572dae=this['editor']['plugins']['get']('Autosave');await _0x572dae['save']();}else await _0xfdac09['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x35247a=this['editor']['plugins']['get']('Dialog');_0x35247a['isOpen']&&_0x35247a['hide']();}const _0x45c022=this['_getRevisionViewerEditorConfig']();return _0x481803(_0x45c022)['then'](_0x378434=>{return(this['_viewerEditor']=_0x378434,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x378434;})['catch'](_0x2474c8=>(console['error'](_0x2474c8),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x342a29=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'](),_0x342a29(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3f5b42=this['editor']['plugins']['get']('Annotations');_0x3f5b42['refreshVisibility'](),_0x3f5b42['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3c2ad2){const _0x521e8f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x58442d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x72c55e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x72c55e,_0x3c2ad2)['then'](_0x477665=>(_0x58442d['style']['display']='block',_0x521e8f['style']['display']='none',_0x477665));}['_closeRevisionViewer'](_0xa83353){const _0x383a39=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x383a39['style']['display']='',_0xa83353['destroy']();}async['_restoreRevision'](_0x572d18){const _0x25331d=this['editor'],_0x1f5bde=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x5d4c54=_0x25331d['plugins']['get']('RevisionTracker'),_0x5b5f1d=_0x1f5bde['repository']['getRevision'](_0x572d18);let _0x5cb681,_0x27e3a6,_0xad431;try{_0x5cb681=await _0x1f5bde['getRevisionData'](_0x5b5f1d),_0x27e3a6=await _0x1f5bde['getRevisionRootsAttributes'](_0x5b5f1d);}catch(_0x4af8cb){return void console['error'](_0x4af8cb);}_0x25331d['model']['change'](_0x56103f=>{for(const _0x3c42cd of Array['from'](_0x25331d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x56103f['removeMarker'](_0x3c42cd);}),_0x1f5bde['isReady']=!0x1,_0x25331d['model']['enqueueChange'](_0x470633=>{_0x470633['setSelection'](null),_0x470633['removeSelectionAttribute'](_0x25331d['model']['document']['selection']['getAttributeKeys']());const _0x28877f=Object['keys'](_0x5cb681);for(const _0x146fc8 of _0x25331d['model']['document']['roots'])'$graveyard'!=_0x146fc8['rootName']&&_0x146fc8['isAttached']()&&!_0x28877f['includes'](_0x146fc8['rootName'])&&_0x470633['detachRoot'](_0x146fc8);for(const _0x4474ba of _0x28877f){let _0x5f678a=_0x25331d['model']['document']['getRoot'](_0x4474ba);_0x5f678a&&_0x5f678a['isAttached']()||(_0x5f678a=_0x470633['addRoot'](_0x4474ba));const _0x590946=_0x27e3a6[_0x4474ba],_0x4fd649=Object['keys'](_0x590946),_0x4f6db9=_0x5cb681[_0x4474ba];for(const _0x54e67f of _0x5f678a['getAttributeKeys']())_0x4fd649['includes'](_0x54e67f)||_0x470633['removeAttribute'](_0x54e67f,_0x5f678a);for(const _0x40b9d9 of _0x4fd649)_0x470633['setAttribute'](_0x40b9d9,_0x27e3a6[_0x4474ba][_0x40b9d9],_0x5f678a);_0x470633['remove'](_0x470633['createRangeIn'](_0x5f678a)),_0x470633['insert'](_0x25331d['data']['parse'](_0x4f6db9,_0x5f678a),_0x5f678a,0x0);}});const _0x391307=R(_0x25331d['locale'],'Restored');if(_0x5b5f1d['name'])_0xad431=-0x1==_0x5b5f1d['name']['indexOf'](_0x391307)?_0x391307+':\x20'+_0x5b5f1d['name']:_0x5b5f1d['name'];else _0xad431=_0x391307+':\x20'+(_0x5b5f1d['createdAt']['toLocaleDateString'](_0x25331d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x5b5f1d['createdAt']['toLocaleTimeString'](_0x25331d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x5d4c54['saveRevision']({'name':_0xad431}),_0x1f5bde['isReady']=!0x0,_0x25331d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};