@ckeditor/ckeditor5-revision-history 45.2.1-alpha.9 → 46.0.0-alpha.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 (211) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index-editor.css +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.js +7 -6
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/be.js +1 -1
  14. package/dist/translations/be.umd.js +1 -1
  15. package/dist/translations/bg.js +1 -1
  16. package/dist/translations/bg.umd.js +1 -1
  17. package/dist/translations/bn.js +1 -1
  18. package/dist/translations/bn.umd.js +1 -1
  19. package/dist/translations/bs.js +1 -1
  20. package/dist/translations/bs.umd.js +1 -1
  21. package/dist/translations/ca.js +1 -1
  22. package/dist/translations/ca.umd.js +1 -1
  23. package/dist/translations/cs.js +1 -1
  24. package/dist/translations/cs.umd.js +1 -1
  25. package/dist/translations/da.js +1 -1
  26. package/dist/translations/da.umd.js +1 -1
  27. package/dist/translations/de-ch.js +1 -1
  28. package/dist/translations/de-ch.umd.js +1 -1
  29. package/dist/translations/de.js +1 -1
  30. package/dist/translations/de.umd.js +1 -1
  31. package/dist/translations/el.js +1 -1
  32. package/dist/translations/el.umd.js +1 -1
  33. package/dist/translations/en-au.js +1 -1
  34. package/dist/translations/en-au.umd.js +1 -1
  35. package/dist/translations/en-gb.js +1 -1
  36. package/dist/translations/en-gb.umd.js +1 -1
  37. package/dist/translations/en.js +1 -1
  38. package/dist/translations/en.umd.js +1 -1
  39. package/dist/translations/eo.js +1 -1
  40. package/dist/translations/eo.umd.js +1 -1
  41. package/dist/translations/es-co.js +1 -1
  42. package/dist/translations/es-co.umd.js +1 -1
  43. package/dist/translations/es.js +1 -1
  44. package/dist/translations/es.umd.js +1 -1
  45. package/dist/translations/et.js +1 -1
  46. package/dist/translations/et.umd.js +1 -1
  47. package/dist/translations/eu.js +1 -1
  48. package/dist/translations/eu.umd.js +1 -1
  49. package/dist/translations/fa.js +1 -1
  50. package/dist/translations/fa.umd.js +1 -1
  51. package/dist/translations/fi.js +1 -1
  52. package/dist/translations/fi.umd.js +1 -1
  53. package/dist/translations/fr.js +1 -1
  54. package/dist/translations/fr.umd.js +1 -1
  55. package/dist/translations/gl.js +1 -1
  56. package/dist/translations/gl.umd.js +1 -1
  57. package/dist/translations/gu.js +1 -1
  58. package/dist/translations/gu.umd.js +1 -1
  59. package/dist/translations/he.js +1 -1
  60. package/dist/translations/he.umd.js +1 -1
  61. package/dist/translations/hi.js +1 -1
  62. package/dist/translations/hi.umd.js +1 -1
  63. package/dist/translations/hr.js +1 -1
  64. package/dist/translations/hr.umd.js +1 -1
  65. package/dist/translations/hu.js +1 -1
  66. package/dist/translations/hu.umd.js +1 -1
  67. package/dist/translations/hy.js +1 -1
  68. package/dist/translations/hy.umd.js +1 -1
  69. package/dist/translations/id.js +1 -1
  70. package/dist/translations/id.umd.js +1 -1
  71. package/dist/translations/it.js +1 -1
  72. package/dist/translations/it.umd.js +1 -1
  73. package/dist/translations/ja.js +1 -1
  74. package/dist/translations/ja.umd.js +1 -1
  75. package/dist/translations/jv.js +1 -1
  76. package/dist/translations/jv.umd.js +1 -1
  77. package/dist/translations/kk.js +1 -1
  78. package/dist/translations/kk.umd.js +1 -1
  79. package/dist/translations/km.js +1 -1
  80. package/dist/translations/km.umd.js +1 -1
  81. package/dist/translations/kn.js +1 -1
  82. package/dist/translations/kn.umd.js +1 -1
  83. package/dist/translations/ko.js +1 -1
  84. package/dist/translations/ko.umd.js +1 -1
  85. package/dist/translations/ku.js +1 -1
  86. package/dist/translations/ku.umd.js +1 -1
  87. package/dist/translations/lt.js +1 -1
  88. package/dist/translations/lt.umd.js +1 -1
  89. package/dist/translations/lv.js +1 -1
  90. package/dist/translations/lv.umd.js +1 -1
  91. package/dist/translations/ms.js +1 -1
  92. package/dist/translations/ms.umd.js +1 -1
  93. package/dist/translations/nb.js +1 -1
  94. package/dist/translations/nb.umd.js +1 -1
  95. package/dist/translations/ne.js +1 -1
  96. package/dist/translations/ne.umd.js +1 -1
  97. package/dist/translations/nl.js +1 -1
  98. package/dist/translations/nl.umd.js +1 -1
  99. package/dist/translations/no.js +1 -1
  100. package/dist/translations/no.umd.js +1 -1
  101. package/dist/translations/oc.js +1 -1
  102. package/dist/translations/oc.umd.js +1 -1
  103. package/dist/translations/pl.js +1 -1
  104. package/dist/translations/pl.umd.js +1 -1
  105. package/dist/translations/pt-br.js +1 -1
  106. package/dist/translations/pt-br.umd.js +1 -1
  107. package/dist/translations/pt.js +1 -1
  108. package/dist/translations/pt.umd.js +1 -1
  109. package/dist/translations/ro.js +1 -1
  110. package/dist/translations/ro.umd.js +1 -1
  111. package/dist/translations/ru.js +1 -1
  112. package/dist/translations/ru.umd.js +1 -1
  113. package/dist/translations/si.js +1 -1
  114. package/dist/translations/si.umd.js +1 -1
  115. package/dist/translations/sk.js +1 -1
  116. package/dist/translations/sk.umd.js +1 -1
  117. package/dist/translations/sl.js +1 -1
  118. package/dist/translations/sl.umd.js +1 -1
  119. package/dist/translations/sq.js +1 -1
  120. package/dist/translations/sq.umd.js +1 -1
  121. package/dist/translations/sr-latn.js +1 -1
  122. package/dist/translations/sr-latn.umd.js +1 -1
  123. package/dist/translations/sr.js +1 -1
  124. package/dist/translations/sr.umd.js +1 -1
  125. package/dist/translations/sv.js +1 -1
  126. package/dist/translations/sv.umd.js +1 -1
  127. package/dist/translations/th.js +1 -1
  128. package/dist/translations/th.umd.js +1 -1
  129. package/dist/translations/ti.js +1 -1
  130. package/dist/translations/ti.umd.js +1 -1
  131. package/dist/translations/tk.js +1 -1
  132. package/dist/translations/tk.umd.js +1 -1
  133. package/dist/translations/tr.js +1 -1
  134. package/dist/translations/tr.umd.js +1 -1
  135. package/dist/translations/tt.js +1 -1
  136. package/dist/translations/tt.umd.js +1 -1
  137. package/dist/translations/ug.js +1 -1
  138. package/dist/translations/ug.umd.js +1 -1
  139. package/dist/translations/uk.js +1 -1
  140. package/dist/translations/uk.umd.js +1 -1
  141. package/dist/translations/ur.js +1 -1
  142. package/dist/translations/ur.umd.js +1 -1
  143. package/dist/translations/uz.js +1 -1
  144. package/dist/translations/uz.umd.js +1 -1
  145. package/dist/translations/vi.js +1 -1
  146. package/dist/translations/vi.umd.js +1 -1
  147. package/dist/translations/zh-cn.js +1 -1
  148. package/dist/translations/zh-cn.umd.js +1 -1
  149. package/dist/translations/zh.js +1 -1
  150. package/dist/translations/zh.umd.js +1 -1
  151. package/package.json +14 -14
  152. package/src/changeitem.d.ts +1 -1
  153. package/src/changeitem.js +2 -2
  154. package/src/editor/revisionviewereditor.d.ts +2 -2
  155. package/src/editor/revisionviewereditor.js +2 -2
  156. package/src/editor/revisionviewereditorui.d.ts +2 -2
  157. package/src/editor/revisionviewereditorui.js +1 -1
  158. package/src/editor/revisionviewereditoruiview.d.ts +1 -1
  159. package/src/editor/revisionviewereditoruiview.js +1 -1
  160. package/src/index.d.ts +14 -11
  161. package/src/index.js +1 -1
  162. package/src/revision.d.ts +1 -1
  163. package/src/revision.js +2 -2
  164. package/src/revisiondiff.d.ts +4 -4
  165. package/src/revisiondiff.js +1 -1
  166. package/src/revisionhistory.d.ts +4 -41
  167. package/src/revisionhistory.js +1 -1
  168. package/src/revisionhistoryutils.d.ts +2 -2
  169. package/src/revisionhistoryutils.js +1 -1
  170. package/src/revisionsrepository.d.ts +2 -2
  171. package/src/revisionsrepository.js +1 -1
  172. package/src/revisiontracker.d.ts +6 -11
  173. package/src/revisiontracker.js +1 -1
  174. package/src/revisionviewer.d.ts +7 -7
  175. package/src/revisionviewer.js +1 -1
  176. package/src/ui/revision/createrevisionactionsdropdown.d.ts +3 -3
  177. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  178. package/src/ui/revision/revisionauthorview.d.ts +1 -1
  179. package/src/ui/revision/revisionauthorview.js +1 -1
  180. package/src/ui/revision/revisionnameview.d.ts +1 -1
  181. package/src/ui/revision/revisionnameview.js +1 -1
  182. package/src/ui/revision/revisionview.d.ts +3 -3
  183. package/src/ui/revision/revisionview.js +2 -2
  184. package/src/ui/revision/subrevisioncollapserview.d.ts +1 -1
  185. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  186. package/src/ui/revision/subrevisionview.d.ts +2 -2
  187. package/src/ui/revision/subrevisionview.js +1 -1
  188. package/src/ui/revision/utils.js +1 -1
  189. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +3 -1
  190. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -1
  191. package/src/ui/revisionhistory/revisionhistoryui.d.ts +2 -2
  192. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  193. package/src/ui/revisionssidebar/revisionssidebar.d.ts +3 -3
  194. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  195. package/src/ui/revisionssidebar/revisionssidebarheaderview.d.ts +1 -1
  196. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  197. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +3 -3
  198. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  199. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +4 -4
  200. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  201. package/src/ui/revisionssidebar/utils.js +1 -1
  202. package/src/ui/revisionviewer/changedetailsview.d.ts +2 -2
  203. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  204. package/src/ui/revisionviewer/changesnavigationview.d.ts +1 -1
  205. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  206. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
  207. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  208. package/src/ui/revisionviewer/revisionviewerui.d.ts +3 -3
  209. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  210. package/src/utils/common-translations.js +1 -1
  211. package/theme/revisionviewerloadingoverlay.css +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,11 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x4fa367,uid as _0x2a1139,Collection as _0x239345,logWarning as _0x1e9999,FocusTracker as _0x1a5bd3,KeystrokeHandler as _0x5906fb,scrollViewportToShowTarget as _0xdb082a,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x5b4da3}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x40ea9a,set as _0x3cff0f,unset as _0x499e91,isEqual as _0x1f0b3c}from'es-toolkit/compat';import{Plugin as _0x443a46,PendingActions as _0x41643f,Command as _0x4ad7f3,ElementApiMixin as _0x5380ba,Editor as _0x17449b}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x33d7db,getMarkerDomElement as _0x286786,ConfirmMixin as ti,sanitizeEditorConfig as _0x2915b1}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x20d04c,ViewAttributeElement as _0x5550f8,ViewEmptyElement as _0x415b23,ViewRawElement as _0x161449,ViewUIElement as _0x3188b4,ViewDocumentFragment as _0x3a3b7a,ViewText as _0x255c11,ViewElement as _0x1eabbf,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1ac31f,IconChevronUp as _0x2858bc,IconChevronDown as _0x1c5bf8,IconUndo as _0x7b404c,IconUser as _0x461254,IconThreeVerticalDots as _0x3a1eed}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x51d33e,submitHandler as _0x47de8a,LabeledFieldView as _0x5d8229,createLabeledInputText as _0x302711,createDropdown as _0x1429b9,ListView as _0x8fa149,ListItemView as _0xd18afd,ButtonView as te,MenuBarMenuView as _0x2126e1,MenuBarMenuListView as _0x1ff503,MenuBarMenuListItemView as _0x4a9d4a,MenuBarMenuListItemButtonView as _0x3fe7a4,ContextualBalloon as _0x1d7948,ToolbarSeparatorView as _0x4f8ba2,IconView as _0x5c632d,addListToDropdown as _0xc4778d,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x473ede}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x4fa367(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x39b478){super(),this['id']=_0x39b478['id']||_0x2a1139(),this['creator']=_0x39b478['creator']||null,this['authors']=_0x39b478['authors']||[],this['diffData']=_0x39b478['diffData']||null,this['toVersion']=_0x39b478['toVersion']||0x0,this['fromVersion']=_0x39b478['fromVersion']||0x0,this['set']('name',_0x39b478['name']||''),this['set']('createdAt',_0x39b478['createdAt']||new Date()),this['set']('attributes',_0x39b478['attributes']||{});}['setName'](_0x13d754){this['_update']({'name':_0x13d754});}['setAttribute'](_0x4776dd,_0xa04512){const _0x2c3871=_0x40ea9a(this['attributes']);_0x3cff0f(_0x2c3871,_0x4776dd,_0xa04512),this['_update']({'attributes':_0x2c3871});}['removeAttribute'](_0x45a39c){const _0x50f2af=_0x40ea9a(this['attributes']);_0x499e91(_0x50f2af,_0x45a39c),this['_update']({'attributes':_0x50f2af});}['_update'](_0x2fe6e9,_0x1fcc43=!0x1){let _0x55c8ba=!0x1;const _0x5510d1={'id':this['id']},_0x54ac3b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x531888 of _0x54ac3b){const _0x146589=_0x2fe6e9[_0x531888];void 0x0!==_0x146589&&_0x146589!==this[_0x531888]&&(this[_0x531888]=_0x146589,_0x5510d1[_0x531888]=_0x146589,_0x55c8ba=!0x0);}_0x55c8ba&&(_0x5510d1['authors']&&(_0x5510d1['authorsIds']=_0x5510d1['authors']['map'](_0x35aa61=>_0x35aa61['id']),delete _0x5510d1['authors']),this['fire']('_update',_0x5510d1,_0x1fcc43));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2c251c=>_0x2c251c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x443a46{['_revisions'];static get['requires'](){return[_0x33d7db];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xd0fe2c){super(_0xd0fe2c),this['_revisions']=new _0x239345();}['afterInit'](){!async function(_0x22be14){const _0x2da73c=_0x27acd9([0x4b,0x6e,0x79,0x52,0x4a,0x6b,0x4d,0x54,0x49,0x4e,0x50,0x41,0x77,0x75,0x51,0x70,0x42,0x47,0x33,0x61,0x71,0x38,0x32,0x68,0x58,0x59,0x66,0x37,0x30,0x36,0x6a,0x57,0x43,0x44,0x53,0x46,0x56,0x7a,0x55,0x78,0x31,0x4f,0x64,0x35,0x6f,0x45,0x69,0x72,0x48,0x74,0x4c,0x5a,0x65,0x63,0x62,0x34,0x67,0x73,0x39,0x76,0x6d,0x6c]),_0x4689aa=0xeb829,_0x422992=0x66ba9dbe,_0x4c7940=0x66bdf62e^_0x422992,_0x4288f7=window[_0x27acd9([0x44,0x61,0x74,0x65])][_0x27acd9([0x6e,0x6f,0x77])](),_0x539bf9=_0x22be14[_0x27acd9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x300aa7=new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20875b=>{_0x539bf9[_0x27acd9([0x6f,0x6e,0x63,0x65])](_0x27acd9([0x72,0x65,0x61,0x64,0x79]),_0x20875b);}),_0x20c486={[_0x27acd9([0x6b,0x74,0x79])]:_0x27acd9([0x45,0x43]),[_0x27acd9([0x75,0x73,0x65])]:_0x27acd9([0x73,0x69,0x67]),[_0x27acd9([0x63,0x72,0x76])]:_0x27acd9([0x50,0x2d,0x32,0x35,0x36]),[_0x27acd9([0x78])]:_0x27acd9([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]),[_0x27acd9([0x79])]:_0x27acd9([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]),[_0x27acd9([0x61,0x6c,0x67])]:_0x27acd9([0x45,0x53,0x32,0x35,0x36])},_0x524060=_0x539bf9[_0x27acd9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27acd9([0x67,0x65,0x74])](_0x27acd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2cbe56(){let _0x56b479,_0xe7e4da=null,_0x4314f5=null;try{if(_0x524060==_0x27acd9([0x47,0x50,0x4c]))return _0x27acd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56b479=_0x261440(),!_0x56b479)return _0x27acd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56b479[_0x27acd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4314f5=_0x2fcc64(_0x56b479[_0x27acd9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56b479[_0x27acd9([0x6a,0x74,0x69])])),await _0x600cb5()?_0x5cb2d1()?_0x24d2ef()?_0x27acd9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x178791()?(_0x56b479[_0x27acd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27acd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe7e4da=_0x498f87(_0x27acd9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x56b479[_0x27acd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27acd9([0x74,0x72,0x69,0x61,0x6c])&&(_0xe7e4da=_0x498f87(_0x27acd9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15f110()):_0x27acd9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27acd9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27acd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27acd9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x24d2ef(){const _0x265682=[_0x27acd9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27acd9([0x74,0x72,0x69,0x61,0x6c])][_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56b479[_0x27acd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4288f7/0x3e8:0xe10*_0x4c7940;return _0x56b479[_0x27acd9([0x65,0x78,0x70])]<_0x265682;}function _0x5cb2d1(){const _0x1ac330=_0x56b479[_0x27acd9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1ac330)return!0x1;if(_0x1ac330[_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27acd9([0x2a])))return!0x0;if(_0x1ac330[_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27acd9([0x52,0x48])))return!0x0;if(_0x1ac330[_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27acd9([0x52,0x52,0x48]))){if(_0x3f944d())return!0x0;if(_0x1a35f8()||_0x1280d4())return!0x0;}return!0x1;}function _0x178791(){const _0x3f606b=_0x56b479[_0x27acd9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f606b||0x0==_0x3f606b[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xf770c8}=new URL(window[_0x27acd9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f606b[_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf770c8))return!0x0;const _0x3c6fc6=_0xf770c8[_0x27acd9([0x73,0x70,0x6c,0x69,0x74])](_0x27acd9([0x2e]));return _0x3f606b[_0x27acd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bcdfe=>_0x4bcdfe[_0x27acd9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27acd9([0x2a])))[_0x27acd9([0x6d,0x61,0x70])](_0x2e48fe=>_0x2e48fe[_0x27acd9([0x73,0x70,0x6c,0x69,0x74])](_0x27acd9([0x2e])))[_0x27acd9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa87b8c=>_0xa87b8c[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3c6fc6[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27acd9([0x6d,0x61,0x70])](_0x482aca=>Array(_0x3c6fc6[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x482aca[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27acd9([0x66,0x69,0x6c,0x6c])](_0x482aca[0x0]===_0x27acd9([0x2a])?_0x27acd9([0x2a]):'')[_0x27acd9([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x482aca))[_0x27acd9([0x73,0x6f,0x6d,0x65])](_0x5c9377=>_0x3c6fc6[_0x27acd9([0x65,0x76,0x65,0x72,0x79])]((_0x5a60be,_0x2bd812)=>_0x5c9377[_0x2bd812]===_0x5a60be||_0x5c9377[_0x2bd812]===_0x27acd9([0x2a])));}function _0x15f110(){return _0xe7e4da&&_0x4314f5?new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4a3585,_0x5a6b9a)=>{_0xe7e4da[_0x27acd9([0x74,0x68,0x65,0x6e])](_0x4a3585,_0x5a6b9a),_0x4314f5[_0x27acd9([0x74,0x68,0x65,0x6e])](_0x55aab7=>{_0x55aab7!=_0x27acd9([0x56,0x61,0x6c,0x69,0x64])&&_0x4a3585(_0x55aab7);},_0x5a6b9a);}):_0xe7e4da||_0x4314f5||_0x27acd9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2fcc64(_0x160de4,_0x34145a){return new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2149d6=>{if(_0x58daf4())return _0x2149d6(_0x27acd9([0x56,0x61,0x6c,0x69,0x64]));_0x88955f(),_0x539bf9[_0x27acd9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27acd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c66d9=!0x1;const _0x312edf=_0x2a1139();function _0x42b7e4(_0x282498){return!!_0x282498&&(typeof _0x282498===_0x27acd9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x282498===_0x27acd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x282498[_0x27acd9([0x74,0x68,0x65,0x6e])]===_0x27acd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x282498[_0x27acd9([0x63,0x61,0x74,0x63,0x68])]===_0x27acd9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x11a3f8(_0x588b03){_0x10b8c4(_0x588b03)[_0x27acd9([0x74,0x68,0x65,0x6e])](_0x3aaa28=>{if(!_0x3aaa28||_0x3aaa28[_0x27acd9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27acd9([0x6f,0x6b]))return _0x27acd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xe40fb(_0x255ab8(_0x312edf+_0x34145a))!=_0x3aaa28[_0x27acd9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27acd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27acd9([0x56,0x61,0x6c,0x69,0x64]);})[_0x27acd9([0x74,0x68,0x65,0x6e])](_0xb2ec8c=>(_0x1fa8c9(),_0xb2ec8c),()=>{const _0x192f55=_0x4e8b27();return null==_0x192f55?(_0x1fa8c9(),_0x27acd9([0x56,0x61,0x6c,0x69,0x64])):_0x27acd9(_0x4288f7-_0x192f55>(0x42b619be^_0x422992)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27acd9([0x74,0x68,0x65,0x6e])](_0x2149d6)[_0x27acd9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2149d6(_0x27acd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cbe47=0x668c733e^_0x422992;function _0x1fa8c9(){const _0x21b725=_0x27acd9([0x6c,0x6c,0x63,0x74,0x2d])+_0xe40fb(_0x255ab8(_0x160de4)),_0x1c07f1=_0x999d34(_0xe40fb(window[_0x27acd9([0x4d,0x61,0x74,0x68])][_0x27acd9([0x63,0x65,0x69,0x6c])](_0x4288f7/_0x2cbe47)));window[_0x27acd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27acd9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21b725,_0x1c07f1);}function _0x4e8b27(){const _0x938a18=_0x27acd9([0x6c,0x6c,0x63,0x74,0x2d])+_0xe40fb(_0x255ab8(_0x160de4)),_0x48b180=window[_0x27acd9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27acd9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x938a18);return _0x48b180?window[_0x27acd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x999d34(_0x48b180),0x10)*_0x2cbe47:null;}function _0x10b8c4(_0x3171b5){return new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5489f0,_0x4d515d)=>{_0x3171b5[_0x27acd9([0x74,0x68,0x65,0x6e])](_0x5489f0,_0x4d515d),window[_0x27acd9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d515d,0x66bb497e^_0x422992);});}}_0x539bf9[_0x27acd9([0x6f,0x6e])](_0x27acd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4480fc,_0x2ff125)=>{if(_0x2ff125[0x0]!=_0x160de4)return _0x2149d6(_0x27acd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ff125[0x1]={..._0x2ff125[0x1],[_0x27acd9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x312edf};},{[_0x27acd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27acd9([0x68,0x69,0x67,0x68])}),_0x539bf9[_0x27acd9([0x6f,0x6e])](_0x27acd9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x215ffe=>{_0x42b7e4(_0x215ffe[_0x27acd9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c66d9=!0x0,_0x11a3f8(_0x215ffe[_0x27acd9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27acd9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27acd9([0x6c,0x6f,0x77])}),_0x300aa7[_0x27acd9([0x74,0x68,0x65,0x6e])](()=>{_0x3c66d9||_0x2149d6(_0x27acd9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x58daf4(){return _0x539bf9[_0x27acd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27acd9([0x76,0x69,0x65,0x77])][_0x27acd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27acd9([0x61,0x75,0x74,0x6f]);}function _0x88955f(){_0x539bf9[_0x27acd9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27acd9([0x76,0x69,0x65,0x77])][_0x27acd9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27acd9([0x61,0x75,0x74,0x6f]);}}function _0x498f87(_0x53d5f1){const _0x3dbec6=[new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x85a961=>setTimeout(_0x85a961,0x66b3a372^_0x422992)),_0x300aa7[_0x27acd9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54ee08=>{const _0x5e8102=0x66ba9db9^_0x422992,_0x2d4a42=_0x22be14[_0x27acd9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0xbb5a4(){_0x2d4a42[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5e8102&&_0x54ee08();}_0xbb5a4(),_0x2d4a42[_0x27acd9([0x6f,0x6e])](_0x27acd9([0x61,0x64,0x64]),_0xbb5a4);})),new window[(_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52b1cc=>{function _0x648958(){for(const _0x103bef in window)if(window[_0x27acd9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x27acd9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x103bef))&&window[_0x103bef]==_0x4689aa)return _0x52b1cc();_0x539bf9[_0x27acd9([0x73,0x74,0x61,0x74,0x65])]!=_0x27acd9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x27acd9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x648958,0x66ba8e36^_0x422992);}_0x2a845e(_0x27acd9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x648958();})];return window[_0x27acd9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27acd9([0x72,0x61,0x63,0x65])](_0x3dbec6)[_0x27acd9([0x74,0x68,0x65,0x6e])](()=>_0x53d5f1);}async function _0x544278(){if(await _0x300aa7,_0x2a845e(_0x27acd9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x22e11c=_0x22be14[_0x27acd9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x38bfab=_0x22be14[_0x27acd9([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])](_0x22e11c[_0x27acd9([0x69,0x64])]),_0x1f9669=_0x290696(_0x27acd9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1f9669[_0x27acd9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x22e11c['id'],_0x38bfab?_0x38bfab['id']:null,!0x0),_0x1f9669[_0x27acd9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x27acd9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1f9669[_0x27acd9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1f9669[_0x27acd9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5c9f17,void(_0x1f9669[_0x27acd9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5c9f17);}if(_0x2a845e(_0x27acd9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x171543=_0x290696(_0x27acd9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x171543[_0x27acd9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x27acd9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x171543[_0x27acd9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x171543[_0x27acd9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5c9f17,_0x171543[_0x27acd9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5c9f17;}_0x539bf9[_0x27acd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x27acd9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c9f17,_0x539bf9[_0x27acd9([0x6d,0x6f,0x64,0x65,0x6c])][_0x27acd9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c9f17,_0x539bf9[_0x27acd9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27acd9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f944d(){return _0x2a845e(_0x27acd9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x290696(_0x27acd9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x27acd9([0x73,0x74,0x61,0x74,0x65])]==_0x27acd9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1a35f8(){return _0x2a845e(_0x27acd9([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 _0x1280d4(){return _0x2a845e(_0x27acd9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3e7655(_0x3dec3b){const _0x8e92e2=_0x510660();_0x539bf9[_0x8e92e2]=_0x27acd9([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])+_0x3dec3b,_0x3dec3b[_0x27acd9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x27acd9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x510660()]=_0x4689aa),_0x3dec3b!=_0x27acd9([0x56,0x61,0x6c,0x69,0x64])&&_0x544278();}function _0x510660(){const _0x1699ca=window[_0x27acd9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27acd9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27acd9([0x6e,0x6f,0x77])]())[_0x27acd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27acd9([0x2e]),'');let _0x3da837=_0x27acd9([0x4b]);for(let _0x43cfbf=0x0;_0x43cfbf<_0x1699ca[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x43cfbf+=0x2){let _0x4c9504=window[_0x27acd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1699ca[_0x27acd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x43cfbf,_0x43cfbf+0x2));_0x4c9504>=_0x2da73c[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c9504-=_0x2da73c[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3da837+=_0x2da73c[_0x4c9504];}return _0x3da837;}function _0x261440(){const _0x50a954=_0x524060[_0x27acd9([0x73,0x70,0x6c,0x69,0x74])](_0x27acd9([0x2e]));if(0x3!=_0x50a954[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x19be2d(_0x50a954[0x1]);function _0x19be2d(_0x13a60d){const _0x57ab2d=_0x3f79b0(_0x13a60d);return _0x57ab2d&&_0x2501ed()?_0x57ab2d:null;function _0x2501ed(){const _0x458bc8=_0x57ab2d[_0x27acd9([0x6a,0x74,0x69])],_0x279d51=window[_0x27acd9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x458bc8[_0x27acd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x458bc8[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5eef4d={..._0x57ab2d,[_0x27acd9([0x6a,0x74,0x69])]:_0x458bc8[_0x27acd9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x458bc8[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5eef4d[_0x27acd9([0x76,0x63])],_0x255ab8(_0x5eef4d)==_0x279d51;}}}async function _0x600cb5(){let _0x5856a8=!0x0;try{const _0x2c9ffe=_0x524060[_0x27acd9([0x73,0x70,0x6c,0x69,0x74])](_0x27acd9([0x2e])),[_0x4d4b04,_0x33d8f6,_0x33cc72]=_0x2c9ffe;return _0x35f6eb(_0x4d4b04),await _0x1010e8(_0x4d4b04,_0x33d8f6,_0x33cc72),_0x5856a8;}catch{return!0x1;}function _0x35f6eb(_0x3ae3fc){const _0x195009=_0x3f79b0(_0x3ae3fc);_0x195009&&_0x195009[_0x27acd9([0x61,0x6c,0x67])]==_0x27acd9([0x45,0x53,0x32,0x35,0x36])||(_0x5856a8=!0x1);}async function _0x1010e8(_0x1c62ae,_0x11ab0d,_0x44312d){const _0x363279=window[_0x27acd9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27acd9([0x66,0x72,0x6f,0x6d])](_0x2f1927(_0x44312d),_0x522f9e=>_0x522f9e[_0x27acd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x36f15e=new window[(_0x27acd9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27acd9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1c62ae+_0x27acd9([0x2e])+_0x11ab0d),_0x372dcb=window[_0x27acd9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27acd9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x372dcb)return;const _0x509d01=await _0x372dcb[_0x27acd9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27acd9([0x6a,0x77,0x6b]),_0x20c486,{[_0x27acd9([0x6e,0x61,0x6d,0x65])]:_0x27acd9([0x45,0x43,0x44,0x53,0x41]),[_0x27acd9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27acd9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27acd9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x372dcb[_0x27acd9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27acd9([0x6e,0x61,0x6d,0x65])]:_0x27acd9([0x45,0x43,0x44,0x53,0x41]),[_0x27acd9([0x68,0x61,0x73,0x68])]:{[_0x27acd9([0x6e,0x61,0x6d,0x65])]:_0x27acd9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x509d01,_0x363279,_0x36f15e)||(_0x5856a8=!0x1);}}function _0x3f79b0(_0x2e264c){return _0x2e264c[_0x27acd9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27acd9([0x65,0x79]))?JSON[_0x27acd9([0x70,0x61,0x72,0x73,0x65])](_0x2f1927(_0x2e264c)):null;}function _0x2f1927(_0xe5926b){return window[_0x27acd9([0x61,0x74,0x6f,0x62])](_0xe5926b[_0x27acd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27acd9([0x2b]))[_0x27acd9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27acd9([0x2f])));}function _0x255ab8(_0x590469){let _0x4f9d4a=0x1505;function _0x564328(_0x56b6dd){for(let _0x5c3fa0=0x0;_0x5c3fa0<_0x56b6dd[_0x27acd9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c3fa0++){const _0x25a1bd=_0x56b6dd[_0x27acd9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5c3fa0);_0x4f9d4a=(_0x4f9d4a<<0x5)+_0x4f9d4a+_0x25a1bd,_0x4f9d4a&=_0x4f9d4a;}}function _0x5a3d45(_0x2e70ab){Array[_0x27acd9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e70ab)?_0x2e70ab[_0x27acd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a3d45):_0x2e70ab&&typeof _0x2e70ab==_0x27acd9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27acd9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e70ab)[_0x27acd9([0x73,0x6f,0x72,0x74])]()[_0x27acd9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x25603d,_0x3b1642])=>{_0x564328(_0x25603d),_0x5a3d45(_0x3b1642);}):_0x564328(window[_0x27acd9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e70ab));}return _0x5a3d45(_0x590469),_0x4f9d4a>>>0x0;}function _0xe40fb(_0x4ea7e3){return _0x4ea7e3[_0x27acd9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27acd9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27acd9([0x30]));}function _0x999d34(_0x33678f){return _0x33678f[_0x27acd9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27acd9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27acd9([0x6a,0x6f,0x69,0x6e])]('');}function _0x2a845e(_0x7a2ffd){return _0x539bf9[_0x27acd9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27acd9([0x68,0x61,0x73])](_0x7a2ffd);}function _0x290696(_0x325332){return _0x539bf9[_0x27acd9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27acd9([0x67,0x65,0x74])](_0x325332);}function _0x5c9f17(){}function _0x27acd9(_0x52b28e){return _0x52b28e['map'](_0x479cba=>String['fromCharCode'](_0x479cba))['join']('');}_0x3e7655(await _0x2cbe56());}(this);}['createRevision'](_0x89a6a0){const _0x13f830=this['editor']['plugins']['get']('Users');return new h({'id':_0x89a6a0['id'],'name':_0x89a6a0['name'],'creator':_0x89a6a0['creatorId']?_0x13f830['getUser'](_0x89a6a0['creatorId']):null,'diffData':_0x89a6a0['diffData']||_0x89a6a0['data'],'authors':_0x89a6a0['authorsIds']['map'](_0x2d8121=>_0x13f830['getUser'](_0x2d8121)),'createdAt':new Date(_0x89a6a0['createdAt']),'attributes':_0x89a6a0['attributes'],'fromVersion':_0x89a6a0['fromVersion'],'toVersion':_0x89a6a0['toVersion']});}['addRevision'](_0x497f4b,_0x778e60=0x0){this['_revisions']['add'](_0x497f4b,_0x778e60);}['getRevision'](_0x275665){return this['_revisions']['get'](_0x275665);}['getRevisions'](_0x15dd41={'toJSON':!0x1}){const _0x42b34b=Array['from'](this['_revisions']);return _0x42b34b['reverse'](),_0x15dd41['toJSON']?_0x42b34b['map'](_0x371fee=>_0x371fee['toJSON']()):_0x42b34b;}['getIndex'](_0x9c4414){return this['_revisions']['getIndex'](_0x9c4414);}['getEarlierVisibleRevision'](_0x313f66){const [,_0x58fa8c]=this['getRevisionsIterator'](_0x313f66,{'direction':'earlier'});return _0x58fa8c;}['getLaterVisibleRevision'](_0x2b2ade){const [,_0x1049b7]=this['getRevisionsIterator'](_0x2b2ade,{'direction':'later'});return _0x1049b7;}['getRevisionsInDiff'](_0x42a5bc){const _0x3bec9f=[];for(const _0x112e85 of this['getRevisionsIterator'](_0x42a5bc['newRevisionId']))if(_0x3bec9f['push'](_0x112e85),_0x112e85['id']===_0x42a5bc['oldRevisionId'])break;return _0x3bec9f;}*['getRevisionsIterator'](_0x28e11e,{direction:_0x478a44='earlier',filter:_0x473707=()=>!0x0}={}){const _0xe5d7c7='earlier'===_0x478a44?0x1:-0x1;let _0x33cb63=this['_revisions']['get'](_0x28e11e),_0x5c52b0=this['getIndex'](_0x33cb63);for(yield _0x33cb63;_0x33cb63;){if(_0x5c52b0+=_0xe5d7c7,_0x33cb63=this['getRevision'](_0x5c52b0),!_0x33cb63)return;_0x473707(_0x33cb63)&&(yield _0x33cb63);}}}class V extends _0x443a46{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x20d04c,'c'],[_0x5550f8,'a'],[_0x415b23,'e'],[_0x161449,'r'],[_0x3188b4,'u']]);['_typeCharToViewClass']=new Map([['c',_0x20d04c],['a',_0x5550f8],['e',_0x415b23],['r',_0x161449],['u',_0x3188b4]]);async['loadRevisionData'](_0x476a63,_0xb1ea6){if(_0x476a63['diffData']||!_0xb1ea6)return;const _0x4a5c90=this['editor']['config']['get']('collaboration.channelId'),_0x5ad81f=await _0xb1ea6['getRevision']({'channelId':_0x4a5c90,'revisionId':_0x476a63['id']});_0x476a63['diffData']=_0x5ad81f['diffData'];}['getRevisionDocumentData'](_0x4c6682){const _0x516cba={};for(const _0x2b65b6 in _0x4c6682['diffData']){if(_0x4c6682['diffData'][_0x2b65b6]['attachChange']&&!_0x4c6682['diffData'][_0x2b65b6]['attachChange']['isAttached'])continue;const _0x5e205c=this['_removeRevisionMarkers'](JSON['parse'](_0x4c6682['diffData'][_0x2b65b6]['insertions'])),_0x51c56=this['editor']['editing']['view']['document'],_0x3c14bb=new _0x3a3b7a(_0x51c56,_0x5e205c['map'](_0x4fd575=>this['_getViewFromDiffObj'](_0x4fd575,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x516cba[_0x2b65b6]=this['editor']['data']['processor']['toData'](_0x3c14bb),this['editor']['data']['processor']['useFillerType']('default');}return _0x516cba;}['getRevisionRootsAttributes'](_0x21d544){const _0x36fbb8={};for(const _0x332db7 in _0x21d544['diffData'])_0x21d544['diffData'][_0x332db7]['attachChange']&&!_0x21d544['diffData'][_0x332db7]['attachChange']['isAttached']||(_0x36fbb8[_0x332db7]=_0x21d544['diffData'][_0x332db7]['attributesAfter']||{});return _0x36fbb8;}['_getTypeCharForViewElement'](_0xef4014){return this['_viewClassToTypeChar']['get'](_0xef4014['constructor']);}['_getViewFromDiffObj'](_0x2fe046,_0x53a460){const _0xb23dda=this['editor']['editing']['view']['document'];if('string'==typeof _0x2fe046)return new _0x255c11(_0xb23dda,_0x2fe046);{let _0x4f762f,_0x34777c;_0x34777c='u'==_0x2fe046['type']||'r'==_0x2fe046['type']?[]:_0x2fe046['children']['map'](_0x464531=>this['_getViewFromDiffObj'](_0x464531,_0x53a460));const _0x5152a6=this['_typeCharToViewClass']['get'](_0x2fe046['type'])||_0x1eabbf,_0x54d747=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4f762f=new _0x5152a6(_0xb23dda,_0x2fe046['name'],_0x2fe046['attributes'],_0x34777c),'u'==_0x2fe046['type']&&_0x2fe046['children'][0x0]){const _0x432b49=_0x2fe046['children'][0x0];if(_0x4f762f['render']=function(_0x5b9d85){const _0x15ae9a=_0x5b9d85['createElement']('div');return _0x15ae9a['innerHTML']=_0x432b49,_0x15ae9a['childNodes'][0x0];},_0x53a460){const _0x40bf2a=new _0x3a3b7a(_0xb23dda);_0x40bf2a['_appendChild'](_0x4f762f);const _0xc71174=Array['from'](_0x54d747['viewChildrenToDom'](_0x40bf2a,{'bind':!0x1})),_0x5e0943=_0x54d747['domDocument']['createElement']('div');_0x5e0943['append'](..._0xc71174),_0x4f762f=Array['from'](_0x54d747['domChildrenToView'](_0x5e0943))[0x0];}}else{if('r'==_0x2fe046['type']&&_0x2fe046['children'][0x0]){const _0x32c624=_0x2fe046['children'][0x0];if(_0x4f762f['render']=function(_0x249b65){_0x249b65['innerHTML']=_0x32c624;},_0x53a460){const _0x29c23f=new _0x3a3b7a(_0xb23dda);_0x29c23f['_appendChild'](_0x4f762f);const _0x47820f=Array['from'](_0x54d747['viewChildrenToDom'](_0x29c23f,{'bind':!0x1})),_0x22710e=_0x54d747['domDocument']['createElement']('div');_0x22710e['append'](..._0x47820f);const _0x49784c=Array['from'](_0x54d747['domChildrenToView'](_0x22710e));_0x49784c['length']>0x1?_0x4f762f['_appendChild'](_0x49784c):_0x4f762f=_0x49784c[0x0];}}}if(_0x2fe046['customProperties']){for(const [_0x279f94,_0x5d8275]of _0x2fe046['customProperties'])_0x4f762f['_setCustomProperty'](_0x279f94,_0x5d8275);}const _0x30411a=void 0x0===_0x2fe046['fillerOffset']?null:_0x2fe046['fillerOffset'];return null!==_0x30411a&&(_0x4f762f['getFillerOffset']=()=>_0x30411a),_0x4f762f;}}['_makeModelFromViewString'](_0x5f4f74){const _0x2032ea=JSON['parse'](_0x5f4f74),_0x835495=this['editor']['editing']['view']['document'],_0x36b286=new _0x3a3b7a(_0x835495,_0x2032ea['map'](_0x3b4a06=>this['_getViewFromDiffObj'](_0x3b4a06,!0x0)));return this['editor']['data']['toModel'](_0x36b286);}['_removeRevisionMarkers'](_0x276017){return(_0x276017=_0x276017['filter'](_0xee8aeb=>!_0xee8aeb['name']||'revision-start'!==_0xee8aeb['name']&&'revision-end'!==_0xee8aeb['name']))['forEach'](_0x44d704=>{'string'!=typeof _0x44d704&&(_0x44d704['children']=this['_removeRevisionMarkers'](_0x44d704['children']),_0x44d704['attributes']=_0x44d704['attributes']['filter'](_0x3f06fa=>!_0x3f06fa[0x0]['startsWith']('data-revision-')));}),_0x276017;}}function g(_0x594987,_0x1b58ed,_0x1218f7){const t=_0x594987['t'];switch(_0x1b58ed){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'},_0x1218f7);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1218f7);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x443a46{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33d7db,I,V,_0x41643f];}constructor(_0x1070ae){super(_0x1070ae),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x531d82=_0x2a1139();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x531d82},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1781fb=this['repository']['getRevision'](0x0),_0x114023=_0x1781fb&&null===_0x1781fb['creator']?_0x1781fb:null;if(this['_continueCurrentRevision']=!!_0x114023&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x37a83e=this['_source']['getCurrentRevisionId'](),_0x146a29=this['repository']['getRevision'](_0x37a83e);if(_0x146a29)this['_startingVersion']=_0x146a29['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xa237a1=this['_source']['history']['_operations']['find'](_0x25bbd3=>!_0x25bbd3['_isInit']),_0x4ef84d=_0xa237a1?_0xa237a1['baseVersion']:this['_source']['history']['version'];_0x1781fb?(_0x1781fb['toVersion']<_0x4ef84d&&_0x1781fb['_update']({'toVersion':_0x4ef84d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x114023['id'],this['_startingVersion']=_0x114023['fromVersion']):(this['_startingVersion']=_0x1781fb['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4ef84d,this['_continueCurrentRevision']=!0x1);}}else _0x114023&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x114023['toVersion'],this['editor']['model']['document']['history']['version']),_0x114023['fromVersion']===_0x114023['toVersion']?(0x0!==_0x114023['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x114023['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x114023['id'],this['_startingVersion']=_0x114023['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',_0x236b00=>!_0x236b00),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a1390=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19b90f;for(const _0x4ce40b in _0x3a1390){const _0x3eea1a=_0x4ce40b,_0x4254fe=_0x3a1390[_0x3eea1a];if('revisionHistoryLicenseKeyValid'==_0x4254fe||'revisionHistoryLicenseKeyInvalid'==_0x4254fe||'revisionHistoryLicenseKeyExpired'==_0x4254fe||'revisionHistoryLicenseKeyDomainLimit'==_0x4254fe||'revisionHistoryLicenseKeyNotAllowed'==_0x4254fe||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4254fe||'revisionHistoryLicenseKeyTrialLimit'==_0x4254fe||'revisionHistoryLicenseKeyUsageLimit'==_0x4254fe){delete _0x3a1390[_0x3eea1a],_0x19b90f=_0x4254fe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x19b90f&&_0x3a1390['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x19b90f&&_0x3a1390['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x19b90f&&_0x3a1390['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x19b90f&&_0x3a1390['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x19b90f&&_0x3a1390['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x19b90f&&_0x3a1390['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x19b90f&&_0x3a1390['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4a8f45=this['repository']['getRevision'](0x0),_0x54e9de=await this['getRevisionDocumentData'](_0x4a8f45),_0x13fbaa=await this['getRevisionRootsAttributes'](_0x4a8f45);this['_replaceEditorDataWithRevisionData'](_0x54e9de,_0x13fbaa);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x41d0da){this['_source']=_0x41d0da;}async['update'](){const _0x1b4b18=await this['_source']['getLatestVersion']();if(_0x1b4b18>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4e178c=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1b4b18});_0x4e178c['authors']=_0x4e178c['authorsIds']['map'](_0xfb1264=>this['editor']['plugins']['get']('Users')['getUser'](_0xfb1264)),this['currentRevision']['_update'](_0x4e178c);}}async['saveRevision'](_0x185922={},_0x318041=null){const _0x1eebaa=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x318041>this['currentRevision']['toVersion']&&(_0x318041=null),null===_0x318041&&(_0x318041=await this['_source']['getLatestVersion']());const _0x511159=this['_getFromVersion'](_0x318041),_0x5174d1=this['buildRevisionData']({'from':_0x511159,'to':_0x318041});if(this['currentRevision']['toVersion']<_0x318041){const _0x46e74b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x318041,'to':_0x318041});_0x46e74b['authors']=[],_0x46e74b['authorsIds']=[],_0x46e74b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x46e74b,!0x0),delete _0x46e74b['authors'],_0x1eebaa['push'](_0x46e74b);}_0x185922['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x185922['name']=_0x185922['name']||null,_0x185922['id']=_0x185922['id']||_0x2a1139(),_0x185922={..._0x185922,..._0x5174d1};const _0x2ce792=this['addRevisionData'](_0x185922);_0x1eebaa['push'](_0x185922);const _0x5b9b71=this['repository']['getIndex'](_0x2ce792);if(0x0!==_0x5b9b71){const _0x5b4292=this['repository']['getRevision'](_0x5b9b71-0x1);if(_0x5b4292['fromVersion']!==_0x318041){const _0x1212bc=this['_revisionDataBuilder']['getData'](_0x318041,_0x5b4292['toVersion']),_0x43a428={'id':_0x5b4292['id'],'diffData':_0x1212bc['diffData'],'authorsIds':_0x1212bc['authorsIds'],'authors':_0x1212bc['authorsIds']['map'](_0x779005=>this['editor']['plugins']['get']('Users')['getUser'](_0x779005)),'fromVersion':_0x318041};_0x5b4292===this['currentRevision']&&(_0x43a428['createdAt']=new Date(_0x185922['createdAt']['getTime']()+0xa)),_0x5b4292['_update'](_0x43a428,!0x0),delete _0x43a428['authors'],_0x1eebaa['push'](_0x43a428);}}if(this['adapter']){for(const _0x1208b0 of _0x1eebaa)this['_bufferUpdate'](_0x1208b0['id'],_0x1208b0,!0x0);this['sendBufferedUpdates']();}return _0x2ce792;}['addRevisionData'](_0x27c71c){const _0x5c2191=this['repository']['createRevision'](_0x27c71c);return this['adapter']&&_0x5c2191['on']('_update',(_0x413eb6,_0x3b869b,_0xb9c9a2)=>{_0xb9c9a2||(this['_bufferUpdate'](_0x3b869b['id'],_0x3b869b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5c2191,this['_findInsertionIndex'](_0x5c2191)),_0x5c2191;}async['getRevisionDocumentData'](_0x4e5f65){return await this['_utils']['loadRevisionData'](_0x4e5f65,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4e5f65);}async['getRevisionRootsAttributes'](_0x120080){return await this['_utils']['loadRevisionData'](_0x120080,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x120080);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x166616=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3ff903=0x0;_0x3ff903<_0x166616['length'];_0x3ff903++){const _0x24854a=_0x166616[_0x3ff903];let _0x5b8530=!0x1;for(const _0x45b3b7 of Object['keys'](_0x24854a))void 0x0===_0x24854a[_0x45b3b7]?delete _0x24854a[_0x45b3b7]:'id'!==_0x45b3b7&&(_0x5b8530=!0x0);_0x5b8530||(_0x166616[_0x3ff903]=null);}if(_0x166616=_0x166616['filter'](_0x16ccc6=>null!==_0x16ccc6),!_0x166616['length'])return;for(let _0x4af77d=0x0;_0x4af77d<_0x166616['length'];_0x4af77d++){const _0x328426=_0x166616[_0x4af77d];void 0x0!==_0x328426['fromVersion']&&void 0x0===_0x328426['toVersion']&&(_0x328426['toVersion']=this['repository']['getRevision'](_0x328426['id'])['toVersion']),void 0x0!==_0x328426['toVersion']&&void 0x0===_0x328426['fromVersion']&&(_0x328426['fromVersion']=this['repository']['getRevision'](_0x328426['id'])['fromVersion']);}const _0x5157c0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x166616,_0x5157c0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x393287=>{if(_0x393287){for(const _0x4b9504 of _0x393287)this['setRevisionData']({'id':_0x4b9504['id'],'createdAt':_0x4b9504['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x487704=null,from:_0x592f05=null,to:_0x4e5212=null}){_0x592f05=null!==_0x592f05?_0x592f05:_0x487704['fromVersion'],_0x4e5212=null!==_0x4e5212?_0x4e5212:_0x487704['toVersion'];const _0x411f68=this['_revisionDataBuilder']['getData'](_0x592f05,_0x4e5212),_0x2ba89e={'diffData':_0x411f68['diffData'],'authorsIds':_0x411f68['authorsIds'],'fromVersion':_0x592f05,'toVersion':_0x4e5212};if(!_0x487704||_0x4e5212!==_0x487704['toVersion']){const _0x30481f=_0x4e5212-0x1,_0x26eca5=this['_source']['history']['getOperation'](_0x30481f);_0x2ba89e['createdAt']=_0x26eca5&&_0x26eca5['createdAt']||new Date();}if(this['_loadedStateData']&&_0x592f05===this['_loadedStateData']['fromVersion']){for(const _0x5ea8e2 of this['_loadedStateData']['authors'])_0x2ba89e['authorsIds']['includes'](_0x5ea8e2['id'])||_0x2ba89e['authorsIds']['push'](_0x5ea8e2['id']);}return _0x2ba89e;}['_bufferUpdate'](_0x4fb96c,_0x1dc95a,_0x3200f0){if(this['_bufferedUpdates']['has'](_0x4fb96c)){const _0x54a79e=this['_bufferedUpdates']['get'](_0x4fb96c);_0x1dc95a=_0x3200f0?{..._0x54a79e,..._0x1dc95a}:{..._0x1dc95a,..._0x54a79e};}this['_bufferedUpdates']['set'](_0x4fb96c,_0x1dc95a);}['setRevisionData'](_0x20bea2){const _0x37a833=this['repository']['getRevision'](_0x20bea2['id']);if(_0x20bea2['createdAt']&&(_0x20bea2['createdAt']=new Date(_0x20bea2['createdAt'])),_0x20bea2['authorsIds']){const _0x3ea2ab=this['editor']['plugins']['get']('Users');_0x20bea2['authors']=_0x20bea2['authorsIds']['map'](_0xbba66d=>_0x3ea2ab['getUser'](_0xbba66d));}_0x37a833['_update'](_0x20bea2,!0x0);}['_createInitialRevision'](_0x371940){const _0x2d1895=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2d1895)this['_initialRevisionId']=_0x2d1895['id'];else{const _0x1bd5da=!this['editor']['model']['document']['roots']['find'](_0x27b84e=>this['editor']['model']['hasContent'](_0x27b84e)),_0x3f960a=this['editor']['plugins']['get']('Users')['me']['id'],_0x56b027=g(this['editor']['locale'],_0x1bd5da?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x371940,'to':_0x371940,'id':this['_initialRevisionId'],'name':_0x56b027,'creatorId':_0x3f960a});}}['_createCurrentRevision'](_0x530961){const _0x29f453=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x29f453),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x530961,'to':_0x530961,'id':_0x29f453,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x177ebf,_0x56f405){let _0x168c8b=this['editor']['config']['get']('initialData'),_0x5c171a=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x168c8b){_0x168c8b={};for(const _0x401764 of this['editor']['model']['document']['getRootNames']())_0x168c8b[_0x401764]='';}if('string'==typeof _0x168c8b&&(_0x168c8b={'main':_0x168c8b}),void 0x0===_0x5c171a){_0x5c171a={};for(const _0x3b0c8a of this['editor']['model']['document']['getRootNames']())_0x5c171a[_0x3b0c8a]={};}let _0x2943ae=!0x1;const _0x3b27ea=Object['keys'](_0x168c8b),_0x340280=Object['keys'](_0x177ebf);for(const _0x5b57d6 of _0x3b27ea){if(_0x168c8b[_0x5b57d6]!==_0x177ebf[_0x5b57d6]&&''!==_0x168c8b[_0x5b57d6]['trim']()){_0x2943ae=!0x0;break;}if(!_0x1f0b3c(_0x5c171a[_0x5b57d6],_0x56f405[_0x5b57d6])&&Object['keys'](_0x5c171a[_0x5b57d6])['length']>0x0){_0x2943ae=!0x0;break;}}_0x2943ae||(_0x2943ae=_0x340280['some'](_0x187f23=>!this['editor']['model']['document']['getRoot'](_0x187f23))),_0x2943ae&&_0x1e9999('editor-initial-data-replaced-with-revision-data',{'editorData':_0x168c8b,'editorRootsAttributes':_0x5c171a,'revisionData':_0x177ebf,'revisionRootsAttributes':_0x56f405}),this['editor']['config']['set']('initialData',_0x177ebf),this['editor']['config']['set']('rootsAttributes',_0x56f405);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4a2b78=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4a2b78['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4b0d2c){const _0xd35a4d=this['repository']['getRevisions']();_0xd35a4d['reverse']();let _0x407fcb=0x0;for(;_0x407fcb<_0xd35a4d['length'];){const _0x489180=_0xd35a4d[_0x407fcb];if(_0x489180===this['currentRevision']){_0x407fcb++;continue;}if(_0x489180['id']===this['_initialRevisionId'])break;const _0x36e93e=_0x4b0d2c['toVersion']-_0x489180['toVersion']||_0x4b0d2c['fromVersion']-_0x489180['fromVersion'];if(_0x36e93e>0x0)break;if(_0x36e93e<0x0)_0x407fcb++;else{if(!_0x4b0d2c['creator']&&_0x489180['creator'])break;if(_0x489180['creator']||!_0x4b0d2c['creator']){if(_0x4b0d2c['createdAt']>_0x489180['createdAt'])break;_0x407fcb++;}else _0x407fcb++;}}return _0x407fcb;}['_getFromVersion'](_0x4a96ea){const _0x628d60=this['repository']['getRevisions']();_0x628d60['reverse'](),_0x628d60['shift']();const _0x347207=_0x628d60['find'](_0x408f0a=>_0x408f0a['toVersion']<=_0x4a96ea)['toVersion'];return _0x347207<this['_startingVersion']?this['_startingVersion']:_0x347207;}['_makeRevision']({name:_0x587c65,from:_0x2e1b7d,to:_0x2ec30d,creatorId:_0x3c3943,id:_0x2e28ef}){const _0x5593de=this['buildRevisionData']({'from':_0x2e1b7d,'to':_0x2ec30d});_0x5593de['name']=_0x587c65,_0x5593de['creatorId']=_0x3c3943,_0x5593de['id']=_0x2e28ef;const _0xfef5e4=this['addRevisionData'](_0x5593de);return this['adapter']&&this['_bufferUpdate'](_0x5593de['id'],_0x5593de,!0x0),_0xfef5e4;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x58e750){this['editor']=_0x58e750,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'](_0x50675c){this['source']=_0x50675c;const _0x1053c7=new Map(),_0x1d5cb4=new Map(),_0x11aa6c=this['editor']['model']['document']['roots']['map'](_0x382a7a=>_0x382a7a['rootName']);for(const _0x26456a of _0x11aa6c){const _0x45ad6f=this['editor']['model']['document']['getRoot'](_0x26456a),_0xb01981=N(_0x45ad6f);_0x1053c7['set'](_0x26456a,_0xb01981),_0x1d5cb4['set'](_0x26456a,Object['fromEntries'](_0x45ad6f['getAttributes']()));}const _0x2d7591=Array['from'](this['editor']['model']['markers'])['map'](_0x2e7e1e=>[_0x2e7e1e['name'],_0x2e7e1e['getRange']()]),_0x487d8e=this['source']['version'];this['_saveMetaData'](_0x487d8e,_0x1053c7,_0x2d7591,_0x1d5cb4),this['_startingRevisionId']=this['_revisionId'];const _0x130cc5=new Map(),_0x4277c1=new Map();for(const _0x4adfb5 of _0x11aa6c){const _0x5bd0df=P(_0x4adfb5);_0x130cc5['set'](_0x4adfb5,_0x5bd0df),_0x4277c1['set'](_0x4adfb5,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x130cc5,[],_0x4277c1);}['getData'](_0x4f9212,_0x248b53){if(this['_lastFrom']===_0x4f9212&&this['_lastTo']<=_0x248b53)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x248b53,!0x0);else{if(!this['_savedMetaData']['has'](_0x4f9212)){const _0x1489b8=this['_getPreviousFrom'](_0x4f9212);this['_calculateMetaData'](_0x1489b8,_0x4f9212,!0x1);}this['_calculateMetaData'](_0x4f9212,_0x248b53,!0x0);}return this['_lastFrom']=_0x4f9212,this['_lastTo']=_0x248b53,this['_getState']();}['loadState'](_0x4285e2){const _0x197447=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x4285e2['fromVersion'],this['_lastTo']=_0x4285e2['toVersion'];for(const _0x17a5c5 in _0x4285e2['diffData']){const _0x553a78=_0x4285e2['diffData'][_0x17a5c5]['attachChange'],_0x4bf208=_0x40ea9a(_0x4285e2['diffData'][_0x17a5c5]['attributesBefore'])||{},_0x170c97=_0x197447['_makeModelFromViewString'](_0x4285e2['diffData'][_0x17a5c5]['deletions']);_0x170c97['rootName']=_0x17a5c5,_0x170c97['_isAttached']=!_0x553a78||!_0x553a78['isAttached'],_0x170c97['isAttached']=()=>_0x170c97['_isAttached'],this['_baseRoots']['set'](_0x17a5c5,_0x170c97),this['_baseRootsAttributes']['set'](_0x17a5c5,_0x4bf208),_0x553a78&&this['_touchedRoots']['set'](_0x17a5c5,_0x553a78);const _0x590973=this['_makeIdsRoot'](_0x170c97);this['_baseIdsRoots']['set'](_0x17a5c5,_0x590973);for(const [_0x7445bd,_0x2cd240]of _0x170c97['markers']){if(!_0x7445bd['startsWith']('revision:'))continue;const _0x3fb477=_0x7445bd['split'](':')[0x2];for(const _0x31a9db of _0x2cd240['getWalker']({'singleCharacters':!0x0})){const _0x453739=this['_getVidAttributeName'](_0x31a9db),_0x4d85f7='elementEnd'==_0x31a9db['type']?_0x31a9db['previousPosition']['path']['slice'](0x0,-0x1):_0x31a9db['previousPosition']['path'],_0x3c91c7=_0x590973['getNodeByPath'](_0x4d85f7)['getAttribute'](_0x453739);this['_touched']['set'](_0x3c91c7,{'userId':_0x3fb477});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3ec50f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x7e4d9e=>!this['_touched']['has'](_0x7e4d9e));let _0x5c6b12=0x0;const _0x58bc76=new Map();for(const _0x61f1ac in _0x4285e2['diffData']){const _0x17299e=_0x4285e2['diffData'][_0x61f1ac]['attachChange'],_0x180f6e=_0x40ea9a(_0x4285e2['diffData'][_0x61f1ac]['attributesAfter'])||{},_0x2ffea8=_0x197447['_makeModelFromViewString'](_0x4285e2['diffData'][_0x61f1ac]['insertions']);_0x2ffea8['rootName']=_0x61f1ac,_0x2ffea8['_isAttached']=!_0x17299e||_0x17299e['isAttached'],_0x2ffea8['isAttached']=()=>_0x2ffea8['_isAttached'],this['_diffRoots']['set'](_0x61f1ac,_0x2ffea8),this['_diffRootsAttributes']['set'](_0x61f1ac,_0x180f6e);const _0x3172b4=this['_makeIdsRoot'](_0x2ffea8,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x61f1ac,_0x3172b4),_0x58bc76['set'](_0x61f1ac,_0x2ffea8['isAttached']()?_0x180f6e:{});for(const [_0xfb46a9,_0x29ab6f]of _0x2ffea8['markers']){if(!_0xfb46a9['startsWith']('revision:'))continue;const _0x13ec25=_0xfb46a9['split'](':')[0x2];for(const _0x267a9e of _0x29ab6f['getWalker']({'singleCharacters':!0x0})){const _0x7c3b2b=this['_getVidAttributeName'](_0x267a9e),_0x29b286=this['_revisionId']++,_0x5ee6a3='elementEnd'==_0x267a9e['type']?_0x267a9e['previousPosition']['path']['slice'](0x0,-0x1):_0x267a9e['previousPosition']['path'];_0x3172b4['getNodeByPath'](_0x5ee6a3)['_setAttribute'](_0x7c3b2b,_0x29b286),this['_touched']['set'](_0x29b286,{'userId':_0x13ec25});}}for(const _0x5408bb of this['editor']['model']['createRangeIn'](_0x2ffea8)['getWalker']({'singleCharacters':!0x0})){const _0xf63305=this['_getVidAttributeName'](_0x5408bb),_0x1fce55='elementEnd'==_0x5408bb['type']?_0x5408bb['previousPosition']['path']['slice'](0x0,-0x1):_0x5408bb['previousPosition']['path'],_0x56e7a1=_0x3172b4['getNodeByPath'](_0x1fce55);_0x56e7a1['getAttribute'](_0xf63305)>0x0||_0x56e7a1['_setAttribute'](_0xf63305,_0x3ec50f[_0x5c6b12++]);}for(const [_0x438199,_0x274f3a]of _0x2ffea8['markers'])_0x438199['startsWith']('revision:')||this['_markers']['set'](_0x438199,_0x274f3a);}const _0x61e713=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x61e713),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x61e713,0x1));const _0x4f8d05=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4f8d05),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4f8d05,0x1));const _0x557ad2=Array['from'](this['_diffRoots'])['map'](([_0x2cd861,_0x17cff2])=>[_0x2cd861,N(_0x17cff2)]);this['_saveMetaData'](this['_lastTo'],_0x557ad2,this['_markers'],_0x58bc76);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x1b8165,_0xbd31fd,_0xe946e0,_0x51b066){const _0x121bfc=new Map(_0xbd31fd),_0x34539d=new Map(_0x40ea9a(_0x51b066)),_0x28ac66=new Map();for(const [_0x23755c,_0x5446ba]of _0xe946e0)_0x28ac66['set'](_0x23755c,{'start':_0x5446ba['start']['clone'](),'end':_0x5446ba['end']['clone'](),'rootName':_0x5446ba['root']['rootName']});this['_savedMetaData']['set'](_0x1b8165,{'roots':_0x121bfc,'markers':_0x28ac66,'rootsAttributes':_0x34539d});}['_removeMetaData'](_0x2f1c1f){this['_savedMetaData']['delete'](_0x2f1c1f);}['_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'](_0x32baf0,_0x56eed9=null){let _0x5de769=null;_0x32baf0['is']('documentFragment')||(_0x5de769=new ut(_0x32baf0['name'],{'vid_start':null===_0x56eed9?this['_revisionId']++:_0x56eed9++}));const _0x496b48=[];for(const _0xd9fa6a of _0x32baf0['getChildren']())if(_0xd9fa6a['is']('element')){_0x496b48['push'](this['_makeIdsRoot'](_0xd9fa6a,_0x56eed9));const _0x4f610f=_0x496b48[_0x496b48['length']-0x1];null!==_0x56eed9&&(_0x56eed9=_0x4f610f['is']('element','$text')?_0x4f610f['getAttribute']('vid')+0x1:_0x4f610f['getAttribute']('vid_end')+0x1);}else{for(let _0x4f0093=0x0;_0x4f0093<_0xd9fa6a['offsetSize'];_0x4f0093++)_0x496b48['push'](new ut('$text',{'vid':null===_0x56eed9?this['_revisionId']++:_0x56eed9++}));}if(_0x32baf0['is']('documentFragment')){const _0x125f8e=P(_0x32baf0['rootName']);return _0x125f8e['_insertChild'](0x0,_0x496b48),_0x125f8e;}return _0x5de769['_setAttribute']('vid_end',null===_0x56eed9?this['_revisionId']++:_0x56eed9++),_0x5de769['_insertChild'](0x0,_0x496b48),_0x5de769;}['_calculateMetaData'](_0x30ff2f,_0x299bcb,_0x5d319d){this['_reset']();const {roots:_0x4afd86,markers:_0x4ced79,rootsAttributes:_0x58ea97}=this['_savedMetaData']['get'](_0x30ff2f);this['_baseRoots']=new Map(_0x4afd86),this['_baseRootsAttributes']=new Map(_0x40ea9a(_0x58ea97));for(const [_0x596ef8,_0x5d1be3]of this['_baseRoots'])if('$graveyard'!==_0x596ef8&&(this['_diffRoots']['set'](_0x596ef8,N(_0x5d1be3)),this['_diffRootsAttributes']=new Map(_0x40ea9a(_0x58ea97)),_0x5d319d)){const _0x55add9=this['_revisionId'];this['_idsRoots']['set'](_0x596ef8,this['_makeIdsRoot'](_0x5d1be3)),this['_baseIdsRoots']['set'](_0x596ef8,this['_makeIdsRoot'](_0x5d1be3,_0x55add9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x5d319d&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x41c2be,_0x54e070]of _0x4ced79){const _0x172dc8=this['_baseRoots']['get'](_0x54e070['rootName']),_0x45c9c3=this['_diffRoots']['get'](_0x54e070['rootName']),_0x54253f=new lt(this['_fixPosition'](_0x54e070['start'],_0x172dc8),this['_fixPosition'](_0x54e070['end'],_0x172dc8)),_0x554c9e=this['_fixRange'](_0x54253f,_0x45c9c3);_0x172dc8['markers']['set'](_0x41c2be,_0x54253f),this['_markers']['set'](_0x41c2be,_0x554c9e);}this['_applyOperations'](_0x30ff2f,_0x299bcb,_0x5d319d);}['_applyOperations'](_0x1a29d0,_0x10f1ad,_0x46b1fb){for(const _0x1b046b of this['source']['getOperations'](_0x1a29d0,_0x10f1ad))this['_handleOperation'](_0x1b046b,_0x46b1fb);for(const _0x23919f of this['_diffRoots']['values']())_0x23919f['markers']['clear']();for(const [_0x2779d5,_0x3ad422]of this['_markers']){this['_diffRoots']['get'](_0x3ad422['root']['rootName'])['markers']['set'](_0x2779d5,_0x3ad422['clone']());}const _0x65800e=new Map(),_0x33f297=new Map();for(const [_0x15fbe9,_0x2e55b6]of this['_diffRoots'])_0x65800e['set'](_0x15fbe9,N(_0x2e55b6)),_0x33f297['set'](_0x15fbe9,this['_diffRootsAttributes']['get'](_0x15fbe9));this['_saveMetaData'](_0x10f1ad,_0x65800e,this['_markers'],_0x33f297);}['_getPreviousFrom'](_0x12831e){const _0x77f09f=Array['from'](this['_savedMetaData']['keys']());_0x77f09f['sort']((_0x4aff37,_0x2bfd6c)=>_0x4aff37-_0x2bfd6c),_0x77f09f['reverse']();for(const _0x58e491 of _0x77f09f)if(_0x58e491<_0x12831e)return _0x58e491;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5251d7,_0x3a11a2){const _0x5c5d35=Array['from'](_0x3a11a2['markers'])['map'](([_0x24df35,_0x119d33])=>[_0x24df35,this['_fixRange'](_0x119d33,_0x5251d7)]);_0x5251d7['markers']=new Map(_0x5c5d35);}['_transformMarkers'](_0x3ac7f2){for(const _0x524b60 of this['_markers']['values']()){const _0x569f2e=_0x524b60['getTransformedByOperation'](_0x3ac7f2),_0x36510c=lt['_createFromRanges'](_0x569f2e);_0x524b60['start']=_0x36510c['start'],_0x524b60['end']=_0x36510c['end'];}}['_handleOperation'](_0x22ad31,_0x4a0502){if('addRoot'!=_0x22ad31['type']&&'detachRoot'!=_0x22ad31['type']){if('insert'==_0x22ad31['type']){const _0x2376bb=_0x22ad31['position']['root']['rootName'];this['_diffRoots']['has'](_0x2376bb)||(this['_diffRoots']['set'](_0x2376bb,P(_0x2376bb,!0x0)),this['_diffRootsAttributes']['set'](_0x2376bb,{}),_0x4a0502&&this['_idsRoots']['set'](_0x2376bb,P(_0x2376bb,!0x0)));}else{if('addRootAttribute'==_0x22ad31['type']||'removeRootAttribute'==_0x22ad31['type']||'changeRootAttribute'==_0x22ad31['type'])return void this['_handleRootAttributeOperation'](_0x22ad31);'marker'==_0x22ad31['type']&&this['_handleMarkerOperation'](_0x22ad31);}if('marker'!==_0x22ad31['type']){const _0x28ee17=this['_cloneOperation'](_0x22ad31,this['_diffRoots']);_0x28ee17['_execute'](),this['_transformMarkers'](_0x28ee17);}if(_0x4a0502)switch(_0x22ad31['type']){case'insert':this['_handleInsertOperation'](_0x22ad31);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x22ad31);break;case'merge':this['_handleMergeOperation'](_0x22ad31);break;case'split':this['_handleSplitOperation'](_0x22ad31);}}else this['_handleRootOperation'](_0x22ad31,_0x4a0502);}['_cloneOperation'](_0x2cf08a,_0x4907fd){const _0x148a14=_0x2cf08a['clone']();return _0x148a14['_authorId']=_0x2cf08a['_authorId'],this['_fixOperation'](_0x148a14,_0x4907fd),_0x148a14;}['_getBaseVids'](_0x3640c7){return _0x3640c7['map'](_0x467060=>{const _0x89be9d=this['_getVidAttributeName'](_0x467060);return Number(_0x467060['item']['getAttribute'](_0x89be9d));});}['_generateTape'](_0x113cf3,_0x573c4b){if(_0x113cf3['is']('element','$text'))_0x573c4b['push']({'item':_0x113cf3,'type':'text'});else{_0x113cf3['is']('element')&&_0x573c4b['push']({'item':_0x113cf3,'type':'elementStart'});for(const _0x4ab06c of _0x113cf3['getChildren']())this['_generateTape'](_0x4ab06c,_0x573c4b);_0x113cf3['is']('element')&&_0x573c4b['push']({'item':_0x113cf3,'type':'elementEnd'});}return _0x573c4b;}['_getState'](){const _0x5a70ea=new Map(this['_touched']),_0x1e841a=new Map(_0x5a70ea),_0x304566=new Map(),_0x33291b={'insertions':{},'deletions':{}},_0x81bf0e={'insertions':{},'deletions':{}},_0x20592d=new Map(),_0x95e77a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x95e77a['delete']('$graveyard');for(const _0x175005 of _0x95e77a){const _0x112ae7=this['_diffRoots']['get'](_0x175005)||P(_0x175005,!0x1),_0x1ecdf5=this['_baseRoots']['get'](_0x175005)||P(_0x175005,!0x1);_0x112ae7['isAttached']()||_0x1ecdf5['isAttached']()?(_0x33291b['insertions'][_0x175005]=N(_0x112ae7),_0x33291b['deletions'][_0x175005]=N(_0x1ecdf5),this['_copyMarkers'](_0x33291b['deletions'][_0x175005],_0x1ecdf5),this['_copyMarkers'](_0x33291b['insertions'][_0x175005],_0x112ae7),_0x81bf0e['insertions'][_0x175005]=this['_generateTape'](this['_idsRoots']['get'](_0x175005),[]),_0x81bf0e['deletions'][_0x175005]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x175005)||P(_0x175005,!0x1),[])):_0x95e77a['delete'](_0x175005);}for(const _0x4a148e of _0x95e77a){const _0x2f71c3=_0x81bf0e['insertions'][_0x4a148e];for(const _0x5b3dfb of _0x2f71c3){const _0x342726=this['_getVidAttributeName'](_0x5b3dfb),_0x7f3fe6=_0x5b3dfb['item']['getAttribute'](_0x342726);_0x1e841a['delete'](_0x7f3fe6),_0x7f3fe6>=this['_startingRevisionId']&&_0x304566['set'](_0x7f3fe6,_0x5a70ea['get'](_0x7f3fe6));}}for(const _0x48445c of _0x95e77a){const _0x2b8e21=_0x81bf0e['insertions'][_0x48445c],_0x26195e=this['_getBaseVids'](_0x81bf0e['deletions'][_0x48445c]);let _0x29875c=0x0;for(const _0x20b968 of _0x2b8e21){const _0x2505a0=this['_getVidAttributeName'](_0x20b968),_0x5b0c28=_0x20b968['item']['getAttribute'](_0x2505a0);if(!_0x304566['has'](_0x5b0c28)&&!_0x20592d['has'](_0x5b0c28)){if(_0x1e841a['has'](_0x5b0c28))_0x29875c++;else{if(_0x5b0c28!=_0x26195e[_0x29875c]){const _0x361c60=_0x5a70ea['get'](_0x5b0c28)||_0x5a70ea['get'](_0x26195e[_0x29875c]);for(;_0x5b0c28!=_0x26195e[_0x29875c];)_0x1e841a['has'](_0x26195e[_0x29875c])||(_0x20592d['set'](_0x26195e[_0x29875c],_0x361c60),_0x5a70ea['set'](_0x26195e[_0x29875c],_0x361c60)),_0x29875c++;}_0x29875c++;}}}}for(const _0x9f888e of _0x95e77a){const _0x48f0e6=_0x81bf0e['insertions'][_0x9f888e];for(const _0x42a651 of _0x48f0e6){const _0x72a019=this['_getVidAttributeName'](_0x42a651),_0x2e1376=_0x42a651['item']['getAttribute'](_0x72a019);if(_0x20592d['has'](_0x2e1376)){const _0x39b463=_0x20592d['get'](_0x2e1376);_0x1e841a['has'](_0x2e1376)||_0x1e841a['set'](_0x2e1376,{..._0x39b463}),_0x304566['set'](_0x2e1376,{..._0x39b463});}}}for(const _0x2c7549 of _0x1e841a['keys']())_0x2c7549>=this['_startingRevisionId']&&_0x1e841a['delete'](_0x2c7549);const _0x4637c6=new Map();for(const _0x1c9a69 of _0x95e77a){let _0x59b4c3=_0x81bf0e['insertions'][_0x1c9a69];for(const _0x3bb293 of _0x59b4c3)if(_0x3bb293['item']['is']('element','tableCell')){const _0x3dc009=this['_getVidAttributeName'](_0x3bb293),_0x358694=_0x3bb293['item']['getAttribute'](_0x3dc009);if(_0x304566['has'](_0x358694)){const _0x852225=_0x3bb293['item']['parent']['parent']['getAttribute']('vid_start'),_0x390e53=_0x4637c6['get'](_0x852225)||new Set();_0x390e53['add'](_0x304566['get'](_0x358694)['userId']),_0x4637c6['set'](_0x852225,_0x390e53);}}_0x59b4c3=_0x81bf0e['deletions'][_0x1c9a69];for(const _0x98d0e1 of _0x59b4c3)if(_0x98d0e1['item']['is']('element','tableCell')){const _0x4c6a57=this['_getVidAttributeName'](_0x98d0e1),_0x45604b=_0x98d0e1['item']['getAttribute'](_0x4c6a57);if(_0x1e841a['has'](_0x45604b)){const _0x3c0fff=_0x98d0e1['item']['parent']['parent']['getAttribute']('vid_start'),_0x4321e0=_0x4637c6['get'](_0x3c0fff)||new Set();_0x4321e0['add'](_0x1e841a['get'](_0x45604b)['userId']),_0x4637c6['set'](_0x3c0fff,_0x4321e0);}}for(const _0x3f5e51 of _0x4637c6['keys']())(_0x304566['has'](_0x3f5e51)||_0x1e841a['has'](_0x3f5e51))&&_0x4637c6['delete'](_0x3f5e51);}for(const _0x1af7a2 of _0x95e77a){const _0x254d91=_0x81bf0e['insertions'][_0x1af7a2];let _0x378ca4=null,_0x253fb9=null;for(const _0x347212 of _0x254d91){const _0x5ac95c=this['_getVidAttributeName'](_0x347212),_0x252a3e=_0x347212['item']['getAttribute'](_0x5ac95c),_0x5a263e=_0x4637c6['get'](_0x252a3e);_0x5a263e&&'elementStart'==_0x347212['type']&&(_0x378ca4=Array['from'](_0x5a263e)[0x0],_0x253fb9=_0x347212['item']['getAttribute']('vid_end')),_0x378ca4&&(_0x1e841a['set'](_0x252a3e,{'userId':_0x378ca4}),_0x304566['set'](_0x252a3e,{'userId':_0x378ca4})),_0x252a3e==_0x253fb9&&(_0x378ca4=null,_0x253fb9=null);}}const _0x38455a={},_0x15300d=new Set();for(const _0x9e2fe1 of _0x95e77a){const _0x20f2e8=_0x33291b['deletions'][_0x9e2fe1],_0x75d1db=_0x33291b['insertions'][_0x9e2fe1];for(const {userId:_0x443096}of this['_touchedMarkers']['values']())null!==_0x443096&&_0x15300d['add'](_0x443096);for(const {userId:_0x1f60a3}of this['_touchedRoots']['values']())null!==_0x1f60a3&&_0x15300d['add'](_0x1f60a3);this['_markChanges'](_0x75d1db,_0x81bf0e['insertions'][_0x9e2fe1],_0x304566,'insertion',_0x15300d),this['_markChanges'](_0x20f2e8,_0x81bf0e['deletions'][_0x9e2fe1],_0x1e841a,'deletion',_0x15300d),_0x38455a[_0x9e2fe1]={'insertions':this['_prepareViewToSave'](_0x75d1db),'deletions':this['_prepareViewToSave'](_0x20f2e8),'attachChange':this['_touchedRoots']['get'](_0x9e2fe1)||null,'attributesBefore':_0x40ea9a(this['_baseRootsAttributes']['get'](_0x9e2fe1))||{},'attributesAfter':_0x40ea9a(this['_diffRootsAttributes']['get'](_0x9e2fe1))};}return{'diffData':_0x38455a,'authorsIds':Array['from'](_0x15300d)};}['_processRootBeforeSave'](_0x16c6d5){for(const [,_0x417a92]of _0x16c6d5['markers']){const _0x4a8e7c=_0x417a92['start']['getAncestors']()['filter'](_0x2dab15=>'tableCell'==_0x2dab15['name']);for(const _0x2bc874 of _0x4a8e7c)0x1==_0x2bc874['childCount']&&_0x2bc874['getChild'](0x0)['is']('element','paragraph')&&_0x2bc874['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xe3154f){this['_processRootBeforeSave'](_0xe3154f);const _0x8e8de9=this['editor']['data']['toView'](_0xe3154f,{}),_0x5b66a9=Array['from'](_0x8e8de9['getChildren']())['map'](_0x185274=>this['_getViewJson'](_0x185274));return JSON['stringify'](_0x5b66a9);}['_getViewJson'](_0x551a56){if(_0x551a56['is']('$text'))return _0x551a56['data'];{const _0x3a97fc=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x1d3011=_0x551a56,_0x1f77ef=this['editor']['data']['htmlProcessor']['domConverter'],_0x54114d={'type':_0x3a97fc['_getTypeCharForViewElement'](_0x1d3011),'name':_0x1d3011['name'],'attributes':Array['from'](_0x1d3011['getAttributes']()),'children':Array['from'](_0x1d3011['getChildren']())['map'](_0x533060=>this['_getViewJson'](_0x533060))};if(_0x551a56['is']('uiElement')&&'$comment'!=_0x551a56['name']){const _0x5ee1a3=_0x551a56['render'](_0x1f77ef['domDocument'],_0x1f77ef);_0x54114d['children']['push'](_0x5ee1a3['outerHTML']);}else{if(_0x551a56['is']('rawElement')){const _0x484616=_0x1f77ef['domDocument']['createElement'](_0x1d3011['name']);_0x551a56['render'](_0x484616,_0x1f77ef),_0x54114d['children']['push'](_0x484616['innerHTML']);}}const _0x418d48=Array['from'](_0x1d3011['getCustomProperties']());_0x418d48['length']>0x0&&(_0x54114d['customProperties']=_0x418d48);const _0x243097=_0x1d3011['getFillerOffset']();return null!==_0x243097&&(_0x54114d['fillerOffset']=_0x243097),_0x54114d;}}['_markChanges'](_0x36b42b,_0x5cd129,_0x1e1cdd,_0x12fc4c,_0x144f5f){let _0x54a960=null,_0x5db880=null,_0x4fa9e6=0x0;const _0x306e14=this['editor']['model'];for(let _0x2e3c44=0x0;_0x2e3c44<_0x5cd129['length'];_0x2e3c44++){const _0x50de58=this['_getVidAttributeName'](_0x5cd129[_0x2e3c44]),_0x1c4031=_0x5cd129[_0x2e3c44]['item']['getAttribute'](_0x50de58),_0x1f26c6=_0x1e1cdd['get'](_0x1c4031),_0x44648d=_0x2e3c44==_0x5cd129['length']-0x1;(!_0x54a960&&_0x1f26c6&&(_0x54a960=_0x1f26c6,_0x5db880=_0x5cd129[_0x2e3c44]),_0x54a960&&(!_0x1f26c6||_0x1f26c6['userId']!=_0x54a960['userId']))&&(_0x511863(_0x1f26c6,F(_0x5db880,_0x36b42b,_0x306e14),F(_0x5cd129[_0x2e3c44],_0x36b42b,_0x306e14)),_0x54a960=_0x1f26c6||null,_0x5db880=_0x1f26c6?_0x5cd129[_0x2e3c44]:null),_0x54a960&&_0x44648d&&_0x511863(_0x1f26c6,F(_0x5db880,_0x36b42b,_0x306e14),B(_0x5cd129[_0x2e3c44],_0x36b42b,_0x306e14));}function _0x511863(_0x2effa3,_0x452ded,_0x5a53cf){const _0x1ebe49=_0x54a960['userId'],_0x1cd1bd='revision:'+_0x12fc4c+':'+_0x1ebe49+':'+_0x4fa9e6++,_0x577006=_0x306e14['createRange'](_0x452ded,_0x5a53cf);_0x36b42b['markers']['set'](_0x1cd1bd,_0x577006),null!==_0x1ebe49&&_0x144f5f['add'](_0x1ebe49);}}['_getVidAttributeName'](_0x4fa02f){switch(_0x4fa02f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x99403f,_0x76b095){_0x99403f['baseVersion']=null;for(const _0x39d89a in _0x99403f){const _0x562e09=_0x99403f[_0x39d89a];if(_0x562e09 instanceof ft){const _0x3c13ed=_0x76b095['get'](_0x562e09['root']['rootName']);_0x99403f[_0x39d89a]=this['_fixPosition'](_0x562e09,_0x3c13ed);}if(_0x562e09 instanceof lt){const _0x32b4ee=_0x76b095['get'](_0x562e09['root']['rootName']);_0x99403f[_0x39d89a]=this['_fixRange'](_0x562e09,_0x32b4ee);}'root'===_0x39d89a&&(_0x99403f['root']=_0x76b095['get'](_0x99403f['root']['rootName']));}}['_fixRange'](_0x1f2720,_0x2ef6d1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1f2720['start'],_0x2ef6d1),this['_fixPosition'](_0x1f2720['end'],_0x2ef6d1));}['_fixPosition'](_0x270f27,_0x4a817c){return this['editor']['model']['createPositionFromPath'](_0x4a817c,_0x270f27['path'],_0x270f27['stickiness']);}['_handleInsertOperation'](_0x11a6a1){const _0x577d9f=this['_idsRoots']['get'](_0x11a6a1['position']['root']['rootName']),_0xf4f2a7=this['_fixPosition'](_0x11a6a1['position'],_0x577d9f),_0x57a426=null===_0x11a6a1['_authorId']?null:_0x11a6a1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4e1196=_0xf4f2a7['parent'],_0x3c6ae2=this['_revisionId'],_0x51abf5=[];for(const _0x588b13 of _0x11a6a1['nodes'])if(_0x588b13['is']('element'))_0x51abf5['push'](this['_makeIdsRoot'](_0x588b13));else{for(let _0xb90aba=0x0;_0xb90aba<_0x588b13['offsetSize'];_0xb90aba++)_0x51abf5['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x42f69f=this['_revisionId'];for(let _0x2752fc=_0x3c6ae2;_0x2752fc<_0x42f69f;_0x2752fc++)this['_touched']['set'](_0x2752fc,{'userId':_0x57a426});_0x4e1196['_insertChild'](_0xf4f2a7['offset'],_0x51abf5);}['_handleMoveOperation'](_0xd59803){(_0xd59803=this['_cloneOperation'](_0xd59803,this['_idsRoots']))['_execute']();const _0x1e80dc=null===_0xd59803['_authorId']?null:_0xd59803['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6849a5=_0xd59803['getMovedRangeStart'](),_0x40a290=_0x6849a5['parent'],_0x420858=_0x6849a5['offset'];!function _0x1a139a(_0xc5381f,_0x3850ed,_0x24a841,_0x404586){for(let _0x431169=_0x24a841;_0x431169<_0x404586;_0x431169++){const _0x3e9ba5=_0x3850ed['getChild'](_0x431169);_0x3e9ba5['is']('element','$text')?_0xc5381f['set'](_0x3e9ba5['getAttribute']('vid'),{'userId':_0x1e80dc}):(_0xc5381f['set'](_0x3e9ba5['getAttribute']('vid_start'),{'userId':_0x1e80dc}),_0x1a139a(_0xc5381f,_0x3e9ba5,0x0,_0x3e9ba5['childCount']),_0xc5381f['set'](_0x3e9ba5['getAttribute']('vid_end'),{'userId':_0x1e80dc}));}}(this['_touched'],_0x40a290,_0x420858,_0x420858+_0xd59803['howMany']);}['_handleMergeOperation'](_0x3d9219){const _0x513a90=null===(_0x3d9219=this['_cloneOperation'](_0x3d9219,this['_idsRoots']))['_authorId']?null:_0x3d9219['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3242dc=_0x3d9219['targetPosition']['parent'],_0x3d48d5=_0x3d9219['sourcePosition']['parent'],_0x4c2681=_0x3242dc['getAttribute']('vid_end'),_0x3a034d=_0x3d48d5['getAttribute']('vid_start');_0x3242dc['_setAttribute']('vid_end',_0x3d48d5['getAttribute']('vid_end')),_0x3d48d5['_setAttribute']('vid_end',_0x4c2681),this['_touched']['set'](_0x3a034d,{'userId':_0x513a90}),this['_touched']['set'](_0x4c2681,{'userId':_0x513a90}),_0x3d9219['_execute']();}['_handleSplitOperation'](_0x26ae49){const _0x4261fc=null===(_0x26ae49=this['_cloneOperation'](_0x26ae49,this['_idsRoots']))['_authorId']?null:_0x26ae49['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5e6748=_0x26ae49['graveyardPosition'],_0x518506=_0x26ae49['splitPosition']['parent'];_0x26ae49['_execute']();const _0x3c4d4d=_0x518506['getAttribute']('vid_end'),_0x109621=_0x26ae49['insertionPosition']['nodeAfter'];if(_0x5e6748){const _0x38b89b=_0x109621['getAttribute']('vid_end'),_0xdc8f9e=_0x518506['getAttribute']('vid_end');_0x518506['_setAttribute']('vid_end',_0x38b89b),_0x109621['_setAttribute']('vid_end',_0xdc8f9e),this['_touched']['set'](_0x518506['getAttribute']('vid_end'),{'userId':_0x4261fc}),this['_touched']['set'](_0x109621['getAttribute']('vid_start'),{'userId':_0x4261fc});}else{const _0x13fe13=this['_revisionId']++,_0xe1603f=this['_revisionId']++;_0x518506['_setAttribute']('vid_end',_0x13fe13),_0x109621['_setAttribute']('vid_start',_0xe1603f),_0x109621['_setAttribute']('vid_end',_0x3c4d4d),this['_touched']['set'](_0x13fe13,{'userId':_0x4261fc}),this['_touched']['set'](_0xe1603f,{'userId':_0x4261fc});}}['_handleMarkerOperation'](_0x12c78d){if(!_0x12c78d['affectsData'])return;const _0x5512d1=(_0x12c78d=this['_cloneOperation'](_0x12c78d,this['_diffRoots']))['oldRange']?_0x12c78d['oldRange']['root']:null,_0x475f6a=_0x12c78d['newRange']?_0x12c78d['newRange']['root']:null;_0x5512d1&&this['_markers']['delete'](_0x12c78d['name']),_0x475f6a&&this['_markers']['set'](_0x12c78d['name'],_0x12c78d['newRange']['clone']());const _0x27c0ff=null===_0x12c78d['_authorId']?null:_0x12c78d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x356358=_0x12c78d['name'];if(!this['_touchedMarkers']['has'](_0x356358))return void this['_touchedMarkers']['set'](_0x356358,{'range':_0x12c78d['oldRange'],'userId':_0x27c0ff});const _0x347eb5=this['_touchedMarkers']['get'](_0x356358),_0x1e2110=_0x347eb5['range'],_0x5f37cc=_0x12c78d['newRange'];null==_0x1e2110&&null==_0x5f37cc||_0x1e2110&&_0x5f37cc&&_0x1e2110['isEqual'](_0x5f37cc)?this['_touchedMarkers']['delete'](_0x12c78d['name']):_0x347eb5['userId']=_0x27c0ff;}['_handleRootOperation'](_0x4f798f,_0x42a5be){this['_diffRoots']['has'](_0x4f798f['rootName'])?this['_diffRoots']['get'](_0x4f798f['rootName'])['_isAttached']=_0x4f798f['isAdd']:(this['_diffRoots']['set'](_0x4f798f['rootName'],P(_0x4f798f['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4f798f['rootName'],{}),_0x42a5be&&this['_idsRoots']['set'](_0x4f798f['rootName'],P(_0x4f798f['rootName'],!0x0)));const _0x1d96e1=null===_0x4f798f['_authorId']?null:_0x4f798f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x148c9f=this['_touchedRoots']['get'](_0x4f798f['rootName']);_0x148c9f&&_0x148c9f['userId']===_0x1d96e1?this['_touchedRoots']['delete'](_0x4f798f['rootName']):this['_touchedRoots']['set'](_0x4f798f['rootName'],{'userId':_0x1d96e1,'isAttached':_0x4f798f['isAdd']});}['_handleRootAttributeOperation'](_0x16384e){const _0x8312fd=this['_diffRootsAttributes']['get'](_0x16384e['root']['rootName']);null===_0x16384e['newValue']?delete _0x8312fd[_0x16384e['key']]:_0x8312fd[_0x16384e['key']]=_0x16384e['newValue'];}}function N(_0x4f208b){const _0x8755f7=P(_0x4f208b['rootName'],_0x4f208b['isAttached']());for(const _0x15fbfb of _0x4f208b['getChildren']()){const _0x27df44=_0x15fbfb['_clone'](!0x0);_0x8755f7['_appendChild'](_0x27df44);}return _0x8755f7;}function P(_0x4f9004,_0x403e22=!0x0){const _0x398402=new vt();return _0x398402['rootName']=_0x4f9004,_0x398402['_isAttached']=_0x403e22,_0x398402['isAttached']=()=>_0x398402['_isAttached'],_0x398402;}function F(_0x3c63b0,_0x7bb793,_0x253212){const _0x15c5d4='elementEnd'==_0x3c63b0['type']?_0x253212['createPositionAt'](_0x3c63b0['item'],'end'):_0x253212['createPositionBefore'](_0x3c63b0['item']);return _0x253212['createPositionFromPath'](_0x7bb793,_0x15c5d4['path'],_0x15c5d4['stickiness']);}function B(_0x1e34fc,_0x1c2fe2,_0xbb4909){const _0x27e0c9='elementStart'==_0x1e34fc['type']?_0xbb4909['createPositionAt'](_0x1e34fc['item'],0x0):_0xbb4909['createPositionAfter'](_0x1e34fc['item']);return _0xbb4909['createPositionFromPath'](_0x1c2fe2,_0x27e0c9['path'],_0x27e0c9['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1343c5,_0x5f3159){super(_0x1343c5),this['focusTracker']=new _0x1a5bd3(),this['keystrokes']=new _0x5906fb(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5f3159),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x51d33e(this);}['render'](){super['render'](),_0x47de8a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x509ff7=_0x4d4e4f=>_0x4d4e4f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x509ff7),this['keystrokes']['set']('arrowleft',_0x509ff7),this['keystrokes']['set']('arrowup',_0x509ff7),this['keystrokes']['set']('arrowdown',_0x509ff7);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2fe79){this['revisionNameInputView']['fieldView']['element']['value']=_0x2fe79['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x474e92){const _0x3c9e17=new _0x5d8229(this['locale'],_0x302711),_0x47da26=_0x3c9e17['fieldView'];_0x47da26['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5909d1=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x474e92&&(_0x5909d1+='\x20('+g(this['locale'],'optional')+')'),(_0x3c9e17['label']=_0x5909d1,_0x47da26['on']('input',()=>{this['revisionNameInputValue']=_0x47da26['element']['value']['trim']();}),_0x3c9e17);}}class f extends _0x443a46{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5101ba=this['editor'],_0x528ae1=_0x5101ba['plugins']['get']('RevisionTracker');_0x5101ba['ui']['componentFactory']['add']('revisionHistory',_0x35b6d9=>{const _0x1a76c7=_0x1429b9(_0x35b6d9),_0x88ece1=_0x1a76c7['panelView']['children'],_0x42c749=new _0x8fa149(_0x35b6d9),_0xce5bc1=new _0xd18afd(_0x35b6d9),_0x1b1892=new te(_0x35b6d9),_0x3a3be6=new _0xd18afd(_0x35b6d9),_0x45aecb=new te(_0x35b6d9);return _0x1a76c7['bind']('isEnabled')['to'](_0x528ae1,'isReady',_0x528ae1,'isEnabled',_0x5101ba,'isReadOnly',(_0x80294,_0x43a634,_0x21173d)=>_0x80294&&_0x43a634&&!_0x21173d),_0x1a76c7['buttonView']['set']({'icon':_0x1ac31f,'label':g(_0x35b6d9,'Revision\x20history'),'tooltip':!0x0}),_0x1b1892['set']({'label':g(_0x35b6d9,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1b1892['bind']('isEnabled')['to'](_0x528ae1,'isReady',_0x528ae1,'isEnabled',_0x5101ba,'isReadOnly',(_0x4dbbea,_0x189058,_0x14c96f)=>_0x4dbbea&&_0x189058&&!_0x14c96f),_0x1b1892['on']('execute',()=>this['_showDialog']()),_0x45aecb['set']({'label':g(_0x35b6d9,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x45aecb['bind']('isEnabled')['to'](_0x528ae1,'isReady',_0x5101ba,'isReadOnly',(_0x42ebbe,_0x12f2a8)=>_0x42ebbe&&!_0x12f2a8),_0x45aecb['on']('execute',()=>{_0x5101ba['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1a76c7['isOpen']=!0x1,_0x5101ba['editing']['view']['focus']();}),_0xce5bc1['children']['add'](_0x1b1892),_0x3a3be6['children']['add'](_0x45aecb),_0x42c749['role']='menu',_0x42c749['items']['addMany']([_0xce5bc1,_0x3a3be6]),_0x88ece1['add'](_0x42c749),_0x1a76c7;}),_0x5101ba['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1193c5=this['editor'],_0x96c850=_0x1193c5['locale'],_0x12f1ca=new _0x2126e1(_0x96c850),_0x25be4a=new _0x1ff503(_0x96c850);_0x12f1ca['buttonView']['set']({'icon':_0x1ac31f,'label':g(_0x96c850,'Revision\x20history')});const _0x73453c=new _0x4a9d4a(_0x96c850,_0x12f1ca),_0x1f5141=new _0x3fe7a4(_0x96c850);_0x1f5141['set']({'label':g(_0x96c850,'Save\x20current\x20revision')}),_0x1f5141['delegate']('execute')['to'](_0x12f1ca),_0x1f5141['on']('execute',()=>{this['_showDialog']();}),_0x73453c['children']['add'](_0x1f5141),_0x25be4a['items']['add'](_0x73453c);const _0x59e5da=new _0x4a9d4a(_0x96c850,_0x12f1ca),_0x360d34=new _0x3fe7a4(_0x96c850);return _0x360d34['set']({'label':g(_0x96c850,'Open\x20revision\x20history')}),_0x360d34['delegate']('execute')['to'](_0x12f1ca),_0x360d34['on']('execute',()=>{_0x1193c5['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x59e5da['children']['add'](_0x360d34),_0x25be4a['items']['add'](_0x59e5da),_0x12f1ca['panelView']['children']['add'](_0x25be4a),_0x12f1ca;}['_showDialog'](){const _0x1a7bf9=this['editor'],_0x1db5b5=_0x1a7bf9['locale'],_0x57cf38=_0x1a7bf9['plugins']['get']('Dialog'),_0x1b0067=_0x1a7bf9['plugins']['get']('RevisionTracker');function _0x4c5e39(_0x25d929){_0x1a7bf9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x25d929['revisionName']?_0x25d929['revisionNameInputView']['errorText']=g(_0x1db5b5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1a7bf9['plugins']['get'](u)['saveRevision']({'name':_0x25d929['revisionName']}),_0x57cf38['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c5e39(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x57cf38['show']({'id':'revisionSave','title':g(_0x1db5b5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1a7bf9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x57cf38['hide']()},{'label':g(_0x1a7bf9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x11dc2a){_0x11dc2a['bind']('isEnabled')['to'](_0x1b0067,'isReady',_0x1b0067,'isEnabled',_0x1a7bf9,'isReadOnly',(_0x542b59,_0x2cad78,_0x1ae3ad)=>_0x542b59&&_0x2cad78&&!_0x1ae3ad);},'onExecute':()=>_0x4c5e39(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x459fcb=this['editor'],_0x3dc856=_0x459fcb['locale'];this['_saveRevisionFormView']=new hs(_0x3dc856,_0x459fcb['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x2f5b06,_0xe72665){super(_0x2f5b06),this['_model']=_0xe72665,this['changeId']=_0xe72665['id'];const _0x37ddec=this['bindTemplate'],_0x4c26a5=g(_0x2f5b06,_0xe72665['data']['isSuggestion']?'Suggested\x20by':'add'==_0xe72665['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xe72665['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x37ddec['to']('type',_0x4ec689=>'ck-revision-change__'+_0x4ec689)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4c26a5}]},{'text':'\x20'+_0xe72665['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x4fa367(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x8d9b7c){super(),this['id']=_0x8d9b7c['id']||_0x2a1139(),this['author']=_0x8d9b7c['author'],this['type']=_0x8d9b7c['type'],this['data']=_0x8d9b7c['data']||{},this['rootName']=_0x8d9b7c['rootName'],this['set']('createdAt',_0x8d9b7c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x553bff,_0x4992c2){this['newRevisionId']=_0x553bff,this['oldRevisionId']=_0x4992c2,this['changes']=new _0x239345();}['_setChanges'](_0x2c2e6b){for(const _0x1b3797 of _0x2c2e6b)this['changes']['add'](_0x1b3797);}}class m extends _0x443a46{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x33d7db,_0x1d7948,I,V];}constructor(_0x5c5e3a){super(_0x5c5e3a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x185d71,_0x1dc78d,_0x43632e)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x113a7f=>{for(const _0x2c3314 of this['editor']['editing']['view']['document']['roots'])_0x43632e?_0x113a7f['removeClass']('ck-editor__editable__overlay',_0x2c3314):_0x113a7f['addClass']('ck-editor__editable__overlay',_0x2c3314);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x345bf1=>null!==_0x345bf1),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xa6fb44,_0x25c79a,_0x54d7d8)=>_0xa6fb44&&_0x54d7d8?_0x25c79a['changes']['getIndex'](_0x54d7d8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x35835d,_0x5c6f43)=>_0x35835d?_0x5c6f43['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1d7948);}['init'](){const _0x51cd92=this['editor'],_0x207acc=new wt(_0x51cd92,{'direction':'backward'}),_0x5ac4c2=new wt(_0x51cd92,{'direction':'forward'});(_0x51cd92['commands']['add']('showPreviousChange',_0x207acc),_0x51cd92['commands']['add']('showNextChange',_0x5ac4c2),_0x51cd92['commands']['add']('restoreRevision',new mt(_0x51cd92)),this['on']('change:numberOfChanges',()=>{_0x207acc['refresh'](),_0x5ac4c2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x51cd92['enableReadOnlyMode']('revision-viewer'),_0x51cd92['plugins']['has']('WidgetToolbarRepository'))&&_0x51cd92['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x2ee17a){return await this['_utils']['loadRevisionData'](_0x2ee17a,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2ee17a);}async['getRevisionRootsAttributes'](_0x1fddba){return await this['_utils']['loadRevisionData'](_0x1fddba,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1fddba);}async['compare'](_0x1244fa,_0x2af48f,_0x263a0a=!0x1){if(!this['isEnabled'])return;const _0xd36b76=this['diff'],_0x5b774d=this['repository'],_0xd31f52='string'==typeof _0x1244fa?_0x5b774d['getRevision'](_0x1244fa):_0x1244fa,_0x405028='string'==typeof _0x2af48f?_0x5b774d['getRevision'](_0x2af48f):_0x2af48f,_0x6a99eb=_0xd31f52['id'],_0x1296e9=_0x405028?_0x405028['id']:null;if(!_0x263a0a&&this['diff']&&this['diff']['newRevisionId']===_0x6a99eb&&this['diff']['oldRevisionId']===_0x1296e9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x6a99eb,_0x1296e9);const _0x52a375=this['_getRevisionsRange'](_0xd31f52,_0x405028,!0x0)['map'](_0x25abe4=>this['_utils']['loadRevisionData'](_0x25abe4,this['adapter']));return _0x52a375['push'](new Promise(_0x366c93=>{setTimeout(_0x366c93,0x14);})),Promise['all'](_0x52a375)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xf0f2bc=this['_getDiff'](_0x6a99eb,_0x1296e9);for(const _0x969cab of _0xf0f2bc['changes'])this['_changeIdToChange']['set'](_0x969cab['id'],_0x969cab);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x44c694=>{for(const _0x35b5c0 of this['editor']['model']['document']['getRootNames']())_0x44c694['detachRoot'](_0x35b5c0);for(const _0x227f8f of Object['keys'](_0xf0f2bc['model'])){const _0xa6e4d4=_0x44c694['addRoot'](_0x227f8f);for(const _0x507ae6 of Object['keys'](_0xf0f2bc['attributes'][_0x227f8f]))_0x44c694['setAttribute'](_0x507ae6,_0xf0f2bc['attributes'][_0x227f8f][_0x507ae6],_0xa6e4d4);_0x44c694['insert'](_0xf0f2bc['model'][_0x227f8f],_0xa6e4d4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xf0f2bc['changes'])),this['isReady']=!0x0;})['catch'](_0x134f0b=>{console['error'](_0x134f0b),this['_cleanUp'](),_0xd36b76&&(this['diff']=_0xd36b76),this['isReady']=!0x0;});}['addRevisionData'](_0x504407,_0x170f42){const _0x4cb9b6=this['repository']['createRevision'](_0x504407);return _0x4cb9b6['on']('_update',(_0x57ba7e,_0x379d54,_0x4c714a)=>_0x170f42(_0x379d54,_0x4c714a,_0x4cb9b6)),this['repository']['addRevision'](_0x4cb9b6),_0x4cb9b6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x373adf=>{for(const _0x10b04f of this['editor']['model']['document']['getRootNames']())_0x373adf['detachRoot'](_0x10b04f);});}['_sortAndFilterDiffChanges'](_0x2b23ef){const _0x1fc47a=[],_0x2915c0=new Map();for(const _0x24bee9 of this['editor']['model']['document']['getRootNames']()){const _0x1b1922=this['editor']['editing']['view']['getDomRoot'](_0x24bee9);if(!_0x1b1922)continue;const _0x18b0f2=_0x1b1922['getClientRects']()['item'](0x0);_0x18b0f2&&(_0x1fc47a['push'](_0x24bee9),_0x2915c0['set'](_0x24bee9,_0x18b0f2));}return _0x1fc47a['sort']((_0x1d0ac8,_0x312d3e)=>{const _0x488558=_0x2915c0['get'](_0x1d0ac8),_0x1d49b3=_0x2915c0['get'](_0x312d3e);return _0x488558['y']-_0x1d49b3['y']||_0x488558['x']-_0x1d49b3['x'];}),(_0x2b23ef=_0x2b23ef['filter'](_0x58d57b=>_0x1fc47a['includes'](_0x58d57b['rootName'])))['sort']((_0x4a6d57,_0x5b07b2)=>_0x1fc47a['indexOf'](_0x4a6d57['rootName'])-_0x1fc47a['indexOf'](_0x5b07b2['rootName'])),_0x2b23ef;}['_makeTape'](_0x57eb5f){const _0xc44ecf=Array['from'](_0x57eb5f['markers'])['filter'](([_0x17ec90,_0x4793b8])=>_0x17ec90['startsWith']('revision:')&&!_0x4793b8['isCollapsed']),_0x448065=Array['from'](this['editor']['model']['createRangeIn'](_0x57eb5f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xc44ecf['length'])for(const _0x10d9f7 of _0x448065){const [_0x4adc4f,_0x369248]=_0xc44ecf[0x0],[,_0x702530,_0x25e03b]=_0x4adc4f['split'](':');if(_0x369248['end']['isEqual'](_0x10d9f7['nextPosition'])&&_0xc44ecf['shift'](),(_0x10d9f7['previousPosition']['isEqual'](_0x369248['start'])||_0x10d9f7['previousPosition']['isAfter'](_0x369248['start']))&&('insertion'==_0x702530?_0x10d9f7['isAdded']={'userId':_0x25e03b}:'deletion'==_0x702530&&(_0x10d9f7['isRemoved']={'userId':_0x25e03b})),0x0==_0xc44ecf['length'])break;}return _0x448065;}['_refreshStartEndIndex'](_0x28df9a){const _0x9b9016=new Map();for(let _0x203329=0x0;_0x203329<_0x28df9a['length'];_0x203329++)'text'===_0x28df9a[_0x203329]['type']?(_0x28df9a[_0x203329]['item']['startIndex']=_0x203329,_0x28df9a[_0x203329]['item']['endIndex']=_0x203329):('elementStart'===_0x28df9a[_0x203329]['type']?_0x28df9a[_0x203329]['item']['startIndex']=_0x203329:'elementEnd'===_0x28df9a[_0x203329]['type']&&(_0x28df9a[_0x203329]['item']['endIndex']=_0x203329),_0x9b9016['set'](_0x28df9a[_0x203329]['id'],_0x203329));for(const _0x4598bc of _0x9b9016['values']())'elementStart'===_0x28df9a[_0x4598bc]['type']?_0x28df9a[_0x4598bc]['item']['endIndex']=_0x9b9016['get'](_0x28df9a[_0x4598bc]['pairId']):'elementEnd'===_0x28df9a[_0x4598bc]['type']&&(_0x28df9a[_0x4598bc]['item']['startIndex']=_0x9b9016['get'](_0x28df9a[_0x4598bc]['pairId']));}['_processTape'](_0x1fc7f2){for(let _0xb17a13=0x0;_0xb17a13<_0x1fc7f2['length'];_0xb17a13++){if('elementStart'===_0x1fc7f2[_0xb17a13]['type'])_0x1fc7f2[_0xb17a13]['item']['startIndex']=_0xb17a13;else{if('elementEnd'===_0x1fc7f2[_0xb17a13]['type']){_0x1fc7f2[_0xb17a13]['item']['endIndex']=_0xb17a13;const _0x6c2b83=_0x1fc7f2[_0xb17a13]['item']['startIndex'];_0x1fc7f2[_0x6c2b83]['pairId']=_0x1fc7f2[_0xb17a13]['id'],_0x1fc7f2[_0xb17a13]['pairId']=_0x1fc7f2[_0x6c2b83]['id'];}else _0x1fc7f2[_0xb17a13]['item']['startIndex']=_0xb17a13,_0x1fc7f2[_0xb17a13]['item']['endIndex']=_0xb17a13,_0x1fc7f2[_0xb17a13]['pairId']=null;}_0x1fc7f2[_0xb17a13]['markersStart']||(_0x1fc7f2[_0xb17a13]['markersStart']=[],_0x1fc7f2[_0xb17a13]['markersEnd']=[]);}}['_markInsertions'](_0x17e7a0,_0x26e1ef){const _0x239059=_0x17e7a0['filter'](_0x10bc02=>!_0x10bc02['isAdded']);for(let _0x1ba763=0x0;_0x1ba763<_0x26e1ef['length'];_0x1ba763++)_0x26e1ef[_0x1ba763]['isAdded']&&(_0x239059[_0x1ba763]['isAdded']=_0x26e1ef[_0x1ba763]['isAdded']);}['_getDiff'](_0x132bda,_0x45afce=null){const _0x5dbe62=this['repository']['getRevision'](_0x132bda),_0x44b9ce=_0x45afce?this['repository']['getRevision'](_0x45afce):null,_0x115284=this['_getRevisionsRange'](_0x5dbe62,_0x44b9ce),_0x15b3d2=_0x115284[_0x115284['length']-0x1],_0x179de6=new Map(),_0x42ef1b={'model':{},'attributes':{},'changes':[]},_0x16da95=new Set(),_0x4be5cf=new Map();for(let _0x3f3d55=_0x115284['length']-0x1;_0x3f3d55>=0x0;_0x3f3d55--){const _0x3a3ca=_0x115284[_0x3f3d55];for(const _0xa11f34 of Object['keys'](_0x3a3ca['diffData']))if(_0x3a3ca['diffData'][_0xa11f34]['attachChange']){const _0x32a4f5=_0x3a3ca['diffData'][_0xa11f34]['attachChange'];_0x32a4f5['isAttached']?(_0x16da95['add'](_0xa11f34),_0x4be5cf['has'](_0xa11f34)&&_0x4be5cf['get'](_0xa11f34)['userId']==_0x32a4f5['userId']?_0x4be5cf['delete'](_0xa11f34):_0x4be5cf['set'](_0xa11f34,_0x32a4f5)):_0x4be5cf['has'](_0xa11f34)?(_0x16da95['delete'](_0xa11f34),_0x4be5cf['delete'](_0xa11f34)):(_0x16da95['add'](_0xa11f34),_0x4be5cf['set'](_0xa11f34,_0x32a4f5));}else _0x16da95['add'](_0xa11f34);}for(const _0x1cf811 of _0x16da95){const _0x48b7f2=_0x4be5cf['has'](_0x1cf811)&&!_0x4be5cf['get'](_0x1cf811)['isAttached'];let _0x3c2eb7=_0x48b7f2?_0x115284['length']-0x1:0x0;const _0x1f47e1=_0x48b7f2?-0x1:0x1;for(;_0x115284[_0x3c2eb7];){const _0x642669=_0x115284[_0x3c2eb7];if(_0x642669['diffData'][_0x1cf811]){const _0x555bf3=_0x48b7f2?_0x642669['diffData'][_0x1cf811]['attributesBefore']:_0x642669['diffData'][_0x1cf811]['attributesAfter'];_0x42ef1b['attributes'][_0x1cf811]=_0x555bf3?_0x40ea9a(_0x555bf3):{};break;}_0x3c2eb7+=_0x1f47e1;}}for(const _0x293952 of _0x115284){_0x293952['model']={};for(const _0x25440f of _0x293952['authors'])_0x179de6['set'](_0x25440f['id'],_0x25440f);for(const _0x2b7433 of _0x16da95){const _0x286fc9=_0x293952['diffData'][_0x2b7433]?_0x293952['diffData'][_0x2b7433]['insertions']:'[]',_0x381f88=_0x293952['diffData'][_0x2b7433]?_0x293952['diffData'][_0x2b7433]['deletions']:'[]';_0x293952['model'][_0x2b7433]={'insertions':this['_utils']['_makeModelFromViewString'](_0x286fc9),'deletions':this['_utils']['_makeModelFromViewString'](_0x381f88)};}}for(const _0x3e8fa9 of _0x16da95){let _0x272a57=null,_0x14ae4c=0x0;const _0x54303b=new Map(Array['from'](_0x5dbe62['model'][_0x3e8fa9]['insertions']['markers'])['filter'](([_0x372057])=>!_0x372057['startsWith']('revision:')));let _0x44f61a=0x0;for(const _0x1c197d of _0x115284){const _0x2481fb=this['_makeTape'](_0x1c197d['model'][_0x3e8fa9]['insertions']);_0x1c197d==_0x5dbe62?(_0x272a57=_0x2481fb,_0x14ae4c=_0x272a57['length'],_0x272a57['forEach'](_0x51ce83=>{_0x51ce83['id']=_0x44f61a++;}),this['_processTape'](_0x272a57)):this['_markInsertions'](_0x272a57,_0x2481fb);const _0x1353b8=_0x272a57['filter'](_0x18ccd2=>!_0x18ccd2['isAdded'])['map'](_0x55b699=>_0x55b699['id']);let _0x121b34=0x0;const _0x134c93=this['_makeTape'](_0x1c197d['model'][_0x3e8fa9]['deletions']);_0x134c93['forEach'](_0x5bc026=>{_0x5bc026['isRemoved']?_0x5bc026['id']=_0x14ae4c++:_0x5bc026['id']=_0x1353b8[_0x121b34++];}),this['_processTape'](_0x134c93),this['_setDistance'](_0x272a57,'isAdded'),this['_setDistance'](_0x134c93,'isRemoved'),_0x1c197d==_0x5dbe62&&this['_markMarkers'](_0x272a57,_0x54303b),_0x272a57=this['_joinTapes'](_0x272a57,_0x134c93),this['_refreshStartEndIndex'](_0x272a57),this['_setDistance'](_0x272a57,'isRemoved');}_0x272a57=_0x272a57['filter'](_0x4546a8=>!(_0x4546a8['isAdded']&&_0x4546a8['isRemoved']));const _0x37f5af=new Map(_0x15b3d2['model'][_0x3e8fa9]['deletions']['markers']),_0x2d54af=new Set(_0x54303b['keys']());for(const _0x1ef030 of _0x37f5af['keys']())_0x2d54af['delete'](_0x1ef030);this['_markSuggestions'](_0x272a57,_0x2d54af),this['_fixObsoleteTags'](_0x272a57),_0x272a57=this['_removeMissingPairs'](_0x272a57),_0x272a57=this['_markMismatchedRemovedTags'](_0x272a57),_0x272a57=this['_removeUnsupportedChanges'](_0x272a57);const {root:_0x25c175,changes:_0x1768b8}=this['_makeModelFromTape'](_0x272a57,_0x179de6,_0x3e8fa9);_0x42ef1b['model'][_0x3e8fa9]=_0x25c175;const _0x38b24c=_0x4be5cf['get'](_0x3e8fa9);if(_0x38b24c){const _0x251ea1=_0x179de6['get'](_0x38b24c['userId']),_0x250370=new r({'author':_0x251ea1,'type':_0x38b24c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3e8fa9});_0x1768b8['unshift'](_0x250370),_0x42ef1b['attributes'][_0x3e8fa9]['revisionHistoryAttachChange']=_0x250370['id'];}_0x42ef1b['changes']=_0x42ef1b['changes']['concat'](_0x1768b8);}return _0x42ef1b;}['_markMarkers'](_0x776cbd,_0x5ef6a7){for(let _0x11198e=0x0;_0x11198e<_0x776cbd['length'];_0x11198e++)for(const [_0x11d170,_0x581804]of _0x5ef6a7)!_0x581804['isCollapsed']&&_0x581804['start']['isEqual'](_0x776cbd[_0x11198e]['previousPosition'])&&_0x776cbd[_0x11198e]['markersStart']['push'](_0x11d170),_0x581804['end']['isEqual'](_0x776cbd[_0x11198e]['nextPosition'])&&_0x776cbd[_0x11198e]['markersEnd']['push'](_0x11d170);}['_joinTapes'](_0x3fbeb5,_0x4ad37b){let _0x2ff46f=[],_0x2d6d72=0x0,_0x257133=0x0;for(;_0x2d6d72<_0x3fbeb5['length']||_0x257133<_0x4ad37b['length'];){const _0x3bd7d8=_0x3fbeb5[_0x2d6d72]||{},_0x51aee0=_0x4ad37b[_0x257133]||{};if(_0x3bd7d8['id']==_0x51aee0['id'])_0x2d6d72++,_0x257133++,_0x2ff46f['push'](_0x3bd7d8);else{if(_0x51aee0['isRemoved']&&_0x3bd7d8['isAdded']){const {commonTape:_0x3e1908,iEnd:_0x3fae5e,jEnd:_0x36f236}=this['_threeWayMerge'](_0x3fbeb5,_0x2d6d72,_0x4ad37b,_0x257133);_0x2ff46f=_0x2ff46f['concat'](_0x3e1908),_0x2d6d72=_0x3fae5e,_0x257133=_0x36f236;}else _0x51aee0['isRemoved']?(_0x257133++,_0x2ff46f['push'](_0x51aee0)):(_0x2d6d72++,_0x2ff46f['push'](_0x3bd7d8));}}return _0x2ff46f;}['_markSuggestions'](_0x2a0b06,_0x11f41d){const _0x440fcb=[];for(let _0x40f418=0x0;_0x40f418<_0x2a0b06['length'];_0x40f418++){for(let _0x13fd31=0x0;_0x13fd31<_0x2a0b06[_0x40f418]['markersStart']['length'];_0x13fd31++){const _0x339748=_0x2a0b06[_0x40f418]['markersStart'][_0x13fd31];if(!_0x11f41d['has'](_0x339748))continue;const {group:_0x4743c1,type:_0x4071d8,authorId:_0x5ecfeb}=_0x45ab18(_0x339748);'revision-suggestion'!=_0x4743c1||'insertion'!=_0x4071d8&&'deletion'!=_0x4071d8||(_0x440fcb['unshift']({'type':_0x4071d8,'name':_0x339748,'userId':_0x5ecfeb}),_0x2a0b06[_0x40f418]['markersStart']['splice'](_0x13fd31,0x1),_0x13fd31--);}_0x4e2eb2(_0x2a0b06[_0x40f418]);for(let _0x415684=0x0;_0x415684<_0x2a0b06[_0x40f418]['markersEnd']['length'];_0x415684++){const _0x5a9a74=_0x2a0b06[_0x40f418]['markersEnd'][_0x415684];if(!_0x11f41d['has'](_0x5a9a74))continue;const {group:_0x55ab21,type:_0xc37928}=_0x45ab18(_0x5a9a74);if('revision-suggestion'!=_0x55ab21||'insertion'!=_0xc37928&&'deletion'!=_0xc37928)continue;_0x2a0b06[_0x40f418]['markersEnd']['splice'](_0x415684,0x1),_0x415684--;const _0x164aff=_0x440fcb['findIndex'](_0x5123d6=>_0x5123d6['name']==_0x5a9a74);_0x164aff>-0x1&&_0x440fcb['splice'](_0x164aff,0x1);}}function _0x45ab18(_0x403064){const _0xc5801d=_0x403064['split'](':');return{'group':_0xc5801d[0x0],'type':_0xc5801d[0x1],'subType':_0xc5801d['length']>=0x5?_0xc5801d[0x2]:null,'id':_0xc5801d['length']<0x5?_0xc5801d[0x2]:_0xc5801d[0x3],'authorId':_0xc5801d['length']<0x5?_0xc5801d[0x3]:_0xc5801d[0x4],'markerCount':0x6==_0xc5801d['length']?_0xc5801d[0x5]:null};}function _0x4e2eb2(_0x1bc043){for(let _0x27663b=0x0;_0x27663b<_0x440fcb['length'];_0x27663b++){if(_0x1bc043['isAdded']&&'insertion'==_0x440fcb[_0x27663b]['type']&&_0x1bc043['isAdded']['userId']==_0x440fcb[_0x27663b]['userId'])return _0x1bc043['isAddSuggestion']=_0x440fcb[_0x27663b],void delete _0x1bc043['isAdded'];if(!_0x1bc043['isAdded']&&!_0x1bc043['isRemoved']&&'deletion'==_0x440fcb[_0x27663b]['type'])return void(_0x1bc043['isRemoveSuggestion']=_0x440fcb[_0x27663b]);}}}['_setDistance'](_0x8bbabb,_0x5aaa46){let _0x20baca=0x0,_0xf66237=!0x1;const _0x5639f6=new Map();for(const _0x4d3686 of _0x8bbabb)_0x4d3686[_0x5aaa46]?_0xf66237&&(_0x20baca++,_0xf66237=!0x1):(_0x20baca++,_0xf66237=!0x0),_0x5639f6['set'](_0x4d3686['id'],_0x20baca);for(let _0x23c4fe=0x0;_0x23c4fe<_0x8bbabb['length'];_0x23c4fe++){if('isRemoved'==_0x5aaa46&&_0x8bbabb[_0x23c4fe]['isAdded']||'isAdded'==_0x5aaa46&&_0x8bbabb[_0x23c4fe]['isRemoved'])continue;if('text'==_0x8bbabb[_0x23c4fe]['type']){_0x8bbabb[_0x23c4fe]['distance']=0x0;continue;}const _0x22dcef=_0x5639f6['get'](_0x8bbabb[_0x23c4fe]['pairId']),_0x54544f=_0x5639f6['get'](_0x8bbabb[_0x23c4fe]['id']);_0x8bbabb[_0x23c4fe]['distance']=_0x22dcef-_0x54544f;}}['_getRevisionsRange'](_0x16be83,_0x311885,_0x3cff5e=!0x1){const _0x75b2bc=[];let _0x182b90=this['repository']['getIndex'](_0x16be83),_0x53a8ab=this['repository']['getIndex'](_0x311885);for(-0x1==_0x53a8ab&&(_0x53a8ab=this['repository']['_revisions']['length'],_0x3cff5e=!0x1);_0x182b90<_0x53a8ab;)_0x75b2bc['push'](this['repository']['getRevision'](_0x182b90)),_0x182b90++;return _0x3cff5e&&_0x75b2bc['push'](this['repository']['getRevision'](_0x182b90)),_0x75b2bc;}['_threeWayMerge'](_0x1c9716,_0x3e3d7e,_0x4087b1,_0x1dde4d){const _0x12143d=this['editor']['model']['schema'];let _0x304a56=_0x3e3d7e;for(;_0x1c9716[_0x304a56]&&_0x1c9716[_0x304a56]['isAdded'];)_0x304a56++;let _0x2a56d5=_0x1dde4d;for(;_0x4087b1[_0x2a56d5]&&_0x4087b1[_0x2a56d5]['isRemoved'];)_0x2a56d5++;_0x451114(_0x1c9716,_0x3e3d7e,_0x304a56),_0x451114(_0x4087b1,_0x1dde4d,_0x2a56d5);const _0x526dde=_0x4087b1['slice'](_0x1dde4d,_0x2a56d5)['concat'](_0x1c9716['slice'](_0x3e3d7e,_0x304a56));return _0x526dde['sort']((_0x2ea9d9,_0x3c8618)=>_0x2ea9d9['side']!=_0x3c8618['side']?_0x2ea9d9['side']-_0x3c8618['side']:_0x2ea9d9['level']!=_0x3c8618['level']?_0x2ea9d9['level']-_0x3c8618['level']:_0x2ea9d9['distance']!=_0x3c8618['distance']?_0x3c8618['distance']-_0x2ea9d9['distance']:!!_0x2ea9d9['isAdded']!=!!_0x3c8618['isAdded']?-0x1==_0x2ea9d9['side']||0x0==_0x2ea9d9['side']?_0x2ea9d9['isAdded']?-0x1:0x1:_0x2ea9d9['isAdded']?0x1:-0x1:_0x2ea9d9['index']-_0x3c8618['index']),{'commonTape':_0x526dde,'iEnd':_0x304a56,'jEnd':_0x2a56d5};function _0x451114(_0x5317da,_0x3460f0,_0x302e93){let _0x152391=-0x1,_0x144d20=Number['POSITIVE_INFINITY'],_0x1d8d59=!0x0;for(let _0x5bedfe=_0x3460f0;_0x5bedfe<_0x302e93;_0x5bedfe++)if(_0x12143d['isInline'](_0x5317da[_0x5bedfe]['item'])||(_0x1d8d59=!0x1),_0x5317da[_0x5bedfe]['item']['startIndex']<_0x3460f0&&(_0x152391=_0x5bedfe),_0x5317da[_0x5bedfe]['item']['endIndex']>=_0x302e93){_0x144d20=_0x5bedfe;break;}_0x1d8d59&&(_0x152391=_0x302e93-0x1);for(let _0x3d38c8=_0x3460f0;_0x3d38c8<_0x302e93;_0x3d38c8++)_0x5317da[_0x3d38c8]['side']=_0x3d38c8<=_0x152391?-0x1:_0x3d38c8<_0x144d20?0x0:0x1,_0x5317da[_0x3d38c8]['index']=_0x3d38c8;let _0x3f0e57=0x0;for(let _0x4dd511=_0x3460f0;_0x4dd511<=_0x152391;_0x4dd511++)0x0==_0x5317da[_0x4dd511]['distance']?_0x5317da[_0x4dd511]['level']=_0x3f0e57:(_0x3f0e57++,_0x5317da[_0x4dd511]['level']=_0x3f0e57,_0x3f0e57++);for(let _0xc8b0fa=_0x3460f0;_0xc8b0fa<_0x302e93;_0xc8b0fa++)0x0==_0x5317da[_0xc8b0fa]['side']&&(_0x5317da[_0xc8b0fa]['level']=_0x3f0e57);_0x3f0e57=0x0;for(let _0x55948f=_0x302e93-0x1;_0x55948f>=_0x144d20;_0x55948f--)0x0==_0x5317da[_0x55948f]['distance']?_0x5317da[_0x55948f]['level']=_0x3f0e57:(_0x3f0e57--,_0x5317da[_0x55948f]['level']=_0x3f0e57,_0x3f0e57--);}}['_fixObsoleteTags'](_0xd9debd){const _0x105045=new Map(),_0x529ad0=this['editor']['model']['schema'];for(let _0x2fa9e1=0x1;_0x2fa9e1<_0xd9debd['length'];_0x2fa9e1++){let _0x1a99f4,_0x239578,_0x2d1d77;const _0x480643=_0xd9debd[_0x2fa9e1],_0x47b77c=_0xd9debd[_0x2fa9e1-0x1];if('text'==_0x480643['type'])continue;if(_0x480643['type']!=_0x47b77c['type'])continue;if(!_0x529ad0['isBlock'](_0x47b77c['item'])||_0x529ad0['isLimit'](_0x47b77c['item']))continue;if(!_0x529ad0['isBlock'](_0x480643['item'])||_0x529ad0['isLimit'](_0x480643['item']))continue;if((_0xd9debd[_0x2fa9e1]['isAdded']||_0xd9debd[_0x2fa9e1]['isAddSuggestion'])&&_0xd9debd[_0x2fa9e1-0x1]['isRemoved'])_0x1a99f4=_0xd9debd[_0x2fa9e1],_0x239578=_0xd9debd[_0x2fa9e1-0x1],_0x2d1d77=_0x2fa9e1-0x1;else{if(!_0xd9debd[_0x2fa9e1]['isRemoved']||!_0xd9debd[_0x2fa9e1-0x1]['isAdded']&&!_0xd9debd[_0x2fa9e1-0x1]['isAddSuggestion'])continue;_0x1a99f4=_0xd9debd[_0x2fa9e1-0x1],_0x239578=_0xd9debd[_0x2fa9e1],_0x2d1d77=_0x2fa9e1;}const _0x518228=_0x1a99f4['level']==_0x239578['level'],_0x1ac72d=Math['abs'](_0x1a99f4['level'])<Math['abs'](_0x239578['level'])&&0x0==_0x239578['distance'];(_0x518228||_0x1ac72d)&&(_0x105045['set'](_0x239578['id'],_0x1a99f4['id']),_0xd9debd['splice'](_0x2d1d77,0x1),_0x2fa9e1--,_0x1a99f4['isAdded']=!0x1);}for(let _0x19e971=0x0;_0x19e971<_0xd9debd['length'];_0x19e971++)_0x105045['has'](_0xd9debd[_0x19e971]['pairId'])&&(_0xd9debd[_0x19e971]['pairId']=_0x105045['get'](_0xd9debd[_0x19e971]['pairId']));}['_removeMissingPairs'](_0x46ff75){const _0x5dbb81=new Set(_0x46ff75['map'](_0x50f151=>_0x50f151['id']));for(let _0xf5967e=0x0;_0xf5967e<_0x46ff75['length'];_0xf5967e++)_0x5dbb81['has'](_0x46ff75[_0xf5967e]['pairId'])||0x0==_0x46ff75[_0xf5967e]['distance']||(_0x46ff75[_0xf5967e]['isIncorrect']=!0x0);return _0x46ff75['filter'](_0x3f84bb=>!_0x3f84bb['isIncorrect']);}['_markMismatchedRemovedTags'](_0x248b0d){const _0x58e890=new Set();for(let _0x530c4e=0x0;_0x530c4e<_0x248b0d['length'];_0x530c4e++){if(_0x58e890['has'](_0x248b0d[_0x530c4e]['id'])&&_0x248b0d[_0x530c4e]['isRemoved']&&(_0x248b0d[_0x530c4e]['isIncorrect']=!0x0),_0x248b0d[_0x530c4e]['isIncorrect'])continue;if(0x0==_0x248b0d[_0x530c4e]['distance'])continue;if('elementStart'!=_0x248b0d[_0x530c4e]['type'])continue;if(null==_0x248b0d[_0x530c4e]['pairId'])continue;let _0x191e39=_0x530c4e+0x1,_0x43f106=0x0;for(;_0x248b0d[_0x191e39]['id']!=_0x248b0d[_0x530c4e]['pairId'];)'elementStart'==_0x248b0d[_0x191e39]['type']?_0x43f106++:'elementEnd'==_0x248b0d[_0x191e39]['type']&&_0x43f106--,_0x191e39++;if(0x0!=_0x43f106){if(_0x248b0d[_0x530c4e]['isRemoved'])_0x248b0d[_0x530c4e]['isIncorrect']=!0x0;else{for(;_0x191e39!=_0x530c4e;)_0x248b0d[_0x191e39]['isRemoved']&&0x0!=_0x248b0d[_0x191e39]['distance']&&(_0x248b0d[_0x191e39]['isIncorrect']=!0x0,_0x58e890['add'](_0x248b0d[_0x191e39]['pairId'])),_0x191e39--;}}}return _0x248b0d['filter'](_0x5bb8c1=>!_0x5bb8c1['isIncorrect']);}['_removeUnsupportedChanges'](_0x2abddc){const _0x57aecd=this['editor']['model']['schema'];for(let _0x42ec39=0x0;_0x42ec39<_0x2abddc['length'];_0x42ec39++){if(!(_0x2abddc[_0x42ec39]['isAdded']||_0x2abddc[_0x42ec39]['isAddSuggestion']||_0x2abddc[_0x42ec39]['isRemoved']||_0x2abddc[_0x42ec39]['isRemoveSuggestion']))continue;if(0x0==_0x2abddc[_0x42ec39]['distance'])continue;const _0x183b20=_0x2abddc[_0x42ec39]['item'];_0x57aecd['isBlock'](_0x183b20)||_0x57aecd['isLimit'](_0x183b20)||(_0x2abddc[_0x42ec39]['isAdded']&&delete _0x2abddc[_0x42ec39]['isAdded'],_0x2abddc[_0x42ec39]['isAddSuggestion']&&delete _0x2abddc[_0x42ec39]['isAddSuggestion'],_0x2abddc[_0x42ec39]['isRemoveSuggestion']&&delete _0x2abddc[_0x42ec39]['isRemoveSuggestion'],_0x2abddc[_0x42ec39]['isRemoved']&&(_0x2abddc[_0x42ec39]['isIncorrect']=!0x0));}return _0x2abddc['filter'](_0x1b0c38=>!_0x1b0c38['isIncorrect']);}['_makeModelFromTape'](_0x3f7562,_0x23eb3f,_0x143207){const _0x151d12=new vt(),_0x3aeb88=[],_0x35117e=new Map(),_0xf5b5e4=this['editor']['model'],_0x560085=_0xf5b5e4['schema'],_0x8e7d06=[_0x151d12],_0x3c67fe={},_0x2a13a8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3743be=null;const _0x54837e=[0x0];for(let _0x3d63dd=0x0;_0x3d63dd<_0x3f7562['length'];_0x3d63dd++)if('elementStart'===_0x3f7562[_0x3d63dd]['type']){_0x3f7562[_0x3d63dd]['previousPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e);const _0x5e42cd=new ut(_0x3f7562[_0x3d63dd]['item']['name'],_0x3f7562[_0x3d63dd]['item']['getAttributes']());_0x8e7d06[0x0]['_appendChild'](_0x5e42cd),_0x54837e['push'](0x0),_0x8e7d06['unshift'](_0x5e42cd),_0x3f7562[_0x3d63dd]['nextPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e);}else'elementEnd'===_0x3f7562[_0x3d63dd]['type']?(_0x8e7d06['shift'](),_0x3f7562[_0x3d63dd]['previousPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e),_0x54837e['pop'](),_0x54837e[_0x54837e['length']-0x1]++,_0x3f7562[_0x3d63dd]['nextPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e)):(_0x3f7562[_0x3d63dd]['previousPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e),_0x3743be?_0x3743be['_data']+=_0x3f7562[_0x3d63dd]['item']['data']:_0x3743be=new gt(_0x3f7562[_0x3d63dd]['item']['data'],_0x3f7562[_0x3d63dd]['item']['getAttributes']()),_0x3f7562[_0x3d63dd+0x1]&&'text'===_0x3f7562[_0x3d63dd+0x1]['type']&&_0x4c0ccb(_0x3743be,_0x3f7562[_0x3d63dd+0x1]['item'])||(_0x8e7d06[0x0]['_appendChild'](_0x3743be),_0x3743be=null),_0x54837e[_0x54837e['length']-0x1]+=_0x3f7562[_0x3d63dd]['item']['offsetSize'],_0x3f7562[_0x3d63dd]['nextPosition']=_0xf5b5e4['createPositionFromPath'](_0x151d12,_0x54837e));for(let _0xf21e46=0x0;_0xf21e46<_0x3f7562['length'];_0xf21e46++){const _0x5788d4=_0x3f7562[_0xf21e46]['previousPosition'],_0x4dc3b5=_0x3f7562[_0xf21e46]['nextPosition'];for(const _0x1b51d7 of _0x3f7562[_0xf21e46]['markersStart'])_0x35117e['set'](_0x1b51d7,{'start':_0x5788d4,'end':null});_0x5bcd17('isRemoveSuggestion',_0xf21e46,_0x5788d4,_0x4dc3b5),_0x5bcd17('isAddSuggestion',_0xf21e46,_0x5788d4,_0x4dc3b5),_0x5bcd17('isRemoved',_0xf21e46,_0x5788d4,_0x4dc3b5),_0x5bcd17('isAdded',_0xf21e46,_0x5788d4,_0x4dc3b5);for(const _0x2f92c7 of _0x3f7562[_0xf21e46]['markersEnd']){const _0x135ee9=_0x35117e['get'](_0x2f92c7);_0x135ee9?_0x135ee9['end']=_0x4dc3b5:_0x35117e['set'](_0x2f92c7,{'start':_0x4dc3b5,'end':_0x4dc3b5});}}for(const [_0x3747cc,_0xc0a788]of _0x35117e){const _0x1842ed=this['editor']['model']['createRange'](_0xc0a788['start'],_0xc0a788['end']);_0x151d12['markers']['set'](_0x3747cc,_0x1842ed);}return _0x3aeb88['sort']((_0x456519,_0x394ccd)=>{const _0x3a70ed=_0x151d12['markers']['get']('revision:'+_0x456519['id']),_0x77c2be=_0x151d12['markers']['get']('revision:'+_0x394ccd['id']);return _0x3a70ed['start']['isBefore'](_0x77c2be['start'])?-0x1:_0x3a70ed['start']['isAfter'](_0x77c2be['start'])?0x1:_0x3a70ed['end']['isBefore'](_0x77c2be['end'])?-0x1:_0x3a70ed['end']['isAfter'](_0x77c2be['end'])?0x1:'add'===_0x456519['type']?-0x1:0x1;}),{'root':_0x151d12,'changes':_0x3aeb88};function _0x5bcd17(_0x18732e,_0x24551e,_0x4e41ad,_0x41445d){const _0x364a85=!!_0x3f7562[_0x24551e][_0x18732e],_0xad2f00=_0x364a85?_0x3f7562[_0x24551e][_0x18732e]['userId']:null,_0xf51c7=_0x24551e===_0x3f7562['length']-0x1,_0xcbdff9=_0x2a13a8[_0x18732e][0x0],_0x4229bc=_0x560085['isObject'](_0x3f7562[_0x24551e]['item']);!_0x3c67fe[_0x18732e]&&_0x364a85?_0x3c67fe[_0x18732e]={'start':_0x4e41ad,'tapeItem':_0x3f7562[_0x24551e],'userId':_0xad2f00,'type':_0x18732e}:_0x3c67fe[_0x18732e]&&!_0x364a85?(_0x3c67fe[_0x18732e]['end']=_0x4e41ad,_0x43c296(_0x3c67fe[_0x18732e]),_0x3c67fe[_0x18732e]=null):_0x3c67fe[_0x18732e]&&_0x364a85&&_0x3c67fe[_0x18732e]['userId']!==_0xad2f00&&(_0x3c67fe[_0x18732e]['end']=_0x4e41ad,_0xcbdff9&&_0xcbdff9['userId']===_0x3c67fe[_0x18732e]['userId']||_0x43c296(_0x3c67fe[_0x18732e]),_0x3c67fe[_0x18732e]={'start':_0x4e41ad,'tapeItem':_0x3f7562[_0x24551e],'userId':_0xad2f00,'type':_0x18732e}),_0x3c67fe[_0x18732e]&&_0x4229bc&&('elementStart'!==_0x3f7562[_0x24551e]['type']||_0xcbdff9&&_0xcbdff9['userId']===_0xad2f00||_0x2a13a8[_0x18732e]['unshift']({'userId':_0xad2f00,'object':_0x3f7562[_0x24551e]['item'],'change':_0x3c67fe[_0x18732e]}),'elementEnd'===_0x3f7562[_0x24551e]['type']&&_0xcbdff9&&_0xcbdff9['object']===_0x3f7562[_0x24551e]['item']&&(_0x2a13a8[_0x18732e]['shift'](),_0x3c67fe[_0x18732e]=_0xcbdff9['change'])),_0x3c67fe[_0x18732e]&&_0xf51c7&&(_0x3c67fe[_0x18732e]['end']=_0x41445d,_0x43c296(_0x3c67fe[_0x18732e]),_0x3c67fe[_0x18732e]=null);}function _0x43c296({start:_0x1efc5d,end:_0x1ca768,tapeItem:_0x293957,userId:_0x45518e,type:_0x29f0d6}){const _0x2c47fb=_0x293957['item'],_0x4d4d1b=_0xf5b5e4['schema']['isBlock'](_0x2c47fb)&&!_0xf5b5e4['schema']['isLimit'](_0x2c47fb),_0x4e81c0=_0x1efc5d['nodeAfter']==_0x1ca768['parent']&&_0x1ca768['isAtStart'];if(_0x4d4d1b&&_0x4e81c0)return;const _0x191b73=_0xf5b5e4['createRange'](_0x1efc5d,_0x1ca768),_0x4dbc8a=_0x23eb3f['get'](_0x45518e),_0x275ab6=new r({'author':_0x4dbc8a,'type':'isAdded'==_0x29f0d6||'isAddSuggestion'==_0x29f0d6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x29f0d6||'isRemoveSuggestion'==_0x29f0d6},'createdAt':new Date(),'rootName':_0x143207});_0x3aeb88['push'](_0x275ab6),_0x151d12['markers']['set']('revision:'+_0x275ab6['id'],_0x191b73);}function _0x4c0ccb(_0x12f5e5,_0x89ada0){const _0x4228a3=_0x12f5e5['getAttributes'](),_0x238d33=_0x89ada0['getAttributes']();for(const _0x52de44 of _0x4228a3){if(_0x52de44[0x1]!==_0x89ada0['getAttribute'](_0x52de44[0x0]))return!0x1;_0x238d33['next']();}return _0x238d33['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x19ee1e=>{const _0x5c7900=_0x19ee1e['markerName']['split'](':')[0x1],_0x2bd676=this['_getChangeFromId'](_0x5c7900);if(!_0x2bd676)return null;const _0x5b6477='add'==_0x2bd676['type']?'insertion':'deletion',_0x3500a1=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5b6477];return _0x2bd676['data']['isSuggestion']&&_0x3500a1['push']('ck-suggestion-marker-'+_0x5b6477+'-new'),this['activeChange']==_0x2bd676&&_0x3500a1['push']('ck-suggestion-marker--active'),{'classes':_0x3500a1,'attributes':{'data-change-id':_0x5c7900}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4824ab=>{_0x4824ab['on']('element:pre',(_0x11bd80,_0x4f35af,_0x1c50ff)=>{const _0x3e9681=_0x4f35af['viewItem']['getChild'](0x0);if(!_0x3e9681||!_0x3e9681['is']('element','code'))return;if(!_0x1c50ff['consumable']['consume'](_0x3e9681,{'attributes':['vid_start','vid_end']}))return;const _0x137e81=_0x4f35af['modelRange']['start']['nodeAfter'];_0x1c50ff['writer']['setAttribute']('vid_start',_0x3e9681['getAttribute']('vid_start'),_0x137e81),_0x1c50ff['writer']['setAttribute']('vid_end',_0x3e9681['getAttribute']('vid_end'),_0x137e81);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x84d0ed=>{_0x84d0ed['on']('element',(_0x3c5390,_0x2c312c,_0x31232a)=>{if(!_0x31232a['consumable']['consume'](_0x2c312c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2c312c['modelRange']['isCollapsed'])return;const _0x2dd689=_0x2c312c['modelRange']['start']['nodeAfter'];_0x2dd689['hasAttribute']('vid_start')||_0x2dd689['hasAttribute']('vid')||(_0x31232a['writer']['setAttribute']('vid_start',_0x2c312c['viewItem']['getAttribute']('vid_start'),_0x2dd689),_0x31232a['writer']['setAttribute']('vid_end',_0x2c312c['viewItem']['getAttribute']('vid_end'),_0x2dd689));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x445c94=>_0x445c94['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x260db8,[,_0x47a412])=>{['vid_start','vid_end','vid']['includes'](_0x47a412)&&(_0x260db8['return']=!0x0,_0x260db8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x420443=>{_0x420443['on']('attribute:vid',(_0x495cdd,_0x38335b,_0x33c914)=>{if('\x20'!=_0x38335b['item']['data']||_0x38335b['item']['parent']['maxOffset']>0x1)return;if(!_0x33c914['consumable']['consume'](_0x38335b['item'],_0x495cdd['name']))return;const _0xb93330=_0x33c914['writer'],_0x4d9de8=_0x33c914['mapper']['toViewRange'](_0x38335b['range']);_0xb93330['wrap'](_0x4d9de8,_0xb93330['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x483270){const _0x7aa25=_0x483270['plugins']['get']('RevisionViewer');return(_0x230de1,_0x127844,_0xab4679)=>{const _0x416026=_0x127844['markerName']['split'](':')[0x1],_0x1935c8=_0x7aa25['_getChangeFromId'](_0x416026);if(!_0x1935c8)return null;const _0x7f9884='add'==_0x1935c8['type']?'split':'merge';if(!_0xab4679['consumable']['test'](_0x127844['markerRange'],_0x230de1['name']))return;const _0x502168=_0x127844['markerRange']['getWalker'](),_0x529961=_0x127844['markerRange']['start'],_0x55990e=_0x483270['model']['schema'];let _0x46f768=null,_0x145a3e=null,_0x55ceee=!0x1,_0x53cb8b=!0x1;for(const _0x41324f of _0x502168){const _0x558522=_0x41324f['item'];_0x55ceee=_0x55ceee||_0x55990e['isContent'](_0x558522);const _0x34c5b5=_0xab4679['mapper']['toViewElement'](_0x558522);if(_0x34c5b5&&_0x34c5b5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x41324f['type']&&(_0x55990e['isBlock'](_0x558522)&&!_0x55990e['isLimit'](_0x558522)&&(_0x558522['nextSibling']||_0x529961['isAtEnd']?_0x46f768&&_0x46f768['parent']==_0x558522||(_0x46f768=_0x558522,_0x185ac8(_0x41324f['previousPosition']),_0x53cb8b=!0x0):_0x145a3e=_0x145a3e||_0x41324f['previousPosition']));}function _0x185ac8(_0x298851){const _0x106e81=_0xab4679['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7f9884}),_0x5a1999=_0xab4679['mapper']['toViewPosition'](_0x298851);_0x1935c8['data']['isSuggestion']&&_0xab4679['writer']['addClass']('ck-suggestion-marker-'+_0x7f9884+'-new',_0x106e81),_0x7aa25['activeChange']==_0x1935c8&&_0xab4679['writer']['addClass']('ck-suggestion-marker--active',_0x106e81),_0xab4679['writer']['insert'](_0x5a1999,_0x106e81),_0xab4679['mapper']['bindElementToMarker'](_0x106e81,_0x127844['markerName']);}_0x55ceee||_0x53cb8b||!_0x145a3e||_0x185ac8(_0x145a3e);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5d02ff,_0x12191e,_0xe8fe5b)=>{const _0x599273=_0xe8fe5b['mapper']['markerNameToElements'](_0x12191e['markerName']);if(_0x599273){for(const _0x2ebf7c of _0x599273)(_0x2ebf7c['hasClass']('ck-suggestion-marker-split')||_0x2ebf7c['hasClass']('ck-suggestion-marker-merge'))&&(_0xe8fe5b['mapper']['unbindElementFromMarkerName'](_0x2ebf7c,_0x12191e['markerName']),_0xe8fe5b['writer']['remove'](_0x2ebf7c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x48a434,_0x343fe1,_0x42caba)=>{const _0x1effbe=_0x343fe1['markerName']['split'](':')[0x1],_0x3d773f=this['_getChangeFromId'](_0x1effbe);if(!_0x3d773f)return null;const _0x2f891a='add'==_0x3d773f['type']?'split':'merge';if(_0x42caba['consumable']['test'](_0x343fe1['markerRange'],_0x48a434['name']))for(const _0x1da1aa of _0x343fe1['markerRange']['getItems']()){if(!_0x1da1aa['is']('element','softBreak'))continue;const _0x3707f1=_0x42caba['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f891a}),_0xd78664=_0x42caba['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1da1aa));_0x3d773f['data']['isSuggestion']&&_0x42caba['writer']['addClass']('ck-suggestion-marker-'+_0x2f891a+'-new',_0x3707f1),this['activeChange']==_0x3d773f&&_0x42caba['writer']['addClass']('ck-suggestion-marker--active',_0x3707f1),_0x42caba['writer']['insert'](_0xd78664,_0x3707f1),_0x42caba['mapper']['bindElementToMarker'](_0x3707f1,_0x343fe1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x24e090=>{for(const _0x185da5 of this['editor']['model']['document']['getRootNames']()){const _0x18e89f=this['editor']['model']['document']['getRoot'](_0x185da5),_0x1ae68b=this['editor']['editing']['view']['document']['getRoot'](_0x185da5);if(_0x1ae68b){const _0x24e1b1=_0x18e89f['getAttribute']('revisionHistoryAttachChange');if(_0x24e090['removeAttribute']('data-change-id',_0x1ae68b),_0x24e090['removeClass']('ck-revision-history-root-add',_0x1ae68b),_0x24e090['removeClass']('ck-revision-history-root-remove',_0x1ae68b),_0x24e090['removeClass']('ck-revision-history-root--active',_0x1ae68b),_0x24e1b1){const _0x419491=this['_getChangeFromId'](_0x24e1b1);if(!_0x419491)return null;_0x24e090['setAttribute']('data-change-id',_0x24e1b1,_0x1ae68b),_0x24e090['addClass']('ck-revision-history-root-'+_0x419491['type'],_0x1ae68b),this['activeChange']==_0x419491&&_0x24e090['addClass']('ck-revision-history-root--active',_0x1ae68b);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x60017e=>'revision-comment:'+_0x60017e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5b637f=>'revision-suggestion:'+_0x5b637f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x51842d=>({'name':'suggestion:'+_0x51842d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2ee28b=>{const _0x129f69=_0x2ee28b['markerName']['split'](':')[0x1];return'insertion'!=_0x129f69&&'deletion'!=_0x129f69?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x129f69]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3aee48,_0xff0ec8,_0x47a6c3)=>{const _0x2fec9d=_0x47a6c3['mapper']['markerNameToElements'](_0xff0ec8['markerName']);if(_0x2fec9d){for(const _0x311828 of _0x2fec9d)_0x311828['is']('uiElement')&&(_0x47a6c3['mapper']['unbindElementFromMarkerName'](_0x311828,_0xff0ec8['markerName']),_0x47a6c3['writer']['remove'](_0x311828));}},{'priority':'high'});}['_getChangeFromId'](_0x2e3588){return this['_changeIdToChange']['get'](_0x2e3588);}['_getViewForChange'](_0x2fb7e5){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2fb7e5),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2da9d8,_0x425b06,_0x2db7a0,_0x12efc3)=>{_0x12efc3&&this['_balloon']['remove'](_0x12efc3),_0x2db7a0&&(this['_balloon']['add']({'view':_0x2db7a0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x321ec0=this['editor']['editing'],_0x5b3d35=this['_getChangeFromId'](_0x2db7a0['changeId']);let _0x79c1aa;if(_0x5b3d35['data']['isOnRoot']){const _0x4fc078=_0x321ec0['view']['getDomRoot'](_0x5b3d35['rootName']);_0x79c1aa=Array['from'](_0x4fc078['getClientRects']());}else{const _0x48e1c6=this['editor']['model']['markers']['get']('revision:'+_0x2db7a0['changeId']);_0x79c1aa=Array['from'](_0x321ec0['mapper']['markerNameToElements'](_0x48e1c6['name']))['map'](_0x4f49b4=>_0x321ec0['view']['domConverter']['mapViewToDom'](_0x4f49b4))['map'](_0x355d99=>Array['from'](_0x355d99['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x79c1aa[0x0];return _0x79c1aa['find'](_0x361c51=>_0x361c51['top']-0x3<=this['_activeViewTarget']['y']&&_0x361c51['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x361c51['left']-0x3<=this['_activeViewTarget']['x']&&_0x361c51['right']+0x3>=this['_activeViewTarget']['x'])||_0x79c1aa[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2e04b6,_0x5020e8,_0x2b29d4,_0x11e7a8)=>{this['activeView']=_0x2b29d4?this['_getViewForChange'](_0x2b29d4):null,this['editor']['model']['change'](()=>{const _0x58a153=this['editor']['editing'];_0x11e7a8&&(_0x11e7a8['data']['isOnRoot']?_0x58a153['view']['change'](_0x2c9dc8=>{_0x2c9dc8['removeClass']('ck-revision-history-root--active',_0x58a153['view']['document']['getRoot'](_0x11e7a8['rootName']));}):_0x58a153['reconvertMarker']('revision:'+_0x11e7a8['id'])),_0x2b29d4&&(_0x2b29d4['data']['isOnRoot']?_0x58a153['view']['change'](_0x1e0f69=>{_0x1e0f69['addClass']('ck-revision-history-root--active',_0x58a153['view']['document']['getRoot'](_0x2b29d4['rootName']));}):_0x58a153['reconvertMarker']('revision:'+_0x2b29d4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x18d2e7,_0x6f672d)=>{if(this['activeChange'])return;const _0x4876f5=this['_findChangeIdFromDomTarget'](_0x6f672d['target']),_0x396141=this['_changeIdToChange']['get'](_0x4876f5);_0x396141?(this['_activeViewTarget']={'x':_0x6f672d['domEvent']['x'],'y':_0x6f672d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x396141)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x127d79,_0x446ac1)=>{const _0x5a3d4b=this['_findChangeIdFromDomTarget'](_0x446ac1['target']),_0x3c11e9=this['_changeIdToChange']['get'](_0x5a3d4b);_0x3c11e9?(this['_activeViewTarget']={'x':_0x446ac1['domEvent']['x'],'y':_0x446ac1['domEvent']['y']},_0x3c11e9===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3c11e9):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3b9f23){do{const _0xeeaa06=_0x3b9f23['getAttribute']('data-change-id');if(_0xeeaa06)return _0xeeaa06;_0x3b9f23=_0x3b9f23['parent'];}while(_0x3b9f23);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x37269d=>{for(const _0xfe84d5 of this['editor']['model']['markers'])_0x37269d['removeMarker'](_0xfe84d5);});}}function X(_0xbdb6fe,_0x695191){return(_0x33f52b,_0x4a71ce,_0x1517cc)=>{if(!_0x1517cc['consumable']['test'](_0x4a71ce['markerRange'],_0x33f52b['name']))return;const _0x4ced38=_0x4a71ce['markerRange']['getWalker'](),_0x1c08b1=_0x4a71ce['markerRange']['start'],_0x5f0c44=_0xbdb6fe['model']['schema'];let _0x500d17=null,_0x591a83=null,_0x553b71=!0x1,_0x1573c7=!0x1;for(const _0x37ea1b of _0x4ced38){const _0x6578ac=_0x37ea1b['item'];_0x553b71=_0x553b71||_0x5f0c44['isContent'](_0x6578ac);const _0x3ffd1a=_0x1517cc['mapper']['toViewElement'](_0x6578ac);if(_0x3ffd1a&&_0x3ffd1a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x37ea1b['type']&&(_0x5f0c44['isBlock'](_0x6578ac)&&!_0x5f0c44['isLimit'](_0x6578ac)&&(_0x6578ac['nextSibling']||_0x1c08b1['isAtEnd']?_0x500d17&&_0x500d17['parent']==_0x6578ac||(_0x500d17=_0x6578ac,_0x356cee(_0x37ea1b['previousPosition']),_0x1573c7=!0x0):_0x591a83=_0x591a83||_0x37ea1b['previousPosition']));}function _0x356cee(_0x32b3b5){const _0x4a0370=_0x1517cc['mapper']['toViewPosition'](_0x32b3b5),_0x480153=_0x1517cc['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x695191});_0x1517cc['writer']['insert'](_0x4a0370,_0x480153),_0x1517cc['mapper']['bindElementToMarker'](_0x480153,_0x4a71ce['markerName']);}_0x553b71||_0x1573c7||!_0x591a83||_0x356cee(_0x591a83);};}class mt extends _0x4ad7f3{constructor(_0x3ead89){super(_0x3ead89);const _0x56a9c9=_0x3ead89['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x56a9c9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x56a9c9,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x57f1cb=this['editor'],_0x3415f5=_0x57f1cb['plugins']['get'](m),_0x2e1533=_0x3415f5['isReady']?_0x3415f5['diff']['newRevisionId']:null;_0x57f1cb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2e1533);}['refresh'](){const {isReady:_0x366627,isEnabled:_0xc8083a,repository:_0x445ae9,diff:_0x1d0a02}=this['editor']['plugins']['get'](m),_0x16d9d7=_0x1d0a02&&_0x445ae9['getLaterVisibleRevision'](_0x1d0a02['newRevisionId']);this['isEnabled']=_0x366627&&_0xc8083a&&Boolean(_0x16d9d7);}}class wt extends _0x4ad7f3{['_step'];constructor(_0x2d3f7e,{direction:_0x4c5b68}){super(_0x2d3f7e);const _0x979913=_0x2d3f7e['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x4c5b68?0x1:-0x1,this['listenTo'](_0x979913,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x979913,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x979913,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x3791d7=this['editor'],_0x53d4ee=_0x3791d7['plugins']['get'](m),{isNavigationMode:_0x505623,currentChangeNumber:_0x2611cf}=_0x53d4ee;let _0xfdc57f;if(_0x53d4ee['activeChange']=_0x505623?_0x53d4ee['diff']['changes']['get'](_0x2611cf+this['_step']):_0x53d4ee['diff']['changes']['first'],_0x53d4ee['activeChange']['data']['isOnRoot'])_0xfdc57f=_0x3791d7['editing']['view']['getDomRoot'](_0x53d4ee['activeChange']['rootName']);else{const _0x1cd136=_0x3791d7['model']['markers']['get']('revision:'+_0x53d4ee['activeChange']['id']);_0xfdc57f=_0x286786(_0x3791d7['editing'],_0x1cd136);}_0xdb082a({'target':_0xfdc57f,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19c253,currentChangeNumber:_0x5cda0f,numberOfChanges:_0x71f495,isReady:_0x1e76b9,isEnabled:_0x253db4}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x253db4&&_0x1e76b9&&_0x71f495)&&(!_0x19c253||(0x1===this['_step']?_0x5cda0f<_0x71f495-0x1:_0x5cda0f>0x0));}}class _i extends ts{constructor(_0x1e0d1b){super(_0x1e0d1b);const _0x4d415c=this['bindTemplate'],_0x436111=new te(_0x1e0d1b),_0x121b6c=new te(_0x1e0d1b);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',(_0x277ff0,_0x2a7fa6)=>_0x277ff0&&_0x2a7fa6>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x49a9b8,_0x235ff8,_0x45f33d,_0x31c8ea)=>{if(!_0x49a9b8)return g(_0x1e0d1b,'Loading...');if(!_0x45f33d)return g(_0x1e0d1b,'No\x20changes');const _0x221aea=g(_0x1e0d1b,'NUMBER_OF_CHANGES',_0x45f33d);return _0x31c8ea?g(_0x1e0d1b,'X_OF_Y_CHANGES',[_0x235ff8+0x1,_0x45f33d]):_0x221aea;}),_0x436111['set']({'label':g(_0x1e0d1b,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2858bc}),_0x121b6c['set']({'label':g(_0x1e0d1b,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1c5bf8}),_0x436111['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x121b6c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x436111['on']('execute',()=>this['fire']('execute','backward')),_0x121b6c['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',_0x4d415c['if']('_isStatusLabelVisible','ck-hidden',_0x1409d3=>!_0x1409d3)]},'children':[{'text':_0x4d415c['to']('isNavigationMode',_0x2d276a=>_0x2d276a?g(_0x1e0d1b,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x1e0d1b,'Total')+':\x20')}]},{'text':_0x4d415c['to']('_statusText')}]},new _0x4f8ba2(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x436111,_0x121b6c]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x443a46{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1bbb3b=this['editor']['editing']['view'];_0x1bbb3b['change'](_0x17350d=>{for(const _0xbe14f8 of _0x1bbb3b['document']['roots'])_0x17350d['addClass'](le,_0xbe14f8);});}['hide'](){const _0x10cb46=this['editor']['editing']['view'];_0x10cb46['change'](_0x3fed70=>{for(const _0x542b27 of _0x10cb46['document']['roots'])_0x3fed70['removeClass'](le,_0x542b27);});}}class R extends _0x443a46{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x1a2f4f=this['editor'],_0x5625b7=_0x1a2f4f['plugins']['get'](m),_0x53fcf6=_0x1a2f4f['plugins']['get'](ge);_0x1a2f4f['ui']['componentFactory']['add']('exitToEditing',_0x547f61=>{const _0x46625d=new te(_0x547f61);return _0x46625d['set']({'label':g(_0x547f61,'Back\x20to\x20editing'),'icon':_0x7b404c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x46625d,'execute',()=>{_0x1a2f4f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x46625d;}),_0x1a2f4f['ui']['componentFactory']['add']('restoreRevision',_0x1e5add=>{const _0xf47fc1=new te(_0x1e5add);return _0xf47fc1['set']({'label':g(_0x1e5add,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xf47fc1['bind']('isEnabled')['to'](_0x1a2f4f['commands']['get']('restoreRevision')),this['listenTo'](_0xf47fc1,'execute',()=>_0x1a2f4f['execute']('restoreRevision')),_0xf47fc1;}),_0x1a2f4f['ui']['componentFactory']['add']('changesNavigation',_0x1b18e1=>{const _0x32ae69=new _i(_0x1b18e1),_0x26d1b=_0x1a2f4f['commands']['get']('showPreviousChange'),_0x59185d=_0x1a2f4f['commands']['get']('showNextChange');return _0x32ae69['bind']('isBackwardNavigationEnabled')['to'](_0x26d1b,'isEnabled'),_0x32ae69['bind']('isForwardNavigationEnabled')['to'](_0x59185d,'isEnabled'),_0x32ae69['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5625b7),this['listenTo'](_0x32ae69,'execute',(_0x313f3a,_0x3615c1)=>{_0x1a2f4f['execute']('forward'===_0x3615c1?'showNextChange':'showPreviousChange');}),_0x32ae69;}),_0x53fcf6['show'](),_0x5625b7['on']('change:isReady',(_0x45cef2,_0x2cffce,_0x1948d5)=>{_0x1948d5?_0x53fcf6['hide']():_0x53fcf6['show']();});}}class at extends _0x5d8229{['_resizeObserver']=null;constructor(_0x110419,_0x547c16){super(_0x110419,_0x547c16);const _0x186cf0=this['bindTemplate'];this['set']({'label':g(_0x110419,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x110419,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x186cf0['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x263feb=this['fieldView']['element'];this['_tooltipString']=_0x263feb['scrollWidth']>_0x263feb['clientWidth']&&_0x263feb['value']||'';}}class si extends ts{constructor(_0x71164a,_0x2597df,_0x25fd2f){super(_0x71164a);const _0x1aed1c=new _0x5c632d();_0x1aed1c['set']({'content':_0x461254,'viewBox':'0\x200\x2011\x2010'});const _0x2241cc=['ck','ck-revision-history-sidebar__revision-author'];_0x25fd2f&&_0x2241cc['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4ec89b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x71164a,_0x25fd2f?'Revision\x20creator':'Revision\x20author')},'children':[_0x1aed1c,_0x2597df['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2241cc},'children':_0x4ec89b});}}function oi(_0x30b947,_0x2ec505){const _0x1268b3=_0x30b947['bindTemplate'],_0xc1023=_0x30b947['locale'],_0x239cf8=_0x1429b9(_0xc1023);_0x239cf8['panelPosition']='sw';const _0x396eee=function(_0x3759b4,_0x55092b){const _0x216f65=function(_0x1c857d,_0x28d025){const _0x4d58f2=_0x1c857d['locale'],_0x2324b9={'Compare\x20against\x20selected':g(_0x4d58f2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x4d58f2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x4d58f2,'Restore\x20this\x20revision')};return _0x28d025['map'](_0x25d8f2=>{const _0x54bbd1=_0x2324b9[_0x25d8f2['name']];return _0x54bbd1&&_0x54bbd1!==_0x25d8f2['name']&&(_0x25d8f2['name']=_0x54bbd1),_0x25d8f2;});}(_0x3759b4,_0x55092b),_0x48bd67=new _0x239345();for(const _0x465280 of _0x216f65){const _0x86b2e8={'type':'button','model':new to({'label':_0x465280['name'],'class':_0x465280['class'],'withText':!0x0,'role':'menuitem','_action':_0x465280['action']})};_0x86b2e8['model']['bind']('isEnabled')['to'](_0x3759b4,'isActionsDropdownOpen',_0x24138b=>'function'!=typeof _0x465280['isEnabled']||(!_0x24138b||_0x465280['isEnabled'](_0x3759b4))),_0x48bd67['add'](_0x86b2e8);}return _0x48bd67;}(_0x30b947,_0x2ec505);return _0x30b947['bind']('isActionsDropdownOpen')['to'](_0x239cf8,'isOpen'),_0x239cf8['buttonView']['set']({'label':g(_0xc1023,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3a1eed}),_0x239cf8['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1268b3['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1268b3['to'](_0x405388=>_0x405388['stopPropagation']())}}),_0x239cf8['on']('execute',_0x451906=>{_0x30b947['isReady']&&'function'==typeof _0x451906['source']['_action']&&_0x451906['source']['_action'](_0x30b947);}),_0xc4778d(_0x239cf8,_0x396eee,{'role':'menu'}),_0x239cf8['listenTo'](_0x30b947,'change:isActionsDropdownOpen',(_0x437ac1,_0x1205a8,_0x5db9cd)=>{if(_0x5db9cd)for(const _0x1e30ad of _0x239cf8['listView']['items']){const _0x214487=_0x1e30ad['children']['first'],_0x3da42b=_0x2ec505['find'](_0x34ca86=>_0x34ca86['action']===_0x214487['_action'])['isVisible'];_0x1e30ad['isVisible']=void 0x0===_0x3da42b||_0x3da42b(_0x30b947);}}),_0x239cf8;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2e947f,_0x3140ac,_0x511f9a,_0x20495e){super(_0x2e947f);const _0x3b56ba=this['bindTemplate'],_0x522bb7=function(_0x42e666,_0x98e617){const _0xc3b501=Array['from'](_0x98e617['authors'])['filter'](_0x1dc0a2=>_0x1dc0a2!=_0x98e617['creator']);return _0x98e617['creator']&&_0xc3b501['unshift'](_0x98e617['creator']),_0xc3b501['map'](_0x58868c=>new si(_0x42e666,_0x58868c,_0x58868c==_0x98e617['creator']));}(_0x2e947f,_0x3140ac);this['id']=_0x3140ac['id'],this['_revision']=_0x3140ac,this['_requireRevisionName']=_0x20495e,this['bind']('name','createdAt')['to'](_0x3140ac),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x48a67d=>{return _0x13a09d=_0x2e947f['uiLanguage'],(_0x46d08f=_0x48a67d)['toLocaleDateString'](_0x13a09d,{'month':'long','day':'numeric'})+',\x20'+_0x46d08f['toLocaleTimeString'](_0x13a09d,{'hour':'numeric','minute':'numeric'});var _0x13a09d,_0x46d08f;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x2e947f,_0x302711),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x50fa02=>_0x50fa02||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2c2325,_0x2de62c)=>_0x2c2325&&_0x2de62c),this['revisionActionsView']=_0x511f9a&&_0x511f9a['length']?oi(this,_0x511f9a):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3b56ba['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3b56ba['if']('isEnabled','ck-disabled',_0x1fe7b6=>!_0x1fe7b6),_0x3b56ba['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3b56ba['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3b56ba['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':_0x3b56ba['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':_0x522bb7}]},this['revisionActionsView']],'on':{'click':_0x3b56ba['to'](_0x4d4435=>{_0x4d4435['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4f47f1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4f47f1,'change',()=>{this['_requireRevisionName']&&!_0x4f47f1['value']||this['fire']('setName',{'id':this['id'],'name':_0x4f47f1['value']}),_0x4f47f1['value']||(_0x4f47f1['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x4425b2,_0x4dc0fc){const _0x5bfbb8=_0x473ede['fromJSDate'](_0x4425b2)['setLocale'](_0x4dc0fc),_0x4eae20=_0x473ede['local'](),_0x23c06e=_0x4eae20['minus']({'days':0x1})['startOf']('day');let _0x321769,_0x139991;return _0x5bfbb8['hasSame'](_0x4eae20,'day')?(_0x321769=_0x5bfbb8['startOf']('day')['toJSDate'](),_0x139991=_0x5bfbb8['toRelativeCalendar']()):_0x5bfbb8['hasSame'](_0x23c06e,'day')?(_0x321769=_0x23c06e['toJSDate'](),_0x139991=_0x5bfbb8['toRelativeCalendar']()):_0x5bfbb8['hasSame'](_0x4eae20,'week')?(_0x321769=_0x5bfbb8['startOf']('week')['toJSDate'](),_0x139991=_0x5bfbb8['weekdayLong']||''):_0x5bfbb8['hasSame'](_0x4eae20,'year')?(_0x321769=_0x5bfbb8['startOf']('month')['toJSDate'](),_0x139991=_0x5bfbb8['monthLong']||''):(_0x321769=_0x5bfbb8['startOf']('year')['toJSDate'](),_0x139991=String(_0x5bfbb8['year'])),{'startDate':_0x321769,'localizedPeriodName':_0x139991};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1214b2,_0xa84e65,_0x36ff02,_0x315b01){super(_0x1214b2);const _0x279da8=ai(_0xa84e65,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xa84e65,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x36ff02,this['_requireRevisionName']=_0x315b01,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':_0x279da8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xc09b66){const _0x396752=new hi(this['locale'],_0xc09b66,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x396752);}['removeRevision'](_0x27261e){const _0x1e4a5b=this['revisionViews']['find'](_0x26446a=>_0x26446a['id']===_0x27261e['id']);this['revisionViews']['remove'](_0x1e4a5b);}}class as extends ts{constructor(_0x4bc531){super(_0x4bc531);const _0x57e984=new _0x5c632d();_0x57e984['content']=_0x1ac31f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x57e984,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x4bc531,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x57847e,_0xd1a29f,_0xb0707a,_0x3eadf0){super(_0x57847e);const _0x377305=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xd1a29f,this['_revisionActions']=_0xb0707a,this['_requireRevisionName']=_0x3eadf0,this['on']('select',(_0x5b91fa,_0x3b8d6c)=>{this['fire']('revisionSelected',_0x3b8d6c);}),this['on']('setName',(_0x4593e4,_0x532bad)=>{this['fire']('revisionSetName',_0x532bad);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x57847e),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x377305['if']('isEnabled','ck-disabled',_0x279da3=>!_0x279da3)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x599f5b of this['_revisions'])this['_addRevision'](_0x599f5b);this['_revisions']['on']('add',(_0x6305b4,_0x39987c)=>{this['_addRevision'](_0x39987c);}),this['_revisions']['on']('remove',(_0x3f4f50,_0x5ef222)=>{this['_removeRevision'](_0x5ef222);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2cc99a=>_0x2cc99a['revisionViews']['map'](_0x2ae7f3=>_0x2ae7f3))['flat']();}['selectRevision'](_0x1ab683){for(const _0x2146a4 of this['revisionViews'])_0x1ab683&&_0x1ab683['id']===_0x2146a4['id']?_0x2146a4['select']():_0x2146a4['deselect']();}['highlightRevisions'](_0x25ba25){for(const _0x46d104 of this['revisionViews'])_0x25ba25['some'](({id:_0x294f7c})=>_0x294f7c===_0x46d104['id'])?_0x46d104['highlight']():_0x46d104['unhighlight']();}['_addRevision'](_0x40e0a4){const _0x491820=ai(_0x40e0a4['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x21603d=this['timePeriodViews']['get'](0x0);_0x21603d&&_0x21603d['startDate']['getTime']()===_0x491820['getTime']()||(_0x21603d=new di(this['locale'],_0x491820,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x21603d)),_0x21603d['addRevision'](_0x40e0a4);}['_removeRevision'](_0x36f88c){const _0x3dd8a0=ai(_0x36f88c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3dd8a0)['removeRevision'](_0x36f88c);}['_getTimePeriodViewByStartDate'](_0x44d52a){return this['timePeriodViews']['find'](_0xfaa534=>_0xfaa534['startDate']['getTime']()===_0x44d52a['getTime']());}}class d extends _0x443a46{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x42cf95,uid as _0x2973f6,Collection as _0x1b11cb,logWarning as _0x5088e7,FocusTracker as _0x203ed6,KeystrokeHandler as _0x3b3bb2,scrollViewportToShowTarget as _0x249a92,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x1fe60f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x53494d,set as _0xbfc5a4,unset as _0x542ae1,isEqual as _0x29bfbc}from'es-toolkit/compat';import{Plugin as _0x13ea32,PendingActions as _0x4ab75e,Command as _0x4275b1,ElementApiMixin as _0x35f24f,Editor as _0x467653}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xfff6d1,getMarkerDomElement as _0x147d9a,ConfirmMixin as _0x22b161,sanitizeEditorConfig as _0x34e8a5}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x8a8953,ViewAttributeElement as _0xe683b9,ViewEmptyElement as _0x1464ee,ViewRawElement as _0xa10df0,ViewUIElement as _0x21d2d3,ViewDocumentFragment as _0x3199d2,ViewText as _0x3a29dc,ViewElement as _0x226cf7,ModelElement as _0x14c8ed,ModelRange as _0x519484,ModelPosition as _0x4f5b0e,ModelDocumentFragment as _0x189713,ModelText as _0x475e46}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4a22ad,IconChevronUp as _0x33db78,IconChevronDown as _0x330731,IconUndo as _0x2d5fa2,IconUser as _0x1c83d9,IconThreeVerticalDots as _0x564602}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0xc06956,View as _0x8ba72d,submitHandler as _0x29edb7,LabeledFieldView as ti,createLabeledInputText as _0x4df153,createDropdown as _0x42539b,ListView as _0x3c1b15,ListItemView as _0x2c7bbc,ButtonView as _0x55ae9c,MenuBarMenuView as _0x4e3810,MenuBarMenuListView as _0x4154c0,MenuBarMenuListItemView as _0x1d82c4,MenuBarMenuListItemButtonView as _0x1f6d08,ContextualBalloon as _0xf06ef0,ToolbarSeparatorView as _0x53e02c,IconView as _0x255420,addListToDropdown as _0x2a3dc0,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x45f00a,StickyPanelView as _0x479ed7,ToolbarView as _0x557c7e,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5998d8}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
+ _0x42cf95(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5c2c64){super(),this['id']=_0x5c2c64['id']||_0x2973f6(),this['creator']=_0x5c2c64['creator']||null,this['authors']=_0x5c2c64['authors']||[],this['diffData']=_0x5c2c64['diffData']||null,this['toVersion']=_0x5c2c64['toVersion']||0x0,this['fromVersion']=_0x5c2c64['fromVersion']||0x0,this['set']('name',_0x5c2c64['name']||''),this['set']('createdAt',_0x5c2c64['createdAt']||new Date()),this['set']('attributes',_0x5c2c64['attributes']||{});}['setName'](_0x3515e4){this['_update']({'name':_0x3515e4});}['setAttribute'](_0x350091,_0x31f2e2){const _0x5dbade=_0x53494d(this['attributes']);_0xbfc5a4(_0x5dbade,_0x350091,_0x31f2e2),this['_update']({'attributes':_0x5dbade});}['removeAttribute'](_0x5238ed){const _0x549823=_0x53494d(this['attributes']);_0x542ae1(_0x549823,_0x5238ed),this['_update']({'attributes':_0x549823});}['_update'](_0x1e2221,_0x38769c=!0x1){let _0x4ef28f=!0x1;const _0x365076={'id':this['id']},_0x11630c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x48f43b of _0x11630c){const _0x5e428f=_0x1e2221[_0x48f43b];void 0x0!==_0x5e428f&&_0x5e428f!==this[_0x48f43b]&&(this[_0x48f43b]=_0x5e428f,_0x365076[_0x48f43b]=_0x5e428f,_0x4ef28f=!0x0);}_0x4ef28f&&(_0x365076['authors']&&(_0x365076['authorsIds']=_0x365076['authors']['map'](_0x17dfa6=>_0x17dfa6['id']),delete _0x365076['authors']),this['fire']('_update',_0x365076,_0x38769c));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x55daf4=>_0x55daf4['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x13ea32{['_revisions'];static get['requires'](){return[_0xfff6d1];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5d2303){super(_0x5d2303),this['_revisions']=new _0x1b11cb();}['afterInit'](){!async function(_0x17484d){const _0x32eb14=_0x15ebaf([0x54,0x68,0x37,0x55,0x51,0x67,0x63,0x41,0x4b,0x53,0x6f,0x56,0x35,0x72,0x39,0x69,0x59,0x47,0x36,0x34,0x52,0x73,0x38,0x6a,0x31,0x62,0x75,0x32,0x77,0x64,0x43,0x5a,0x33,0x42,0x78,0x4f,0x46,0x6c,0x45,0x65,0x71,0x48,0x61,0x7a,0x4e,0x49,0x4c,0x58,0x6e,0x50,0x57,0x44,0x66,0x6b,0x4a,0x74,0x6d,0x70,0x79,0x4d,0x30,0x76]),_0x292d8e=0xeb829,_0x1a0dfe=0x7357285b,_0x47c31b=0x7350440b^_0x1a0dfe,_0x163cdb=window[_0x15ebaf([0x44,0x61,0x74,0x65])][_0x15ebaf([0x6e,0x6f,0x77])](),_0x1600d1=_0x17484d[_0x15ebaf([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47764c=new window[(_0x15ebaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49023b=>{_0x1600d1[_0x15ebaf([0x6f,0x6e,0x63,0x65])](_0x15ebaf([0x72,0x65,0x61,0x64,0x79]),_0x49023b);}),_0xd01051={[_0x15ebaf([0x6b,0x74,0x79])]:_0x15ebaf([0x45,0x43]),[_0x15ebaf([0x75,0x73,0x65])]:_0x15ebaf([0x73,0x69,0x67]),[_0x15ebaf([0x63,0x72,0x76])]:_0x15ebaf([0x50,0x2d,0x32,0x35,0x36]),[_0x15ebaf([0x78])]:_0x15ebaf([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]),[_0x15ebaf([0x79])]:_0x15ebaf([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]),[_0x15ebaf([0x61,0x6c,0x67])]:_0x15ebaf([0x45,0x53,0x32,0x35,0x36])},_0x184a29=_0x1600d1[_0x15ebaf([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15ebaf([0x67,0x65,0x74])](_0x15ebaf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c2184(){let _0x343501,_0x4636f8=null,_0x5019c5=null;try{if(_0x184a29==_0x15ebaf([0x47,0x50,0x4c]))return _0x15ebaf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x343501=_0x589b6e(),!_0x343501)return _0x15ebaf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x343501[_0x15ebaf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5019c5=_0x66c159(_0x343501[_0x15ebaf([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x343501[_0x15ebaf([0x6a,0x74,0x69])])),await _0x381ac5()?_0x587760()?_0x4a0b92()?_0x15ebaf([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x448cc8()?(_0x343501[_0x15ebaf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15ebaf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4636f8=_0x42c50e(_0x15ebaf([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x343501[_0x15ebaf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15ebaf([0x74,0x72,0x69,0x61,0x6c])&&(_0x4636f8=_0x42c50e(_0x15ebaf([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1b35a4()):_0x15ebaf([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15ebaf([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15ebaf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x15ebaf([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a0b92(){const _0x44af19=[_0x15ebaf([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15ebaf([0x74,0x72,0x69,0x61,0x6c])][_0x15ebaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x343501[_0x15ebaf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x163cdb/0x3e8:0xe10*_0x47c31b;return _0x343501[_0x15ebaf([0x65,0x78,0x70])]<_0x44af19;}function _0x587760(){const _0x374c5a=_0x343501[_0x15ebaf([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x374c5a)return!0x1;if(_0x374c5a[_0x15ebaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ebaf([0x2a])))return!0x0;if(_0x374c5a[_0x15ebaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ebaf([0x52,0x48])))return!0x0;if(_0x374c5a[_0x15ebaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ebaf([0x52,0x52,0x48]))){if(_0x4fb00e())return!0x0;if(_0x4617c2()||_0x1ae34e())return!0x0;}return!0x1;}function _0x448cc8(){const _0x1f91b7=_0x343501[_0x15ebaf([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1f91b7||0x0==_0x1f91b7[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x51ba38}=new URL(window[_0x15ebaf([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1f91b7[_0x15ebaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51ba38))return!0x0;const _0xe91fd5=_0x51ba38[_0x15ebaf([0x73,0x70,0x6c,0x69,0x74])](_0x15ebaf([0x2e]));return _0x1f91b7[_0x15ebaf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2524c7=>_0x2524c7[_0x15ebaf([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ebaf([0x2a])))[_0x15ebaf([0x6d,0x61,0x70])](_0x1f1999=>_0x1f1999[_0x15ebaf([0x73,0x70,0x6c,0x69,0x74])](_0x15ebaf([0x2e])))[_0x15ebaf([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c13ff=>_0x4c13ff[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe91fd5[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15ebaf([0x6d,0x61,0x70])](_0x3d1c79=>Array(_0xe91fd5[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d1c79[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x15ebaf([0x66,0x69,0x6c,0x6c])](_0x3d1c79[0x0]===_0x15ebaf([0x2a])?_0x15ebaf([0x2a]):'')[_0x15ebaf([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d1c79))[_0x15ebaf([0x73,0x6f,0x6d,0x65])](_0x3927c5=>_0xe91fd5[_0x15ebaf([0x65,0x76,0x65,0x72,0x79])]((_0x4afcfe,_0x18b879)=>_0x3927c5[_0x18b879]===_0x4afcfe||_0x3927c5[_0x18b879]===_0x15ebaf([0x2a])));}function _0x1b35a4(){return _0x4636f8&&_0x5019c5?new window[(_0x15ebaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ab550,_0x184190)=>{_0x4636f8[_0x15ebaf([0x74,0x68,0x65,0x6e])](_0x4ab550,_0x184190),_0x5019c5[_0x15ebaf([0x74,0x68,0x65,0x6e])](_0x3c4ad2=>{_0x3c4ad2!=_0x15ebaf([0x56,0x61,0x6c,0x69,0x64])&&_0x4ab550(_0x3c4ad2);},_0x184190);}):_0x4636f8||_0x5019c5||_0x15ebaf([0x56,0x61,0x6c,0x69,0x64]);}}function _0x66c159(_0x2c7157,_0x142f7c){return new window[(_0x15ebaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x372a90=>{if(_0x369bb9())return _0x372a90(_0x15ebaf([0x56,0x61,0x6c,0x69,0x64]));_0x18a734(),_0x1600d1[_0x15ebaf([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15ebaf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e23fd=!0x1;const _0x4aec10=_0x2973f6();function _0xa5f493(_0x216ac4){return!!_0x216ac4&&(typeof _0x216ac4===_0x15ebaf([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x216ac4===_0x15ebaf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x216ac4[_0x15ebaf([0x74,0x68,0x65,0x6e])]===_0x15ebaf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x216ac4[_0x15ebaf([0x63,0x61,0x74,0x63,0x68])]===_0x15ebaf([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x178e09(_0x4c3099){_0x1047ae(_0x4c3099)[_0x15ebaf([0x74,0x68,0x65,0x6e])](_0x53bec8=>{if(!_0x53bec8||_0x53bec8[_0x15ebaf([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15ebaf([0x6f,0x6b]))return _0x15ebaf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x331d1e(_0x12b8c1(_0x4aec10+_0x142f7c))!=_0x53bec8[_0x15ebaf([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15ebaf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15ebaf([0x56,0x61,0x6c,0x69,0x64]);})[_0x15ebaf([0x74,0x68,0x65,0x6e])](_0x5415af=>(_0x5f20cf(),_0x5415af),()=>{const _0x1e2ea5=_0xd9fd39();return null==_0x1e2ea5?(_0x5f20cf(),_0x15ebaf([0x56,0x61,0x6c,0x69,0x64])):_0x15ebaf(_0x163cdb-_0x1e2ea5>(0x575bac5b^_0x1a0dfe)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15ebaf([0x74,0x68,0x65,0x6e])](_0x372a90)[_0x15ebaf([0x63,0x61,0x74,0x63,0x68])](()=>{_0x372a90(_0x15ebaf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e9631=0x7361c6db^_0x1a0dfe;function _0x5f20cf(){const _0x4b38ea=_0x15ebaf([0x6c,0x6c,0x63,0x74,0x2d])+_0x331d1e(_0x12b8c1(_0x2c7157)),_0x2b90ff=_0x21ea9f(_0x331d1e(window[_0x15ebaf([0x4d,0x61,0x74,0x68])][_0x15ebaf([0x63,0x65,0x69,0x6c])](_0x163cdb/_0x1e9631)));window[_0x15ebaf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15ebaf([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b38ea,_0x2b90ff);}function _0xd9fd39(){const _0x33ab20=_0x15ebaf([0x6c,0x6c,0x63,0x74,0x2d])+_0x331d1e(_0x12b8c1(_0x2c7157)),_0x37b8e8=window[_0x15ebaf([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15ebaf([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33ab20);return _0x37b8e8?window[_0x15ebaf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21ea9f(_0x37b8e8),0x10)*_0x1e9631:null;}function _0x1047ae(_0x219f9d){return new window[(_0x15ebaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x324462,_0xd35b1a)=>{_0x219f9d[_0x15ebaf([0x74,0x68,0x65,0x6e])](_0x324462,_0xd35b1a),window[_0x15ebaf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xd35b1a,0x7356fc9b^_0x1a0dfe);});}}_0x1600d1[_0x15ebaf([0x6f,0x6e])](_0x15ebaf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a4227,_0x17c32d)=>{if(_0x17c32d[0x0]!=_0x2c7157)return _0x372a90(_0x15ebaf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x17c32d[0x1]={..._0x17c32d[0x1],[_0x15ebaf([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4aec10};},{[_0x15ebaf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15ebaf([0x68,0x69,0x67,0x68])}),_0x1600d1[_0x15ebaf([0x6f,0x6e])](_0x15ebaf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x16172a=>{_0xa5f493(_0x16172a[_0x15ebaf([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e23fd=!0x0,_0x178e09(_0x16172a[_0x15ebaf([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15ebaf([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15ebaf([0x6c,0x6f,0x77])}),_0x47764c[_0x15ebaf([0x74,0x68,0x65,0x6e])](()=>{_0x2e23fd||_0x372a90(_0x15ebaf([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x369bb9(){return _0x1600d1[_0x15ebaf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15ebaf([0x76,0x69,0x65,0x77])][_0x15ebaf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15ebaf([0x61,0x75,0x74,0x6f]);}function _0x18a734(){_0x1600d1[_0x15ebaf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15ebaf([0x76,0x69,0x65,0x77])][_0x15ebaf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15ebaf([0x61,0x75,0x74,0x6f]);}}function _0x42c50e(_0x1c9004){const _0x31ea81=[new window[(_0x15ebaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d6010=>setTimeout(_0x2d6010,0x735e1697^_0x1a0dfe)),_0x47764c[_0x15ebaf([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15ebaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x544cf6=>{const _0x28e46f=0x7357285c^_0x1a0dfe,_0x238630=_0x17484d[_0x15ebaf([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4ace5b(){_0x238630[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x28e46f&&_0x544cf6();}_0x4ace5b(),_0x238630[_0x15ebaf([0x6f,0x6e])](_0x15ebaf([0x61,0x64,0x64]),_0x4ace5b);})),new window[(_0x15ebaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37c0a1=>{function _0xc1f1e2(){for(const _0x36b0fb in window)if(window[_0x15ebaf([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x15ebaf([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x36b0fb))&&window[_0x36b0fb]==_0x292d8e)return _0x37c0a1();_0x1600d1[_0x15ebaf([0x73,0x74,0x61,0x74,0x65])]!=_0x15ebaf([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x15ebaf([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xc1f1e2,0x73573bd3^_0x1a0dfe);}_0xfa0854(_0x15ebaf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xc1f1e2();})];return window[_0x15ebaf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15ebaf([0x72,0x61,0x63,0x65])](_0x31ea81)[_0x15ebaf([0x74,0x68,0x65,0x6e])](()=>_0x1c9004);}async function _0x5a484c(){if(await _0x47764c,_0xfa0854(_0x15ebaf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x53bb9b=_0x17484d[_0x15ebaf([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xf54f9e=_0x17484d[_0x15ebaf([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])](_0x53bb9b[_0x15ebaf([0x69,0x64])]),_0x4b0189=_0x5680f4(_0x15ebaf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4b0189[_0x15ebaf([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x53bb9b['id'],_0xf54f9e?_0xf54f9e['id']:null,!0x0),_0x4b0189[_0x15ebaf([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x15ebaf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4b0189[_0x15ebaf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4b0189[_0x15ebaf([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3f60a3,void(_0x4b0189[_0x15ebaf([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3f60a3);}if(_0xfa0854(_0x15ebaf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x53b913=_0x5680f4(_0x15ebaf([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x53b913[_0x15ebaf([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x15ebaf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x53b913[_0x15ebaf([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x53b913[_0x15ebaf([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3f60a3,_0x53b913[_0x15ebaf([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3f60a3;}_0x1600d1[_0x15ebaf([0x6d,0x6f,0x64,0x65,0x6c])][_0x15ebaf([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3f60a3,_0x1600d1[_0x15ebaf([0x6d,0x6f,0x64,0x65,0x6c])][_0x15ebaf([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3f60a3,_0x1600d1[_0x15ebaf([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15ebaf([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4fb00e(){return _0xfa0854(_0x15ebaf([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5680f4(_0x15ebaf([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15ebaf([0x73,0x74,0x61,0x74,0x65])]==_0x15ebaf([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4617c2(){return _0xfa0854(_0x15ebaf([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 _0x1ae34e(){return _0xfa0854(_0x15ebaf([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xaf5450(_0xd1b34b){const _0x404742=_0x2507ba();_0x1600d1[_0x404742]=_0x15ebaf([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])+_0xd1b34b,_0xd1b34b[_0x15ebaf([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x15ebaf([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2507ba()]=_0x292d8e),_0xd1b34b!=_0x15ebaf([0x56,0x61,0x6c,0x69,0x64])&&_0x5a484c();}function _0x2507ba(){const _0x8eedcc=window[_0x15ebaf([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15ebaf([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15ebaf([0x6e,0x6f,0x77])]())[_0x15ebaf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15ebaf([0x2e]),'');let _0x5bfb32=_0x15ebaf([0x54]);for(let _0x8e3bc8=0x0;_0x8e3bc8<_0x8eedcc[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8e3bc8+=0x2){let _0x57e9c5=window[_0x15ebaf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8eedcc[_0x15ebaf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8e3bc8,_0x8e3bc8+0x2));_0x57e9c5>=_0x32eb14[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x57e9c5-=_0x32eb14[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5bfb32+=_0x32eb14[_0x57e9c5];}return _0x5bfb32;}function _0x589b6e(){const _0x31a23e=_0x184a29[_0x15ebaf([0x73,0x70,0x6c,0x69,0x74])](_0x15ebaf([0x2e]));if(0x3!=_0x31a23e[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x25680f(_0x31a23e[0x1]);function _0x25680f(_0x5e173a){const _0x35c865=_0x32e54e(_0x5e173a);return _0x35c865&&_0x11de51()?_0x35c865:null;function _0x11de51(){const _0x326bc3=_0x35c865[_0x15ebaf([0x6a,0x74,0x69])],_0x52ab3e=window[_0x15ebaf([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x326bc3[_0x15ebaf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x326bc3[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5155c4={..._0x35c865,[_0x15ebaf([0x6a,0x74,0x69])]:_0x326bc3[_0x15ebaf([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x326bc3[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5155c4[_0x15ebaf([0x76,0x63])],_0x12b8c1(_0x5155c4)==_0x52ab3e;}}}async function _0x381ac5(){let _0x68ce1=!0x0;try{const _0x4859ea=_0x184a29[_0x15ebaf([0x73,0x70,0x6c,0x69,0x74])](_0x15ebaf([0x2e])),[_0x46c1d4,_0x1aa661,_0x5913a3]=_0x4859ea;return _0x9bd58b(_0x46c1d4),await _0x2b879b(_0x46c1d4,_0x1aa661,_0x5913a3),_0x68ce1;}catch{return!0x1;}function _0x9bd58b(_0x14e9d1){const _0x314543=_0x32e54e(_0x14e9d1);_0x314543&&_0x314543[_0x15ebaf([0x61,0x6c,0x67])]==_0x15ebaf([0x45,0x53,0x32,0x35,0x36])||(_0x68ce1=!0x1);}async function _0x2b879b(_0x52d19d,_0x5d06e6,_0x3ff67d){const _0x2ac133=window[_0x15ebaf([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15ebaf([0x66,0x72,0x6f,0x6d])](_0xe2492b(_0x3ff67d),_0xe5a45a=>_0xe5a45a[_0x15ebaf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27d9de=new window[(_0x15ebaf([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15ebaf([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x52d19d+_0x15ebaf([0x2e])+_0x5d06e6),_0x2eb7a7=window[_0x15ebaf([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15ebaf([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2eb7a7)return;const _0x2bf2d7=await _0x2eb7a7[_0x15ebaf([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15ebaf([0x6a,0x77,0x6b]),_0xd01051,{[_0x15ebaf([0x6e,0x61,0x6d,0x65])]:_0x15ebaf([0x45,0x43,0x44,0x53,0x41]),[_0x15ebaf([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15ebaf([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15ebaf([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2eb7a7[_0x15ebaf([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15ebaf([0x6e,0x61,0x6d,0x65])]:_0x15ebaf([0x45,0x43,0x44,0x53,0x41]),[_0x15ebaf([0x68,0x61,0x73,0x68])]:{[_0x15ebaf([0x6e,0x61,0x6d,0x65])]:_0x15ebaf([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2bf2d7,_0x2ac133,_0x27d9de)||(_0x68ce1=!0x1);}}function _0x32e54e(_0x27bbc2){return _0x27bbc2[_0x15ebaf([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15ebaf([0x65,0x79]))?JSON[_0x15ebaf([0x70,0x61,0x72,0x73,0x65])](_0xe2492b(_0x27bbc2)):null;}function _0xe2492b(_0x5343d7){return window[_0x15ebaf([0x61,0x74,0x6f,0x62])](_0x5343d7[_0x15ebaf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15ebaf([0x2b]))[_0x15ebaf([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15ebaf([0x2f])));}function _0x12b8c1(_0x3701d0){let _0x382c2a=0x1505;function _0x6d1bd9(_0x1b8a73){for(let _0x344384=0x0;_0x344384<_0x1b8a73[_0x15ebaf([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x344384++){const _0x1b9d77=_0x1b8a73[_0x15ebaf([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x344384);_0x382c2a=(_0x382c2a<<0x5)+_0x382c2a+_0x1b9d77,_0x382c2a&=_0x382c2a;}}function _0xc00ad0(_0x101dd6){Array[_0x15ebaf([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x101dd6)?_0x101dd6[_0x15ebaf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xc00ad0):_0x101dd6&&typeof _0x101dd6==_0x15ebaf([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15ebaf([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x101dd6)[_0x15ebaf([0x73,0x6f,0x72,0x74])]()[_0x15ebaf([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a44af,_0x2d4590])=>{_0x6d1bd9(_0x5a44af),_0xc00ad0(_0x2d4590);}):_0x6d1bd9(window[_0x15ebaf([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x101dd6));}return _0xc00ad0(_0x3701d0),_0x382c2a>>>0x0;}function _0x331d1e(_0x22b6a8){return _0x22b6a8[_0x15ebaf([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15ebaf([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15ebaf([0x30]));}function _0x21ea9f(_0x41752e){return _0x41752e[_0x15ebaf([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15ebaf([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15ebaf([0x6a,0x6f,0x69,0x6e])]('');}function _0xfa0854(_0x2377a1){return _0x1600d1[_0x15ebaf([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15ebaf([0x68,0x61,0x73])](_0x2377a1);}function _0x5680f4(_0x1e0d2c){return _0x1600d1[_0x15ebaf([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15ebaf([0x67,0x65,0x74])](_0x1e0d2c);}function _0x3f60a3(){}function _0x15ebaf(_0xc767e2){return _0xc767e2['map'](_0x38e220=>String['fromCharCode'](_0x38e220))['join']('');}_0xaf5450(await _0x1c2184());}(this);}['createRevision'](_0x5db123){const _0x1de7db=this['editor']['plugins']['get']('Users');return new I({'id':_0x5db123['id'],'name':_0x5db123['name'],'creator':_0x5db123['creatorId']?_0x1de7db['getUser'](_0x5db123['creatorId']):null,'diffData':_0x5db123['diffData']||_0x5db123['data'],'authors':_0x5db123['authorsIds']['map'](_0x20fdf4=>_0x1de7db['getUser'](_0x20fdf4)),'createdAt':new Date(_0x5db123['createdAt']),'attributes':_0x5db123['attributes'],'fromVersion':_0x5db123['fromVersion'],'toVersion':_0x5db123['toVersion']});}['addRevision'](_0x47854a,_0x1f2ecd=0x0){this['_revisions']['add'](_0x47854a,_0x1f2ecd);}['getRevision'](_0x4d8a4){return this['_revisions']['get'](_0x4d8a4);}['getRevisions'](_0x40fbdf={'toJSON':!0x1}){const _0x5164a1=Array['from'](this['_revisions']);return _0x5164a1['reverse'](),_0x40fbdf['toJSON']?_0x5164a1['map'](_0x50f754=>_0x50f754['toJSON']()):_0x5164a1;}['getIndex'](_0x5d85fd){return this['_revisions']['getIndex'](_0x5d85fd);}['getEarlierVisibleRevision'](_0xc48278){const [,_0x284865]=this['getRevisionsIterator'](_0xc48278,{'direction':'earlier'});return _0x284865;}['getLaterVisibleRevision'](_0x569d2c){const [,_0x2b24d3]=this['getRevisionsIterator'](_0x569d2c,{'direction':'later'});return _0x2b24d3;}['getRevisionsInDiff'](_0x797374){const _0x1f5096=[];for(const _0x202a5e of this['getRevisionsIterator'](_0x797374['newRevisionId']))if(_0x1f5096['push'](_0x202a5e),_0x202a5e['id']===_0x797374['oldRevisionId'])break;return _0x1f5096;}*['getRevisionsIterator'](_0x438168,{direction:_0x1c2817='earlier',filter:_0xfbda2f=()=>!0x0}={}){const _0x394c79='earlier'===_0x1c2817?0x1:-0x1;let _0x53cc39=this['_revisions']['get'](_0x438168),_0x3ea00b=this['getIndex'](_0x53cc39);for(yield _0x53cc39;_0x53cc39;){if(_0x3ea00b+=_0x394c79,_0x53cc39=this['getRevision'](_0x3ea00b),!_0x53cc39)return;_0xfbda2f(_0x53cc39)&&(yield _0x53cc39);}}}class $ extends _0x13ea32{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x8a8953,'c'],[_0xe683b9,'a'],[_0x1464ee,'e'],[_0xa10df0,'r'],[_0x21d2d3,'u']]);['_typeCharToViewClass']=new Map([['c',_0x8a8953],['a',_0xe683b9],['e',_0x1464ee],['r',_0xa10df0],['u',_0x21d2d3]]);async['loadRevisionData'](_0x45a181,_0x5c8c6e){if(_0x45a181['diffData']||!_0x5c8c6e)return;const _0x2cdd1b=this['editor']['config']['get']('collaboration.channelId'),_0x389174=await _0x5c8c6e['getRevision']({'channelId':_0x2cdd1b,'revisionId':_0x45a181['id']});_0x45a181['diffData']=_0x389174['diffData'];}['getRevisionDocumentData'](_0x2c5f2a){const _0x289a3f={};for(const _0x25704f in _0x2c5f2a['diffData']){if(_0x2c5f2a['diffData'][_0x25704f]['attachChange']&&!_0x2c5f2a['diffData'][_0x25704f]['attachChange']['isAttached'])continue;const _0xeb228e=this['_removeRevisionMarkers'](JSON['parse'](_0x2c5f2a['diffData'][_0x25704f]['insertions'])),_0x374184=this['editor']['editing']['view']['document'],_0x33b4c8=new _0x3199d2(_0x374184,_0xeb228e['map'](_0x1cc92f=>this['_getViewFromDiffObj'](_0x1cc92f,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x289a3f[_0x25704f]=this['editor']['data']['processor']['toData'](_0x33b4c8),this['editor']['data']['processor']['useFillerType']('default');}return _0x289a3f;}['getRevisionRootsAttributes'](_0xda563){const _0x37f337={};for(const _0x5d1edc in _0xda563['diffData'])_0xda563['diffData'][_0x5d1edc]['attachChange']&&!_0xda563['diffData'][_0x5d1edc]['attachChange']['isAttached']||(_0x37f337[_0x5d1edc]=_0xda563['diffData'][_0x5d1edc]['attributesAfter']||{});return _0x37f337;}['_getTypeCharForViewElement'](_0x5f4f8f){return this['_viewClassToTypeChar']['get'](_0x5f4f8f['constructor']);}['_getViewFromDiffObj'](_0x9cfef4,_0x2c42bc){const _0x187525=this['editor']['editing']['view']['document'];if('string'==typeof _0x9cfef4)return new _0x3a29dc(_0x187525,_0x9cfef4);{let _0x393611,_0x3c2cff;_0x3c2cff='u'==_0x9cfef4['type']||'r'==_0x9cfef4['type']?[]:_0x9cfef4['children']['map'](_0x13d1c5=>this['_getViewFromDiffObj'](_0x13d1c5,_0x2c42bc));const _0x24d37e=this['_typeCharToViewClass']['get'](_0x9cfef4['type'])||_0x226cf7,_0x1a9e92=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x393611=new _0x24d37e(_0x187525,_0x9cfef4['name'],_0x9cfef4['attributes'],_0x3c2cff),'u'==_0x9cfef4['type']&&_0x9cfef4['children'][0x0]){const _0x570a62=_0x9cfef4['children'][0x0];if(_0x393611['render']=function(_0x46937d){const _0xf17579=_0x46937d['createElement']('div');return _0xf17579['innerHTML']=_0x570a62,_0xf17579['childNodes'][0x0];},_0x2c42bc){const _0x4e5f10=new _0x3199d2(_0x187525);_0x4e5f10['_appendChild'](_0x393611);const _0x5e3875=Array['from'](_0x1a9e92['viewChildrenToDom'](_0x4e5f10,{'bind':!0x1})),_0xe4cc75=_0x1a9e92['domDocument']['createElement']('div');_0xe4cc75['append'](..._0x5e3875),_0x393611=Array['from'](_0x1a9e92['domChildrenToView'](_0xe4cc75))[0x0];}}else{if('r'==_0x9cfef4['type']&&_0x9cfef4['children'][0x0]){const _0x21764a=_0x9cfef4['children'][0x0];if(_0x393611['render']=function(_0x4f06f8){_0x4f06f8['innerHTML']=_0x21764a;},_0x2c42bc){const _0x38af8b=new _0x3199d2(_0x187525);_0x38af8b['_appendChild'](_0x393611);const _0x373d45=Array['from'](_0x1a9e92['viewChildrenToDom'](_0x38af8b,{'bind':!0x1})),_0x4e52cf=_0x1a9e92['domDocument']['createElement']('div');_0x4e52cf['append'](..._0x373d45);const _0x8eda5=Array['from'](_0x1a9e92['domChildrenToView'](_0x4e52cf));_0x8eda5['length']>0x1?_0x393611['_appendChild'](_0x8eda5):_0x393611=_0x8eda5[0x0];}}}if(_0x9cfef4['customProperties']){for(const [_0x5294a6,_0x5adc3d]of _0x9cfef4['customProperties'])_0x393611['_setCustomProperty'](_0x5294a6,_0x5adc3d);}const _0x5f0062=void 0x0===_0x9cfef4['fillerOffset']?null:_0x9cfef4['fillerOffset'];return null!==_0x5f0062&&(_0x393611['getFillerOffset']=()=>_0x5f0062),_0x393611;}}['_makeModelFromViewString'](_0x1520d0){const _0x387daa=JSON['parse'](_0x1520d0),_0x2e1a50=this['editor']['editing']['view']['document'],_0x493524=new _0x3199d2(_0x2e1a50,_0x387daa['map'](_0x32531b=>this['_getViewFromDiffObj'](_0x32531b,!0x0)));return this['editor']['data']['toModel'](_0x493524);}['_removeRevisionMarkers'](_0x43ffe4){return(_0x43ffe4=_0x43ffe4['filter'](_0xa0f120=>!_0xa0f120['name']||'revision-start'!==_0xa0f120['name']&&'revision-end'!==_0xa0f120['name']))['forEach'](_0x2a9b69=>{'string'!=typeof _0x2a9b69&&(_0x2a9b69['children']=this['_removeRevisionMarkers'](_0x2a9b69['children']),_0x2a9b69['attributes']=_0x2a9b69['attributes']['filter'](_0x2d69bd=>!_0x2d69bd[0x0]['startsWith']('data-revision-')));}),_0x43ffe4;}}function R(_0x3116ad,_0x4eb983,_0x22abaf){const t=_0x3116ad['t'];switch(_0x4eb983){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'},_0x22abaf);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x22abaf);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x13ea32{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xfff6d1,S,$,_0x4ab75e];}constructor(_0x2e7294){super(_0x2e7294),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4dfd34=_0x2973f6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4dfd34},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xe0b16f=this['repository']['getRevision'](0x0),_0x36aaed=_0xe0b16f&&null===_0xe0b16f['creator']?_0xe0b16f:null;if(this['_continueCurrentRevision']=!!_0x36aaed&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2a3bf4=this['_source']['getCurrentRevisionId'](),_0x11eb9f=this['repository']['getRevision'](_0x2a3bf4);if(_0x11eb9f)this['_startingVersion']=_0x11eb9f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x43074b=this['_source']['history']['_operations']['find'](_0x196445=>!_0x196445['_isInit']),_0x89dc27=_0x43074b?_0x43074b['baseVersion']:this['_source']['history']['version'];_0xe0b16f?(_0xe0b16f['toVersion']<_0x89dc27&&_0xe0b16f['_update']({'toVersion':_0x89dc27}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x36aaed['id'],this['_startingVersion']=_0x36aaed['fromVersion']):(this['_startingVersion']=_0xe0b16f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x89dc27,this['_continueCurrentRevision']=!0x1);}}else _0x36aaed&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x36aaed['toVersion'],this['editor']['model']['document']['history']['version']),_0x36aaed['fromVersion']===_0x36aaed['toVersion']?(0x0!==_0x36aaed['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x36aaed['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x36aaed['id'],this['_startingVersion']=_0x36aaed['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',_0x140797=>!_0x140797),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52c3bf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x10144b;for(const _0x4e7254 in _0x52c3bf){const _0x5be021=_0x4e7254,_0x31998c=_0x52c3bf[_0x5be021];if('revisionHistoryLicenseKeyValid'==_0x31998c||'revisionHistoryLicenseKeyInvalid'==_0x31998c||'revisionHistoryLicenseKeyExpired'==_0x31998c||'revisionHistoryLicenseKeyDomainLimit'==_0x31998c||'revisionHistoryLicenseKeyNotAllowed'==_0x31998c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x31998c||'revisionHistoryLicenseKeyTrialLimit'==_0x31998c||'revisionHistoryLicenseKeyUsageLimit'==_0x31998c){delete _0x52c3bf[_0x5be021],_0x10144b=_0x31998c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x10144b&&_0x52c3bf['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x10144b&&_0x52c3bf['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x10144b&&_0x52c3bf['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x10144b&&_0x52c3bf['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x10144b&&_0x52c3bf['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x10144b&&_0x52c3bf['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x10144b&&_0x52c3bf['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5d5e8d=this['repository']['getRevision'](0x0),_0x1225ce=await this['getRevisionDocumentData'](_0x5d5e8d),_0x3562f5=await this['getRevisionRootsAttributes'](_0x5d5e8d);this['_replaceEditorDataWithRevisionData'](_0x1225ce,_0x3562f5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3b9b82){this['_source']=_0x3b9b82;}async['update'](){const _0x665f15=await this['_source']['getLatestVersion']();if(_0x665f15>this['currentRevision']['toVersion']){await this['_loadState']();const _0x53c343=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x665f15});_0x53c343['authors']=_0x53c343['authorsIds']['map'](_0x211e40=>this['editor']['plugins']['get']('Users')['getUser'](_0x211e40)),this['currentRevision']['_update'](_0x53c343);}}async['saveRevision'](_0x5003c2={},_0x51664a=null){const _0x396d97=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x51664a>this['currentRevision']['toVersion']&&(_0x51664a=null),null===_0x51664a&&(_0x51664a=await this['_source']['getLatestVersion']());const _0x2aba11=this['_getFromVersion'](_0x51664a),_0x55b02d=this['buildRevisionData']({'from':_0x2aba11,'to':_0x51664a});if(this['currentRevision']['toVersion']<_0x51664a){const _0x63971=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x51664a,'to':_0x51664a});_0x63971['authors']=[],_0x63971['authorsIds']=[],_0x63971['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x63971,!0x0),delete _0x63971['authors'],_0x396d97['push'](_0x63971);}_0x5003c2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5003c2['name']=_0x5003c2['name']||null,_0x5003c2['id']=_0x5003c2['id']||_0x2973f6(),_0x5003c2={..._0x5003c2,..._0x55b02d};const _0x8bcba4=this['addRevisionData'](_0x5003c2);_0x396d97['push'](_0x5003c2);const _0x42a62f=this['repository']['getIndex'](_0x8bcba4);if(0x0!==_0x42a62f){const _0x14ff46=this['repository']['getRevision'](_0x42a62f-0x1);if(_0x14ff46['fromVersion']!==_0x51664a){const _0x400537=this['_revisionDataBuilder']['getData'](_0x51664a,_0x14ff46['toVersion']),_0x17af75={'id':_0x14ff46['id'],'diffData':_0x400537['diffData'],'authorsIds':_0x400537['authorsIds'],'authors':_0x400537['authorsIds']['map'](_0x4dfdad=>this['editor']['plugins']['get']('Users')['getUser'](_0x4dfdad)),'fromVersion':_0x51664a};_0x14ff46===this['currentRevision']&&(_0x17af75['createdAt']=new Date(_0x5003c2['createdAt']['getTime']()+0xa)),_0x14ff46['_update'](_0x17af75,!0x0),delete _0x17af75['authors'],_0x396d97['push'](_0x17af75);}}if(this['adapter']){for(const _0x628fc2 of _0x396d97)this['_bufferUpdate'](_0x628fc2['id'],_0x628fc2,!0x0);this['sendBufferedUpdates']();}return _0x8bcba4;}['addRevisionData'](_0x1cae70){const _0x1c1453=this['repository']['createRevision'](_0x1cae70);return this['adapter']&&_0x1c1453['on']('_update',(_0x39116b,_0x259ddb,_0x20b117)=>{_0x20b117||(this['_bufferUpdate'](_0x259ddb['id'],_0x259ddb,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1c1453,this['_findInsertionIndex'](_0x1c1453)),_0x1c1453;}async['getRevisionDocumentData'](_0x4cbee4){return await this['_utils']['loadRevisionData'](_0x4cbee4,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x4cbee4);}async['getRevisionRootsAttributes'](_0x4699d2){return await this['_utils']['loadRevisionData'](_0x4699d2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x4699d2);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5b5f7b=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x313245=0x0;_0x313245<_0x5b5f7b['length'];_0x313245++){const _0x731c9e=_0x5b5f7b[_0x313245];let _0xe3c064=!0x1;for(const _0xdf249c of Object['keys'](_0x731c9e))void 0x0===_0x731c9e[_0xdf249c]?delete _0x731c9e[_0xdf249c]:'id'!==_0xdf249c&&(_0xe3c064=!0x0);_0xe3c064||(_0x5b5f7b[_0x313245]=null);}if(_0x5b5f7b=_0x5b5f7b['filter'](_0x4b92f2=>null!==_0x4b92f2),!_0x5b5f7b['length'])return;for(let _0x59b8c1=0x0;_0x59b8c1<_0x5b5f7b['length'];_0x59b8c1++){const _0x7d137f=_0x5b5f7b[_0x59b8c1];void 0x0!==_0x7d137f['fromVersion']&&void 0x0===_0x7d137f['toVersion']&&(_0x7d137f['toVersion']=this['repository']['getRevision'](_0x7d137f['id'])['toVersion']),void 0x0!==_0x7d137f['toVersion']&&void 0x0===_0x7d137f['fromVersion']&&(_0x7d137f['fromVersion']=this['repository']['getRevision'](_0x7d137f['id'])['fromVersion']);}const _0x462cb5=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5b5f7b,_0x462cb5)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x79e809=>{if(_0x79e809){for(const _0x89cfd5 of _0x79e809)this['setRevisionData']({'id':_0x89cfd5['id'],'createdAt':_0x89cfd5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x3ca83b=null,from:_0x3cf93b=null,to:_0x51ddb7=null}){_0x3cf93b=null!==_0x3cf93b?_0x3cf93b:_0x3ca83b['fromVersion'],_0x51ddb7=null!==_0x51ddb7?_0x51ddb7:_0x3ca83b['toVersion'];const _0x4c89bb=this['_revisionDataBuilder']['getData'](_0x3cf93b,_0x51ddb7),_0x44b0c3={'diffData':_0x4c89bb['diffData'],'authorsIds':_0x4c89bb['authorsIds'],'fromVersion':_0x3cf93b,'toVersion':_0x51ddb7};if(!_0x3ca83b||_0x51ddb7!==_0x3ca83b['toVersion']){const _0x201060=_0x51ddb7-0x1,_0xf768f3=this['_source']['history']['getOperation'](_0x201060);_0x44b0c3['createdAt']=_0xf768f3&&_0xf768f3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3cf93b===this['_loadedStateData']['fromVersion']){for(const _0x10124c of this['_loadedStateData']['authors'])_0x44b0c3['authorsIds']['includes'](_0x10124c['id'])||_0x44b0c3['authorsIds']['push'](_0x10124c['id']);}return _0x44b0c3;}['_bufferUpdate'](_0x3833b4,_0x2f78e1,_0x54458a){if(this['_bufferedUpdates']['has'](_0x3833b4)){const _0x2c2b97=this['_bufferedUpdates']['get'](_0x3833b4);_0x2f78e1=_0x54458a?{..._0x2c2b97,..._0x2f78e1}:{..._0x2f78e1,..._0x2c2b97};}this['_bufferedUpdates']['set'](_0x3833b4,_0x2f78e1);}['setRevisionData'](_0x1d7577){const _0xc4cfba=this['repository']['getRevision'](_0x1d7577['id']);if(_0x1d7577['createdAt']&&(_0x1d7577['createdAt']=new Date(_0x1d7577['createdAt'])),_0x1d7577['authorsIds']){const _0x5a0128=this['editor']['plugins']['get']('Users');_0x1d7577['authors']=_0x1d7577['authorsIds']['map'](_0x1b605e=>_0x5a0128['getUser'](_0x1b605e));}_0xc4cfba['_update'](_0x1d7577,!0x0);}['_createInitialRevision'](_0x339e42){const _0x453bc1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x453bc1)this['_initialRevisionId']=_0x453bc1['id'];else{const _0x5f1cdb=!this['editor']['model']['document']['roots']['find'](_0x57def0=>this['editor']['model']['hasContent'](_0x57def0)),_0x212a1=this['editor']['plugins']['get']('Users')['me']['id'],_0x3c5b4c=R(this['editor']['locale'],_0x5f1cdb?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x339e42,'to':_0x339e42,'id':this['_initialRevisionId'],'name':_0x3c5b4c,'creatorId':_0x212a1});}}['_createCurrentRevision'](_0x4f187b){const _0x93f023=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x93f023),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4f187b,'to':_0x4f187b,'id':_0x93f023,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x419a5b,_0x8834d5){let _0x476583=this['editor']['config']['get']('initialData'),_0x74373d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x476583){_0x476583={};for(const _0x498964 of this['editor']['model']['document']['getRootNames']())_0x476583[_0x498964]='';}if('string'==typeof _0x476583&&(_0x476583={'main':_0x476583}),void 0x0===_0x74373d){_0x74373d={};for(const _0x5de781 of this['editor']['model']['document']['getRootNames']())_0x74373d[_0x5de781]={};}let _0x304829=!0x1;const _0x123c6c=Object['keys'](_0x476583),_0x199ee5=Object['keys'](_0x419a5b);for(const _0x5239b0 of _0x123c6c){if(_0x476583[_0x5239b0]!==_0x419a5b[_0x5239b0]&&''!==_0x476583[_0x5239b0]['trim']()){_0x304829=!0x0;break;}if(!_0x29bfbc(_0x74373d[_0x5239b0],_0x8834d5[_0x5239b0])&&Object['keys'](_0x74373d[_0x5239b0])['length']>0x0){_0x304829=!0x0;break;}}_0x304829||(_0x304829=_0x199ee5['some'](_0x6a007=>!this['editor']['model']['document']['getRoot'](_0x6a007))),_0x304829&&_0x5088e7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x476583,'editorRootsAttributes':_0x74373d,'revisionData':_0x419a5b,'revisionRootsAttributes':_0x8834d5}),this['editor']['config']['set']('initialData',_0x419a5b),this['editor']['config']['set']('rootsAttributes',_0x8834d5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3fe4d9=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3fe4d9['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1f715c){const _0x598773=this['repository']['getRevisions']();_0x598773['reverse']();let _0x4be226=0x0;for(;_0x4be226<_0x598773['length'];){const _0x2ca192=_0x598773[_0x4be226];if(_0x2ca192===this['currentRevision']){_0x4be226++;continue;}if(_0x2ca192['id']===this['_initialRevisionId'])break;const _0x2ffbe6=_0x1f715c['toVersion']-_0x2ca192['toVersion']||_0x1f715c['fromVersion']-_0x2ca192['fromVersion'];if(_0x2ffbe6>0x0)break;if(_0x2ffbe6<0x0)_0x4be226++;else{if(!_0x1f715c['creator']&&_0x2ca192['creator'])break;if(_0x2ca192['creator']||!_0x1f715c['creator']){if(_0x1f715c['createdAt']>_0x2ca192['createdAt'])break;_0x4be226++;}else _0x4be226++;}}return _0x4be226;}['_getFromVersion'](_0x1957ea){const _0x4e867f=this['repository']['getRevisions']();_0x4e867f['reverse'](),_0x4e867f['shift']();const _0x8d82e6=_0x4e867f['find'](_0x471caf=>_0x471caf['toVersion']<=_0x1957ea)['toVersion'];return _0x8d82e6<this['_startingVersion']?this['_startingVersion']:_0x8d82e6;}['_makeRevision']({name:_0x4fc6cd,from:_0x2cbca3,to:_0x3a1e1f,creatorId:_0x100fb2,id:_0x37f7f5}){const _0xda47c4=this['buildRevisionData']({'from':_0x2cbca3,'to':_0x3a1e1f});_0xda47c4['name']=_0x4fc6cd,_0xda47c4['creatorId']=_0x100fb2,_0xda47c4['id']=_0x37f7f5;const _0x4499d9=this['addRevisionData'](_0xda47c4);return this['adapter']&&this['_bufferUpdate'](_0xda47c4['id'],_0xda47c4,!0x0),_0x4499d9;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x39c3bb){this['editor']=_0x39c3bb,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'](_0xcd2fd3){this['source']=_0xcd2fd3;const _0x3c0e13=new Map(),_0x3b74b8=new Map(),_0xac49f3=this['editor']['model']['document']['roots']['map'](_0x4098dd=>_0x4098dd['rootName']);for(const _0x5ac29f of _0xac49f3){const _0x319221=this['editor']['model']['document']['getRoot'](_0x5ac29f),_0x16e9b7=x(_0x319221);_0x3c0e13['set'](_0x5ac29f,_0x16e9b7),_0x3b74b8['set'](_0x5ac29f,Object['fromEntries'](_0x319221['getAttributes']()));}const _0x2e607c=Array['from'](this['editor']['model']['markers'])['map'](_0x28b672=>[_0x28b672['name'],_0x28b672['getRange']()]),_0x2a65c9=this['source']['version'];this['_saveMetaData'](_0x2a65c9,_0x3c0e13,_0x2e607c,_0x3b74b8),this['_startingRevisionId']=this['_revisionId'];const _0x2c9705=new Map(),_0x36a0e3=new Map();for(const _0x329887 of _0xac49f3){const _0xf12b53=N(_0x329887);_0x2c9705['set'](_0x329887,_0xf12b53),_0x36a0e3['set'](_0x329887,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2c9705,[],_0x36a0e3);}['getData'](_0x17009f,_0x60b60c){if(this['_lastFrom']===_0x17009f&&this['_lastTo']<=_0x60b60c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x60b60c,!0x0);else{if(!this['_savedMetaData']['has'](_0x17009f)){const _0x42a845=this['_getPreviousFrom'](_0x17009f);this['_calculateMetaData'](_0x42a845,_0x17009f,!0x1);}this['_calculateMetaData'](_0x17009f,_0x60b60c,!0x0);}return this['_lastFrom']=_0x17009f,this['_lastTo']=_0x60b60c,this['_getState']();}['loadState'](_0x340166){const _0x431dc1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x340166['fromVersion'],this['_lastTo']=_0x340166['toVersion'];for(const _0x142c13 in _0x340166['diffData']){const _0x11d80a=_0x340166['diffData'][_0x142c13]['attachChange'],_0x1b81e7=_0x53494d(_0x340166['diffData'][_0x142c13]['attributesBefore'])||{},_0x17a719=_0x431dc1['_makeModelFromViewString'](_0x340166['diffData'][_0x142c13]['deletions']);_0x17a719['rootName']=_0x142c13,_0x17a719['_isAttached']=!_0x11d80a||!_0x11d80a['isAttached'],_0x17a719['isAttached']=()=>_0x17a719['_isAttached'],this['_baseRoots']['set'](_0x142c13,_0x17a719),this['_baseRootsAttributes']['set'](_0x142c13,_0x1b81e7),_0x11d80a&&this['_touchedRoots']['set'](_0x142c13,_0x11d80a);const _0x433281=this['_makeIdsRoot'](_0x17a719);this['_baseIdsRoots']['set'](_0x142c13,_0x433281);for(const [_0x9a7e06,_0x47d1f8]of _0x17a719['markers']){if(!_0x9a7e06['startsWith']('revision:'))continue;const _0x53e63c=_0x9a7e06['split'](':')[0x2];for(const _0x421cc4 of _0x47d1f8['getWalker']({'singleCharacters':!0x0})){const _0x9e5cfc=this['_getVidAttributeName'](_0x421cc4),_0x54bb1e='elementEnd'==_0x421cc4['type']?_0x421cc4['previousPosition']['path']['slice'](0x0,-0x1):_0x421cc4['previousPosition']['path'],_0x40cc3d=_0x433281['getNodeByPath'](_0x54bb1e)['getAttribute'](_0x9e5cfc);this['_touched']['set'](_0x40cc3d,{'userId':_0x53e63c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x32c480=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5d0e02=>!this['_touched']['has'](_0x5d0e02));let _0x1c4954=0x0;const _0x95ce7e=new Map();for(const _0x1b218c in _0x340166['diffData']){const _0x2a8699=_0x340166['diffData'][_0x1b218c]['attachChange'],_0x52e269=_0x53494d(_0x340166['diffData'][_0x1b218c]['attributesAfter'])||{},_0x27a559=_0x431dc1['_makeModelFromViewString'](_0x340166['diffData'][_0x1b218c]['insertions']);_0x27a559['rootName']=_0x1b218c,_0x27a559['_isAttached']=!_0x2a8699||_0x2a8699['isAttached'],_0x27a559['isAttached']=()=>_0x27a559['_isAttached'],this['_diffRoots']['set'](_0x1b218c,_0x27a559),this['_diffRootsAttributes']['set'](_0x1b218c,_0x52e269);const _0x1c21ee=this['_makeIdsRoot'](_0x27a559,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1b218c,_0x1c21ee),_0x95ce7e['set'](_0x1b218c,_0x27a559['isAttached']()?_0x52e269:{});for(const [_0x2ea1a2,_0x5dfc52]of _0x27a559['markers']){if(!_0x2ea1a2['startsWith']('revision:'))continue;const _0x189491=_0x2ea1a2['split'](':')[0x2];for(const _0x41bc38 of _0x5dfc52['getWalker']({'singleCharacters':!0x0})){const _0x338115=this['_getVidAttributeName'](_0x41bc38),_0xeaff09=this['_revisionId']++,_0x46a962='elementEnd'==_0x41bc38['type']?_0x41bc38['previousPosition']['path']['slice'](0x0,-0x1):_0x41bc38['previousPosition']['path'];_0x1c21ee['getNodeByPath'](_0x46a962)['_setAttribute'](_0x338115,_0xeaff09),this['_touched']['set'](_0xeaff09,{'userId':_0x189491});}}for(const _0x50f8b7 of this['editor']['model']['createRangeIn'](_0x27a559)['getWalker']({'singleCharacters':!0x0})){const _0xf52b8a=this['_getVidAttributeName'](_0x50f8b7),_0x18fb03='elementEnd'==_0x50f8b7['type']?_0x50f8b7['previousPosition']['path']['slice'](0x0,-0x1):_0x50f8b7['previousPosition']['path'],_0x3f3dbf=_0x1c21ee['getNodeByPath'](_0x18fb03);_0x3f3dbf['getAttribute'](_0xf52b8a)>0x0||_0x3f3dbf['_setAttribute'](_0xf52b8a,_0x32c480[_0x1c4954++]);}for(const [_0x44d0f9,_0x4de512]of _0x27a559['markers'])_0x44d0f9['startsWith']('revision:')||this['_markers']['set'](_0x44d0f9,_0x4de512);}const _0x2375c4=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2375c4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2375c4,0x1));const _0x5316df=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5316df),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5316df,0x1));const _0x49abe7=Array['from'](this['_diffRoots'])['map'](([_0x44ce6b,_0x493877])=>[_0x44ce6b,x(_0x493877)]);this['_saveMetaData'](this['_lastTo'],_0x49abe7,this['_markers'],_0x95ce7e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x72eb4e,_0x15815b,_0x10cb3c,_0x269cf2){const _0x13c4f2=new Map(_0x15815b),_0x6b6fc8=new Map(_0x53494d(_0x269cf2)),_0x568a46=new Map();for(const [_0x59d87d,_0x4d6736]of _0x10cb3c)_0x568a46['set'](_0x59d87d,{'start':_0x4d6736['start']['clone'](),'end':_0x4d6736['end']['clone'](),'rootName':_0x4d6736['root']['rootName']});this['_savedMetaData']['set'](_0x72eb4e,{'roots':_0x13c4f2,'markers':_0x568a46,'rootsAttributes':_0x6b6fc8});}['_removeMetaData'](_0x568eca){this['_savedMetaData']['delete'](_0x568eca);}['_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'](_0x540a39,_0x184996=null){let _0x364cd4=null;_0x540a39['is']('documentFragment')||(_0x364cd4=new _0x14c8ed(_0x540a39['name'],{'vid_start':null===_0x184996?this['_revisionId']++:_0x184996++}));const _0x515020=[];for(const _0x376a8f of _0x540a39['getChildren']())if(_0x376a8f['is']('element')){_0x515020['push'](this['_makeIdsRoot'](_0x376a8f,_0x184996));const _0x2b8609=_0x515020[_0x515020['length']-0x1];null!==_0x184996&&(_0x184996=_0x2b8609['is']('element','$text')?_0x2b8609['getAttribute']('vid')+0x1:_0x2b8609['getAttribute']('vid_end')+0x1);}else{for(let _0x56e97c=0x0;_0x56e97c<_0x376a8f['offsetSize'];_0x56e97c++)_0x515020['push'](new _0x14c8ed('$text',{'vid':null===_0x184996?this['_revisionId']++:_0x184996++}));}if(_0x540a39['is']('documentFragment')){const _0x50d952=N(_0x540a39['rootName']);return _0x50d952['_insertChild'](0x0,_0x515020),_0x50d952;}return _0x364cd4['_setAttribute']('vid_end',null===_0x184996?this['_revisionId']++:_0x184996++),_0x364cd4['_insertChild'](0x0,_0x515020),_0x364cd4;}['_calculateMetaData'](_0xce1f81,_0x28771d,_0x1e9465){this['_reset']();const {roots:_0x50e301,markers:_0x24cb63,rootsAttributes:_0x3897de}=this['_savedMetaData']['get'](_0xce1f81);this['_baseRoots']=new Map(_0x50e301),this['_baseRootsAttributes']=new Map(_0x53494d(_0x3897de));for(const [_0x918f6f,_0x488129]of this['_baseRoots'])if('$graveyard'!==_0x918f6f&&(this['_diffRoots']['set'](_0x918f6f,x(_0x488129)),this['_diffRootsAttributes']=new Map(_0x53494d(_0x3897de)),_0x1e9465)){const _0x1dc1ab=this['_revisionId'];this['_idsRoots']['set'](_0x918f6f,this['_makeIdsRoot'](_0x488129)),this['_baseIdsRoots']['set'](_0x918f6f,this['_makeIdsRoot'](_0x488129,_0x1dc1ab));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x1e9465&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x17eccb,_0x212519]of _0x24cb63){const _0x4782f7=this['_baseRoots']['get'](_0x212519['rootName']),_0x2142ba=this['_diffRoots']['get'](_0x212519['rootName']),_0x2c5549=new _0x519484(this['_fixPosition'](_0x212519['start'],_0x4782f7),this['_fixPosition'](_0x212519['end'],_0x4782f7)),_0x5b7085=this['_fixRange'](_0x2c5549,_0x2142ba);_0x4782f7['markers']['set'](_0x17eccb,_0x2c5549),this['_markers']['set'](_0x17eccb,_0x5b7085);}this['_applyOperations'](_0xce1f81,_0x28771d,_0x1e9465);}['_applyOperations'](_0x44f510,_0x7ae8ca,_0x4b8f94){for(const _0x47325a of this['source']['getOperations'](_0x44f510,_0x7ae8ca))this['_handleOperation'](_0x47325a,_0x4b8f94);for(const _0x56f7d0 of this['_diffRoots']['values']())_0x56f7d0['markers']['clear']();for(const [_0x5601cc,_0x231446]of this['_markers']){this['_diffRoots']['get'](_0x231446['root']['rootName'])['markers']['set'](_0x5601cc,_0x231446['clone']());}const _0x10148d=new Map(),_0x35e7da=new Map();for(const [_0x3c7521,_0x581757]of this['_diffRoots'])_0x10148d['set'](_0x3c7521,x(_0x581757)),_0x35e7da['set'](_0x3c7521,this['_diffRootsAttributes']['get'](_0x3c7521));this['_saveMetaData'](_0x7ae8ca,_0x10148d,this['_markers'],_0x35e7da);}['_getPreviousFrom'](_0x4c47b4){const _0x436d11=Array['from'](this['_savedMetaData']['keys']());_0x436d11['sort']((_0x4d33b1,_0xaf30cd)=>_0x4d33b1-_0xaf30cd),_0x436d11['reverse']();for(const _0x432b16 of _0x436d11)if(_0x432b16<_0x4c47b4)return _0x432b16;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x12dd9a,_0x567bae){const _0xe63f8e=Array['from'](_0x567bae['markers'])['map'](([_0x59a081,_0x12cdeb])=>[_0x59a081,this['_fixRange'](_0x12cdeb,_0x12dd9a)]);_0x12dd9a['markers']=new Map(_0xe63f8e);}['_transformMarkers'](_0x599b23){for(const _0x33d11c of this['_markers']['values']()){const _0xfcc61f=_0x33d11c['getTransformedByOperation'](_0x599b23),_0xd84d42=_0x519484['_createFromRanges'](_0xfcc61f);_0x33d11c['start']=_0xd84d42['start'],_0x33d11c['end']=_0xd84d42['end'];}}['_handleOperation'](_0x299dc5,_0x117c75){if('addRoot'!=_0x299dc5['type']&&'detachRoot'!=_0x299dc5['type']){if('insert'==_0x299dc5['type']){const _0x5ce1d7=_0x299dc5['position']['root']['rootName'];this['_diffRoots']['has'](_0x5ce1d7)||(this['_diffRoots']['set'](_0x5ce1d7,N(_0x5ce1d7,!0x0)),this['_diffRootsAttributes']['set'](_0x5ce1d7,{}),_0x117c75&&this['_idsRoots']['set'](_0x5ce1d7,N(_0x5ce1d7,!0x0)));}else{if('addRootAttribute'==_0x299dc5['type']||'removeRootAttribute'==_0x299dc5['type']||'changeRootAttribute'==_0x299dc5['type'])return void this['_handleRootAttributeOperation'](_0x299dc5);'marker'==_0x299dc5['type']&&this['_handleMarkerOperation'](_0x299dc5);}if('marker'!==_0x299dc5['type']){const _0x3ad746=this['_cloneOperation'](_0x299dc5,this['_diffRoots']);_0x3ad746['_execute'](),this['_transformMarkers'](_0x3ad746);}if(_0x117c75)switch(_0x299dc5['type']){case'insert':this['_handleInsertOperation'](_0x299dc5);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x299dc5);break;case'merge':this['_handleMergeOperation'](_0x299dc5);break;case'split':this['_handleSplitOperation'](_0x299dc5);}}else this['_handleRootOperation'](_0x299dc5,_0x117c75);}['_cloneOperation'](_0x54e4ec,_0x5bb2d4){const _0x19c08e=_0x54e4ec['clone']();return _0x19c08e['_authorId']=_0x54e4ec['_authorId'],this['_fixOperation'](_0x19c08e,_0x5bb2d4),_0x19c08e;}['_getBaseVids'](_0x495a6b){return _0x495a6b['map'](_0x3a9f0f=>{const _0x39c025=this['_getVidAttributeName'](_0x3a9f0f);return Number(_0x3a9f0f['item']['getAttribute'](_0x39c025));});}['_generateTape'](_0x378646,_0x85d65d){if(_0x378646['is']('element','$text'))_0x85d65d['push']({'item':_0x378646,'type':'text'});else{_0x378646['is']('element')&&_0x85d65d['push']({'item':_0x378646,'type':'elementStart'});for(const _0x5b54b0 of _0x378646['getChildren']())this['_generateTape'](_0x5b54b0,_0x85d65d);_0x378646['is']('element')&&_0x85d65d['push']({'item':_0x378646,'type':'elementEnd'});}return _0x85d65d;}['_getState'](){const _0x11d523=new Map(this['_touched']),_0x4105d1=new Map(_0x11d523),_0xfefc8b=new Map(),_0x3ea0ad={'insertions':{},'deletions':{}},_0xd427f0={'insertions':{},'deletions':{}},_0x2dbc68=new Map(),_0x429b19=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x429b19['delete']('$graveyard');for(const _0x5c1e87 of _0x429b19){const _0x21719b=this['_diffRoots']['get'](_0x5c1e87)||N(_0x5c1e87,!0x1),_0x508cd9=this['_baseRoots']['get'](_0x5c1e87)||N(_0x5c1e87,!0x1);_0x21719b['isAttached']()||_0x508cd9['isAttached']()?(_0x3ea0ad['insertions'][_0x5c1e87]=x(_0x21719b),_0x3ea0ad['deletions'][_0x5c1e87]=x(_0x508cd9),this['_copyMarkers'](_0x3ea0ad['deletions'][_0x5c1e87],_0x508cd9),this['_copyMarkers'](_0x3ea0ad['insertions'][_0x5c1e87],_0x21719b),_0xd427f0['insertions'][_0x5c1e87]=this['_generateTape'](this['_idsRoots']['get'](_0x5c1e87),[]),_0xd427f0['deletions'][_0x5c1e87]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5c1e87)||N(_0x5c1e87,!0x1),[])):_0x429b19['delete'](_0x5c1e87);}for(const _0x3c8ddd of _0x429b19){const _0x456135=_0xd427f0['insertions'][_0x3c8ddd];for(const _0x47aa06 of _0x456135){const _0x87952e=this['_getVidAttributeName'](_0x47aa06),_0xeeb1be=_0x47aa06['item']['getAttribute'](_0x87952e);_0x4105d1['delete'](_0xeeb1be),_0xeeb1be>=this['_startingRevisionId']&&_0xfefc8b['set'](_0xeeb1be,_0x11d523['get'](_0xeeb1be));}}for(const _0x3cc9fd of _0x429b19){const _0x4b758f=_0xd427f0['insertions'][_0x3cc9fd],_0xc799aa=this['_getBaseVids'](_0xd427f0['deletions'][_0x3cc9fd]);let _0x1bce1e=0x0;for(const _0xd1f057 of _0x4b758f){const _0x287f6a=this['_getVidAttributeName'](_0xd1f057),_0x51a0a3=_0xd1f057['item']['getAttribute'](_0x287f6a);if(!_0xfefc8b['has'](_0x51a0a3)&&!_0x2dbc68['has'](_0x51a0a3)){if(_0x4105d1['has'](_0x51a0a3))_0x1bce1e++;else{if(_0x51a0a3!=_0xc799aa[_0x1bce1e]){const _0x4b87d7=_0x11d523['get'](_0x51a0a3)||_0x11d523['get'](_0xc799aa[_0x1bce1e]);for(;_0x51a0a3!=_0xc799aa[_0x1bce1e];)_0x4105d1['has'](_0xc799aa[_0x1bce1e])||(_0x2dbc68['set'](_0xc799aa[_0x1bce1e],_0x4b87d7),_0x11d523['set'](_0xc799aa[_0x1bce1e],_0x4b87d7)),_0x1bce1e++;}_0x1bce1e++;}}}}for(const _0x26603a of _0x429b19){const _0x30c1ac=_0xd427f0['insertions'][_0x26603a];for(const _0x47c3a1 of _0x30c1ac){const _0x2f1378=this['_getVidAttributeName'](_0x47c3a1),_0x1e172a=_0x47c3a1['item']['getAttribute'](_0x2f1378);if(_0x2dbc68['has'](_0x1e172a)){const _0x1ee9d8=_0x2dbc68['get'](_0x1e172a);_0x4105d1['has'](_0x1e172a)||_0x4105d1['set'](_0x1e172a,{..._0x1ee9d8}),_0xfefc8b['set'](_0x1e172a,{..._0x1ee9d8});}}}for(const _0x465c01 of _0x4105d1['keys']())_0x465c01>=this['_startingRevisionId']&&_0x4105d1['delete'](_0x465c01);const _0x14eaf2=new Map();for(const _0x2b62f4 of _0x429b19){let _0xc1c905=_0xd427f0['insertions'][_0x2b62f4];for(const _0x1c5967 of _0xc1c905)if(_0x1c5967['item']['is']('element','tableCell')){const _0x42b54d=this['_getVidAttributeName'](_0x1c5967),_0x5b027f=_0x1c5967['item']['getAttribute'](_0x42b54d);if(_0xfefc8b['has'](_0x5b027f)){const _0x4cfc37=_0x1c5967['item']['parent']['parent']['getAttribute']('vid_start'),_0xe74ebe=_0x14eaf2['get'](_0x4cfc37)||new Set();_0xe74ebe['add'](_0xfefc8b['get'](_0x5b027f)['userId']),_0x14eaf2['set'](_0x4cfc37,_0xe74ebe);}}_0xc1c905=_0xd427f0['deletions'][_0x2b62f4];for(const _0x3018b0 of _0xc1c905)if(_0x3018b0['item']['is']('element','tableCell')){const _0x49f52e=this['_getVidAttributeName'](_0x3018b0),_0x278ef4=_0x3018b0['item']['getAttribute'](_0x49f52e);if(_0x4105d1['has'](_0x278ef4)){const _0x2d689b=_0x3018b0['item']['parent']['parent']['getAttribute']('vid_start'),_0x5238=_0x14eaf2['get'](_0x2d689b)||new Set();_0x5238['add'](_0x4105d1['get'](_0x278ef4)['userId']),_0x14eaf2['set'](_0x2d689b,_0x5238);}}for(const _0x2d1c0d of _0x14eaf2['keys']())(_0xfefc8b['has'](_0x2d1c0d)||_0x4105d1['has'](_0x2d1c0d))&&_0x14eaf2['delete'](_0x2d1c0d);}for(const _0x617e81 of _0x429b19){const _0x2dcbc4=_0xd427f0['insertions'][_0x617e81];let _0x5dbaee=null,_0x46c114=null;for(const _0x52e786 of _0x2dcbc4){const _0x52e3c9=this['_getVidAttributeName'](_0x52e786),_0xf2411a=_0x52e786['item']['getAttribute'](_0x52e3c9),_0x13b844=_0x14eaf2['get'](_0xf2411a);_0x13b844&&'elementStart'==_0x52e786['type']&&(_0x5dbaee=Array['from'](_0x13b844)[0x0],_0x46c114=_0x52e786['item']['getAttribute']('vid_end')),_0x5dbaee&&(_0x4105d1['set'](_0xf2411a,{'userId':_0x5dbaee}),_0xfefc8b['set'](_0xf2411a,{'userId':_0x5dbaee})),_0xf2411a==_0x46c114&&(_0x5dbaee=null,_0x46c114=null);}}const _0x1030b2={},_0x4b714f=new Set();for(const _0x70e66 of _0x429b19){const _0x4e6d50=_0x3ea0ad['deletions'][_0x70e66],_0x1fec65=_0x3ea0ad['insertions'][_0x70e66];for(const {userId:_0xbcd46d}of this['_touchedMarkers']['values']())null!==_0xbcd46d&&_0x4b714f['add'](_0xbcd46d);for(const {userId:_0x105594}of this['_touchedRoots']['values']())null!==_0x105594&&_0x4b714f['add'](_0x105594);this['_markChanges'](_0x1fec65,_0xd427f0['insertions'][_0x70e66],_0xfefc8b,'insertion',_0x4b714f),this['_markChanges'](_0x4e6d50,_0xd427f0['deletions'][_0x70e66],_0x4105d1,'deletion',_0x4b714f),_0x1030b2[_0x70e66]={'insertions':this['_prepareViewToSave'](_0x1fec65),'deletions':this['_prepareViewToSave'](_0x4e6d50),'attachChange':this['_touchedRoots']['get'](_0x70e66)||null,'attributesBefore':_0x53494d(this['_baseRootsAttributes']['get'](_0x70e66))||{},'attributesAfter':_0x53494d(this['_diffRootsAttributes']['get'](_0x70e66))};}return{'diffData':_0x1030b2,'authorsIds':Array['from'](_0x4b714f)};}['_processRootBeforeSave'](_0x853978){for(const [,_0x880a4a]of _0x853978['markers']){const _0x2dbf0b=_0x880a4a['start']['getAncestors']()['filter'](_0xd7139a=>'tableCell'==_0xd7139a['name']);for(const _0x4b7de9 of _0x2dbf0b)0x1==_0x4b7de9['childCount']&&_0x4b7de9['getChild'](0x0)['is']('element','paragraph')&&_0x4b7de9['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1024cb){this['_processRootBeforeSave'](_0x1024cb);const _0xd61ab=this['editor']['data']['toView'](_0x1024cb,{}),_0x1334fc=Array['from'](_0xd61ab['getChildren']())['map'](_0x2a72aa=>this['_getViewJson'](_0x2a72aa));return JSON['stringify'](_0x1334fc);}['_getViewJson'](_0x592bba){if(_0x592bba['is']('$text'))return _0x592bba['data'];{const _0x439c57=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x16a59e=_0x592bba,_0x59aa71=this['editor']['data']['htmlProcessor']['domConverter'],_0x3c9060={'type':_0x439c57['_getTypeCharForViewElement'](_0x16a59e),'name':_0x16a59e['name'],'attributes':Array['from'](_0x16a59e['getAttributes']()),'children':Array['from'](_0x16a59e['getChildren']())['map'](_0x4ca767=>this['_getViewJson'](_0x4ca767))};if(_0x592bba['is']('uiElement')&&'$comment'!=_0x592bba['name']){const _0x206219=_0x592bba['render'](_0x59aa71['domDocument'],_0x59aa71);_0x3c9060['children']['push'](_0x206219['outerHTML']);}else{if(_0x592bba['is']('rawElement')){const _0x5b105e=_0x59aa71['domDocument']['createElement'](_0x16a59e['name']);_0x592bba['render'](_0x5b105e,_0x59aa71),_0x3c9060['children']['push'](_0x5b105e['innerHTML']);}}const _0x1f40cc=Array['from'](_0x16a59e['getCustomProperties']());_0x1f40cc['length']>0x0&&(_0x3c9060['customProperties']=_0x1f40cc);const _0x55332f=_0x16a59e['getFillerOffset']();return null!==_0x55332f&&(_0x3c9060['fillerOffset']=_0x55332f),_0x3c9060;}}['_markChanges'](_0x1c17c3,_0x5afc4d,_0x356114,_0x4ef661,_0x212637){let _0x57860a=null,_0x564b5c=null,_0x16580e=0x0;const _0x486746=this['editor']['model'];for(let _0x1fdbf0=0x0;_0x1fdbf0<_0x5afc4d['length'];_0x1fdbf0++){const _0x24d582=this['_getVidAttributeName'](_0x5afc4d[_0x1fdbf0]),_0x4587fe=_0x5afc4d[_0x1fdbf0]['item']['getAttribute'](_0x24d582),_0x137961=_0x356114['get'](_0x4587fe),_0x1f925c=_0x1fdbf0==_0x5afc4d['length']-0x1;(!_0x57860a&&_0x137961&&(_0x57860a=_0x137961,_0x564b5c=_0x5afc4d[_0x1fdbf0]),_0x57860a&&(!_0x137961||_0x137961['userId']!=_0x57860a['userId']))&&(_0x3eaa94(_0x137961,P(_0x564b5c,_0x1c17c3,_0x486746),P(_0x5afc4d[_0x1fdbf0],_0x1c17c3,_0x486746)),_0x57860a=_0x137961||null,_0x564b5c=_0x137961?_0x5afc4d[_0x1fdbf0]:null),_0x57860a&&_0x1f925c&&_0x3eaa94(_0x137961,P(_0x564b5c,_0x1c17c3,_0x486746),V(_0x5afc4d[_0x1fdbf0],_0x1c17c3,_0x486746));}function _0x3eaa94(_0x339b75,_0x5934ec,_0x581f80){const _0x3c2678=_0x57860a['userId'],_0x26e40d='revision:'+_0x4ef661+':'+_0x3c2678+':'+_0x16580e++,_0x249062=_0x486746['createRange'](_0x5934ec,_0x581f80);_0x1c17c3['markers']['set'](_0x26e40d,_0x249062),null!==_0x3c2678&&_0x212637['add'](_0x3c2678);}}['_getVidAttributeName'](_0x43f459){switch(_0x43f459['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2703fa,_0x19c77f){_0x2703fa['baseVersion']=null;for(const _0x389210 in _0x2703fa){const _0x54818b=_0x2703fa[_0x389210];if(_0x54818b instanceof _0x4f5b0e){const _0x1d90be=_0x19c77f['get'](_0x54818b['root']['rootName']);_0x2703fa[_0x389210]=this['_fixPosition'](_0x54818b,_0x1d90be);}if(_0x54818b instanceof _0x519484){const _0x4a7613=_0x19c77f['get'](_0x54818b['root']['rootName']);_0x2703fa[_0x389210]=this['_fixRange'](_0x54818b,_0x4a7613);}'root'===_0x389210&&(_0x2703fa['root']=_0x19c77f['get'](_0x2703fa['root']['rootName']));}}['_fixRange'](_0x3b0b8c,_0x56bd23){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3b0b8c['start'],_0x56bd23),this['_fixPosition'](_0x3b0b8c['end'],_0x56bd23));}['_fixPosition'](_0x4ebefa,_0x1f9cef){return this['editor']['model']['createPositionFromPath'](_0x1f9cef,_0x4ebefa['path'],_0x4ebefa['stickiness']);}['_handleInsertOperation'](_0x599829){const _0x1eda6f=this['_idsRoots']['get'](_0x599829['position']['root']['rootName']),_0x1734bb=this['_fixPosition'](_0x599829['position'],_0x1eda6f),_0x47cc99=null===_0x599829['_authorId']?null:_0x599829['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5208d6=_0x1734bb['parent'],_0x3c9427=this['_revisionId'],_0x49e406=[];for(const _0x517b51 of _0x599829['nodes'])if(_0x517b51['is']('element'))_0x49e406['push'](this['_makeIdsRoot'](_0x517b51));else{for(let _0x924c9b=0x0;_0x924c9b<_0x517b51['offsetSize'];_0x924c9b++)_0x49e406['push'](new _0x14c8ed('$text',{'vid':this['_revisionId']++}));}const _0x3b5a36=this['_revisionId'];for(let _0x38aa23=_0x3c9427;_0x38aa23<_0x3b5a36;_0x38aa23++)this['_touched']['set'](_0x38aa23,{'userId':_0x47cc99});_0x5208d6['_insertChild'](_0x1734bb['offset'],_0x49e406);}['_handleMoveOperation'](_0x1480f1){(_0x1480f1=this['_cloneOperation'](_0x1480f1,this['_idsRoots']))['_execute']();const _0x1ccb53=null===_0x1480f1['_authorId']?null:_0x1480f1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x19fe9b=_0x1480f1['getMovedRangeStart'](),_0x2fe1cf=_0x19fe9b['parent'],_0x476e5f=_0x19fe9b['offset'];!function _0x355e6d(_0x3df399,_0xa8d70,_0x49c436,_0x44a8af){for(let _0x574d59=_0x49c436;_0x574d59<_0x44a8af;_0x574d59++){const _0x2f4a22=_0xa8d70['getChild'](_0x574d59);_0x2f4a22['is']('element','$text')?_0x3df399['set'](_0x2f4a22['getAttribute']('vid'),{'userId':_0x1ccb53}):(_0x3df399['set'](_0x2f4a22['getAttribute']('vid_start'),{'userId':_0x1ccb53}),_0x355e6d(_0x3df399,_0x2f4a22,0x0,_0x2f4a22['childCount']),_0x3df399['set'](_0x2f4a22['getAttribute']('vid_end'),{'userId':_0x1ccb53}));}}(this['_touched'],_0x2fe1cf,_0x476e5f,_0x476e5f+_0x1480f1['howMany']);}['_handleMergeOperation'](_0x190128){const _0x107d27=null===(_0x190128=this['_cloneOperation'](_0x190128,this['_idsRoots']))['_authorId']?null:_0x190128['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x55d151=_0x190128['targetPosition']['parent'],_0x280e41=_0x190128['sourcePosition']['parent'],_0x2bcd9c=_0x55d151['getAttribute']('vid_end'),_0x338784=_0x280e41['getAttribute']('vid_start');_0x55d151['_setAttribute']('vid_end',_0x280e41['getAttribute']('vid_end')),_0x280e41['_setAttribute']('vid_end',_0x2bcd9c),this['_touched']['set'](_0x338784,{'userId':_0x107d27}),this['_touched']['set'](_0x2bcd9c,{'userId':_0x107d27}),_0x190128['_execute']();}['_handleSplitOperation'](_0x207be8){const _0x2facc6=null===(_0x207be8=this['_cloneOperation'](_0x207be8,this['_idsRoots']))['_authorId']?null:_0x207be8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37e64a=_0x207be8['graveyardPosition'],_0x1e8aff=_0x207be8['splitPosition']['parent'];_0x207be8['_execute']();const _0x54cea3=_0x1e8aff['getAttribute']('vid_end'),_0x55f0b9=_0x207be8['insertionPosition']['nodeAfter'];if(_0x37e64a){const _0x1fe442=_0x55f0b9['getAttribute']('vid_end'),_0x5c1508=_0x1e8aff['getAttribute']('vid_end');_0x1e8aff['_setAttribute']('vid_end',_0x1fe442),_0x55f0b9['_setAttribute']('vid_end',_0x5c1508),this['_touched']['set'](_0x1e8aff['getAttribute']('vid_end'),{'userId':_0x2facc6}),this['_touched']['set'](_0x55f0b9['getAttribute']('vid_start'),{'userId':_0x2facc6});}else{const _0x4a42c4=this['_revisionId']++,_0x48ff3f=this['_revisionId']++;_0x1e8aff['_setAttribute']('vid_end',_0x4a42c4),_0x55f0b9['_setAttribute']('vid_start',_0x48ff3f),_0x55f0b9['_setAttribute']('vid_end',_0x54cea3),this['_touched']['set'](_0x4a42c4,{'userId':_0x2facc6}),this['_touched']['set'](_0x48ff3f,{'userId':_0x2facc6});}}['_handleMarkerOperation'](_0x265f61){if(!_0x265f61['affectsData'])return;const _0x5dd17a=(_0x265f61=this['_cloneOperation'](_0x265f61,this['_diffRoots']))['oldRange']?_0x265f61['oldRange']['root']:null,_0xe75861=_0x265f61['newRange']?_0x265f61['newRange']['root']:null;_0x5dd17a&&this['_markers']['delete'](_0x265f61['name']),_0xe75861&&this['_markers']['set'](_0x265f61['name'],_0x265f61['newRange']['clone']());const _0x19c886=null===_0x265f61['_authorId']?null:_0x265f61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b3d3a=_0x265f61['name'];if(!this['_touchedMarkers']['has'](_0x3b3d3a))return void this['_touchedMarkers']['set'](_0x3b3d3a,{'range':_0x265f61['oldRange'],'userId':_0x19c886});const _0xd83d8b=this['_touchedMarkers']['get'](_0x3b3d3a),_0x13af72=_0xd83d8b['range'],_0x49698f=_0x265f61['newRange'];null==_0x13af72&&null==_0x49698f||_0x13af72&&_0x49698f&&_0x13af72['isEqual'](_0x49698f)?this['_touchedMarkers']['delete'](_0x265f61['name']):_0xd83d8b['userId']=_0x19c886;}['_handleRootOperation'](_0x466528,_0x2b608d){this['_diffRoots']['has'](_0x466528['rootName'])?this['_diffRoots']['get'](_0x466528['rootName'])['_isAttached']=_0x466528['isAdd']:(this['_diffRoots']['set'](_0x466528['rootName'],N(_0x466528['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x466528['rootName'],{}),_0x2b608d&&this['_idsRoots']['set'](_0x466528['rootName'],N(_0x466528['rootName'],!0x0)));const _0x554c77=null===_0x466528['_authorId']?null:_0x466528['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b04b3=this['_touchedRoots']['get'](_0x466528['rootName']);_0x4b04b3&&_0x4b04b3['userId']===_0x554c77?this['_touchedRoots']['delete'](_0x466528['rootName']):this['_touchedRoots']['set'](_0x466528['rootName'],{'userId':_0x554c77,'isAttached':_0x466528['isAdd']});}['_handleRootAttributeOperation'](_0x1f2189){const _0x15ee0e=this['_diffRootsAttributes']['get'](_0x1f2189['root']['rootName']);null===_0x1f2189['newValue']?delete _0x15ee0e[_0x1f2189['key']]:_0x15ee0e[_0x1f2189['key']]=_0x1f2189['newValue'];}}function x(_0x572813){const _0x1777dd=N(_0x572813['rootName'],_0x572813['isAttached']());for(const _0x50efaf of _0x572813['getChildren']()){const _0xd1222f=_0x50efaf['_clone'](!0x0);_0x1777dd['_appendChild'](_0xd1222f);}return _0x1777dd;}function N(_0x51fae8,_0x1dab75=!0x0){const _0x12005f=new _0x189713();return _0x12005f['rootName']=_0x51fae8,_0x12005f['_isAttached']=_0x1dab75,_0x12005f['isAttached']=()=>_0x12005f['_isAttached'],_0x12005f;}function P(_0x334c52,_0x48c1fc,_0x5661db){const _0x14bcd1='elementEnd'==_0x334c52['type']?_0x5661db['createPositionAt'](_0x334c52['item'],'end'):_0x5661db['createPositionBefore'](_0x334c52['item']);return _0x5661db['createPositionFromPath'](_0x48c1fc,_0x14bcd1['path'],_0x14bcd1['stickiness']);}function V(_0x14e38f,_0x23558d,_0x333ff1){const _0x5e1c63='elementStart'==_0x14e38f['type']?_0x333ff1['createPositionAt'](_0x14e38f['item'],0x0):_0x333ff1['createPositionAfter'](_0x14e38f['item']);return _0x333ff1['createPositionFromPath'](_0x23558d,_0x5e1c63['path'],_0x5e1c63['stickiness']);}class he extends/* #__PURE__ -- @preserve */
25
+ _0xc06956(_0x8ba72d){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x437c3f,_0x5505bf){super(_0x437c3f),this['focusTracker']=new _0x203ed6(),this['keystrokes']=new _0x3b3bb2(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5505bf),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x29edb7({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4f8a46=_0x210f8f=>_0x210f8f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4f8a46),this['keystrokes']['set']('arrowleft',_0x4f8a46),this['keystrokes']['set']('arrowup',_0x4f8a46),this['keystrokes']['set']('arrowdown',_0x4f8a46);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x547b37){this['revisionNameInputView']['fieldView']['element']['value']=_0x547b37['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4b2ae2){const _0x3537cb=new ti(this['locale'],_0x4df153),_0x1535bd=_0x3537cb['fieldView'];_0x1535bd['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xc30ce4=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4b2ae2&&(_0xc30ce4+='\x20('+R(this['locale'],'optional')+')'),(_0x3537cb['label']=_0xc30ce4,_0x1535bd['on']('input',()=>{this['revisionNameInputValue']=_0x1535bd['element']['value']['trim']();}),_0x3537cb);}}class v extends _0x13ea32{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x598590=this['editor'],_0x1ba5df=_0x598590['plugins']['get']('RevisionTracker');_0x598590['ui']['componentFactory']['add']('revisionHistory',_0x1dda45=>{const _0x371531=_0x42539b(_0x1dda45),_0x2fdc38=_0x371531['panelView']['children'],_0x209305=new _0x3c1b15(_0x1dda45),_0x39e337=new _0x2c7bbc(_0x1dda45),_0x366c2=new _0x55ae9c(_0x1dda45),_0x4d9f7d=new _0x2c7bbc(_0x1dda45),_0x245606=new _0x55ae9c(_0x1dda45);return _0x371531['bind']('isEnabled')['to'](_0x1ba5df,'isReady',_0x1ba5df,'isEnabled',_0x598590,'isReadOnly',(_0x4b774b,_0x4af03e,_0x5f3463)=>_0x4b774b&&_0x4af03e&&!_0x5f3463),_0x371531['buttonView']['set']({'icon':_0x4a22ad,'label':R(_0x1dda45,'Revision\x20history'),'tooltip':!0x0}),_0x366c2['set']({'label':R(_0x1dda45,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x366c2['bind']('isEnabled')['to'](_0x1ba5df,'isReady',_0x1ba5df,'isEnabled',_0x598590,'isReadOnly',(_0x167ef1,_0x37f679,_0x152596)=>_0x167ef1&&_0x37f679&&!_0x152596),_0x366c2['on']('execute',()=>this['_showDialog']()),_0x245606['set']({'label':R(_0x1dda45,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x245606['bind']('isEnabled')['to'](_0x1ba5df,'isReady',_0x598590,'isReadOnly',(_0x23cbfd,_0xe097f)=>_0x23cbfd&&!_0xe097f),_0x245606['on']('execute',()=>{_0x598590['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x371531['isOpen']=!0x1,_0x598590['editing']['view']['focus']();}),_0x39e337['children']['add'](_0x366c2),_0x4d9f7d['children']['add'](_0x245606),_0x209305['role']='menu',_0x209305['items']['addMany']([_0x39e337,_0x4d9f7d]),_0x2fdc38['add'](_0x209305),_0x371531;}),_0x598590['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4a64a5=this['editor'],_0x32d40f=_0x4a64a5['locale'],_0x50f50c=new _0x4e3810(_0x32d40f),_0x3868ca=new _0x4154c0(_0x32d40f);_0x50f50c['buttonView']['set']({'icon':_0x4a22ad,'label':R(_0x32d40f,'Revision\x20history')});const _0x6e554f=new _0x1d82c4(_0x32d40f,_0x50f50c),_0x7af86f=new _0x1f6d08(_0x32d40f);_0x7af86f['set']({'label':R(_0x32d40f,'Save\x20current\x20revision')}),_0x7af86f['delegate']('execute')['to'](_0x50f50c),_0x7af86f['on']('execute',()=>{this['_showDialog']();}),_0x6e554f['children']['add'](_0x7af86f),_0x3868ca['items']['add'](_0x6e554f);const _0x47e70f=new _0x1d82c4(_0x32d40f,_0x50f50c),_0x15ae2d=new _0x1f6d08(_0x32d40f);return _0x15ae2d['set']({'label':R(_0x32d40f,'Open\x20revision\x20history')}),_0x15ae2d['delegate']('execute')['to'](_0x50f50c),_0x15ae2d['on']('execute',()=>{_0x4a64a5['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x47e70f['children']['add'](_0x15ae2d),_0x3868ca['items']['add'](_0x47e70f),_0x50f50c['panelView']['children']['add'](_0x3868ca),_0x50f50c;}['_showDialog'](){const _0x1b2aa8=this['editor'],_0x5bb6b0=_0x1b2aa8['locale'],_0x56ff5c=_0x1b2aa8['plugins']['get']('Dialog'),_0x193eb9=_0x1b2aa8['plugins']['get']('RevisionTracker');function _0x2d8f73(_0x5238b9){_0x1b2aa8['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5238b9['revisionName']?_0x5238b9['revisionNameInputView']['errorText']=R(_0x5bb6b0,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1b2aa8['plugins']['get'](h)['saveRevision']({'name':_0x5238b9['revisionName']}),_0x56ff5c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2d8f73(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x56ff5c['show']({'id':'revisionSave','title':R(_0x5bb6b0,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x1b2aa8['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x56ff5c['hide']()},{'label':R(_0x1b2aa8['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1ce6ae){_0x1ce6ae['bind']('isEnabled')['to'](_0x193eb9,'isReady',_0x193eb9,'isEnabled',_0x1b2aa8,'isReadOnly',(_0x72193d,_0xc42ada,_0x4b5982)=>_0x72193d&&_0xc42ada&&!_0x4b5982);},'onExecute':()=>_0x2d8f73(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1085e9=this['editor'],_0x5c5040=_0x1085e9['locale'];this['_saveRevisionFormView']=new he(_0x5c5040,_0x1085e9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x8ba72d{['changeId'];['_model'];constructor(_0x1e80fe,_0x3f694f){super(_0x1e80fe),this['_model']=_0x3f694f,this['changeId']=_0x3f694f['id'];const _0x348fb1=this['bindTemplate'],_0x15f980=R(_0x1e80fe,_0x3f694f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3f694f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3f694f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x348fb1['to']('type',_0x216a6d=>'ck-revision-change__'+_0x216a6d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x15f980}]},{'text':'\x20'+_0x3f694f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
+ _0x42cf95(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4f5816){super(),this['id']=_0x4f5816['id']||_0x2973f6(),this['author']=_0x4f5816['author'],this['type']=_0x4f5816['type'],this['data']=_0x4f5816['data']||{},this['rootName']=_0x4f5816['rootName'],this['set']('createdAt',_0x4f5816['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x11b3f6,_0x13e66c){this['newRevisionId']=_0x11b3f6,this['oldRevisionId']=_0x13e66c,this['changes']=new _0x1b11cb();}['_setChanges'](_0x5e3b3b){for(const _0x458dcd of _0x5e3b3b)this['changes']['add'](_0x458dcd);}}class l extends _0x13ea32{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xfff6d1,_0xf06ef0,S,$];}constructor(_0x54057d){super(_0x54057d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0xea4ecd,_0x173faf,_0x2f994c)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x6c8f89=>{for(const _0x4ab565 of this['editor']['editing']['view']['document']['roots'])_0x2f994c?_0x6c8f89['removeClass']('ck-editor__editable__overlay',_0x4ab565):_0x6c8f89['addClass']('ck-editor__editable__overlay',_0x4ab565);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4d3dff=>null!==_0x4d3dff),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x461222,_0x311a0b,_0x43ff19)=>_0x461222&&_0x43ff19?_0x311a0b['changes']['getIndex'](_0x43ff19):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x475601,_0x3e6b41)=>_0x475601?_0x3e6b41['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0xf06ef0);}['init'](){const _0xa12916=this['editor'],_0x23b03f=new ot(_0xa12916,{'direction':'backward'}),_0x6cb525=new ot(_0xa12916,{'direction':'forward'});(_0xa12916['commands']['add']('showPreviousChange',_0x23b03f),_0xa12916['commands']['add']('showNextChange',_0x6cb525),_0xa12916['commands']['add']('restoreRevision',new nt(_0xa12916)),this['on']('change:numberOfChanges',()=>{_0x23b03f['refresh'](),_0x6cb525['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xa12916['enableReadOnlyMode']('revision-viewer'),_0xa12916['plugins']['has']('WidgetToolbarRepository'))&&_0xa12916['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x371659){return await this['_utils']['loadRevisionData'](_0x371659,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x371659);}async['getRevisionRootsAttributes'](_0x441499){return await this['_utils']['loadRevisionData'](_0x441499,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x441499);}async['compare'](_0x534241,_0x5acb93,_0x4e468a=!0x1){if(!this['isEnabled'])return;const _0x6a9891=this['diff'],_0x4fbe8d=this['repository'],_0xf28bc4='string'==typeof _0x534241?_0x4fbe8d['getRevision'](_0x534241):_0x534241,_0x551fd7='string'==typeof _0x5acb93?_0x4fbe8d['getRevision'](_0x5acb93):_0x5acb93,_0x409cd8=_0xf28bc4['id'],_0x49800c=_0x551fd7?_0x551fd7['id']:null;if(!_0x4e468a&&this['diff']&&this['diff']['newRevisionId']===_0x409cd8&&this['diff']['oldRevisionId']===_0x49800c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x409cd8,_0x49800c);const _0x2c9cbe=this['_getRevisionsRange'](_0xf28bc4,_0x551fd7,!0x0)['map'](_0x42e6cf=>this['_utils']['loadRevisionData'](_0x42e6cf,this['adapter']));return _0x2c9cbe['push'](new Promise(_0xadde11=>{setTimeout(_0xadde11,0x14);})),Promise['all'](_0x2c9cbe)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x5bbb7f=this['_getDiff'](_0x409cd8,_0x49800c);for(const _0x122e34 of _0x5bbb7f['changes'])this['_changeIdToChange']['set'](_0x122e34['id'],_0x122e34);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xc17072=>{for(const _0x3f0dbc of this['editor']['model']['document']['getRootNames']())_0xc17072['detachRoot'](_0x3f0dbc);for(const _0x438138 of Object['keys'](_0x5bbb7f['model'])){const _0x327261=_0xc17072['addRoot'](_0x438138);for(const _0x40a87a of Object['keys'](_0x5bbb7f['attributes'][_0x438138]))_0xc17072['setAttribute'](_0x40a87a,_0x5bbb7f['attributes'][_0x438138][_0x40a87a],_0x327261);_0xc17072['insert'](_0x5bbb7f['model'][_0x438138],_0x327261,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x5bbb7f['changes'])),this['isReady']=!0x0;})['catch'](_0x329c55=>{console['error'](_0x329c55),this['_cleanUp'](),_0x6a9891&&(this['diff']=_0x6a9891),this['isReady']=!0x0;});}['addRevisionData'](_0x56a0d3,_0x4a3b19){const _0x4f2e89=this['repository']['createRevision'](_0x56a0d3);return _0x4f2e89['on']('_update',(_0x219f78,_0x170cfc,_0x467494)=>_0x4a3b19(_0x170cfc,_0x467494,_0x4f2e89)),this['repository']['addRevision'](_0x4f2e89),_0x4f2e89;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x570d1a=>{for(const _0x3860a5 of this['editor']['model']['document']['getRootNames']())_0x570d1a['detachRoot'](_0x3860a5);});}['_sortAndFilterDiffChanges'](_0xc68b48){const _0x217c97=[],_0x2a2c95=new Map();for(const _0x22847d of this['editor']['model']['document']['getRootNames']()){const _0x210465=this['editor']['editing']['view']['getDomRoot'](_0x22847d);if(!_0x210465)continue;const _0x342691=_0x210465['getClientRects']()['item'](0x0);_0x342691&&(_0x217c97['push'](_0x22847d),_0x2a2c95['set'](_0x22847d,_0x342691));}return _0x217c97['sort']((_0xfe81fc,_0x3e3eae)=>{const _0x40a052=_0x2a2c95['get'](_0xfe81fc),_0x79981a=_0x2a2c95['get'](_0x3e3eae);return _0x40a052['y']-_0x79981a['y']||_0x40a052['x']-_0x79981a['x'];}),(_0xc68b48=_0xc68b48['filter'](_0x11c284=>_0x217c97['includes'](_0x11c284['rootName'])))['sort']((_0x1bc562,_0x201220)=>_0x217c97['indexOf'](_0x1bc562['rootName'])-_0x217c97['indexOf'](_0x201220['rootName'])),_0xc68b48;}['_makeTape'](_0x292d66){const _0xe0de54=Array['from'](_0x292d66['markers'])['filter'](([_0x510eae,_0xf36dcc])=>_0x510eae['startsWith']('revision:')&&!_0xf36dcc['isCollapsed']),_0x1ca93e=Array['from'](this['editor']['model']['createRangeIn'](_0x292d66)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xe0de54['length'])for(const _0x4a82d2 of _0x1ca93e){const [_0x6c9dab,_0x3e0905]=_0xe0de54[0x0],[,_0x5016b9,_0x5d15e7]=_0x6c9dab['split'](':');if(_0x3e0905['end']['isEqual'](_0x4a82d2['nextPosition'])&&_0xe0de54['shift'](),(_0x4a82d2['previousPosition']['isEqual'](_0x3e0905['start'])||_0x4a82d2['previousPosition']['isAfter'](_0x3e0905['start']))&&('insertion'==_0x5016b9?_0x4a82d2['isAdded']={'userId':_0x5d15e7}:'deletion'==_0x5016b9&&(_0x4a82d2['isRemoved']={'userId':_0x5d15e7})),0x0==_0xe0de54['length'])break;}return _0x1ca93e;}['_refreshStartEndIndex'](_0xdd2d9a){const _0x6d76ec=new Map();for(let _0x5ce9de=0x0;_0x5ce9de<_0xdd2d9a['length'];_0x5ce9de++)'text'===_0xdd2d9a[_0x5ce9de]['type']?(_0xdd2d9a[_0x5ce9de]['item']['startIndex']=_0x5ce9de,_0xdd2d9a[_0x5ce9de]['item']['endIndex']=_0x5ce9de):('elementStart'===_0xdd2d9a[_0x5ce9de]['type']?_0xdd2d9a[_0x5ce9de]['item']['startIndex']=_0x5ce9de:'elementEnd'===_0xdd2d9a[_0x5ce9de]['type']&&(_0xdd2d9a[_0x5ce9de]['item']['endIndex']=_0x5ce9de),_0x6d76ec['set'](_0xdd2d9a[_0x5ce9de]['id'],_0x5ce9de));for(const _0x5257f9 of _0x6d76ec['values']())'elementStart'===_0xdd2d9a[_0x5257f9]['type']?_0xdd2d9a[_0x5257f9]['item']['endIndex']=_0x6d76ec['get'](_0xdd2d9a[_0x5257f9]['pairId']):'elementEnd'===_0xdd2d9a[_0x5257f9]['type']&&(_0xdd2d9a[_0x5257f9]['item']['startIndex']=_0x6d76ec['get'](_0xdd2d9a[_0x5257f9]['pairId']));}['_processTape'](_0x11aa83){for(let _0x17ee99=0x0;_0x17ee99<_0x11aa83['length'];_0x17ee99++){if('elementStart'===_0x11aa83[_0x17ee99]['type'])_0x11aa83[_0x17ee99]['item']['startIndex']=_0x17ee99;else{if('elementEnd'===_0x11aa83[_0x17ee99]['type']){_0x11aa83[_0x17ee99]['item']['endIndex']=_0x17ee99;const _0xc5e014=_0x11aa83[_0x17ee99]['item']['startIndex'];_0x11aa83[_0xc5e014]['pairId']=_0x11aa83[_0x17ee99]['id'],_0x11aa83[_0x17ee99]['pairId']=_0x11aa83[_0xc5e014]['id'];}else _0x11aa83[_0x17ee99]['item']['startIndex']=_0x17ee99,_0x11aa83[_0x17ee99]['item']['endIndex']=_0x17ee99,_0x11aa83[_0x17ee99]['pairId']=null;}_0x11aa83[_0x17ee99]['markersStart']||(_0x11aa83[_0x17ee99]['markersStart']=[],_0x11aa83[_0x17ee99]['markersEnd']=[]);}}['_markInsertions'](_0xfbcc68,_0x36270e){const _0x4e7944=_0xfbcc68['filter'](_0xe0e9f6=>!_0xe0e9f6['isAdded']);for(let _0x55b22b=0x0;_0x55b22b<_0x36270e['length'];_0x55b22b++)_0x36270e[_0x55b22b]['isAdded']&&(_0x4e7944[_0x55b22b]['isAdded']=_0x36270e[_0x55b22b]['isAdded']);}['_getDiff'](_0x290128,_0x261318=null){const _0x4eede2=this['repository']['getRevision'](_0x290128),_0x3ea37b=_0x261318?this['repository']['getRevision'](_0x261318):null,_0x36b2b5=this['_getRevisionsRange'](_0x4eede2,_0x3ea37b),_0x57b4a2=_0x36b2b5[_0x36b2b5['length']-0x1],_0x2ec1f8=new Map(),_0x155051={'model':{},'attributes':{},'changes':[]},_0x2bc3cf=new Set(),_0xf8506a=new Map();for(let _0x36d723=_0x36b2b5['length']-0x1;_0x36d723>=0x0;_0x36d723--){const _0x3ac61b=_0x36b2b5[_0x36d723];for(const _0x316690 of Object['keys'](_0x3ac61b['diffData']))if(_0x3ac61b['diffData'][_0x316690]['attachChange']){const _0x188dd2=_0x3ac61b['diffData'][_0x316690]['attachChange'];_0x188dd2['isAttached']?(_0x2bc3cf['add'](_0x316690),_0xf8506a['has'](_0x316690)&&_0xf8506a['get'](_0x316690)['userId']==_0x188dd2['userId']?_0xf8506a['delete'](_0x316690):_0xf8506a['set'](_0x316690,_0x188dd2)):_0xf8506a['has'](_0x316690)?(_0x2bc3cf['delete'](_0x316690),_0xf8506a['delete'](_0x316690)):(_0x2bc3cf['add'](_0x316690),_0xf8506a['set'](_0x316690,_0x188dd2));}else _0x2bc3cf['add'](_0x316690);}for(const _0x262815 of _0x2bc3cf){const _0xe58f3e=_0xf8506a['has'](_0x262815)&&!_0xf8506a['get'](_0x262815)['isAttached'];let _0x4e443b=_0xe58f3e?_0x36b2b5['length']-0x1:0x0;const _0x5e5dbb=_0xe58f3e?-0x1:0x1;for(;_0x36b2b5[_0x4e443b];){const _0x1e7165=_0x36b2b5[_0x4e443b];if(_0x1e7165['diffData'][_0x262815]){const _0x199cbe=_0xe58f3e?_0x1e7165['diffData'][_0x262815]['attributesBefore']:_0x1e7165['diffData'][_0x262815]['attributesAfter'];_0x155051['attributes'][_0x262815]=_0x199cbe?_0x53494d(_0x199cbe):{};break;}_0x4e443b+=_0x5e5dbb;}}for(const _0x143429 of _0x36b2b5){_0x143429['model']={};for(const _0x14f1ae of _0x143429['authors'])_0x2ec1f8['set'](_0x14f1ae['id'],_0x14f1ae);for(const _0x11b153 of _0x2bc3cf){const _0x557a6d=_0x143429['diffData'][_0x11b153]?_0x143429['diffData'][_0x11b153]['insertions']:'[]',_0x47e52c=_0x143429['diffData'][_0x11b153]?_0x143429['diffData'][_0x11b153]['deletions']:'[]';_0x143429['model'][_0x11b153]={'insertions':this['_utils']['_makeModelFromViewString'](_0x557a6d),'deletions':this['_utils']['_makeModelFromViewString'](_0x47e52c)};}}for(const _0x135727 of _0x2bc3cf){let _0x435051=null,_0x491fa3=0x0;const _0x5c7daa=new Map(Array['from'](_0x4eede2['model'][_0x135727]['insertions']['markers'])['filter'](([_0x266bd5])=>!_0x266bd5['startsWith']('revision:')));let _0xfc44cc=0x0;for(const _0x36c57b of _0x36b2b5){const _0x7d2f3e=this['_makeTape'](_0x36c57b['model'][_0x135727]['insertions']);_0x36c57b==_0x4eede2?(_0x435051=_0x7d2f3e,_0x491fa3=_0x435051['length'],_0x435051['forEach'](_0x39feeb=>{_0x39feeb['id']=_0xfc44cc++;}),this['_processTape'](_0x435051)):this['_markInsertions'](_0x435051,_0x7d2f3e);const _0xe9064a=_0x435051['filter'](_0x36addc=>!_0x36addc['isAdded'])['map'](_0x1fc2f9=>_0x1fc2f9['id']);let _0x3ca53f=0x0;const _0x3eeca6=this['_makeTape'](_0x36c57b['model'][_0x135727]['deletions']);_0x3eeca6['forEach'](_0x32a773=>{_0x32a773['isRemoved']?_0x32a773['id']=_0x491fa3++:_0x32a773['id']=_0xe9064a[_0x3ca53f++];}),this['_processTape'](_0x3eeca6),this['_setDistance'](_0x435051,'isAdded'),this['_setDistance'](_0x3eeca6,'isRemoved'),_0x36c57b==_0x4eede2&&this['_markMarkers'](_0x435051,_0x5c7daa),_0x435051=this['_joinTapes'](_0x435051,_0x3eeca6),this['_refreshStartEndIndex'](_0x435051),this['_setDistance'](_0x435051,'isRemoved');}_0x435051=_0x435051['filter'](_0x2618db=>!(_0x2618db['isAdded']&&_0x2618db['isRemoved']));const _0x89be34=new Map(_0x57b4a2['model'][_0x135727]['deletions']['markers']),_0x1792f0=new Set(_0x5c7daa['keys']());for(const _0x291693 of _0x89be34['keys']())_0x1792f0['delete'](_0x291693);this['_markSuggestions'](_0x435051,_0x1792f0),this['_fixObsoleteTags'](_0x435051),_0x435051=this['_removeMissingPairs'](_0x435051),_0x435051=this['_markMismatchedRemovedTags'](_0x435051),_0x435051=this['_removeUnsupportedChanges'](_0x435051);const {root:_0x382c8c,changes:_0x593ddf}=this['_makeModelFromTape'](_0x435051,_0x2ec1f8,_0x135727);_0x155051['model'][_0x135727]=_0x382c8c;const _0x1c6e12=_0xf8506a['get'](_0x135727);if(_0x1c6e12){const _0x171122=_0x2ec1f8['get'](_0x1c6e12['userId']),_0x3f99d1=new G({'author':_0x171122,'type':_0x1c6e12['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x135727});_0x593ddf['unshift'](_0x3f99d1),_0x155051['attributes'][_0x135727]['revisionHistoryAttachChange']=_0x3f99d1['id'];}_0x155051['changes']=_0x155051['changes']['concat'](_0x593ddf);}return _0x155051;}['_markMarkers'](_0xebc42d,_0x35ddec){for(let _0x480514=0x0;_0x480514<_0xebc42d['length'];_0x480514++)for(const [_0x4a8343,_0x525c40]of _0x35ddec)!_0x525c40['isCollapsed']&&_0x525c40['start']['isEqual'](_0xebc42d[_0x480514]['previousPosition'])&&_0xebc42d[_0x480514]['markersStart']['push'](_0x4a8343),_0x525c40['end']['isEqual'](_0xebc42d[_0x480514]['nextPosition'])&&_0xebc42d[_0x480514]['markersEnd']['push'](_0x4a8343);}['_joinTapes'](_0x4efedf,_0x1e7448){let _0x53d50a=[],_0x22e465=0x0,_0x158284=0x0;for(;_0x22e465<_0x4efedf['length']||_0x158284<_0x1e7448['length'];){const _0xd0efa7=_0x4efedf[_0x22e465]||{},_0x5268db=_0x1e7448[_0x158284]||{};if(_0xd0efa7['id']==_0x5268db['id'])_0x22e465++,_0x158284++,_0x53d50a['push'](_0xd0efa7);else{if(_0x5268db['isRemoved']&&_0xd0efa7['isAdded']){const {commonTape:_0x2c9563,iEnd:_0x4f9c28,jEnd:_0x2fd611}=this['_threeWayMerge'](_0x4efedf,_0x22e465,_0x1e7448,_0x158284);_0x53d50a=_0x53d50a['concat'](_0x2c9563),_0x22e465=_0x4f9c28,_0x158284=_0x2fd611;}else _0x5268db['isRemoved']?(_0x158284++,_0x53d50a['push'](_0x5268db)):(_0x22e465++,_0x53d50a['push'](_0xd0efa7));}}return _0x53d50a;}['_markSuggestions'](_0x2da85b,_0xc18104){const _0x276362=[];for(let _0x24d439=0x0;_0x24d439<_0x2da85b['length'];_0x24d439++){for(let _0x2960a4=0x0;_0x2960a4<_0x2da85b[_0x24d439]['markersStart']['length'];_0x2960a4++){const _0x309179=_0x2da85b[_0x24d439]['markersStart'][_0x2960a4];if(!_0xc18104['has'](_0x309179))continue;const {group:_0x16a7b7,type:_0x2d5ba6,authorId:_0x11f170}=_0x17d270(_0x309179);'revision-suggestion'!=_0x16a7b7||'insertion'!=_0x2d5ba6&&'deletion'!=_0x2d5ba6||(_0x276362['unshift']({'type':_0x2d5ba6,'name':_0x309179,'userId':_0x11f170}),_0x2da85b[_0x24d439]['markersStart']['splice'](_0x2960a4,0x1),_0x2960a4--);}_0x2d3c7c(_0x2da85b[_0x24d439]);for(let _0x351a3f=0x0;_0x351a3f<_0x2da85b[_0x24d439]['markersEnd']['length'];_0x351a3f++){const _0x523020=_0x2da85b[_0x24d439]['markersEnd'][_0x351a3f];if(!_0xc18104['has'](_0x523020))continue;const {group:_0x46aa38,type:_0x304e8e}=_0x17d270(_0x523020);if('revision-suggestion'!=_0x46aa38||'insertion'!=_0x304e8e&&'deletion'!=_0x304e8e)continue;_0x2da85b[_0x24d439]['markersEnd']['splice'](_0x351a3f,0x1),_0x351a3f--;const _0x17bf6d=_0x276362['findIndex'](_0x5e87bb=>_0x5e87bb['name']==_0x523020);_0x17bf6d>-0x1&&_0x276362['splice'](_0x17bf6d,0x1);}}function _0x17d270(_0x55801c){const _0x7d6bb3=_0x55801c['split'](':');return{'group':_0x7d6bb3[0x0],'type':_0x7d6bb3[0x1],'subType':_0x7d6bb3['length']>=0x5?_0x7d6bb3[0x2]:null,'id':_0x7d6bb3['length']<0x5?_0x7d6bb3[0x2]:_0x7d6bb3[0x3],'authorId':_0x7d6bb3['length']<0x5?_0x7d6bb3[0x3]:_0x7d6bb3[0x4],'markerCount':0x6==_0x7d6bb3['length']?_0x7d6bb3[0x5]:null};}function _0x2d3c7c(_0x5a376c){for(let _0x341126=0x0;_0x341126<_0x276362['length'];_0x341126++){if(_0x5a376c['isAdded']&&'insertion'==_0x276362[_0x341126]['type']&&_0x5a376c['isAdded']['userId']==_0x276362[_0x341126]['userId'])return _0x5a376c['isAddSuggestion']=_0x276362[_0x341126],void delete _0x5a376c['isAdded'];if(!_0x5a376c['isAdded']&&!_0x5a376c['isRemoved']&&'deletion'==_0x276362[_0x341126]['type'])return void(_0x5a376c['isRemoveSuggestion']=_0x276362[_0x341126]);}}}['_setDistance'](_0x414a16,_0xb2576){let _0x4d2395=0x0,_0x1d1390=!0x1;const _0x488931=new Map();for(const _0x261162 of _0x414a16)_0x261162[_0xb2576]?_0x1d1390&&(_0x4d2395++,_0x1d1390=!0x1):(_0x4d2395++,_0x1d1390=!0x0),_0x488931['set'](_0x261162['id'],_0x4d2395);for(let _0x37a256=0x0;_0x37a256<_0x414a16['length'];_0x37a256++){if('isRemoved'==_0xb2576&&_0x414a16[_0x37a256]['isAdded']||'isAdded'==_0xb2576&&_0x414a16[_0x37a256]['isRemoved'])continue;if('text'==_0x414a16[_0x37a256]['type']){_0x414a16[_0x37a256]['distance']=0x0;continue;}const _0xffdefe=_0x488931['get'](_0x414a16[_0x37a256]['pairId']),_0x23d755=_0x488931['get'](_0x414a16[_0x37a256]['id']);_0x414a16[_0x37a256]['distance']=_0xffdefe-_0x23d755;}}['_getRevisionsRange'](_0x2f78b3,_0x3366f0,_0x421d46=!0x1){const _0x5c85f7=[];let _0x38b336=this['repository']['getIndex'](_0x2f78b3),_0x29d402=this['repository']['getIndex'](_0x3366f0);for(-0x1==_0x29d402&&(_0x29d402=this['repository']['_revisions']['length'],_0x421d46=!0x1);_0x38b336<_0x29d402;)_0x5c85f7['push'](this['repository']['getRevision'](_0x38b336)),_0x38b336++;return _0x421d46&&_0x5c85f7['push'](this['repository']['getRevision'](_0x38b336)),_0x5c85f7;}['_threeWayMerge'](_0x19882c,_0x403200,_0x307bbc,_0x308d03){const _0x364f06=this['editor']['model']['schema'];let _0xb4ae22=_0x403200;for(;_0x19882c[_0xb4ae22]&&_0x19882c[_0xb4ae22]['isAdded'];)_0xb4ae22++;let _0x5f4d4c=_0x308d03;for(;_0x307bbc[_0x5f4d4c]&&_0x307bbc[_0x5f4d4c]['isRemoved'];)_0x5f4d4c++;_0x4c4d79(_0x19882c,_0x403200,_0xb4ae22),_0x4c4d79(_0x307bbc,_0x308d03,_0x5f4d4c);const _0xf73d7b=_0x307bbc['slice'](_0x308d03,_0x5f4d4c)['concat'](_0x19882c['slice'](_0x403200,_0xb4ae22));return _0xf73d7b['sort']((_0x13a36b,_0x49e620)=>_0x13a36b['side']!=_0x49e620['side']?_0x13a36b['side']-_0x49e620['side']:_0x13a36b['level']!=_0x49e620['level']?_0x13a36b['level']-_0x49e620['level']:_0x13a36b['distance']!=_0x49e620['distance']?_0x49e620['distance']-_0x13a36b['distance']:!!_0x13a36b['isAdded']!=!!_0x49e620['isAdded']?-0x1==_0x13a36b['side']||0x0==_0x13a36b['side']?_0x13a36b['isAdded']?-0x1:0x1:_0x13a36b['isAdded']?0x1:-0x1:_0x13a36b['index']-_0x49e620['index']),{'commonTape':_0xf73d7b,'iEnd':_0xb4ae22,'jEnd':_0x5f4d4c};function _0x4c4d79(_0x19f57c,_0x1dd204,_0x284e80){let _0x2d48cd=-0x1,_0xa2f964=Number['POSITIVE_INFINITY'],_0xcf5da5=!0x0;for(let _0x390c14=_0x1dd204;_0x390c14<_0x284e80;_0x390c14++)if(_0x364f06['isInline'](_0x19f57c[_0x390c14]['item'])||(_0xcf5da5=!0x1),_0x19f57c[_0x390c14]['item']['startIndex']<_0x1dd204&&(_0x2d48cd=_0x390c14),_0x19f57c[_0x390c14]['item']['endIndex']>=_0x284e80){_0xa2f964=_0x390c14;break;}_0xcf5da5&&(_0x2d48cd=_0x284e80-0x1);for(let _0x46d3a6=_0x1dd204;_0x46d3a6<_0x284e80;_0x46d3a6++)_0x19f57c[_0x46d3a6]['side']=_0x46d3a6<=_0x2d48cd?-0x1:_0x46d3a6<_0xa2f964?0x0:0x1,_0x19f57c[_0x46d3a6]['index']=_0x46d3a6;let _0x57670b=0x0;for(let _0x482106=_0x1dd204;_0x482106<=_0x2d48cd;_0x482106++)0x0==_0x19f57c[_0x482106]['distance']?_0x19f57c[_0x482106]['level']=_0x57670b:(_0x57670b++,_0x19f57c[_0x482106]['level']=_0x57670b,_0x57670b++);for(let _0x578129=_0x1dd204;_0x578129<_0x284e80;_0x578129++)0x0==_0x19f57c[_0x578129]['side']&&(_0x19f57c[_0x578129]['level']=_0x57670b);_0x57670b=0x0;for(let _0xa7dd69=_0x284e80-0x1;_0xa7dd69>=_0xa2f964;_0xa7dd69--)0x0==_0x19f57c[_0xa7dd69]['distance']?_0x19f57c[_0xa7dd69]['level']=_0x57670b:(_0x57670b--,_0x19f57c[_0xa7dd69]['level']=_0x57670b,_0x57670b--);}}['_fixObsoleteTags'](_0x445de8){const _0x575269=new Map(),_0x357d7c=this['editor']['model']['schema'];for(let _0x1cb04d=0x1;_0x1cb04d<_0x445de8['length'];_0x1cb04d++){let _0x40cd16,_0xe0dfdb,_0x361964;const _0x1d9dfb=_0x445de8[_0x1cb04d],_0x399587=_0x445de8[_0x1cb04d-0x1];if('text'==_0x1d9dfb['type'])continue;if(_0x1d9dfb['type']!=_0x399587['type'])continue;if(!_0x357d7c['isBlock'](_0x399587['item'])||_0x357d7c['isLimit'](_0x399587['item']))continue;if(!_0x357d7c['isBlock'](_0x1d9dfb['item'])||_0x357d7c['isLimit'](_0x1d9dfb['item']))continue;if((_0x445de8[_0x1cb04d]['isAdded']||_0x445de8[_0x1cb04d]['isAddSuggestion'])&&_0x445de8[_0x1cb04d-0x1]['isRemoved'])_0x40cd16=_0x445de8[_0x1cb04d],_0xe0dfdb=_0x445de8[_0x1cb04d-0x1],_0x361964=_0x1cb04d-0x1;else{if(!_0x445de8[_0x1cb04d]['isRemoved']||!_0x445de8[_0x1cb04d-0x1]['isAdded']&&!_0x445de8[_0x1cb04d-0x1]['isAddSuggestion'])continue;_0x40cd16=_0x445de8[_0x1cb04d-0x1],_0xe0dfdb=_0x445de8[_0x1cb04d],_0x361964=_0x1cb04d;}const _0x5b17ff=_0x40cd16['level']==_0xe0dfdb['level'],_0x2c602d=Math['abs'](_0x40cd16['level'])<Math['abs'](_0xe0dfdb['level'])&&0x0==_0xe0dfdb['distance'];(_0x5b17ff||_0x2c602d)&&(_0x575269['set'](_0xe0dfdb['id'],_0x40cd16['id']),_0x445de8['splice'](_0x361964,0x1),_0x1cb04d--,_0x40cd16['isAdded']=!0x1);}for(let _0x36fd08=0x0;_0x36fd08<_0x445de8['length'];_0x36fd08++)_0x575269['has'](_0x445de8[_0x36fd08]['pairId'])&&(_0x445de8[_0x36fd08]['pairId']=_0x575269['get'](_0x445de8[_0x36fd08]['pairId']));}['_removeMissingPairs'](_0x5575bd){const _0x2500d6=new Set(_0x5575bd['map'](_0x4082d3=>_0x4082d3['id']));for(let _0x223a5f=0x0;_0x223a5f<_0x5575bd['length'];_0x223a5f++)_0x2500d6['has'](_0x5575bd[_0x223a5f]['pairId'])||0x0==_0x5575bd[_0x223a5f]['distance']||(_0x5575bd[_0x223a5f]['isIncorrect']=!0x0);return _0x5575bd['filter'](_0x21d80c=>!_0x21d80c['isIncorrect']);}['_markMismatchedRemovedTags'](_0xc5d1ec){const _0x5d5bf5=new Set();for(let _0x146950=0x0;_0x146950<_0xc5d1ec['length'];_0x146950++){if(_0x5d5bf5['has'](_0xc5d1ec[_0x146950]['id'])&&_0xc5d1ec[_0x146950]['isRemoved']&&(_0xc5d1ec[_0x146950]['isIncorrect']=!0x0),_0xc5d1ec[_0x146950]['isIncorrect'])continue;if(0x0==_0xc5d1ec[_0x146950]['distance'])continue;if('elementStart'!=_0xc5d1ec[_0x146950]['type'])continue;if(null==_0xc5d1ec[_0x146950]['pairId'])continue;let _0x3ce022=_0x146950+0x1,_0x20dcdb=0x0;for(;_0xc5d1ec[_0x3ce022]['id']!=_0xc5d1ec[_0x146950]['pairId'];)'elementStart'==_0xc5d1ec[_0x3ce022]['type']?_0x20dcdb++:'elementEnd'==_0xc5d1ec[_0x3ce022]['type']&&_0x20dcdb--,_0x3ce022++;if(0x0!=_0x20dcdb){if(_0xc5d1ec[_0x146950]['isRemoved'])_0xc5d1ec[_0x146950]['isIncorrect']=!0x0;else{for(;_0x3ce022!=_0x146950;)_0xc5d1ec[_0x3ce022]['isRemoved']&&0x0!=_0xc5d1ec[_0x3ce022]['distance']&&(_0xc5d1ec[_0x3ce022]['isIncorrect']=!0x0,_0x5d5bf5['add'](_0xc5d1ec[_0x3ce022]['pairId'])),_0x3ce022--;}}}return _0xc5d1ec['filter'](_0x4bb8d0=>!_0x4bb8d0['isIncorrect']);}['_removeUnsupportedChanges'](_0x4f1e19){const _0x1f8e10=this['editor']['model']['schema'];for(let _0x32c0a1=0x0;_0x32c0a1<_0x4f1e19['length'];_0x32c0a1++){if(!(_0x4f1e19[_0x32c0a1]['isAdded']||_0x4f1e19[_0x32c0a1]['isAddSuggestion']||_0x4f1e19[_0x32c0a1]['isRemoved']||_0x4f1e19[_0x32c0a1]['isRemoveSuggestion']))continue;if(0x0==_0x4f1e19[_0x32c0a1]['distance'])continue;const _0x246094=_0x4f1e19[_0x32c0a1]['item'];_0x1f8e10['isBlock'](_0x246094)||_0x1f8e10['isLimit'](_0x246094)||(_0x4f1e19[_0x32c0a1]['isAdded']&&delete _0x4f1e19[_0x32c0a1]['isAdded'],_0x4f1e19[_0x32c0a1]['isAddSuggestion']&&delete _0x4f1e19[_0x32c0a1]['isAddSuggestion'],_0x4f1e19[_0x32c0a1]['isRemoveSuggestion']&&delete _0x4f1e19[_0x32c0a1]['isRemoveSuggestion'],_0x4f1e19[_0x32c0a1]['isRemoved']&&(_0x4f1e19[_0x32c0a1]['isIncorrect']=!0x0));}return _0x4f1e19['filter'](_0x4c3ecf=>!_0x4c3ecf['isIncorrect']);}['_makeModelFromTape'](_0x3f7ab9,_0x3d8531,_0x55ee89){const _0x32e11f=new _0x189713(),_0x5264b3=[],_0x33c22a=new Map(),_0x5b90c9=this['editor']['model'],_0x2b0793=_0x5b90c9['schema'],_0x289f61=[_0x32e11f],_0x147d1d={},_0x56b5fd={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1b094c=null;const _0x36cf3a=[0x0];for(let _0x523d6c=0x0;_0x523d6c<_0x3f7ab9['length'];_0x523d6c++)if('elementStart'===_0x3f7ab9[_0x523d6c]['type']){_0x3f7ab9[_0x523d6c]['previousPosition']=_0x5b90c9['createPositionFromPath'](_0x32e11f,_0x36cf3a);const _0xb51201=new _0x14c8ed(_0x3f7ab9[_0x523d6c]['item']['name'],_0x3f7ab9[_0x523d6c]['item']['getAttributes']());_0x289f61[0x0]['_appendChild'](_0xb51201),_0x36cf3a['push'](0x0),_0x289f61['unshift'](_0xb51201),_0x3f7ab9[_0x523d6c]['nextPosition']=_0x5b90c9['createPositionFromPath'](_0x32e11f,_0x36cf3a);}else'elementEnd'===_0x3f7ab9[_0x523d6c]['type']?(_0x289f61['shift'](),_0x3f7ab9[_0x523d6c]['previousPosition']=_0x5b90c9['createPositionFromPath'](_0x32e11f,_0x36cf3a),_0x36cf3a['pop'](),_0x36cf3a[_0x36cf3a['length']-0x1]++,_0x3f7ab9[_0x523d6c]['nextPosition']=_0x5b90c9['createPositionFromPath'](_0x32e11f,_0x36cf3a)):(_0x3f7ab9[_0x523d6c]['previousPosition']=_0x5b90c9['createPositionFromPath'](_0x32e11f,_0x36cf3a),_0x1b094c?_0x1b094c['_data']+=_0x3f7ab9[_0x523d6c]['item']['data']:_0x1b094c=new _0x475e46(_0x3f7ab9[_0x523d6c]['item']['data'],_0x3f7ab9[_0x523d6c]['item']['getAttributes']()),_0x3f7ab9[_0x523d6c+0x1]&&'text'===_0x3f7ab9[_0x523d6c+0x1]['type']&&_0x5bb501(_0x1b094c,_0x3f7ab9[_0x523d6c+0x1]['item'])||(_0x289f61[0x0]['_appendChild'](_0x1b094c),_0x1b094c=null),_0x36cf3a[_0x36cf3a['length']-0x1]+=_0x3f7ab9[_0x523d6c]['item']['offsetSize'],_0x3f7ab9[_0x523d6c]['nextPosition']=_0x5b90c9['createPositionFromPath'](_0x32e11f,_0x36cf3a));for(let _0x7fa131=0x0;_0x7fa131<_0x3f7ab9['length'];_0x7fa131++){const _0x5c6d3f=_0x3f7ab9[_0x7fa131]['previousPosition'],_0x29b347=_0x3f7ab9[_0x7fa131]['nextPosition'];for(const _0x39e110 of _0x3f7ab9[_0x7fa131]['markersStart'])_0x33c22a['set'](_0x39e110,{'start':_0x5c6d3f,'end':null});_0xefff44('isRemoveSuggestion',_0x7fa131,_0x5c6d3f,_0x29b347),_0xefff44('isAddSuggestion',_0x7fa131,_0x5c6d3f,_0x29b347),_0xefff44('isRemoved',_0x7fa131,_0x5c6d3f,_0x29b347),_0xefff44('isAdded',_0x7fa131,_0x5c6d3f,_0x29b347);for(const _0x1bf2f2 of _0x3f7ab9[_0x7fa131]['markersEnd']){const _0x304d3f=_0x33c22a['get'](_0x1bf2f2);_0x304d3f?_0x304d3f['end']=_0x29b347:_0x33c22a['set'](_0x1bf2f2,{'start':_0x29b347,'end':_0x29b347});}}for(const [_0x5b917b,_0x266227]of _0x33c22a){const _0x13da19=this['editor']['model']['createRange'](_0x266227['start'],_0x266227['end']);_0x32e11f['markers']['set'](_0x5b917b,_0x13da19);}return _0x5264b3['sort']((_0x52554d,_0x12eeae)=>{const _0x3880ef=_0x32e11f['markers']['get']('revision:'+_0x52554d['id']),_0x7ee6d6=_0x32e11f['markers']['get']('revision:'+_0x12eeae['id']);return _0x3880ef['start']['isBefore'](_0x7ee6d6['start'])?-0x1:_0x3880ef['start']['isAfter'](_0x7ee6d6['start'])?0x1:_0x3880ef['end']['isBefore'](_0x7ee6d6['end'])?-0x1:_0x3880ef['end']['isAfter'](_0x7ee6d6['end'])?0x1:'add'===_0x52554d['type']?-0x1:0x1;}),{'root':_0x32e11f,'changes':_0x5264b3};function _0xefff44(_0x28df2c,_0x33e5a3,_0x2945c2,_0x4934ed){const _0x4bf311=!!_0x3f7ab9[_0x33e5a3][_0x28df2c],_0xe3d726=_0x4bf311?_0x3f7ab9[_0x33e5a3][_0x28df2c]['userId']:null,_0x296fb2=_0x33e5a3===_0x3f7ab9['length']-0x1,_0xf45b50=_0x56b5fd[_0x28df2c][0x0],_0x41b8ef=_0x2b0793['isObject'](_0x3f7ab9[_0x33e5a3]['item']);!_0x147d1d[_0x28df2c]&&_0x4bf311?_0x147d1d[_0x28df2c]={'start':_0x2945c2,'tapeItem':_0x3f7ab9[_0x33e5a3],'userId':_0xe3d726,'type':_0x28df2c}:_0x147d1d[_0x28df2c]&&!_0x4bf311?(_0x147d1d[_0x28df2c]['end']=_0x2945c2,_0x146b94(_0x147d1d[_0x28df2c]),_0x147d1d[_0x28df2c]=null):_0x147d1d[_0x28df2c]&&_0x4bf311&&_0x147d1d[_0x28df2c]['userId']!==_0xe3d726&&(_0x147d1d[_0x28df2c]['end']=_0x2945c2,_0xf45b50&&_0xf45b50['userId']===_0x147d1d[_0x28df2c]['userId']||_0x146b94(_0x147d1d[_0x28df2c]),_0x147d1d[_0x28df2c]={'start':_0x2945c2,'tapeItem':_0x3f7ab9[_0x33e5a3],'userId':_0xe3d726,'type':_0x28df2c}),_0x147d1d[_0x28df2c]&&_0x41b8ef&&('elementStart'!==_0x3f7ab9[_0x33e5a3]['type']||_0xf45b50&&_0xf45b50['userId']===_0xe3d726||_0x56b5fd[_0x28df2c]['unshift']({'userId':_0xe3d726,'object':_0x3f7ab9[_0x33e5a3]['item'],'change':_0x147d1d[_0x28df2c]}),'elementEnd'===_0x3f7ab9[_0x33e5a3]['type']&&_0xf45b50&&_0xf45b50['object']===_0x3f7ab9[_0x33e5a3]['item']&&(_0x56b5fd[_0x28df2c]['shift'](),_0x147d1d[_0x28df2c]=_0xf45b50['change'])),_0x147d1d[_0x28df2c]&&_0x296fb2&&(_0x147d1d[_0x28df2c]['end']=_0x4934ed,_0x146b94(_0x147d1d[_0x28df2c]),_0x147d1d[_0x28df2c]=null);}function _0x146b94({start:_0x14b8d9,end:_0x157165,tapeItem:_0x2e29ca,userId:_0x605fac,type:_0x3bb180}){const _0x3bbbeb=_0x2e29ca['item'],_0x4925e1=_0x5b90c9['schema']['isBlock'](_0x3bbbeb)&&!_0x5b90c9['schema']['isLimit'](_0x3bbbeb),_0x5fe6bb=_0x14b8d9['nodeAfter']==_0x157165['parent']&&_0x157165['isAtStart'];if(_0x4925e1&&_0x5fe6bb)return;const _0x59027b=_0x5b90c9['createRange'](_0x14b8d9,_0x157165),_0x3ac8cb=_0x3d8531['get'](_0x605fac),_0x4594c5=new G({'author':_0x3ac8cb,'type':'isAdded'==_0x3bb180||'isAddSuggestion'==_0x3bb180?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3bb180||'isRemoveSuggestion'==_0x3bb180},'createdAt':new Date(),'rootName':_0x55ee89});_0x5264b3['push'](_0x4594c5),_0x32e11f['markers']['set']('revision:'+_0x4594c5['id'],_0x59027b);}function _0x5bb501(_0x3f3846,_0x5ee9a4){const _0x5b2f78=_0x3f3846['getAttributes'](),_0x1ef62c=_0x5ee9a4['getAttributes']();for(const _0x256818 of _0x5b2f78){if(_0x256818[0x1]!==_0x5ee9a4['getAttribute'](_0x256818[0x0]))return!0x1;_0x1ef62c['next']();}return _0x1ef62c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x43ff97=>{const _0x2fa707=_0x43ff97['markerName']['split'](':')[0x1],_0x69dcf0=this['_getChangeFromId'](_0x2fa707);if(!_0x69dcf0)return null;const _0x55f16b='add'==_0x69dcf0['type']?'insertion':'deletion',_0x4d6036=['ck-suggestion-marker','ck-suggestion-marker-'+_0x55f16b];return _0x69dcf0['data']['isSuggestion']&&_0x4d6036['push']('ck-suggestion-marker-'+_0x55f16b+'-new'),this['activeChange']==_0x69dcf0&&_0x4d6036['push']('ck-suggestion-marker--active'),{'classes':_0x4d6036,'attributes':{'data-change-id':_0x2fa707}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x338aa2=>{_0x338aa2['on']('element:pre',(_0x35b744,_0x469113,_0x54537d)=>{const _0x1de9a1=_0x469113['viewItem']['getChild'](0x0);if(!_0x1de9a1||!_0x1de9a1['is']('element','code'))return;if(!_0x54537d['consumable']['consume'](_0x1de9a1,{'attributes':['vid_start','vid_end']}))return;const _0x4f66b0=_0x469113['modelRange']['start']['nodeAfter'];_0x54537d['writer']['setAttribute']('vid_start',_0x1de9a1['getAttribute']('vid_start'),_0x4f66b0),_0x54537d['writer']['setAttribute']('vid_end',_0x1de9a1['getAttribute']('vid_end'),_0x4f66b0);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x223f0a=>{_0x223f0a['on']('element',(_0x441054,_0x5c30a2,_0x5a7ffd)=>{if(!_0x5a7ffd['consumable']['consume'](_0x5c30a2['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5c30a2['modelRange']['isCollapsed'])return;const _0x328f13=_0x5c30a2['modelRange']['start']['nodeAfter'];_0x328f13['hasAttribute']('vid_start')||_0x328f13['hasAttribute']('vid')||(_0x5a7ffd['writer']['setAttribute']('vid_start',_0x5c30a2['viewItem']['getAttribute']('vid_start'),_0x328f13),_0x5a7ffd['writer']['setAttribute']('vid_end',_0x5c30a2['viewItem']['getAttribute']('vid_end'),_0x328f13));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x782d13=>_0x782d13['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x320e26,[,_0x4bb92e])=>{['vid_start','vid_end','vid']['includes'](_0x4bb92e)&&(_0x320e26['return']=!0x0,_0x320e26['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x133760=>{_0x133760['on']('attribute:vid',(_0x5d33bb,_0x167fc8,_0x386a19)=>{if('\x20'!=_0x167fc8['item']['data']||_0x167fc8['item']['parent']['maxOffset']>0x1)return;if(!_0x386a19['consumable']['consume'](_0x167fc8['item'],_0x5d33bb['name']))return;const _0x131933=_0x386a19['writer'],_0x2a8fc8=_0x386a19['mapper']['toViewRange'](_0x167fc8['range']);_0x131933['wrap'](_0x2a8fc8,_0x131933['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x348ddd){const _0x14ae0d=_0x348ddd['plugins']['get']('RevisionViewer');return(_0xda3160,_0x48216f,_0x2485b1)=>{const _0x9a508a=_0x48216f['markerName']['split'](':')[0x1],_0x1ce85b=_0x14ae0d['_getChangeFromId'](_0x9a508a);if(!_0x1ce85b)return null;const _0x33e0dc='add'==_0x1ce85b['type']?'split':'merge';if(!_0x2485b1['consumable']['test'](_0x48216f['markerRange'],_0xda3160['name']))return;const _0x18e449=_0x48216f['markerRange']['getWalker'](),_0x25af9e=_0x48216f['markerRange']['start'],_0x5c744e=_0x348ddd['model']['schema'];let _0x43da8f=null,_0x3271ad=null,_0x3484d6=!0x1,_0x5af741=!0x1;for(const _0x1a7f1b of _0x18e449){const _0x34d0e2=_0x1a7f1b['item'];_0x3484d6=_0x3484d6||_0x5c744e['isContent'](_0x34d0e2);const _0x32ca18=_0x2485b1['mapper']['toViewElement'](_0x34d0e2);if(_0x32ca18&&_0x32ca18['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1a7f1b['type']&&(_0x5c744e['isBlock'](_0x34d0e2)&&!_0x5c744e['isLimit'](_0x34d0e2)&&(_0x34d0e2['nextSibling']||_0x25af9e['isAtEnd']?_0x43da8f&&_0x43da8f['parent']==_0x34d0e2||(_0x43da8f=_0x34d0e2,_0x4dba55(_0x1a7f1b['previousPosition']),_0x5af741=!0x0):_0x3271ad=_0x3271ad||_0x1a7f1b['previousPosition']));}function _0x4dba55(_0x3b5727){const _0x115faa=_0x2485b1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33e0dc}),_0x52cd97=_0x2485b1['mapper']['toViewPosition'](_0x3b5727);_0x1ce85b['data']['isSuggestion']&&_0x2485b1['writer']['addClass']('ck-suggestion-marker-'+_0x33e0dc+'-new',_0x115faa),_0x14ae0d['activeChange']==_0x1ce85b&&_0x2485b1['writer']['addClass']('ck-suggestion-marker--active',_0x115faa),_0x2485b1['writer']['insert'](_0x52cd97,_0x115faa),_0x2485b1['mapper']['bindElementToMarker'](_0x115faa,_0x48216f['markerName']);}_0x3484d6||_0x5af741||!_0x3271ad||_0x4dba55(_0x3271ad);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1ed899,_0x521f94,_0x3b6ff3)=>{const _0x2a2801=_0x3b6ff3['mapper']['markerNameToElements'](_0x521f94['markerName']);if(_0x2a2801){for(const _0x32b1e2 of _0x2a2801)(_0x32b1e2['hasClass']('ck-suggestion-marker-split')||_0x32b1e2['hasClass']('ck-suggestion-marker-merge'))&&(_0x3b6ff3['mapper']['unbindElementFromMarkerName'](_0x32b1e2,_0x521f94['markerName']),_0x3b6ff3['writer']['remove'](_0x32b1e2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x159774,_0x1675c2,_0x2959d2)=>{const _0x3e23db=_0x1675c2['markerName']['split'](':')[0x1],_0x268378=this['_getChangeFromId'](_0x3e23db);if(!_0x268378)return null;const _0xb26e95='add'==_0x268378['type']?'split':'merge';if(_0x2959d2['consumable']['test'](_0x1675c2['markerRange'],_0x159774['name']))for(const _0x58f61d of _0x1675c2['markerRange']['getItems']()){if(!_0x58f61d['is']('element','softBreak'))continue;const _0x356c76=_0x2959d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb26e95}),_0xbd6fc9=_0x2959d2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x58f61d));_0x268378['data']['isSuggestion']&&_0x2959d2['writer']['addClass']('ck-suggestion-marker-'+_0xb26e95+'-new',_0x356c76),this['activeChange']==_0x268378&&_0x2959d2['writer']['addClass']('ck-suggestion-marker--active',_0x356c76),_0x2959d2['writer']['insert'](_0xbd6fc9,_0x356c76),_0x2959d2['mapper']['bindElementToMarker'](_0x356c76,_0x1675c2['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2d1d4b=>{for(const _0x4c1360 of this['editor']['model']['document']['getRootNames']()){const _0x5ca9f0=this['editor']['model']['document']['getRoot'](_0x4c1360),_0x483fa8=this['editor']['editing']['view']['document']['getRoot'](_0x4c1360);if(_0x483fa8){const _0x128d57=_0x5ca9f0['getAttribute']('revisionHistoryAttachChange');if(_0x2d1d4b['removeAttribute']('data-change-id',_0x483fa8),_0x2d1d4b['removeClass']('ck-revision-history-root-add',_0x483fa8),_0x2d1d4b['removeClass']('ck-revision-history-root-remove',_0x483fa8),_0x2d1d4b['removeClass']('ck-revision-history-root--active',_0x483fa8),_0x128d57){const _0x28bdaf=this['_getChangeFromId'](_0x128d57);if(!_0x28bdaf)return null;_0x2d1d4b['setAttribute']('data-change-id',_0x128d57,_0x483fa8),_0x2d1d4b['addClass']('ck-revision-history-root-'+_0x28bdaf['type'],_0x483fa8),this['activeChange']==_0x28bdaf&&_0x2d1d4b['addClass']('ck-revision-history-root--active',_0x483fa8);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3fa31e=>'revision-comment:'+_0x3fa31e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5586a4=>'revision-suggestion:'+_0x5586a4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x8ad944=>({'name':'suggestion:'+_0x8ad944,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x189670=>{const _0xb962e8=_0x189670['markerName']['split'](':')[0x1];return'insertion'!=_0xb962e8&&'deletion'!=_0xb962e8?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xb962e8]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x49aa81,_0x3a66ae,_0x10f537)=>{const _0x338469=_0x10f537['mapper']['markerNameToElements'](_0x3a66ae['markerName']);if(_0x338469){for(const _0x4672b0 of _0x338469)_0x4672b0['is']('uiElement')&&(_0x10f537['mapper']['unbindElementFromMarkerName'](_0x4672b0,_0x3a66ae['markerName']),_0x10f537['writer']['remove'](_0x4672b0));}},{'priority':'high'});}['_getChangeFromId'](_0x7e74ed){return this['_changeIdToChange']['get'](_0x7e74ed);}['_getViewForChange'](_0x612977){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x612977),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4f0ad5,_0x4fab3b,_0x561312,_0xc5dbbe)=>{_0xc5dbbe&&this['_balloon']['remove'](_0xc5dbbe),_0x561312&&(this['_balloon']['add']({'view':_0x561312,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1a972f=this['editor']['editing'],_0x3e38ed=this['_getChangeFromId'](_0x561312['changeId']);let _0x1e2ef5;if(_0x3e38ed['data']['isOnRoot']){const _0x6a4f5b=_0x1a972f['view']['getDomRoot'](_0x3e38ed['rootName']);_0x1e2ef5=Array['from'](_0x6a4f5b['getClientRects']());}else{const _0x3f8ff3=this['editor']['model']['markers']['get']('revision:'+_0x561312['changeId']);_0x1e2ef5=Array['from'](_0x1a972f['mapper']['markerNameToElements'](_0x3f8ff3['name']))['map'](_0x54f07a=>_0x1a972f['view']['domConverter']['mapViewToDom'](_0x54f07a))['map'](_0x35a5de=>Array['from'](_0x35a5de['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1e2ef5[0x0];return _0x1e2ef5['find'](_0x24b667=>_0x24b667['top']-0x3<=this['_activeViewTarget']['y']&&_0x24b667['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x24b667['left']-0x3<=this['_activeViewTarget']['x']&&_0x24b667['right']+0x3>=this['_activeViewTarget']['x'])||_0x1e2ef5[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3bf500,_0x18d12d,_0x1146f9,_0x1d11ca)=>{this['activeView']=_0x1146f9?this['_getViewForChange'](_0x1146f9):null,this['editor']['model']['change'](()=>{const _0x62f2d=this['editor']['editing'];_0x1d11ca&&(_0x1d11ca['data']['isOnRoot']?_0x62f2d['view']['change'](_0x5903ed=>{_0x5903ed['removeClass']('ck-revision-history-root--active',_0x62f2d['view']['document']['getRoot'](_0x1d11ca['rootName']));}):_0x62f2d['reconvertMarker']('revision:'+_0x1d11ca['id'])),_0x1146f9&&(_0x1146f9['data']['isOnRoot']?_0x62f2d['view']['change'](_0x566385=>{_0x566385['addClass']('ck-revision-history-root--active',_0x62f2d['view']['document']['getRoot'](_0x1146f9['rootName']));}):_0x62f2d['reconvertMarker']('revision:'+_0x1146f9['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4af127,_0x3ecfe0)=>{if(this['activeChange'])return;const _0x21b69c=this['_findChangeIdFromDomTarget'](_0x3ecfe0['target']),_0x1ce059=this['_changeIdToChange']['get'](_0x21b69c);_0x1ce059?(this['_activeViewTarget']={'x':_0x3ecfe0['domEvent']['x'],'y':_0x3ecfe0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1ce059)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x559435,_0x31aa1b)=>{const _0x505ed8=this['_findChangeIdFromDomTarget'](_0x31aa1b['target']),_0x40b41d=this['_changeIdToChange']['get'](_0x505ed8);_0x40b41d?(this['_activeViewTarget']={'x':_0x31aa1b['domEvent']['x'],'y':_0x31aa1b['domEvent']['y']},_0x40b41d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x40b41d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4080db){do{const _0x2d3644=_0x4080db['getAttribute']('data-change-id');if(_0x2d3644)return _0x2d3644;_0x4080db=_0x4080db['parent'];}while(_0x4080db);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x269332=>{for(const _0x1f9175 of this['editor']['model']['markers'])_0x269332['removeMarker'](_0x1f9175);});}}function Q(_0x3eb336,_0x3f4ce6){return(_0x4115db,_0x503f63,_0x523e15)=>{if(!_0x523e15['consumable']['test'](_0x503f63['markerRange'],_0x4115db['name']))return;const _0x53981b=_0x503f63['markerRange']['getWalker'](),_0x59c656=_0x503f63['markerRange']['start'],_0x4b87e7=_0x3eb336['model']['schema'];let _0xf5c720=null,_0x1474c4=null,_0x2a97b9=!0x1,_0x2767e2=!0x1;for(const _0x54e180 of _0x53981b){const _0x47e1b9=_0x54e180['item'];_0x2a97b9=_0x2a97b9||_0x4b87e7['isContent'](_0x47e1b9);const _0x3f3a74=_0x523e15['mapper']['toViewElement'](_0x47e1b9);if(_0x3f3a74&&_0x3f3a74['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54e180['type']&&(_0x4b87e7['isBlock'](_0x47e1b9)&&!_0x4b87e7['isLimit'](_0x47e1b9)&&(_0x47e1b9['nextSibling']||_0x59c656['isAtEnd']?_0xf5c720&&_0xf5c720['parent']==_0x47e1b9||(_0xf5c720=_0x47e1b9,_0x58c689(_0x54e180['previousPosition']),_0x2767e2=!0x0):_0x1474c4=_0x1474c4||_0x54e180['previousPosition']));}function _0x58c689(_0x329a6d){const _0x1417ec=_0x523e15['mapper']['toViewPosition'](_0x329a6d),_0x2e23d2=_0x523e15['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3f4ce6});_0x523e15['writer']['insert'](_0x1417ec,_0x2e23d2),_0x523e15['mapper']['bindElementToMarker'](_0x2e23d2,_0x503f63['markerName']);}_0x2a97b9||_0x2767e2||!_0x1474c4||_0x58c689(_0x1474c4);};}class nt extends _0x4275b1{constructor(_0x4603c3){super(_0x4603c3);const _0x53a36c=_0x4603c3['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x53a36c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x53a36c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x894e04=this['editor'],_0x982787=_0x894e04['plugins']['get'](l),_0x2838f5=_0x982787['isReady']?_0x982787['diff']['newRevisionId']:null;_0x894e04['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2838f5);}['refresh'](){const {isReady:_0x220b84,isEnabled:_0x313d7d,repository:_0x59bdd9,diff:_0x25b8cc}=this['editor']['plugins']['get'](l),_0x2e0e49=_0x25b8cc&&_0x59bdd9['getLaterVisibleRevision'](_0x25b8cc['newRevisionId']);this['isEnabled']=_0x220b84&&_0x313d7d&&Boolean(_0x2e0e49);}}class ot extends _0x4275b1{['_step'];constructor(_0x5be316,{direction:_0x18b8e2}){super(_0x5be316);const _0x45d78f=_0x5be316['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x18b8e2?0x1:-0x1,this['listenTo'](_0x45d78f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x45d78f,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x45d78f,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x29f5fd=this['editor'],_0x36f601=_0x29f5fd['plugins']['get'](l),{isNavigationMode:_0x1c1fee,currentChangeNumber:_0xa0e9f}=_0x36f601;let _0x1065d0;if(_0x36f601['activeChange']=_0x1c1fee?_0x36f601['diff']['changes']['get'](_0xa0e9f+this['_step']):_0x36f601['diff']['changes']['first'],_0x36f601['activeChange']['data']['isOnRoot'])_0x1065d0=_0x29f5fd['editing']['view']['getDomRoot'](_0x36f601['activeChange']['rootName']);else{const _0x50c47c=_0x29f5fd['model']['markers']['get']('revision:'+_0x36f601['activeChange']['id']);_0x1065d0=_0x147d9a(_0x29f5fd['editing'],_0x50c47c);}_0x249a92({'target':_0x1065d0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x264983,currentChangeNumber:_0x3d4ce9,numberOfChanges:_0x115371,isReady:_0x156712,isEnabled:_0x4b7162}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x4b7162&&_0x156712&&_0x115371)&&(!_0x264983||(0x1===this['_step']?_0x3d4ce9<_0x115371-0x1:_0x3d4ce9>0x0));}}class Ri extends _0x8ba72d{constructor(_0x2abfe8){super(_0x2abfe8);const _0x14b1d8=this['bindTemplate'],_0x56fcb8=new _0x55ae9c(_0x2abfe8),_0x2a1925=new _0x55ae9c(_0x2abfe8);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',(_0x324042,_0x668ae4)=>_0x324042&&_0x668ae4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xabe33d,_0x12419c,_0x31a9d2,_0x3abebf)=>{if(!_0xabe33d)return R(_0x2abfe8,'Loading...');if(!_0x31a9d2)return R(_0x2abfe8,'No\x20changes');const _0x2980ac=R(_0x2abfe8,'NUMBER_OF_CHANGES',_0x31a9d2);return _0x3abebf?R(_0x2abfe8,'X_OF_Y_CHANGES',[_0x12419c+0x1,_0x31a9d2]):_0x2980ac;}),_0x56fcb8['set']({'label':R(_0x2abfe8,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x33db78}),_0x2a1925['set']({'label':R(_0x2abfe8,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x330731}),_0x56fcb8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2a1925['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x56fcb8['on']('execute',()=>this['fire']('execute','backward')),_0x2a1925['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',_0x14b1d8['if']('_isStatusLabelVisible','ck-hidden',_0x5d14aa=>!_0x5d14aa)]},'children':[{'text':_0x14b1d8['to']('isNavigationMode',_0x1b6c4e=>_0x1b6c4e?R(_0x2abfe8,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2abfe8,'Total')+':\x20')}]},{'text':_0x14b1d8['to']('_statusText')}]},new _0x53e02c(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x56fcb8,_0x2a1925]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x13ea32{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5c3554=this['editor']['editing']['view'];_0x5c3554['change'](_0x322cfb=>{for(const _0x5c0664 of _0x5c3554['document']['roots'])_0x322cfb['addClass'](ge,_0x5c0664);});}['hide'](){const _0x107ab=this['editor']['editing']['view'];_0x107ab['change'](_0x59e22a=>{for(const _0x3386ea of _0x107ab['document']['roots'])_0x59e22a['removeClass'](ge,_0x3386ea);});}}class u extends _0x13ea32{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x1a9e0c=this['editor'],_0x20b1cf=_0x1a9e0c['plugins']['get'](l),_0x58215e=_0x1a9e0c['plugins']['get'](ji);_0x1a9e0c['ui']['componentFactory']['add']('exitToEditing',_0x458156=>{const _0x59b060=new _0x55ae9c(_0x458156);return _0x59b060['set']({'label':R(_0x458156,'Back\x20to\x20editing'),'icon':_0x2d5fa2,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x59b060,'execute',()=>{_0x1a9e0c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x59b060;}),_0x1a9e0c['ui']['componentFactory']['add']('restoreRevision',_0x3a34a1=>{const _0xd3e001=new _0x55ae9c(_0x3a34a1);return _0xd3e001['set']({'label':R(_0x3a34a1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xd3e001['bind']('isEnabled')['to'](_0x1a9e0c['commands']['get']('restoreRevision')),this['listenTo'](_0xd3e001,'execute',()=>_0x1a9e0c['execute']('restoreRevision')),_0xd3e001;}),_0x1a9e0c['ui']['componentFactory']['add']('changesNavigation',_0x129d86=>{const _0x1b0d10=new Ri(_0x129d86),_0xd58b5a=_0x1a9e0c['commands']['get']('showPreviousChange'),_0xca863b=_0x1a9e0c['commands']['get']('showNextChange');return _0x1b0d10['bind']('isBackwardNavigationEnabled')['to'](_0xd58b5a,'isEnabled'),_0x1b0d10['bind']('isForwardNavigationEnabled')['to'](_0xca863b,'isEnabled'),_0x1b0d10['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x20b1cf),this['listenTo'](_0x1b0d10,'execute',(_0x55996f,_0x283788)=>{_0x1a9e0c['execute']('forward'===_0x283788?'showNextChange':'showPreviousChange');}),_0x1b0d10;}),_0x58215e['show'](),_0x20b1cf['on']('change:isReady',(_0xa803e5,_0x1b2507,_0x59a699)=>{_0x59a699?_0x58215e['hide']():_0x58215e['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x4fd126,_0x3c0a98){super(_0x4fd126,_0x3c0a98);const _0x542d3a=this['bindTemplate'];this['set']({'label':R(_0x4fd126,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x4fd126,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x542d3a['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x493b88=this['fieldView']['element'];this['_tooltipString']=_0x493b88['scrollWidth']>_0x493b88['clientWidth']&&_0x493b88['value']||'';}}class vi extends _0x8ba72d{constructor(_0x3b44ff,_0x39f2cc,_0x3f14e7){super(_0x3b44ff);const _0x34a9e1=new _0x255420();_0x34a9e1['set']({'content':_0x1c83d9,'viewBox':'0\x200\x2011\x2010'});const _0x3e2b20=['ck','ck-revision-history-sidebar__revision-author'];_0x3f14e7&&_0x3e2b20['push']('ck-revision-history-sidebar__revision-author_creator');const _0x261bd2=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3b44ff,_0x3f14e7?'Revision\x20creator':'Revision\x20author')},'children':[_0x34a9e1,_0x39f2cc['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3e2b20},'children':_0x261bd2});}}function mi(_0x3adad6,_0x111858){const _0x480bed=_0x3adad6['bindTemplate'],_0x54389d=_0x3adad6['locale'],_0x329a1a=_0x42539b(_0x54389d);_0x329a1a['panelPosition']='sw';const _0x1311ec=function(_0x25a632,_0x56b1a6){const _0x16fafe=function(_0x42fff4,_0x23a0c4){const _0x5d7c53=_0x42fff4['locale'],_0x2d3323={'Compare\x20against\x20selected':R(_0x5d7c53,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x5d7c53,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x5d7c53,'Restore\x20this\x20revision')};return _0x23a0c4['map'](_0x3099cb=>{const _0x204741=_0x2d3323[_0x3099cb['name']];return _0x204741&&_0x204741!==_0x3099cb['name']&&(_0x3099cb['name']=_0x204741),_0x3099cb;});}(_0x25a632,_0x56b1a6),_0x2cfb6e=new _0x1b11cb();for(const _0x2b862f of _0x16fafe){const _0x4d0936={'type':'button','model':new to({'label':_0x2b862f['name'],'class':_0x2b862f['class'],'withText':!0x0,'role':'menuitem','_action':_0x2b862f['action']})};_0x4d0936['model']['bind']('isEnabled')['to'](_0x25a632,'isActionsDropdownOpen',_0x7a033c=>'function'!=typeof _0x2b862f['isEnabled']||(!_0x7a033c||_0x2b862f['isEnabled'](_0x25a632))),_0x2cfb6e['add'](_0x4d0936);}return _0x2cfb6e;}(_0x3adad6,_0x111858);return _0x3adad6['bind']('isActionsDropdownOpen')['to'](_0x329a1a,'isOpen'),_0x329a1a['buttonView']['set']({'label':R(_0x54389d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x564602}),_0x329a1a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x480bed['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x480bed['to'](_0x1d89ed=>_0x1d89ed['stopPropagation']())}}),_0x329a1a['on']('execute',_0x32308c=>{_0x3adad6['isReady']&&'function'==typeof _0x32308c['source']['_action']&&_0x32308c['source']['_action'](_0x3adad6);}),_0x2a3dc0(_0x329a1a,_0x1311ec,{'role':'menu'}),_0x329a1a['listenTo'](_0x3adad6,'change:isActionsDropdownOpen',(_0xcaa469,_0x545a47,_0x32b5c3)=>{if(_0x32b5c3)for(const _0xca8d61 of _0x329a1a['listView']['items']){const _0xcbac27=_0xca8d61['children']['first'],_0x1d9557=_0x111858['find'](_0x4ccd50=>_0x4ccd50['action']===_0xcbac27['_action'])['isVisible'];_0xca8d61['isVisible']=void 0x0===_0x1d9557||_0x1d9557(_0x3adad6);}}),_0x329a1a;}class pi extends/* #__PURE__ -- @preserve */
27
+ _0x22b161(_0x8ba72d){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xc9358e,_0x21c0da,_0x46aef5,_0x5604a8){super(_0xc9358e);const _0xaa1c16=this['bindTemplate'],_0x379b90=function(_0x4d7bf6,_0x573558){const _0x154d91=Array['from'](_0x573558['authors'])['filter'](_0x1e7d87=>_0x1e7d87!=_0x573558['creator']);return _0x573558['creator']&&_0x154d91['unshift'](_0x573558['creator']),_0x154d91['map'](_0x19acc8=>new vi(_0x4d7bf6,_0x19acc8,_0x19acc8==_0x573558['creator']));}(_0xc9358e,_0x21c0da);this['id']=_0x21c0da['id'],this['_revision']=_0x21c0da,this['_requireRevisionName']=_0x5604a8,this['bind']('name','createdAt')['to'](_0x21c0da),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1564e7=>{return _0x5be0c7=_0xc9358e['uiLanguage'],(_0xad724=_0x1564e7)['toLocaleDateString'](_0x5be0c7,{'month':'long','day':'numeric'})+',\x20'+_0xad724['toLocaleTimeString'](_0x5be0c7,{'hour':'numeric','minute':'numeric'});var _0x5be0c7,_0xad724;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0xc9358e,_0x4df153),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1ee46c=>_0x1ee46c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x393c0d,_0x3ca71f)=>_0x393c0d&&_0x3ca71f),this['revisionActionsView']=_0x46aef5&&_0x46aef5['length']?mi(this,_0x46aef5):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xaa1c16['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xaa1c16['if']('isEnabled','ck-disabled',_0x1e28f4=>!_0x1e28f4),_0xaa1c16['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xaa1c16['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xaa1c16['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':_0xaa1c16['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':_0x379b90}]},this['revisionActionsView']],'on':{'click':_0xaa1c16['to'](_0x478d0a=>{_0x478d0a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3e0718=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3e0718,'change',()=>{this['_requireRevisionName']&&!_0x3e0718['value']||this['fire']('setName',{'id':this['id'],'name':_0x3e0718['value']}),_0x3e0718['value']||(_0x3e0718['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x1afc75,_0x5442ba){const _0x39d61f=_0x5998d8['fromJSDate'](_0x1afc75)['setLocale'](_0x5442ba),_0xd2246=_0x5998d8['local'](),_0x4b0641=_0xd2246['minus']({'days':0x1})['startOf']('day');let _0x4630f5,_0x4ce788;return _0x39d61f['hasSame'](_0xd2246,'day')?(_0x4630f5=_0x39d61f['startOf']('day')['toJSDate'](),_0x4ce788=_0x39d61f['toRelativeCalendar']()):_0x39d61f['hasSame'](_0x4b0641,'day')?(_0x4630f5=_0x4b0641['toJSDate'](),_0x4ce788=_0x39d61f['toRelativeCalendar']()):_0x39d61f['hasSame'](_0xd2246,'week')?(_0x4630f5=_0x39d61f['startOf']('week')['toJSDate'](),_0x4ce788=_0x39d61f['weekdayLong']||''):_0x39d61f['hasSame'](_0xd2246,'year')?(_0x4630f5=_0x39d61f['startOf']('month')['toJSDate'](),_0x4ce788=_0x39d61f['monthLong']||''):(_0x4630f5=_0x39d61f['startOf']('year')['toJSDate'](),_0x4ce788=String(_0x39d61f['year'])),{'startDate':_0x4630f5,'localizedPeriodName':_0x4ce788};}class fi extends _0x8ba72d{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4f829b,_0x104c62,_0x3413a0,_0x26e8fa){super(_0x4f829b);const _0x5b7ea8=bi(_0x104c62,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x104c62,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x3413a0,this['_requireRevisionName']=_0x26e8fa,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':_0x5b7ea8}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1662ec){const _0x474d5f=new pi(this['locale'],_0x1662ec,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x474d5f);}['removeRevision'](_0x695e3){const _0x2c70b6=this['revisionViews']['find'](_0x5f2f7f=>_0x5f2f7f['id']===_0x695e3['id']);this['revisionViews']['remove'](_0x2c70b6);}}class ki extends _0x8ba72d{constructor(_0x371b73){super(_0x371b73);const _0x3f9d13=new _0x255420();_0x3f9d13['content']=_0x4a22ad,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3f9d13,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x371b73,'Revision\x20history')]}]});}}class ui extends _0x8ba72d{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x25cb31,_0x43edf9,_0x7aaeb2,_0x37568d){super(_0x25cb31);const _0x587b9a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x43edf9,this['_revisionActions']=_0x7aaeb2,this['_requireRevisionName']=_0x37568d,this['on']('select',(_0x488006,_0x2465b2)=>{this['fire']('revisionSelected',_0x2465b2);}),this['on']('setName',(_0x42f7ac,_0x351b55)=>{this['fire']('revisionSetName',_0x351b55);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x25cb31),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x587b9a['if']('isEnabled','ck-disabled',_0x1b038f=>!_0x1b038f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x317b3e of this['_revisions'])this['_addRevision'](_0x317b3e);this['_revisions']['on']('add',(_0x1c8b7b,_0x1b60c5)=>{this['_addRevision'](_0x1b60c5);}),this['_revisions']['on']('remove',(_0x4f8442,_0x19fa21)=>{this['_removeRevision'](_0x19fa21);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4a1d7f=>_0x4a1d7f['revisionViews']['map'](_0x383f63=>_0x383f63))['flat']();}['selectRevision'](_0x4df3d1){for(const _0x3536b2 of this['revisionViews'])_0x4df3d1&&_0x4df3d1['id']===_0x3536b2['id']?_0x3536b2['select']():_0x3536b2['deselect']();}['highlightRevisions'](_0x3cc87a){for(const _0x563a5a of this['revisionViews'])_0x3cc87a['some'](({id:_0x24b676})=>_0x24b676===_0x563a5a['id'])?_0x563a5a['highlight']():_0x563a5a['unhighlight']();}['_addRevision'](_0x5d635b){const _0x56c541=bi(_0x5d635b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4ae50b=this['timePeriodViews']['get'](0x0);_0x4ae50b&&_0x4ae50b['startDate']['getTime']()===_0x56c541['getTime']()||(_0x4ae50b=new fi(this['locale'],_0x56c541,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4ae50b)),_0x4ae50b['addRevision'](_0x5d635b);}['_removeRevision'](_0x137038){const _0x1da43c=bi(_0x137038['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1da43c)['removeRevision'](_0x137038);}['_getTimePeriodViewByStartDate'](_0x1139ab){return this['timePeriodViews']['find'](_0x594d31=>_0x594d31['startDate']['getTime']()===_0x1139ab['getTime']());}}class f extends _0x13ea32{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
28
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x37704){super(_0x37704),this['_revisionViewer']=_0x37704['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1d9726=this['_revisionsRepository']['_revisions'],_0x332b6e=this['_createRevisionActions'](),_0x1c1ef7=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x1d9726,_0x332b6e,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',(_0x31c251,_0x477b24)=>{_0x477b24['revisionViews']['on']('add',(_0x4830c8,_0x3ff4e4)=>{_0x3ff4e4['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)),_0x1c1ef7['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x30617a=this['_revisionsRepository']['getRevision'](0x0);if(_0x30617a){const _0x19a2fb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x30617a['id']);this['_revisionViewer']['compare'](_0x30617a,_0x19a2fb);}}['_handleRevisionSelected'](_0x5af5d9,_0x230d78){const _0x256ed4=this['_revisionsRepository']['getRevision'](_0x230d78['id']),_0x1361d8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x256ed4['id']);this['_revisionViewer']['compare'](_0x256ed4,_0x1361d8);}['_handleRevisionSetName'](_0x13a3a9,_0x331265){this['_revisionsRepository']['getRevision'](_0x331265['id'])['setName'](_0x331265['name']);}['_handleDiffChange'](_0x3bebe8,_0x2970e9,_0x38b1ed){const _0x564dd0=this['_revisionsRepository']['getRevisionsInDiff'](_0x38b1ed);_0x564dd0['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x564dd0),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x564dd0[0x0]));}['_createRevisionActions'](){const _0x41e07c=this['editor'],_0x5063e2=d['availableRevisionActions'],_0x124f3c=_0x41e07c['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x124f3c['length'])return _0x124f3c['map'](_0x9a13d7=>{const _0x38c8c1='string'==typeof _0x9a13d7?Object['assign']({},_0x5063e2[_0x9a13d7]):_0x9a13d7;return _0x38c8c1['action']=_0x38c8c1['action']['bind'](this,_0x41e07c),_0x38c8c1['isVisible']&&(_0x38c8c1['isVisible']=_0x38c8c1['isVisible']['bind'](this,_0x41e07c)),_0x38c8c1;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x45a0db},_0x58b781)=>{const _0x2ebb54=_0x45a0db['get'](m),_0x2c8659=_0x2ebb54['repository'];let _0x3b3af3=_0x2ebb54['diff']['newRevisionId'],_0x3058ca=_0x58b781['id'];_0x2c8659['getIndex'](_0x3b3af3)>_0x2c8659['getIndex'](_0x3058ca)&&([_0x3b3af3,_0x3058ca]=[_0x3058ca,_0x3b3af3]),_0x2ebb54['compare'](_0x3b3af3,_0x3058ca);},'isVisible':({plugins:_0x1bce7f},_0x482897)=>{const _0x200b43=_0x1bce7f['get'](m);return!(_0x200b43['repository']['getRevisionsInDiff'](_0x200b43['diff'])['length']>0x2)&&!_0x482897['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3b1b2e,{id:_0x3cb070})=>{_0x3b1b2e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3cb070);},'isVisible':({plugins:_0x257098},_0x11157e)=>!!_0x257098['get'](m)['repository']['getLaterVisibleRevision'](_0x11157e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x771685},{id:_0x54bc2e,revisionNameView:_0x2057c2})=>{const _0x33d7eb=_0x771685['get'](m),_0x121031=_0x33d7eb['repository']['getEarlierVisibleRevision'](_0x54bc2e);_0x33d7eb['compare'](_0x54bc2e,_0x121031),_0x2057c2['focus'](),_0x2057c2['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1cfadd,_0x157f4d){super(_0x1cfadd),this['_view']=_0x157f4d,this['_toolbarConfig']=et(_0x1cfadd['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x11a444){const _0x3657da=this['editor'],_0x34dc31=this['view'],_0x2efad7=_0x3657da['editing']['view'],_0x1c932f=_0x34dc31['editable'],_0x40e146=_0x2efad7['document']['getRoot']();_0x1c932f['name']=_0x40e146['rootName'],_0x34dc31['render']();const _0x223b33=_0x1c932f['element'];this['setEditableElement'](_0x1c932f['name'],_0x223b33),_0x34dc31['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2efad7['attachDomRoot'](_0x223b33),this['_elementReplacer']['replace'](_0x11a444,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1f5902=this['view'],_0x291033=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x291033['detachDomRoot'](_0x1f5902['editable']['name']),_0x1f5902['destroy']();}['_initToolbar'](){const _0x113fe5=this['view'];_0x113fe5['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x113fe5['stickyPanel']['limiterElement']=_0x113fe5['element'],_0x113fe5['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x34880e})=>_0x34880e),_0x113fe5['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x113fe5['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2aba33,_0x3ecfaa,_0x308924={}){super(_0x2aba33),this['stickyPanel']=new ht(_0x2aba33),this['toolbar']=new dt(_0x2aba33,{'shouldGroupWhenFull':_0x308924['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x2aba33,_0x3ecfaa);}['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
- _0x5380ba(_0x17449b){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x17cdb8,_0x5113cb){super(_0x5113cb),this['sourceElement']=_0x17cdb8,this['model']['document']['createRoot']();const _0x2ca1a3=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2ca1a3);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x373ab7,_0x1f02c0){const _0x34807c=new this(_0x373ab7,_0x1f02c0);return await _0x34807c['initPlugins'](),await _0x34807c['ui']['init'](_0x373ab7),await _0x34807c['data']['init'](_0x34807c['config']['get']('initialData')||''),_0x34807c['fire']('ready'),_0x34807c;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x443a46{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4e9263){function _0xd7e19b(_0x22d004){return _0x22d004['map'](_0x472d9b=>String['fromCharCode'](_0x472d9b))['join']('');}super(_0x4e9263),this['result']='end',_0x4e9263[_0xd7e19b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd7e19b([0x76,0x69,0x65,0x77])][_0xd7e19b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd7e19b([0x61,0x75,0x74,0x6f]),_0x4e9263[_0xd7e19b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xd7e19b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd7e19b([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xd7e19b([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xd7e19b([0x6f,0x6b])});}}class k extends _0x443a46{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x2b8718){if(super(_0x2b8718),!this['editor']['config']['get']('revisionHistory'))throw new _0x5b4da3('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x40b1f5=>this['_showRevisionViewer']({..._0x40b1f5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x464b2d=>this['_closeRevisionViewer'](_0x464b2d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x40f411=>this['_restoreRevision'](_0x40f411)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1855f0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1855f0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x20bbdb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x20bbdb);}['getRevision'](_0x32376c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x32376c);}['getRevisions'](_0x33e259){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x33e259||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x7ae693=this['editor'],_0x8ad4b9=_0x2915b1(_0x7ae693,p),_0x14cf6f=_0x7ae693['plugins']['get']('RevisionTracker'),_0x34d79a=_0x7ae693['plugins']['get']('Users')['users'];return _0x8ad4b9['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x8ad4b9['lazyRoots'],(_0x8ad4b9['plugins']['push'](_t,m,R,class extends _0x443a46{static get['requires'](){return[m,'Users'];}['init'](){const _0x586db3=this['editor']['plugins']['get']('Users');for(const _0x59a6ef of _0x34d79a)_0x59a6ef['isAnonymous']||_0x586db3['getUser'](_0x59a6ef['id'])||_0x586db3['addUser'](_0x59a6ef);const _0x13bbef=_0x14cf6f['repository']['getRevisions']();let _0x126b79=null;const _0x5db64f=this['editor']['plugins']['get']('RevisionViewer');_0x5db64f['adapter']=_0x14cf6f['adapter'],_0x5db64f['bind']('isEnabled')['to'](_0x14cf6f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x7ae693,'isReadOnly',_0x6122c4=>!_0x6122c4);for(const _0x2df271 of _0x13bbef){const _0x2cdbdc=null===_0x2df271['creator'];if(_0x2cdbdc&&_0x2df271['toVersion']===_0x2df271['fromVersion'])continue;const _0x11af0c=_0x2df271['toJSON']();_0x5db64f['addRevisionData'](_0x11af0c,(_0x5f1ad1,_0xe798a8,_0x6f50d7)=>{if(_0x2cdbdc){if(_0x126b79)_0x126b79['_update'](_0x5f1ad1,_0xe798a8);else{if(!_0xe798a8){const _0x323224=_0x6f50d7['toJSON']();_0x323224['id']=_0x2a1139(),_0x14cf6f['saveRevision'](_0x323224,_0x6f50d7['toVersion'])['then'](_0x138c11=>{_0x126b79=_0x138c11;});}}}else _0x2df271['_update'](_0x5f1ad1,_0xe798a8);});}}},d),_0x8ad4b9);}['_enhanceShowRevisionViewerCallback'](){const _0xfe8aaa=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5db07c=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xc638bc=this['editor']['plugins']['get']('Autosave');await _0xc638bc['save']();}else await _0x5db07c['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4b4d2b=this['editor']['plugins']['get']('Dialog');_0x4b4d2b['isOpen']&&_0x4b4d2b['hide']();}const _0xc6df4=this['_getRevisionViewerEditorConfig']();return _0xfe8aaa(_0xc6df4)['then'](_0xddb2a0=>{return(this['_viewerEditor']=_0xddb2a0,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0xddb2a0);})['catch'](_0x3c9636=>(console['error'](_0x3c9636),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x3e542d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x3e542d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xce5b6e=this['editor']['plugins']['get']('Annotations');_0xce5b6e['refreshVisibility'](),_0xce5b6e['refreshPositioning']();}})));}['_showRevisionViewer'](_0xaece20){const _0x31b6d7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x217f7e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x25ea5d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x25ea5d,_0xaece20)['then'](_0x7ed5f7=>(_0x217f7e['style']['display']='block',_0x31b6d7['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x7ed5f7));}['_closeRevisionViewer'](_0x268a9e){const _0xb0c2d9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xb0c2d9['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x268a9e['destroy']();}async['_restoreRevision'](_0x2f7aa9){const _0x1651aa=this['editor'],_0x146e8c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x40cccc=_0x1651aa['plugins']['get']('RevisionTracker'),_0x4b5b87=_0x1651aa['plugins']['get']('RevisionHistoryUtils'),_0x193b27=_0x146e8c['repository']['getRevision'](_0x2f7aa9);let _0x5f2d9e,_0x3d4d90,_0x439948;try{await _0x4b5b87['loadRevisionData'](_0x193b27,this['adapter']),_0x5f2d9e=_0x4b5b87['getRevisionDocumentData'](_0x193b27),_0x3d4d90=_0x4b5b87['getRevisionRootsAttributes'](_0x193b27);}catch(_0xfd989a){return void console['error'](_0xfd989a);}_0x1651aa['model']['change'](_0x3a6b65=>{for(const _0x22e7b7 of Array['from'](_0x1651aa['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3a6b65['removeMarker'](_0x22e7b7);}),_0x146e8c['isReady']=!0x1,_0x1651aa['model']['enqueueChange'](_0xd14424=>{_0xd14424['setSelection'](null),_0xd14424['removeSelectionAttribute'](_0x1651aa['model']['document']['selection']['getAttributeKeys']());const _0x395e93=Object['keys'](_0x5f2d9e);for(const _0x32bb00 of _0x1651aa['model']['document']['roots'])'$graveyard'!=_0x32bb00['rootName']&&_0x32bb00['isAttached']()&&!_0x395e93['includes'](_0x32bb00['rootName'])&&_0xd14424['detachRoot'](_0x32bb00);for(const _0x18160d of _0x395e93){let _0xeae490=_0x1651aa['model']['document']['getRoot'](_0x18160d);_0xeae490&&_0xeae490['isAttached']()||(_0xeae490=_0xd14424['addRoot'](_0x18160d));const _0x316d2b=_0x3d4d90[_0x18160d],_0x3a22d0=Object['keys'](_0x316d2b),_0x57b1b6=_0x5f2d9e[_0x18160d];for(const _0x821a1f of _0xeae490['getAttributeKeys']())_0x3a22d0['includes'](_0x821a1f)||_0xd14424['removeAttribute'](_0x821a1f,_0xeae490);for(const _0x22dc25 of _0x3a22d0)_0xd14424['setAttribute'](_0x22dc25,_0x3d4d90[_0x18160d][_0x22dc25],_0xeae490);_0xd14424['remove'](_0xd14424['createRangeIn'](_0xeae490)),_0xd14424['insert'](_0x1651aa['data']['parse'](_0x57b1b6,_0xeae490),_0xeae490,0x0);}});const _0x1db1ac=g(_0x1651aa['locale'],'Restored');if(_0x193b27['name'])_0x439948=-0x1==_0x193b27['name']['indexOf'](_0x1db1ac)?_0x1db1ac+':\x20'+_0x193b27['name']:_0x193b27['name'];else _0x439948=_0x1db1ac+':\x20'+(_0x193b27['createdAt']['toLocaleDateString'](_0x1651aa['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x193b27['createdAt']['toLocaleTimeString'](_0x1651aa['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x40cccc['saveRevision']({'name':_0x439948}),_0x146e8c['isReady']=!0x0,_0x1651aa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
29
+ rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x3c66e2){super(_0x3c66e2),this['_revisionViewer']=_0x3c66e2['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2b99bf=this['_revisionsRepository']['_revisions'],_0x2490d8=this['_createRevisionActions'](),_0x5518fd=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x2b99bf,_0x2490d8,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',(_0x1c7ee1,_0x562714)=>{_0x562714['revisionViews']['on']('add',(_0x353fc4,_0x29bce6)=>{_0x29bce6['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)),_0x5518fd['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1ea09d=this['_revisionsRepository']['getRevision'](0x0);if(_0x1ea09d){const _0x56b82d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1ea09d['id']);this['_revisionViewer']['compare'](_0x1ea09d,_0x56b82d);}}['_handleRevisionSelected'](_0x103b58,_0x370fd7){const _0x18c70a=this['_revisionsRepository']['getRevision'](_0x370fd7['id']),_0x2541ab=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x18c70a['id']);this['_revisionViewer']['compare'](_0x18c70a,_0x2541ab);}['_handleRevisionSetName'](_0x1ccbbf,_0x424491){this['_revisionsRepository']['getRevision'](_0x424491['id'])['setName'](_0x424491['name']);}['_handleDiffChange'](_0x32bfc6,_0x5d69e9,_0x1e74a7){const _0x512448=this['_revisionsRepository']['getRevisionsInDiff'](_0x1e74a7);_0x512448['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x512448),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x512448[0x0]));}['_createRevisionActions'](){const _0x52bccb=this['editor'],_0x3fd9ea=f['availableRevisionActions'],_0x4ce044=_0x52bccb['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x4ce044['length'])return _0x4ce044['map'](_0x1c94b1=>{const _0x3b3dd4='string'==typeof _0x1c94b1?Object['assign']({},_0x3fd9ea[_0x1c94b1]):_0x1c94b1;return _0x3b3dd4['action']=_0x3b3dd4['action']['bind'](this,_0x52bccb),_0x3b3dd4['isVisible']&&(_0x3b3dd4['isVisible']=_0x3b3dd4['isVisible']['bind'](this,_0x52bccb)),_0x3b3dd4;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x467774},_0xe59bc6)=>{const _0xdb2e82=_0x467774['get'](l),_0x3a977d=_0xdb2e82['repository'];let _0x2e441e=_0xdb2e82['diff']['newRevisionId'],_0x5bc2c2=_0xe59bc6['id'];_0x3a977d['getIndex'](_0x2e441e)>_0x3a977d['getIndex'](_0x5bc2c2)&&([_0x2e441e,_0x5bc2c2]=[_0x5bc2c2,_0x2e441e]),_0xdb2e82['compare'](_0x2e441e,_0x5bc2c2);},'isVisible':({plugins:_0x20e228},_0x3e60bb)=>{const _0x3b94b6=_0x20e228['get'](l);return!(_0x3b94b6['repository']['getRevisionsInDiff'](_0x3b94b6['diff'])['length']>0x2)&&!_0x3e60bb['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1ccf89,{id:_0x57a62c})=>{_0x1ccf89['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x57a62c);},'isVisible':({plugins:_0x50a23d},_0x2f8fa0)=>!!_0x50a23d['get'](l)['repository']['getLaterVisibleRevision'](_0x2f8fa0['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4f0b4e},{id:_0x1104b3,revisionNameView:_0x1a255d})=>{const _0x5a3a13=_0x4f0b4e['get'](l),_0x3515c6=_0x5a3a13['repository']['getEarlierVisibleRevision'](_0x1104b3);_0x5a3a13['compare'](_0x1104b3,_0x3515c6),_0x1a255d['focus'](),_0x1a255d['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x38f64d,_0x3f1803){super(_0x38f64d),this['_view']=_0x3f1803,this['_toolbarConfig']=st(_0x38f64d['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x1f9471){const _0x20289e=this['editor'],_0x45106f=this['view'],_0x24f3bf=_0x20289e['editing']['view'],_0x2dc53b=_0x45106f['editable'],_0x3f44d4=_0x24f3bf['document']['getRoot']();_0x2dc53b['name']=_0x3f44d4['rootName'],_0x45106f['render']();const _0x4d7bce=_0x2dc53b['element'];this['setEditableElement'](_0x2dc53b['name'],_0x4d7bce),_0x45106f['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x24f3bf['attachDomRoot'](_0x4d7bce),this['_elementReplacer']['replace'](_0x1f9471,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x200f13=this['view'],_0x39c9e6=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x39c9e6['detachDomRoot'](_0x200f13['editable']['name']),_0x200f13['destroy']();}['_initToolbar'](){const _0x119442=this['view'];_0x119442['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x119442['stickyPanel']['limiterElement']=_0x119442['element'],_0x119442['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x3ecb54})=>_0x3ecb54),_0x119442['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x119442['toolbar']);}}class ii extends _0x45f00a{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xe42189,_0x49fd5c,_0x11b4bb={}){super(_0xe42189),this['stickyPanel']=new _0x479ed7(_0xe42189),this['toolbar']=new _0x557c7e(_0xe42189,{'shouldGroupWhenFull':_0x11b4bb['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0xe42189,_0x49fd5c);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
30
+ _0x35f24f(_0x467653){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x555fff,_0x3f376d){super(_0x3f376d),this['sourceElement']=_0x555fff,this['model']['document']['createRoot']();const _0x1f14e9=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x1f14e9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x36adbc,_0x436a3c){const _0xf22002=new this(_0x36adbc,_0x436a3c);return await _0xf22002['initPlugins'](),await _0xf22002['ui']['init'](_0x36adbc),await _0xf22002['data']['init'](_0xf22002['config']['get']('initialData')||''),_0xf22002['fire']('ready'),_0xf22002;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x13ea32{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55b1f8){function _0x32ce29(_0x5a5ccd){return _0x5a5ccd['map'](_0x557983=>String['fromCharCode'](_0x557983))['join']('');}super(_0x55b1f8),this['result']='end',_0x55b1f8[_0x32ce29([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32ce29([0x76,0x69,0x65,0x77])][_0x32ce29([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32ce29([0x61,0x75,0x74,0x6f]),_0x55b1f8[_0x32ce29([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x32ce29([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32ce29([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x32ce29([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x32ce29([0x6f,0x6b])});}}class ht extends _0x13ea32{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x11f974){if(super(_0x11f974),!this['editor']['config']['get']('revisionHistory'))throw new _0x1fe60f('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4c4e55=>this['_showRevisionViewer']({..._0x4c4e55,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4dbbd9=>this['_closeRevisionViewer'](_0x4dbbd9)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x11aaf3=>this['_restoreRevision'](_0x11aaf3)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xdb411b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xdb411b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5a6d7f){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5a6d7f);}['getRevision'](_0x4169a6){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4169a6);}['getRevisions'](_0x2bfa71){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2bfa71||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4c2cdc=this['editor'],_0x628e86=_0x34e8a5(_0x4c2cdc,d),_0x1cf9a4=_0x4c2cdc['plugins']['get']('RevisionTracker'),_0x16e0df=_0x4c2cdc['plugins']['get']('Users')['users'];return _0x628e86['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x628e86['lazyRoots'],(_0x628e86['plugins']['push'](at,l,u,class extends _0x13ea32{static get['requires'](){return[l,'Users'];}['init'](){const _0x4744dc=this['editor']['plugins']['get']('Users');for(const _0x28a440 of _0x16e0df)_0x28a440['isAnonymous']||_0x4744dc['getUser'](_0x28a440['id'])||_0x4744dc['addUser'](_0x28a440);const _0x14b21a=_0x1cf9a4['repository']['getRevisions']();let _0x111886=null;const _0xa6ccd9=this['editor']['plugins']['get']('RevisionViewer');_0xa6ccd9['adapter']=_0x1cf9a4['adapter'],_0xa6ccd9['bind']('isEnabled')['to'](_0x1cf9a4),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4c2cdc,'isReadOnly',_0x584359=>!_0x584359);for(const _0x176e33 of _0x14b21a){const _0xa42d2b=null===_0x176e33['creator'];if(_0xa42d2b&&_0x176e33['toVersion']===_0x176e33['fromVersion'])continue;const _0x1de3c9=_0x176e33['toJSON']();_0xa6ccd9['addRevisionData'](_0x1de3c9,(_0x585548,_0x4d2681,_0xa8b665)=>{if(_0xa42d2b){if(_0x111886)_0x111886['_update'](_0x585548,_0x4d2681);else{if(!_0x4d2681){const _0x33cb3c=_0xa8b665['toJSON']();_0x33cb3c['id']=_0x2973f6(),_0x1cf9a4['saveRevision'](_0x33cb3c,_0xa8b665['toVersion'])['then'](_0x428274=>{_0x111886=_0x428274;});}}}else _0x176e33['_update'](_0x585548,_0x4d2681);});}}},f),_0x628e86);}['_enhanceShowRevisionViewerCallback'](){const _0x15d534=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1a743a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x425193=this['editor']['plugins']['get']('Autosave');await _0x425193['save']();}else await _0x1a743a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x55cda4=this['editor']['plugins']['get']('Dialog');_0x55cda4['isOpen']&&_0x55cda4['hide']();}const _0x5d8072=this['_getRevisionViewerEditorConfig']();return _0x15d534(_0x5d8072)['then'](_0x10b75e=>{return(this['_viewerEditor']=_0x10b75e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x10b75e);})['catch'](_0xc70000=>(console['error'](_0xc70000),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x363f2f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x363f2f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x225275=this['editor']['plugins']['get']('Annotations');_0x225275['refreshVisibility'](),_0x225275['refreshPositioning']();}})));}['_showRevisionViewer'](_0xe6ea0b){const _0xe8cd20=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x207b20=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4faeab=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4faeab,_0xe6ea0b)['then'](_0x7001be=>(_0x207b20['style']['display']='block',_0xe8cd20['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x7001be));}['_closeRevisionViewer'](_0x1a4355){const _0x19ac03=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x19ac03['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x1a4355['destroy']();}async['_restoreRevision'](_0x4d2a0e){const _0x268098=this['editor'],_0x12180a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x577f09=_0x268098['plugins']['get']('RevisionTracker'),_0x9df145=_0x268098['plugins']['get']('RevisionHistoryUtils'),_0xd9c345=_0x12180a['repository']['getRevision'](_0x4d2a0e);let _0x282c38,_0x2d3374,_0x8e49db;try{await _0x9df145['loadRevisionData'](_0xd9c345,this['adapter']),_0x282c38=_0x9df145['getRevisionDocumentData'](_0xd9c345),_0x2d3374=_0x9df145['getRevisionRootsAttributes'](_0xd9c345);}catch(_0x2e08ad){return void console['error'](_0x2e08ad);}_0x268098['model']['change'](_0xa85533=>{for(const _0xdaa5a9 of Array['from'](_0x268098['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xa85533['removeMarker'](_0xdaa5a9);}),_0x12180a['isReady']=!0x1,_0x268098['model']['enqueueChange'](_0x6dcef3=>{_0x6dcef3['setSelection'](null),_0x6dcef3['removeSelectionAttribute'](_0x268098['model']['document']['selection']['getAttributeKeys']());const _0x4fa3f7=Object['keys'](_0x282c38);for(const _0x410834 of _0x268098['model']['document']['roots'])'$graveyard'!=_0x410834['rootName']&&_0x410834['isAttached']()&&!_0x4fa3f7['includes'](_0x410834['rootName'])&&_0x6dcef3['detachRoot'](_0x410834);for(const _0x4e9955 of _0x4fa3f7){let _0x49994e=_0x268098['model']['document']['getRoot'](_0x4e9955);_0x49994e&&_0x49994e['isAttached']()||(_0x49994e=_0x6dcef3['addRoot'](_0x4e9955));const _0x560285=_0x2d3374[_0x4e9955],_0x414db4=Object['keys'](_0x560285),_0x2ed3f9=_0x282c38[_0x4e9955];for(const _0x1ba98d of _0x49994e['getAttributeKeys']())_0x414db4['includes'](_0x1ba98d)||_0x6dcef3['removeAttribute'](_0x1ba98d,_0x49994e);for(const _0x4f6bf7 of _0x414db4)_0x6dcef3['setAttribute'](_0x4f6bf7,_0x2d3374[_0x4e9955][_0x4f6bf7],_0x49994e);_0x6dcef3['remove'](_0x6dcef3['createRangeIn'](_0x49994e)),_0x6dcef3['insert'](_0x268098['data']['parse'](_0x2ed3f9,_0x49994e),_0x49994e,0x0);}});const _0x382913=R(_0x268098['locale'],'Restored');if(_0xd9c345['name'])_0x8e49db=-0x1==_0xd9c345['name']['indexOf'](_0x382913)?_0x382913+':\x20'+_0xd9c345['name']:_0xd9c345['name'];else _0x8e49db=_0x382913+':\x20'+(_0xd9c345['createdAt']['toLocaleDateString'](_0x268098['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xd9c345['createdAt']['toLocaleTimeString'](_0x268098['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x577f09['saveRevision']({'name':_0x8e49db}),_0x12180a['isReady']=!0x0,_0x268098['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};