@ckeditor/ckeditor5-revision-history 45.0.0-alpha.0 → 45.0.0-alpha.10

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 (180) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +11 -11
  150. package/src/changeitem.js +2 -2
  151. package/src/editor/revisionviewereditor.js +2 -2
  152. package/src/editor/revisionviewereditorui.js +1 -1
  153. package/src/editor/revisionviewereditoruiview.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/revision.js +2 -2
  156. package/src/revisiondiff.js +1 -1
  157. package/src/revisionhistory.js +1 -1
  158. package/src/revisionhistoryutils.js +1 -1
  159. package/src/revisionsrepository.js +1 -1
  160. package/src/revisiontracker.js +1 -1
  161. package/src/revisionviewer.js +1 -1
  162. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  163. package/src/ui/revision/revisionauthorview.js +1 -1
  164. package/src/ui/revision/revisionnameview.js +1 -1
  165. package/src/ui/revision/revisionview.js +2 -2
  166. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  167. package/src/ui/revision/subrevisionview.js +1 -1
  168. package/src/ui/revision/utils.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  170. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  174. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  175. package/src/ui/revisionssidebar/utils.js +1 -1
  176. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  177. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  178. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  179. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  180. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x1c6a45,uid as _0x263f51,Collection as _0x13794f,logWarning as _0x5624da,FocusTracker as _0x2b54a0,KeystrokeHandler as _0x34108f,scrollViewportToShowTarget as _0x14b531,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x2daee1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4c01ac,set as _0x30da5a,unset as _0x2dc32c,isEqual as _0x134b18}from'es-toolkit/compat';import{Plugin as _0xb5e69f,PendingActions as _0x3bec5c,Command as _0xfa7dcf,ElementApiMixin as _0x4b078c,Editor as _0x1f9594}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4037f9,getMarkerDomElement as _0x27fec6,ConfirmMixin as ti,sanitizeEditorConfig as _0x4d9ba4}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x32f366,ViewAttributeElement as _0x564efc,ViewEmptyElement as _0x141770,ViewRawElement as _0x2308e6,ViewUIElement as _0x49aaf2,ViewDocumentFragment as _0x1b0fd4,ViewText as _0xe14431,ViewElement as _0x454733,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 _0x435c8c,IconChevronUp as _0x538c66,IconChevronDown as _0x46ca14,IconUndo as _0x5de1e4,IconUser as _0x250da2,IconThreeVerticalDots as _0x550115}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x222059,submitHandler as _0x47ad21,LabeledFieldView as _0x2c2338,createLabeledInputText as _0x4aee85,createDropdown as _0x975c3f,ListView as _0x4b64b9,ListItemView as _0x582351,ButtonView as te,MenuBarMenuView as _0x5229ba,MenuBarMenuListView as _0x2559f5,MenuBarMenuListItemView as _0x20efee,MenuBarMenuListItemButtonView as _0x1ab573,ContextualBalloon as _0x43c666,ToolbarSeparatorView as _0x59318d,IconView as _0x24e7a1,addListToDropdown as _0x21692c,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 _0x2a0d24}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x1c6a45(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3dd793){super(),this['id']=_0x3dd793['id']||_0x263f51(),this['creator']=_0x3dd793['creator']||null,this['authors']=_0x3dd793['authors']||[],this['diffData']=_0x3dd793['diffData']||null,this['toVersion']=_0x3dd793['toVersion']||0x0,this['fromVersion']=_0x3dd793['fromVersion']||0x0,this['set']('name',_0x3dd793['name']||''),this['set']('createdAt',_0x3dd793['createdAt']||new Date()),this['set']('attributes',_0x3dd793['attributes']||{});}['setName'](_0x4097e3){this['_update']({'name':_0x4097e3});}['setAttribute'](_0x51f93a,_0x4eb155){const _0x2486dc=_0x4c01ac(this['attributes']);_0x30da5a(_0x2486dc,_0x51f93a,_0x4eb155),this['_update']({'attributes':_0x2486dc});}['removeAttribute'](_0x42cba9){const _0x507ced=_0x4c01ac(this['attributes']);_0x2dc32c(_0x507ced,_0x42cba9),this['_update']({'attributes':_0x507ced});}['_update'](_0x425f99,_0x198824=!0x1){let _0x113645=!0x1;const _0x29a9eb={'id':this['id']},_0x4454c5=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x56d2e5 of _0x4454c5){const _0x2ef463=_0x425f99[_0x56d2e5];void 0x0!==_0x2ef463&&_0x2ef463!==this[_0x56d2e5]&&(this[_0x56d2e5]=_0x2ef463,_0x29a9eb[_0x56d2e5]=_0x2ef463,_0x113645=!0x0);}_0x113645&&(_0x29a9eb['authors']&&(_0x29a9eb['authorsIds']=_0x29a9eb['authors']['map'](_0x8e794c=>_0x8e794c['id']),delete _0x29a9eb['authors']),this['fire']('_update',_0x29a9eb,_0x198824));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2f5c5e=>_0x2f5c5e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0xb5e69f{['_revisions'];static get['requires'](){return[_0x4037f9];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4d411c){super(_0x4d411c),this['_revisions']=new _0x13794f();}['afterInit'](){!async function(_0x287a6f){const _0x4f8a84=_0x443598([0x41,0x38,0x78,0x46,0x30,0x70,0x73,0x4f,0x56,0x31,0x79,0x65,0x58,0x39,0x6f,0x63,0x51,0x54,0x50,0x6c,0x71,0x57,0x34,0x52,0x49,0x4a,0x66,0x44,0x6b,0x4c,0x53,0x67,0x69,0x74,0x48,0x61,0x6d,0x55,0x72,0x4d,0x47,0x6e,0x37,0x36,0x5a,0x75,0x45,0x35,0x33,0x32,0x4b,0x62,0x6a,0x64,0x42,0x59,0x4e,0x7a,0x76,0x68,0x43,0x77]),_0x4e7814=0xeb829,_0x5d72b7=0x73845382,_0x11907c=0x738330ba^_0x5d72b7,_0xc9b7d5=window[_0x443598([0x44,0x61,0x74,0x65])][_0x443598([0x6e,0x6f,0x77])](),_0x2d2e24=_0x287a6f[_0x443598([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1ae4f4=new window[(_0x443598([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f79ed=>{_0x2d2e24[_0x443598([0x6f,0x6e,0x63,0x65])](_0x443598([0x72,0x65,0x61,0x64,0x79]),_0x2f79ed);}),_0x1f3a92={[_0x443598([0x6b,0x74,0x79])]:_0x443598([0x45,0x43]),[_0x443598([0x75,0x73,0x65])]:_0x443598([0x73,0x69,0x67]),[_0x443598([0x63,0x72,0x76])]:_0x443598([0x50,0x2d,0x32,0x35,0x36]),[_0x443598([0x78])]:_0x443598([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]),[_0x443598([0x79])]:_0x443598([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]),[_0x443598([0x61,0x6c,0x67])]:_0x443598([0x45,0x53,0x32,0x35,0x36])},_0x165e37=_0x2d2e24[_0x443598([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x443598([0x67,0x65,0x74])](_0x443598([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2fa778(){let _0x16e9dd,_0x129ffa=null,_0x15ebf9=null;try{if(_0x165e37==_0x443598([0x47,0x50,0x4c]))return _0x443598([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16e9dd=_0x5c8da2(),!_0x16e9dd)return _0x443598([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16e9dd[_0x443598([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x15ebf9=_0x472c42(_0x16e9dd[_0x443598([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16e9dd[_0x443598([0x6a,0x74,0x69])])),await _0x1f5a46()?_0x550718()?_0x361e2c()?_0x443598([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x54ef5e()?(_0x16e9dd[_0x443598([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x443598([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x129ffa=_0x1f1bb0(_0x443598([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16e9dd[_0x443598([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x443598([0x74,0x72,0x69,0x61,0x6c])&&(_0x129ffa=_0x1f1bb0(_0x443598([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56bf8f()):_0x443598([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x443598([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x443598([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x49804f){return _0x443598([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x361e2c(){const _0x11b21a=[_0x443598([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x443598([0x74,0x72,0x69,0x61,0x6c])][_0x443598([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16e9dd[_0x443598([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc9b7d5/0x3e8:0xe10*_0x11907c;return _0x16e9dd[_0x443598([0x65,0x78,0x70])]<_0x11b21a;}function _0x550718(){const _0x3c184a=_0x16e9dd[_0x443598([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c184a)return!0x1;if(_0x3c184a[_0x443598([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443598([0x2a])))return!0x0;if(_0x3c184a[_0x443598([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443598([0x52,0x48])))return!0x0;if(_0x3c184a[_0x443598([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443598([0x52,0x52,0x48]))){if(_0x5f3238())return!0x0;if(_0x1ca85c()||_0x5ebe4e())return!0x0;}return!0x1;}function _0x54ef5e(){const _0x4ef39a=_0x16e9dd[_0x443598([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ef39a||0x0==_0x4ef39a[_0x443598([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58a834}=new URL(window[_0x443598([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ef39a[_0x443598([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58a834))return!0x0;const _0x1c889d=_0x58a834[_0x443598([0x73,0x70,0x6c,0x69,0x74])](_0x443598([0x2e]));return _0x4ef39a[_0x443598([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53de22=>_0x53de22[_0x443598([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x443598([0x2a])))[_0x443598([0x6d,0x61,0x70])](_0x6a8605=>_0x6a8605[_0x443598([0x73,0x70,0x6c,0x69,0x74])](_0x443598([0x2e])))[_0x443598([0x73,0x6f,0x6d,0x65])](_0x32e67d=>_0x1c889d[_0x443598([0x65,0x76,0x65,0x72,0x79])]((_0x3f04ee,_0x47f9d2)=>_0x32e67d[_0x47f9d2]===_0x3f04ee||_0x32e67d[_0x47f9d2]===_0x443598([0x2a])));}function _0x56bf8f(){return _0x129ffa&&_0x15ebf9?new window[(_0x443598([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x95752f,_0x4cc742)=>{_0x129ffa[_0x443598([0x74,0x68,0x65,0x6e])](_0x95752f,_0x4cc742),_0x15ebf9[_0x443598([0x74,0x68,0x65,0x6e])](_0x1a5767=>{_0x1a5767!=_0x443598([0x56,0x61,0x6c,0x69,0x64])&&_0x95752f(_0x1a5767);},_0x4cc742);}):_0x129ffa||_0x15ebf9||_0x443598([0x56,0x61,0x6c,0x69,0x64]);}}function _0x472c42(_0x5c655f,_0x3d7e6f){return new window[(_0x443598([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1348c8=>{if(_0x445c1d())return _0x1348c8(_0x443598([0x56,0x61,0x6c,0x69,0x64]));_0xd51fdb(),_0x2d2e24[_0x443598([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x443598([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16daf2=!0x1;const _0x20871c=_0x263f51();function _0x389d48(_0x4a3b59){return!!_0x4a3b59&&(typeof _0x4a3b59===_0x443598([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4a3b59===_0x443598([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4a3b59[_0x443598([0x74,0x68,0x65,0x6e])]===_0x443598([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4a3b59[_0x443598([0x63,0x61,0x74,0x63,0x68])]===_0x443598([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x223c3c(_0x2eab6b){_0x67224a(_0x2eab6b)[_0x443598([0x74,0x68,0x65,0x6e])](_0x2cfeb7=>{if(!_0x2cfeb7||_0x2cfeb7[_0x443598([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x443598([0x6f,0x6b]))return _0x443598([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f27fa(_0x179e12(_0x20871c+_0x3d7e6f))!=_0x2cfeb7[_0x443598([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x443598([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x443598([0x56,0x61,0x6c,0x69,0x64]);})[_0x443598([0x74,0x68,0x65,0x6e])](_0xd6abba=>(_0x3bf128(),_0xd6abba),()=>{const _0x16c250=_0x22a363();return null==_0x16c250?(_0x3bf128(),_0x443598([0x56,0x61,0x6c,0x69,0x64])):_0x443598(_0xc9b7d5-_0x16c250>(0x5788d782^_0x5d72b7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x443598([0x74,0x68,0x65,0x6e])](_0x1348c8)[_0x443598([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1348c8(_0x443598([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1527a7=0x73b2bd02^_0x5d72b7;function _0x3bf128(){const _0xe614d1=_0x443598([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f27fa(_0x179e12(_0x5c655f)),_0x4d17fb=_0x258d94(_0x1f27fa(window[_0x443598([0x4d,0x61,0x74,0x68])][_0x443598([0x63,0x65,0x69,0x6c])](_0xc9b7d5/_0x1527a7)));window[_0x443598([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x443598([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xe614d1,_0x4d17fb);}function _0x22a363(){const _0x346cb4=_0x443598([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f27fa(_0x179e12(_0x5c655f)),_0x523f83=window[_0x443598([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x443598([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x346cb4);return _0x523f83?window[_0x443598([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x258d94(_0x523f83),0x10)*_0x1527a7:null;}function _0x67224a(_0x425f52){return new window[(_0x443598([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1464a4,_0x2f385a)=>{_0x425f52[_0x443598([0x74,0x68,0x65,0x6e])](_0x1464a4,_0x2f385a),window[_0x443598([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2f385a,0x73858742^_0x5d72b7);});}}_0x2d2e24[_0x443598([0x6f,0x6e])](_0x443598([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x226a6b,_0x7e06d1)=>{if(_0x7e06d1[0x0]!=_0x5c655f)return _0x1348c8(_0x443598([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x7e06d1[0x1]={..._0x7e06d1[0x1],[_0x443598([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x20871c};},{[_0x443598([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x443598([0x68,0x69,0x67,0x68])}),_0x2d2e24[_0x443598([0x6f,0x6e])](_0x443598([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ca311=>{_0x389d48(_0x4ca311[_0x443598([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16daf2=!0x0,_0x223c3c(_0x4ca311[_0x443598([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x443598([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x443598([0x6c,0x6f,0x77])}),_0x1ae4f4[_0x443598([0x74,0x68,0x65,0x6e])](()=>{_0x16daf2||_0x1348c8(_0x443598([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x445c1d(){return _0x2d2e24[_0x443598([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x443598([0x76,0x69,0x65,0x77])][_0x443598([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x443598([0x61,0x75,0x74,0x6f]);}function _0xd51fdb(){_0x2d2e24[_0x443598([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x443598([0x76,0x69,0x65,0x77])][_0x443598([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x443598([0x61,0x75,0x74,0x6f]);}}function _0x1f1bb0(_0x1c5e34){const _0x261717=[new window[(_0x443598([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ca188=>setTimeout(_0x3ca188,0x738d6d4e^_0x5d72b7)),_0x1ae4f4[_0x443598([0x74,0x68,0x65,0x6e])](()=>new window[(_0x443598([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x300e62=>{const _0x4e138c=0x73845385^_0x5d72b7,_0xc1f26a=_0x287a6f[_0x443598([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x5c41fd(){_0xc1f26a[_0x443598([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4e138c&&_0x300e62();}_0x5c41fd(),_0xc1f26a[_0x443598([0x6f,0x6e])](_0x443598([0x61,0x64,0x64]),_0x5c41fd);})),new window[(_0x443598([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa3919f=>{function _0x1191a3(){for(const _0x333478 in window)if(window[_0x443598([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x443598([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x333478))&&window[_0x333478]==_0x4e7814)return _0xa3919f();_0x2d2e24[_0x443598([0x73,0x74,0x61,0x74,0x65])]!=_0x443598([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x443598([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1191a3,0x7384400a^_0x5d72b7);}_0x356343(_0x443598([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1191a3();})];return window[_0x443598([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x443598([0x72,0x61,0x63,0x65])](_0x261717)[_0x443598([0x74,0x68,0x65,0x6e])](()=>_0x1c5e34);}async function _0x387537(){if(await _0x1ae4f4,_0x356343(_0x443598([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xd6772c=_0x287a6f[_0x443598([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xd713e2=_0x287a6f[_0x443598([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])](_0xd6772c[_0x443598([0x69,0x64])]),_0x109444=_0xb89d84(_0x443598([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x109444[_0x443598([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xd6772c['id'],_0xd713e2?_0xd713e2['id']:null,!0x0),_0x109444[_0x443598([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x443598([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x109444[_0x443598([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x109444[_0x443598([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1c8048,void(_0x109444[_0x443598([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1c8048);}if(_0x356343(_0x443598([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x59af93=_0xb89d84(_0x443598([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x59af93[_0x443598([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x443598([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x59af93[_0x443598([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x59af93[_0x443598([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1c8048,_0x59af93[_0x443598([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1c8048;}_0x2d2e24[_0x443598([0x6d,0x6f,0x64,0x65,0x6c])][_0x443598([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c8048,_0x2d2e24[_0x443598([0x6d,0x6f,0x64,0x65,0x6c])][_0x443598([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c8048,_0x2d2e24[_0x443598([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x443598([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5f3238(){return _0x356343(_0x443598([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xb89d84(_0x443598([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x443598([0x73,0x74,0x61,0x74,0x65])]==_0x443598([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ca85c(){return _0x356343(_0x443598([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 _0x5ebe4e(){return _0x356343(_0x443598([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1f1093(_0x20737f){const _0x430cfe=_0x2b538d();_0x2d2e24[_0x430cfe]=_0x443598([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])+_0x20737f,_0x20737f[_0x443598([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x443598([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2b538d()]=_0x4e7814),_0x20737f!=_0x443598([0x56,0x61,0x6c,0x69,0x64])&&_0x387537();}function _0x2b538d(){const _0x269b31=window[_0x443598([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x443598([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x443598([0x6e,0x6f,0x77])]())[_0x443598([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x443598([0x2e]),'');let _0x148777=_0x443598([0x41]);for(let _0x1bdd2a=0x0;_0x1bdd2a<_0x269b31[_0x443598([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bdd2a+=0x2){let _0x3aece1=window[_0x443598([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x269b31[_0x443598([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bdd2a,_0x1bdd2a+0x2));_0x3aece1>=_0x4f8a84[_0x443598([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aece1-=_0x4f8a84[_0x443598([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x148777+=_0x4f8a84[_0x3aece1];}return _0x148777;}function _0x5c8da2(){const _0x333956=_0x165e37[_0x443598([0x73,0x70,0x6c,0x69,0x74])](_0x443598([0x2e]));if(0x3!=_0x333956[_0x443598([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x15995c(_0x333956[0x1]);function _0x15995c(_0x3bd22b){const _0x7c9159=_0x53747d(_0x3bd22b);return _0x7c9159&&_0x33b534()?_0x7c9159:null;function _0x33b534(){const _0xa2ec55=_0x7c9159[_0x443598([0x6a,0x74,0x69])],_0x442b0a=window[_0x443598([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa2ec55[_0x443598([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xa2ec55[_0x443598([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x529c40={..._0x7c9159,[_0x443598([0x6a,0x74,0x69])]:_0xa2ec55[_0x443598([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xa2ec55[_0x443598([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x529c40[_0x443598([0x76,0x63])],_0x179e12(_0x529c40)==_0x442b0a;}}}async function _0x1f5a46(){let _0x1d4025=!0x0;try{const _0x472efb=_0x165e37[_0x443598([0x73,0x70,0x6c,0x69,0x74])](_0x443598([0x2e])),[_0x31e655,_0xa2039d,_0x4c5538]=_0x472efb;return _0x28c3a3(_0x31e655),await _0x1fe981(_0x31e655,_0xa2039d,_0x4c5538),_0x1d4025;}catch(_0x3246aa){return!0x1;}function _0x28c3a3(_0x527ea5){const _0x27c98e=_0x53747d(_0x527ea5);_0x27c98e&&_0x27c98e[_0x443598([0x61,0x6c,0x67])]==_0x443598([0x45,0x53,0x32,0x35,0x36])||(_0x1d4025=!0x1);}async function _0x1fe981(_0x50b29b,_0x1ee2be,_0xc823d1){const _0x1de37b=window[_0x443598([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x443598([0x66,0x72,0x6f,0x6d])](_0x41bb78(_0xc823d1),_0x1c0b80=>_0x1c0b80[_0x443598([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1be3cd=new window[(_0x443598([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x443598([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x50b29b+_0x443598([0x2e])+_0x1ee2be),_0xdd3e5=window[_0x443598([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x443598([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xdd3e5)return;const _0x560c5c=await _0xdd3e5[_0x443598([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x443598([0x6a,0x77,0x6b]),_0x1f3a92,{[_0x443598([0x6e,0x61,0x6d,0x65])]:_0x443598([0x45,0x43,0x44,0x53,0x41]),[_0x443598([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x443598([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x443598([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xdd3e5[_0x443598([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x443598([0x6e,0x61,0x6d,0x65])]:_0x443598([0x45,0x43,0x44,0x53,0x41]),[_0x443598([0x68,0x61,0x73,0x68])]:{[_0x443598([0x6e,0x61,0x6d,0x65])]:_0x443598([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x560c5c,_0x1de37b,_0x1be3cd)||(_0x1d4025=!0x1);}}function _0x53747d(_0x352371){return _0x352371[_0x443598([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x443598([0x65,0x79]))?JSON[_0x443598([0x70,0x61,0x72,0x73,0x65])](_0x41bb78(_0x352371)):null;}function _0x41bb78(_0x1451b4){return window[_0x443598([0x61,0x74,0x6f,0x62])](_0x1451b4[_0x443598([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x443598([0x2b]))[_0x443598([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x443598([0x2f])));}function _0x179e12(_0x5195ef){let _0x155ad2=0x1505;function _0x3f3a29(_0x5265f0){for(let _0x468a1c=0x0;_0x468a1c<_0x5265f0[_0x443598([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x468a1c++){const _0x45464d=_0x5265f0[_0x443598([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x468a1c);_0x155ad2=(_0x155ad2<<0x5)+_0x155ad2+_0x45464d,_0x155ad2&=_0x155ad2;}}function _0xd635b7(_0x168951){Array[_0x443598([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x168951)?_0x168951[_0x443598([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd635b7):_0x168951&&typeof _0x168951==_0x443598([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x443598([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x168951)[_0x443598([0x73,0x6f,0x72,0x74])]()[_0x443598([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x18a599,_0x32a60a])=>{_0x3f3a29(_0x18a599),_0xd635b7(_0x32a60a);}):_0x3f3a29(window[_0x443598([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x168951));}return _0xd635b7(_0x5195ef),_0x155ad2>>>0x0;}function _0x1f27fa(_0x4a211f){return _0x4a211f[_0x443598([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x443598([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x443598([0x30]));}function _0x258d94(_0x8ef645){return _0x8ef645[_0x443598([0x73,0x70,0x6c,0x69,0x74])]('')[_0x443598([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x443598([0x6a,0x6f,0x69,0x6e])]('');}function _0x356343(_0x1e1422){return _0x2d2e24[_0x443598([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x443598([0x68,0x61,0x73])](_0x1e1422);}function _0xb89d84(_0x5bcbf3){return _0x2d2e24[_0x443598([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x443598([0x67,0x65,0x74])](_0x5bcbf3);}function _0x1c8048(){}function _0x443598(_0x47c480){return _0x47c480['map'](_0x3b300f=>String['fromCharCode'](_0x3b300f))['join']('');}_0x1f1093(await _0x2fa778());}(this);}['createRevision'](_0x267fdb){const _0x57f988=this['editor']['plugins']['get']('Users');return new h({'id':_0x267fdb['id'],'name':_0x267fdb['name'],'creator':_0x267fdb['creatorId']?_0x57f988['getUser'](_0x267fdb['creatorId']):null,'diffData':_0x267fdb['diffData']||_0x267fdb['data'],'authors':_0x267fdb['authorsIds']['map'](_0x578144=>_0x57f988['getUser'](_0x578144)),'createdAt':new Date(_0x267fdb['createdAt']),'attributes':_0x267fdb['attributes'],'fromVersion':_0x267fdb['fromVersion'],'toVersion':_0x267fdb['toVersion']});}['addRevision'](_0x2766f0,_0x4e76b7=0x0){this['_revisions']['add'](_0x2766f0,_0x4e76b7);}['getRevision'](_0x2f19f5){return this['_revisions']['get'](_0x2f19f5);}['getRevisions'](_0x1199fd={'toJSON':!0x1}){const _0x30c1f2=Array['from'](this['_revisions']);return _0x30c1f2['reverse'](),_0x1199fd['toJSON']?_0x30c1f2['map'](_0x578a0d=>_0x578a0d['toJSON']()):_0x30c1f2;}['getIndex'](_0x11de46){return this['_revisions']['getIndex'](_0x11de46);}['getEarlierVisibleRevision'](_0xf36370){const [,_0x303772]=this['getRevisionsIterator'](_0xf36370,{'direction':'earlier'});return _0x303772;}['getLaterVisibleRevision'](_0x2c7243){const [,_0x377030]=this['getRevisionsIterator'](_0x2c7243,{'direction':'later'});return _0x377030;}['getRevisionsInDiff'](_0x862395){const _0x5b1d26=[];for(const _0x2a0df1 of this['getRevisionsIterator'](_0x862395['newRevisionId']))if(_0x5b1d26['push'](_0x2a0df1),_0x2a0df1['id']===_0x862395['oldRevisionId'])break;return _0x5b1d26;}*['getRevisionsIterator'](_0x1f8b42,{direction:_0x1ccedb='earlier',filter:_0xdd5562=()=>!0x0}={}){const _0x5997e7='earlier'===_0x1ccedb?0x1:-0x1;let _0x1fd313=this['_revisions']['get'](_0x1f8b42),_0x9b248f=this['getIndex'](_0x1fd313);for(yield _0x1fd313;_0x1fd313;){if(_0x9b248f+=_0x5997e7,_0x1fd313=this['getRevision'](_0x9b248f),!_0x1fd313)return;_0xdd5562(_0x1fd313)&&(yield _0x1fd313);}}}class V extends _0xb5e69f{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x32f366,'c'],[_0x564efc,'a'],[_0x141770,'e'],[_0x2308e6,'r'],[_0x49aaf2,'u']]);['_typeCharToViewClass']=new Map([['c',_0x32f366],['a',_0x564efc],['e',_0x141770],['r',_0x2308e6],['u',_0x49aaf2]]);async['loadRevisionData'](_0x3782cf,_0x2c3b26){if(_0x3782cf['diffData']||!_0x2c3b26)return;const _0x4a6930=this['editor']['config']['get']('collaboration.channelId'),_0x4e192a=await _0x2c3b26['getRevision']({'channelId':_0x4a6930,'revisionId':_0x3782cf['id']});_0x3782cf['diffData']=_0x4e192a['diffData'];}['getRevisionDocumentData'](_0x3467be){const _0x18aa0c={};for(const _0x1c1a52 in _0x3467be['diffData']){if(_0x3467be['diffData'][_0x1c1a52]['attachChange']&&!_0x3467be['diffData'][_0x1c1a52]['attachChange']['isAttached'])continue;const _0x456174=this['_removeRevisionMarkers'](JSON['parse'](_0x3467be['diffData'][_0x1c1a52]['insertions'])),_0x2bb4c7=this['editor']['editing']['view']['document'],_0x15ddc3=new _0x1b0fd4(_0x2bb4c7,_0x456174['map'](_0x5c8254=>this['_getViewFromDiffObj'](_0x5c8254,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x18aa0c[_0x1c1a52]=this['editor']['data']['processor']['toData'](_0x15ddc3),this['editor']['data']['processor']['useFillerType']('default');}return _0x18aa0c;}['getRevisionRootsAttributes'](_0x28be09){const _0x271104={};for(const _0x3b3fba in _0x28be09['diffData'])_0x28be09['diffData'][_0x3b3fba]['attachChange']&&!_0x28be09['diffData'][_0x3b3fba]['attachChange']['isAttached']||(_0x271104[_0x3b3fba]=_0x28be09['diffData'][_0x3b3fba]['attributesAfter']||{});return _0x271104;}['_getTypeCharForViewElement'](_0x4916be){return this['_viewClassToTypeChar']['get'](_0x4916be['constructor']);}['_getViewFromDiffObj'](_0x309838,_0x412b32){const _0x2e8296=this['editor']['editing']['view']['document'];if('string'==typeof _0x309838)return new _0xe14431(_0x2e8296,_0x309838);{let _0x148304,_0x5ca164;_0x5ca164='u'==_0x309838['type']||'r'==_0x309838['type']?[]:_0x309838['children']['map'](_0x52610b=>this['_getViewFromDiffObj'](_0x52610b,_0x412b32));const _0xa3c173=this['_typeCharToViewClass']['get'](_0x309838['type'])||_0x454733,_0x1bb84d=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x148304=new _0xa3c173(_0x2e8296,_0x309838['name'],_0x309838['attributes'],_0x5ca164),'u'==_0x309838['type']){const _0x36ed29=_0x309838['children'][0x0];if(_0x148304['render']=function(_0x54abde){const _0x512342=_0x54abde['createElement']('div');return _0x512342['innerHTML']=_0x36ed29,_0x512342['childNodes'][0x0];},_0x412b32){const _0x548685=new _0x1b0fd4(_0x2e8296);_0x548685['_appendChild'](_0x148304);const _0x4fcd1e=Array['from'](_0x1bb84d['viewChildrenToDom'](_0x548685,{'bind':!0x1})),_0x587c7e=_0x1bb84d['domDocument']['createElement']('div');_0x587c7e['append'](..._0x4fcd1e),_0x148304=Array['from'](_0x1bb84d['domChildrenToView'](_0x587c7e))[0x0];}}else{if('r'==_0x309838['type']){const _0x191986=_0x309838['children'][0x0];if(_0x148304['render']=function(_0x542d32){_0x542d32['innerHTML']=_0x191986;},_0x412b32){const _0x156165=new _0x1b0fd4(_0x2e8296);_0x156165['_appendChild'](_0x148304);const _0x5f97f8=Array['from'](_0x1bb84d['viewChildrenToDom'](_0x156165,{'bind':!0x1})),_0x5b33c8=_0x1bb84d['domDocument']['createElement']('div');_0x5b33c8['append'](..._0x5f97f8);const _0x4ba605=Array['from'](_0x1bb84d['domChildrenToView'](_0x5b33c8));_0x4ba605['length']>0x1?_0x148304['_appendChild'](_0x4ba605):_0x148304=_0x4ba605[0x0];}}}if(_0x309838['customProperties']){for(const [_0x5d7765,_0x1fb79e]of _0x309838['customProperties'])_0x148304['_setCustomProperty'](_0x5d7765,_0x1fb79e);}const _0x4c71a4=_0x309838['fillerOffset']||null;return _0x148304['getFillerOffset']=()=>_0x4c71a4,_0x148304;}}['_makeModelFromViewString'](_0x4c6511){const _0x103fe6=JSON['parse'](_0x4c6511),_0x381be9=this['editor']['editing']['view']['document'],_0x222ea3=new _0x1b0fd4(_0x381be9,_0x103fe6['map'](_0x3ec96f=>this['_getViewFromDiffObj'](_0x3ec96f,!0x0)));return this['editor']['data']['toModel'](_0x222ea3);}['_removeRevisionMarkers'](_0x26b394){return(_0x26b394=_0x26b394['filter'](_0x37509e=>!_0x37509e['name']||'revision-start'!==_0x37509e['name']&&'revision-end'!==_0x37509e['name']))['forEach'](_0x4b92b0=>{'string'!=typeof _0x4b92b0&&(_0x4b92b0['children']=this['_removeRevisionMarkers'](_0x4b92b0['children']),_0x4b92b0['attributes']=_0x4b92b0['attributes']['filter'](_0x531433=>!_0x531433[0x0]['startsWith']('data-revision-')));}),_0x26b394;}}function g(_0x147cf8,_0x4c0a5b,_0x3ce094){const t=_0x147cf8['t'];switch(_0x4c0a5b){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'},_0x3ce094);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3ce094);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 _0xb5e69f{['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[_0x4037f9,I,V,_0x3bec5c];}constructor(_0x381f44){super(_0x381f44),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 _0x2919cb=_0x263f51();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2919cb},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 _0x45db4e=this['repository']['getRevision'](0x0),_0x222def=_0x45db4e&&null===_0x45db4e['creator']?_0x45db4e:null;if(this['_continueCurrentRevision']=!!_0x222def&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1b0faa=this['_source']['getCurrentRevisionId'](),_0x2a53ac=this['repository']['getRevision'](_0x1b0faa);if(_0x2a53ac)this['_startingVersion']=_0x2a53ac['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x52005d=this['_source']['history']['_operations']['find'](_0x56532e=>!_0x56532e['_isInit']),_0x32f1ce=_0x52005d?_0x52005d['baseVersion']:this['_source']['history']['version'];_0x45db4e?(_0x45db4e['toVersion']<_0x32f1ce&&_0x45db4e['_update']({'toVersion':_0x32f1ce}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x222def['id'],this['_startingVersion']=_0x222def['fromVersion']):(this['_startingVersion']=_0x45db4e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x32f1ce,this['_continueCurrentRevision']=!0x1);}}else _0x222def&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x222def['toVersion'],this['editor']['model']['document']['history']['version']),_0x222def['fromVersion']===_0x222def['toVersion']?(0x0!==_0x222def['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x222def['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x222def['id'],this['_startingVersion']=_0x222def['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',_0x34b272=>!_0x34b272),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2395f8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5b5cc0;for(const _0x11bd9e in _0x2395f8){const _0x5a175d=_0x11bd9e,_0xacfd2c=_0x2395f8[_0x5a175d];if('revisionHistoryLicenseKeyValid'==_0xacfd2c||'revisionHistoryLicenseKeyInvalid'==_0xacfd2c||'revisionHistoryLicenseKeyExpired'==_0xacfd2c||'revisionHistoryLicenseKeyDomainLimit'==_0xacfd2c||'revisionHistoryLicenseKeyNotAllowed'==_0xacfd2c||'revisionHistoryLicenseKeyEvaluationLimit'==_0xacfd2c||'revisionHistoryLicenseKeyTrialLimit'==_0xacfd2c||'revisionHistoryLicenseKeyUsageLimit'==_0xacfd2c){delete _0x2395f8[_0x5a175d],_0x5b5cc0=_0xacfd2c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5b5cc0&&_0x2395f8['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5b5cc0&&_0x2395f8['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5b5cc0&&_0x2395f8['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5b5cc0&&_0x2395f8['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5b5cc0&&_0x2395f8['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5b5cc0&&_0x2395f8['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5b5cc0&&_0x2395f8['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x519dd3=this['repository']['getRevision'](0x0),_0x3945f7=await this['getRevisionDocumentData'](_0x519dd3),_0x5b4182=await this['getRevisionRootsAttributes'](_0x519dd3);this['_replaceEditorDataWithRevisionData'](_0x3945f7,_0x5b4182);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x682e87){this['_source']=_0x682e87;}async['update'](){const _0x27a786=await this['_source']['getLatestVersion']();if(_0x27a786>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2cb91e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x27a786});_0x2cb91e['authors']=_0x2cb91e['authorsIds']['map'](_0x17aec5=>this['editor']['plugins']['get']('Users')['getUser'](_0x17aec5)),this['currentRevision']['_update'](_0x2cb91e);}}async['saveRevision'](_0x9ad5d7={},_0x275005=null){const _0x1cc624=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x275005>this['currentRevision']['toVersion']&&(_0x275005=null),null===_0x275005&&(_0x275005=await this['_source']['getLatestVersion']());const _0x1f374d=this['_getFromVersion'](_0x275005),_0x364603=this['buildRevisionData']({'from':_0x1f374d,'to':_0x275005});if(this['currentRevision']['toVersion']<_0x275005){const _0x116e19=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x275005,'to':_0x275005});_0x116e19['authors']=[],_0x116e19['authorsIds']=[],_0x116e19['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x116e19,!0x0),delete _0x116e19['authors'],_0x1cc624['push'](_0x116e19);}_0x9ad5d7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x9ad5d7['name']=_0x9ad5d7['name']||null,_0x9ad5d7['id']=_0x9ad5d7['id']||_0x263f51(),_0x9ad5d7={..._0x9ad5d7,..._0x364603};const _0x20e5c4=this['addRevisionData'](_0x9ad5d7);_0x1cc624['push'](_0x9ad5d7);const _0x46b29b=this['repository']['getIndex'](_0x20e5c4);if(0x0!==_0x46b29b){const _0x1b1991=this['repository']['getRevision'](_0x46b29b-0x1);if(_0x1b1991['fromVersion']!==_0x275005){const _0x218f0f=this['_revisionDataBuilder']['getData'](_0x275005,_0x1b1991['toVersion']),_0x39c628={'id':_0x1b1991['id'],'diffData':_0x218f0f['diffData'],'authorsIds':_0x218f0f['authorsIds'],'authors':_0x218f0f['authorsIds']['map'](_0xd672c5=>this['editor']['plugins']['get']('Users')['getUser'](_0xd672c5)),'fromVersion':_0x275005};_0x1b1991===this['currentRevision']&&(_0x39c628['createdAt']=new Date(_0x9ad5d7['createdAt']['getTime']()+0xa)),_0x1b1991['_update'](_0x39c628,!0x0),delete _0x39c628['authors'],_0x1cc624['push'](_0x39c628);}}if(this['adapter']){for(const _0x146ec2 of _0x1cc624)this['_bufferUpdate'](_0x146ec2['id'],_0x146ec2,!0x0);this['sendBufferedUpdates']();}return _0x20e5c4;}['addRevisionData'](_0x57a5ac){const _0x3f18e6=this['repository']['createRevision'](_0x57a5ac);return this['adapter']&&_0x3f18e6['on']('_update',(_0x50a8fd,_0xa23789,_0x2a657a)=>{_0x2a657a||(this['_bufferUpdate'](_0xa23789['id'],_0xa23789,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3f18e6,this['_findInsertionIndex'](_0x3f18e6)),_0x3f18e6;}async['getRevisionDocumentData'](_0x1a468c){return await this['_utils']['loadRevisionData'](_0x1a468c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1a468c);}async['getRevisionRootsAttributes'](_0x38edb9){return await this['_utils']['loadRevisionData'](_0x38edb9,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x38edb9);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3bcc4d=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2d338b=0x0;_0x2d338b<_0x3bcc4d['length'];_0x2d338b++){const _0x5b1b42=_0x3bcc4d[_0x2d338b];let _0x1af72a=!0x1;for(const _0x4c3c44 of Object['keys'](_0x5b1b42))void 0x0===_0x5b1b42[_0x4c3c44]?delete _0x5b1b42[_0x4c3c44]:'id'!==_0x4c3c44&&(_0x1af72a=!0x0);_0x1af72a||(_0x3bcc4d[_0x2d338b]=null);}if(_0x3bcc4d=_0x3bcc4d['filter'](_0x2aa9be=>null!==_0x2aa9be),!_0x3bcc4d['length'])return;for(let _0x3e8d73=0x0;_0x3e8d73<_0x3bcc4d['length'];_0x3e8d73++){const _0x2dd883=_0x3bcc4d[_0x3e8d73];void 0x0!==_0x2dd883['fromVersion']&&void 0x0===_0x2dd883['toVersion']&&(_0x2dd883['toVersion']=this['repository']['getRevision'](_0x2dd883['id'])['toVersion']),void 0x0!==_0x2dd883['toVersion']&&void 0x0===_0x2dd883['fromVersion']&&(_0x2dd883['fromVersion']=this['repository']['getRevision'](_0x2dd883['id'])['fromVersion']);}const _0x4903fa=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3bcc4d,_0x4903fa)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xec5270=>{if(_0xec5270){for(const _0xa9ac6 of _0xec5270)this['setRevisionData']({'id':_0xa9ac6['id'],'createdAt':_0xa9ac6['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x99270b=null,from:_0x596cf2=null,to:_0x378d9a=null}){_0x596cf2=null!==_0x596cf2?_0x596cf2:_0x99270b['fromVersion'],_0x378d9a=null!==_0x378d9a?_0x378d9a:_0x99270b['toVersion'];const _0x130a36=this['_revisionDataBuilder']['getData'](_0x596cf2,_0x378d9a),_0xf7b5c4={'diffData':_0x130a36['diffData'],'authorsIds':_0x130a36['authorsIds'],'fromVersion':_0x596cf2,'toVersion':_0x378d9a};if(!_0x99270b||_0x378d9a!==_0x99270b['toVersion']){const _0x451ba4=_0x378d9a-0x1,_0x596078=this['_source']['history']['getOperation'](_0x451ba4);_0xf7b5c4['createdAt']=_0x596078&&_0x596078['createdAt']||new Date();}if(this['_loadedStateData']&&_0x596cf2===this['_loadedStateData']['fromVersion']){for(const _0x1339e6 of this['_loadedStateData']['authors'])_0xf7b5c4['authorsIds']['includes'](_0x1339e6['id'])||_0xf7b5c4['authorsIds']['push'](_0x1339e6['id']);}return _0xf7b5c4;}['_bufferUpdate'](_0x1453e3,_0x252315,_0x5b9f7d){if(this['_bufferedUpdates']['has'](_0x1453e3)){const _0x2a138b=this['_bufferedUpdates']['get'](_0x1453e3);_0x252315=_0x5b9f7d?{..._0x2a138b,..._0x252315}:{..._0x252315,..._0x2a138b};}this['_bufferedUpdates']['set'](_0x1453e3,_0x252315);}['setRevisionData'](_0x42e20b){const _0x5dfe95=this['repository']['getRevision'](_0x42e20b['id']);if(_0x42e20b['createdAt']&&(_0x42e20b['createdAt']=new Date(_0x42e20b['createdAt'])),_0x42e20b['authorsIds']){const _0x4f4629=this['editor']['plugins']['get']('Users');_0x42e20b['authors']=_0x42e20b['authorsIds']['map'](_0x90f08c=>_0x4f4629['getUser'](_0x90f08c));}_0x5dfe95['_update'](_0x42e20b,!0x0);}['_createInitialRevision'](_0x5f550d){const _0x3cb63a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3cb63a)this['_initialRevisionId']=_0x3cb63a['id'];else{const _0x5ad241=!this['editor']['model']['document']['roots']['find'](_0x5dd4b2=>this['editor']['model']['hasContent'](_0x5dd4b2)),_0xb2609a=this['editor']['plugins']['get']('Users')['me']['id'],_0x26c1ca=g(this['editor']['locale'],_0x5ad241?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5f550d,'to':_0x5f550d,'id':this['_initialRevisionId'],'name':_0x26c1ca,'creatorId':_0xb2609a});}}['_createCurrentRevision'](_0x1f611a){const _0xf548ae=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xf548ae),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1f611a,'to':_0x1f611a,'id':_0xf548ae,'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'](_0x3cb616,_0x217675){let _0x1f4322=this['editor']['config']['get']('initialData'),_0x517c83=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x1f4322){_0x1f4322={};for(const _0x4e1b05 of this['editor']['model']['document']['getRootNames']())_0x1f4322[_0x4e1b05]='';}if('string'==typeof _0x1f4322&&(_0x1f4322={'main':_0x1f4322}),void 0x0===_0x517c83){_0x517c83={};for(const _0x10f1da of this['editor']['model']['document']['getRootNames']())_0x517c83[_0x10f1da]={};}let _0x1926db=!0x1;const _0x556333=Object['keys'](_0x1f4322),_0x1819b5=Object['keys'](_0x3cb616);for(const _0x2e9eab of _0x556333){if(_0x1f4322[_0x2e9eab]!==_0x3cb616[_0x2e9eab]&&''!==_0x1f4322[_0x2e9eab]['trim']()){_0x1926db=!0x0;break;}if(!_0x134b18(_0x517c83[_0x2e9eab],_0x217675[_0x2e9eab])&&Object['keys'](_0x517c83[_0x2e9eab])['length']>0x0){_0x1926db=!0x0;break;}}_0x1926db||(_0x1926db=_0x1819b5['some'](_0x518169=>!this['editor']['model']['document']['getRoot'](_0x518169))),_0x1926db&&_0x5624da('editor-initial-data-replaced-with-revision-data',{'editorData':_0x1f4322,'editorRootsAttributes':_0x517c83,'revisionData':_0x3cb616,'revisionRootsAttributes':_0x217675}),this['editor']['config']['set']('initialData',_0x3cb616),this['editor']['config']['set']('rootsAttributes',_0x217675);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x261e20=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x261e20['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x53c378){const _0x450cf9=this['repository']['getRevisions']();_0x450cf9['reverse']();let _0x1b5b56=0x0;for(;_0x1b5b56<_0x450cf9['length'];){const _0x2bda39=_0x450cf9[_0x1b5b56];if(_0x2bda39===this['currentRevision']){_0x1b5b56++;continue;}if(_0x2bda39['id']===this['_initialRevisionId'])break;const _0x46f470=_0x53c378['toVersion']-_0x2bda39['toVersion']||_0x53c378['fromVersion']-_0x2bda39['fromVersion'];if(_0x46f470>0x0)break;if(_0x46f470<0x0)_0x1b5b56++;else{if(!_0x53c378['creator']&&_0x2bda39['creator'])break;if(_0x2bda39['creator']||!_0x53c378['creator']){if(_0x53c378['createdAt']>_0x2bda39['createdAt'])break;_0x1b5b56++;}else _0x1b5b56++;}}return _0x1b5b56;}['_getFromVersion'](_0x442e02){const _0x21eb03=this['repository']['getRevisions']();_0x21eb03['reverse'](),_0x21eb03['shift']();const _0x2e3fc5=_0x21eb03['find'](_0x576c44=>_0x576c44['toVersion']<=_0x442e02)['toVersion'];return _0x2e3fc5<this['_startingVersion']?this['_startingVersion']:_0x2e3fc5;}['_makeRevision']({name:_0x3b7303,from:_0x44c794,to:_0x52b8c4,creatorId:_0x21b43b,id:_0x345a88}){const _0x70c8cc=this['buildRevisionData']({'from':_0x44c794,'to':_0x52b8c4});_0x70c8cc['name']=_0x3b7303,_0x70c8cc['creatorId']=_0x21b43b,_0x70c8cc['id']=_0x345a88;const _0x38dcd8=this['addRevisionData'](_0x70c8cc);return this['adapter']&&this['_bufferUpdate'](_0x70c8cc['id'],_0x70c8cc,!0x0),_0x38dcd8;}['_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(_0x4bc4f5){this['editor']=_0x4bc4f5,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'](_0x21c35c){this['source']=_0x21c35c;const _0x3f7b1e=new Map(),_0x5b98de=new Map(),_0x4348fa=this['editor']['model']['document']['roots']['map'](_0x54000d=>_0x54000d['rootName']);for(const _0x2a1375 of _0x4348fa){const _0x5db662=this['editor']['model']['document']['getRoot'](_0x2a1375),_0x485278=N(_0x5db662);_0x3f7b1e['set'](_0x2a1375,_0x485278),_0x5b98de['set'](_0x2a1375,Object['fromEntries'](_0x5db662['getAttributes']()));}const _0x1da862=Array['from'](this['editor']['model']['markers'])['map'](_0x3c4116=>[_0x3c4116['name'],_0x3c4116['getRange']()]),_0x3498c9=this['source']['version'];this['_saveMetaData'](_0x3498c9,_0x3f7b1e,_0x1da862,_0x5b98de),this['_startingRevisionId']=this['_revisionId'];const _0x5b7a1e=new Map(),_0x339bca=new Map();for(const _0xbcbac7 of _0x4348fa){const _0x3aec1e=P(_0xbcbac7);_0x5b7a1e['set'](_0xbcbac7,_0x3aec1e),_0x339bca['set'](_0xbcbac7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5b7a1e,[],_0x339bca);}['getData'](_0x3dda4d,_0x321744){if(this['_lastFrom']===_0x3dda4d&&this['_lastTo']<=_0x321744)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x321744,!0x0);else{if(!this['_savedMetaData']['has'](_0x3dda4d)){const _0x23256f=this['_getPreviousFrom'](_0x3dda4d);this['_calculateMetaData'](_0x23256f,_0x3dda4d,!0x1);}this['_calculateMetaData'](_0x3dda4d,_0x321744,!0x0);}return this['_lastFrom']=_0x3dda4d,this['_lastTo']=_0x321744,this['_getState']();}['loadState'](_0x56be27){const _0x5d0d6e=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x56be27['fromVersion'],this['_lastTo']=_0x56be27['toVersion'];for(const _0x263b2c in _0x56be27['diffData']){const _0x152b01=_0x56be27['diffData'][_0x263b2c]['attachChange'],_0x3cd4cf=_0x4c01ac(_0x56be27['diffData'][_0x263b2c]['attributesBefore'])||{},_0x128021=_0x5d0d6e['_makeModelFromViewString'](_0x56be27['diffData'][_0x263b2c]['deletions']);_0x128021['rootName']=_0x263b2c,_0x128021['_isAttached']=!_0x152b01||!_0x152b01['isAttached'],_0x128021['isAttached']=()=>_0x128021['_isAttached'],this['_baseRoots']['set'](_0x263b2c,_0x128021),this['_baseRootsAttributes']['set'](_0x263b2c,_0x3cd4cf),_0x152b01&&this['_touchedRoots']['set'](_0x263b2c,_0x152b01);const _0x57e99b=this['_makeIdsRoot'](_0x128021);this['_baseIdsRoots']['set'](_0x263b2c,_0x57e99b);for(const [_0x614763,_0x205759]of _0x128021['markers']){if(!_0x614763['startsWith']('revision:'))continue;const _0x58fefd=_0x614763['split'](':')[0x2];for(const _0x2d0cdb of _0x205759['getWalker']({'singleCharacters':!0x0})){const _0x3f44dc=this['_getVidAttributeName'](_0x2d0cdb),_0x2dd7c1='elementEnd'==_0x2d0cdb['type']?_0x2d0cdb['previousPosition']['path']['slice'](0x0,-0x1):_0x2d0cdb['previousPosition']['path'],_0x30f950=_0x57e99b['getNodeByPath'](_0x2dd7c1)['getAttribute'](_0x3f44dc);this['_touched']['set'](_0x30f950,{'userId':_0x58fefd});}}}this['_startingRevisionId']=this['_revisionId'];const _0xec0ac8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5ad033=>!this['_touched']['has'](_0x5ad033));let _0x2de056=0x0;const _0x3653d2=new Map();for(const _0x573790 in _0x56be27['diffData']){const _0x356d38=_0x56be27['diffData'][_0x573790]['attachChange'],_0xe24544=_0x4c01ac(_0x56be27['diffData'][_0x573790]['attributesAfter'])||{},_0x539e21=_0x5d0d6e['_makeModelFromViewString'](_0x56be27['diffData'][_0x573790]['insertions']);_0x539e21['rootName']=_0x573790,_0x539e21['_isAttached']=!_0x356d38||_0x356d38['isAttached'],_0x539e21['isAttached']=()=>_0x539e21['_isAttached'],this['_diffRoots']['set'](_0x573790,_0x539e21),this['_diffRootsAttributes']['set'](_0x573790,_0xe24544);const _0x32c1ad=this['_makeIdsRoot'](_0x539e21,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x573790,_0x32c1ad),_0x3653d2['set'](_0x573790,_0x539e21['isAttached']()?_0xe24544:{});for(const [_0x48efa2,_0x3df5d1]of _0x539e21['markers']){if(!_0x48efa2['startsWith']('revision:'))continue;const _0x8ff58b=_0x48efa2['split'](':')[0x2];for(const _0xe402d7 of _0x3df5d1['getWalker']({'singleCharacters':!0x0})){const _0x16a66f=this['_getVidAttributeName'](_0xe402d7),_0x168f6e=this['_revisionId']++,_0x4aec23='elementEnd'==_0xe402d7['type']?_0xe402d7['previousPosition']['path']['slice'](0x0,-0x1):_0xe402d7['previousPosition']['path'];_0x32c1ad['getNodeByPath'](_0x4aec23)['_setAttribute'](_0x16a66f,_0x168f6e),this['_touched']['set'](_0x168f6e,{'userId':_0x8ff58b});}}for(const _0x559c7c of this['editor']['model']['createRangeIn'](_0x539e21)['getWalker']({'singleCharacters':!0x0})){const _0x1e2200=this['_getVidAttributeName'](_0x559c7c),_0x749bb0='elementEnd'==_0x559c7c['type']?_0x559c7c['previousPosition']['path']['slice'](0x0,-0x1):_0x559c7c['previousPosition']['path'],_0x3cd141=_0x32c1ad['getNodeByPath'](_0x749bb0);_0x3cd141['getAttribute'](_0x1e2200)>0x0||_0x3cd141['_setAttribute'](_0x1e2200,_0xec0ac8[_0x2de056++]);}for(const [_0x257029,_0x393e9d]of _0x539e21['markers'])_0x257029['startsWith']('revision:')||this['_markers']['set'](_0x257029,_0x393e9d);}const _0x3d5ed2=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3d5ed2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3d5ed2,0x1));const _0x18f720=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x18f720),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x18f720,0x1));const _0x5fbc78=Array['from'](this['_diffRoots'])['map'](([_0xdd7f5c,_0x2475f8])=>[_0xdd7f5c,N(_0x2475f8)]);this['_saveMetaData'](this['_lastTo'],_0x5fbc78,this['_markers'],_0x3653d2);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5341ad,_0x1e3a50,_0x413ae3,_0xaf62b4){const _0x1c9dcf=new Map(_0x1e3a50),_0x45c9ea=new Map(_0x4c01ac(_0xaf62b4)),_0x5e7119=new Map();for(const [_0x1c0ace,_0x55fec0]of _0x413ae3)_0x5e7119['set'](_0x1c0ace,{'start':_0x55fec0['start']['clone'](),'end':_0x55fec0['end']['clone'](),'rootName':_0x55fec0['root']['rootName']});this['_savedMetaData']['set'](_0x5341ad,{'roots':_0x1c9dcf,'markers':_0x5e7119,'rootsAttributes':_0x45c9ea});}['_removeMetaData'](_0x24be1c){this['_savedMetaData']['delete'](_0x24be1c);}['_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'](_0x24bc95,_0x1ae4e0=null){let _0x499662=null;_0x24bc95['is']('documentFragment')||(_0x499662=new ut(_0x24bc95['name'],{'vid_start':null===_0x1ae4e0?this['_revisionId']++:_0x1ae4e0++}));const _0x549220=[];for(const _0x568dec of _0x24bc95['getChildren']())if(_0x568dec['is']('element')){_0x549220['push'](this['_makeIdsRoot'](_0x568dec,_0x1ae4e0));const _0x55279e=_0x549220[_0x549220['length']-0x1];null!==_0x1ae4e0&&(_0x1ae4e0=_0x55279e['is']('element','$text')?_0x55279e['getAttribute']('vid')+0x1:_0x55279e['getAttribute']('vid_end')+0x1);}else{for(let _0x14c981=0x0;_0x14c981<_0x568dec['offsetSize'];_0x14c981++)_0x549220['push'](new ut('$text',{'vid':null===_0x1ae4e0?this['_revisionId']++:_0x1ae4e0++}));}if(_0x24bc95['is']('documentFragment')){const _0x36b07b=P(_0x24bc95['rootName']);return _0x36b07b['_insertChild'](0x0,_0x549220),_0x36b07b;}return _0x499662['_setAttribute']('vid_end',null===_0x1ae4e0?this['_revisionId']++:_0x1ae4e0++),_0x499662['_insertChild'](0x0,_0x549220),_0x499662;}['_calculateMetaData'](_0x1a3e83,_0x13e26a,_0x4fa7f2){this['_reset']();const {roots:_0x25a03b,markers:_0x480e00,rootsAttributes:_0x144ddc}=this['_savedMetaData']['get'](_0x1a3e83);this['_baseRoots']=new Map(_0x25a03b),this['_baseRootsAttributes']=new Map(_0x4c01ac(_0x144ddc));for(const [_0x108a56,_0xe33d8f]of this['_baseRoots'])if('$graveyard'!==_0x108a56&&(this['_diffRoots']['set'](_0x108a56,N(_0xe33d8f)),this['_diffRootsAttributes']=new Map(_0x4c01ac(_0x144ddc)),_0x4fa7f2)){const _0x13b3c5=this['_revisionId'];this['_idsRoots']['set'](_0x108a56,this['_makeIdsRoot'](_0xe33d8f)),this['_baseIdsRoots']['set'](_0x108a56,this['_makeIdsRoot'](_0xe33d8f,_0x13b3c5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x4fa7f2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1fc181,_0x5c3337]of _0x480e00){const _0xd51dc8=this['_baseRoots']['get'](_0x5c3337['rootName']),_0x49497=this['_diffRoots']['get'](_0x5c3337['rootName']),_0x919241=new lt(this['_fixPosition'](_0x5c3337['start'],_0xd51dc8),this['_fixPosition'](_0x5c3337['end'],_0xd51dc8)),_0x459933=this['_fixRange'](_0x919241,_0x49497);_0xd51dc8['markers']['set'](_0x1fc181,_0x919241),this['_markers']['set'](_0x1fc181,_0x459933);}this['_applyOperations'](_0x1a3e83,_0x13e26a,_0x4fa7f2);}['_applyOperations'](_0x402b3e,_0x3137a0,_0xb8d17){for(const _0x46e2ec of this['source']['getOperations'](_0x402b3e,_0x3137a0))this['_handleOperation'](_0x46e2ec,_0xb8d17);for(const _0x4c5b1a of this['_diffRoots']['values']())_0x4c5b1a['markers']['clear']();for(const [_0x145785,_0x2107d7]of this['_markers']){this['_diffRoots']['get'](_0x2107d7['root']['rootName'])['markers']['set'](_0x145785,_0x2107d7['clone']());}const _0x364276=new Map(),_0x4a59a2=new Map();for(const [_0x4954e3,_0x48f7e0]of this['_diffRoots'])_0x364276['set'](_0x4954e3,N(_0x48f7e0)),_0x4a59a2['set'](_0x4954e3,this['_diffRootsAttributes']['get'](_0x4954e3));this['_saveMetaData'](_0x3137a0,_0x364276,this['_markers'],_0x4a59a2);}['_getPreviousFrom'](_0x533023){const _0x2186ee=Array['from'](this['_savedMetaData']['keys']());_0x2186ee['sort']((_0x8fc97e,_0x5e5641)=>_0x8fc97e-_0x5e5641),_0x2186ee['reverse']();for(const _0x159b09 of _0x2186ee)if(_0x159b09<_0x533023)return _0x159b09;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x57a8e0,_0x1c2c19){const _0x436ec3=Array['from'](_0x1c2c19['markers'])['map'](([_0x2f13d7,_0x5694bc])=>[_0x2f13d7,this['_fixRange'](_0x5694bc,_0x57a8e0)]);_0x57a8e0['markers']=new Map(_0x436ec3);}['_transformMarkers'](_0x34999b){for(const _0x171fb5 of this['_markers']['values']()){const _0x5b796a=_0x171fb5['getTransformedByOperation'](_0x34999b),_0x2ec006=lt['_createFromRanges'](_0x5b796a);_0x171fb5['start']=_0x2ec006['start'],_0x171fb5['end']=_0x2ec006['end'];}}['_handleOperation'](_0x3a730d,_0x5157a5){if('addRoot'!=_0x3a730d['type']&&'detachRoot'!=_0x3a730d['type']){if('insert'==_0x3a730d['type']){const _0x50f640=_0x3a730d['position']['root']['rootName'];this['_diffRoots']['has'](_0x50f640)||(this['_diffRoots']['set'](_0x50f640,P(_0x50f640,!0x0)),this['_diffRootsAttributes']['set'](_0x50f640,{}),_0x5157a5&&this['_idsRoots']['set'](_0x50f640,P(_0x50f640,!0x0)));}else{if('addRootAttribute'==_0x3a730d['type']||'removeRootAttribute'==_0x3a730d['type']||'changeRootAttribute'==_0x3a730d['type'])return void this['_handleRootAttributeOperation'](_0x3a730d);'marker'==_0x3a730d['type']&&this['_handleMarkerOperation'](_0x3a730d);}if('marker'!==_0x3a730d['type']){const _0x9e5f78=this['_cloneOperation'](_0x3a730d,this['_diffRoots']);_0x9e5f78['_execute'](),this['_transformMarkers'](_0x9e5f78);}if(_0x5157a5)switch(_0x3a730d['type']){case'insert':this['_handleInsertOperation'](_0x3a730d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3a730d);break;case'merge':this['_handleMergeOperation'](_0x3a730d);break;case'split':this['_handleSplitOperation'](_0x3a730d);}}else this['_handleRootOperation'](_0x3a730d,_0x5157a5);}['_cloneOperation'](_0x2e6de9,_0x2a324c){const _0x1c185b=_0x2e6de9['clone']();return _0x1c185b['_authorId']=_0x2e6de9['_authorId'],this['_fixOperation'](_0x1c185b,_0x2a324c),_0x1c185b;}['_getBaseVids'](_0x27cc27){return _0x27cc27['map'](_0xfb29e=>{const _0x59dc0e=this['_getVidAttributeName'](_0xfb29e);return Number(_0xfb29e['item']['getAttribute'](_0x59dc0e));});}['_generateTape'](_0x1e9993,_0x4a29b0){if(_0x1e9993['is']('element','$text'))_0x4a29b0['push']({'item':_0x1e9993,'type':'text'});else{_0x1e9993['is']('element')&&_0x4a29b0['push']({'item':_0x1e9993,'type':'elementStart'});for(const _0x4907a2 of _0x1e9993['getChildren']())this['_generateTape'](_0x4907a2,_0x4a29b0);_0x1e9993['is']('element')&&_0x4a29b0['push']({'item':_0x1e9993,'type':'elementEnd'});}return _0x4a29b0;}['_getState'](){const _0x1433e0=new Map(this['_touched']),_0x1ec9c8=new Map(_0x1433e0),_0xa8c6b9=new Map(),_0x513904={'insertions':{},'deletions':{}},_0x1ad2b4={'insertions':{},'deletions':{}},_0x30f102=new Map(),_0x5c5fc6=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5c5fc6['delete']('$graveyard');for(const _0xf48302 of _0x5c5fc6){const _0x32e23e=this['_diffRoots']['get'](_0xf48302)||P(_0xf48302,!0x1),_0x586b54=this['_baseRoots']['get'](_0xf48302)||P(_0xf48302,!0x1);_0x32e23e['isAttached']()||_0x586b54['isAttached']()?(_0x513904['insertions'][_0xf48302]=N(_0x32e23e),_0x513904['deletions'][_0xf48302]=N(_0x586b54),this['_copyMarkers'](_0x513904['deletions'][_0xf48302],_0x586b54),this['_copyMarkers'](_0x513904['insertions'][_0xf48302],_0x32e23e),_0x1ad2b4['insertions'][_0xf48302]=this['_generateTape'](this['_idsRoots']['get'](_0xf48302),[]),_0x1ad2b4['deletions'][_0xf48302]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xf48302)||P(_0xf48302,!0x1),[])):_0x5c5fc6['delete'](_0xf48302);}for(const _0x53d8bc of _0x5c5fc6){const _0x149493=_0x1ad2b4['insertions'][_0x53d8bc];for(const _0x5214ec of _0x149493){const _0x2dd9a3=this['_getVidAttributeName'](_0x5214ec),_0x33df2f=_0x5214ec['item']['getAttribute'](_0x2dd9a3);_0x1ec9c8['delete'](_0x33df2f),_0x33df2f>=this['_startingRevisionId']&&_0xa8c6b9['set'](_0x33df2f,_0x1433e0['get'](_0x33df2f));}}for(const _0x2202af of _0x5c5fc6){const _0x25c47f=_0x1ad2b4['insertions'][_0x2202af],_0x88f478=this['_getBaseVids'](_0x1ad2b4['deletions'][_0x2202af]);let _0x141675=0x0;for(const _0x113dd6 of _0x25c47f){const _0xc688e6=this['_getVidAttributeName'](_0x113dd6),_0x2e3efb=_0x113dd6['item']['getAttribute'](_0xc688e6);if(!_0xa8c6b9['has'](_0x2e3efb)&&!_0x30f102['has'](_0x2e3efb)){if(_0x1ec9c8['has'](_0x2e3efb))_0x141675++;else{if(_0x2e3efb!=_0x88f478[_0x141675]){const _0x1b5a30=_0x1433e0['get'](_0x2e3efb)||_0x1433e0['get'](_0x88f478[_0x141675]);for(;_0x2e3efb!=_0x88f478[_0x141675];)_0x1ec9c8['has'](_0x88f478[_0x141675])||(_0x30f102['set'](_0x88f478[_0x141675],_0x1b5a30),_0x1433e0['set'](_0x88f478[_0x141675],_0x1b5a30)),_0x141675++;}_0x141675++;}}}}for(const _0x2284d4 of _0x5c5fc6){const _0x35f52a=_0x1ad2b4['insertions'][_0x2284d4];for(const _0x4de4a4 of _0x35f52a){const _0x3d933c=this['_getVidAttributeName'](_0x4de4a4),_0x4f0c51=_0x4de4a4['item']['getAttribute'](_0x3d933c);if(_0x30f102['has'](_0x4f0c51)){const _0x8cae30=_0x30f102['get'](_0x4f0c51);_0x1ec9c8['has'](_0x4f0c51)||_0x1ec9c8['set'](_0x4f0c51,{..._0x8cae30}),_0xa8c6b9['set'](_0x4f0c51,{..._0x8cae30});}}}for(const _0x27e7d1 of _0x1ec9c8['keys']())_0x27e7d1>=this['_startingRevisionId']&&_0x1ec9c8['delete'](_0x27e7d1);const _0x2ff173=new Map();for(const _0x365bfb of _0x5c5fc6){let _0x23f6f9=_0x1ad2b4['insertions'][_0x365bfb];for(const _0x1e71dc of _0x23f6f9)if(_0x1e71dc['item']['is']('element','tableCell')){const _0x101940=this['_getVidAttributeName'](_0x1e71dc),_0x231f50=_0x1e71dc['item']['getAttribute'](_0x101940);if(_0xa8c6b9['has'](_0x231f50)){const _0x3e33c8=_0x1e71dc['item']['parent']['parent']['getAttribute']('vid_start'),_0x36e3e0=_0x2ff173['get'](_0x3e33c8)||new Set();_0x36e3e0['add'](_0xa8c6b9['get'](_0x231f50)['userId']),_0x2ff173['set'](_0x3e33c8,_0x36e3e0);}}_0x23f6f9=_0x1ad2b4['deletions'][_0x365bfb];for(const _0x4e42c0 of _0x23f6f9)if(_0x4e42c0['item']['is']('element','tableCell')){const _0x426022=this['_getVidAttributeName'](_0x4e42c0),_0x1fd228=_0x4e42c0['item']['getAttribute'](_0x426022);if(_0x1ec9c8['has'](_0x1fd228)){const _0xdd219a=_0x4e42c0['item']['parent']['parent']['getAttribute']('vid_start'),_0x1cb549=_0x2ff173['get'](_0xdd219a)||new Set();_0x1cb549['add'](_0x1ec9c8['get'](_0x1fd228)['userId']),_0x2ff173['set'](_0xdd219a,_0x1cb549);}}for(const _0x426154 of _0x2ff173['keys']())(_0xa8c6b9['has'](_0x426154)||_0x1ec9c8['has'](_0x426154))&&_0x2ff173['delete'](_0x426154);}for(const _0x54cd92 of _0x5c5fc6){const _0x34df6b=_0x1ad2b4['insertions'][_0x54cd92];let _0x3decf0=null,_0xda7eb1=null;for(const _0x46f94e of _0x34df6b){const _0x36b360=this['_getVidAttributeName'](_0x46f94e),_0x424c1e=_0x46f94e['item']['getAttribute'](_0x36b360),_0x165204=_0x2ff173['get'](_0x424c1e);_0x165204&&'elementStart'==_0x46f94e['type']&&(_0x3decf0=Array['from'](_0x165204)[0x0],_0xda7eb1=_0x46f94e['item']['getAttribute']('vid_end')),_0x3decf0&&(_0x1ec9c8['set'](_0x424c1e,{'userId':_0x3decf0}),_0xa8c6b9['set'](_0x424c1e,{'userId':_0x3decf0})),_0x424c1e==_0xda7eb1&&(_0x3decf0=null,_0xda7eb1=null);}}const _0x25ca52={},_0x2f0d12=new Set();for(const _0x4d15e4 of _0x5c5fc6){const _0x5bdb2c=_0x513904['deletions'][_0x4d15e4],_0x4585ed=_0x513904['insertions'][_0x4d15e4];for(const {userId:_0x4fc6b3}of this['_touchedMarkers']['values']())null!==_0x4fc6b3&&_0x2f0d12['add'](_0x4fc6b3);for(const {userId:_0xf0dfcb}of this['_touchedRoots']['values']())null!==_0xf0dfcb&&_0x2f0d12['add'](_0xf0dfcb);this['_markChanges'](_0x4585ed,_0x1ad2b4['insertions'][_0x4d15e4],_0xa8c6b9,'insertion',_0x2f0d12),this['_markChanges'](_0x5bdb2c,_0x1ad2b4['deletions'][_0x4d15e4],_0x1ec9c8,'deletion',_0x2f0d12),_0x25ca52[_0x4d15e4]={'insertions':this['_prepareViewToSave'](_0x4585ed),'deletions':this['_prepareViewToSave'](_0x5bdb2c),'attachChange':this['_touchedRoots']['get'](_0x4d15e4)||null,'attributesBefore':_0x4c01ac(this['_baseRootsAttributes']['get'](_0x4d15e4))||{},'attributesAfter':_0x4c01ac(this['_diffRootsAttributes']['get'](_0x4d15e4))};}return{'diffData':_0x25ca52,'authorsIds':Array['from'](_0x2f0d12)};}['_processRootBeforeSave'](_0x13c100){for(const [,_0x311b47]of _0x13c100['markers']){const _0x42caed=_0x311b47['start']['getAncestors']()['filter'](_0x3f5c64=>'tableCell'==_0x3f5c64['name']);for(const _0x3d745d of _0x42caed)0x1==_0x3d745d['childCount']&&_0x3d745d['getChild'](0x0)['is']('element','paragraph')&&_0x3d745d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1c80ba){this['_processRootBeforeSave'](_0x1c80ba);const _0x1a2aec=this['editor']['data']['toView'](_0x1c80ba,{}),_0xba5e8=Array['from'](_0x1a2aec['getChildren']())['map'](_0x495b96=>this['_getViewJson'](_0x495b96));return JSON['stringify'](_0xba5e8);}['_getViewJson'](_0x497b79){if(_0x497b79['is']('$text'))return _0x497b79['data'];{const _0x57445d=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xdd671a=_0x497b79,_0x2c03c8=this['editor']['data']['htmlProcessor']['domConverter'],_0x4e22f0={'type':_0x57445d['_getTypeCharForViewElement'](_0xdd671a),'name':_0xdd671a['name'],'attributes':Array['from'](_0xdd671a['getAttributes']()),'children':Array['from'](_0xdd671a['getChildren']())['map'](_0x215987=>this['_getViewJson'](_0x215987))};if(_0x497b79['is']('uiElement')&&'$comment'!=_0x497b79['name']){const _0x35bf35=_0x497b79['render'](_0x2c03c8['domDocument'],_0x2c03c8);_0x4e22f0['children']['push'](_0x35bf35['outerHTML']);}else{if(_0x497b79['is']('rawElement')){const _0x3fc64a=_0x2c03c8['domDocument']['createElement'](_0xdd671a['name']);_0x497b79['render'](_0x3fc64a,_0x2c03c8),_0x4e22f0['children']['push'](_0x3fc64a['innerHTML']);}}const _0x156d81=Array['from'](_0xdd671a['getCustomProperties']());_0x156d81['length']>0x0&&(_0x4e22f0['customProperties']=_0x156d81);const _0x5c9d6f=_0xdd671a['getFillerOffset']();return null!==_0x5c9d6f&&(_0x4e22f0['fillerOffset']=_0x5c9d6f),_0x4e22f0;}}['_markChanges'](_0x1c7c60,_0x51d3d3,_0x14c408,_0x55ef45,_0x31b396){let _0x499b0a=null,_0xbba551=null,_0x261ba7=0x0;const _0x2da6a6=this['editor']['model'];for(let _0x13350e=0x0;_0x13350e<_0x51d3d3['length'];_0x13350e++){const _0x5716a1=this['_getVidAttributeName'](_0x51d3d3[_0x13350e]),_0x3acf5d=_0x51d3d3[_0x13350e]['item']['getAttribute'](_0x5716a1),_0x3ebbe2=_0x14c408['get'](_0x3acf5d),_0x4c60d7=_0x13350e==_0x51d3d3['length']-0x1;(!_0x499b0a&&_0x3ebbe2&&(_0x499b0a=_0x3ebbe2,_0xbba551=_0x51d3d3[_0x13350e]),_0x499b0a&&(!_0x3ebbe2||_0x3ebbe2['userId']!=_0x499b0a['userId']))&&(_0x4fc588(_0x3ebbe2,F(_0xbba551,_0x1c7c60,_0x2da6a6),F(_0x51d3d3[_0x13350e],_0x1c7c60,_0x2da6a6)),_0x499b0a=_0x3ebbe2||null,_0xbba551=_0x3ebbe2?_0x51d3d3[_0x13350e]:null),_0x499b0a&&_0x4c60d7&&_0x4fc588(_0x3ebbe2,F(_0xbba551,_0x1c7c60,_0x2da6a6),B(_0x51d3d3[_0x13350e],_0x1c7c60,_0x2da6a6));}function _0x4fc588(_0x4d40b6,_0x474552,_0x48798f){const _0x4e294d=_0x499b0a['userId'],_0x32d080='revision:'+_0x55ef45+':'+_0x4e294d+':'+_0x261ba7++,_0xa14daf=_0x2da6a6['createRange'](_0x474552,_0x48798f);_0x1c7c60['markers']['set'](_0x32d080,_0xa14daf),null!==_0x4e294d&&_0x31b396['add'](_0x4e294d);}}['_getVidAttributeName'](_0x390b32){switch(_0x390b32['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4cf7d3,_0x19d16d){_0x4cf7d3['baseVersion']=null;for(const _0x2a7178 in _0x4cf7d3){const _0x437319=_0x4cf7d3[_0x2a7178];if(_0x437319 instanceof ft){const _0x522fc7=_0x19d16d['get'](_0x437319['root']['rootName']);_0x4cf7d3[_0x2a7178]=this['_fixPosition'](_0x437319,_0x522fc7);}if(_0x437319 instanceof lt){const _0x23ed66=_0x19d16d['get'](_0x437319['root']['rootName']);_0x4cf7d3[_0x2a7178]=this['_fixRange'](_0x437319,_0x23ed66);}'root'===_0x2a7178&&(_0x4cf7d3['root']=_0x19d16d['get'](_0x4cf7d3['root']['rootName']));}}['_fixRange'](_0x9b9af5,_0x4bc81a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x9b9af5['start'],_0x4bc81a),this['_fixPosition'](_0x9b9af5['end'],_0x4bc81a));}['_fixPosition'](_0x5725c8,_0x2bc86c){return this['editor']['model']['createPositionFromPath'](_0x2bc86c,_0x5725c8['path'],_0x5725c8['stickiness']);}['_handleInsertOperation'](_0x2ee22e){const _0x380ffe=this['_idsRoots']['get'](_0x2ee22e['position']['root']['rootName']),_0x1084bb=this['_fixPosition'](_0x2ee22e['position'],_0x380ffe),_0x51eb0b=null===_0x2ee22e['_authorId']?null:_0x2ee22e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2456bd=_0x1084bb['parent'],_0x1a5960=this['_revisionId'],_0x492536=[];for(const _0x56df14 of _0x2ee22e['nodes'])if(_0x56df14['is']('element'))_0x492536['push'](this['_makeIdsRoot'](_0x56df14));else{for(let _0x452547=0x0;_0x452547<_0x56df14['offsetSize'];_0x452547++)_0x492536['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x241e8c=this['_revisionId'];for(let _0x15ce85=_0x1a5960;_0x15ce85<_0x241e8c;_0x15ce85++)this['_touched']['set'](_0x15ce85,{'userId':_0x51eb0b});_0x2456bd['_insertChild'](_0x1084bb['offset'],_0x492536);}['_handleMoveOperation'](_0xe19339){(_0xe19339=this['_cloneOperation'](_0xe19339,this['_idsRoots']))['_execute']();const _0x2f4e32=null===_0xe19339['_authorId']?null:_0xe19339['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x31f7a4=_0xe19339['getMovedRangeStart'](),_0x4600e0=_0x31f7a4['parent'],_0x355c1b=_0x31f7a4['offset'];!function _0x1619dc(_0x41fa7e,_0x397c7a,_0x5ca432,_0x18f0b7){for(let _0x3340c6=_0x5ca432;_0x3340c6<_0x18f0b7;_0x3340c6++){const _0x338320=_0x397c7a['getChild'](_0x3340c6);_0x338320['is']('element','$text')?_0x41fa7e['set'](_0x338320['getAttribute']('vid'),{'userId':_0x2f4e32}):(_0x41fa7e['set'](_0x338320['getAttribute']('vid_start'),{'userId':_0x2f4e32}),_0x1619dc(_0x41fa7e,_0x338320,0x0,_0x338320['childCount']),_0x41fa7e['set'](_0x338320['getAttribute']('vid_end'),{'userId':_0x2f4e32}));}}(this['_touched'],_0x4600e0,_0x355c1b,_0x355c1b+_0xe19339['howMany']);}['_handleMergeOperation'](_0x575451){const _0x4e8c4b=null===(_0x575451=this['_cloneOperation'](_0x575451,this['_idsRoots']))['_authorId']?null:_0x575451['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22b1d1=_0x575451['targetPosition']['parent'],_0x2e91a8=_0x575451['sourcePosition']['parent'],_0x88450e=_0x22b1d1['getAttribute']('vid_end'),_0x3a4f31=_0x2e91a8['getAttribute']('vid_start');_0x22b1d1['_setAttribute']('vid_end',_0x2e91a8['getAttribute']('vid_end')),_0x2e91a8['_setAttribute']('vid_end',_0x88450e),this['_touched']['set'](_0x3a4f31,{'userId':_0x4e8c4b}),this['_touched']['set'](_0x88450e,{'userId':_0x4e8c4b}),_0x575451['_execute']();}['_handleSplitOperation'](_0x2236a2){const _0x43a11f=null===(_0x2236a2=this['_cloneOperation'](_0x2236a2,this['_idsRoots']))['_authorId']?null:_0x2236a2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3fa530=_0x2236a2['graveyardPosition'],_0x51b178=_0x2236a2['splitPosition']['parent'];_0x2236a2['_execute']();const _0x75280b=_0x51b178['getAttribute']('vid_end'),_0x29dd66=_0x2236a2['insertionPosition']['nodeAfter'];if(_0x3fa530){const _0x13614c=_0x29dd66['getAttribute']('vid_end'),_0x558de9=_0x51b178['getAttribute']('vid_end');_0x51b178['_setAttribute']('vid_end',_0x13614c),_0x29dd66['_setAttribute']('vid_end',_0x558de9),this['_touched']['set'](_0x51b178['getAttribute']('vid_end'),{'userId':_0x43a11f}),this['_touched']['set'](_0x29dd66['getAttribute']('vid_start'),{'userId':_0x43a11f});}else{const _0xc2cf61=this['_revisionId']++,_0x7d5b5=this['_revisionId']++;_0x51b178['_setAttribute']('vid_end',_0xc2cf61),_0x29dd66['_setAttribute']('vid_start',_0x7d5b5),_0x29dd66['_setAttribute']('vid_end',_0x75280b),this['_touched']['set'](_0xc2cf61,{'userId':_0x43a11f}),this['_touched']['set'](_0x7d5b5,{'userId':_0x43a11f});}}['_handleMarkerOperation'](_0x3d22d7){if(!_0x3d22d7['affectsData'])return;const _0x43dc3d=(_0x3d22d7=this['_cloneOperation'](_0x3d22d7,this['_diffRoots']))['oldRange']?_0x3d22d7['oldRange']['root']:null,_0x1ca8d7=_0x3d22d7['newRange']?_0x3d22d7['newRange']['root']:null;_0x43dc3d&&this['_markers']['delete'](_0x3d22d7['name']),_0x1ca8d7&&this['_markers']['set'](_0x3d22d7['name'],_0x3d22d7['newRange']['clone']());const _0xd152fd=null===_0x3d22d7['_authorId']?null:_0x3d22d7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x261033=_0x3d22d7['name'];if(!this['_touchedMarkers']['has'](_0x261033))return void this['_touchedMarkers']['set'](_0x261033,{'range':_0x3d22d7['oldRange'],'userId':_0xd152fd});const _0x15afb7=this['_touchedMarkers']['get'](_0x261033),_0x1fd6bf=_0x15afb7['range'],_0x49e8a6=_0x3d22d7['newRange'];null==_0x1fd6bf&&null==_0x49e8a6||_0x1fd6bf&&_0x49e8a6&&_0x1fd6bf['isEqual'](_0x49e8a6)?this['_touchedMarkers']['delete'](_0x3d22d7['name']):_0x15afb7['userId']=_0xd152fd;}['_handleRootOperation'](_0x296ae2,_0x31d28c){this['_diffRoots']['has'](_0x296ae2['rootName'])?this['_diffRoots']['get'](_0x296ae2['rootName'])['_isAttached']=_0x296ae2['isAdd']:(this['_diffRoots']['set'](_0x296ae2['rootName'],P(_0x296ae2['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x296ae2['rootName'],{}),_0x31d28c&&this['_idsRoots']['set'](_0x296ae2['rootName'],P(_0x296ae2['rootName'],!0x0)));const _0x3ac57e=null===_0x296ae2['_authorId']?null:_0x296ae2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ee331=this['_touchedRoots']['get'](_0x296ae2['rootName']);_0x3ee331&&_0x3ee331['userId']===_0x3ac57e?this['_touchedRoots']['delete'](_0x296ae2['rootName']):this['_touchedRoots']['set'](_0x296ae2['rootName'],{'userId':_0x3ac57e,'isAttached':_0x296ae2['isAdd']});}['_handleRootAttributeOperation'](_0x3b4fb6){const _0x1a2c2c=this['_diffRootsAttributes']['get'](_0x3b4fb6['root']['rootName']);null===_0x3b4fb6['newValue']?delete _0x1a2c2c[_0x3b4fb6['key']]:_0x1a2c2c[_0x3b4fb6['key']]=_0x3b4fb6['newValue'];}}function N(_0x465248){const _0x21fe23=P(_0x465248['rootName'],_0x465248['isAttached']());for(const _0xbc4154 of _0x465248['getChildren']()){const _0x3250f8=_0xbc4154['_clone'](!0x0);_0x21fe23['_appendChild'](_0x3250f8);}return _0x21fe23;}function P(_0xd97950,_0x2d7d36=!0x0){const _0x28c477=new vt();return _0x28c477['rootName']=_0xd97950,_0x28c477['_isAttached']=_0x2d7d36,_0x28c477['isAttached']=()=>_0x28c477['_isAttached'],_0x28c477;}function F(_0x2cdaa9,_0x4f508d,_0x1a594c){const _0x21c994='elementEnd'==_0x2cdaa9['type']?_0x1a594c['createPositionAt'](_0x2cdaa9['item'],'end'):_0x1a594c['createPositionBefore'](_0x2cdaa9['item']);return _0x1a594c['createPositionFromPath'](_0x4f508d,_0x21c994['path'],_0x21c994['stickiness']);}function B(_0x1b8303,_0x189945,_0x3fb62b){const _0x43dfcd='elementStart'==_0x1b8303['type']?_0x3fb62b['createPositionAt'](_0x1b8303['item'],0x0):_0x3fb62b['createPositionAfter'](_0x1b8303['item']);return _0x3fb62b['createPositionFromPath'](_0x189945,_0x43dfcd['path'],_0x43dfcd['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x798d00,_0x562fb6){super(_0x798d00),this['focusTracker']=new _0x2b54a0(),this['keystrokes']=new _0x34108f(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x562fb6),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x222059(this);}['render'](){super['render'](),_0x47ad21({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x398d96=_0x33f15b=>_0x33f15b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x398d96),this['keystrokes']['set']('arrowleft',_0x398d96),this['keystrokes']['set']('arrowup',_0x398d96),this['keystrokes']['set']('arrowdown',_0x398d96);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x55603b){this['revisionNameInputView']['fieldView']['element']['value']=_0x55603b['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5666a5){const _0x228f76=new _0x2c2338(this['locale'],_0x4aee85),_0x4b9ad6=_0x228f76['fieldView'];_0x4b9ad6['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xe690bd=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5666a5&&(_0xe690bd+='\x20('+g(this['locale'],'optional')+')'),(_0x228f76['label']=_0xe690bd,_0x4b9ad6['on']('input',()=>{this['revisionNameInputValue']=_0x4b9ad6['element']['value']['trim']();}),_0x228f76);}}class f extends _0xb5e69f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x55b455=this['editor'],_0x58ee89=_0x55b455['plugins']['get']('RevisionTracker');_0x55b455['ui']['componentFactory']['add']('revisionHistory',_0x2dd94d=>{const _0x4e22e8=_0x975c3f(_0x2dd94d),_0x8f35ec=_0x4e22e8['panelView']['children'],_0x307cec=new _0x4b64b9(_0x2dd94d),_0x513bfd=new _0x582351(_0x2dd94d),_0xffdc51=new te(_0x2dd94d),_0x43b6bb=new _0x582351(_0x2dd94d),_0x5c5d6c=new te(_0x2dd94d);return _0x4e22e8['bind']('isEnabled')['to'](_0x58ee89,'isReady',_0x58ee89,'isEnabled',_0x55b455,'isReadOnly',(_0x593ec2,_0x557842,_0x413b3f)=>_0x593ec2&&_0x557842&&!_0x413b3f),_0x4e22e8['buttonView']['set']({'icon':_0x435c8c,'label':g(_0x2dd94d,'Revision\x20history'),'tooltip':!0x0}),_0xffdc51['set']({'label':g(_0x2dd94d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xffdc51['bind']('isEnabled')['to'](_0x58ee89,'isReady',_0x58ee89,'isEnabled',_0x55b455,'isReadOnly',(_0x2f1abc,_0x442119,_0x53d943)=>_0x2f1abc&&_0x442119&&!_0x53d943),_0xffdc51['on']('execute',()=>this['_showDialog']()),_0x5c5d6c['set']({'label':g(_0x2dd94d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5c5d6c['bind']('isEnabled')['to'](_0x58ee89,'isReady',_0x55b455,'isReadOnly',(_0x1d834f,_0x2645a3)=>_0x1d834f&&!_0x2645a3),_0x5c5d6c['on']('execute',()=>{_0x55b455['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4e22e8['isOpen']=!0x1,_0x55b455['editing']['view']['focus']();}),_0x513bfd['children']['add'](_0xffdc51),_0x43b6bb['children']['add'](_0x5c5d6c),_0x307cec['role']='menu',_0x307cec['items']['addMany']([_0x513bfd,_0x43b6bb]),_0x8f35ec['add'](_0x307cec),_0x4e22e8;}),_0x55b455['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2c6135=this['editor'],_0x1edaae=_0x2c6135['locale'],_0x18c4e6=new _0x5229ba(_0x1edaae),_0x52c080=new _0x2559f5(_0x1edaae);_0x18c4e6['buttonView']['set']({'icon':_0x435c8c,'label':g(_0x1edaae,'Revision\x20history')});const _0x5c55e8=new _0x20efee(_0x1edaae,_0x18c4e6),_0x46938c=new _0x1ab573(_0x1edaae);_0x46938c['set']({'label':g(_0x1edaae,'Save\x20current\x20revision')}),_0x46938c['delegate']('execute')['to'](_0x18c4e6),_0x46938c['on']('execute',()=>{this['_showDialog']();}),_0x5c55e8['children']['add'](_0x46938c),_0x52c080['items']['add'](_0x5c55e8);const _0x4b1d81=new _0x20efee(_0x1edaae,_0x18c4e6),_0x28e3e0=new _0x1ab573(_0x1edaae);return _0x28e3e0['set']({'label':g(_0x1edaae,'Open\x20revision\x20history')}),_0x28e3e0['delegate']('execute')['to'](_0x18c4e6),_0x28e3e0['on']('execute',()=>{_0x2c6135['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4b1d81['children']['add'](_0x28e3e0),_0x52c080['items']['add'](_0x4b1d81),_0x18c4e6['panelView']['children']['add'](_0x52c080),_0x18c4e6;}['_showDialog'](){const _0x1dfd6a=this['editor'],_0xa4da1=_0x1dfd6a['locale'],_0x5a01be=_0x1dfd6a['plugins']['get']('Dialog'),_0x515f62=_0x1dfd6a['plugins']['get']('RevisionTracker');function _0x25b4c3(_0x2b8696){_0x1dfd6a['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2b8696['revisionName']?_0x2b8696['revisionNameInputView']['errorText']=g(_0xa4da1,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1dfd6a['plugins']['get'](u)['saveRevision']({'name':_0x2b8696['revisionName']}),_0x5a01be['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x25b4c3(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5a01be['show']({'id':'revisionSave','title':g(_0xa4da1,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x1dfd6a['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5a01be['hide']()},{'label':g(_0x1dfd6a['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5cd9e4){_0x5cd9e4['bind']('isEnabled')['to'](_0x515f62,'isReady',_0x515f62,'isEnabled',_0x1dfd6a,'isReadOnly',(_0x44d64c,_0x1f108e,_0x40a82d)=>_0x44d64c&&_0x1f108e&&!_0x40a82d);},'onExecute':()=>_0x25b4c3(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x167f65=this['editor'],_0x1d4741=_0x167f65['locale'];this['_saveRevisionFormView']=new hs(_0x1d4741,_0x167f65['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1659aa,_0x555f12){super(_0x1659aa),this['_model']=_0x555f12,this['changeId']=_0x555f12['id'];const _0x27832c=this['bindTemplate'],_0x319a89=g(_0x1659aa,_0x555f12['data']['isSuggestion']?'Suggested\x20by':'add'==_0x555f12['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x555f12['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x27832c['to']('type',_0x4eb161=>'ck-revision-change__'+_0x4eb161)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x319a89}]},{'text':'\x20'+_0x555f12['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x1c6a45(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xec45b7){super(),this['id']=_0xec45b7['id']||_0x263f51(),this['author']=_0xec45b7['author'],this['type']=_0xec45b7['type'],this['data']=_0xec45b7['data']||{},this['rootName']=_0xec45b7['rootName'],this['set']('createdAt',_0xec45b7['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(_0xa55899,_0x365a57){this['newRevisionId']=_0xa55899,this['oldRevisionId']=_0x365a57,this['changes']=new _0x13794f();}['_setChanges'](_0x5dea78){for(const _0x2e43b2 of _0x5dea78)this['changes']['add'](_0x2e43b2);}}class m extends _0xb5e69f{['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[_0x4037f9,_0x43c666,I,V];}constructor(_0x439c14){super(_0x439c14),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',(_0x390fdc,_0x453fb4,_0x1077c9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x15f6fa=>{for(const _0x3fd154 of this['editor']['editing']['view']['document']['roots'])_0x1077c9?_0x15f6fa['removeClass']('ck-editor__editable__overlay',_0x3fd154):_0x15f6fa['addClass']('ck-editor__editable__overlay',_0x3fd154);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x37349f=>null!==_0x37349f),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x14c782,_0x2caaac,_0x30d7d8)=>_0x14c782&&_0x30d7d8?_0x2caaac['changes']['getIndex'](_0x30d7d8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x33651c,_0x95fd0c)=>_0x33651c?_0x95fd0c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x43c666);}['init'](){const _0x26be07=this['editor'],_0x2f543d=new wt(_0x26be07,{'direction':'backward'}),_0x4773fc=new wt(_0x26be07,{'direction':'forward'});(_0x26be07['commands']['add']('showPreviousChange',_0x2f543d),_0x26be07['commands']['add']('showNextChange',_0x4773fc),_0x26be07['commands']['add']('restoreRevision',new mt(_0x26be07)),this['on']('change:numberOfChanges',()=>{_0x2f543d['refresh'](),_0x4773fc['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x26be07['enableReadOnlyMode']('revision-viewer'),_0x26be07['plugins']['has']('WidgetToolbarRepository'))&&_0x26be07['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3b7b01){return await this['_utils']['loadRevisionData'](_0x3b7b01,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3b7b01);}async['getRevisionRootsAttributes'](_0x1b8236){return await this['_utils']['loadRevisionData'](_0x1b8236,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1b8236);}async['compare'](_0x1ba434,_0x519fa5,_0x5d4daf=!0x1){if(!this['isEnabled'])return;const _0x47632f=this['diff'],_0x2b1f1b=this['repository'],_0x149788='string'==typeof _0x1ba434?_0x2b1f1b['getRevision'](_0x1ba434):_0x1ba434,_0x46d222='string'==typeof _0x519fa5?_0x2b1f1b['getRevision'](_0x519fa5):_0x519fa5,_0x8b8721=_0x149788['id'],_0x39af9d=_0x46d222?_0x46d222['id']:null;if(!_0x5d4daf&&this['diff']&&this['diff']['newRevisionId']===_0x8b8721&&this['diff']['oldRevisionId']===_0x39af9d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x8b8721,_0x39af9d);const _0x26904f=this['_getRevisionsRange'](_0x149788,_0x46d222,!0x0)['map'](_0x3ed408=>this['_utils']['loadRevisionData'](_0x3ed408,this['adapter']));return _0x26904f['push'](new Promise(_0x465f95=>{setTimeout(_0x465f95,0x14);})),Promise['all'](_0x26904f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x438c29=this['_getDiff'](_0x8b8721,_0x39af9d);for(const _0x1c7764 of _0x438c29['changes'])this['_changeIdToChange']['set'](_0x1c7764['id'],_0x1c7764);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x11807e=>{for(const _0x3cf494 of this['editor']['model']['document']['getRootNames']())_0x11807e['detachRoot'](_0x3cf494);for(const _0x74ea5e of Object['keys'](_0x438c29['model'])){const _0x5cf2e4=_0x11807e['addRoot'](_0x74ea5e);for(const _0x4fb757 of Object['keys'](_0x438c29['attributes'][_0x74ea5e]))_0x11807e['setAttribute'](_0x4fb757,_0x438c29['attributes'][_0x74ea5e][_0x4fb757],_0x5cf2e4);_0x11807e['insert'](_0x438c29['model'][_0x74ea5e],_0x5cf2e4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x438c29['changes'])),this['isReady']=!0x0;})['catch'](_0x56bc28=>{console['error'](_0x56bc28),this['_cleanUp'](),_0x47632f&&(this['diff']=_0x47632f),this['isReady']=!0x0;});}['addRevisionData'](_0x254c22,_0x56cd2f){const _0x5771e5=this['repository']['createRevision'](_0x254c22);return _0x5771e5['on']('_update',(_0x1a55d6,_0x348f30,_0x322c06)=>_0x56cd2f(_0x348f30,_0x322c06,_0x5771e5)),this['repository']['addRevision'](_0x5771e5),_0x5771e5;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x8df441=>{for(const _0x35fb4d of this['editor']['model']['document']['getRootNames']())_0x8df441['detachRoot'](_0x35fb4d);});}['_sortAndFilterDiffChanges'](_0x5014d6){const _0x12f0ae=[],_0x2faec3=new Map();for(const _0x3d8307 of this['editor']['model']['document']['getRootNames']()){const _0x4695cf=this['editor']['editing']['view']['getDomRoot'](_0x3d8307);if(!_0x4695cf)continue;const _0x1a88a0=_0x4695cf['getClientRects']()['item'](0x0);_0x1a88a0&&(_0x12f0ae['push'](_0x3d8307),_0x2faec3['set'](_0x3d8307,_0x1a88a0));}return _0x12f0ae['sort']((_0x211829,_0x60e687)=>{const _0x277e7d=_0x2faec3['get'](_0x211829),_0x3d76f4=_0x2faec3['get'](_0x60e687);return _0x277e7d['y']-_0x3d76f4['y']||_0x277e7d['x']-_0x3d76f4['x'];}),(_0x5014d6=_0x5014d6['filter'](_0x5bc5c5=>_0x12f0ae['includes'](_0x5bc5c5['rootName'])))['sort']((_0x17436e,_0x3c48c2)=>_0x12f0ae['indexOf'](_0x17436e['rootName'])-_0x12f0ae['indexOf'](_0x3c48c2['rootName'])),_0x5014d6;}['_makeTape'](_0x5c50ca){const _0x1872b9=Array['from'](_0x5c50ca['markers'])['filter'](([_0x15ed5,_0x5346f1])=>_0x15ed5['startsWith']('revision:')&&!_0x5346f1['isCollapsed']),_0x50a7de=Array['from'](this['editor']['model']['createRangeIn'](_0x5c50ca)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1872b9['length'])for(const _0x232ad1 of _0x50a7de){const [_0x3295a0,_0x1af32c]=_0x1872b9[0x0],[,_0x4ee8f3,_0x111015]=_0x3295a0['split'](':');if(_0x1af32c['end']['isEqual'](_0x232ad1['nextPosition'])&&_0x1872b9['shift'](),(_0x232ad1['previousPosition']['isEqual'](_0x1af32c['start'])||_0x232ad1['previousPosition']['isAfter'](_0x1af32c['start']))&&('insertion'==_0x4ee8f3?_0x232ad1['isAdded']={'userId':_0x111015}:'deletion'==_0x4ee8f3&&(_0x232ad1['isRemoved']={'userId':_0x111015})),0x0==_0x1872b9['length'])break;}return _0x50a7de;}['_refreshStartEndIndex'](_0x5c15cc){const _0x432e1c=new Map();for(let _0x2b2a70=0x0;_0x2b2a70<_0x5c15cc['length'];_0x2b2a70++)'text'===_0x5c15cc[_0x2b2a70]['type']?(_0x5c15cc[_0x2b2a70]['item']['startIndex']=_0x2b2a70,_0x5c15cc[_0x2b2a70]['item']['endIndex']=_0x2b2a70):('elementStart'===_0x5c15cc[_0x2b2a70]['type']?_0x5c15cc[_0x2b2a70]['item']['startIndex']=_0x2b2a70:'elementEnd'===_0x5c15cc[_0x2b2a70]['type']&&(_0x5c15cc[_0x2b2a70]['item']['endIndex']=_0x2b2a70),_0x432e1c['set'](_0x5c15cc[_0x2b2a70]['id'],_0x2b2a70));for(const _0x1295ca of _0x432e1c['values']())'elementStart'===_0x5c15cc[_0x1295ca]['type']?_0x5c15cc[_0x1295ca]['item']['endIndex']=_0x432e1c['get'](_0x5c15cc[_0x1295ca]['pairId']):'elementEnd'===_0x5c15cc[_0x1295ca]['type']&&(_0x5c15cc[_0x1295ca]['item']['startIndex']=_0x432e1c['get'](_0x5c15cc[_0x1295ca]['pairId']));}['_processTape'](_0x1fd23e){for(let _0x59fd1b=0x0;_0x59fd1b<_0x1fd23e['length'];_0x59fd1b++){if('elementStart'===_0x1fd23e[_0x59fd1b]['type'])_0x1fd23e[_0x59fd1b]['item']['startIndex']=_0x59fd1b;else{if('elementEnd'===_0x1fd23e[_0x59fd1b]['type']){_0x1fd23e[_0x59fd1b]['item']['endIndex']=_0x59fd1b;const _0x441130=_0x1fd23e[_0x59fd1b]['item']['startIndex'];_0x1fd23e[_0x441130]['pairId']=_0x1fd23e[_0x59fd1b]['id'],_0x1fd23e[_0x59fd1b]['pairId']=_0x1fd23e[_0x441130]['id'];}else _0x1fd23e[_0x59fd1b]['item']['startIndex']=_0x59fd1b,_0x1fd23e[_0x59fd1b]['item']['endIndex']=_0x59fd1b,_0x1fd23e[_0x59fd1b]['pairId']=null;}_0x1fd23e[_0x59fd1b]['markersStart']||(_0x1fd23e[_0x59fd1b]['markersStart']=[],_0x1fd23e[_0x59fd1b]['markersEnd']=[]);}}['_markInsertions'](_0x2f3fea,_0x2dd247){const _0x36aa1f=_0x2f3fea['filter'](_0x3404b7=>!_0x3404b7['isAdded']);for(let _0x2a6f2a=0x0;_0x2a6f2a<_0x2dd247['length'];_0x2a6f2a++)_0x2dd247[_0x2a6f2a]['isAdded']&&(_0x36aa1f[_0x2a6f2a]['isAdded']=_0x2dd247[_0x2a6f2a]['isAdded']);}['_getDiff'](_0x775282,_0xf1ca21=null){const _0x328e17=this['repository']['getRevision'](_0x775282),_0x1449c1=_0xf1ca21?this['repository']['getRevision'](_0xf1ca21):null,_0x17697d=this['_getRevisionsRange'](_0x328e17,_0x1449c1),_0x23c9a9=_0x17697d[_0x17697d['length']-0x1],_0x10caf5=new Map(),_0x202ec3={'model':{},'attributes':{},'changes':[]},_0x2cfb68=new Set(),_0x7f8678=new Map();for(let _0x1e2d4b=_0x17697d['length']-0x1;_0x1e2d4b>=0x0;_0x1e2d4b--){const _0x22bc03=_0x17697d[_0x1e2d4b];for(const _0x13aeee of Object['keys'](_0x22bc03['diffData']))if(_0x22bc03['diffData'][_0x13aeee]['attachChange']){const _0x2c5f0f=_0x22bc03['diffData'][_0x13aeee]['attachChange'];_0x2c5f0f['isAttached']?(_0x2cfb68['add'](_0x13aeee),_0x7f8678['has'](_0x13aeee)&&_0x7f8678['get'](_0x13aeee)['userId']==_0x2c5f0f['userId']?_0x7f8678['delete'](_0x13aeee):_0x7f8678['set'](_0x13aeee,_0x2c5f0f)):_0x7f8678['has'](_0x13aeee)?(_0x2cfb68['delete'](_0x13aeee),_0x7f8678['delete'](_0x13aeee)):(_0x2cfb68['add'](_0x13aeee),_0x7f8678['set'](_0x13aeee,_0x2c5f0f));}else _0x2cfb68['add'](_0x13aeee);}for(const _0x137eac of _0x2cfb68){const _0x3a7c7e=_0x7f8678['has'](_0x137eac)&&!_0x7f8678['get'](_0x137eac)['isAttached'];let _0x2b3ba1=_0x3a7c7e?_0x17697d['length']-0x1:0x0;const _0x227d7a=_0x3a7c7e?-0x1:0x1;for(;_0x17697d[_0x2b3ba1];){const _0x4168d5=_0x17697d[_0x2b3ba1];if(_0x4168d5['diffData'][_0x137eac]){const _0x4ff2bd=_0x3a7c7e?_0x4168d5['diffData'][_0x137eac]['attributesBefore']:_0x4168d5['diffData'][_0x137eac]['attributesAfter'];_0x202ec3['attributes'][_0x137eac]=_0x4ff2bd?_0x4c01ac(_0x4ff2bd):{};break;}_0x2b3ba1+=_0x227d7a;}}for(const _0x120e8a of _0x17697d){_0x120e8a['model']={};for(const _0x343f23 of _0x120e8a['authors'])_0x10caf5['set'](_0x343f23['id'],_0x343f23);for(const _0x3036f1 of _0x2cfb68){const _0x23dd2b=_0x120e8a['diffData'][_0x3036f1]?_0x120e8a['diffData'][_0x3036f1]['insertions']:'[]',_0x52e1cb=_0x120e8a['diffData'][_0x3036f1]?_0x120e8a['diffData'][_0x3036f1]['deletions']:'[]';_0x120e8a['model'][_0x3036f1]={'insertions':this['_utils']['_makeModelFromViewString'](_0x23dd2b),'deletions':this['_utils']['_makeModelFromViewString'](_0x52e1cb)};}}for(const _0x11c100 of _0x2cfb68){let _0xb5f0d2=null,_0x505716=0x0;const _0x4ee26b=new Map(Array['from'](_0x328e17['model'][_0x11c100]['insertions']['markers'])['filter'](([_0x539f6b])=>!_0x539f6b['startsWith']('revision:')));let _0x4fa1c4=0x0;for(const _0x62d395 of _0x17697d){const _0x2a7203=this['_makeTape'](_0x62d395['model'][_0x11c100]['insertions']);_0x62d395==_0x328e17?(_0xb5f0d2=_0x2a7203,_0x505716=_0xb5f0d2['length'],_0xb5f0d2['forEach'](_0x36208a=>{_0x36208a['id']=_0x4fa1c4++;}),this['_processTape'](_0xb5f0d2)):this['_markInsertions'](_0xb5f0d2,_0x2a7203);const _0x276afc=_0xb5f0d2['filter'](_0x132001=>!_0x132001['isAdded'])['map'](_0xe6e816=>_0xe6e816['id']);let _0x4af501=0x0;const _0x4df577=this['_makeTape'](_0x62d395['model'][_0x11c100]['deletions']);_0x4df577['forEach'](_0x360a1d=>{_0x360a1d['isRemoved']?_0x360a1d['id']=_0x505716++:_0x360a1d['id']=_0x276afc[_0x4af501++];}),this['_processTape'](_0x4df577),this['_setDistance'](_0xb5f0d2,'isAdded'),this['_setDistance'](_0x4df577,'isRemoved'),_0x62d395==_0x328e17&&this['_markMarkers'](_0xb5f0d2,_0x4ee26b),_0xb5f0d2=this['_joinTapes'](_0xb5f0d2,_0x4df577),this['_refreshStartEndIndex'](_0xb5f0d2),this['_setDistance'](_0xb5f0d2,'isRemoved');}_0xb5f0d2=_0xb5f0d2['filter'](_0x50bd2c=>!(_0x50bd2c['isAdded']&&_0x50bd2c['isRemoved']));const _0x1d0636=new Map(_0x23c9a9['model'][_0x11c100]['deletions']['markers']),_0x3e3be4=new Set(_0x4ee26b['keys']());for(const _0x1e28be of _0x1d0636['keys']())_0x3e3be4['delete'](_0x1e28be);this['_markSuggestions'](_0xb5f0d2,_0x3e3be4),this['_fixObsoleteTags'](_0xb5f0d2),_0xb5f0d2=this['_removeMissingPairs'](_0xb5f0d2),_0xb5f0d2=this['_markMismatchedRemovedTags'](_0xb5f0d2),_0xb5f0d2=this['_removeUnsupportedChanges'](_0xb5f0d2);const {root:_0x29d6d3,changes:_0x181a83}=this['_makeModelFromTape'](_0xb5f0d2,_0x10caf5,_0x11c100);_0x202ec3['model'][_0x11c100]=_0x29d6d3;const _0x2ba96c=_0x7f8678['get'](_0x11c100);if(_0x2ba96c){const _0x4a73db=_0x10caf5['get'](_0x2ba96c['userId']),_0x236ae1=new r({'author':_0x4a73db,'type':_0x2ba96c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x11c100});_0x181a83['unshift'](_0x236ae1),_0x202ec3['attributes'][_0x11c100]['revisionHistoryAttachChange']=_0x236ae1['id'];}_0x202ec3['changes']=_0x202ec3['changes']['concat'](_0x181a83);}return _0x202ec3;}['_markMarkers'](_0x5549ab,_0x123279){for(let _0x356cdb=0x0;_0x356cdb<_0x5549ab['length'];_0x356cdb++)for(const [_0x1edbe9,_0x30f3e6]of _0x123279)!_0x30f3e6['isCollapsed']&&_0x30f3e6['start']['isEqual'](_0x5549ab[_0x356cdb]['previousPosition'])&&_0x5549ab[_0x356cdb]['markersStart']['push'](_0x1edbe9),_0x30f3e6['end']['isEqual'](_0x5549ab[_0x356cdb]['nextPosition'])&&_0x5549ab[_0x356cdb]['markersEnd']['push'](_0x1edbe9);}['_joinTapes'](_0x10ffc5,_0x37fee3){let _0x332f70=[],_0x5e5c4e=0x0,_0x3209d8=0x0;for(;_0x5e5c4e<_0x10ffc5['length']||_0x3209d8<_0x37fee3['length'];){const _0x48190a=_0x10ffc5[_0x5e5c4e]||{},_0xaee56=_0x37fee3[_0x3209d8]||{};if(_0x48190a['id']==_0xaee56['id'])_0x5e5c4e++,_0x3209d8++,_0x332f70['push'](_0x48190a);else{if(_0xaee56['isRemoved']&&_0x48190a['isAdded']){const {commonTape:_0x390e88,iEnd:_0x163944,jEnd:_0x1ec259}=this['_threeWayMerge'](_0x10ffc5,_0x5e5c4e,_0x37fee3,_0x3209d8);_0x332f70=_0x332f70['concat'](_0x390e88),_0x5e5c4e=_0x163944,_0x3209d8=_0x1ec259;}else _0xaee56['isRemoved']?(_0x3209d8++,_0x332f70['push'](_0xaee56)):(_0x5e5c4e++,_0x332f70['push'](_0x48190a));}}return _0x332f70;}['_markSuggestions'](_0x2722fe,_0x42af9e){const _0x5a4a1c=[];for(let _0x4344c1=0x0;_0x4344c1<_0x2722fe['length'];_0x4344c1++){for(let _0x487615=0x0;_0x487615<_0x2722fe[_0x4344c1]['markersStart']['length'];_0x487615++){const _0x24e320=_0x2722fe[_0x4344c1]['markersStart'][_0x487615];if(!_0x42af9e['has'](_0x24e320))continue;const {group:_0x5ae0cf,type:_0x1ff96e,authorId:_0x28bfd0}=_0x35cbc6(_0x24e320);'revision-suggestion'!=_0x5ae0cf||'insertion'!=_0x1ff96e&&'deletion'!=_0x1ff96e||(_0x5a4a1c['unshift']({'type':_0x1ff96e,'name':_0x24e320,'userId':_0x28bfd0}),_0x2722fe[_0x4344c1]['markersStart']['splice'](_0x487615,0x1),_0x487615--);}_0x518735(_0x2722fe[_0x4344c1]);for(let _0x445345=0x0;_0x445345<_0x2722fe[_0x4344c1]['markersEnd']['length'];_0x445345++){const _0x247745=_0x2722fe[_0x4344c1]['markersEnd'][_0x445345];if(!_0x42af9e['has'](_0x247745))continue;const {group:_0x2035d7,type:_0x11772a}=_0x35cbc6(_0x247745);if('revision-suggestion'!=_0x2035d7||'insertion'!=_0x11772a&&'deletion'!=_0x11772a)continue;_0x2722fe[_0x4344c1]['markersEnd']['splice'](_0x445345,0x1),_0x445345--;const _0x1de0f2=_0x5a4a1c['findIndex'](_0x1403e7=>_0x1403e7['name']==_0x247745);_0x1de0f2>-0x1&&_0x5a4a1c['splice'](_0x1de0f2,0x1);}}function _0x35cbc6(_0x47a3f7){const _0x24db40=_0x47a3f7['split'](':');return{'group':_0x24db40[0x0],'type':_0x24db40[0x1],'subType':_0x24db40['length']>=0x5?_0x24db40[0x2]:null,'id':_0x24db40['length']<0x5?_0x24db40[0x2]:_0x24db40[0x3],'authorId':_0x24db40['length']<0x5?_0x24db40[0x3]:_0x24db40[0x4],'markerCount':0x6==_0x24db40['length']?_0x24db40[0x5]:null};}function _0x518735(_0x483012){for(let _0x5acdfd=0x0;_0x5acdfd<_0x5a4a1c['length'];_0x5acdfd++){if(_0x483012['isAdded']&&'insertion'==_0x5a4a1c[_0x5acdfd]['type'])return _0x483012['isAddSuggestion']=_0x5a4a1c[_0x5acdfd],void delete _0x483012['isAdded'];if(!_0x483012['isAdded']&&!_0x483012['isRemoved']&&'deletion'==_0x5a4a1c[_0x5acdfd]['type'])return void(_0x483012['isRemoveSuggestion']=_0x5a4a1c[_0x5acdfd]);}}}['_setDistance'](_0x269655,_0x36b51a){let _0x18b2fd=0x0,_0x1fe4b2=!0x1;const _0x5500d0=new Map();for(const _0x5ca3fe of _0x269655)_0x5ca3fe[_0x36b51a]?_0x1fe4b2&&(_0x18b2fd++,_0x1fe4b2=!0x1):(_0x18b2fd++,_0x1fe4b2=!0x0),_0x5500d0['set'](_0x5ca3fe['id'],_0x18b2fd);for(let _0x4b0fd2=0x0;_0x4b0fd2<_0x269655['length'];_0x4b0fd2++){if('isRemoved'==_0x36b51a&&_0x269655[_0x4b0fd2]['isAdded']||'isAdded'==_0x36b51a&&_0x269655[_0x4b0fd2]['isRemoved'])continue;if('text'==_0x269655[_0x4b0fd2]['type']){_0x269655[_0x4b0fd2]['distance']=0x0;continue;}const _0x146bf8=_0x5500d0['get'](_0x269655[_0x4b0fd2]['pairId']),_0x2fa3b9=_0x5500d0['get'](_0x269655[_0x4b0fd2]['id']);_0x269655[_0x4b0fd2]['distance']=_0x146bf8-_0x2fa3b9;}}['_getRevisionsRange'](_0x50eee3,_0x7fa312,_0x345a8b=!0x1){const _0x58ff6b=[];let _0x4c446f=this['repository']['getIndex'](_0x50eee3),_0x30e0cf=this['repository']['getIndex'](_0x7fa312);for(-0x1==_0x30e0cf&&(_0x30e0cf=this['repository']['_revisions']['length'],_0x345a8b=!0x1);_0x4c446f<_0x30e0cf;)_0x58ff6b['push'](this['repository']['getRevision'](_0x4c446f)),_0x4c446f++;return _0x345a8b&&_0x58ff6b['push'](this['repository']['getRevision'](_0x4c446f)),_0x58ff6b;}['_threeWayMerge'](_0xe98e52,_0x20cde9,_0x5c251d,_0x3de652){const _0x21b2b7=this['editor']['model']['schema'];let _0x28c887=_0x20cde9;for(;_0xe98e52[_0x28c887]&&_0xe98e52[_0x28c887]['isAdded'];)_0x28c887++;let _0x2abc80=_0x3de652;for(;_0x5c251d[_0x2abc80]&&_0x5c251d[_0x2abc80]['isRemoved'];)_0x2abc80++;_0x2b39b7(_0xe98e52,_0x20cde9,_0x28c887),_0x2b39b7(_0x5c251d,_0x3de652,_0x2abc80);const _0x23b958=_0x5c251d['slice'](_0x3de652,_0x2abc80)['concat'](_0xe98e52['slice'](_0x20cde9,_0x28c887));return _0x23b958['sort']((_0x5e27d8,_0x33de56)=>_0x5e27d8['side']!=_0x33de56['side']?_0x5e27d8['side']-_0x33de56['side']:_0x5e27d8['level']!=_0x33de56['level']?_0x5e27d8['level']-_0x33de56['level']:_0x5e27d8['distance']!=_0x33de56['distance']?_0x33de56['distance']-_0x5e27d8['distance']:!!_0x5e27d8['isAdded']!=!!_0x33de56['isAdded']?-0x1==_0x5e27d8['side']||0x0==_0x5e27d8['side']?_0x5e27d8['isAdded']?-0x1:0x1:_0x5e27d8['isAdded']?0x1:-0x1:_0x5e27d8['index']-_0x33de56['index']),{'commonTape':_0x23b958,'iEnd':_0x28c887,'jEnd':_0x2abc80};function _0x2b39b7(_0x1ec985,_0x23c862,_0x347a7e){let _0x2945c0=-0x1,_0x3a56a9=Number['POSITIVE_INFINITY'],_0x5e154d=!0x0;for(let _0x1adece=_0x23c862;_0x1adece<_0x347a7e;_0x1adece++)if(_0x21b2b7['isInline'](_0x1ec985[_0x1adece]['item'])||(_0x5e154d=!0x1),_0x1ec985[_0x1adece]['item']['startIndex']<_0x23c862&&(_0x2945c0=_0x1adece),_0x1ec985[_0x1adece]['item']['endIndex']>=_0x347a7e){_0x3a56a9=_0x1adece;break;}_0x5e154d&&(_0x2945c0=_0x347a7e-0x1);for(let _0x4f9cf8=_0x23c862;_0x4f9cf8<_0x347a7e;_0x4f9cf8++)_0x1ec985[_0x4f9cf8]['side']=_0x4f9cf8<=_0x2945c0?-0x1:_0x4f9cf8<_0x3a56a9?0x0:0x1,_0x1ec985[_0x4f9cf8]['index']=_0x4f9cf8;let _0x5b6fa1=0x0;for(let _0x705afd=_0x23c862;_0x705afd<=_0x2945c0;_0x705afd++)0x0==_0x1ec985[_0x705afd]['distance']?_0x1ec985[_0x705afd]['level']=_0x5b6fa1:(_0x5b6fa1++,_0x1ec985[_0x705afd]['level']=_0x5b6fa1,_0x5b6fa1++);for(let _0x1a1838=_0x23c862;_0x1a1838<_0x347a7e;_0x1a1838++)0x0==_0x1ec985[_0x1a1838]['side']&&(_0x1ec985[_0x1a1838]['level']=_0x5b6fa1);_0x5b6fa1=0x0;for(let _0x21deff=_0x347a7e-0x1;_0x21deff>=_0x3a56a9;_0x21deff--)0x0==_0x1ec985[_0x21deff]['distance']?_0x1ec985[_0x21deff]['level']=_0x5b6fa1:(_0x5b6fa1--,_0x1ec985[_0x21deff]['level']=_0x5b6fa1,_0x5b6fa1--);}}['_fixObsoleteTags'](_0x5efeb6){const _0x47c1b1=new Map(),_0x3de811=this['editor']['model']['schema'];for(let _0x564fbd=0x1;_0x564fbd<_0x5efeb6['length'];_0x564fbd++){let _0x3e8385,_0x47d4ac,_0x229406;const _0x3a0d58=_0x5efeb6[_0x564fbd],_0x124aae=_0x5efeb6[_0x564fbd-0x1];if('text'==_0x3a0d58['type'])continue;if(_0x3a0d58['type']!=_0x124aae['type'])continue;if(!_0x3de811['isBlock'](_0x124aae['item'])||_0x3de811['isLimit'](_0x124aae['item']))continue;if(!_0x3de811['isBlock'](_0x3a0d58['item'])||_0x3de811['isLimit'](_0x3a0d58['item']))continue;if((_0x5efeb6[_0x564fbd]['isAdded']||_0x5efeb6[_0x564fbd]['isAddSuggestion'])&&_0x5efeb6[_0x564fbd-0x1]['isRemoved'])_0x3e8385=_0x5efeb6[_0x564fbd],_0x47d4ac=_0x5efeb6[_0x564fbd-0x1],_0x229406=_0x564fbd-0x1;else{if(!_0x5efeb6[_0x564fbd]['isRemoved']||!_0x5efeb6[_0x564fbd-0x1]['isAdded']&&!_0x5efeb6[_0x564fbd-0x1]['isAddSuggestion'])continue;_0x3e8385=_0x5efeb6[_0x564fbd-0x1],_0x47d4ac=_0x5efeb6[_0x564fbd],_0x229406=_0x564fbd;}const _0x42a50a=_0x3e8385['level']==_0x47d4ac['level'],_0xc2013a=Math['abs'](_0x3e8385['level'])<Math['abs'](_0x47d4ac['level'])&&0x0==_0x47d4ac['distance'];(_0x42a50a||_0xc2013a)&&(_0x47c1b1['set'](_0x47d4ac['id'],_0x3e8385['id']),_0x5efeb6['splice'](_0x229406,0x1),_0x564fbd--,_0x3e8385['isAdded']=!0x1);}for(let _0x54d488=0x0;_0x54d488<_0x5efeb6['length'];_0x54d488++)_0x47c1b1['has'](_0x5efeb6[_0x54d488]['pairId'])&&(_0x5efeb6[_0x54d488]['pairId']=_0x47c1b1['get'](_0x5efeb6[_0x54d488]['pairId']));}['_removeMissingPairs'](_0x55389d){const _0x20c388=new Set(_0x55389d['map'](_0x3345d0=>_0x3345d0['id']));for(let _0x5778eb=0x0;_0x5778eb<_0x55389d['length'];_0x5778eb++)_0x20c388['has'](_0x55389d[_0x5778eb]['pairId'])||0x0==_0x55389d[_0x5778eb]['distance']||(_0x55389d[_0x5778eb]['isIncorrect']=!0x0);return _0x55389d['filter'](_0x2d99ac=>!_0x2d99ac['isIncorrect']);}['_markMismatchedRemovedTags'](_0x9da6ce){const _0x4ff97d=new Set();for(let _0x40d1f6=0x0;_0x40d1f6<_0x9da6ce['length'];_0x40d1f6++){if(_0x4ff97d['has'](_0x9da6ce[_0x40d1f6]['id'])&&_0x9da6ce[_0x40d1f6]['isRemoved']&&(_0x9da6ce[_0x40d1f6]['isIncorrect']=!0x0),_0x9da6ce[_0x40d1f6]['isIncorrect'])continue;if(0x0==_0x9da6ce[_0x40d1f6]['distance'])continue;if('elementStart'!=_0x9da6ce[_0x40d1f6]['type'])continue;if(null==_0x9da6ce[_0x40d1f6]['pairId'])continue;let _0x5ac7bf=_0x40d1f6+0x1,_0x3e0c80=0x0;for(;_0x9da6ce[_0x5ac7bf]['id']!=_0x9da6ce[_0x40d1f6]['pairId'];)'elementStart'==_0x9da6ce[_0x5ac7bf]['type']?_0x3e0c80++:'elementEnd'==_0x9da6ce[_0x5ac7bf]['type']&&_0x3e0c80--,_0x5ac7bf++;if(0x0!=_0x3e0c80){if(_0x9da6ce[_0x40d1f6]['isRemoved'])_0x9da6ce[_0x40d1f6]['isIncorrect']=!0x0;else{for(;_0x5ac7bf!=_0x40d1f6;)_0x9da6ce[_0x5ac7bf]['isRemoved']&&0x0!=_0x9da6ce[_0x5ac7bf]['distance']&&(_0x9da6ce[_0x5ac7bf]['isIncorrect']=!0x0,_0x4ff97d['add'](_0x9da6ce[_0x5ac7bf]['pairId'])),_0x5ac7bf--;}}}return _0x9da6ce['filter'](_0x17d7a6=>!_0x17d7a6['isIncorrect']);}['_removeUnsupportedChanges'](_0x5366c4){const _0x510b15=this['editor']['model']['schema'];for(let _0x42a512=0x0;_0x42a512<_0x5366c4['length'];_0x42a512++){if(!(_0x5366c4[_0x42a512]['isAdded']||_0x5366c4[_0x42a512]['isAddSuggestion']||_0x5366c4[_0x42a512]['isRemoved']||_0x5366c4[_0x42a512]['isRemoveSuggestion']))continue;if(0x0==_0x5366c4[_0x42a512]['distance'])continue;const _0x11e7fb=_0x5366c4[_0x42a512]['item'];_0x510b15['isBlock'](_0x11e7fb)||_0x510b15['isLimit'](_0x11e7fb)||(_0x5366c4[_0x42a512]['isAdded']&&delete _0x5366c4[_0x42a512]['isAdded'],_0x5366c4[_0x42a512]['isAddSuggestion']&&delete _0x5366c4[_0x42a512]['isAddSuggestion'],_0x5366c4[_0x42a512]['isRemoveSuggestion']&&delete _0x5366c4[_0x42a512]['isRemoveSuggestion'],_0x5366c4[_0x42a512]['isRemoved']&&(_0x5366c4[_0x42a512]['isIncorrect']=!0x0));}return _0x5366c4['filter'](_0x6d2b70=>!_0x6d2b70['isIncorrect']);}['_makeModelFromTape'](_0x135a5d,_0x1eb66e,_0x31f9bf){const _0x55ace7=new vt(),_0x47b5b3=[],_0x15d8ce=new Map(),_0xb3051=this['editor']['model'],_0x4ceb9d=_0xb3051['schema'],_0xdaad0e=[_0x55ace7],_0x258578={},_0x4ccc37={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4e2f85=null;const _0x33fca2=[0x0];for(let _0x54e040=0x0;_0x54e040<_0x135a5d['length'];_0x54e040++)if('elementStart'===_0x135a5d[_0x54e040]['type']){_0x135a5d[_0x54e040]['previousPosition']=_0xb3051['createPositionFromPath'](_0x55ace7,_0x33fca2);const _0x326ace=new ut(_0x135a5d[_0x54e040]['item']['name'],_0x135a5d[_0x54e040]['item']['getAttributes']());_0xdaad0e[0x0]['_appendChild'](_0x326ace),_0x33fca2['push'](0x0),_0xdaad0e['unshift'](_0x326ace),_0x135a5d[_0x54e040]['nextPosition']=_0xb3051['createPositionFromPath'](_0x55ace7,_0x33fca2);}else'elementEnd'===_0x135a5d[_0x54e040]['type']?(_0xdaad0e['shift'](),_0x135a5d[_0x54e040]['previousPosition']=_0xb3051['createPositionFromPath'](_0x55ace7,_0x33fca2),_0x33fca2['pop'](),_0x33fca2[_0x33fca2['length']-0x1]++,_0x135a5d[_0x54e040]['nextPosition']=_0xb3051['createPositionFromPath'](_0x55ace7,_0x33fca2)):(_0x135a5d[_0x54e040]['previousPosition']=_0xb3051['createPositionFromPath'](_0x55ace7,_0x33fca2),_0x4e2f85?_0x4e2f85['_data']+=_0x135a5d[_0x54e040]['item']['data']:_0x4e2f85=new gt(_0x135a5d[_0x54e040]['item']['data'],_0x135a5d[_0x54e040]['item']['getAttributes']()),_0x135a5d[_0x54e040+0x1]&&'text'===_0x135a5d[_0x54e040+0x1]['type']&&_0x1eea2e(_0x4e2f85,_0x135a5d[_0x54e040+0x1]['item'])||(_0xdaad0e[0x0]['_appendChild'](_0x4e2f85),_0x4e2f85=null),_0x33fca2[_0x33fca2['length']-0x1]+=_0x135a5d[_0x54e040]['item']['offsetSize'],_0x135a5d[_0x54e040]['nextPosition']=_0xb3051['createPositionFromPath'](_0x55ace7,_0x33fca2));for(let _0x14b310=0x0;_0x14b310<_0x135a5d['length'];_0x14b310++){const _0x487744=_0x135a5d[_0x14b310]['previousPosition'],_0x75fac4=_0x135a5d[_0x14b310]['nextPosition'];for(const _0x49a5f3 of _0x135a5d[_0x14b310]['markersStart'])_0x15d8ce['set'](_0x49a5f3,{'start':_0x487744,'end':null});_0x2c37e9('isRemoveSuggestion',_0x14b310,_0x487744,_0x75fac4),_0x2c37e9('isAddSuggestion',_0x14b310,_0x487744,_0x75fac4),_0x2c37e9('isRemoved',_0x14b310,_0x487744,_0x75fac4),_0x2c37e9('isAdded',_0x14b310,_0x487744,_0x75fac4);for(const _0x3c079e of _0x135a5d[_0x14b310]['markersEnd']){const _0x5e940e=_0x15d8ce['get'](_0x3c079e);_0x5e940e?_0x5e940e['end']=_0x75fac4:_0x15d8ce['set'](_0x3c079e,{'start':_0x75fac4,'end':_0x75fac4});}}for(const [_0x49f845,_0x8f1b14]of _0x15d8ce){const _0x2af13d=this['editor']['model']['createRange'](_0x8f1b14['start'],_0x8f1b14['end']);_0x55ace7['markers']['set'](_0x49f845,_0x2af13d);}return _0x47b5b3['sort']((_0x4b8d28,_0x2b7517)=>{const _0x5363a5=_0x55ace7['markers']['get']('revision:'+_0x4b8d28['id']),_0x47fd9f=_0x55ace7['markers']['get']('revision:'+_0x2b7517['id']);return _0x5363a5['start']['isBefore'](_0x47fd9f['start'])?-0x1:_0x5363a5['start']['isAfter'](_0x47fd9f['start'])?0x1:_0x5363a5['end']['isBefore'](_0x47fd9f['end'])?-0x1:_0x5363a5['end']['isAfter'](_0x47fd9f['end'])?0x1:'add'===_0x4b8d28['type']?-0x1:0x1;}),{'root':_0x55ace7,'changes':_0x47b5b3};function _0x2c37e9(_0xe889d0,_0x4a1506,_0x2dfe3a,_0x5b274d){const _0x52440e=!!_0x135a5d[_0x4a1506][_0xe889d0],_0x348826=_0x52440e?_0x135a5d[_0x4a1506][_0xe889d0]['userId']:null,_0x2e6485=_0x4a1506===_0x135a5d['length']-0x1,_0x33a9ac=_0x4ccc37[_0xe889d0][0x0],_0x5f3cb3=_0x4ceb9d['isObject'](_0x135a5d[_0x4a1506]['item']);!_0x258578[_0xe889d0]&&_0x52440e?_0x258578[_0xe889d0]={'start':_0x2dfe3a,'tapeItem':_0x135a5d[_0x4a1506],'userId':_0x348826,'type':_0xe889d0}:_0x258578[_0xe889d0]&&!_0x52440e?(_0x258578[_0xe889d0]['end']=_0x2dfe3a,_0x2b7879(_0x258578[_0xe889d0]),_0x258578[_0xe889d0]=null):_0x258578[_0xe889d0]&&_0x52440e&&_0x258578[_0xe889d0]['userId']!==_0x348826&&(_0x258578[_0xe889d0]['end']=_0x2dfe3a,_0x33a9ac&&_0x33a9ac['userId']===_0x258578[_0xe889d0]['userId']||_0x2b7879(_0x258578[_0xe889d0]),_0x258578[_0xe889d0]={'start':_0x2dfe3a,'tapeItem':_0x135a5d[_0x4a1506],'userId':_0x348826,'type':_0xe889d0}),_0x258578[_0xe889d0]&&_0x5f3cb3&&('elementStart'!==_0x135a5d[_0x4a1506]['type']||_0x33a9ac&&_0x33a9ac['userId']===_0x348826||_0x4ccc37[_0xe889d0]['unshift']({'userId':_0x348826,'object':_0x135a5d[_0x4a1506]['item'],'change':_0x258578[_0xe889d0]}),'elementEnd'===_0x135a5d[_0x4a1506]['type']&&_0x33a9ac&&_0x33a9ac['object']===_0x135a5d[_0x4a1506]['item']&&(_0x4ccc37[_0xe889d0]['shift'](),_0x258578[_0xe889d0]=_0x33a9ac['change'])),_0x258578[_0xe889d0]&&_0x2e6485&&(_0x258578[_0xe889d0]['end']=_0x5b274d,_0x2b7879(_0x258578[_0xe889d0]),_0x258578[_0xe889d0]=null);}function _0x2b7879({start:_0x24217e,end:_0xd8baba,tapeItem:_0x3ad5e0,userId:_0x5e6d43,type:_0x5e5367}){const _0x27011a=_0x3ad5e0['item'],_0x124271=_0xb3051['schema']['isBlock'](_0x27011a)&&!_0xb3051['schema']['isLimit'](_0x27011a),_0x29295c=_0x24217e['nodeAfter']==_0xd8baba['parent']&&_0xd8baba['isAtStart'];if(_0x124271&&_0x29295c)return;const _0x2f636d=_0xb3051['createRange'](_0x24217e,_0xd8baba),_0x454ae3=_0x1eb66e['get'](_0x5e6d43),_0x4c06f9=new r({'author':_0x454ae3,'type':'isAdded'==_0x5e5367||'isAddSuggestion'==_0x5e5367?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5e5367||'isRemoveSuggestion'==_0x5e5367},'createdAt':new Date(),'rootName':_0x31f9bf});_0x47b5b3['push'](_0x4c06f9),_0x55ace7['markers']['set']('revision:'+_0x4c06f9['id'],_0x2f636d);}function _0x1eea2e(_0x195659,_0x1c9e9f){const _0x1a299c=_0x195659['getAttributes'](),_0x264640=_0x1c9e9f['getAttributes']();for(const _0xac03c4 of _0x1a299c){if(_0xac03c4[0x1]!==_0x1c9e9f['getAttribute'](_0xac03c4[0x0]))return!0x1;_0x264640['next']();}return _0x264640['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4f253a=>{const _0x4677d3=_0x4f253a['markerName']['split'](':')[0x1],_0x33b492=this['_getChangeFromId'](_0x4677d3);if(!_0x33b492)return null;const _0x3b7dab='add'==_0x33b492['type']?'insertion':'deletion',_0x152fc3=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3b7dab];return _0x33b492['data']['isSuggestion']&&_0x152fc3['push']('ck-suggestion-marker-'+_0x3b7dab+'-new'),this['activeChange']==_0x33b492&&_0x152fc3['push']('ck-suggestion-marker--active'),{'classes':_0x152fc3,'attributes':{'data-change-id':_0x4677d3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x583a5e=>{_0x583a5e['on']('element:pre',(_0x41d6b2,_0x2d14a2,_0x234c37)=>{const _0x4b1fc0=_0x2d14a2['viewItem']['getChild'](0x0);if(!_0x4b1fc0||!_0x4b1fc0['is']('element','code'))return;if(!_0x234c37['consumable']['consume'](_0x4b1fc0,{'attributes':['vid_start','vid_end']}))return;const _0x2b1f6a=_0x2d14a2['modelRange']['start']['nodeAfter'];_0x234c37['writer']['setAttribute']('vid_start',_0x4b1fc0['getAttribute']('vid_start'),_0x2b1f6a),_0x234c37['writer']['setAttribute']('vid_end',_0x4b1fc0['getAttribute']('vid_end'),_0x2b1f6a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x63eeb1=>{_0x63eeb1['on']('element',(_0x175a65,_0x29f765,_0x5122ec)=>{if(!_0x5122ec['consumable']['consume'](_0x29f765['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x29f765['modelRange']['isCollapsed'])return;const _0x1eab9f=_0x29f765['modelRange']['start']['nodeAfter'];_0x1eab9f['hasAttribute']('vid_start')||_0x1eab9f['hasAttribute']('vid')||(_0x5122ec['writer']['setAttribute']('vid_start',_0x29f765['viewItem']['getAttribute']('vid_start'),_0x1eab9f),_0x5122ec['writer']['setAttribute']('vid_end',_0x29f765['viewItem']['getAttribute']('vid_end'),_0x1eab9f));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x43f882=>_0x43f882['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xe4f5ce,[,_0xafbe54])=>{['vid_start','vid_end','vid']['includes'](_0xafbe54)&&(_0xe4f5ce['return']=!0x0,_0xe4f5ce['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1f1fad=>{_0x1f1fad['on']('attribute:vid',(_0x3cd76f,_0xa3cbe8,_0x41e8c5)=>{if('\x20'!=_0xa3cbe8['item']['data']||_0xa3cbe8['item']['parent']['maxOffset']>0x1)return;if(!_0x41e8c5['consumable']['consume'](_0xa3cbe8['item'],_0x3cd76f['name']))return;const _0x552600=_0x41e8c5['writer'],_0x5a59f3=_0x41e8c5['mapper']['toViewRange'](_0xa3cbe8['range']);_0x552600['wrap'](_0x5a59f3,_0x552600['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3116c0){const _0x51922b=_0x3116c0['plugins']['get']('RevisionViewer');return(_0x120ab0,_0x44ab68,_0x432ece)=>{const _0x351edc=_0x44ab68['markerName']['split'](':')[0x1],_0x2b6b24=_0x51922b['_getChangeFromId'](_0x351edc);if(!_0x2b6b24)return null;const _0x3f4a1d='add'==_0x2b6b24['type']?'split':'merge';if(!_0x432ece['consumable']['test'](_0x44ab68['markerRange'],_0x120ab0['name']))return;const _0x638d4d=_0x44ab68['markerRange']['getWalker'](),_0x52097c=_0x44ab68['markerRange']['start'],_0x3ab87d=_0x3116c0['model']['schema'];let _0x5546be=null,_0x2293a4=null,_0x136de1=!0x1,_0x521ceb=!0x1;for(const _0x3ef5b5 of _0x638d4d){const _0x46428c=_0x3ef5b5['item'];_0x136de1=_0x136de1||_0x3ab87d['isContent'](_0x46428c);const _0x337bf5=_0x432ece['mapper']['toViewElement'](_0x46428c);if(_0x337bf5&&_0x337bf5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ef5b5['type']&&(_0x3ab87d['isBlock'](_0x46428c)&&!_0x3ab87d['isLimit'](_0x46428c)&&(_0x46428c['nextSibling']||_0x52097c['isAtEnd']?_0x5546be&&_0x5546be['parent']==_0x46428c||(_0x5546be=_0x46428c,_0x52a8be(_0x3ef5b5['previousPosition']),_0x521ceb=!0x0):_0x2293a4=_0x2293a4||_0x3ef5b5['previousPosition']));}function _0x52a8be(_0xd88c80){const _0x2fe6d9=_0x432ece['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3f4a1d}),_0x18dde5=_0x432ece['mapper']['toViewPosition'](_0xd88c80);_0x2b6b24['data']['isSuggestion']&&_0x432ece['writer']['addClass']('ck-suggestion-marker-'+_0x3f4a1d+'-new',_0x2fe6d9),_0x51922b['activeChange']==_0x2b6b24&&_0x432ece['writer']['addClass']('ck-suggestion-marker--active',_0x2fe6d9),_0x432ece['writer']['insert'](_0x18dde5,_0x2fe6d9),_0x432ece['mapper']['bindElementToMarker'](_0x2fe6d9,_0x44ab68['markerName']);}_0x136de1||_0x521ceb||!_0x2293a4||_0x52a8be(_0x2293a4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1aa85a,_0x463e6a,_0x549348)=>{const _0x43a8a1=_0x549348['mapper']['markerNameToElements'](_0x463e6a['markerName']);if(_0x43a8a1){for(const _0x1f7a90 of _0x43a8a1)(_0x1f7a90['hasClass']('ck-suggestion-marker-split')||_0x1f7a90['hasClass']('ck-suggestion-marker-merge'))&&(_0x549348['mapper']['unbindElementFromMarkerName'](_0x1f7a90,_0x463e6a['markerName']),_0x549348['writer']['remove'](_0x1f7a90));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x115983,_0x3f40b7,_0x424b8b)=>{const _0x44c7a2=_0x3f40b7['markerName']['split'](':')[0x1],_0x20fec5=this['_getChangeFromId'](_0x44c7a2);if(!_0x20fec5)return null;const _0x36bc16='add'==_0x20fec5['type']?'split':'merge';if(_0x424b8b['consumable']['test'](_0x3f40b7['markerRange'],_0x115983['name']))for(const _0x38e8e5 of _0x3f40b7['markerRange']['getItems']()){if(!_0x38e8e5['is']('element','softBreak'))continue;const _0x3dec5d=_0x424b8b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x36bc16}),_0x3870cd=_0x424b8b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x38e8e5));_0x20fec5['data']['isSuggestion']&&_0x424b8b['writer']['addClass']('ck-suggestion-marker-'+_0x36bc16+'-new',_0x3dec5d),this['activeChange']==_0x20fec5&&_0x424b8b['writer']['addClass']('ck-suggestion-marker--active',_0x3dec5d),_0x424b8b['writer']['insert'](_0x3870cd,_0x3dec5d),_0x424b8b['mapper']['bindElementToMarker'](_0x3dec5d,_0x3f40b7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x8962d6=>{for(const _0x53f2f4 of this['editor']['model']['document']['getRootNames']()){const _0x4b873c=this['editor']['model']['document']['getRoot'](_0x53f2f4),_0x21ec26=this['editor']['editing']['view']['document']['getRoot'](_0x53f2f4);if(_0x21ec26){const _0xdffb89=_0x4b873c['getAttribute']('revisionHistoryAttachChange');if(_0x8962d6['removeAttribute']('data-change-id',_0x21ec26),_0x8962d6['removeClass']('ck-revision-history-root-add',_0x21ec26),_0x8962d6['removeClass']('ck-revision-history-root-remove',_0x21ec26),_0x8962d6['removeClass']('ck-revision-history-root--active',_0x21ec26),_0xdffb89){const _0x2ac388=this['_getChangeFromId'](_0xdffb89);if(!_0x2ac388)return null;_0x8962d6['setAttribute']('data-change-id',_0xdffb89,_0x21ec26),_0x8962d6['addClass']('ck-revision-history-root-'+_0x2ac388['type'],_0x21ec26),this['activeChange']==_0x2ac388&&_0x8962d6['addClass']('ck-revision-history-root--active',_0x21ec26);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x227702=>'revision-comment:'+_0x227702,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x309a0d=>'revision-suggestion:'+_0x309a0d,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x560bec=>({'name':'suggestion:'+_0x560bec,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4657b4=>{const _0x2dc1c7=_0x4657b4['markerName']['split'](':')[0x1];return'insertion'!=_0x2dc1c7&&'deletion'!=_0x2dc1c7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2dc1c7]};}}),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',(_0x16e33f,_0x2a90f1,_0x2132d4)=>{const _0x2f8931=_0x2132d4['mapper']['markerNameToElements'](_0x2a90f1['markerName']);if(_0x2f8931){for(const _0x4348ac of _0x2f8931)_0x4348ac['is']('uiElement')&&(_0x2132d4['mapper']['unbindElementFromMarkerName'](_0x4348ac,_0x2a90f1['markerName']),_0x2132d4['writer']['remove'](_0x4348ac));}},{'priority':'high'});}['_getChangeFromId'](_0x107b0a){return this['_changeIdToChange']['get'](_0x107b0a);}['_getViewForChange'](_0x5ae785){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x5ae785),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x372497,_0x59e041,_0x454d41,_0xd0c279)=>{_0xd0c279&&this['_balloon']['remove'](_0xd0c279),_0x454d41&&(this['_balloon']['add']({'view':_0x454d41,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x27c4f7=this['editor']['editing'],_0x2c1506=this['_getChangeFromId'](_0x454d41['changeId']);let _0x3b5ef1;if(_0x2c1506['data']['isOnRoot']){const _0x45e5c5=_0x27c4f7['view']['getDomRoot'](_0x2c1506['rootName']);_0x3b5ef1=Array['from'](_0x45e5c5['getClientRects']());}else{const _0x282fd5=this['editor']['model']['markers']['get']('revision:'+_0x454d41['changeId']);_0x3b5ef1=Array['from'](_0x27c4f7['mapper']['markerNameToElements'](_0x282fd5['name']))['map'](_0x128dcb=>_0x27c4f7['view']['domConverter']['mapViewToDom'](_0x128dcb))['map'](_0x29b340=>Array['from'](_0x29b340['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3b5ef1[0x0];return _0x3b5ef1['find'](_0x535c3b=>_0x535c3b['top']-0x3<=this['_activeViewTarget']['y']&&_0x535c3b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x535c3b['left']-0x3<=this['_activeViewTarget']['x']&&_0x535c3b['right']+0x3>=this['_activeViewTarget']['x'])||_0x3b5ef1[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x5947fd,_0x4b98ca,_0x29a6f6,_0x2942a3)=>{this['activeView']=_0x29a6f6?this['_getViewForChange'](_0x29a6f6):null,this['editor']['model']['change'](()=>{const _0xdf2769=this['editor']['editing'];_0x2942a3&&(_0x2942a3['data']['isOnRoot']?_0xdf2769['view']['change'](_0x2f8d67=>{_0x2f8d67['removeClass']('ck-revision-history-root--active',_0xdf2769['view']['document']['getRoot'](_0x2942a3['rootName']));}):_0xdf2769['reconvertMarker']('revision:'+_0x2942a3['id'])),_0x29a6f6&&(_0x29a6f6['data']['isOnRoot']?_0xdf2769['view']['change'](_0x30e941=>{_0x30e941['addClass']('ck-revision-history-root--active',_0xdf2769['view']['document']['getRoot'](_0x29a6f6['rootName']));}):_0xdf2769['reconvertMarker']('revision:'+_0x29a6f6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x35c616,_0x29e747)=>{if(this['activeChange'])return;const _0x13577c=this['_findChangeIdFromDomTarget'](_0x29e747['target']),_0x55e00a=this['_changeIdToChange']['get'](_0x13577c);_0x55e00a?(this['_activeViewTarget']={'x':_0x29e747['domEvent']['x'],'y':_0x29e747['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x55e00a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4be3f3,_0x4c54de)=>{const _0x448627=this['_findChangeIdFromDomTarget'](_0x4c54de['target']),_0x1ba19e=this['_changeIdToChange']['get'](_0x448627);_0x1ba19e?(this['_activeViewTarget']={'x':_0x4c54de['domEvent']['x'],'y':_0x4c54de['domEvent']['y']},_0x1ba19e===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x1ba19e):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x440684){do{const _0x5c69f5=_0x440684['getAttribute']('data-change-id');if(_0x5c69f5)return _0x5c69f5;_0x440684=_0x440684['parent'];}while(_0x440684);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x23d4f4=>{for(const _0x54b377 of this['editor']['model']['markers'])_0x23d4f4['removeMarker'](_0x54b377);});}}function X(_0x508619,_0x22e3ad){return(_0x3e2427,_0x24db59,_0x3f69b2)=>{if(!_0x3f69b2['consumable']['test'](_0x24db59['markerRange'],_0x3e2427['name']))return;const _0x32f316=_0x24db59['markerRange']['getWalker'](),_0x56a182=_0x24db59['markerRange']['start'],_0x30a887=_0x508619['model']['schema'];let _0x3b2d43=null,_0x53b778=null,_0x25ff26=!0x1,_0x2b38a1=!0x1;for(const _0x5513db of _0x32f316){const _0x6635fc=_0x5513db['item'];_0x25ff26=_0x25ff26||_0x30a887['isContent'](_0x6635fc);const _0x3ac982=_0x3f69b2['mapper']['toViewElement'](_0x6635fc);if(_0x3ac982&&_0x3ac982['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5513db['type']&&(_0x30a887['isBlock'](_0x6635fc)&&!_0x30a887['isLimit'](_0x6635fc)&&(_0x6635fc['nextSibling']||_0x56a182['isAtEnd']?_0x3b2d43&&_0x3b2d43['parent']==_0x6635fc||(_0x3b2d43=_0x6635fc,_0x27dff5(_0x5513db['previousPosition']),_0x2b38a1=!0x0):_0x53b778=_0x53b778||_0x5513db['previousPosition']));}function _0x27dff5(_0x413780){const _0x180900=_0x3f69b2['mapper']['toViewPosition'](_0x413780),_0x51119c=_0x3f69b2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x22e3ad});_0x3f69b2['writer']['insert'](_0x180900,_0x51119c),_0x3f69b2['mapper']['bindElementToMarker'](_0x51119c,_0x24db59['markerName']);}_0x25ff26||_0x2b38a1||!_0x53b778||_0x27dff5(_0x53b778);};}class mt extends _0xfa7dcf{constructor(_0x1994ca){super(_0x1994ca);const _0x62318a=_0x1994ca['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x62318a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x62318a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4e60b7=this['editor'],_0x5b6531=_0x4e60b7['plugins']['get'](m),_0x314af8=_0x5b6531['isReady']?_0x5b6531['diff']['newRevisionId']:null;_0x4e60b7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x314af8);}['refresh'](){const {isReady:_0x6d4e4e,isEnabled:_0x43d037,repository:_0x296f7f,diff:_0xba7a1b}=this['editor']['plugins']['get'](m),_0x31f2e3=_0xba7a1b&&_0x296f7f['getLaterVisibleRevision'](_0xba7a1b['newRevisionId']);this['isEnabled']=_0x6d4e4e&&_0x43d037&&Boolean(_0x31f2e3);}}class wt extends _0xfa7dcf{['_step'];constructor(_0x2943c9,{direction:_0x28f8d1}){super(_0x2943c9);const _0xa4f224=_0x2943c9['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x28f8d1?0x1:-0x1,this['listenTo'](_0xa4f224,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xa4f224,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xa4f224,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x581f9c=this['editor'],_0x4d299e=_0x581f9c['plugins']['get'](m),{isNavigationMode:_0x2d25e7,currentChangeNumber:_0x7709f8}=_0x4d299e;let _0x5ef0cb;if(_0x4d299e['activeChange']=_0x2d25e7?_0x4d299e['diff']['changes']['get'](_0x7709f8+this['_step']):_0x4d299e['diff']['changes']['first'],_0x4d299e['activeChange']['data']['isOnRoot'])_0x5ef0cb=_0x581f9c['editing']['view']['getDomRoot'](_0x4d299e['activeChange']['rootName']);else{const _0xbae7c1=_0x581f9c['model']['markers']['get']('revision:'+_0x4d299e['activeChange']['id']);_0x5ef0cb=_0x27fec6(_0x581f9c['editing'],_0xbae7c1);}_0x14b531({'target':_0x5ef0cb,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2fe302,currentChangeNumber:_0x1c3468,numberOfChanges:_0x1a83b9,isReady:_0x20c353,isEnabled:_0x10b1f8}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x10b1f8&&_0x20c353&&_0x1a83b9)&&(!_0x2fe302||(0x1===this['_step']?_0x1c3468<_0x1a83b9-0x1:_0x1c3468>0x0));}}class di extends ts{constructor(_0x551a88){super(_0x551a88);const _0x327e27=this['bindTemplate'],_0x4255e3=new te(_0x551a88),_0x1a3c8c=new te(_0x551a88);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',(_0x5357c0,_0x3311f5)=>_0x5357c0&&_0x3311f5>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2f2504,_0xc9f0a4,_0x592a5c,_0xdb7271)=>{if(!_0x2f2504)return g(_0x551a88,'Loading...');if(!_0x592a5c)return g(_0x551a88,'No\x20changes');const _0x3cf234=g(_0x551a88,'NUMBER_OF_CHANGES',_0x592a5c);return _0xdb7271?g(_0x551a88,'X_OF_Y_CHANGES',[_0xc9f0a4+0x1,_0x592a5c]):_0x3cf234;}),_0x4255e3['set']({'label':g(_0x551a88,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x538c66}),_0x1a3c8c['set']({'label':g(_0x551a88,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x46ca14}),_0x4255e3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1a3c8c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4255e3['on']('execute',()=>this['fire']('execute','backward')),_0x1a3c8c['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',_0x327e27['if']('_isStatusLabelVisible','ck-hidden',_0x3dd605=>!_0x3dd605)]},'children':[{'text':_0x327e27['to']('isNavigationMode',_0x336a9f=>_0x336a9f?g(_0x551a88,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x551a88,'Total')+':\x20')}]},{'text':_0x327e27['to']('_statusText')}]},new _0x59318d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4255e3,_0x1a3c8c]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0xb5e69f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x216f4=this['editor']['editing']['view'];_0x216f4['change'](_0x5aca76=>{for(const _0x52c9b9 of _0x216f4['document']['roots'])_0x5aca76['addClass'](le,_0x52c9b9);});}['hide'](){const _0x35104a=this['editor']['editing']['view'];_0x35104a['change'](_0x1f3986=>{for(const _0xd7d4d2 of _0x35104a['document']['roots'])_0x1f3986['removeClass'](le,_0xd7d4d2);});}}class R extends _0xb5e69f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,de];}['init'](){const _0x566d8e=this['editor'],_0x5b38e0=_0x566d8e['plugins']['get'](m),_0x1a9a93=_0x566d8e['plugins']['get'](de);_0x566d8e['ui']['componentFactory']['add']('exitToEditing',_0x58b875=>{const _0x4d69e2=new te(_0x58b875);return _0x4d69e2['set']({'label':g(_0x58b875,'Back\x20to\x20editing'),'icon':_0x5de1e4,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4d69e2,'execute',()=>{_0x566d8e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4d69e2;}),_0x566d8e['ui']['componentFactory']['add']('restoreRevision',_0x4f9c15=>{const _0x3496a5=new te(_0x4f9c15);return _0x3496a5['set']({'label':g(_0x4f9c15,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3496a5['bind']('isEnabled')['to'](_0x566d8e['commands']['get']('restoreRevision')),this['listenTo'](_0x3496a5,'execute',()=>_0x566d8e['execute']('restoreRevision')),_0x3496a5;}),_0x566d8e['ui']['componentFactory']['add']('changesNavigation',_0x4c1b59=>{const _0x52d1c3=new di(_0x4c1b59),_0x28c451=_0x566d8e['commands']['get']('showPreviousChange'),_0x2f9075=_0x566d8e['commands']['get']('showNextChange');return _0x52d1c3['bind']('isBackwardNavigationEnabled')['to'](_0x28c451,'isEnabled'),_0x52d1c3['bind']('isForwardNavigationEnabled')['to'](_0x2f9075,'isEnabled'),_0x52d1c3['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x5b38e0),this['listenTo'](_0x52d1c3,'execute',(_0x57a7f5,_0x294575)=>{_0x566d8e['execute']('forward'===_0x294575?'showNextChange':'showPreviousChange');}),_0x52d1c3;}),_0x1a9a93['show'](),_0x5b38e0['on']('change:isReady',(_0x7a6255,_0x1790fd,_0xedf582)=>{_0xedf582?_0x1a9a93['hide']():_0x1a9a93['show']();});}}class at extends _0x2c2338{['_resizeObserver']=null;constructor(_0x19bee7,_0x9fbd3){super(_0x19bee7,_0x9fbd3);const _0x205e3b=this['bindTemplate'];this['set']({'label':g(_0x19bee7,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x19bee7,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x205e3b['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 _0x1ac69e=this['fieldView']['element'];this['_tooltipString']=_0x1ac69e['scrollWidth']>_0x1ac69e['clientWidth']&&_0x1ac69e['value']||'';}}class si extends ts{constructor(_0x83dd52,_0x410933,_0x38e9b8){super(_0x83dd52);const _0x103dee=new _0x24e7a1();_0x103dee['set']({'content':_0x250da2,'viewBox':'0\x200\x2011\x2010'});const _0x1ed6c6=['ck','ck-revision-history-sidebar__revision-author'];_0x38e9b8&&_0x1ed6c6['push']('ck-revision-history-sidebar__revision-author_creator');const _0xaad7ca=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x83dd52,_0x38e9b8?'Revision\x20creator':'Revision\x20author')},'children':[_0x103dee,_0x410933['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ed6c6},'children':_0xaad7ca});}}function oi(_0x2f9d65,_0x27ea98){const _0x4c1f21=_0x2f9d65['bindTemplate'],_0x4c09c9=_0x2f9d65['locale'],_0x96949c=_0x975c3f(_0x4c09c9);_0x96949c['panelPosition']='sw';const _0x36d238=function(_0x490035,_0x2da21d){const _0x2af851=function(_0x33b452,_0x5728b0){const _0x1127b0=_0x33b452['locale'],_0x27481f={'Compare\x20against\x20selected':g(_0x1127b0,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x1127b0,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x1127b0,'Restore\x20this\x20revision')};return _0x5728b0['map'](_0x1f3166=>{const _0x2d1a8c=_0x27481f[_0x1f3166['name']];return _0x2d1a8c&&_0x2d1a8c!==_0x1f3166['name']&&(_0x1f3166['name']=_0x2d1a8c),_0x1f3166;});}(_0x490035,_0x2da21d),_0x3efb02=new _0x13794f();for(const _0x4ffcc8 of _0x2af851){const _0x5ac3e1={'type':'button','model':new to({'label':_0x4ffcc8['name'],'class':_0x4ffcc8['class'],'withText':!0x0,'role':'menuitem','_action':_0x4ffcc8['action']})};_0x5ac3e1['model']['bind']('isEnabled')['to'](_0x490035,'isActionsDropdownOpen',_0x2c1171=>'function'!=typeof _0x4ffcc8['isEnabled']||(!_0x2c1171||_0x4ffcc8['isEnabled'](_0x490035))),_0x3efb02['add'](_0x5ac3e1);}return _0x3efb02;}(_0x2f9d65,_0x27ea98);return _0x2f9d65['bind']('isActionsDropdownOpen')['to'](_0x96949c,'isOpen'),_0x96949c['buttonView']['set']({'label':g(_0x4c09c9,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x550115}),_0x96949c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4c1f21['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4c1f21['to'](_0x1f02a8=>_0x1f02a8['stopPropagation']())}}),_0x96949c['on']('execute',_0x543151=>{_0x2f9d65['isReady']&&'function'==typeof _0x543151['source']['_action']&&_0x543151['source']['_action'](_0x2f9d65);}),_0x21692c(_0x96949c,_0x36d238,{'role':'menu'}),_0x96949c['listenTo'](_0x2f9d65,'change:isActionsDropdownOpen',(_0x429fc8,_0x5799d8,_0x3d5511)=>{if(_0x3d5511)for(const _0xffa7bf of _0x96949c['listView']['items']){const _0x44996d=_0xffa7bf['children']['first'],_0x5d0cd1=_0x27ea98['find'](_0x320c8c=>_0x320c8c['action']===_0x44996d['_action'])['isVisible'];_0xffa7bf['isVisible']=void 0x0===_0x5d0cd1||_0x5d0cd1(_0x2f9d65);}}),_0x96949c;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2c6351,_0x33cdc2,_0x1b5ce8,_0x5bde43){super(_0x2c6351);const _0x5c34ef=this['bindTemplate'],_0x4e5afa=function(_0x3dcce6,_0x31e0d8){const _0x4cde5d=Array['from'](_0x31e0d8['authors'])['filter'](_0x35ccb5=>_0x35ccb5!=_0x31e0d8['creator']);return _0x31e0d8['creator']&&_0x4cde5d['unshift'](_0x31e0d8['creator']),_0x4cde5d['map'](_0x264d64=>new si(_0x3dcce6,_0x264d64,_0x264d64==_0x31e0d8['creator']));}(_0x2c6351,_0x33cdc2);this['id']=_0x33cdc2['id'],this['_revision']=_0x33cdc2,this['_requireRevisionName']=_0x5bde43,this['bind']('name','createdAt')['to'](_0x33cdc2),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xa864ca=>{return _0x26bb54=_0x2c6351['uiLanguage'],(_0x5ceffb=_0xa864ca)['toLocaleDateString'](_0x26bb54,{'month':'long','day':'numeric'})+',\x20'+_0x5ceffb['toLocaleTimeString'](_0x26bb54,{'hour':'numeric','minute':'numeric'});var _0x26bb54,_0x5ceffb;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x2c6351,_0x4aee85),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x186416=>_0x186416||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1ac636,_0x5369c6)=>_0x1ac636&&_0x5369c6),this['revisionActionsView']=_0x1b5ce8&&_0x1b5ce8['length']?oi(this,_0x1b5ce8):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5c34ef['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5c34ef['if']('isEnabled','ck-disabled',_0x4f4e0f=>!_0x4f4e0f),_0x5c34ef['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5c34ef['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5c34ef['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':_0x5c34ef['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':_0x4e5afa}]},this['revisionActionsView']],'on':{'click':_0x5c34ef['to'](_0x4f8e15=>{_0x4f8e15['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x58efae=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x58efae,'change',()=>{this['_requireRevisionName']&&!_0x58efae['value']||this['fire']('setName',{'id':this['id'],'name':_0x58efae['value']}),_0x58efae['value']||(_0x58efae['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x39277b,_0x479bbd){const _0x55578f=_0x2a0d24['fromJSDate'](_0x39277b)['setLocale'](_0x479bbd),_0x10abde=_0x2a0d24['local'](),_0x59c601=_0x10abde['minus']({'days':0x1})['startOf']('day');let _0x1c9c6f,_0x57f10b;return _0x55578f['hasSame'](_0x10abde,'day')?(_0x1c9c6f=_0x55578f['startOf']('day')['toJSDate'](),_0x57f10b=_0x55578f['toRelativeCalendar']()):_0x55578f['hasSame'](_0x59c601,'day')?(_0x1c9c6f=_0x59c601['toJSDate'](),_0x57f10b=_0x55578f['toRelativeCalendar']()):_0x55578f['hasSame'](_0x10abde,'week')?(_0x1c9c6f=_0x55578f['startOf']('week')['toJSDate'](),_0x57f10b=_0x55578f['weekdayLong']||''):_0x55578f['hasSame'](_0x10abde,'year')?(_0x1c9c6f=_0x55578f['startOf']('month')['toJSDate'](),_0x57f10b=_0x55578f['monthLong']||''):(_0x1c9c6f=_0x55578f['startOf']('year')['toJSDate'](),_0x57f10b=String(_0x55578f['year'])),{'startDate':_0x1c9c6f,'localizedPeriodName':_0x57f10b};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2d0fcf,_0x389420,_0x430e67,_0x378a61){super(_0x2d0fcf);const _0x510c07=vi(_0x389420,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x389420,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x430e67,this['_requireRevisionName']=_0x378a61,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':_0x510c07}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x403eb2){const _0xc757a6=new hi(this['locale'],_0x403eb2,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0xc757a6);}['removeRevision'](_0x1e678c){const _0x5ac127=this['revisionViews']['find'](_0x4284de=>_0x4284de['id']===_0x1e678c['id']);this['revisionViews']['remove'](_0x5ac127);}}class as extends ts{constructor(_0x474d87){super(_0x474d87);const _0x211426=new _0x24e7a1();_0x211426['content']=_0x435c8c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x211426,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x474d87,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x7345f3,_0x3b2d11,_0x2c430b,_0x267884){super(_0x7345f3);const _0x4034f5=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3b2d11,this['_revisionActions']=_0x2c430b,this['_requireRevisionName']=_0x267884,this['on']('select',(_0x11e6a1,_0x525ea6)=>{this['fire']('revisionSelected',_0x525ea6);}),this['on']('setName',(_0x3e0395,_0x38f9c0)=>{this['fire']('revisionSetName',_0x38f9c0);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x7345f3),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x4034f5['if']('isEnabled','ck-disabled',_0x3c272d=>!_0x3c272d)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x32ef75 of this['_revisions'])this['_addRevision'](_0x32ef75);this['_revisions']['on']('add',(_0xc84cee,_0x3eda23)=>{this['_addRevision'](_0x3eda23);}),this['_revisions']['on']('remove',(_0x3f092e,_0x41cfff)=>{this['_removeRevision'](_0x41cfff);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x58a384=>_0x58a384['revisionViews']['map'](_0x4690cb=>_0x4690cb))['flat']();}['selectRevision'](_0x433491){for(const _0x54cedb of this['revisionViews'])_0x433491&&_0x433491['id']===_0x54cedb['id']?_0x54cedb['select']():_0x54cedb['deselect']();}['highlightRevisions'](_0x24dcde){for(const _0x537ee7 of this['revisionViews'])_0x24dcde['some'](({id:_0x148083})=>_0x148083===_0x537ee7['id'])?_0x537ee7['highlight']():_0x537ee7['unhighlight']();}['_addRevision'](_0x26727d){const _0x4b5368=vi(_0x26727d['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2184d1=this['timePeriodViews']['get'](0x0);_0x2184d1&&_0x2184d1['startDate']['getTime']()===_0x4b5368['getTime']()||(_0x2184d1=new mi(this['locale'],_0x4b5368,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2184d1)),_0x2184d1['addRevision'](_0x26727d);}['_removeRevision'](_0x2f288f){const _0x2b30b2=vi(_0x2f288f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2b30b2)['removeRevision'](_0x2f288f);}['_getTimePeriodViewByStartDate'](_0x403bbb){return this['timePeriodViews']['find'](_0x35e34d=>_0x35e34d['startDate']['getTime']()===_0x403bbb['getTime']());}}class d extends _0xb5e69f{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x14857d,uid as _0x451426,Collection as _0x3fcc51,logWarning as _0x572bf6,FocusTracker as _0x5a36b0,KeystrokeHandler as _0x37dc31,scrollViewportToShowTarget as _0x5d9a0a,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x4676dd}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x36f289,set as _0x268604,unset as _0x3f51ab,isEqual as _0x4ffb34}from'es-toolkit/compat';import{Plugin as _0x149b28,PendingActions as _0x18e594,Command as _0x2a06ae,ElementApiMixin as _0x5055df,Editor as _0x5c1f04}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x43b4df,getMarkerDomElement as _0x5dbfca,ConfirmMixin as ti,sanitizeEditorConfig as _0x38849b}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x373619,ViewAttributeElement as _0x4df112,ViewEmptyElement as _0x553de7,ViewRawElement as _0x57c601,ViewUIElement as _0x316267,ViewDocumentFragment as _0x118cac,ViewText as _0x589e56,ViewElement as _0x3827c1,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 _0x2f11fa,IconChevronUp as _0x19d9b9,IconChevronDown as _0x44f056,IconUndo as _0x58cf49,IconUser as _0xe5b4b4,IconThreeVerticalDots as _0x28c0d7}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x1d874c,submitHandler as _0x5b119f,LabeledFieldView as _0x256e64,createLabeledInputText as _0xb8ce7b,createDropdown as _0x3c0c02,ListView as _0x5b1655,ListItemView as _0x3f34f5,ButtonView as te,MenuBarMenuView as _0x505352,MenuBarMenuListView as _0x222b9c,MenuBarMenuListItemView as _0x1d2298,MenuBarMenuListItemButtonView as _0x11e198,ContextualBalloon as _0x1663f0,ToolbarSeparatorView as _0x114a41,IconView as _0x418e0a,addListToDropdown as _0x2ce9a1,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 _0x9f88ff}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x14857d(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x55918e){super(),this['id']=_0x55918e['id']||_0x451426(),this['creator']=_0x55918e['creator']||null,this['authors']=_0x55918e['authors']||[],this['diffData']=_0x55918e['diffData']||null,this['toVersion']=_0x55918e['toVersion']||0x0,this['fromVersion']=_0x55918e['fromVersion']||0x0,this['set']('name',_0x55918e['name']||''),this['set']('createdAt',_0x55918e['createdAt']||new Date()),this['set']('attributes',_0x55918e['attributes']||{});}['setName'](_0x1d3cdf){this['_update']({'name':_0x1d3cdf});}['setAttribute'](_0x2174e7,_0xc7aa57){const _0x1c6d15=_0x36f289(this['attributes']);_0x268604(_0x1c6d15,_0x2174e7,_0xc7aa57),this['_update']({'attributes':_0x1c6d15});}['removeAttribute'](_0x2ff3f3){const _0x4ee813=_0x36f289(this['attributes']);_0x3f51ab(_0x4ee813,_0x2ff3f3),this['_update']({'attributes':_0x4ee813});}['_update'](_0x425289,_0x34b4dc=!0x1){let _0x2c3459=!0x1;const _0x1656f8={'id':this['id']},_0x3b11c8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5ab7d9 of _0x3b11c8){const _0x2ac261=_0x425289[_0x5ab7d9];void 0x0!==_0x2ac261&&_0x2ac261!==this[_0x5ab7d9]&&(this[_0x5ab7d9]=_0x2ac261,_0x1656f8[_0x5ab7d9]=_0x2ac261,_0x2c3459=!0x0);}_0x2c3459&&(_0x1656f8['authors']&&(_0x1656f8['authorsIds']=_0x1656f8['authors']['map'](_0x3cb8f7=>_0x3cb8f7['id']),delete _0x1656f8['authors']),this['fire']('_update',_0x1656f8,_0x34b4dc));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3eeb54=>_0x3eeb54['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x149b28{['_revisions'];static get['requires'](){return[_0x43b4df];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x302136){super(_0x302136),this['_revisions']=new _0x3fcc51();}['afterInit'](){!async function(_0x1f9b42){const _0x347073=_0xa8d78f([0x70,0x74,0x78,0x4e,0x41,0x31,0x36,0x42,0x6b,0x73,0x52,0x45,0x79,0x69,0x59,0x6f,0x43,0x55,0x4f,0x71,0x30,0x6e,0x44,0x76,0x50,0x65,0x37,0x75,0x32,0x54,0x68,0x51,0x67,0x62,0x6c,0x4a,0x58,0x4c,0x77,0x34,0x35,0x7a,0x47,0x61,0x6d,0x38,0x5a,0x33,0x64,0x57,0x4b,0x39,0x66,0x53,0x4d,0x46,0x48,0x56,0x63,0x72,0x49,0x6a]),_0x36d9e6=0xeb829,_0x2d9955=0x66e9f56b,_0x305a12=0x66ee9143^_0x2d9955,_0x196f4d=window[_0xa8d78f([0x44,0x61,0x74,0x65])][_0xa8d78f([0x6e,0x6f,0x77])](),_0x236736=_0x1f9b42[_0xa8d78f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x206d07=new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b0009=>{_0x236736[_0xa8d78f([0x6f,0x6e,0x63,0x65])](_0xa8d78f([0x72,0x65,0x61,0x64,0x79]),_0x1b0009);}),_0x56f1af={[_0xa8d78f([0x6b,0x74,0x79])]:_0xa8d78f([0x45,0x43]),[_0xa8d78f([0x75,0x73,0x65])]:_0xa8d78f([0x73,0x69,0x67]),[_0xa8d78f([0x63,0x72,0x76])]:_0xa8d78f([0x50,0x2d,0x32,0x35,0x36]),[_0xa8d78f([0x78])]:_0xa8d78f([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]),[_0xa8d78f([0x79])]:_0xa8d78f([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]),[_0xa8d78f([0x61,0x6c,0x67])]:_0xa8d78f([0x45,0x53,0x32,0x35,0x36])},_0x14ca01=_0x236736[_0xa8d78f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa8d78f([0x67,0x65,0x74])](_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11c174(){let _0x339f7d,_0x1270a8=null,_0x497d62=null;try{if(_0x14ca01==_0xa8d78f([0x47,0x50,0x4c]))return _0xa8d78f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x339f7d=_0x2262ca(),!_0x339f7d)return _0xa8d78f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x339f7d[_0xa8d78f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x497d62=_0x456cf3(_0x339f7d[_0xa8d78f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x339f7d[_0xa8d78f([0x6a,0x74,0x69])])),await _0x35a016()?_0x5de48f()?_0x55cbae()?_0xa8d78f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26b902()?(_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa8d78f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1270a8=_0x401032(_0xa8d78f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa8d78f([0x74,0x72,0x69,0x61,0x6c])&&(_0x1270a8=_0x401032(_0xa8d78f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4de499()):_0xa8d78f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa8d78f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa8d78f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x366ff1){return _0xa8d78f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55cbae(){const _0x3209fc=[_0xa8d78f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa8d78f([0x74,0x72,0x69,0x61,0x6c])][_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x196f4d/0x3e8:0xe10*_0x305a12;return _0x339f7d[_0xa8d78f([0x65,0x78,0x70])]<_0x3209fc;}function _0x5de48f(){const _0x1d1106=_0x339f7d[_0xa8d78f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1d1106)return!0x1;if(_0x1d1106[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x2a])))return!0x0;if(_0x1d1106[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x52,0x48])))return!0x0;if(_0x1d1106[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x52,0x52,0x48]))){if(_0x21aad4())return!0x0;if(_0x3a8a2a()||_0x29abb9())return!0x0;}return!0x1;}function _0x26b902(){const _0x448abd=_0x339f7d[_0xa8d78f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x448abd||0x0==_0x448abd[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x314b64}=new URL(window[_0xa8d78f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x448abd[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x314b64))return!0x0;const _0x991367=_0x314b64[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e]));return _0x448abd[_0xa8d78f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1da43f=>_0x1da43f[_0xa8d78f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa8d78f([0x2a])))[_0xa8d78f([0x6d,0x61,0x70])](_0x10648d=>_0x10648d[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e])))[_0xa8d78f([0x73,0x6f,0x6d,0x65])](_0x2cd346=>_0x991367[_0xa8d78f([0x65,0x76,0x65,0x72,0x79])]((_0x416f68,_0x5b0377)=>_0x2cd346[_0x5b0377]===_0x416f68||_0x2cd346[_0x5b0377]===_0xa8d78f([0x2a])));}function _0x4de499(){return _0x1270a8&&_0x497d62?new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b0ca0,_0x214e88)=>{_0x1270a8[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x1b0ca0,_0x214e88),_0x497d62[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x2db954=>{_0x2db954!=_0xa8d78f([0x56,0x61,0x6c,0x69,0x64])&&_0x1b0ca0(_0x2db954);},_0x214e88);}):_0x1270a8||_0x497d62||_0xa8d78f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x456cf3(_0x419085,_0x27db51){return new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x487d78=>{if(_0x49d4a3())return _0x487d78(_0xa8d78f([0x56,0x61,0x6c,0x69,0x64]));_0xd2640e(),_0x236736[_0xa8d78f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa8d78f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5b4e0c=!0x1;const _0x2b335e=_0x451426();function _0x270293(_0x48f5c9){return!!_0x48f5c9&&(typeof _0x48f5c9===_0xa8d78f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48f5c9===_0xa8d78f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48f5c9[_0xa8d78f([0x74,0x68,0x65,0x6e])]===_0xa8d78f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48f5c9[_0xa8d78f([0x63,0x61,0x74,0x63,0x68])]===_0xa8d78f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e4dd1(_0x5e5cf8){_0x4cd65c(_0x5e5cf8)[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x3eb908=>{if(!_0x3eb908||_0x3eb908[_0xa8d78f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa8d78f([0x6f,0x6b]))return _0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cad42(_0x4fd66f(_0x2b335e+_0x27db51))!=_0x3eb908[_0xa8d78f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa8d78f([0x56,0x61,0x6c,0x69,0x64]);})[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x3445b0=>(_0x2aa3c5(),_0x3445b0),()=>{const _0x29e380=_0xe2b20c();return null==_0x29e380?(_0x2aa3c5(),_0xa8d78f([0x56,0x61,0x6c,0x69,0x64])):_0xa8d78f(_0x196f4d-_0x29e380>(0x42e5716b^_0x2d9955)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x487d78)[_0xa8d78f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x487d78(_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1bcadd=0x66df1beb^_0x2d9955;function _0x2aa3c5(){const _0x4567f4=_0xa8d78f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cad42(_0x4fd66f(_0x419085)),_0x579ac5=_0x3bf081(_0x3cad42(window[_0xa8d78f([0x4d,0x61,0x74,0x68])][_0xa8d78f([0x63,0x65,0x69,0x6c])](_0x196f4d/_0x1bcadd)));window[_0xa8d78f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8d78f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4567f4,_0x579ac5);}function _0xe2b20c(){const _0x47d2bb=_0xa8d78f([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cad42(_0x4fd66f(_0x419085)),_0x20c4fd=window[_0xa8d78f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa8d78f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x47d2bb);return _0x20c4fd?window[_0xa8d78f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bf081(_0x20c4fd),0x10)*_0x1bcadd:null;}function _0x4cd65c(_0x385178){return new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x21ef7e,_0x11ffdb)=>{_0x385178[_0xa8d78f([0x74,0x68,0x65,0x6e])](_0x21ef7e,_0x11ffdb),window[_0xa8d78f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x11ffdb,0x66e821ab^_0x2d9955);});}}_0x236736[_0xa8d78f([0x6f,0x6e])](_0xa8d78f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x331f4b,_0x28db59)=>{if(_0x28db59[0x0]!=_0x419085)return _0x487d78(_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x28db59[0x1]={..._0x28db59[0x1],[_0xa8d78f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2b335e};},{[_0xa8d78f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8d78f([0x68,0x69,0x67,0x68])}),_0x236736[_0xa8d78f([0x6f,0x6e])](_0xa8d78f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x44de77=>{_0x270293(_0x44de77[_0xa8d78f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5b4e0c=!0x0,_0x2e4dd1(_0x44de77[_0xa8d78f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa8d78f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa8d78f([0x6c,0x6f,0x77])}),_0x206d07[_0xa8d78f([0x74,0x68,0x65,0x6e])](()=>{_0x5b4e0c||_0x487d78(_0xa8d78f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49d4a3(){return _0x236736[_0xa8d78f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8d78f([0x76,0x69,0x65,0x77])][_0xa8d78f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa8d78f([0x61,0x75,0x74,0x6f]);}function _0xd2640e(){_0x236736[_0xa8d78f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa8d78f([0x76,0x69,0x65,0x77])][_0xa8d78f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa8d78f([0x61,0x75,0x74,0x6f]);}}function _0x401032(_0x5e56f8){const _0x4f61d2=[new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x440ab5=>setTimeout(_0x440ab5,0x66e0cba7^_0x2d9955)),_0x206d07[_0xa8d78f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bdade=>{const _0x8dc8bb=0x66e9f56c^_0x2d9955,_0x3b6f32=_0x1f9b42[_0xa8d78f([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x184691(){_0x3b6f32[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x8dc8bb&&_0x1bdade();}_0x184691(),_0x3b6f32[_0xa8d78f([0x6f,0x6e])](_0xa8d78f([0x61,0x64,0x64]),_0x184691);})),new window[(_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ba48f=>{function _0x164fad(){for(const _0x464cd5 in window)if(window[_0xa8d78f([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xa8d78f([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x464cd5))&&window[_0x464cd5]==_0x36d9e6)return _0x2ba48f();_0x236736[_0xa8d78f([0x73,0x74,0x61,0x74,0x65])]!=_0xa8d78f([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xa8d78f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x164fad,0x66e9e6e3^_0x2d9955);}_0x12a518(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x164fad();})];return window[_0xa8d78f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa8d78f([0x72,0x61,0x63,0x65])](_0x4f61d2)[_0xa8d78f([0x74,0x68,0x65,0x6e])](()=>_0x5e56f8);}async function _0x3d5a4d(){if(await _0x206d07,_0x12a518(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2cfbaa=_0x1f9b42[_0xa8d78f([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3e0b96=_0x1f9b42[_0xa8d78f([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])](_0x2cfbaa[_0xa8d78f([0x69,0x64])]),_0x1ba8a7=_0x53f4be(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1ba8a7[_0xa8d78f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2cfbaa['id'],_0x3e0b96?_0x3e0b96['id']:null,!0x0),_0x1ba8a7[_0xa8d78f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1ba8a7[_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1ba8a7[_0xa8d78f([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x135e00,void(_0x1ba8a7[_0xa8d78f([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x135e00);}if(_0x12a518(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x196e65=_0x53f4be(_0xa8d78f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x196e65[_0xa8d78f([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x196e65[_0xa8d78f([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x196e65[_0xa8d78f([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x135e00,_0x196e65[_0xa8d78f([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x135e00;}_0x236736[_0xa8d78f([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8d78f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x135e00,_0x236736[_0xa8d78f([0x6d,0x6f,0x64,0x65,0x6c])][_0xa8d78f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x135e00,_0x236736[_0xa8d78f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa8d78f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21aad4(){return _0x12a518(_0xa8d78f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x53f4be(_0xa8d78f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xa8d78f([0x73,0x74,0x61,0x74,0x65])]==_0xa8d78f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3a8a2a(){return _0x12a518(_0xa8d78f([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 _0x29abb9(){return _0x12a518(_0xa8d78f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x316ff8(_0x64181f){const _0x150b23=_0x11db1a();_0x236736[_0x150b23]=_0xa8d78f([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])+_0x64181f,_0x64181f[_0xa8d78f([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xa8d78f([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x11db1a()]=_0x36d9e6),_0x64181f!=_0xa8d78f([0x56,0x61,0x6c,0x69,0x64])&&_0x3d5a4d();}function _0x11db1a(){const _0x466e1f=window[_0xa8d78f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa8d78f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa8d78f([0x6e,0x6f,0x77])]())[_0xa8d78f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa8d78f([0x2e]),'');let _0x50b794=_0xa8d78f([0x70]);for(let _0x201758=0x0;_0x201758<_0x466e1f[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x201758+=0x2){let _0x18caa4=window[_0xa8d78f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x466e1f[_0xa8d78f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x201758,_0x201758+0x2));_0x18caa4>=_0x347073[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x18caa4-=_0x347073[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50b794+=_0x347073[_0x18caa4];}return _0x50b794;}function _0x2262ca(){const _0x3e16de=_0x14ca01[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e]));if(0x3!=_0x3e16de[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1fa5a8(_0x3e16de[0x1]);function _0x1fa5a8(_0x1c1419){const _0x2f894c=_0x148a54(_0x1c1419);return _0x2f894c&&_0x20cad5()?_0x2f894c:null;function _0x20cad5(){const _0x5e96fb=_0x2f894c[_0xa8d78f([0x6a,0x74,0x69])],_0x261452=window[_0xa8d78f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5e96fb[_0xa8d78f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5e96fb[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c9767={..._0x2f894c,[_0xa8d78f([0x6a,0x74,0x69])]:_0x5e96fb[_0xa8d78f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5e96fb[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c9767[_0xa8d78f([0x76,0x63])],_0x4fd66f(_0x1c9767)==_0x261452;}}}async function _0x35a016(){let _0x212007=!0x0;try{const _0x2a882c=_0x14ca01[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])](_0xa8d78f([0x2e])),[_0x10cd9e,_0x21d6c3,_0x4f3875]=_0x2a882c;return _0x3efafe(_0x10cd9e),await _0x15950c(_0x10cd9e,_0x21d6c3,_0x4f3875),_0x212007;}catch(_0x88faf){return!0x1;}function _0x3efafe(_0x389c54){const _0x394254=_0x148a54(_0x389c54);_0x394254&&_0x394254[_0xa8d78f([0x61,0x6c,0x67])]==_0xa8d78f([0x45,0x53,0x32,0x35,0x36])||(_0x212007=!0x1);}async function _0x15950c(_0x5b762e,_0x3baf8f,_0x215255){const _0x4ce583=window[_0xa8d78f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa8d78f([0x66,0x72,0x6f,0x6d])](_0x400e4b(_0x215255),_0x11b918=>_0x11b918[_0xa8d78f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x111db6=new window[(_0xa8d78f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa8d78f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5b762e+_0xa8d78f([0x2e])+_0x3baf8f),_0x1b8009=window[_0xa8d78f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa8d78f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b8009)return;const _0x2eb3b0=await _0x1b8009[_0xa8d78f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa8d78f([0x6a,0x77,0x6b]),_0x56f1af,{[_0xa8d78f([0x6e,0x61,0x6d,0x65])]:_0xa8d78f([0x45,0x43,0x44,0x53,0x41]),[_0xa8d78f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa8d78f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa8d78f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b8009[_0xa8d78f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa8d78f([0x6e,0x61,0x6d,0x65])]:_0xa8d78f([0x45,0x43,0x44,0x53,0x41]),[_0xa8d78f([0x68,0x61,0x73,0x68])]:{[_0xa8d78f([0x6e,0x61,0x6d,0x65])]:_0xa8d78f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2eb3b0,_0x4ce583,_0x111db6)||(_0x212007=!0x1);}}function _0x148a54(_0x33b8df){return _0x33b8df[_0xa8d78f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa8d78f([0x65,0x79]))?JSON[_0xa8d78f([0x70,0x61,0x72,0x73,0x65])](_0x400e4b(_0x33b8df)):null;}function _0x400e4b(_0x53c359){return window[_0xa8d78f([0x61,0x74,0x6f,0x62])](_0x53c359[_0xa8d78f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa8d78f([0x2b]))[_0xa8d78f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa8d78f([0x2f])));}function _0x4fd66f(_0x533ba5){let _0x13d8ba=0x1505;function _0xf3ce3e(_0x8115df){for(let _0x7c0f92=0x0;_0x7c0f92<_0x8115df[_0xa8d78f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7c0f92++){const _0x56c6e7=_0x8115df[_0xa8d78f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7c0f92);_0x13d8ba=(_0x13d8ba<<0x5)+_0x13d8ba+_0x56c6e7,_0x13d8ba&=_0x13d8ba;}}function _0x5c3f4b(_0x8d610d){Array[_0xa8d78f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x8d610d)?_0x8d610d[_0xa8d78f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c3f4b):_0x8d610d&&typeof _0x8d610d==_0xa8d78f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa8d78f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x8d610d)[_0xa8d78f([0x73,0x6f,0x72,0x74])]()[_0xa8d78f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x52cd71,_0x2143ec])=>{_0xf3ce3e(_0x52cd71),_0x5c3f4b(_0x2143ec);}):_0xf3ce3e(window[_0xa8d78f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x8d610d));}return _0x5c3f4b(_0x533ba5),_0x13d8ba>>>0x0;}function _0x3cad42(_0x2a8418){return _0x2a8418[_0xa8d78f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa8d78f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa8d78f([0x30]));}function _0x3bf081(_0xaf7d77){return _0xaf7d77[_0xa8d78f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa8d78f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa8d78f([0x6a,0x6f,0x69,0x6e])]('');}function _0x12a518(_0x4bae2f){return _0x236736[_0xa8d78f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa8d78f([0x68,0x61,0x73])](_0x4bae2f);}function _0x53f4be(_0x258fdb){return _0x236736[_0xa8d78f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xa8d78f([0x67,0x65,0x74])](_0x258fdb);}function _0x135e00(){}function _0xa8d78f(_0x2e4db4){return _0x2e4db4['map'](_0x1528d8=>String['fromCharCode'](_0x1528d8))['join']('');}_0x316ff8(await _0x11c174());}(this);}['createRevision'](_0x347a98){const _0x2a456d=this['editor']['plugins']['get']('Users');return new h({'id':_0x347a98['id'],'name':_0x347a98['name'],'creator':_0x347a98['creatorId']?_0x2a456d['getUser'](_0x347a98['creatorId']):null,'diffData':_0x347a98['diffData']||_0x347a98['data'],'authors':_0x347a98['authorsIds']['map'](_0x3b95c1=>_0x2a456d['getUser'](_0x3b95c1)),'createdAt':new Date(_0x347a98['createdAt']),'attributes':_0x347a98['attributes'],'fromVersion':_0x347a98['fromVersion'],'toVersion':_0x347a98['toVersion']});}['addRevision'](_0x3c5286,_0x45932a=0x0){this['_revisions']['add'](_0x3c5286,_0x45932a);}['getRevision'](_0x3ef819){return this['_revisions']['get'](_0x3ef819);}['getRevisions'](_0x1d79eb={'toJSON':!0x1}){const _0x3cb076=Array['from'](this['_revisions']);return _0x3cb076['reverse'](),_0x1d79eb['toJSON']?_0x3cb076['map'](_0x36845f=>_0x36845f['toJSON']()):_0x3cb076;}['getIndex'](_0x10d027){return this['_revisions']['getIndex'](_0x10d027);}['getEarlierVisibleRevision'](_0x2a2eb7){const [,_0x414d89]=this['getRevisionsIterator'](_0x2a2eb7,{'direction':'earlier'});return _0x414d89;}['getLaterVisibleRevision'](_0x34330c){const [,_0x13786e]=this['getRevisionsIterator'](_0x34330c,{'direction':'later'});return _0x13786e;}['getRevisionsInDiff'](_0xd1542f){const _0xf8adca=[];for(const _0x28cc40 of this['getRevisionsIterator'](_0xd1542f['newRevisionId']))if(_0xf8adca['push'](_0x28cc40),_0x28cc40['id']===_0xd1542f['oldRevisionId'])break;return _0xf8adca;}*['getRevisionsIterator'](_0x1b41b8,{direction:_0x27fd0a='earlier',filter:_0x3a733c=()=>!0x0}={}){const _0x471e19='earlier'===_0x27fd0a?0x1:-0x1;let _0x2543f0=this['_revisions']['get'](_0x1b41b8),_0x5333f5=this['getIndex'](_0x2543f0);for(yield _0x2543f0;_0x2543f0;){if(_0x5333f5+=_0x471e19,_0x2543f0=this['getRevision'](_0x5333f5),!_0x2543f0)return;_0x3a733c(_0x2543f0)&&(yield _0x2543f0);}}}class V extends _0x149b28{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x373619,'c'],[_0x4df112,'a'],[_0x553de7,'e'],[_0x57c601,'r'],[_0x316267,'u']]);['_typeCharToViewClass']=new Map([['c',_0x373619],['a',_0x4df112],['e',_0x553de7],['r',_0x57c601],['u',_0x316267]]);async['loadRevisionData'](_0x558f16,_0x23cd18){if(_0x558f16['diffData']||!_0x23cd18)return;const _0x747bd7=this['editor']['config']['get']('collaboration.channelId'),_0x37da63=await _0x23cd18['getRevision']({'channelId':_0x747bd7,'revisionId':_0x558f16['id']});_0x558f16['diffData']=_0x37da63['diffData'];}['getRevisionDocumentData'](_0x1fba23){const _0x5db67f={};for(const _0x382771 in _0x1fba23['diffData']){if(_0x1fba23['diffData'][_0x382771]['attachChange']&&!_0x1fba23['diffData'][_0x382771]['attachChange']['isAttached'])continue;const _0x285b72=this['_removeRevisionMarkers'](JSON['parse'](_0x1fba23['diffData'][_0x382771]['insertions'])),_0x305341=this['editor']['editing']['view']['document'],_0x6934a9=new _0x118cac(_0x305341,_0x285b72['map'](_0x12b8d5=>this['_getViewFromDiffObj'](_0x12b8d5,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5db67f[_0x382771]=this['editor']['data']['processor']['toData'](_0x6934a9),this['editor']['data']['processor']['useFillerType']('default');}return _0x5db67f;}['getRevisionRootsAttributes'](_0x46286b){const _0x19650f={};for(const _0x285c0d in _0x46286b['diffData'])_0x46286b['diffData'][_0x285c0d]['attachChange']&&!_0x46286b['diffData'][_0x285c0d]['attachChange']['isAttached']||(_0x19650f[_0x285c0d]=_0x46286b['diffData'][_0x285c0d]['attributesAfter']||{});return _0x19650f;}['_getTypeCharForViewElement'](_0x5b9bb7){return this['_viewClassToTypeChar']['get'](_0x5b9bb7['constructor']);}['_getViewFromDiffObj'](_0x3fbc43,_0x260761){const _0x3d6c81=this['editor']['editing']['view']['document'];if('string'==typeof _0x3fbc43)return new _0x589e56(_0x3d6c81,_0x3fbc43);{let _0xb38308,_0x3305a7;_0x3305a7='u'==_0x3fbc43['type']||'r'==_0x3fbc43['type']?[]:_0x3fbc43['children']['map'](_0x2c6c01=>this['_getViewFromDiffObj'](_0x2c6c01,_0x260761));const _0x4780ef=this['_typeCharToViewClass']['get'](_0x3fbc43['type'])||_0x3827c1,_0x3cb807=this['editor']['data']['htmlProcessor']['domConverter'];if(_0xb38308=new _0x4780ef(_0x3d6c81,_0x3fbc43['name'],_0x3fbc43['attributes'],_0x3305a7),'u'==_0x3fbc43['type']&&_0x3fbc43['children'][0x0]){const _0x2fbde2=_0x3fbc43['children'][0x0];if(_0xb38308['render']=function(_0x119e40){const _0x139c54=_0x119e40['createElement']('div');return _0x139c54['innerHTML']=_0x2fbde2,_0x139c54['childNodes'][0x0];},_0x260761){const _0x4d6efc=new _0x118cac(_0x3d6c81);_0x4d6efc['_appendChild'](_0xb38308);const _0x5562a2=Array['from'](_0x3cb807['viewChildrenToDom'](_0x4d6efc,{'bind':!0x1})),_0x2afb72=_0x3cb807['domDocument']['createElement']('div');_0x2afb72['append'](..._0x5562a2),_0xb38308=Array['from'](_0x3cb807['domChildrenToView'](_0x2afb72))[0x0];}}else{if('r'==_0x3fbc43['type']&&_0x3fbc43['children'][0x0]){const _0x4122db=_0x3fbc43['children'][0x0];if(_0xb38308['render']=function(_0x44ce16){_0x44ce16['innerHTML']=_0x4122db;},_0x260761){const _0x2e7652=new _0x118cac(_0x3d6c81);_0x2e7652['_appendChild'](_0xb38308);const _0x393add=Array['from'](_0x3cb807['viewChildrenToDom'](_0x2e7652,{'bind':!0x1})),_0x18c271=_0x3cb807['domDocument']['createElement']('div');_0x18c271['append'](..._0x393add);const _0x529792=Array['from'](_0x3cb807['domChildrenToView'](_0x18c271));_0x529792['length']>0x1?_0xb38308['_appendChild'](_0x529792):_0xb38308=_0x529792[0x0];}}}if(_0x3fbc43['customProperties']){for(const [_0x3ee65b,_0x6692fe]of _0x3fbc43['customProperties'])_0xb38308['_setCustomProperty'](_0x3ee65b,_0x6692fe);}const _0x1fb870=void 0x0===_0x3fbc43['fillerOffset']?null:_0x3fbc43['fillerOffset'];return null!==_0x1fb870&&(_0xb38308['getFillerOffset']=()=>_0x1fb870),_0xb38308;}}['_makeModelFromViewString'](_0x29ea40){const _0x546a43=JSON['parse'](_0x29ea40),_0x1256b2=this['editor']['editing']['view']['document'],_0x1c964f=new _0x118cac(_0x1256b2,_0x546a43['map'](_0x490e56=>this['_getViewFromDiffObj'](_0x490e56,!0x0)));return this['editor']['data']['toModel'](_0x1c964f);}['_removeRevisionMarkers'](_0x2bc5ac){return(_0x2bc5ac=_0x2bc5ac['filter'](_0x13ac06=>!_0x13ac06['name']||'revision-start'!==_0x13ac06['name']&&'revision-end'!==_0x13ac06['name']))['forEach'](_0xb860ff=>{'string'!=typeof _0xb860ff&&(_0xb860ff['children']=this['_removeRevisionMarkers'](_0xb860ff['children']),_0xb860ff['attributes']=_0xb860ff['attributes']['filter'](_0x200778=>!_0x200778[0x0]['startsWith']('data-revision-')));}),_0x2bc5ac;}}function g(_0xd19fa1,_0x51c3fb,_0x57903f){const t=_0xd19fa1['t'];switch(_0x51c3fb){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'},_0x57903f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x57903f);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 _0x149b28{['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[_0x43b4df,I,V,_0x18e594];}constructor(_0x54e999){super(_0x54e999),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 _0x13222a=_0x451426();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x13222a},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 _0x16acdc=this['repository']['getRevision'](0x0),_0xf0880d=_0x16acdc&&null===_0x16acdc['creator']?_0x16acdc:null;if(this['_continueCurrentRevision']=!!_0xf0880d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x460da4=this['_source']['getCurrentRevisionId'](),_0x570f5f=this['repository']['getRevision'](_0x460da4);if(_0x570f5f)this['_startingVersion']=_0x570f5f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2eefb8=this['_source']['history']['_operations']['find'](_0x2cd0a3=>!_0x2cd0a3['_isInit']),_0x158d59=_0x2eefb8?_0x2eefb8['baseVersion']:this['_source']['history']['version'];_0x16acdc?(_0x16acdc['toVersion']<_0x158d59&&_0x16acdc['_update']({'toVersion':_0x158d59}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xf0880d['id'],this['_startingVersion']=_0xf0880d['fromVersion']):(this['_startingVersion']=_0x16acdc['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x158d59,this['_continueCurrentRevision']=!0x1);}}else _0xf0880d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xf0880d['toVersion'],this['editor']['model']['document']['history']['version']),_0xf0880d['fromVersion']===_0xf0880d['toVersion']?(0x0!==_0xf0880d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xf0880d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xf0880d['id'],this['_startingVersion']=_0xf0880d['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',_0x43e0cb=>!_0x43e0cb),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32c7b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5cd912;for(const _0x311acb in _0x32c7b9){const _0x1a8a80=_0x311acb,_0x271f34=_0x32c7b9[_0x1a8a80];if('revisionHistoryLicenseKeyValid'==_0x271f34||'revisionHistoryLicenseKeyInvalid'==_0x271f34||'revisionHistoryLicenseKeyExpired'==_0x271f34||'revisionHistoryLicenseKeyDomainLimit'==_0x271f34||'revisionHistoryLicenseKeyNotAllowed'==_0x271f34||'revisionHistoryLicenseKeyEvaluationLimit'==_0x271f34||'revisionHistoryLicenseKeyTrialLimit'==_0x271f34||'revisionHistoryLicenseKeyUsageLimit'==_0x271f34){delete _0x32c7b9[_0x1a8a80],_0x5cd912=_0x271f34,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5cd912&&_0x32c7b9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5cd912&&_0x32c7b9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5cd912&&_0x32c7b9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5cd912&&_0x32c7b9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4bf71e=this['repository']['getRevision'](0x0),_0x4093d2=await this['getRevisionDocumentData'](_0x4bf71e),_0x324c95=await this['getRevisionRootsAttributes'](_0x4bf71e);this['_replaceEditorDataWithRevisionData'](_0x4093d2,_0x324c95);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x328ba0){this['_source']=_0x328ba0;}async['update'](){const _0x1f678e=await this['_source']['getLatestVersion']();if(_0x1f678e>this['currentRevision']['toVersion']){await this['_loadState']();const _0x21f281=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1f678e});_0x21f281['authors']=_0x21f281['authorsIds']['map'](_0x37477b=>this['editor']['plugins']['get']('Users')['getUser'](_0x37477b)),this['currentRevision']['_update'](_0x21f281);}}async['saveRevision'](_0x4a58b8={},_0x2bf369=null){const _0x14f008=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2bf369>this['currentRevision']['toVersion']&&(_0x2bf369=null),null===_0x2bf369&&(_0x2bf369=await this['_source']['getLatestVersion']());const _0x377dad=this['_getFromVersion'](_0x2bf369),_0x5a0060=this['buildRevisionData']({'from':_0x377dad,'to':_0x2bf369});if(this['currentRevision']['toVersion']<_0x2bf369){const _0x377ecd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2bf369,'to':_0x2bf369});_0x377ecd['authors']=[],_0x377ecd['authorsIds']=[],_0x377ecd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x377ecd,!0x0),delete _0x377ecd['authors'],_0x14f008['push'](_0x377ecd);}_0x4a58b8['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a58b8['name']=_0x4a58b8['name']||null,_0x4a58b8['id']=_0x4a58b8['id']||_0x451426(),_0x4a58b8={..._0x4a58b8,..._0x5a0060};const _0x282264=this['addRevisionData'](_0x4a58b8);_0x14f008['push'](_0x4a58b8);const _0x509f59=this['repository']['getIndex'](_0x282264);if(0x0!==_0x509f59){const _0x264460=this['repository']['getRevision'](_0x509f59-0x1);if(_0x264460['fromVersion']!==_0x2bf369){const _0x3f1d0b=this['_revisionDataBuilder']['getData'](_0x2bf369,_0x264460['toVersion']),_0x1458a8={'id':_0x264460['id'],'diffData':_0x3f1d0b['diffData'],'authorsIds':_0x3f1d0b['authorsIds'],'authors':_0x3f1d0b['authorsIds']['map'](_0x586774=>this['editor']['plugins']['get']('Users')['getUser'](_0x586774)),'fromVersion':_0x2bf369};_0x264460===this['currentRevision']&&(_0x1458a8['createdAt']=new Date(_0x4a58b8['createdAt']['getTime']()+0xa)),_0x264460['_update'](_0x1458a8,!0x0),delete _0x1458a8['authors'],_0x14f008['push'](_0x1458a8);}}if(this['adapter']){for(const _0x35c9f8 of _0x14f008)this['_bufferUpdate'](_0x35c9f8['id'],_0x35c9f8,!0x0);this['sendBufferedUpdates']();}return _0x282264;}['addRevisionData'](_0x540bbb){const _0x4de68f=this['repository']['createRevision'](_0x540bbb);return this['adapter']&&_0x4de68f['on']('_update',(_0xa094bf,_0x1f299d,_0x54c272)=>{_0x54c272||(this['_bufferUpdate'](_0x1f299d['id'],_0x1f299d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4de68f,this['_findInsertionIndex'](_0x4de68f)),_0x4de68f;}async['getRevisionDocumentData'](_0x2f22a4){return await this['_utils']['loadRevisionData'](_0x2f22a4,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2f22a4);}async['getRevisionRootsAttributes'](_0x52ee05){return await this['_utils']['loadRevisionData'](_0x52ee05,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x52ee05);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1183d7=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x7ed4b1=0x0;_0x7ed4b1<_0x1183d7['length'];_0x7ed4b1++){const _0xb8cdda=_0x1183d7[_0x7ed4b1];let _0x2a3710=!0x1;for(const _0x238d8c of Object['keys'](_0xb8cdda))void 0x0===_0xb8cdda[_0x238d8c]?delete _0xb8cdda[_0x238d8c]:'id'!==_0x238d8c&&(_0x2a3710=!0x0);_0x2a3710||(_0x1183d7[_0x7ed4b1]=null);}if(_0x1183d7=_0x1183d7['filter'](_0x4469cc=>null!==_0x4469cc),!_0x1183d7['length'])return;for(let _0x54a08c=0x0;_0x54a08c<_0x1183d7['length'];_0x54a08c++){const _0x32d175=_0x1183d7[_0x54a08c];void 0x0!==_0x32d175['fromVersion']&&void 0x0===_0x32d175['toVersion']&&(_0x32d175['toVersion']=this['repository']['getRevision'](_0x32d175['id'])['toVersion']),void 0x0!==_0x32d175['toVersion']&&void 0x0===_0x32d175['fromVersion']&&(_0x32d175['fromVersion']=this['repository']['getRevision'](_0x32d175['id'])['fromVersion']);}const _0x3215ab=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1183d7,_0x3215ab)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3e8bce=>{if(_0x3e8bce){for(const _0x4dbcd5 of _0x3e8bce)this['setRevisionData']({'id':_0x4dbcd5['id'],'createdAt':_0x4dbcd5['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2526bd=null,from:_0x2d2817=null,to:_0x318d4c=null}){_0x2d2817=null!==_0x2d2817?_0x2d2817:_0x2526bd['fromVersion'],_0x318d4c=null!==_0x318d4c?_0x318d4c:_0x2526bd['toVersion'];const _0x43fc84=this['_revisionDataBuilder']['getData'](_0x2d2817,_0x318d4c),_0x1fc533={'diffData':_0x43fc84['diffData'],'authorsIds':_0x43fc84['authorsIds'],'fromVersion':_0x2d2817,'toVersion':_0x318d4c};if(!_0x2526bd||_0x318d4c!==_0x2526bd['toVersion']){const _0x13ec8d=_0x318d4c-0x1,_0x562e75=this['_source']['history']['getOperation'](_0x13ec8d);_0x1fc533['createdAt']=_0x562e75&&_0x562e75['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2d2817===this['_loadedStateData']['fromVersion']){for(const _0x244c7c of this['_loadedStateData']['authors'])_0x1fc533['authorsIds']['includes'](_0x244c7c['id'])||_0x1fc533['authorsIds']['push'](_0x244c7c['id']);}return _0x1fc533;}['_bufferUpdate'](_0x58f6dc,_0x26524b,_0x3e8605){if(this['_bufferedUpdates']['has'](_0x58f6dc)){const _0x43bf64=this['_bufferedUpdates']['get'](_0x58f6dc);_0x26524b=_0x3e8605?{..._0x43bf64,..._0x26524b}:{..._0x26524b,..._0x43bf64};}this['_bufferedUpdates']['set'](_0x58f6dc,_0x26524b);}['setRevisionData'](_0x161333){const _0x461474=this['repository']['getRevision'](_0x161333['id']);if(_0x161333['createdAt']&&(_0x161333['createdAt']=new Date(_0x161333['createdAt'])),_0x161333['authorsIds']){const _0x4d68e8=this['editor']['plugins']['get']('Users');_0x161333['authors']=_0x161333['authorsIds']['map'](_0x5366ed=>_0x4d68e8['getUser'](_0x5366ed));}_0x461474['_update'](_0x161333,!0x0);}['_createInitialRevision'](_0x572449){const _0x395e09=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x395e09)this['_initialRevisionId']=_0x395e09['id'];else{const _0x2b4b45=!this['editor']['model']['document']['roots']['find'](_0x5a8849=>this['editor']['model']['hasContent'](_0x5a8849)),_0x6bee8=this['editor']['plugins']['get']('Users')['me']['id'],_0x40643c=g(this['editor']['locale'],_0x2b4b45?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x572449,'to':_0x572449,'id':this['_initialRevisionId'],'name':_0x40643c,'creatorId':_0x6bee8});}}['_createCurrentRevision'](_0x4a9136){const _0x1baef0=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1baef0),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4a9136,'to':_0x4a9136,'id':_0x1baef0,'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'](_0x561c82,_0x3bd6d8){let _0x11781b=this['editor']['config']['get']('initialData'),_0x3b1630=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x11781b){_0x11781b={};for(const _0x32fc67 of this['editor']['model']['document']['getRootNames']())_0x11781b[_0x32fc67]='';}if('string'==typeof _0x11781b&&(_0x11781b={'main':_0x11781b}),void 0x0===_0x3b1630){_0x3b1630={};for(const _0x17d02c of this['editor']['model']['document']['getRootNames']())_0x3b1630[_0x17d02c]={};}let _0xec287b=!0x1;const _0x5e03de=Object['keys'](_0x11781b),_0x1b5986=Object['keys'](_0x561c82);for(const _0xf0c2be of _0x5e03de){if(_0x11781b[_0xf0c2be]!==_0x561c82[_0xf0c2be]&&''!==_0x11781b[_0xf0c2be]['trim']()){_0xec287b=!0x0;break;}if(!_0x4ffb34(_0x3b1630[_0xf0c2be],_0x3bd6d8[_0xf0c2be])&&Object['keys'](_0x3b1630[_0xf0c2be])['length']>0x0){_0xec287b=!0x0;break;}}_0xec287b||(_0xec287b=_0x1b5986['some'](_0x52a48e=>!this['editor']['model']['document']['getRoot'](_0x52a48e))),_0xec287b&&_0x572bf6('editor-initial-data-replaced-with-revision-data',{'editorData':_0x11781b,'editorRootsAttributes':_0x3b1630,'revisionData':_0x561c82,'revisionRootsAttributes':_0x3bd6d8}),this['editor']['config']['set']('initialData',_0x561c82),this['editor']['config']['set']('rootsAttributes',_0x3bd6d8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x45698a=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x45698a['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1d4c71){const _0x5467f4=this['repository']['getRevisions']();_0x5467f4['reverse']();let _0x20c40a=0x0;for(;_0x20c40a<_0x5467f4['length'];){const _0x40aff5=_0x5467f4[_0x20c40a];if(_0x40aff5===this['currentRevision']){_0x20c40a++;continue;}if(_0x40aff5['id']===this['_initialRevisionId'])break;const _0x24dbdf=_0x1d4c71['toVersion']-_0x40aff5['toVersion']||_0x1d4c71['fromVersion']-_0x40aff5['fromVersion'];if(_0x24dbdf>0x0)break;if(_0x24dbdf<0x0)_0x20c40a++;else{if(!_0x1d4c71['creator']&&_0x40aff5['creator'])break;if(_0x40aff5['creator']||!_0x1d4c71['creator']){if(_0x1d4c71['createdAt']>_0x40aff5['createdAt'])break;_0x20c40a++;}else _0x20c40a++;}}return _0x20c40a;}['_getFromVersion'](_0x236540){const _0x25b101=this['repository']['getRevisions']();_0x25b101['reverse'](),_0x25b101['shift']();const _0x56e59c=_0x25b101['find'](_0x1ed966=>_0x1ed966['toVersion']<=_0x236540)['toVersion'];return _0x56e59c<this['_startingVersion']?this['_startingVersion']:_0x56e59c;}['_makeRevision']({name:_0x39367d,from:_0x1be0fd,to:_0x580b0f,creatorId:_0x177918,id:_0x4fc596}){const _0x418815=this['buildRevisionData']({'from':_0x1be0fd,'to':_0x580b0f});_0x418815['name']=_0x39367d,_0x418815['creatorId']=_0x177918,_0x418815['id']=_0x4fc596;const _0x2261de=this['addRevisionData'](_0x418815);return this['adapter']&&this['_bufferUpdate'](_0x418815['id'],_0x418815,!0x0),_0x2261de;}['_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(_0x41a494){this['editor']=_0x41a494,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'](_0x4ee7a2){this['source']=_0x4ee7a2;const _0x421bd3=new Map(),_0x450256=new Map(),_0x1fc223=this['editor']['model']['document']['roots']['map'](_0x5e3c64=>_0x5e3c64['rootName']);for(const _0x41ad47 of _0x1fc223){const _0x597e27=this['editor']['model']['document']['getRoot'](_0x41ad47),_0x3250ce=N(_0x597e27);_0x421bd3['set'](_0x41ad47,_0x3250ce),_0x450256['set'](_0x41ad47,Object['fromEntries'](_0x597e27['getAttributes']()));}const _0xaa2a68=Array['from'](this['editor']['model']['markers'])['map'](_0x103c5f=>[_0x103c5f['name'],_0x103c5f['getRange']()]),_0xd36af7=this['source']['version'];this['_saveMetaData'](_0xd36af7,_0x421bd3,_0xaa2a68,_0x450256),this['_startingRevisionId']=this['_revisionId'];const _0x23538a=new Map(),_0x5b00f5=new Map();for(const _0xa0b432 of _0x1fc223){const _0x5d9d2a=P(_0xa0b432);_0x23538a['set'](_0xa0b432,_0x5d9d2a),_0x5b00f5['set'](_0xa0b432,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x23538a,[],_0x5b00f5);}['getData'](_0xc5184b,_0x3173){if(this['_lastFrom']===_0xc5184b&&this['_lastTo']<=_0x3173)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3173,!0x0);else{if(!this['_savedMetaData']['has'](_0xc5184b)){const _0x54e40c=this['_getPreviousFrom'](_0xc5184b);this['_calculateMetaData'](_0x54e40c,_0xc5184b,!0x1);}this['_calculateMetaData'](_0xc5184b,_0x3173,!0x0);}return this['_lastFrom']=_0xc5184b,this['_lastTo']=_0x3173,this['_getState']();}['loadState'](_0x17af4a){const _0x1d18a0=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x17af4a['fromVersion'],this['_lastTo']=_0x17af4a['toVersion'];for(const _0x514625 in _0x17af4a['diffData']){const _0x523468=_0x17af4a['diffData'][_0x514625]['attachChange'],_0x44983b=_0x36f289(_0x17af4a['diffData'][_0x514625]['attributesBefore'])||{},_0x47ebc7=_0x1d18a0['_makeModelFromViewString'](_0x17af4a['diffData'][_0x514625]['deletions']);_0x47ebc7['rootName']=_0x514625,_0x47ebc7['_isAttached']=!_0x523468||!_0x523468['isAttached'],_0x47ebc7['isAttached']=()=>_0x47ebc7['_isAttached'],this['_baseRoots']['set'](_0x514625,_0x47ebc7),this['_baseRootsAttributes']['set'](_0x514625,_0x44983b),_0x523468&&this['_touchedRoots']['set'](_0x514625,_0x523468);const _0x141fbd=this['_makeIdsRoot'](_0x47ebc7);this['_baseIdsRoots']['set'](_0x514625,_0x141fbd);for(const [_0x14541f,_0x3d0d9c]of _0x47ebc7['markers']){if(!_0x14541f['startsWith']('revision:'))continue;const _0xf46957=_0x14541f['split'](':')[0x2];for(const _0x4f81bd of _0x3d0d9c['getWalker']({'singleCharacters':!0x0})){const _0x36734e=this['_getVidAttributeName'](_0x4f81bd),_0xf92552='elementEnd'==_0x4f81bd['type']?_0x4f81bd['previousPosition']['path']['slice'](0x0,-0x1):_0x4f81bd['previousPosition']['path'],_0x69c053=_0x141fbd['getNodeByPath'](_0xf92552)['getAttribute'](_0x36734e);this['_touched']['set'](_0x69c053,{'userId':_0xf46957});}}}this['_startingRevisionId']=this['_revisionId'];const _0x19d1a8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x202001=>!this['_touched']['has'](_0x202001));let _0x5877dd=0x0;const _0x5021e2=new Map();for(const _0x47494c in _0x17af4a['diffData']){const _0x472d6f=_0x17af4a['diffData'][_0x47494c]['attachChange'],_0x522ef9=_0x36f289(_0x17af4a['diffData'][_0x47494c]['attributesAfter'])||{},_0x2a1758=_0x1d18a0['_makeModelFromViewString'](_0x17af4a['diffData'][_0x47494c]['insertions']);_0x2a1758['rootName']=_0x47494c,_0x2a1758['_isAttached']=!_0x472d6f||_0x472d6f['isAttached'],_0x2a1758['isAttached']=()=>_0x2a1758['_isAttached'],this['_diffRoots']['set'](_0x47494c,_0x2a1758),this['_diffRootsAttributes']['set'](_0x47494c,_0x522ef9);const _0x19b57a=this['_makeIdsRoot'](_0x2a1758,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x47494c,_0x19b57a),_0x5021e2['set'](_0x47494c,_0x2a1758['isAttached']()?_0x522ef9:{});for(const [_0xf2c72f,_0xa5e36d]of _0x2a1758['markers']){if(!_0xf2c72f['startsWith']('revision:'))continue;const _0x1ef01=_0xf2c72f['split'](':')[0x2];for(const _0x13ae1e of _0xa5e36d['getWalker']({'singleCharacters':!0x0})){const _0xc59763=this['_getVidAttributeName'](_0x13ae1e),_0x2dafdf=this['_revisionId']++,_0x13dcd5='elementEnd'==_0x13ae1e['type']?_0x13ae1e['previousPosition']['path']['slice'](0x0,-0x1):_0x13ae1e['previousPosition']['path'];_0x19b57a['getNodeByPath'](_0x13dcd5)['_setAttribute'](_0xc59763,_0x2dafdf),this['_touched']['set'](_0x2dafdf,{'userId':_0x1ef01});}}for(const _0x26cdfa of this['editor']['model']['createRangeIn'](_0x2a1758)['getWalker']({'singleCharacters':!0x0})){const _0x3dbecd=this['_getVidAttributeName'](_0x26cdfa),_0x4a1e29='elementEnd'==_0x26cdfa['type']?_0x26cdfa['previousPosition']['path']['slice'](0x0,-0x1):_0x26cdfa['previousPosition']['path'],_0x5b8902=_0x19b57a['getNodeByPath'](_0x4a1e29);_0x5b8902['getAttribute'](_0x3dbecd)>0x0||_0x5b8902['_setAttribute'](_0x3dbecd,_0x19d1a8[_0x5877dd++]);}for(const [_0x9059b8,_0x17f4e4]of _0x2a1758['markers'])_0x9059b8['startsWith']('revision:')||this['_markers']['set'](_0x9059b8,_0x17f4e4);}const _0x188c17=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x188c17),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x188c17,0x1));const _0x249b1f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x249b1f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x249b1f,0x1));const _0xc924f2=Array['from'](this['_diffRoots'])['map'](([_0x5294f3,_0x38f96a])=>[_0x5294f3,N(_0x38f96a)]);this['_saveMetaData'](this['_lastTo'],_0xc924f2,this['_markers'],_0x5021e2);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x35419d,_0x26e088,_0x59e77f,_0x454ddc){const _0x55efe2=new Map(_0x26e088),_0x268a09=new Map(_0x36f289(_0x454ddc)),_0x1542d7=new Map();for(const [_0x324a82,_0x2ae49f]of _0x59e77f)_0x1542d7['set'](_0x324a82,{'start':_0x2ae49f['start']['clone'](),'end':_0x2ae49f['end']['clone'](),'rootName':_0x2ae49f['root']['rootName']});this['_savedMetaData']['set'](_0x35419d,{'roots':_0x55efe2,'markers':_0x1542d7,'rootsAttributes':_0x268a09});}['_removeMetaData'](_0x394398){this['_savedMetaData']['delete'](_0x394398);}['_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'](_0x1edfbe,_0x3d580b=null){let _0x2fe6d0=null;_0x1edfbe['is']('documentFragment')||(_0x2fe6d0=new ut(_0x1edfbe['name'],{'vid_start':null===_0x3d580b?this['_revisionId']++:_0x3d580b++}));const _0xe2ed05=[];for(const _0x48fac0 of _0x1edfbe['getChildren']())if(_0x48fac0['is']('element')){_0xe2ed05['push'](this['_makeIdsRoot'](_0x48fac0,_0x3d580b));const _0x7ed459=_0xe2ed05[_0xe2ed05['length']-0x1];null!==_0x3d580b&&(_0x3d580b=_0x7ed459['is']('element','$text')?_0x7ed459['getAttribute']('vid')+0x1:_0x7ed459['getAttribute']('vid_end')+0x1);}else{for(let _0x12c997=0x0;_0x12c997<_0x48fac0['offsetSize'];_0x12c997++)_0xe2ed05['push'](new ut('$text',{'vid':null===_0x3d580b?this['_revisionId']++:_0x3d580b++}));}if(_0x1edfbe['is']('documentFragment')){const _0x5595ee=P(_0x1edfbe['rootName']);return _0x5595ee['_insertChild'](0x0,_0xe2ed05),_0x5595ee;}return _0x2fe6d0['_setAttribute']('vid_end',null===_0x3d580b?this['_revisionId']++:_0x3d580b++),_0x2fe6d0['_insertChild'](0x0,_0xe2ed05),_0x2fe6d0;}['_calculateMetaData'](_0x293a32,_0x124794,_0x1d99e5){this['_reset']();const {roots:_0xaa6d33,markers:_0x407c58,rootsAttributes:_0x668982}=this['_savedMetaData']['get'](_0x293a32);this['_baseRoots']=new Map(_0xaa6d33),this['_baseRootsAttributes']=new Map(_0x36f289(_0x668982));for(const [_0x578190,_0x3279a0]of this['_baseRoots'])if('$graveyard'!==_0x578190&&(this['_diffRoots']['set'](_0x578190,N(_0x3279a0)),this['_diffRootsAttributes']=new Map(_0x36f289(_0x668982)),_0x1d99e5)){const _0x36f251=this['_revisionId'];this['_idsRoots']['set'](_0x578190,this['_makeIdsRoot'](_0x3279a0)),this['_baseIdsRoots']['set'](_0x578190,this['_makeIdsRoot'](_0x3279a0,_0x36f251));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x1d99e5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4a479b,_0x51e6c3]of _0x407c58){const _0x3ee25c=this['_baseRoots']['get'](_0x51e6c3['rootName']),_0x410cb6=this['_diffRoots']['get'](_0x51e6c3['rootName']),_0x3e9434=new lt(this['_fixPosition'](_0x51e6c3['start'],_0x3ee25c),this['_fixPosition'](_0x51e6c3['end'],_0x3ee25c)),_0x257492=this['_fixRange'](_0x3e9434,_0x410cb6);_0x3ee25c['markers']['set'](_0x4a479b,_0x3e9434),this['_markers']['set'](_0x4a479b,_0x257492);}this['_applyOperations'](_0x293a32,_0x124794,_0x1d99e5);}['_applyOperations'](_0x5189cc,_0x3ad93f,_0x2c482a){for(const _0x40980d of this['source']['getOperations'](_0x5189cc,_0x3ad93f))this['_handleOperation'](_0x40980d,_0x2c482a);for(const _0x19b8d4 of this['_diffRoots']['values']())_0x19b8d4['markers']['clear']();for(const [_0x25fe9a,_0x2a8524]of this['_markers']){this['_diffRoots']['get'](_0x2a8524['root']['rootName'])['markers']['set'](_0x25fe9a,_0x2a8524['clone']());}const _0x905fb=new Map(),_0x1e9a2c=new Map();for(const [_0x1b24b9,_0x5a8c53]of this['_diffRoots'])_0x905fb['set'](_0x1b24b9,N(_0x5a8c53)),_0x1e9a2c['set'](_0x1b24b9,this['_diffRootsAttributes']['get'](_0x1b24b9));this['_saveMetaData'](_0x3ad93f,_0x905fb,this['_markers'],_0x1e9a2c);}['_getPreviousFrom'](_0x12f73d){const _0x434711=Array['from'](this['_savedMetaData']['keys']());_0x434711['sort']((_0x1702b4,_0x22e4c0)=>_0x1702b4-_0x22e4c0),_0x434711['reverse']();for(const _0x270d1f of _0x434711)if(_0x270d1f<_0x12f73d)return _0x270d1f;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x18d30a,_0x44ab4f){const _0x85bc62=Array['from'](_0x44ab4f['markers'])['map'](([_0x356ed8,_0x423499])=>[_0x356ed8,this['_fixRange'](_0x423499,_0x18d30a)]);_0x18d30a['markers']=new Map(_0x85bc62);}['_transformMarkers'](_0x5c1ce1){for(const _0x23117c of this['_markers']['values']()){const _0x419e5b=_0x23117c['getTransformedByOperation'](_0x5c1ce1),_0x953940=lt['_createFromRanges'](_0x419e5b);_0x23117c['start']=_0x953940['start'],_0x23117c['end']=_0x953940['end'];}}['_handleOperation'](_0x43fcfa,_0x352f4a){if('addRoot'!=_0x43fcfa['type']&&'detachRoot'!=_0x43fcfa['type']){if('insert'==_0x43fcfa['type']){const _0xa06b31=_0x43fcfa['position']['root']['rootName'];this['_diffRoots']['has'](_0xa06b31)||(this['_diffRoots']['set'](_0xa06b31,P(_0xa06b31,!0x0)),this['_diffRootsAttributes']['set'](_0xa06b31,{}),_0x352f4a&&this['_idsRoots']['set'](_0xa06b31,P(_0xa06b31,!0x0)));}else{if('addRootAttribute'==_0x43fcfa['type']||'removeRootAttribute'==_0x43fcfa['type']||'changeRootAttribute'==_0x43fcfa['type'])return void this['_handleRootAttributeOperation'](_0x43fcfa);'marker'==_0x43fcfa['type']&&this['_handleMarkerOperation'](_0x43fcfa);}if('marker'!==_0x43fcfa['type']){const _0x1c3211=this['_cloneOperation'](_0x43fcfa,this['_diffRoots']);_0x1c3211['_execute'](),this['_transformMarkers'](_0x1c3211);}if(_0x352f4a)switch(_0x43fcfa['type']){case'insert':this['_handleInsertOperation'](_0x43fcfa);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x43fcfa);break;case'merge':this['_handleMergeOperation'](_0x43fcfa);break;case'split':this['_handleSplitOperation'](_0x43fcfa);}}else this['_handleRootOperation'](_0x43fcfa,_0x352f4a);}['_cloneOperation'](_0x3daeb4,_0x50d8ce){const _0xcdbcaf=_0x3daeb4['clone']();return _0xcdbcaf['_authorId']=_0x3daeb4['_authorId'],this['_fixOperation'](_0xcdbcaf,_0x50d8ce),_0xcdbcaf;}['_getBaseVids'](_0x50ff87){return _0x50ff87['map'](_0x550a7a=>{const _0xb91be0=this['_getVidAttributeName'](_0x550a7a);return Number(_0x550a7a['item']['getAttribute'](_0xb91be0));});}['_generateTape'](_0x37ec04,_0x637c4e){if(_0x37ec04['is']('element','$text'))_0x637c4e['push']({'item':_0x37ec04,'type':'text'});else{_0x37ec04['is']('element')&&_0x637c4e['push']({'item':_0x37ec04,'type':'elementStart'});for(const _0x5da0ee of _0x37ec04['getChildren']())this['_generateTape'](_0x5da0ee,_0x637c4e);_0x37ec04['is']('element')&&_0x637c4e['push']({'item':_0x37ec04,'type':'elementEnd'});}return _0x637c4e;}['_getState'](){const _0x5f49f3=new Map(this['_touched']),_0x6326b5=new Map(_0x5f49f3),_0x29d491=new Map(),_0x31d825={'insertions':{},'deletions':{}},_0x2c8887={'insertions':{},'deletions':{}},_0x1428ae=new Map(),_0x5ce9b7=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5ce9b7['delete']('$graveyard');for(const _0x46e723 of _0x5ce9b7){const _0x302b56=this['_diffRoots']['get'](_0x46e723)||P(_0x46e723,!0x1),_0x450054=this['_baseRoots']['get'](_0x46e723)||P(_0x46e723,!0x1);_0x302b56['isAttached']()||_0x450054['isAttached']()?(_0x31d825['insertions'][_0x46e723]=N(_0x302b56),_0x31d825['deletions'][_0x46e723]=N(_0x450054),this['_copyMarkers'](_0x31d825['deletions'][_0x46e723],_0x450054),this['_copyMarkers'](_0x31d825['insertions'][_0x46e723],_0x302b56),_0x2c8887['insertions'][_0x46e723]=this['_generateTape'](this['_idsRoots']['get'](_0x46e723),[]),_0x2c8887['deletions'][_0x46e723]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x46e723)||P(_0x46e723,!0x1),[])):_0x5ce9b7['delete'](_0x46e723);}for(const _0x51b728 of _0x5ce9b7){const _0xc70d0f=_0x2c8887['insertions'][_0x51b728];for(const _0x9e2301 of _0xc70d0f){const _0x5e27b3=this['_getVidAttributeName'](_0x9e2301),_0x4b5a3b=_0x9e2301['item']['getAttribute'](_0x5e27b3);_0x6326b5['delete'](_0x4b5a3b),_0x4b5a3b>=this['_startingRevisionId']&&_0x29d491['set'](_0x4b5a3b,_0x5f49f3['get'](_0x4b5a3b));}}for(const _0x4a0f19 of _0x5ce9b7){const _0x3f1332=_0x2c8887['insertions'][_0x4a0f19],_0xc71957=this['_getBaseVids'](_0x2c8887['deletions'][_0x4a0f19]);let _0x52f8e3=0x0;for(const _0x3a62b2 of _0x3f1332){const _0x479ac3=this['_getVidAttributeName'](_0x3a62b2),_0x51353b=_0x3a62b2['item']['getAttribute'](_0x479ac3);if(!_0x29d491['has'](_0x51353b)&&!_0x1428ae['has'](_0x51353b)){if(_0x6326b5['has'](_0x51353b))_0x52f8e3++;else{if(_0x51353b!=_0xc71957[_0x52f8e3]){const _0x55d8f2=_0x5f49f3['get'](_0x51353b)||_0x5f49f3['get'](_0xc71957[_0x52f8e3]);for(;_0x51353b!=_0xc71957[_0x52f8e3];)_0x6326b5['has'](_0xc71957[_0x52f8e3])||(_0x1428ae['set'](_0xc71957[_0x52f8e3],_0x55d8f2),_0x5f49f3['set'](_0xc71957[_0x52f8e3],_0x55d8f2)),_0x52f8e3++;}_0x52f8e3++;}}}}for(const _0x9633b3 of _0x5ce9b7){const _0x11f0af=_0x2c8887['insertions'][_0x9633b3];for(const _0x86215e of _0x11f0af){const _0x41e8a2=this['_getVidAttributeName'](_0x86215e),_0x1f8438=_0x86215e['item']['getAttribute'](_0x41e8a2);if(_0x1428ae['has'](_0x1f8438)){const _0x519d2d=_0x1428ae['get'](_0x1f8438);_0x6326b5['has'](_0x1f8438)||_0x6326b5['set'](_0x1f8438,{..._0x519d2d}),_0x29d491['set'](_0x1f8438,{..._0x519d2d});}}}for(const _0x406473 of _0x6326b5['keys']())_0x406473>=this['_startingRevisionId']&&_0x6326b5['delete'](_0x406473);const _0x386dca=new Map();for(const _0x17fda8 of _0x5ce9b7){let _0x3b82b9=_0x2c8887['insertions'][_0x17fda8];for(const _0x545a17 of _0x3b82b9)if(_0x545a17['item']['is']('element','tableCell')){const _0x5a252a=this['_getVidAttributeName'](_0x545a17),_0x1904cd=_0x545a17['item']['getAttribute'](_0x5a252a);if(_0x29d491['has'](_0x1904cd)){const _0x11a1af=_0x545a17['item']['parent']['parent']['getAttribute']('vid_start'),_0x5b6dc1=_0x386dca['get'](_0x11a1af)||new Set();_0x5b6dc1['add'](_0x29d491['get'](_0x1904cd)['userId']),_0x386dca['set'](_0x11a1af,_0x5b6dc1);}}_0x3b82b9=_0x2c8887['deletions'][_0x17fda8];for(const _0x59f51b of _0x3b82b9)if(_0x59f51b['item']['is']('element','tableCell')){const _0x402f43=this['_getVidAttributeName'](_0x59f51b),_0x5c00f8=_0x59f51b['item']['getAttribute'](_0x402f43);if(_0x6326b5['has'](_0x5c00f8)){const _0x2955b0=_0x59f51b['item']['parent']['parent']['getAttribute']('vid_start'),_0x59326e=_0x386dca['get'](_0x2955b0)||new Set();_0x59326e['add'](_0x6326b5['get'](_0x5c00f8)['userId']),_0x386dca['set'](_0x2955b0,_0x59326e);}}for(const _0x218855 of _0x386dca['keys']())(_0x29d491['has'](_0x218855)||_0x6326b5['has'](_0x218855))&&_0x386dca['delete'](_0x218855);}for(const _0x42b2b2 of _0x5ce9b7){const _0x425c25=_0x2c8887['insertions'][_0x42b2b2];let _0x3f1039=null,_0x3c4b72=null;for(const _0x3801df of _0x425c25){const _0x203601=this['_getVidAttributeName'](_0x3801df),_0x71b32f=_0x3801df['item']['getAttribute'](_0x203601),_0x15f38c=_0x386dca['get'](_0x71b32f);_0x15f38c&&'elementStart'==_0x3801df['type']&&(_0x3f1039=Array['from'](_0x15f38c)[0x0],_0x3c4b72=_0x3801df['item']['getAttribute']('vid_end')),_0x3f1039&&(_0x6326b5['set'](_0x71b32f,{'userId':_0x3f1039}),_0x29d491['set'](_0x71b32f,{'userId':_0x3f1039})),_0x71b32f==_0x3c4b72&&(_0x3f1039=null,_0x3c4b72=null);}}const _0x17ff1e={},_0x3b6054=new Set();for(const _0x5c269c of _0x5ce9b7){const _0x232cfa=_0x31d825['deletions'][_0x5c269c],_0x273365=_0x31d825['insertions'][_0x5c269c];for(const {userId:_0x5b5bb0}of this['_touchedMarkers']['values']())null!==_0x5b5bb0&&_0x3b6054['add'](_0x5b5bb0);for(const {userId:_0x165e5f}of this['_touchedRoots']['values']())null!==_0x165e5f&&_0x3b6054['add'](_0x165e5f);this['_markChanges'](_0x273365,_0x2c8887['insertions'][_0x5c269c],_0x29d491,'insertion',_0x3b6054),this['_markChanges'](_0x232cfa,_0x2c8887['deletions'][_0x5c269c],_0x6326b5,'deletion',_0x3b6054),_0x17ff1e[_0x5c269c]={'insertions':this['_prepareViewToSave'](_0x273365),'deletions':this['_prepareViewToSave'](_0x232cfa),'attachChange':this['_touchedRoots']['get'](_0x5c269c)||null,'attributesBefore':_0x36f289(this['_baseRootsAttributes']['get'](_0x5c269c))||{},'attributesAfter':_0x36f289(this['_diffRootsAttributes']['get'](_0x5c269c))};}return{'diffData':_0x17ff1e,'authorsIds':Array['from'](_0x3b6054)};}['_processRootBeforeSave'](_0x41a7f1){for(const [,_0x19bbe0]of _0x41a7f1['markers']){const _0x400877=_0x19bbe0['start']['getAncestors']()['filter'](_0x7264c0=>'tableCell'==_0x7264c0['name']);for(const _0x26e858 of _0x400877)0x1==_0x26e858['childCount']&&_0x26e858['getChild'](0x0)['is']('element','paragraph')&&_0x26e858['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1e1ff6){this['_processRootBeforeSave'](_0x1e1ff6);const _0x4d0099=this['editor']['data']['toView'](_0x1e1ff6,{}),_0x3a2686=Array['from'](_0x4d0099['getChildren']())['map'](_0x310bb6=>this['_getViewJson'](_0x310bb6));return JSON['stringify'](_0x3a2686);}['_getViewJson'](_0x5d9103){if(_0x5d9103['is']('$text'))return _0x5d9103['data'];{const _0x3df6e4=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0xcd1216=_0x5d9103,_0x4c03ad=this['editor']['data']['htmlProcessor']['domConverter'],_0x278afa={'type':_0x3df6e4['_getTypeCharForViewElement'](_0xcd1216),'name':_0xcd1216['name'],'attributes':Array['from'](_0xcd1216['getAttributes']()),'children':Array['from'](_0xcd1216['getChildren']())['map'](_0x3fc44a=>this['_getViewJson'](_0x3fc44a))};if(_0x5d9103['is']('uiElement')&&'$comment'!=_0x5d9103['name']){const _0x2d469c=_0x5d9103['render'](_0x4c03ad['domDocument'],_0x4c03ad);_0x278afa['children']['push'](_0x2d469c['outerHTML']);}else{if(_0x5d9103['is']('rawElement')){const _0x4753b9=_0x4c03ad['domDocument']['createElement'](_0xcd1216['name']);_0x5d9103['render'](_0x4753b9,_0x4c03ad),_0x278afa['children']['push'](_0x4753b9['innerHTML']);}}const _0x4ae966=Array['from'](_0xcd1216['getCustomProperties']());_0x4ae966['length']>0x0&&(_0x278afa['customProperties']=_0x4ae966);const _0x5ec59b=_0xcd1216['getFillerOffset']();return null!==_0x5ec59b&&(_0x278afa['fillerOffset']=_0x5ec59b),_0x278afa;}}['_markChanges'](_0x3f4a16,_0x58a16b,_0x1e1b2c,_0x24b61e,_0x114d07){let _0x182ec3=null,_0x1f137b=null,_0x1e189b=0x0;const _0x19f232=this['editor']['model'];for(let _0xde32d2=0x0;_0xde32d2<_0x58a16b['length'];_0xde32d2++){const _0x3d5b88=this['_getVidAttributeName'](_0x58a16b[_0xde32d2]),_0x33b786=_0x58a16b[_0xde32d2]['item']['getAttribute'](_0x3d5b88),_0x364f27=_0x1e1b2c['get'](_0x33b786),_0x38fec3=_0xde32d2==_0x58a16b['length']-0x1;(!_0x182ec3&&_0x364f27&&(_0x182ec3=_0x364f27,_0x1f137b=_0x58a16b[_0xde32d2]),_0x182ec3&&(!_0x364f27||_0x364f27['userId']!=_0x182ec3['userId']))&&(_0x5b7aca(_0x364f27,F(_0x1f137b,_0x3f4a16,_0x19f232),F(_0x58a16b[_0xde32d2],_0x3f4a16,_0x19f232)),_0x182ec3=_0x364f27||null,_0x1f137b=_0x364f27?_0x58a16b[_0xde32d2]:null),_0x182ec3&&_0x38fec3&&_0x5b7aca(_0x364f27,F(_0x1f137b,_0x3f4a16,_0x19f232),B(_0x58a16b[_0xde32d2],_0x3f4a16,_0x19f232));}function _0x5b7aca(_0x3f45c6,_0x41f18d,_0xfe9161){const _0x21516d=_0x182ec3['userId'],_0x559f2d='revision:'+_0x24b61e+':'+_0x21516d+':'+_0x1e189b++,_0x5b0541=_0x19f232['createRange'](_0x41f18d,_0xfe9161);_0x3f4a16['markers']['set'](_0x559f2d,_0x5b0541),null!==_0x21516d&&_0x114d07['add'](_0x21516d);}}['_getVidAttributeName'](_0x55008f){switch(_0x55008f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xf84edd,_0x5d4e60){_0xf84edd['baseVersion']=null;for(const _0x4439ae in _0xf84edd){const _0xd8d9be=_0xf84edd[_0x4439ae];if(_0xd8d9be instanceof ft){const _0x299d34=_0x5d4e60['get'](_0xd8d9be['root']['rootName']);_0xf84edd[_0x4439ae]=this['_fixPosition'](_0xd8d9be,_0x299d34);}if(_0xd8d9be instanceof lt){const _0x3d5321=_0x5d4e60['get'](_0xd8d9be['root']['rootName']);_0xf84edd[_0x4439ae]=this['_fixRange'](_0xd8d9be,_0x3d5321);}'root'===_0x4439ae&&(_0xf84edd['root']=_0x5d4e60['get'](_0xf84edd['root']['rootName']));}}['_fixRange'](_0x3d8714,_0x5c6d3a){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3d8714['start'],_0x5c6d3a),this['_fixPosition'](_0x3d8714['end'],_0x5c6d3a));}['_fixPosition'](_0x5cb701,_0x525976){return this['editor']['model']['createPositionFromPath'](_0x525976,_0x5cb701['path'],_0x5cb701['stickiness']);}['_handleInsertOperation'](_0x262b45){const _0x5307a9=this['_idsRoots']['get'](_0x262b45['position']['root']['rootName']),_0x3b0610=this['_fixPosition'](_0x262b45['position'],_0x5307a9),_0x27e9a2=null===_0x262b45['_authorId']?null:_0x262b45['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x68cd7f=_0x3b0610['parent'],_0x4161ea=this['_revisionId'],_0x2906b4=[];for(const _0xf24ed1 of _0x262b45['nodes'])if(_0xf24ed1['is']('element'))_0x2906b4['push'](this['_makeIdsRoot'](_0xf24ed1));else{for(let _0x438acd=0x0;_0x438acd<_0xf24ed1['offsetSize'];_0x438acd++)_0x2906b4['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4e139a=this['_revisionId'];for(let _0x450f8e=_0x4161ea;_0x450f8e<_0x4e139a;_0x450f8e++)this['_touched']['set'](_0x450f8e,{'userId':_0x27e9a2});_0x68cd7f['_insertChild'](_0x3b0610['offset'],_0x2906b4);}['_handleMoveOperation'](_0x3bd06d){(_0x3bd06d=this['_cloneOperation'](_0x3bd06d,this['_idsRoots']))['_execute']();const _0x1e2495=null===_0x3bd06d['_authorId']?null:_0x3bd06d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x171eb8=_0x3bd06d['getMovedRangeStart'](),_0x1b0eb1=_0x171eb8['parent'],_0x370494=_0x171eb8['offset'];!function _0x4da2b3(_0x2781f9,_0x7c4ce4,_0x562275,_0xdd6d93){for(let _0x539633=_0x562275;_0x539633<_0xdd6d93;_0x539633++){const _0x148328=_0x7c4ce4['getChild'](_0x539633);_0x148328['is']('element','$text')?_0x2781f9['set'](_0x148328['getAttribute']('vid'),{'userId':_0x1e2495}):(_0x2781f9['set'](_0x148328['getAttribute']('vid_start'),{'userId':_0x1e2495}),_0x4da2b3(_0x2781f9,_0x148328,0x0,_0x148328['childCount']),_0x2781f9['set'](_0x148328['getAttribute']('vid_end'),{'userId':_0x1e2495}));}}(this['_touched'],_0x1b0eb1,_0x370494,_0x370494+_0x3bd06d['howMany']);}['_handleMergeOperation'](_0x32ab64){const _0xe4acb8=null===(_0x32ab64=this['_cloneOperation'](_0x32ab64,this['_idsRoots']))['_authorId']?null:_0x32ab64['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5c01fb=_0x32ab64['targetPosition']['parent'],_0x56d082=_0x32ab64['sourcePosition']['parent'],_0x21fdd8=_0x5c01fb['getAttribute']('vid_end'),_0x401b3c=_0x56d082['getAttribute']('vid_start');_0x5c01fb['_setAttribute']('vid_end',_0x56d082['getAttribute']('vid_end')),_0x56d082['_setAttribute']('vid_end',_0x21fdd8),this['_touched']['set'](_0x401b3c,{'userId':_0xe4acb8}),this['_touched']['set'](_0x21fdd8,{'userId':_0xe4acb8}),_0x32ab64['_execute']();}['_handleSplitOperation'](_0x5404af){const _0x1b9821=null===(_0x5404af=this['_cloneOperation'](_0x5404af,this['_idsRoots']))['_authorId']?null:_0x5404af['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x568084=_0x5404af['graveyardPosition'],_0x5f4015=_0x5404af['splitPosition']['parent'];_0x5404af['_execute']();const _0x271da5=_0x5f4015['getAttribute']('vid_end'),_0x3c58d2=_0x5404af['insertionPosition']['nodeAfter'];if(_0x568084){const _0x5973b6=_0x3c58d2['getAttribute']('vid_end'),_0x39d990=_0x5f4015['getAttribute']('vid_end');_0x5f4015['_setAttribute']('vid_end',_0x5973b6),_0x3c58d2['_setAttribute']('vid_end',_0x39d990),this['_touched']['set'](_0x5f4015['getAttribute']('vid_end'),{'userId':_0x1b9821}),this['_touched']['set'](_0x3c58d2['getAttribute']('vid_start'),{'userId':_0x1b9821});}else{const _0x5a350b=this['_revisionId']++,_0x171fb8=this['_revisionId']++;_0x5f4015['_setAttribute']('vid_end',_0x5a350b),_0x3c58d2['_setAttribute']('vid_start',_0x171fb8),_0x3c58d2['_setAttribute']('vid_end',_0x271da5),this['_touched']['set'](_0x5a350b,{'userId':_0x1b9821}),this['_touched']['set'](_0x171fb8,{'userId':_0x1b9821});}}['_handleMarkerOperation'](_0x375dc1){if(!_0x375dc1['affectsData'])return;const _0x438f89=(_0x375dc1=this['_cloneOperation'](_0x375dc1,this['_diffRoots']))['oldRange']?_0x375dc1['oldRange']['root']:null,_0x4272e3=_0x375dc1['newRange']?_0x375dc1['newRange']['root']:null;_0x438f89&&this['_markers']['delete'](_0x375dc1['name']),_0x4272e3&&this['_markers']['set'](_0x375dc1['name'],_0x375dc1['newRange']['clone']());const _0xcfed27=null===_0x375dc1['_authorId']?null:_0x375dc1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x575bbd=_0x375dc1['name'];if(!this['_touchedMarkers']['has'](_0x575bbd))return void this['_touchedMarkers']['set'](_0x575bbd,{'range':_0x375dc1['oldRange'],'userId':_0xcfed27});const _0x12bf72=this['_touchedMarkers']['get'](_0x575bbd),_0x9bc576=_0x12bf72['range'],_0x279a03=_0x375dc1['newRange'];null==_0x9bc576&&null==_0x279a03||_0x9bc576&&_0x279a03&&_0x9bc576['isEqual'](_0x279a03)?this['_touchedMarkers']['delete'](_0x375dc1['name']):_0x12bf72['userId']=_0xcfed27;}['_handleRootOperation'](_0xa93cfc,_0x4bf02c){this['_diffRoots']['has'](_0xa93cfc['rootName'])?this['_diffRoots']['get'](_0xa93cfc['rootName'])['_isAttached']=_0xa93cfc['isAdd']:(this['_diffRoots']['set'](_0xa93cfc['rootName'],P(_0xa93cfc['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xa93cfc['rootName'],{}),_0x4bf02c&&this['_idsRoots']['set'](_0xa93cfc['rootName'],P(_0xa93cfc['rootName'],!0x0)));const _0x5b5fbc=null===_0xa93cfc['_authorId']?null:_0xa93cfc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x403f89=this['_touchedRoots']['get'](_0xa93cfc['rootName']);_0x403f89&&_0x403f89['userId']===_0x5b5fbc?this['_touchedRoots']['delete'](_0xa93cfc['rootName']):this['_touchedRoots']['set'](_0xa93cfc['rootName'],{'userId':_0x5b5fbc,'isAttached':_0xa93cfc['isAdd']});}['_handleRootAttributeOperation'](_0x55fa24){const _0x3593c0=this['_diffRootsAttributes']['get'](_0x55fa24['root']['rootName']);null===_0x55fa24['newValue']?delete _0x3593c0[_0x55fa24['key']]:_0x3593c0[_0x55fa24['key']]=_0x55fa24['newValue'];}}function N(_0x57bb9f){const _0xcfb389=P(_0x57bb9f['rootName'],_0x57bb9f['isAttached']());for(const _0x2332b2 of _0x57bb9f['getChildren']()){const _0x2729ae=_0x2332b2['_clone'](!0x0);_0xcfb389['_appendChild'](_0x2729ae);}return _0xcfb389;}function P(_0x434ad7,_0x44c56f=!0x0){const _0x581458=new vt();return _0x581458['rootName']=_0x434ad7,_0x581458['_isAttached']=_0x44c56f,_0x581458['isAttached']=()=>_0x581458['_isAttached'],_0x581458;}function F(_0x1b523b,_0x49b00e,_0xcfc8e2){const _0x35e07b='elementEnd'==_0x1b523b['type']?_0xcfc8e2['createPositionAt'](_0x1b523b['item'],'end'):_0xcfc8e2['createPositionBefore'](_0x1b523b['item']);return _0xcfc8e2['createPositionFromPath'](_0x49b00e,_0x35e07b['path'],_0x35e07b['stickiness']);}function B(_0x27987f,_0x517c85,_0x5263a3){const _0x23275b='elementStart'==_0x27987f['type']?_0x5263a3['createPositionAt'](_0x27987f['item'],0x0):_0x5263a3['createPositionAfter'](_0x27987f['item']);return _0x5263a3['createPositionFromPath'](_0x517c85,_0x23275b['path'],_0x23275b['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x13a62c,_0xb7a8e4){super(_0x13a62c),this['focusTracker']=new _0x5a36b0(),this['keystrokes']=new _0x37dc31(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xb7a8e4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x1d874c(this);}['render'](){super['render'](),_0x5b119f({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2578dd=_0x1f4fdf=>_0x1f4fdf['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2578dd),this['keystrokes']['set']('arrowleft',_0x2578dd),this['keystrokes']['set']('arrowup',_0x2578dd),this['keystrokes']['set']('arrowdown',_0x2578dd);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x25b97e){this['revisionNameInputView']['fieldView']['element']['value']=_0x25b97e['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1ed1b2){const _0x395e3f=new _0x256e64(this['locale'],_0xb8ce7b),_0x5bc6a1=_0x395e3f['fieldView'];_0x5bc6a1['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x542acd=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1ed1b2&&(_0x542acd+='\x20('+g(this['locale'],'optional')+')'),(_0x395e3f['label']=_0x542acd,_0x5bc6a1['on']('input',()=>{this['revisionNameInputValue']=_0x5bc6a1['element']['value']['trim']();}),_0x395e3f);}}class f extends _0x149b28{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4cc819=this['editor'],_0x59c2e7=_0x4cc819['plugins']['get']('RevisionTracker');_0x4cc819['ui']['componentFactory']['add']('revisionHistory',_0x288aad=>{const _0x578182=_0x3c0c02(_0x288aad),_0x585acf=_0x578182['panelView']['children'],_0x35d9e6=new _0x5b1655(_0x288aad),_0x2f0cf7=new _0x3f34f5(_0x288aad),_0x479034=new te(_0x288aad),_0x15cafd=new _0x3f34f5(_0x288aad),_0x5a84cc=new te(_0x288aad);return _0x578182['bind']('isEnabled')['to'](_0x59c2e7,'isReady',_0x59c2e7,'isEnabled',_0x4cc819,'isReadOnly',(_0x3cda6d,_0x2fbe9b,_0xe3657e)=>_0x3cda6d&&_0x2fbe9b&&!_0xe3657e),_0x578182['buttonView']['set']({'icon':_0x2f11fa,'label':g(_0x288aad,'Revision\x20history'),'tooltip':!0x0}),_0x479034['set']({'label':g(_0x288aad,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x479034['bind']('isEnabled')['to'](_0x59c2e7,'isReady',_0x59c2e7,'isEnabled',_0x4cc819,'isReadOnly',(_0x46f285,_0x246e5c,_0x4290d6)=>_0x46f285&&_0x246e5c&&!_0x4290d6),_0x479034['on']('execute',()=>this['_showDialog']()),_0x5a84cc['set']({'label':g(_0x288aad,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x5a84cc['bind']('isEnabled')['to'](_0x59c2e7,'isReady',_0x4cc819,'isReadOnly',(_0xb2c515,_0x5c650f)=>_0xb2c515&&!_0x5c650f),_0x5a84cc['on']('execute',()=>{_0x4cc819['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x578182['isOpen']=!0x1,_0x4cc819['editing']['view']['focus']();}),_0x2f0cf7['children']['add'](_0x479034),_0x15cafd['children']['add'](_0x5a84cc),_0x35d9e6['role']='menu',_0x35d9e6['items']['addMany']([_0x2f0cf7,_0x15cafd]),_0x585acf['add'](_0x35d9e6),_0x578182;}),_0x4cc819['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1cace1=this['editor'],_0x304b90=_0x1cace1['locale'],_0xfd533a=new _0x505352(_0x304b90),_0x59b376=new _0x222b9c(_0x304b90);_0xfd533a['buttonView']['set']({'icon':_0x2f11fa,'label':g(_0x304b90,'Revision\x20history')});const _0x7525ec=new _0x1d2298(_0x304b90,_0xfd533a),_0x1c3c2f=new _0x11e198(_0x304b90);_0x1c3c2f['set']({'label':g(_0x304b90,'Save\x20current\x20revision')}),_0x1c3c2f['delegate']('execute')['to'](_0xfd533a),_0x1c3c2f['on']('execute',()=>{this['_showDialog']();}),_0x7525ec['children']['add'](_0x1c3c2f),_0x59b376['items']['add'](_0x7525ec);const _0x1ec4dc=new _0x1d2298(_0x304b90,_0xfd533a),_0x5ebb38=new _0x11e198(_0x304b90);return _0x5ebb38['set']({'label':g(_0x304b90,'Open\x20revision\x20history')}),_0x5ebb38['delegate']('execute')['to'](_0xfd533a),_0x5ebb38['on']('execute',()=>{_0x1cace1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1ec4dc['children']['add'](_0x5ebb38),_0x59b376['items']['add'](_0x1ec4dc),_0xfd533a['panelView']['children']['add'](_0x59b376),_0xfd533a;}['_showDialog'](){const _0x18e2ac=this['editor'],_0x1eef08=_0x18e2ac['locale'],_0x47b89a=_0x18e2ac['plugins']['get']('Dialog'),_0x5848ce=_0x18e2ac['plugins']['get']('RevisionTracker');function _0x3b98b2(_0x3c7613){_0x18e2ac['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3c7613['revisionName']?_0x3c7613['revisionNameInputView']['errorText']=g(_0x1eef08,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x18e2ac['plugins']['get'](u)['saveRevision']({'name':_0x3c7613['revisionName']}),_0x47b89a['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3b98b2(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x47b89a['show']({'id':'revisionSave','title':g(_0x1eef08,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x18e2ac['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x47b89a['hide']()},{'label':g(_0x18e2ac['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5de72e){_0x5de72e['bind']('isEnabled')['to'](_0x5848ce,'isReady',_0x5848ce,'isEnabled',_0x18e2ac,'isReadOnly',(_0x8f302a,_0x54520c,_0x466030)=>_0x8f302a&&_0x54520c&&!_0x466030);},'onExecute':()=>_0x3b98b2(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x553dd7=this['editor'],_0x160e8d=_0x553dd7['locale'];this['_saveRevisionFormView']=new hs(_0x160e8d,_0x553dd7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x541ee7,_0x356984){super(_0x541ee7),this['_model']=_0x356984,this['changeId']=_0x356984['id'];const _0x33f012=this['bindTemplate'],_0x407b91=g(_0x541ee7,_0x356984['data']['isSuggestion']?'Suggested\x20by':'add'==_0x356984['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x356984['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x33f012['to']('type',_0x379064=>'ck-revision-change__'+_0x379064)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x407b91}]},{'text':'\x20'+_0x356984['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x14857d(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1ee65e){super(),this['id']=_0x1ee65e['id']||_0x451426(),this['author']=_0x1ee65e['author'],this['type']=_0x1ee65e['type'],this['data']=_0x1ee65e['data']||{},this['rootName']=_0x1ee65e['rootName'],this['set']('createdAt',_0x1ee65e['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(_0xf27823,_0x280bdf){this['newRevisionId']=_0xf27823,this['oldRevisionId']=_0x280bdf,this['changes']=new _0x3fcc51();}['_setChanges'](_0x4cd166){for(const _0x528328 of _0x4cd166)this['changes']['add'](_0x528328);}}class m extends _0x149b28{['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[_0x43b4df,_0x1663f0,I,V];}constructor(_0xda1191){super(_0xda1191),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',(_0x181734,_0x143b0d,_0x3259dd)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x9fc213=>{for(const _0x529733 of this['editor']['editing']['view']['document']['roots'])_0x3259dd?_0x9fc213['removeClass']('ck-editor__editable__overlay',_0x529733):_0x9fc213['addClass']('ck-editor__editable__overlay',_0x529733);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x320d63=>null!==_0x320d63),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x466cf7,_0x544a0c,_0x64a5b6)=>_0x466cf7&&_0x64a5b6?_0x544a0c['changes']['getIndex'](_0x64a5b6):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x11863c,_0x572c8b)=>_0x11863c?_0x572c8b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1663f0);}['init'](){const _0x1f4ed3=this['editor'],_0x5587fe=new wt(_0x1f4ed3,{'direction':'backward'}),_0x586276=new wt(_0x1f4ed3,{'direction':'forward'});(_0x1f4ed3['commands']['add']('showPreviousChange',_0x5587fe),_0x1f4ed3['commands']['add']('showNextChange',_0x586276),_0x1f4ed3['commands']['add']('restoreRevision',new mt(_0x1f4ed3)),this['on']('change:numberOfChanges',()=>{_0x5587fe['refresh'](),_0x586276['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1f4ed3['enableReadOnlyMode']('revision-viewer'),_0x1f4ed3['plugins']['has']('WidgetToolbarRepository'))&&_0x1f4ed3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x34345d){return await this['_utils']['loadRevisionData'](_0x34345d,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x34345d);}async['getRevisionRootsAttributes'](_0x68be0a){return await this['_utils']['loadRevisionData'](_0x68be0a,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x68be0a);}async['compare'](_0x412686,_0x247e60,_0x2cd7c6=!0x1){if(!this['isEnabled'])return;const _0x313833=this['diff'],_0xb72f1=this['repository'],_0x5f1182='string'==typeof _0x412686?_0xb72f1['getRevision'](_0x412686):_0x412686,_0x4012d5='string'==typeof _0x247e60?_0xb72f1['getRevision'](_0x247e60):_0x247e60,_0x10ad4a=_0x5f1182['id'],_0x35386d=_0x4012d5?_0x4012d5['id']:null;if(!_0x2cd7c6&&this['diff']&&this['diff']['newRevisionId']===_0x10ad4a&&this['diff']['oldRevisionId']===_0x35386d)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x10ad4a,_0x35386d);const _0x442776=this['_getRevisionsRange'](_0x5f1182,_0x4012d5,!0x0)['map'](_0x2af5bb=>this['_utils']['loadRevisionData'](_0x2af5bb,this['adapter']));return _0x442776['push'](new Promise(_0x51d4b1=>{setTimeout(_0x51d4b1,0x14);})),Promise['all'](_0x442776)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x316303=this['_getDiff'](_0x10ad4a,_0x35386d);for(const _0x17444c of _0x316303['changes'])this['_changeIdToChange']['set'](_0x17444c['id'],_0x17444c);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x323efd=>{for(const _0x2f24f1 of this['editor']['model']['document']['getRootNames']())_0x323efd['detachRoot'](_0x2f24f1);for(const _0x32ec56 of Object['keys'](_0x316303['model'])){const _0x5bde61=_0x323efd['addRoot'](_0x32ec56);for(const _0x40423e of Object['keys'](_0x316303['attributes'][_0x32ec56]))_0x323efd['setAttribute'](_0x40423e,_0x316303['attributes'][_0x32ec56][_0x40423e],_0x5bde61);_0x323efd['insert'](_0x316303['model'][_0x32ec56],_0x5bde61,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x316303['changes'])),this['isReady']=!0x0;})['catch'](_0x22aa41=>{console['error'](_0x22aa41),this['_cleanUp'](),_0x313833&&(this['diff']=_0x313833),this['isReady']=!0x0;});}['addRevisionData'](_0x173394,_0x1e4e7f){const _0xde2de4=this['repository']['createRevision'](_0x173394);return _0xde2de4['on']('_update',(_0x599007,_0x27f085,_0x411686)=>_0x1e4e7f(_0x27f085,_0x411686,_0xde2de4)),this['repository']['addRevision'](_0xde2de4),_0xde2de4;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x551c54=>{for(const _0x50e483 of this['editor']['model']['document']['getRootNames']())_0x551c54['detachRoot'](_0x50e483);});}['_sortAndFilterDiffChanges'](_0x283421){const _0x4bfe46=[],_0x46239b=new Map();for(const _0x34e831 of this['editor']['model']['document']['getRootNames']()){const _0x2c3b07=this['editor']['editing']['view']['getDomRoot'](_0x34e831);if(!_0x2c3b07)continue;const _0x528a56=_0x2c3b07['getClientRects']()['item'](0x0);_0x528a56&&(_0x4bfe46['push'](_0x34e831),_0x46239b['set'](_0x34e831,_0x528a56));}return _0x4bfe46['sort']((_0x1bd447,_0x1a194e)=>{const _0x211d4d=_0x46239b['get'](_0x1bd447),_0x19e167=_0x46239b['get'](_0x1a194e);return _0x211d4d['y']-_0x19e167['y']||_0x211d4d['x']-_0x19e167['x'];}),(_0x283421=_0x283421['filter'](_0x296dd2=>_0x4bfe46['includes'](_0x296dd2['rootName'])))['sort']((_0xbe5028,_0x315da0)=>_0x4bfe46['indexOf'](_0xbe5028['rootName'])-_0x4bfe46['indexOf'](_0x315da0['rootName'])),_0x283421;}['_makeTape'](_0xb0e5dd){const _0xcb5390=Array['from'](_0xb0e5dd['markers'])['filter'](([_0x1a0de9,_0x5cfb0c])=>_0x1a0de9['startsWith']('revision:')&&!_0x5cfb0c['isCollapsed']),_0x594700=Array['from'](this['editor']['model']['createRangeIn'](_0xb0e5dd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xcb5390['length'])for(const _0x44b8fa of _0x594700){const [_0x144796,_0xfcbaf9]=_0xcb5390[0x0],[,_0xc0a35d,_0x2a7ca1]=_0x144796['split'](':');if(_0xfcbaf9['end']['isEqual'](_0x44b8fa['nextPosition'])&&_0xcb5390['shift'](),(_0x44b8fa['previousPosition']['isEqual'](_0xfcbaf9['start'])||_0x44b8fa['previousPosition']['isAfter'](_0xfcbaf9['start']))&&('insertion'==_0xc0a35d?_0x44b8fa['isAdded']={'userId':_0x2a7ca1}:'deletion'==_0xc0a35d&&(_0x44b8fa['isRemoved']={'userId':_0x2a7ca1})),0x0==_0xcb5390['length'])break;}return _0x594700;}['_refreshStartEndIndex'](_0x580a1e){const _0x55838e=new Map();for(let _0x5dccd1=0x0;_0x5dccd1<_0x580a1e['length'];_0x5dccd1++)'text'===_0x580a1e[_0x5dccd1]['type']?(_0x580a1e[_0x5dccd1]['item']['startIndex']=_0x5dccd1,_0x580a1e[_0x5dccd1]['item']['endIndex']=_0x5dccd1):('elementStart'===_0x580a1e[_0x5dccd1]['type']?_0x580a1e[_0x5dccd1]['item']['startIndex']=_0x5dccd1:'elementEnd'===_0x580a1e[_0x5dccd1]['type']&&(_0x580a1e[_0x5dccd1]['item']['endIndex']=_0x5dccd1),_0x55838e['set'](_0x580a1e[_0x5dccd1]['id'],_0x5dccd1));for(const _0x4eeade of _0x55838e['values']())'elementStart'===_0x580a1e[_0x4eeade]['type']?_0x580a1e[_0x4eeade]['item']['endIndex']=_0x55838e['get'](_0x580a1e[_0x4eeade]['pairId']):'elementEnd'===_0x580a1e[_0x4eeade]['type']&&(_0x580a1e[_0x4eeade]['item']['startIndex']=_0x55838e['get'](_0x580a1e[_0x4eeade]['pairId']));}['_processTape'](_0x19a606){for(let _0x1b7905=0x0;_0x1b7905<_0x19a606['length'];_0x1b7905++){if('elementStart'===_0x19a606[_0x1b7905]['type'])_0x19a606[_0x1b7905]['item']['startIndex']=_0x1b7905;else{if('elementEnd'===_0x19a606[_0x1b7905]['type']){_0x19a606[_0x1b7905]['item']['endIndex']=_0x1b7905;const _0x37ba9f=_0x19a606[_0x1b7905]['item']['startIndex'];_0x19a606[_0x37ba9f]['pairId']=_0x19a606[_0x1b7905]['id'],_0x19a606[_0x1b7905]['pairId']=_0x19a606[_0x37ba9f]['id'];}else _0x19a606[_0x1b7905]['item']['startIndex']=_0x1b7905,_0x19a606[_0x1b7905]['item']['endIndex']=_0x1b7905,_0x19a606[_0x1b7905]['pairId']=null;}_0x19a606[_0x1b7905]['markersStart']||(_0x19a606[_0x1b7905]['markersStart']=[],_0x19a606[_0x1b7905]['markersEnd']=[]);}}['_markInsertions'](_0xeb1826,_0x202223){const _0x503ba1=_0xeb1826['filter'](_0x27a267=>!_0x27a267['isAdded']);for(let _0x5b2cf0=0x0;_0x5b2cf0<_0x202223['length'];_0x5b2cf0++)_0x202223[_0x5b2cf0]['isAdded']&&(_0x503ba1[_0x5b2cf0]['isAdded']=_0x202223[_0x5b2cf0]['isAdded']);}['_getDiff'](_0x37abd1,_0x1c2b2c=null){const _0x4fa35b=this['repository']['getRevision'](_0x37abd1),_0x408dd0=_0x1c2b2c?this['repository']['getRevision'](_0x1c2b2c):null,_0x34baec=this['_getRevisionsRange'](_0x4fa35b,_0x408dd0),_0x5a91dc=_0x34baec[_0x34baec['length']-0x1],_0x548368=new Map(),_0x4be1f2={'model':{},'attributes':{},'changes':[]},_0x142885=new Set(),_0x380cbc=new Map();for(let _0x166c45=_0x34baec['length']-0x1;_0x166c45>=0x0;_0x166c45--){const _0x480e0b=_0x34baec[_0x166c45];for(const _0x4a8d5b of Object['keys'](_0x480e0b['diffData']))if(_0x480e0b['diffData'][_0x4a8d5b]['attachChange']){const _0x5f5d5=_0x480e0b['diffData'][_0x4a8d5b]['attachChange'];_0x5f5d5['isAttached']?(_0x142885['add'](_0x4a8d5b),_0x380cbc['has'](_0x4a8d5b)&&_0x380cbc['get'](_0x4a8d5b)['userId']==_0x5f5d5['userId']?_0x380cbc['delete'](_0x4a8d5b):_0x380cbc['set'](_0x4a8d5b,_0x5f5d5)):_0x380cbc['has'](_0x4a8d5b)?(_0x142885['delete'](_0x4a8d5b),_0x380cbc['delete'](_0x4a8d5b)):(_0x142885['add'](_0x4a8d5b),_0x380cbc['set'](_0x4a8d5b,_0x5f5d5));}else _0x142885['add'](_0x4a8d5b);}for(const _0x5b6023 of _0x142885){const _0x5cbf59=_0x380cbc['has'](_0x5b6023)&&!_0x380cbc['get'](_0x5b6023)['isAttached'];let _0x153e25=_0x5cbf59?_0x34baec['length']-0x1:0x0;const _0x522b2c=_0x5cbf59?-0x1:0x1;for(;_0x34baec[_0x153e25];){const _0x1194b7=_0x34baec[_0x153e25];if(_0x1194b7['diffData'][_0x5b6023]){const _0x4d036e=_0x5cbf59?_0x1194b7['diffData'][_0x5b6023]['attributesBefore']:_0x1194b7['diffData'][_0x5b6023]['attributesAfter'];_0x4be1f2['attributes'][_0x5b6023]=_0x4d036e?_0x36f289(_0x4d036e):{};break;}_0x153e25+=_0x522b2c;}}for(const _0x3f0912 of _0x34baec){_0x3f0912['model']={};for(const _0xe547b4 of _0x3f0912['authors'])_0x548368['set'](_0xe547b4['id'],_0xe547b4);for(const _0x1bd8c1 of _0x142885){const _0x2dcc24=_0x3f0912['diffData'][_0x1bd8c1]?_0x3f0912['diffData'][_0x1bd8c1]['insertions']:'[]',_0x15aff5=_0x3f0912['diffData'][_0x1bd8c1]?_0x3f0912['diffData'][_0x1bd8c1]['deletions']:'[]';_0x3f0912['model'][_0x1bd8c1]={'insertions':this['_utils']['_makeModelFromViewString'](_0x2dcc24),'deletions':this['_utils']['_makeModelFromViewString'](_0x15aff5)};}}for(const _0x393141 of _0x142885){let _0x2146b6=null,_0x52d2f6=0x0;const _0x2b15c4=new Map(Array['from'](_0x4fa35b['model'][_0x393141]['insertions']['markers'])['filter'](([_0x51d9c2])=>!_0x51d9c2['startsWith']('revision:')));let _0x905f91=0x0;for(const _0x59ce36 of _0x34baec){const _0x47eb6a=this['_makeTape'](_0x59ce36['model'][_0x393141]['insertions']);_0x59ce36==_0x4fa35b?(_0x2146b6=_0x47eb6a,_0x52d2f6=_0x2146b6['length'],_0x2146b6['forEach'](_0x3cc919=>{_0x3cc919['id']=_0x905f91++;}),this['_processTape'](_0x2146b6)):this['_markInsertions'](_0x2146b6,_0x47eb6a);const _0x2e1fac=_0x2146b6['filter'](_0x4abb61=>!_0x4abb61['isAdded'])['map'](_0x43d134=>_0x43d134['id']);let _0x3d55f2=0x0;const _0x179132=this['_makeTape'](_0x59ce36['model'][_0x393141]['deletions']);_0x179132['forEach'](_0x4656f7=>{_0x4656f7['isRemoved']?_0x4656f7['id']=_0x52d2f6++:_0x4656f7['id']=_0x2e1fac[_0x3d55f2++];}),this['_processTape'](_0x179132),this['_setDistance'](_0x2146b6,'isAdded'),this['_setDistance'](_0x179132,'isRemoved'),_0x59ce36==_0x4fa35b&&this['_markMarkers'](_0x2146b6,_0x2b15c4),_0x2146b6=this['_joinTapes'](_0x2146b6,_0x179132),this['_refreshStartEndIndex'](_0x2146b6),this['_setDistance'](_0x2146b6,'isRemoved');}_0x2146b6=_0x2146b6['filter'](_0x4abb8=>!(_0x4abb8['isAdded']&&_0x4abb8['isRemoved']));const _0x14a66b=new Map(_0x5a91dc['model'][_0x393141]['deletions']['markers']),_0x128050=new Set(_0x2b15c4['keys']());for(const _0x46ada8 of _0x14a66b['keys']())_0x128050['delete'](_0x46ada8);this['_markSuggestions'](_0x2146b6,_0x128050),this['_fixObsoleteTags'](_0x2146b6),_0x2146b6=this['_removeMissingPairs'](_0x2146b6),_0x2146b6=this['_markMismatchedRemovedTags'](_0x2146b6),_0x2146b6=this['_removeUnsupportedChanges'](_0x2146b6);const {root:_0x421b05,changes:_0x50dfb7}=this['_makeModelFromTape'](_0x2146b6,_0x548368,_0x393141);_0x4be1f2['model'][_0x393141]=_0x421b05;const _0x5b85a1=_0x380cbc['get'](_0x393141);if(_0x5b85a1){const _0x2e933c=_0x548368['get'](_0x5b85a1['userId']),_0x184188=new r({'author':_0x2e933c,'type':_0x5b85a1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x393141});_0x50dfb7['unshift'](_0x184188),_0x4be1f2['attributes'][_0x393141]['revisionHistoryAttachChange']=_0x184188['id'];}_0x4be1f2['changes']=_0x4be1f2['changes']['concat'](_0x50dfb7);}return _0x4be1f2;}['_markMarkers'](_0x4e3434,_0x5b5a46){for(let _0x559a19=0x0;_0x559a19<_0x4e3434['length'];_0x559a19++)for(const [_0x15ecee,_0x51b527]of _0x5b5a46)!_0x51b527['isCollapsed']&&_0x51b527['start']['isEqual'](_0x4e3434[_0x559a19]['previousPosition'])&&_0x4e3434[_0x559a19]['markersStart']['push'](_0x15ecee),_0x51b527['end']['isEqual'](_0x4e3434[_0x559a19]['nextPosition'])&&_0x4e3434[_0x559a19]['markersEnd']['push'](_0x15ecee);}['_joinTapes'](_0x9e13fc,_0x4ec9c3){let _0x917218=[],_0x7dc234=0x0,_0x260d5a=0x0;for(;_0x7dc234<_0x9e13fc['length']||_0x260d5a<_0x4ec9c3['length'];){const _0x29111f=_0x9e13fc[_0x7dc234]||{},_0x363cdb=_0x4ec9c3[_0x260d5a]||{};if(_0x29111f['id']==_0x363cdb['id'])_0x7dc234++,_0x260d5a++,_0x917218['push'](_0x29111f);else{if(_0x363cdb['isRemoved']&&_0x29111f['isAdded']){const {commonTape:_0x102e73,iEnd:_0x519295,jEnd:_0x228435}=this['_threeWayMerge'](_0x9e13fc,_0x7dc234,_0x4ec9c3,_0x260d5a);_0x917218=_0x917218['concat'](_0x102e73),_0x7dc234=_0x519295,_0x260d5a=_0x228435;}else _0x363cdb['isRemoved']?(_0x260d5a++,_0x917218['push'](_0x363cdb)):(_0x7dc234++,_0x917218['push'](_0x29111f));}}return _0x917218;}['_markSuggestions'](_0x1b8a6e,_0x2609fb){const _0xcc0343=[];for(let _0x3f1231=0x0;_0x3f1231<_0x1b8a6e['length'];_0x3f1231++){for(let _0x39d393=0x0;_0x39d393<_0x1b8a6e[_0x3f1231]['markersStart']['length'];_0x39d393++){const _0x47ead5=_0x1b8a6e[_0x3f1231]['markersStart'][_0x39d393];if(!_0x2609fb['has'](_0x47ead5))continue;const {group:_0xff4bc5,type:_0x284563,authorId:_0x3a3c60}=_0x549143(_0x47ead5);'revision-suggestion'!=_0xff4bc5||'insertion'!=_0x284563&&'deletion'!=_0x284563||(_0xcc0343['unshift']({'type':_0x284563,'name':_0x47ead5,'userId':_0x3a3c60}),_0x1b8a6e[_0x3f1231]['markersStart']['splice'](_0x39d393,0x1),_0x39d393--);}_0xad8822(_0x1b8a6e[_0x3f1231]);for(let _0x3e14a1=0x0;_0x3e14a1<_0x1b8a6e[_0x3f1231]['markersEnd']['length'];_0x3e14a1++){const _0x408d85=_0x1b8a6e[_0x3f1231]['markersEnd'][_0x3e14a1];if(!_0x2609fb['has'](_0x408d85))continue;const {group:_0x4f37f7,type:_0x5bdea0}=_0x549143(_0x408d85);if('revision-suggestion'!=_0x4f37f7||'insertion'!=_0x5bdea0&&'deletion'!=_0x5bdea0)continue;_0x1b8a6e[_0x3f1231]['markersEnd']['splice'](_0x3e14a1,0x1),_0x3e14a1--;const _0x4e73a9=_0xcc0343['findIndex'](_0x525933=>_0x525933['name']==_0x408d85);_0x4e73a9>-0x1&&_0xcc0343['splice'](_0x4e73a9,0x1);}}function _0x549143(_0x558c2e){const _0x1d85b3=_0x558c2e['split'](':');return{'group':_0x1d85b3[0x0],'type':_0x1d85b3[0x1],'subType':_0x1d85b3['length']>=0x5?_0x1d85b3[0x2]:null,'id':_0x1d85b3['length']<0x5?_0x1d85b3[0x2]:_0x1d85b3[0x3],'authorId':_0x1d85b3['length']<0x5?_0x1d85b3[0x3]:_0x1d85b3[0x4],'markerCount':0x6==_0x1d85b3['length']?_0x1d85b3[0x5]:null};}function _0xad8822(_0x44a026){for(let _0x547a96=0x0;_0x547a96<_0xcc0343['length'];_0x547a96++){if(_0x44a026['isAdded']&&'insertion'==_0xcc0343[_0x547a96]['type'])return _0x44a026['isAddSuggestion']=_0xcc0343[_0x547a96],void delete _0x44a026['isAdded'];if(!_0x44a026['isAdded']&&!_0x44a026['isRemoved']&&'deletion'==_0xcc0343[_0x547a96]['type'])return void(_0x44a026['isRemoveSuggestion']=_0xcc0343[_0x547a96]);}}}['_setDistance'](_0x1f5eb8,_0x11528b){let _0x46d956=0x0,_0x52f550=!0x1;const _0x20471e=new Map();for(const _0x144c52 of _0x1f5eb8)_0x144c52[_0x11528b]?_0x52f550&&(_0x46d956++,_0x52f550=!0x1):(_0x46d956++,_0x52f550=!0x0),_0x20471e['set'](_0x144c52['id'],_0x46d956);for(let _0x58345f=0x0;_0x58345f<_0x1f5eb8['length'];_0x58345f++){if('isRemoved'==_0x11528b&&_0x1f5eb8[_0x58345f]['isAdded']||'isAdded'==_0x11528b&&_0x1f5eb8[_0x58345f]['isRemoved'])continue;if('text'==_0x1f5eb8[_0x58345f]['type']){_0x1f5eb8[_0x58345f]['distance']=0x0;continue;}const _0xb5aa3=_0x20471e['get'](_0x1f5eb8[_0x58345f]['pairId']),_0x23eade=_0x20471e['get'](_0x1f5eb8[_0x58345f]['id']);_0x1f5eb8[_0x58345f]['distance']=_0xb5aa3-_0x23eade;}}['_getRevisionsRange'](_0x650b66,_0x4464bc,_0x9dbec9=!0x1){const _0x2812d6=[];let _0x1df885=this['repository']['getIndex'](_0x650b66),_0x309f5c=this['repository']['getIndex'](_0x4464bc);for(-0x1==_0x309f5c&&(_0x309f5c=this['repository']['_revisions']['length'],_0x9dbec9=!0x1);_0x1df885<_0x309f5c;)_0x2812d6['push'](this['repository']['getRevision'](_0x1df885)),_0x1df885++;return _0x9dbec9&&_0x2812d6['push'](this['repository']['getRevision'](_0x1df885)),_0x2812d6;}['_threeWayMerge'](_0x36de31,_0x23e84a,_0x456594,_0x5503eb){const _0x3302b7=this['editor']['model']['schema'];let _0x1e91c5=_0x23e84a;for(;_0x36de31[_0x1e91c5]&&_0x36de31[_0x1e91c5]['isAdded'];)_0x1e91c5++;let _0x548337=_0x5503eb;for(;_0x456594[_0x548337]&&_0x456594[_0x548337]['isRemoved'];)_0x548337++;_0x195629(_0x36de31,_0x23e84a,_0x1e91c5),_0x195629(_0x456594,_0x5503eb,_0x548337);const _0x23ef1d=_0x456594['slice'](_0x5503eb,_0x548337)['concat'](_0x36de31['slice'](_0x23e84a,_0x1e91c5));return _0x23ef1d['sort']((_0x71a524,_0x122faf)=>_0x71a524['side']!=_0x122faf['side']?_0x71a524['side']-_0x122faf['side']:_0x71a524['level']!=_0x122faf['level']?_0x71a524['level']-_0x122faf['level']:_0x71a524['distance']!=_0x122faf['distance']?_0x122faf['distance']-_0x71a524['distance']:!!_0x71a524['isAdded']!=!!_0x122faf['isAdded']?-0x1==_0x71a524['side']||0x0==_0x71a524['side']?_0x71a524['isAdded']?-0x1:0x1:_0x71a524['isAdded']?0x1:-0x1:_0x71a524['index']-_0x122faf['index']),{'commonTape':_0x23ef1d,'iEnd':_0x1e91c5,'jEnd':_0x548337};function _0x195629(_0x32b679,_0x517049,_0x22f594){let _0x4486d2=-0x1,_0x484f38=Number['POSITIVE_INFINITY'],_0x41e682=!0x0;for(let _0x4ae4bb=_0x517049;_0x4ae4bb<_0x22f594;_0x4ae4bb++)if(_0x3302b7['isInline'](_0x32b679[_0x4ae4bb]['item'])||(_0x41e682=!0x1),_0x32b679[_0x4ae4bb]['item']['startIndex']<_0x517049&&(_0x4486d2=_0x4ae4bb),_0x32b679[_0x4ae4bb]['item']['endIndex']>=_0x22f594){_0x484f38=_0x4ae4bb;break;}_0x41e682&&(_0x4486d2=_0x22f594-0x1);for(let _0x2b219a=_0x517049;_0x2b219a<_0x22f594;_0x2b219a++)_0x32b679[_0x2b219a]['side']=_0x2b219a<=_0x4486d2?-0x1:_0x2b219a<_0x484f38?0x0:0x1,_0x32b679[_0x2b219a]['index']=_0x2b219a;let _0x2221ff=0x0;for(let _0x13eabd=_0x517049;_0x13eabd<=_0x4486d2;_0x13eabd++)0x0==_0x32b679[_0x13eabd]['distance']?_0x32b679[_0x13eabd]['level']=_0x2221ff:(_0x2221ff++,_0x32b679[_0x13eabd]['level']=_0x2221ff,_0x2221ff++);for(let _0x3ffff4=_0x517049;_0x3ffff4<_0x22f594;_0x3ffff4++)0x0==_0x32b679[_0x3ffff4]['side']&&(_0x32b679[_0x3ffff4]['level']=_0x2221ff);_0x2221ff=0x0;for(let _0x5924b1=_0x22f594-0x1;_0x5924b1>=_0x484f38;_0x5924b1--)0x0==_0x32b679[_0x5924b1]['distance']?_0x32b679[_0x5924b1]['level']=_0x2221ff:(_0x2221ff--,_0x32b679[_0x5924b1]['level']=_0x2221ff,_0x2221ff--);}}['_fixObsoleteTags'](_0x4a7102){const _0x3fe779=new Map(),_0x2c3eb5=this['editor']['model']['schema'];for(let _0x2fefa4=0x1;_0x2fefa4<_0x4a7102['length'];_0x2fefa4++){let _0x70e90e,_0x374920,_0x1e0403;const _0x1bfbfb=_0x4a7102[_0x2fefa4],_0xb00624=_0x4a7102[_0x2fefa4-0x1];if('text'==_0x1bfbfb['type'])continue;if(_0x1bfbfb['type']!=_0xb00624['type'])continue;if(!_0x2c3eb5['isBlock'](_0xb00624['item'])||_0x2c3eb5['isLimit'](_0xb00624['item']))continue;if(!_0x2c3eb5['isBlock'](_0x1bfbfb['item'])||_0x2c3eb5['isLimit'](_0x1bfbfb['item']))continue;if((_0x4a7102[_0x2fefa4]['isAdded']||_0x4a7102[_0x2fefa4]['isAddSuggestion'])&&_0x4a7102[_0x2fefa4-0x1]['isRemoved'])_0x70e90e=_0x4a7102[_0x2fefa4],_0x374920=_0x4a7102[_0x2fefa4-0x1],_0x1e0403=_0x2fefa4-0x1;else{if(!_0x4a7102[_0x2fefa4]['isRemoved']||!_0x4a7102[_0x2fefa4-0x1]['isAdded']&&!_0x4a7102[_0x2fefa4-0x1]['isAddSuggestion'])continue;_0x70e90e=_0x4a7102[_0x2fefa4-0x1],_0x374920=_0x4a7102[_0x2fefa4],_0x1e0403=_0x2fefa4;}const _0x3677f7=_0x70e90e['level']==_0x374920['level'],_0x546bd6=Math['abs'](_0x70e90e['level'])<Math['abs'](_0x374920['level'])&&0x0==_0x374920['distance'];(_0x3677f7||_0x546bd6)&&(_0x3fe779['set'](_0x374920['id'],_0x70e90e['id']),_0x4a7102['splice'](_0x1e0403,0x1),_0x2fefa4--,_0x70e90e['isAdded']=!0x1);}for(let _0x375e14=0x0;_0x375e14<_0x4a7102['length'];_0x375e14++)_0x3fe779['has'](_0x4a7102[_0x375e14]['pairId'])&&(_0x4a7102[_0x375e14]['pairId']=_0x3fe779['get'](_0x4a7102[_0x375e14]['pairId']));}['_removeMissingPairs'](_0x46eaf8){const _0xa3d99b=new Set(_0x46eaf8['map'](_0x39d884=>_0x39d884['id']));for(let _0x9a8ed6=0x0;_0x9a8ed6<_0x46eaf8['length'];_0x9a8ed6++)_0xa3d99b['has'](_0x46eaf8[_0x9a8ed6]['pairId'])||0x0==_0x46eaf8[_0x9a8ed6]['distance']||(_0x46eaf8[_0x9a8ed6]['isIncorrect']=!0x0);return _0x46eaf8['filter'](_0x632dfc=>!_0x632dfc['isIncorrect']);}['_markMismatchedRemovedTags'](_0x51c2d2){const _0x2f5911=new Set();for(let _0x26d0b7=0x0;_0x26d0b7<_0x51c2d2['length'];_0x26d0b7++){if(_0x2f5911['has'](_0x51c2d2[_0x26d0b7]['id'])&&_0x51c2d2[_0x26d0b7]['isRemoved']&&(_0x51c2d2[_0x26d0b7]['isIncorrect']=!0x0),_0x51c2d2[_0x26d0b7]['isIncorrect'])continue;if(0x0==_0x51c2d2[_0x26d0b7]['distance'])continue;if('elementStart'!=_0x51c2d2[_0x26d0b7]['type'])continue;if(null==_0x51c2d2[_0x26d0b7]['pairId'])continue;let _0x5e2a82=_0x26d0b7+0x1,_0x3c4d53=0x0;for(;_0x51c2d2[_0x5e2a82]['id']!=_0x51c2d2[_0x26d0b7]['pairId'];)'elementStart'==_0x51c2d2[_0x5e2a82]['type']?_0x3c4d53++:'elementEnd'==_0x51c2d2[_0x5e2a82]['type']&&_0x3c4d53--,_0x5e2a82++;if(0x0!=_0x3c4d53){if(_0x51c2d2[_0x26d0b7]['isRemoved'])_0x51c2d2[_0x26d0b7]['isIncorrect']=!0x0;else{for(;_0x5e2a82!=_0x26d0b7;)_0x51c2d2[_0x5e2a82]['isRemoved']&&0x0!=_0x51c2d2[_0x5e2a82]['distance']&&(_0x51c2d2[_0x5e2a82]['isIncorrect']=!0x0,_0x2f5911['add'](_0x51c2d2[_0x5e2a82]['pairId'])),_0x5e2a82--;}}}return _0x51c2d2['filter'](_0x27599e=>!_0x27599e['isIncorrect']);}['_removeUnsupportedChanges'](_0x56ef81){const _0x4ef10d=this['editor']['model']['schema'];for(let _0x492302=0x0;_0x492302<_0x56ef81['length'];_0x492302++){if(!(_0x56ef81[_0x492302]['isAdded']||_0x56ef81[_0x492302]['isAddSuggestion']||_0x56ef81[_0x492302]['isRemoved']||_0x56ef81[_0x492302]['isRemoveSuggestion']))continue;if(0x0==_0x56ef81[_0x492302]['distance'])continue;const _0x5b9c7d=_0x56ef81[_0x492302]['item'];_0x4ef10d['isBlock'](_0x5b9c7d)||_0x4ef10d['isLimit'](_0x5b9c7d)||(_0x56ef81[_0x492302]['isAdded']&&delete _0x56ef81[_0x492302]['isAdded'],_0x56ef81[_0x492302]['isAddSuggestion']&&delete _0x56ef81[_0x492302]['isAddSuggestion'],_0x56ef81[_0x492302]['isRemoveSuggestion']&&delete _0x56ef81[_0x492302]['isRemoveSuggestion'],_0x56ef81[_0x492302]['isRemoved']&&(_0x56ef81[_0x492302]['isIncorrect']=!0x0));}return _0x56ef81['filter'](_0x58b676=>!_0x58b676['isIncorrect']);}['_makeModelFromTape'](_0x538320,_0x1cb4eb,_0x315ef0){const _0x3a4dd8=new vt(),_0x37a1b7=[],_0x8f7e7=new Map(),_0x26a505=this['editor']['model'],_0x4d3951=_0x26a505['schema'],_0x64e6c7=[_0x3a4dd8],_0x1707b8={},_0x36ef85={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x83f2b8=null;const _0x210d28=[0x0];for(let _0x40f7f9=0x0;_0x40f7f9<_0x538320['length'];_0x40f7f9++)if('elementStart'===_0x538320[_0x40f7f9]['type']){_0x538320[_0x40f7f9]['previousPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28);const _0x3523fd=new ut(_0x538320[_0x40f7f9]['item']['name'],_0x538320[_0x40f7f9]['item']['getAttributes']());_0x64e6c7[0x0]['_appendChild'](_0x3523fd),_0x210d28['push'](0x0),_0x64e6c7['unshift'](_0x3523fd),_0x538320[_0x40f7f9]['nextPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28);}else'elementEnd'===_0x538320[_0x40f7f9]['type']?(_0x64e6c7['shift'](),_0x538320[_0x40f7f9]['previousPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28),_0x210d28['pop'](),_0x210d28[_0x210d28['length']-0x1]++,_0x538320[_0x40f7f9]['nextPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28)):(_0x538320[_0x40f7f9]['previousPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28),_0x83f2b8?_0x83f2b8['_data']+=_0x538320[_0x40f7f9]['item']['data']:_0x83f2b8=new gt(_0x538320[_0x40f7f9]['item']['data'],_0x538320[_0x40f7f9]['item']['getAttributes']()),_0x538320[_0x40f7f9+0x1]&&'text'===_0x538320[_0x40f7f9+0x1]['type']&&_0x5a1477(_0x83f2b8,_0x538320[_0x40f7f9+0x1]['item'])||(_0x64e6c7[0x0]['_appendChild'](_0x83f2b8),_0x83f2b8=null),_0x210d28[_0x210d28['length']-0x1]+=_0x538320[_0x40f7f9]['item']['offsetSize'],_0x538320[_0x40f7f9]['nextPosition']=_0x26a505['createPositionFromPath'](_0x3a4dd8,_0x210d28));for(let _0x5aa9ee=0x0;_0x5aa9ee<_0x538320['length'];_0x5aa9ee++){const _0x439e1e=_0x538320[_0x5aa9ee]['previousPosition'],_0x240f05=_0x538320[_0x5aa9ee]['nextPosition'];for(const _0x27bcb8 of _0x538320[_0x5aa9ee]['markersStart'])_0x8f7e7['set'](_0x27bcb8,{'start':_0x439e1e,'end':null});_0xbf2be1('isRemoveSuggestion',_0x5aa9ee,_0x439e1e,_0x240f05),_0xbf2be1('isAddSuggestion',_0x5aa9ee,_0x439e1e,_0x240f05),_0xbf2be1('isRemoved',_0x5aa9ee,_0x439e1e,_0x240f05),_0xbf2be1('isAdded',_0x5aa9ee,_0x439e1e,_0x240f05);for(const _0x3888fc of _0x538320[_0x5aa9ee]['markersEnd']){const _0xf2c2da=_0x8f7e7['get'](_0x3888fc);_0xf2c2da?_0xf2c2da['end']=_0x240f05:_0x8f7e7['set'](_0x3888fc,{'start':_0x240f05,'end':_0x240f05});}}for(const [_0x178a30,_0x3f507f]of _0x8f7e7){const _0x55e126=this['editor']['model']['createRange'](_0x3f507f['start'],_0x3f507f['end']);_0x3a4dd8['markers']['set'](_0x178a30,_0x55e126);}return _0x37a1b7['sort']((_0x4d09e8,_0x58c1a2)=>{const _0x43575a=_0x3a4dd8['markers']['get']('revision:'+_0x4d09e8['id']),_0x59023e=_0x3a4dd8['markers']['get']('revision:'+_0x58c1a2['id']);return _0x43575a['start']['isBefore'](_0x59023e['start'])?-0x1:_0x43575a['start']['isAfter'](_0x59023e['start'])?0x1:_0x43575a['end']['isBefore'](_0x59023e['end'])?-0x1:_0x43575a['end']['isAfter'](_0x59023e['end'])?0x1:'add'===_0x4d09e8['type']?-0x1:0x1;}),{'root':_0x3a4dd8,'changes':_0x37a1b7};function _0xbf2be1(_0x2245a1,_0x197de9,_0x5c4ed0,_0x702007){const _0x4745a8=!!_0x538320[_0x197de9][_0x2245a1],_0x52e1bc=_0x4745a8?_0x538320[_0x197de9][_0x2245a1]['userId']:null,_0x5a7a28=_0x197de9===_0x538320['length']-0x1,_0x5e517e=_0x36ef85[_0x2245a1][0x0],_0x35c574=_0x4d3951['isObject'](_0x538320[_0x197de9]['item']);!_0x1707b8[_0x2245a1]&&_0x4745a8?_0x1707b8[_0x2245a1]={'start':_0x5c4ed0,'tapeItem':_0x538320[_0x197de9],'userId':_0x52e1bc,'type':_0x2245a1}:_0x1707b8[_0x2245a1]&&!_0x4745a8?(_0x1707b8[_0x2245a1]['end']=_0x5c4ed0,_0x2d1954(_0x1707b8[_0x2245a1]),_0x1707b8[_0x2245a1]=null):_0x1707b8[_0x2245a1]&&_0x4745a8&&_0x1707b8[_0x2245a1]['userId']!==_0x52e1bc&&(_0x1707b8[_0x2245a1]['end']=_0x5c4ed0,_0x5e517e&&_0x5e517e['userId']===_0x1707b8[_0x2245a1]['userId']||_0x2d1954(_0x1707b8[_0x2245a1]),_0x1707b8[_0x2245a1]={'start':_0x5c4ed0,'tapeItem':_0x538320[_0x197de9],'userId':_0x52e1bc,'type':_0x2245a1}),_0x1707b8[_0x2245a1]&&_0x35c574&&('elementStart'!==_0x538320[_0x197de9]['type']||_0x5e517e&&_0x5e517e['userId']===_0x52e1bc||_0x36ef85[_0x2245a1]['unshift']({'userId':_0x52e1bc,'object':_0x538320[_0x197de9]['item'],'change':_0x1707b8[_0x2245a1]}),'elementEnd'===_0x538320[_0x197de9]['type']&&_0x5e517e&&_0x5e517e['object']===_0x538320[_0x197de9]['item']&&(_0x36ef85[_0x2245a1]['shift'](),_0x1707b8[_0x2245a1]=_0x5e517e['change'])),_0x1707b8[_0x2245a1]&&_0x5a7a28&&(_0x1707b8[_0x2245a1]['end']=_0x702007,_0x2d1954(_0x1707b8[_0x2245a1]),_0x1707b8[_0x2245a1]=null);}function _0x2d1954({start:_0x26b22c,end:_0x5b08eb,tapeItem:_0x2bac61,userId:_0x4b2493,type:_0x6f53be}){const _0x54b3eb=_0x2bac61['item'],_0x212393=_0x26a505['schema']['isBlock'](_0x54b3eb)&&!_0x26a505['schema']['isLimit'](_0x54b3eb),_0x5dd370=_0x26b22c['nodeAfter']==_0x5b08eb['parent']&&_0x5b08eb['isAtStart'];if(_0x212393&&_0x5dd370)return;const _0x31d06a=_0x26a505['createRange'](_0x26b22c,_0x5b08eb),_0x4be777=_0x1cb4eb['get'](_0x4b2493),_0x26cf41=new r({'author':_0x4be777,'type':'isAdded'==_0x6f53be||'isAddSuggestion'==_0x6f53be?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x6f53be||'isRemoveSuggestion'==_0x6f53be},'createdAt':new Date(),'rootName':_0x315ef0});_0x37a1b7['push'](_0x26cf41),_0x3a4dd8['markers']['set']('revision:'+_0x26cf41['id'],_0x31d06a);}function _0x5a1477(_0x5c9578,_0x366f70){const _0x2de1bc=_0x5c9578['getAttributes'](),_0x24e443=_0x366f70['getAttributes']();for(const _0x581272 of _0x2de1bc){if(_0x581272[0x1]!==_0x366f70['getAttribute'](_0x581272[0x0]))return!0x1;_0x24e443['next']();}return _0x24e443['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x42e276=>{const _0x298634=_0x42e276['markerName']['split'](':')[0x1],_0x4868e3=this['_getChangeFromId'](_0x298634);if(!_0x4868e3)return null;const _0x21c094='add'==_0x4868e3['type']?'insertion':'deletion',_0x3b0d35=['ck-suggestion-marker','ck-suggestion-marker-'+_0x21c094];return _0x4868e3['data']['isSuggestion']&&_0x3b0d35['push']('ck-suggestion-marker-'+_0x21c094+'-new'),this['activeChange']==_0x4868e3&&_0x3b0d35['push']('ck-suggestion-marker--active'),{'classes':_0x3b0d35,'attributes':{'data-change-id':_0x298634}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5ce872=>{_0x5ce872['on']('element:pre',(_0x75234a,_0x1e04d8,_0x32cc0b)=>{const _0x24a491=_0x1e04d8['viewItem']['getChild'](0x0);if(!_0x24a491||!_0x24a491['is']('element','code'))return;if(!_0x32cc0b['consumable']['consume'](_0x24a491,{'attributes':['vid_start','vid_end']}))return;const _0x172a5d=_0x1e04d8['modelRange']['start']['nodeAfter'];_0x32cc0b['writer']['setAttribute']('vid_start',_0x24a491['getAttribute']('vid_start'),_0x172a5d),_0x32cc0b['writer']['setAttribute']('vid_end',_0x24a491['getAttribute']('vid_end'),_0x172a5d);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0xeb0d71=>{_0xeb0d71['on']('element',(_0x55a306,_0x28e4b1,_0x3bc32e)=>{if(!_0x3bc32e['consumable']['consume'](_0x28e4b1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x28e4b1['modelRange']['isCollapsed'])return;const _0x4a1645=_0x28e4b1['modelRange']['start']['nodeAfter'];_0x4a1645['hasAttribute']('vid_start')||_0x4a1645['hasAttribute']('vid')||(_0x3bc32e['writer']['setAttribute']('vid_start',_0x28e4b1['viewItem']['getAttribute']('vid_start'),_0x4a1645),_0x3bc32e['writer']['setAttribute']('vid_end',_0x28e4b1['viewItem']['getAttribute']('vid_end'),_0x4a1645));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x457c8a=>_0x457c8a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4da576,[,_0x582141])=>{['vid_start','vid_end','vid']['includes'](_0x582141)&&(_0x4da576['return']=!0x0,_0x4da576['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x6cf283=>{_0x6cf283['on']('attribute:vid',(_0x518853,_0xa23fd2,_0x18016d)=>{if('\x20'!=_0xa23fd2['item']['data']||_0xa23fd2['item']['parent']['maxOffset']>0x1)return;if(!_0x18016d['consumable']['consume'](_0xa23fd2['item'],_0x518853['name']))return;const _0x428709=_0x18016d['writer'],_0x8e271c=_0x18016d['mapper']['toViewRange'](_0xa23fd2['range']);_0x428709['wrap'](_0x8e271c,_0x428709['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3a2ee6){const _0x21ecfa=_0x3a2ee6['plugins']['get']('RevisionViewer');return(_0x5348ff,_0x33bf8a,_0x4bc233)=>{const _0x5c1801=_0x33bf8a['markerName']['split'](':')[0x1],_0x301b4e=_0x21ecfa['_getChangeFromId'](_0x5c1801);if(!_0x301b4e)return null;const _0x56b66e='add'==_0x301b4e['type']?'split':'merge';if(!_0x4bc233['consumable']['test'](_0x33bf8a['markerRange'],_0x5348ff['name']))return;const _0x59ad0d=_0x33bf8a['markerRange']['getWalker'](),_0x41d2e1=_0x33bf8a['markerRange']['start'],_0xacf022=_0x3a2ee6['model']['schema'];let _0x22f6e1=null,_0xf22d45=null,_0xbf4848=!0x1,_0x26f10f=!0x1;for(const _0x431bba of _0x59ad0d){const _0x42fe00=_0x431bba['item'];_0xbf4848=_0xbf4848||_0xacf022['isContent'](_0x42fe00);const _0x5c3f14=_0x4bc233['mapper']['toViewElement'](_0x42fe00);if(_0x5c3f14&&_0x5c3f14['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x431bba['type']&&(_0xacf022['isBlock'](_0x42fe00)&&!_0xacf022['isLimit'](_0x42fe00)&&(_0x42fe00['nextSibling']||_0x41d2e1['isAtEnd']?_0x22f6e1&&_0x22f6e1['parent']==_0x42fe00||(_0x22f6e1=_0x42fe00,_0x5e98e3(_0x431bba['previousPosition']),_0x26f10f=!0x0):_0xf22d45=_0xf22d45||_0x431bba['previousPosition']));}function _0x5e98e3(_0x561f3e){const _0x1e7631=_0x4bc233['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56b66e}),_0x531541=_0x4bc233['mapper']['toViewPosition'](_0x561f3e);_0x301b4e['data']['isSuggestion']&&_0x4bc233['writer']['addClass']('ck-suggestion-marker-'+_0x56b66e+'-new',_0x1e7631),_0x21ecfa['activeChange']==_0x301b4e&&_0x4bc233['writer']['addClass']('ck-suggestion-marker--active',_0x1e7631),_0x4bc233['writer']['insert'](_0x531541,_0x1e7631),_0x4bc233['mapper']['bindElementToMarker'](_0x1e7631,_0x33bf8a['markerName']);}_0xbf4848||_0x26f10f||!_0xf22d45||_0x5e98e3(_0xf22d45);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xcce3bf,_0x100c5c,_0x54240d)=>{const _0x1c88c0=_0x54240d['mapper']['markerNameToElements'](_0x100c5c['markerName']);if(_0x1c88c0){for(const _0x4eb9b5 of _0x1c88c0)(_0x4eb9b5['hasClass']('ck-suggestion-marker-split')||_0x4eb9b5['hasClass']('ck-suggestion-marker-merge'))&&(_0x54240d['mapper']['unbindElementFromMarkerName'](_0x4eb9b5,_0x100c5c['markerName']),_0x54240d['writer']['remove'](_0x4eb9b5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xd6d18d,_0xa02e5f,_0x1f83d2)=>{const _0x279ca5=_0xa02e5f['markerName']['split'](':')[0x1],_0x332b7e=this['_getChangeFromId'](_0x279ca5);if(!_0x332b7e)return null;const _0x1b30c2='add'==_0x332b7e['type']?'split':'merge';if(_0x1f83d2['consumable']['test'](_0xa02e5f['markerRange'],_0xd6d18d['name']))for(const _0x41ede1 of _0xa02e5f['markerRange']['getItems']()){if(!_0x41ede1['is']('element','softBreak'))continue;const _0x3a15c6=_0x1f83d2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1b30c2}),_0x44d433=_0x1f83d2['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x41ede1));_0x332b7e['data']['isSuggestion']&&_0x1f83d2['writer']['addClass']('ck-suggestion-marker-'+_0x1b30c2+'-new',_0x3a15c6),this['activeChange']==_0x332b7e&&_0x1f83d2['writer']['addClass']('ck-suggestion-marker--active',_0x3a15c6),_0x1f83d2['writer']['insert'](_0x44d433,_0x3a15c6),_0x1f83d2['mapper']['bindElementToMarker'](_0x3a15c6,_0xa02e5f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x19743b=>{for(const _0xfceba8 of this['editor']['model']['document']['getRootNames']()){const _0xf1b70e=this['editor']['model']['document']['getRoot'](_0xfceba8),_0xf9274=this['editor']['editing']['view']['document']['getRoot'](_0xfceba8);if(_0xf9274){const _0x2bf3a3=_0xf1b70e['getAttribute']('revisionHistoryAttachChange');if(_0x19743b['removeAttribute']('data-change-id',_0xf9274),_0x19743b['removeClass']('ck-revision-history-root-add',_0xf9274),_0x19743b['removeClass']('ck-revision-history-root-remove',_0xf9274),_0x19743b['removeClass']('ck-revision-history-root--active',_0xf9274),_0x2bf3a3){const _0x1986ba=this['_getChangeFromId'](_0x2bf3a3);if(!_0x1986ba)return null;_0x19743b['setAttribute']('data-change-id',_0x2bf3a3,_0xf9274),_0x19743b['addClass']('ck-revision-history-root-'+_0x1986ba['type'],_0xf9274),this['activeChange']==_0x1986ba&&_0x19743b['addClass']('ck-revision-history-root--active',_0xf9274);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x128dac=>'revision-comment:'+_0x128dac,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3b87c5=>'revision-suggestion:'+_0x3b87c5,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x103e96=>({'name':'suggestion:'+_0x103e96,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x24a910=>{const _0x1a3de5=_0x24a910['markerName']['split'](':')[0x1];return'insertion'!=_0x1a3de5&&'deletion'!=_0x1a3de5?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1a3de5]};}}),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',(_0x85ba7e,_0x4ca2a6,_0x2ec598)=>{const _0x145893=_0x2ec598['mapper']['markerNameToElements'](_0x4ca2a6['markerName']);if(_0x145893){for(const _0x454688 of _0x145893)_0x454688['is']('uiElement')&&(_0x2ec598['mapper']['unbindElementFromMarkerName'](_0x454688,_0x4ca2a6['markerName']),_0x2ec598['writer']['remove'](_0x454688));}},{'priority':'high'});}['_getChangeFromId'](_0x24e5dd){return this['_changeIdToChange']['get'](_0x24e5dd);}['_getViewForChange'](_0x1ce054){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x1ce054),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x8af1f5,_0x1bdae6,_0x26eec,_0x53c24d)=>{_0x53c24d&&this['_balloon']['remove'](_0x53c24d),_0x26eec&&(this['_balloon']['add']({'view':_0x26eec,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x98b21c=this['editor']['editing'],_0x3166a4=this['_getChangeFromId'](_0x26eec['changeId']);let _0x1d4c60;if(_0x3166a4['data']['isOnRoot']){const _0x23e2bb=_0x98b21c['view']['getDomRoot'](_0x3166a4['rootName']);_0x1d4c60=Array['from'](_0x23e2bb['getClientRects']());}else{const _0x30720c=this['editor']['model']['markers']['get']('revision:'+_0x26eec['changeId']);_0x1d4c60=Array['from'](_0x98b21c['mapper']['markerNameToElements'](_0x30720c['name']))['map'](_0x419d0d=>_0x98b21c['view']['domConverter']['mapViewToDom'](_0x419d0d))['map'](_0x3bef20=>Array['from'](_0x3bef20['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1d4c60[0x0];return _0x1d4c60['find'](_0x440793=>_0x440793['top']-0x3<=this['_activeViewTarget']['y']&&_0x440793['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x440793['left']-0x3<=this['_activeViewTarget']['x']&&_0x440793['right']+0x3>=this['_activeViewTarget']['x'])||_0x1d4c60[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3cbeae,_0x36732b,_0x205d8b,_0x22ba27)=>{this['activeView']=_0x205d8b?this['_getViewForChange'](_0x205d8b):null,this['editor']['model']['change'](()=>{const _0x4e6be1=this['editor']['editing'];_0x22ba27&&(_0x22ba27['data']['isOnRoot']?_0x4e6be1['view']['change'](_0x16311d=>{_0x16311d['removeClass']('ck-revision-history-root--active',_0x4e6be1['view']['document']['getRoot'](_0x22ba27['rootName']));}):_0x4e6be1['reconvertMarker']('revision:'+_0x22ba27['id'])),_0x205d8b&&(_0x205d8b['data']['isOnRoot']?_0x4e6be1['view']['change'](_0x355b75=>{_0x355b75['addClass']('ck-revision-history-root--active',_0x4e6be1['view']['document']['getRoot'](_0x205d8b['rootName']));}):_0x4e6be1['reconvertMarker']('revision:'+_0x205d8b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x113518,_0x140f13)=>{if(this['activeChange'])return;const _0x5affa1=this['_findChangeIdFromDomTarget'](_0x140f13['target']),_0x3e0989=this['_changeIdToChange']['get'](_0x5affa1);_0x3e0989?(this['_activeViewTarget']={'x':_0x140f13['domEvent']['x'],'y':_0x140f13['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3e0989)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3c5475,_0x32e0d8)=>{const _0x5519dd=this['_findChangeIdFromDomTarget'](_0x32e0d8['target']),_0xbd8a92=this['_changeIdToChange']['get'](_0x5519dd);_0xbd8a92?(this['_activeViewTarget']={'x':_0x32e0d8['domEvent']['x'],'y':_0x32e0d8['domEvent']['y']},_0xbd8a92===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xbd8a92):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x405e9f){do{const _0x4408a9=_0x405e9f['getAttribute']('data-change-id');if(_0x4408a9)return _0x4408a9;_0x405e9f=_0x405e9f['parent'];}while(_0x405e9f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x45ec8d=>{for(const _0x4459f2 of this['editor']['model']['markers'])_0x45ec8d['removeMarker'](_0x4459f2);});}}function X(_0x36252d,_0xf4b222){return(_0x3a2243,_0x55e88d,_0x5d4158)=>{if(!_0x5d4158['consumable']['test'](_0x55e88d['markerRange'],_0x3a2243['name']))return;const _0x3dd49a=_0x55e88d['markerRange']['getWalker'](),_0x301eb9=_0x55e88d['markerRange']['start'],_0xf1b48=_0x36252d['model']['schema'];let _0x17936b=null,_0x2ae2d7=null,_0x256b3e=!0x1,_0xe9eaca=!0x1;for(const _0x4b6e4 of _0x3dd49a){const _0x4bdaa8=_0x4b6e4['item'];_0x256b3e=_0x256b3e||_0xf1b48['isContent'](_0x4bdaa8);const _0x1ac16c=_0x5d4158['mapper']['toViewElement'](_0x4bdaa8);if(_0x1ac16c&&_0x1ac16c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4b6e4['type']&&(_0xf1b48['isBlock'](_0x4bdaa8)&&!_0xf1b48['isLimit'](_0x4bdaa8)&&(_0x4bdaa8['nextSibling']||_0x301eb9['isAtEnd']?_0x17936b&&_0x17936b['parent']==_0x4bdaa8||(_0x17936b=_0x4bdaa8,_0x15b53a(_0x4b6e4['previousPosition']),_0xe9eaca=!0x0):_0x2ae2d7=_0x2ae2d7||_0x4b6e4['previousPosition']));}function _0x15b53a(_0x38c30a){const _0x1cedd7=_0x5d4158['mapper']['toViewPosition'](_0x38c30a),_0x456012=_0x5d4158['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xf4b222});_0x5d4158['writer']['insert'](_0x1cedd7,_0x456012),_0x5d4158['mapper']['bindElementToMarker'](_0x456012,_0x55e88d['markerName']);}_0x256b3e||_0xe9eaca||!_0x2ae2d7||_0x15b53a(_0x2ae2d7);};}class mt extends _0x2a06ae{constructor(_0x4f86d1){super(_0x4f86d1);const _0x15c3f8=_0x4f86d1['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x15c3f8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x15c3f8,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5ae506=this['editor'],_0x2fe020=_0x5ae506['plugins']['get'](m),_0x544551=_0x2fe020['isReady']?_0x2fe020['diff']['newRevisionId']:null;_0x5ae506['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x544551);}['refresh'](){const {isReady:_0x19763c,isEnabled:_0x466f9f,repository:_0x2b4c59,diff:_0x491918}=this['editor']['plugins']['get'](m),_0x4a44c9=_0x491918&&_0x2b4c59['getLaterVisibleRevision'](_0x491918['newRevisionId']);this['isEnabled']=_0x19763c&&_0x466f9f&&Boolean(_0x4a44c9);}}class wt extends _0x2a06ae{['_step'];constructor(_0x379e79,{direction:_0x2a040e}){super(_0x379e79);const _0x4bf289=_0x379e79['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x2a040e?0x1:-0x1,this['listenTo'](_0x4bf289,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4bf289,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4bf289,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x38598e=this['editor'],_0x5a86bf=_0x38598e['plugins']['get'](m),{isNavigationMode:_0x23871b,currentChangeNumber:_0x3b77df}=_0x5a86bf;let _0x5cf56e;if(_0x5a86bf['activeChange']=_0x23871b?_0x5a86bf['diff']['changes']['get'](_0x3b77df+this['_step']):_0x5a86bf['diff']['changes']['first'],_0x5a86bf['activeChange']['data']['isOnRoot'])_0x5cf56e=_0x38598e['editing']['view']['getDomRoot'](_0x5a86bf['activeChange']['rootName']);else{const _0x5b8046=_0x38598e['model']['markers']['get']('revision:'+_0x5a86bf['activeChange']['id']);_0x5cf56e=_0x5dbfca(_0x38598e['editing'],_0x5b8046);}_0x5d9a0a({'target':_0x5cf56e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x11cc68,currentChangeNumber:_0x5f3a45,numberOfChanges:_0x330ba9,isReady:_0x44d526,isEnabled:_0x5bc334}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x5bc334&&_0x44d526&&_0x330ba9)&&(!_0x11cc68||(0x1===this['_step']?_0x5f3a45<_0x330ba9-0x1:_0x5f3a45>0x0));}}class _i extends ts{constructor(_0x19cd30){super(_0x19cd30);const _0x3c60d8=this['bindTemplate'],_0x3f187a=new te(_0x19cd30),_0x42133d=new te(_0x19cd30);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',(_0x37fd22,_0x1164ce)=>_0x37fd22&&_0x1164ce>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x47fcda,_0x4f4965,_0x4cc8b9,_0x26a802)=>{if(!_0x47fcda)return g(_0x19cd30,'Loading...');if(!_0x4cc8b9)return g(_0x19cd30,'No\x20changes');const _0x392937=g(_0x19cd30,'NUMBER_OF_CHANGES',_0x4cc8b9);return _0x26a802?g(_0x19cd30,'X_OF_Y_CHANGES',[_0x4f4965+0x1,_0x4cc8b9]):_0x392937;}),_0x3f187a['set']({'label':g(_0x19cd30,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x19d9b9}),_0x42133d['set']({'label':g(_0x19cd30,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x44f056}),_0x3f187a['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x42133d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f187a['on']('execute',()=>this['fire']('execute','backward')),_0x42133d['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',_0x3c60d8['if']('_isStatusLabelVisible','ck-hidden',_0x2c0600=>!_0x2c0600)]},'children':[{'text':_0x3c60d8['to']('isNavigationMode',_0x2acd4c=>_0x2acd4c?g(_0x19cd30,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x19cd30,'Total')+':\x20')}]},{'text':_0x3c60d8['to']('_statusText')}]},new _0x114a41(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f187a,_0x42133d]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x149b28{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x46deb7=this['editor']['editing']['view'];_0x46deb7['change'](_0x39f7cb=>{for(const _0x5a9757 of _0x46deb7['document']['roots'])_0x39f7cb['addClass'](le,_0x5a9757);});}['hide'](){const _0x1e3589=this['editor']['editing']['view'];_0x1e3589['change'](_0x253e79=>{for(const _0x8eb99a of _0x1e3589['document']['roots'])_0x253e79['removeClass'](le,_0x8eb99a);});}}class R extends _0x149b28{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x556deb=this['editor'],_0x2d0749=_0x556deb['plugins']['get'](m),_0x220d75=_0x556deb['plugins']['get'](ge);_0x556deb['ui']['componentFactory']['add']('exitToEditing',_0x33be0b=>{const _0x1c95db=new te(_0x33be0b);return _0x1c95db['set']({'label':g(_0x33be0b,'Back\x20to\x20editing'),'icon':_0x58cf49,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1c95db,'execute',()=>{_0x556deb['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1c95db;}),_0x556deb['ui']['componentFactory']['add']('restoreRevision',_0x3dd955=>{const _0x305cd8=new te(_0x3dd955);return _0x305cd8['set']({'label':g(_0x3dd955,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x305cd8['bind']('isEnabled')['to'](_0x556deb['commands']['get']('restoreRevision')),this['listenTo'](_0x305cd8,'execute',()=>_0x556deb['execute']('restoreRevision')),_0x305cd8;}),_0x556deb['ui']['componentFactory']['add']('changesNavigation',_0x190cc9=>{const _0x30cb1e=new _i(_0x190cc9),_0x3044aa=_0x556deb['commands']['get']('showPreviousChange'),_0x59566c=_0x556deb['commands']['get']('showNextChange');return _0x30cb1e['bind']('isBackwardNavigationEnabled')['to'](_0x3044aa,'isEnabled'),_0x30cb1e['bind']('isForwardNavigationEnabled')['to'](_0x59566c,'isEnabled'),_0x30cb1e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2d0749),this['listenTo'](_0x30cb1e,'execute',(_0x25f81f,_0x4f639e)=>{_0x556deb['execute']('forward'===_0x4f639e?'showNextChange':'showPreviousChange');}),_0x30cb1e;}),_0x220d75['show'](),_0x2d0749['on']('change:isReady',(_0x70b489,_0x1968b9,_0x18f0e8)=>{_0x18f0e8?_0x220d75['hide']():_0x220d75['show']();});}}class at extends _0x256e64{['_resizeObserver']=null;constructor(_0x5713ce,_0x58f1c2){super(_0x5713ce,_0x58f1c2);const _0x2cfa55=this['bindTemplate'];this['set']({'label':g(_0x5713ce,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5713ce,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x2cfa55['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 _0x2e3c8e=this['fieldView']['element'];this['_tooltipString']=_0x2e3c8e['scrollWidth']>_0x2e3c8e['clientWidth']&&_0x2e3c8e['value']||'';}}class si extends ts{constructor(_0x349ff5,_0xb417c,_0x3d3a84){super(_0x349ff5);const _0xd1c2a4=new _0x418e0a();_0xd1c2a4['set']({'content':_0xe5b4b4,'viewBox':'0\x200\x2011\x2010'});const _0x1e2b9c=['ck','ck-revision-history-sidebar__revision-author'];_0x3d3a84&&_0x1e2b9c['push']('ck-revision-history-sidebar__revision-author_creator');const _0x400eb9=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x349ff5,_0x3d3a84?'Revision\x20creator':'Revision\x20author')},'children':[_0xd1c2a4,_0xb417c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1e2b9c},'children':_0x400eb9});}}function oi(_0x2abfeb,_0x25a06b){const _0x30c9b2=_0x2abfeb['bindTemplate'],_0x1c986d=_0x2abfeb['locale'],_0x1c69ae=_0x3c0c02(_0x1c986d);_0x1c69ae['panelPosition']='sw';const _0x3a595b=function(_0xbac91e,_0x14d689){const _0x2d3d79=function(_0x273c79,_0x5ee27f){const _0x431d8c=_0x273c79['locale'],_0x260df1={'Compare\x20against\x20selected':g(_0x431d8c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x431d8c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x431d8c,'Restore\x20this\x20revision')};return _0x5ee27f['map'](_0x2c79a3=>{const _0x5b1317=_0x260df1[_0x2c79a3['name']];return _0x5b1317&&_0x5b1317!==_0x2c79a3['name']&&(_0x2c79a3['name']=_0x5b1317),_0x2c79a3;});}(_0xbac91e,_0x14d689),_0x2f09b9=new _0x3fcc51();for(const _0x34010f of _0x2d3d79){const _0x298e17={'type':'button','model':new to({'label':_0x34010f['name'],'class':_0x34010f['class'],'withText':!0x0,'role':'menuitem','_action':_0x34010f['action']})};_0x298e17['model']['bind']('isEnabled')['to'](_0xbac91e,'isActionsDropdownOpen',_0x48f951=>'function'!=typeof _0x34010f['isEnabled']||(!_0x48f951||_0x34010f['isEnabled'](_0xbac91e))),_0x2f09b9['add'](_0x298e17);}return _0x2f09b9;}(_0x2abfeb,_0x25a06b);return _0x2abfeb['bind']('isActionsDropdownOpen')['to'](_0x1c69ae,'isOpen'),_0x1c69ae['buttonView']['set']({'label':g(_0x1c986d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x28c0d7}),_0x1c69ae['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x30c9b2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x30c9b2['to'](_0x3b684b=>_0x3b684b['stopPropagation']())}}),_0x1c69ae['on']('execute',_0x193747=>{_0x2abfeb['isReady']&&'function'==typeof _0x193747['source']['_action']&&_0x193747['source']['_action'](_0x2abfeb);}),_0x2ce9a1(_0x1c69ae,_0x3a595b,{'role':'menu'}),_0x1c69ae['listenTo'](_0x2abfeb,'change:isActionsDropdownOpen',(_0x40baa3,_0x525df7,_0x3bb58d)=>{if(_0x3bb58d)for(const _0x27be87 of _0x1c69ae['listView']['items']){const _0x369ca1=_0x27be87['children']['first'],_0x594d7f=_0x25a06b['find'](_0x1d6699=>_0x1d6699['action']===_0x369ca1['_action'])['isVisible'];_0x27be87['isVisible']=void 0x0===_0x594d7f||_0x594d7f(_0x2abfeb);}}),_0x1c69ae;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xda9d0,_0x2ab90d,_0x7cbed7,_0x16b4d8){super(_0xda9d0);const _0x5d6e60=this['bindTemplate'],_0x2cbb75=function(_0x117331,_0xedfc63){const _0x24b777=Array['from'](_0xedfc63['authors'])['filter'](_0x1e5a11=>_0x1e5a11!=_0xedfc63['creator']);return _0xedfc63['creator']&&_0x24b777['unshift'](_0xedfc63['creator']),_0x24b777['map'](_0x16ed55=>new si(_0x117331,_0x16ed55,_0x16ed55==_0xedfc63['creator']));}(_0xda9d0,_0x2ab90d);this['id']=_0x2ab90d['id'],this['_revision']=_0x2ab90d,this['_requireRevisionName']=_0x16b4d8,this['bind']('name','createdAt')['to'](_0x2ab90d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x15186f=>{return _0x58fd8c=_0xda9d0['uiLanguage'],(_0x506e35=_0x15186f)['toLocaleDateString'](_0x58fd8c,{'month':'long','day':'numeric'})+',\x20'+_0x506e35['toLocaleTimeString'](_0x58fd8c,{'hour':'numeric','minute':'numeric'});var _0x58fd8c,_0x506e35;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0xda9d0,_0xb8ce7b),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x94b560=>_0x94b560||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x11d1b6,_0x4de3cf)=>_0x11d1b6&&_0x4de3cf),this['revisionActionsView']=_0x7cbed7&&_0x7cbed7['length']?oi(this,_0x7cbed7):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d6e60['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d6e60['if']('isEnabled','ck-disabled',_0x18fcd6=>!_0x18fcd6),_0x5d6e60['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d6e60['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d6e60['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':_0x5d6e60['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':_0x2cbb75}]},this['revisionActionsView']],'on':{'click':_0x5d6e60['to'](_0x58f01d=>{_0x58f01d['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1c183d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1c183d,'change',()=>{this['_requireRevisionName']&&!_0x1c183d['value']||this['fire']('setName',{'id':this['id'],'name':_0x1c183d['value']}),_0x1c183d['value']||(_0x1c183d['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(_0x2edc19,_0x2e18eb){const _0x1c7333=_0x9f88ff['fromJSDate'](_0x2edc19)['setLocale'](_0x2e18eb),_0x309b2e=_0x9f88ff['local'](),_0x177773=_0x309b2e['minus']({'days':0x1})['startOf']('day');let _0x2368b3,_0x39ba07;return _0x1c7333['hasSame'](_0x309b2e,'day')?(_0x2368b3=_0x1c7333['startOf']('day')['toJSDate'](),_0x39ba07=_0x1c7333['toRelativeCalendar']()):_0x1c7333['hasSame'](_0x177773,'day')?(_0x2368b3=_0x177773['toJSDate'](),_0x39ba07=_0x1c7333['toRelativeCalendar']()):_0x1c7333['hasSame'](_0x309b2e,'week')?(_0x2368b3=_0x1c7333['startOf']('week')['toJSDate'](),_0x39ba07=_0x1c7333['weekdayLong']||''):_0x1c7333['hasSame'](_0x309b2e,'year')?(_0x2368b3=_0x1c7333['startOf']('month')['toJSDate'](),_0x39ba07=_0x1c7333['monthLong']||''):(_0x2368b3=_0x1c7333['startOf']('year')['toJSDate'](),_0x39ba07=String(_0x1c7333['year'])),{'startDate':_0x2368b3,'localizedPeriodName':_0x39ba07};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1bc873,_0x46019b,_0x5175ef,_0xa655ce){super(_0x1bc873);const _0x112387=ai(_0x46019b,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x46019b,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5175ef,this['_requireRevisionName']=_0xa655ce,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':_0x112387}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x294de3){const _0x1ba59f=new hi(this['locale'],_0x294de3,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1ba59f);}['removeRevision'](_0x10383d){const _0x5122f3=this['revisionViews']['find'](_0x37f258=>_0x37f258['id']===_0x10383d['id']);this['revisionViews']['remove'](_0x5122f3);}}class as extends ts{constructor(_0x484b76){super(_0x484b76);const _0x5d000b=new _0x418e0a();_0x5d000b['content']=_0x2f11fa,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5d000b,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x484b76,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5100b2,_0x41a3a0,_0x43a569,_0x3d847c){super(_0x5100b2);const _0x2ac722=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x41a3a0,this['_revisionActions']=_0x43a569,this['_requireRevisionName']=_0x3d847c,this['on']('select',(_0x2afa68,_0x5ceb65)=>{this['fire']('revisionSelected',_0x5ceb65);}),this['on']('setName',(_0x2f99f0,_0x31ae6d)=>{this['fire']('revisionSetName',_0x31ae6d);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5100b2),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2ac722['if']('isEnabled','ck-disabled',_0x300a6c=>!_0x300a6c)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x15537c of this['_revisions'])this['_addRevision'](_0x15537c);this['_revisions']['on']('add',(_0x466741,_0x462828)=>{this['_addRevision'](_0x462828);}),this['_revisions']['on']('remove',(_0x50c88c,_0x53ec0e)=>{this['_removeRevision'](_0x53ec0e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5671c7=>_0x5671c7['revisionViews']['map'](_0x89a3bb=>_0x89a3bb))['flat']();}['selectRevision'](_0x56dfc1){for(const _0x2654a3 of this['revisionViews'])_0x56dfc1&&_0x56dfc1['id']===_0x2654a3['id']?_0x2654a3['select']():_0x2654a3['deselect']();}['highlightRevisions'](_0x15c5fa){for(const _0x37ecaa of this['revisionViews'])_0x15c5fa['some'](({id:_0x2f9f9c})=>_0x2f9f9c===_0x37ecaa['id'])?_0x37ecaa['highlight']():_0x37ecaa['unhighlight']();}['_addRevision'](_0x17574){const _0x21daa7=ai(_0x17574['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5b6779=this['timePeriodViews']['get'](0x0);_0x5b6779&&_0x5b6779['startDate']['getTime']()===_0x21daa7['getTime']()||(_0x5b6779=new di(this['locale'],_0x21daa7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5b6779)),_0x5b6779['addRevision'](_0x17574);}['_removeRevision'](_0x25093c){const _0x5abcb6=ai(_0x25093c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x5abcb6)['removeRevision'](_0x25093c);}['_getTimePeriodViewByStartDate'](_0x5ac037){return this['timePeriodViews']['find'](_0x4dcd7d=>_0x4dcd7d['startDate']['getTime']()===_0x5ac037['getTime']());}}class d extends _0x149b28{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['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(_0x518f1b){super(_0x518f1b),this['_revisionViewer']=_0x518f1b['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x11f2ca=this['_revisionsRepository']['_revisions'],_0x484674=this['_createRevisionActions'](),_0x1b80fa=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x11f2ca,_0x484674,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',(_0x2af7d4,_0x492fd6)=>{_0x492fd6['revisionViews']['on']('add',(_0x38432a,_0x25ab08)=>{_0x25ab08['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)),_0x1b80fa['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x317c13=this['_revisionsRepository']['getRevision'](0x0);if(_0x317c13){const _0x41c153=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x317c13['id']);this['_revisionViewer']['compare'](_0x317c13,_0x41c153);}}['_handleRevisionSelected'](_0xb41975,_0x596905){const _0x10c95d=this['_revisionsRepository']['getRevision'](_0x596905['id']),_0xe1a44c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x10c95d['id']);this['_revisionViewer']['compare'](_0x10c95d,_0xe1a44c);}['_handleRevisionSetName'](_0x5cb168,_0x36b2d9){this['_revisionsRepository']['getRevision'](_0x36b2d9['id'])['setName'](_0x36b2d9['name']);}['_handleDiffChange'](_0x22e378,_0x336007,_0x48ef08){const _0x6fef64=this['_revisionsRepository']['getRevisionsInDiff'](_0x48ef08);_0x6fef64['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x6fef64),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x6fef64[0x0]));}['_createRevisionActions'](){const _0xa8841e=this['editor'],_0x3c2ab8=d['availableRevisionActions'],_0x3836e8=_0xa8841e['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x3836e8['length'])return _0x3836e8['map'](_0x4e0d23=>{const _0x5d4ae5='string'==typeof _0x4e0d23?Object['assign']({},_0x3c2ab8[_0x4e0d23]):_0x4e0d23;return _0x5d4ae5['action']=_0x5d4ae5['action']['bind'](this,_0xa8841e),_0x5d4ae5['isVisible']&&(_0x5d4ae5['isVisible']=_0x5d4ae5['isVisible']['bind'](this,_0xa8841e)),_0x5d4ae5;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4e6a5c},_0x11aa3e)=>{const _0xc963d5=_0x4e6a5c['get'](m),_0x3a840f=_0xc963d5['repository'];let _0x122ada=_0xc963d5['diff']['newRevisionId'],_0x3536f3=_0x11aa3e['id'];_0x3a840f['getIndex'](_0x122ada)>_0x3a840f['getIndex'](_0x3536f3)&&([_0x122ada,_0x3536f3]=[_0x3536f3,_0x122ada]),_0xc963d5['compare'](_0x122ada,_0x3536f3);},'isVisible':({plugins:_0x38d6c3},_0x415478)=>{const _0x1209d3=_0x38d6c3['get'](m);return!(_0x1209d3['repository']['getRevisionsInDiff'](_0x1209d3['diff'])['length']>0x2)&&!_0x415478['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4bf6eb,{id:_0x220878})=>{_0x4bf6eb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x220878);},'isVisible':({plugins:_0x3b9adc},_0x4974e4)=>!!_0x3b9adc['get'](m)['repository']['getLaterVisibleRevision'](_0x4974e4['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2fb16f},{id:_0x426af3,revisionNameView:_0x474f3d})=>{const _0x385ca1=_0x2fb16f['get'](m),_0x3ae505=_0x385ca1['repository']['getEarlierVisibleRevision'](_0x426af3);_0x385ca1['compare'](_0x426af3,_0x3ae505),_0x474f3d['focus'](),_0x474f3d['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x15a9c9,_0x8aa8f3){super(_0x15a9c9),this['_view']=_0x8aa8f3,this['_toolbarConfig']=et(_0x15a9c9['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x199115){const _0x1eac98=this['editor'],_0x1ac323=this['view'],_0x5dd99f=_0x1eac98['editing']['view'],_0x3c25f7=_0x1ac323['editable'],_0x14ba64=_0x5dd99f['document']['getRoot']();_0x3c25f7['name']=_0x14ba64['rootName'],_0x1ac323['render']();const _0x2e1409=_0x3c25f7['element'];this['setEditableElement'](_0x3c25f7['name'],_0x2e1409),_0x1ac323['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5dd99f['attachDomRoot'](_0x2e1409),this['_elementReplacer']['replace'](_0x199115,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x588298=this['view'],_0x38638a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x38638a['detachDomRoot'](_0x588298['editable']['name']),_0x588298['destroy']();}['_initToolbar'](){const _0x5cdc06=this['view'];_0x5cdc06['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5cdc06['stickyPanel']['limiterElement']=_0x5cdc06['element'],_0x5cdc06['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2b85c0})=>_0x2b85c0),_0x5cdc06['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5cdc06['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x16ac2b,_0x8c5e7d,_0x2365bb={}){super(_0x16ac2b),this['stickyPanel']=new ht(_0x16ac2b),this['toolbar']=new dt(_0x16ac2b,{'shouldGroupWhenFull':_0x2365bb['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x16ac2b,_0x8c5e7d);}['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
- _0x4b078c(_0x1f9594){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3c189a,_0x599faf){super(_0x599faf),this['sourceElement']=_0x3c189a,this['model']['document']['createRoot']();const _0x552dd2=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x552dd2);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3bf858,_0x5c029d){const _0xfdd81f=new this(_0x3bf858,_0x5c029d);return await _0xfdd81f['initPlugins'](),await _0xfdd81f['ui']['init'](_0x3bf858),await _0xfdd81f['data']['init'](_0xfdd81f['config']['get']('initialData')||''),_0xfdd81f['fire']('ready'),_0xfdd81f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0xb5e69f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x32f329){function _0x38fe10(_0x68964d){return _0x68964d['map'](_0xd22973=>String['fromCharCode'](_0xd22973))['join']('');}super(_0x32f329),this['result']='end',_0x32f329[_0x38fe10([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38fe10([0x76,0x69,0x65,0x77])][_0x38fe10([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38fe10([0x61,0x75,0x74,0x6f]),_0x32f329[_0x38fe10([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x38fe10([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38fe10([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x38fe10([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x38fe10([0x6f,0x6b])});}}class k extends _0xb5e69f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x343430){if(super(_0x343430),!this['editor']['config']['get']('revisionHistory'))throw new _0x2daee1('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4d2413=>this['_showRevisionViewer']({..._0x4d2413,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x30df13=>this['_closeRevisionViewer'](_0x30df13)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3675db=>this['_restoreRevision'](_0x3675db)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x39a55b){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x39a55b;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x206a7c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x206a7c);}['getRevision'](_0x3ff510){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3ff510);}['getRevisions'](_0x44e417){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x44e417||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x559d60=this['editor'],_0x9ef91f=_0x4d9ba4(_0x559d60,p),_0x49370d=_0x559d60['plugins']['get']('RevisionTracker'),_0x3380a8=_0x559d60['plugins']['get']('Users')['users'];return _0x9ef91f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x9ef91f['lazyRoots'],(_0x9ef91f['plugins']['push'](_t,m,R,class extends _0xb5e69f{static get['requires'](){return[m,'Users'];}['init'](){const _0x50e53d=this['editor']['plugins']['get']('Users');for(const _0x544076 of _0x3380a8)_0x544076['isAnonymous']||_0x50e53d['getUser'](_0x544076['id'])||_0x50e53d['addUser'](_0x544076);const _0xce2f41=_0x49370d['repository']['getRevisions']();let _0xc54d27=null;const _0x3465df=this['editor']['plugins']['get']('RevisionViewer');_0x3465df['adapter']=_0x49370d['adapter'],_0x3465df['bind']('isEnabled')['to'](_0x49370d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x559d60,'isReadOnly',_0x377f88=>!_0x377f88);for(const _0x32b9b4 of _0xce2f41){const _0x2a6ade=null===_0x32b9b4['creator'];if(_0x2a6ade&&_0x32b9b4['toVersion']===_0x32b9b4['fromVersion'])continue;const _0xefb85b=_0x32b9b4['toJSON']();_0x3465df['addRevisionData'](_0xefb85b,(_0x4aa0e9,_0x5e0521,_0x20655e)=>{if(_0x2a6ade){if(_0xc54d27)_0xc54d27['_update'](_0x4aa0e9,_0x5e0521);else{if(!_0x5e0521){const _0x5b6248=_0x20655e['toJSON']();_0x5b6248['id']=_0x263f51(),_0x49370d['saveRevision'](_0x5b6248,_0x20655e['toVersion'])['then'](_0x49802d=>{_0xc54d27=_0x49802d;});}}}else _0x32b9b4['_update'](_0x4aa0e9,_0x5e0521);});}}},d),_0x9ef91f);}['_enhanceShowRevisionViewerCallback'](){const _0x3110dd=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x555f46=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x222f2e=this['editor']['plugins']['get']('Autosave');await _0x222f2e['save']();}else await _0x555f46['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x485c30=this['editor']['plugins']['get']('Dialog');_0x485c30['isOpen']&&_0x485c30['hide']();}const _0x3e1bf1=this['_getRevisionViewerEditorConfig']();return _0x3110dd(_0x3e1bf1)['then'](_0x4d9ca7=>{return(this['_viewerEditor']=_0x4d9ca7,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'),_0x4d9ca7);})['catch'](_0x553e6b=>(console['error'](_0x553e6b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2af167=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'](),_0x2af167(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x177899=this['editor']['plugins']['get']('Annotations');_0x177899['refreshVisibility'](),_0x177899['refreshPositioning']();}})));}['_showRevisionViewer'](_0x23a6d8){const _0x1d6f13=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2810f8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x74689a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x74689a,_0x23a6d8)['then'](_0x12395b=>(_0x2810f8['style']['display']='block',_0x1d6f13['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x12395b));}['_closeRevisionViewer'](_0x2b7d99){const _0x2eefa5=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2eefa5['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x2b7d99['destroy']();}async['_restoreRevision'](_0x5566ae){const _0xd067c0=this['editor'],_0x38df4a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x18adde=_0xd067c0['plugins']['get']('RevisionTracker'),_0x3a8259=_0xd067c0['plugins']['get']('RevisionHistoryUtils'),_0x93d50e=_0x38df4a['repository']['getRevision'](_0x5566ae);let _0x59f03e,_0x10d4aa,_0x20a3d3;try{await _0x3a8259['loadRevisionData'](_0x93d50e,this['adapter']),_0x59f03e=_0x3a8259['getRevisionDocumentData'](_0x93d50e),_0x10d4aa=_0x3a8259['getRevisionRootsAttributes'](_0x93d50e);}catch(_0x3fb01a){return void console['error'](_0x3fb01a);}_0xd067c0['model']['change'](_0x11d8f7=>{for(const _0xd5c4ad of Array['from'](_0xd067c0['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x11d8f7['removeMarker'](_0xd5c4ad);}),_0x38df4a['isReady']=!0x1,_0xd067c0['model']['enqueueChange'](_0x11a889=>{_0x11a889['setSelection'](null),_0x11a889['removeSelectionAttribute'](_0xd067c0['model']['document']['selection']['getAttributeKeys']());const _0x4135d2=Object['keys'](_0x59f03e);for(const _0x2a8b66 of _0xd067c0['model']['document']['roots'])'$graveyard'!=_0x2a8b66['rootName']&&_0x2a8b66['isAttached']()&&!_0x4135d2['includes'](_0x2a8b66['rootName'])&&_0x11a889['detachRoot'](_0x2a8b66);for(const _0x188231 of _0x4135d2){let _0x395cdd=_0xd067c0['model']['document']['getRoot'](_0x188231);_0x395cdd&&_0x395cdd['isAttached']()||(_0x395cdd=_0x11a889['addRoot'](_0x188231));const _0x1cbc36=_0x10d4aa[_0x188231],_0x3b937b=Object['keys'](_0x1cbc36),_0x59f984=_0x59f03e[_0x188231];for(const _0x29279f of _0x395cdd['getAttributeKeys']())_0x3b937b['includes'](_0x29279f)||_0x11a889['removeAttribute'](_0x29279f,_0x395cdd);for(const _0x5c68df of _0x3b937b)_0x11a889['setAttribute'](_0x5c68df,_0x10d4aa[_0x188231][_0x5c68df],_0x395cdd);_0x11a889['remove'](_0x11a889['createRangeIn'](_0x395cdd)),_0x11a889['insert'](_0xd067c0['data']['parse'](_0x59f984,_0x395cdd),_0x395cdd,0x0);}});const _0x3870a1=g(_0xd067c0['locale'],'Restored');if(_0x93d50e['name'])_0x20a3d3=-0x1==_0x93d50e['name']['indexOf'](_0x3870a1)?_0x3870a1+':\x20'+_0x93d50e['name']:_0x93d50e['name'];else _0x20a3d3=_0x3870a1+':\x20'+(_0x93d50e['createdAt']['toLocaleDateString'](_0xd067c0['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x93d50e['createdAt']['toLocaleTimeString'](_0xd067c0['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x18adde['saveRevision']({'name':_0x20a3d3}),_0x38df4a['isReady']=!0x0,_0xd067c0['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,de as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x4ae1ae){super(_0x4ae1ae),this['_revisionViewer']=_0x4ae1ae['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x37e60f=this['_revisionsRepository']['_revisions'],_0x5c34bd=this['_createRevisionActions'](),_0x50481a=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x37e60f,_0x5c34bd,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',(_0xb30eef,_0x1f59a2)=>{_0x1f59a2['revisionViews']['on']('add',(_0x1aff0c,_0x3eaa9a)=>{_0x3eaa9a['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)),_0x50481a['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x36cf6b=this['_revisionsRepository']['getRevision'](0x0);if(_0x36cf6b){const _0x422c79=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x36cf6b['id']);this['_revisionViewer']['compare'](_0x36cf6b,_0x422c79);}}['_handleRevisionSelected'](_0x306928,_0x3a450c){const _0x3bd186=this['_revisionsRepository']['getRevision'](_0x3a450c['id']),_0xc8b594=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3bd186['id']);this['_revisionViewer']['compare'](_0x3bd186,_0xc8b594);}['_handleRevisionSetName'](_0x159251,_0x5598e1){this['_revisionsRepository']['getRevision'](_0x5598e1['id'])['setName'](_0x5598e1['name']);}['_handleDiffChange'](_0xaf67c9,_0x20a30c,_0x59cbb3){const _0xaa5684=this['_revisionsRepository']['getRevisionsInDiff'](_0x59cbb3);_0xaa5684['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xaa5684),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xaa5684[0x0]));}['_createRevisionActions'](){const _0x4c1225=this['editor'],_0x3263a8=d['availableRevisionActions'],_0x2b248b=_0x4c1225['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x2b248b['length'])return _0x2b248b['map'](_0x529126=>{const _0x34dc26='string'==typeof _0x529126?Object['assign']({},_0x3263a8[_0x529126]):_0x529126;return _0x34dc26['action']=_0x34dc26['action']['bind'](this,_0x4c1225),_0x34dc26['isVisible']&&(_0x34dc26['isVisible']=_0x34dc26['isVisible']['bind'](this,_0x4c1225)),_0x34dc26;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x399645},_0x267a1f)=>{const _0xd00175=_0x399645['get'](m),_0x2cdbe5=_0xd00175['repository'];let _0x1986fd=_0xd00175['diff']['newRevisionId'],_0x4f6fa3=_0x267a1f['id'];_0x2cdbe5['getIndex'](_0x1986fd)>_0x2cdbe5['getIndex'](_0x4f6fa3)&&([_0x1986fd,_0x4f6fa3]=[_0x4f6fa3,_0x1986fd]),_0xd00175['compare'](_0x1986fd,_0x4f6fa3);},'isVisible':({plugins:_0x38ec81},_0x247afe)=>{const _0x45657a=_0x38ec81['get'](m);return!(_0x45657a['repository']['getRevisionsInDiff'](_0x45657a['diff'])['length']>0x2)&&!_0x247afe['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x182b30,{id:_0x3f1d84})=>{_0x182b30['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3f1d84);},'isVisible':({plugins:_0x58cfb2},_0x31ba5d)=>!!_0x58cfb2['get'](m)['repository']['getLaterVisibleRevision'](_0x31ba5d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4947f2},{id:_0x246611,revisionNameView:_0x28fca5})=>{const _0x17f491=_0x4947f2['get'](m),_0x2351c6=_0x17f491['repository']['getEarlierVisibleRevision'](_0x246611);_0x17f491['compare'](_0x246611,_0x2351c6),_0x28fca5['focus'](),_0x28fca5['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x24d2ed,_0x2e9bc0){super(_0x24d2ed),this['_view']=_0x2e9bc0,this['_toolbarConfig']=et(_0x24d2ed['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x5d357a){const _0x6b2f19=this['editor'],_0x53176f=this['view'],_0x31bf19=_0x6b2f19['editing']['view'],_0x973c38=_0x53176f['editable'],_0xea7bf2=_0x31bf19['document']['getRoot']();_0x973c38['name']=_0xea7bf2['rootName'],_0x53176f['render']();const _0x38b6f4=_0x973c38['element'];this['setEditableElement'](_0x973c38['name'],_0x38b6f4),_0x53176f['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x31bf19['attachDomRoot'](_0x38b6f4),this['_elementReplacer']['replace'](_0x5d357a,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2b23c7=this['view'],_0x572314=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x572314['detachDomRoot'](_0x2b23c7['editable']['name']),_0x2b23c7['destroy']();}['_initToolbar'](){const _0x3a0b4c=this['view'];_0x3a0b4c['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3a0b4c['stickyPanel']['limiterElement']=_0x3a0b4c['element'],_0x3a0b4c['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4d626b})=>_0x4d626b),_0x3a0b4c['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3a0b4c['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3f2fcd,_0x197adf,_0x1dbf8b={}){super(_0x3f2fcd),this['stickyPanel']=new ht(_0x3f2fcd),this['toolbar']=new dt(_0x3f2fcd,{'shouldGroupWhenFull':_0x1dbf8b['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x3f2fcd,_0x197adf);}['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
+ _0x5055df(_0x5c1f04){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x668e62,_0x5accf7){super(_0x5accf7),this['sourceElement']=_0x668e62,this['model']['document']['createRoot']();const _0x540847=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x540847);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3bf4b2,_0x5936ce){const _0x5a1ac4=new this(_0x3bf4b2,_0x5936ce);return await _0x5a1ac4['initPlugins'](),await _0x5a1ac4['ui']['init'](_0x3bf4b2),await _0x5a1ac4['data']['init'](_0x5a1ac4['config']['get']('initialData')||''),_0x5a1ac4['fire']('ready'),_0x5a1ac4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x149b28{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f4085){function _0x434caf(_0x59818d){return _0x59818d['map'](_0x565821=>String['fromCharCode'](_0x565821))['join']('');}super(_0x4f4085),this['result']='end',_0x4f4085[_0x434caf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x434caf([0x76,0x69,0x65,0x77])][_0x434caf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x434caf([0x61,0x75,0x74,0x6f]),_0x4f4085[_0x434caf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x434caf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x434caf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x434caf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x434caf([0x6f,0x6b])});}}class k extends _0x149b28{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x22a2a8){if(super(_0x22a2a8),!this['editor']['config']['get']('revisionHistory'))throw new _0x4676dd('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4a61a6=>this['_showRevisionViewer']({..._0x4a61a6,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3a5c8e=>this['_closeRevisionViewer'](_0x3a5c8e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x238889=>this['_restoreRevision'](_0x238889)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3d8a16){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3d8a16;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1131b4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1131b4);}['getRevision'](_0x2ce890){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x2ce890);}['getRevisions'](_0x2aefea){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2aefea||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4d64bc=this['editor'],_0x4bc25d=_0x38849b(_0x4d64bc,p),_0x78221b=_0x4d64bc['plugins']['get']('RevisionTracker'),_0x5ead80=_0x4d64bc['plugins']['get']('Users')['users'];return _0x4bc25d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4bc25d['lazyRoots'],(_0x4bc25d['plugins']['push'](_t,m,R,class extends _0x149b28{static get['requires'](){return[m,'Users'];}['init'](){const _0x29d2b4=this['editor']['plugins']['get']('Users');for(const _0x19c9bc of _0x5ead80)_0x19c9bc['isAnonymous']||_0x29d2b4['getUser'](_0x19c9bc['id'])||_0x29d2b4['addUser'](_0x19c9bc);const _0x417eeb=_0x78221b['repository']['getRevisions']();let _0x158710=null;const _0x3cb49c=this['editor']['plugins']['get']('RevisionViewer');_0x3cb49c['adapter']=_0x78221b['adapter'],_0x3cb49c['bind']('isEnabled')['to'](_0x78221b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4d64bc,'isReadOnly',_0x384f54=>!_0x384f54);for(const _0x4d4a87 of _0x417eeb){const _0x5d82f0=null===_0x4d4a87['creator'];if(_0x5d82f0&&_0x4d4a87['toVersion']===_0x4d4a87['fromVersion'])continue;const _0x30fd7e=_0x4d4a87['toJSON']();_0x3cb49c['addRevisionData'](_0x30fd7e,(_0x4d0b18,_0x40df68,_0x1cd910)=>{if(_0x5d82f0){if(_0x158710)_0x158710['_update'](_0x4d0b18,_0x40df68);else{if(!_0x40df68){const _0x574cf7=_0x1cd910['toJSON']();_0x574cf7['id']=_0x451426(),_0x78221b['saveRevision'](_0x574cf7,_0x1cd910['toVersion'])['then'](_0x5463c2=>{_0x158710=_0x5463c2;});}}}else _0x4d4a87['_update'](_0x4d0b18,_0x40df68);});}}},d),_0x4bc25d);}['_enhanceShowRevisionViewerCallback'](){const _0x4d18b6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4a1622=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x1eb4d9=this['editor']['plugins']['get']('Autosave');await _0x1eb4d9['save']();}else await _0x4a1622['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5c4573=this['editor']['plugins']['get']('Dialog');_0x5c4573['isOpen']&&_0x5c4573['hide']();}const _0x4cf10b=this['_getRevisionViewerEditorConfig']();return _0x4d18b6(_0x4cf10b)['then'](_0x36b139=>{return(this['_viewerEditor']=_0x36b139,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'),_0x36b139);})['catch'](_0x9e6de9=>(console['error'](_0x9e6de9),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5be9c4=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'](),_0x5be9c4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4ffc83=this['editor']['plugins']['get']('Annotations');_0x4ffc83['refreshVisibility'](),_0x4ffc83['refreshPositioning']();}})));}['_showRevisionViewer'](_0x518ae6){const _0x50c373=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xae1a2d=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x194825=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x194825,_0x518ae6)['then'](_0x53de9d=>(_0xae1a2d['style']['display']='block',_0x50c373['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x53de9d));}['_closeRevisionViewer'](_0x323aed){const _0x401746=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x401746['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x323aed['destroy']();}async['_restoreRevision'](_0x5b7759){const _0x41522d=this['editor'],_0x4d9fd3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x59473c=_0x41522d['plugins']['get']('RevisionTracker'),_0x259b85=_0x41522d['plugins']['get']('RevisionHistoryUtils'),_0x10f51f=_0x4d9fd3['repository']['getRevision'](_0x5b7759);let _0x280b9e,_0x5cb54b,_0x1fc12b;try{await _0x259b85['loadRevisionData'](_0x10f51f,this['adapter']),_0x280b9e=_0x259b85['getRevisionDocumentData'](_0x10f51f),_0x5cb54b=_0x259b85['getRevisionRootsAttributes'](_0x10f51f);}catch(_0x1f3c5b){return void console['error'](_0x1f3c5b);}_0x41522d['model']['change'](_0x4fd2e0=>{for(const _0x143870 of Array['from'](_0x41522d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4fd2e0['removeMarker'](_0x143870);}),_0x4d9fd3['isReady']=!0x1,_0x41522d['model']['enqueueChange'](_0x23f048=>{_0x23f048['setSelection'](null),_0x23f048['removeSelectionAttribute'](_0x41522d['model']['document']['selection']['getAttributeKeys']());const _0x2a92bc=Object['keys'](_0x280b9e);for(const _0x3ca3d0 of _0x41522d['model']['document']['roots'])'$graveyard'!=_0x3ca3d0['rootName']&&_0x3ca3d0['isAttached']()&&!_0x2a92bc['includes'](_0x3ca3d0['rootName'])&&_0x23f048['detachRoot'](_0x3ca3d0);for(const _0x397281 of _0x2a92bc){let _0x53a4c4=_0x41522d['model']['document']['getRoot'](_0x397281);_0x53a4c4&&_0x53a4c4['isAttached']()||(_0x53a4c4=_0x23f048['addRoot'](_0x397281));const _0x55a493=_0x5cb54b[_0x397281],_0x3ad2c1=Object['keys'](_0x55a493),_0x1eed79=_0x280b9e[_0x397281];for(const _0x17a89c of _0x53a4c4['getAttributeKeys']())_0x3ad2c1['includes'](_0x17a89c)||_0x23f048['removeAttribute'](_0x17a89c,_0x53a4c4);for(const _0x247cb0 of _0x3ad2c1)_0x23f048['setAttribute'](_0x247cb0,_0x5cb54b[_0x397281][_0x247cb0],_0x53a4c4);_0x23f048['remove'](_0x23f048['createRangeIn'](_0x53a4c4)),_0x23f048['insert'](_0x41522d['data']['parse'](_0x1eed79,_0x53a4c4),_0x53a4c4,0x0);}});const _0x49c7d3=g(_0x41522d['locale'],'Restored');if(_0x10f51f['name'])_0x1fc12b=-0x1==_0x10f51f['name']['indexOf'](_0x49c7d3)?_0x49c7d3+':\x20'+_0x10f51f['name']:_0x10f51f['name'];else _0x1fc12b=_0x49c7d3+':\x20'+(_0x10f51f['createdAt']['toLocaleDateString'](_0x41522d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x10f51f['createdAt']['toLocaleTimeString'](_0x41522d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x59473c['saveRevision']({'name':_0x1fc12b}),_0x4d9fd3['isReady']=!0x0,_0x41522d['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};