@ckeditor/ckeditor5-revision-history 44.3.0-alpha.0 → 44.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +10 -10
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x45eadb,uid as _0x49b9a1,Collection as _0x43846a,logWarning as _0x11aaac,FocusTracker as _0x3e6025,KeystrokeHandler as _0x61f9fd,scrollViewportToShowTarget as _0x4f643f,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x756e24}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x57b19f,set as _0x42b299,unset as _0x47e7a5,isEqual as _0x2ec612}from'lodash-es';import{Plugin as _0xc00adc,PendingActions as _0x366076,icons as _0xd99ff4,Command as _0x5db507,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x926ed0,getMarkerDomElement as _0x35fd59,ConfirmMixin as _0x406a80,sanitizeEditorConfig as _0x1396dd}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1f9cff,Element as ft,Range as vt,ViewUIElement as _0x44a4f8,ViewRawElement as _0x52a07e,ViewEmptyElement as _0x3a7bef,ViewAttributeElement as _0x388953,ViewContainerElement as _0xaeeac4,Position as gt,ViewText as _0x44c77c,ViewElement as _0x5e506b,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x1331b6,injectCssTransitionDisabler as ts,submitHandler as _0x1a34ad,LabeledFieldView as nt,createLabeledInputText as _0x1f5698,createDropdown as _0x336529,ListView as te,ListItemView as _0x339771,ButtonView as _0x46ea5a,MenuBarMenuView as _0x5f334e,MenuBarMenuListView as _0x4bc53c,MenuBarMenuListItemView as _0x4c0e56,MenuBarMenuListItemButtonView as _0xf0069e,ContextualBalloon as _0x33ed31,ToolbarSeparatorView as _0x401132,IconView as _0x1c6c68,addListToDropdown as _0x80f599,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x59a4ab}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x45eadb(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x21aa29){super(),this['id']=_0x21aa29['id']||_0x49b9a1(),this['creator']=_0x21aa29['creator']||null,this['authors']=_0x21aa29['authors']||[],this['diffData']=_0x21aa29['diffData']||null,this['toVersion']=_0x21aa29['toVersion']||0x0,this['fromVersion']=_0x21aa29['fromVersion']||0x0,this['set']('name',_0x21aa29['name']||''),this['set']('createdAt',_0x21aa29['createdAt']||new Date()),this['set']('attributes',_0x21aa29['attributes']||{});}['setName'](_0x523faf){this['_update']({'name':_0x523faf});}['setAttribute'](_0xf3ea33,_0x13800d){const _0x2d359e=_0x57b19f(this['attributes']);_0x42b299(_0x2d359e,_0xf3ea33,_0x13800d),this['_update']({'attributes':_0x2d359e});}['removeAttribute'](_0x36a38a){const _0x28099f=_0x57b19f(this['attributes']);_0x47e7a5(_0x28099f,_0x36a38a),this['_update']({'attributes':_0x28099f});}['_update'](_0x579f20,_0x1321c0=!0x1){let _0x387b8c=!0x1;const _0x1deb80={'id':this['id']},_0x31afcd=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4616fe of _0x31afcd){const _0x26e2c7=_0x579f20[_0x4616fe];void 0x0!==_0x26e2c7&&_0x26e2c7!==this[_0x4616fe]&&(this[_0x4616fe]=_0x26e2c7,_0x1deb80[_0x4616fe]=_0x26e2c7,_0x387b8c=!0x0);}_0x387b8c&&(_0x1deb80['authors']&&(_0x1deb80['authorsIds']=_0x1deb80['authors']['map'](_0x47fc2d=>_0x47fc2d['id']),delete _0x1deb80['authors']),this['fire']('_update',_0x1deb80,_0x1321c0));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x1b50b9=>_0x1b50b9['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0xc00adc{['_revisions'];static get['requires'](){return[_0x926ed0];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x131a33){super(_0x131a33),this['_revisions']=new _0x43846a();}['afterInit'](){!async function(_0x3d1ba8){const _0x29726f=_0x3ec99c([0x62,0x30,0x75,0x77,0x36,0x48,0x31,0x39,0x58,0x71,0x32,0x68,0x66,0x54,0x41,0x4c,0x4e,0x46,0x35,0x4b,0x33,0x4d,0x6d,0x70,0x72,0x4f,0x74,0x76,0x56,0x61,0x44,0x49,0x51,0x6c,0x59,0x45,0x78,0x65,0x69,0x42,0x63,0x4a,0x34,0x64,0x6e,0x57,0x6f,0x53,0x5a,0x43,0x6b,0x38,0x37,0x73,0x67,0x79,0x7a,0x6a,0x55,0x47,0x50,0x52]),_0x1a7682=0xeb829,_0x14c590=0x46a7764f,_0x3d54b3=0x46a016d7^_0x14c590,_0x34a798=window[_0x3ec99c([0x44,0x61,0x74,0x65])][_0x3ec99c([0x6e,0x6f,0x77])](),_0x15d162=_0x3d1ba8[_0x3ec99c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x523d03=new window[(_0x3ec99c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe9576d=>{_0x15d162[_0x3ec99c([0x6f,0x6e,0x63,0x65])](_0x3ec99c([0x72,0x65,0x61,0x64,0x79]),_0xe9576d);}),_0x1da68a={[_0x3ec99c([0x6b,0x74,0x79])]:_0x3ec99c([0x45,0x43]),[_0x3ec99c([0x75,0x73,0x65])]:_0x3ec99c([0x73,0x69,0x67]),[_0x3ec99c([0x63,0x72,0x76])]:_0x3ec99c([0x50,0x2d,0x32,0x35,0x36]),[_0x3ec99c([0x78])]:_0x3ec99c([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]),[_0x3ec99c([0x79])]:_0x3ec99c([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]),[_0x3ec99c([0x61,0x6c,0x67])]:_0x3ec99c([0x45,0x53,0x32,0x35,0x36])},_0x3419d7=_0x15d162[_0x3ec99c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ec99c([0x67,0x65,0x74])](_0x3ec99c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4bd4f6(){let _0xc6efb6,_0x10365e=null,_0x31b282=null;try{if(_0x3419d7==_0x3ec99c([0x47,0x50,0x4c]))return _0x3ec99c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xc6efb6=_0x324ca1(),!_0xc6efb6)return _0x3ec99c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xc6efb6[_0x3ec99c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x31b282=_0x3579c8(_0xc6efb6[_0x3ec99c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xc6efb6[_0x3ec99c([0x6a,0x74,0x69])])),await _0x26ec6e()?_0x3ef570()?_0x3f3bb1()?_0x3ec99c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15bdfe()?(_0xc6efb6[_0x3ec99c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ec99c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10365e=_0x1efee0(_0x3ec99c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xc6efb6[_0x3ec99c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ec99c([0x74,0x72,0x69,0x61,0x6c])&&(_0x10365e=_0x1efee0(_0x3ec99c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x165d46()):_0x3ec99c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ec99c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ec99c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5727d3){return _0x3ec99c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3f3bb1(){const _0x3c9701=[_0x3ec99c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ec99c([0x74,0x72,0x69,0x61,0x6c])][_0x3ec99c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc6efb6[_0x3ec99c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34a798/0x3e8:0xe10*_0x3d54b3;return _0xc6efb6[_0x3ec99c([0x65,0x78,0x70])]<_0x3c9701;}function _0x3ef570(){const _0x3952b4=_0xc6efb6[_0x3ec99c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3952b4)return!0x1;if(_0x3952b4[_0x3ec99c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ec99c([0x2a])))return!0x0;if(_0x3952b4[_0x3ec99c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ec99c([0x52,0x48])))return!0x0;if(_0x3952b4[_0x3ec99c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ec99c([0x52,0x52,0x48]))){if(_0x844de9())return!0x0;if(_0x1d3d38()||_0x153b2f())return!0x0;}return!0x1;}function _0x15bdfe(){const _0x20c77e=_0xc6efb6[_0x3ec99c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20c77e||0x0==_0x20c77e[_0x3ec99c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1deea0}=new URL(window[_0x3ec99c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20c77e[_0x3ec99c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1deea0))return!0x0;const _0x69f32=_0x1deea0[_0x3ec99c([0x73,0x70,0x6c,0x69,0x74])](_0x3ec99c([0x2e]));return _0x20c77e[_0x3ec99c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c71f1=>_0x1c71f1[_0x3ec99c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ec99c([0x2a])))[_0x3ec99c([0x6d,0x61,0x70])](_0x2b0b33=>_0x2b0b33[_0x3ec99c([0x73,0x70,0x6c,0x69,0x74])](_0x3ec99c([0x2e])))[_0x3ec99c([0x73,0x6f,0x6d,0x65])](_0x420d81=>_0x69f32[_0x3ec99c([0x65,0x76,0x65,0x72,0x79])]((_0x41120b,_0x4fc1e2)=>_0x420d81[_0x4fc1e2]===_0x41120b||_0x420d81[_0x4fc1e2]===_0x3ec99c([0x2a])));}function _0x165d46(){return _0x10365e&&_0x31b282?new window[(_0x3ec99c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x598dd1,_0x14875e)=>{_0x10365e[_0x3ec99c([0x74,0x68,0x65,0x6e])](_0x598dd1,_0x14875e),_0x31b282[_0x3ec99c([0x74,0x68,0x65,0x6e])](_0x37fd9c=>{_0x37fd9c!=_0x3ec99c([0x56,0x61,0x6c,0x69,0x64])&&_0x598dd1(_0x37fd9c);},_0x14875e);}):_0x10365e||_0x31b282||_0x3ec99c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3579c8(_0x295c01,_0x6ef70f){return new window[(_0x3ec99c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17d8c9=>{if(_0x5ebde8())return _0x17d8c9(_0x3ec99c([0x56,0x61,0x6c,0x69,0x64]));_0xe4309c(),_0x15d162[_0x3ec99c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ec99c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27ca78=!0x1;const _0x4cccb6=_0x49b9a1();function _0x42ae45(_0x49123e){return!!_0x49123e&&(typeof _0x49123e===_0x3ec99c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x49123e===_0x3ec99c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x49123e[_0x3ec99c([0x74,0x68,0x65,0x6e])]===_0x3ec99c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x49123e[_0x3ec99c([0x63,0x61,0x74,0x63,0x68])]===_0x3ec99c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4bdba1(_0x26919c){_0x2b77c7(_0x26919c)[_0x3ec99c([0x74,0x68,0x65,0x6e])](_0x96d23f=>{if(!_0x96d23f||_0x96d23f[_0x3ec99c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ec99c([0x6f,0x6b]))return _0x3ec99c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb4d3b1(_0x55bd84(_0x4cccb6+_0x6ef70f))!=_0x96d23f[_0x3ec99c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ec99c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ec99c([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ec99c([0x74,0x68,0x65,0x6e])](_0x53d120=>(_0x345f2c(),_0x53d120),()=>{const _0x1eae66=_0x47144d();return null==_0x1eae66?(_0x345f2c(),_0x3ec99c([0x56,0x61,0x6c,0x69,0x64])):_0x3ec99c(_0x34a798-_0x1eae66>(0x62abf24f^_0x14c590)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ec99c([0x74,0x68,0x65,0x6e])](_0x17d8c9)[_0x3ec99c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17d8c9(_0x3ec99c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5d9cbc=0x469198cf^_0x14c590;function _0x345f2c(){const _0x2467a4=_0x3ec99c([0x6c,0x6c,0x63,0x74,0x2d])+_0xb4d3b1(_0x55bd84(_0x295c01)),_0x8f7415=_0x205ce1(_0xb4d3b1(window[_0x3ec99c([0x4d,0x61,0x74,0x68])][_0x3ec99c([0x63,0x65,0x69,0x6c])](_0x34a798/_0x5d9cbc)));window[_0x3ec99c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ec99c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2467a4,_0x8f7415);}function _0x47144d(){const _0x580ec8=_0x3ec99c([0x6c,0x6c,0x63,0x74,0x2d])+_0xb4d3b1(_0x55bd84(_0x295c01)),_0x443f48=window[_0x3ec99c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ec99c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x580ec8);return _0x443f48?window[_0x3ec99c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x205ce1(_0x443f48),0x10)*_0x5d9cbc:null;}function _0x2b77c7(_0x324965){return new window[(_0x3ec99c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x586641,_0x1534ca)=>{_0x324965[_0x3ec99c([0x74,0x68,0x65,0x6e])](_0x586641,_0x1534ca),window[_0x3ec99c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1534ca,0x46a6a28f^_0x14c590);});}}_0x15d162[_0x3ec99c([0x6f,0x6e])](_0x3ec99c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x119144,_0x502ae1)=>{if(_0x502ae1[0x0]!=_0x295c01)return _0x17d8c9(_0x3ec99c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x502ae1[0x1]={..._0x502ae1[0x1],[_0x3ec99c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4cccb6};},{[_0x3ec99c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ec99c([0x68,0x69,0x67,0x68])}),_0x15d162[_0x3ec99c([0x6f,0x6e])](_0x3ec99c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a70dc=>{_0x42ae45(_0x2a70dc[_0x3ec99c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27ca78=!0x0,_0x4bdba1(_0x2a70dc[_0x3ec99c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ec99c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ec99c([0x6c,0x6f,0x77])}),_0x523d03[_0x3ec99c([0x74,0x68,0x65,0x6e])](()=>{_0x27ca78||_0x17d8c9(_0x3ec99c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5ebde8(){return _0x15d162[_0x3ec99c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ec99c([0x76,0x69,0x65,0x77])][_0x3ec99c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ec99c([0x61,0x75,0x74,0x6f]);}function _0xe4309c(){_0x15d162[_0x3ec99c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ec99c([0x76,0x69,0x65,0x77])][_0x3ec99c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ec99c([0x61,0x75,0x74,0x6f]);}}function _0x1efee0(_0x32784b){const _0x6a0f24=[new window[(_0x3ec99c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24007e=>setTimeout(_0x24007e,0x46ae4883^_0x14c590)),_0x523d03[_0x3ec99c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ec99c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x355b02=>{const _0x3f2116=0x46a77648^_0x14c590,_0x451b3e=_0x3d1ba8[_0x3ec99c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x296691(){_0x451b3e[_0x3ec99c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3f2116&&_0x355b02();}_0x296691(),_0x451b3e[_0x3ec99c([0x6f,0x6e])](_0x3ec99c([0x61,0x64,0x64]),_0x296691);})),new window[(_0x3ec99c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x972943=>{function _0x44aaff(){for(const _0x4ae421 in window)if(window[_0x3ec99c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3ec99c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4ae421))&&window[_0x4ae421]==_0x1a7682)return _0x972943();_0x15d162[_0x3ec99c([0x73,0x74,0x61,0x74,0x65])]!=_0x3ec99c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3ec99c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x44aaff,0x46a765c7^_0x14c590);}_0xfb465(_0x3ec99c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x44aaff();})];return window[_0x3ec99c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ec99c([0x72,0x61,0x63,0x65])](_0x6a0f24)[_0x3ec99c([0x74,0x68,0x65,0x6e])](()=>_0x32784b);}async function _0x56ccea(){if(await _0x523d03,_0xfb465(_0x3ec99c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1597da=_0x3d1ba8[_0x3ec99c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1e66f5=_0x3d1ba8[_0x3ec99c([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])](_0x1597da[_0x3ec99c([0x69,0x64])]),_0x19ba06=_0x587164(_0x3ec99c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x19ba06[_0x3ec99c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1597da['id'],_0x1e66f5?_0x1e66f5['id']:null,!0x0),_0x19ba06[_0x3ec99c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ec99c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x19ba06[_0x3ec99c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x19ba06[_0x3ec99c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x57586d,void(_0x19ba06[_0x3ec99c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x57586d);}if(_0xfb465(_0x3ec99c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x9a7bb4=_0x587164(_0x3ec99c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x9a7bb4[_0x3ec99c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ec99c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x9a7bb4[_0x3ec99c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x9a7bb4[_0x3ec99c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x57586d,_0x9a7bb4[_0x3ec99c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x57586d;}_0x15d162[_0x3ec99c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ec99c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x57586d,_0x15d162[_0x3ec99c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ec99c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x57586d,_0x15d162[_0x3ec99c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ec99c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x844de9(){return _0xfb465(_0x3ec99c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x587164(_0x3ec99c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ec99c([0x73,0x74,0x61,0x74,0x65])]==_0x3ec99c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1d3d38(){return _0xfb465(_0x3ec99c([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 _0x153b2f(){return _0xfb465(_0x3ec99c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x25b5f8(_0x10a7b8){const _0x419e44=_0x592288();_0x15d162[_0x419e44]=_0x3ec99c([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])+_0x10a7b8,_0x10a7b8[_0x3ec99c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3ec99c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x592288()]=_0x1a7682),_0x10a7b8!=_0x3ec99c([0x56,0x61,0x6c,0x69,0x64])&&_0x56ccea();}function _0x592288(){const _0x3ca8f0=window[_0x3ec99c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ec99c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ec99c([0x6e,0x6f,0x77])]())[_0x3ec99c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ec99c([0x2e]),'');let _0x1261a5=_0x3ec99c([0x62]);for(let _0x5c1fab=0x0;_0x5c1fab<_0x3ca8f0[_0x3ec99c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5c1fab+=0x2){let _0x5152f3=window[_0x3ec99c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ca8f0[_0x3ec99c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5c1fab,_0x5c1fab+0x2));_0x5152f3>=_0x29726f[_0x3ec99c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5152f3-=_0x29726f[_0x3ec99c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1261a5+=_0x29726f[_0x5152f3];}return _0x1261a5;}function _0x324ca1(){const _0x2aaebc=_0x3419d7[_0x3ec99c([0x73,0x70,0x6c,0x69,0x74])](_0x3ec99c([0x2e]));if(0x3!=_0x2aaebc[_0x3ec99c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x362c69(_0x2aaebc[0x1]);function _0x362c69(_0x188736){const _0x3710de=_0x1d30c1(_0x188736);return _0x3710de&&_0x584ead()?_0x3710de:null;function _0x584ead(){const _0x251238=_0x3710de[_0x3ec99c([0x6a,0x74,0x69])],_0x260fe4=window[_0x3ec99c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x251238[_0x3ec99c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x251238[_0x3ec99c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ca2c3={..._0x3710de,[_0x3ec99c([0x6a,0x74,0x69])]:_0x251238[_0x3ec99c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x251238[_0x3ec99c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ca2c3[_0x3ec99c([0x76,0x63])],_0x55bd84(_0x2ca2c3)==_0x260fe4;}}}async function _0x26ec6e(){let _0x5f0669=!0x0;try{const _0x32fb50=_0x3419d7[_0x3ec99c([0x73,0x70,0x6c,0x69,0x74])](_0x3ec99c([0x2e])),[_0x383251,_0xb3b1c1,_0x544a6e]=_0x32fb50;return _0x47ad44(_0x383251),await _0x2fab48(_0x383251,_0xb3b1c1,_0x544a6e),_0x5f0669;}catch(_0x3cbe14){return!0x1;}function _0x47ad44(_0x5bcae8){const _0x1eb362=_0x1d30c1(_0x5bcae8);_0x1eb362&&_0x1eb362[_0x3ec99c([0x61,0x6c,0x67])]==_0x3ec99c([0x45,0x53,0x32,0x35,0x36])||(_0x5f0669=!0x1);}async function _0x2fab48(_0x4e14cc,_0x1aabd9,_0x49ddf5){const _0x303ac3=window[_0x3ec99c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ec99c([0x66,0x72,0x6f,0x6d])](_0x5a1a49(_0x49ddf5),_0x4b27f0=>_0x4b27f0[_0x3ec99c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e7ca1=new window[(_0x3ec99c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ec99c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e14cc+_0x3ec99c([0x2e])+_0x1aabd9),_0x8bcb42=window[_0x3ec99c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ec99c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x8bcb42)return;const _0xfecf4=await _0x8bcb42[_0x3ec99c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ec99c([0x6a,0x77,0x6b]),_0x1da68a,{[_0x3ec99c([0x6e,0x61,0x6d,0x65])]:_0x3ec99c([0x45,0x43,0x44,0x53,0x41]),[_0x3ec99c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ec99c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ec99c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x8bcb42[_0x3ec99c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ec99c([0x6e,0x61,0x6d,0x65])]:_0x3ec99c([0x45,0x43,0x44,0x53,0x41]),[_0x3ec99c([0x68,0x61,0x73,0x68])]:{[_0x3ec99c([0x6e,0x61,0x6d,0x65])]:_0x3ec99c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfecf4,_0x303ac3,_0x4e7ca1)||(_0x5f0669=!0x1);}}function _0x1d30c1(_0x472ec0){return _0x472ec0[_0x3ec99c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ec99c([0x65,0x79]))?JSON[_0x3ec99c([0x70,0x61,0x72,0x73,0x65])](_0x5a1a49(_0x472ec0)):null;}function _0x5a1a49(_0x4a5d9c){return window[_0x3ec99c([0x61,0x74,0x6f,0x62])](_0x4a5d9c[_0x3ec99c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ec99c([0x2b]))[_0x3ec99c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ec99c([0x2f])));}function _0x55bd84(_0x4598f7){let _0xa21e99=0x1505;function _0x1e2ad0(_0x3b1d78){for(let _0x252eec=0x0;_0x252eec<_0x3b1d78[_0x3ec99c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x252eec++){const _0x105157=_0x3b1d78[_0x3ec99c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x252eec);_0xa21e99=(_0xa21e99<<0x5)+_0xa21e99+_0x105157,_0xa21e99&=_0xa21e99;}}function _0x3333f9(_0x35b5e2){Array[_0x3ec99c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x35b5e2)?_0x35b5e2[_0x3ec99c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3333f9):_0x35b5e2&&typeof _0x35b5e2==_0x3ec99c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ec99c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x35b5e2)[_0x3ec99c([0x73,0x6f,0x72,0x74])]()[_0x3ec99c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x595a7b,_0x25cd92])=>{_0x1e2ad0(_0x595a7b),_0x3333f9(_0x25cd92);}):_0x1e2ad0(window[_0x3ec99c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x35b5e2));}return _0x3333f9(_0x4598f7),_0xa21e99>>>0x0;}function _0xb4d3b1(_0x2ba35a){return _0x2ba35a[_0x3ec99c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ec99c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ec99c([0x30]));}function _0x205ce1(_0x462c05){return _0x462c05[_0x3ec99c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ec99c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ec99c([0x6a,0x6f,0x69,0x6e])]('');}function _0xfb465(_0x2ecd1b){return _0x15d162[_0x3ec99c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ec99c([0x68,0x61,0x73])](_0x2ecd1b);}function _0x587164(_0x4f6a56){return _0x15d162[_0x3ec99c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ec99c([0x67,0x65,0x74])](_0x4f6a56);}function _0x57586d(){}function _0x3ec99c(_0x905f48){return _0x905f48['map'](_0x32b0a4=>String['fromCharCode'](_0x32b0a4))['join']('');}_0x25b5f8(await _0x4bd4f6());}(this);}['createRevision'](_0x4a6f15){const _0x26410f=this['editor']['plugins']['get']('Users');return new a({'id':_0x4a6f15['id'],'name':_0x4a6f15['name'],'creator':_0x4a6f15['creatorId']?_0x26410f['getUser'](_0x4a6f15['creatorId']):null,'diffData':_0x4a6f15['diffData']||_0x4a6f15['data'],'authors':_0x4a6f15['authorsIds']['map'](_0x49f8ad=>_0x26410f['getUser'](_0x49f8ad)),'createdAt':new Date(_0x4a6f15['createdAt']),'attributes':_0x4a6f15['attributes'],'fromVersion':_0x4a6f15['fromVersion'],'toVersion':_0x4a6f15['toVersion']});}['addRevision'](_0x273b32,_0x1113e5=0x0){this['_revisions']['add'](_0x273b32,_0x1113e5);}['getRevision'](_0x5d0c49){return this['_revisions']['get'](_0x5d0c49);}['getRevisions'](_0x2ee7a2={'toJSON':!0x1}){const _0x4fe612=Array['from'](this['_revisions']);return _0x4fe612['reverse'](),_0x2ee7a2['toJSON']?_0x4fe612['map'](_0x948a51=>_0x948a51['toJSON']()):_0x4fe612;}['getIndex'](_0x2a15fa){return this['_revisions']['getIndex'](_0x2a15fa);}['getEarlierVisibleRevision'](_0x42cda2){const [,_0x14d5c9]=this['getRevisionsIterator'](_0x42cda2,{'direction':'earlier'});return _0x14d5c9;}['getLaterVisibleRevision'](_0x38bdec){const [,_0x40b337]=this['getRevisionsIterator'](_0x38bdec,{'direction':'later'});return _0x40b337;}['getRevisionsInDiff'](_0x5322ca){const _0x1321c9=[];for(const _0x3c8f23 of this['getRevisionsIterator'](_0x5322ca['newRevisionId']))if(_0x1321c9['push'](_0x3c8f23),_0x3c8f23['id']===_0x5322ca['oldRevisionId'])break;return _0x1321c9;}*['getRevisionsIterator'](_0x425356,{direction:_0x1a0049='earlier',filter:_0x360c74=()=>!0x0}={}){const _0x3e880b='earlier'===_0x1a0049?0x1:-0x1;let _0x2a6769=this['_revisions']['get'](_0x425356),_0x16e92b=this['getIndex'](_0x2a6769);for(yield _0x2a6769;_0x2a6769;){if(_0x16e92b+=_0x3e880b,_0x2a6769=this['getRevision'](_0x16e92b),!_0x2a6769)return;_0x360c74(_0x2a6769)&&(yield _0x2a6769);}}}function m(_0x20a4a2,_0x4ae5ef,_0x50b29f){const t=_0x20a4a2['t'];switch(_0x4ae5ef){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'},_0x50b29f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x50b29f);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0xaeeac4,'a':_0x388953,'e':_0x3a7bef,'r':_0x52a07e,'u':_0x44a4f8};class l extends _0xc00adc{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x926ed0,j,_0x366076];}constructor(_0x5d6d68){super(_0x5d6d68),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x1a2a59=_0x49b9a1();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x1a2a59},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x201eee=this['repository']['getRevision'](0x0),_0x37b095=_0x201eee&&null===_0x201eee['creator']?_0x201eee:null;if(this['_continueCurrentRevision']=!!_0x37b095&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x33af6b=this['_source']['getCurrentRevisionId'](),_0x159c3b=this['repository']['getRevision'](_0x33af6b);if(_0x159c3b)this['_startingVersion']=_0x159c3b['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1c9977=this['_source']['history']['_operations']['find'](_0x1061d7=>!_0x1061d7['_isInit']),_0x1b5ba3=_0x1c9977?_0x1c9977['baseVersion']:this['_source']['history']['version'];_0x201eee?(_0x201eee['toVersion']<_0x1b5ba3&&_0x201eee['_update']({'toVersion':_0x1b5ba3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x37b095['id'],this['_startingVersion']=_0x37b095['fromVersion']):(this['_startingVersion']=_0x201eee['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1b5ba3,this['_continueCurrentRevision']=!0x1);}}else _0x37b095&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x37b095['toVersion'],this['editor']['model']['document']['history']['version']),_0x37b095['fromVersion']===_0x37b095['toVersion']?(0x0!==_0x37b095['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x37b095['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x37b095['id'],this['_startingVersion']=_0x37b095['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',_0x74301e=>!_0x74301e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3cf4aa=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x48c915;for(const _0x306826 in _0x3cf4aa){const _0x1b74bc=_0x306826,_0x446dad=_0x3cf4aa[_0x1b74bc];if('revisionHistoryLicenseKeyValid'==_0x446dad||'revisionHistoryLicenseKeyInvalid'==_0x446dad||'revisionHistoryLicenseKeyExpired'==_0x446dad||'revisionHistoryLicenseKeyDomainLimit'==_0x446dad||'revisionHistoryLicenseKeyNotAllowed'==_0x446dad||'revisionHistoryLicenseKeyEvaluationLimit'==_0x446dad||'revisionHistoryLicenseKeyTrialLimit'==_0x446dad||'revisionHistoryLicenseKeyUsageLimit'==_0x446dad){delete _0x3cf4aa[_0x1b74bc],_0x48c915=_0x446dad,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x48c915&&_0x3cf4aa['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x48c915&&_0x3cf4aa['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x48c915&&_0x3cf4aa['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x48c915&&_0x3cf4aa['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x48c915&&_0x3cf4aa['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x48c915&&_0x3cf4aa['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x48c915&&_0x3cf4aa['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x34ea67=this['repository']['getRevision'](0x0),_0x426011=await this['getRevisionDocumentData'](_0x34ea67),_0x523ead=await this['getRevisionRootsAttributes'](_0x34ea67);this['_replaceEditorDataWithRevisionData'](_0x426011,_0x523ead);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5e49f3){this['_source']=_0x5e49f3;}async['update'](){const _0x1259e4=await this['_source']['getLatestVersion']();if(_0x1259e4>this['currentRevision']['toVersion']){await this['_loadState']();const _0xdb0960=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1259e4});_0xdb0960['authors']=_0xdb0960['authorsIds']['map'](_0x1d92dc=>this['editor']['plugins']['get']('Users')['getUser'](_0x1d92dc)),this['currentRevision']['_update'](_0xdb0960);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x40903f={},_0x2091af=null){const _0x502e0c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2091af>this['currentRevision']['toVersion']&&(_0x2091af=null),null===_0x2091af&&(_0x2091af=await this['_source']['getLatestVersion']());const _0x593caa=this['_getFromVersion'](_0x2091af),_0x2dd090=this['buildRevisionData']({'from':_0x593caa,'to':_0x2091af});if(this['currentRevision']['toVersion']<_0x2091af){const _0x175cdb=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2091af,'to':_0x2091af});_0x175cdb['authors']=[],_0x175cdb['authorsIds']=[],_0x175cdb['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x175cdb,!0x0),delete _0x175cdb['authors'],_0x502e0c['push'](_0x175cdb);}_0x40903f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x40903f['name']=_0x40903f['name']||null,_0x40903f['id']=_0x40903f['id']||_0x49b9a1(),_0x40903f={..._0x40903f,..._0x2dd090};const _0x192b05=this['addRevisionData'](_0x40903f);_0x502e0c['push'](_0x40903f);const _0x41e8f4=this['repository']['getIndex'](_0x192b05);if(0x0!==_0x41e8f4){const _0x5e8de7=this['repository']['getRevision'](_0x41e8f4-0x1);if(_0x5e8de7['fromVersion']!==_0x2091af){const _0x2ed314=this['_revisionDataBuilder']['getData'](_0x2091af,_0x5e8de7['toVersion']),_0x300488={'id':_0x5e8de7['id'],'diffData':_0x2ed314['diffData'],'authorsIds':_0x2ed314['authorsIds'],'authors':_0x2ed314['authorsIds']['map'](_0x1a569a=>this['editor']['plugins']['get']('Users')['getUser'](_0x1a569a)),'fromVersion':_0x2091af};_0x5e8de7===this['currentRevision']&&(_0x300488['createdAt']=new Date(_0x40903f['createdAt']['getTime']()+0xa)),_0x5e8de7['_update'](_0x300488,!0x0),delete _0x300488['authors'],_0x502e0c['push'](_0x300488);}}if(this['adapter']){for(const _0x40dc36 of _0x502e0c)this['_bufferUpdate'](_0x40dc36['id'],_0x40dc36,!0x0);this['sendBufferedUpdates']();}return _0x192b05;}['addRevisionData'](_0x202312){const _0x305000=this['repository']['createRevision'](_0x202312);return this['adapter']&&_0x305000['on']('_update',(_0x899c72,_0x144986,_0x30a5dc)=>{_0x30a5dc||(this['_bufferUpdate'](_0x144986['id'],_0x144986,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x305000,this['_findInsertionIndex'](_0x305000)),_0x305000;}async['getRevisionDocumentData'](_0x4986fb){await this['_loadRevisionData'](_0x4986fb);const _0x5c441c={};for(const _0x5088e9 in _0x4986fb['diffData']){if(_0x4986fb['diffData'][_0x5088e9]['attachChange']&&!_0x4986fb['diffData'][_0x5088e9]['attachChange']['isAttached'])continue;const _0x4ee2ae=this['_removeRevisionMarkers'](JSON['parse'](_0x4986fb['diffData'][_0x5088e9]['insertions'])),_0x30b736=this['editor']['editing']['view']['document'],_0x55afbf=new _0x1f9cff(_0x30b736,_0x4ee2ae['map'](_0x588642=>C(_0x588642,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x5c441c[_0x5088e9]=this['editor']['data']['processor']['toData'](_0x55afbf),this['editor']['data']['processor']['useFillerType']('default');}return _0x5c441c;}async['getRevisionRootsAttributes'](_0x1e30a7){await this['_loadRevisionData'](_0x1e30a7);const _0x350929={};for(const _0x31385c in _0x1e30a7['diffData'])_0x1e30a7['diffData'][_0x31385c]['attachChange']&&!_0x1e30a7['diffData'][_0x31385c]['attachChange']['isAttached']||(_0x350929[_0x31385c]=_0x1e30a7['diffData'][_0x31385c]['attributesAfter']||{});return _0x350929;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5702a2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1887a4=0x0;_0x1887a4<_0x5702a2['length'];_0x1887a4++){const _0xc8483d=_0x5702a2[_0x1887a4];let _0x216101=!0x1;for(const _0x224ccb of Object['keys'](_0xc8483d))void 0x0===_0xc8483d[_0x224ccb]?delete _0xc8483d[_0x224ccb]:'id'!==_0x224ccb&&(_0x216101=!0x0);_0x216101||(_0x5702a2[_0x1887a4]=null);}if(_0x5702a2=_0x5702a2['filter'](_0xcd7217=>null!==_0xcd7217),!_0x5702a2['length'])return;for(let _0x1fa428=0x0;_0x1fa428<_0x5702a2['length'];_0x1fa428++){const _0x4b4e80=_0x5702a2[_0x1fa428];void 0x0!==_0x4b4e80['fromVersion']&&void 0x0===_0x4b4e80['toVersion']&&(_0x4b4e80['toVersion']=this['repository']['getRevision'](_0x4b4e80['id'])['toVersion']),void 0x0!==_0x4b4e80['toVersion']&&void 0x0===_0x4b4e80['fromVersion']&&(_0x4b4e80['fromVersion']=this['repository']['getRevision'](_0x4b4e80['id'])['fromVersion']);}const _0x5567ab=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5702a2,_0x5567ab)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x175b3b=>{if(_0x175b3b){for(const _0xf79f3e of _0x175b3b)this['setRevisionData']({'id':_0xf79f3e['id'],'createdAt':_0xf79f3e['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x54f06b,_0x4e4da3){let _0xd9525f=this['editor']['config']['get']('initialData'),_0x3a4e54=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xd9525f){_0xd9525f={};for(const _0x50e2f6 of this['editor']['model']['document']['getRootNames']())_0xd9525f[_0x50e2f6]='';}if('string'==typeof _0xd9525f&&(_0xd9525f={'main':_0xd9525f}),void 0x0===_0x3a4e54){_0x3a4e54={};for(const _0x5d37c7 of this['editor']['model']['document']['getRootNames']())_0x3a4e54[_0x5d37c7]={};}let _0x269bbb=!0x1;const _0x6c0aad=Object['keys'](_0xd9525f),_0x2d9623=Object['keys'](_0x54f06b);for(const _0x1c6e95 of _0x6c0aad){if(_0xd9525f[_0x1c6e95]!==_0x54f06b[_0x1c6e95]&&''!==_0xd9525f[_0x1c6e95]['trim']()){_0x269bbb=!0x0;break;}if(!_0x2ec612(_0x3a4e54[_0x1c6e95],_0x4e4da3[_0x1c6e95])&&Object['keys'](_0x3a4e54[_0x1c6e95])['length']>0x0){_0x269bbb=!0x0;break;}}_0x269bbb||(_0x269bbb=_0x2d9623['some'](_0x5a3cda=>!this['editor']['model']['document']['getRoot'](_0x5a3cda))),_0x269bbb&&_0x11aaac('editor-initial-data-replaced-with-revision-data',{'editorData':_0xd9525f,'editorRootsAttributes':_0x3a4e54,'revisionData':_0x54f06b,'revisionRootsAttributes':_0x4e4da3}),this['editor']['config']['set']('initialData',_0x54f06b),this['editor']['config']['set']('rootsAttributes',_0x4e4da3);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x351976=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x351976['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x550b80){const _0x33caab=this['repository']['getRevisions']();_0x33caab['reverse']();let _0x5179bb=0x0;for(;_0x5179bb<_0x33caab['length'];){const _0x273820=_0x33caab[_0x5179bb];if(_0x273820===this['currentRevision']){_0x5179bb++;continue;}if(_0x273820['id']===this['_initialRevisionId'])break;const _0x1fecca=_0x550b80['toVersion']-_0x273820['toVersion']||_0x550b80['fromVersion']-_0x273820['fromVersion'];if(_0x1fecca>0x0)break;if(_0x1fecca<0x0)_0x5179bb++;else{if(!_0x550b80['creator']&&_0x273820['creator'])break;if(_0x273820['creator']||!_0x550b80['creator']){if(_0x550b80['createdAt']>_0x273820['createdAt'])break;_0x5179bb++;}else _0x5179bb++;}}return _0x5179bb;}['setRevisionData'](_0x5929ab){const _0x2aed4c=this['repository']['getRevision'](_0x5929ab['id']);if(_0x5929ab['createdAt']&&(_0x5929ab['createdAt']=new Date(_0x5929ab['createdAt'])),_0x5929ab['authorsIds']){const _0x10d928=this['editor']['plugins']['get']('Users');_0x5929ab['authors']=_0x5929ab['authorsIds']['map'](_0x1c5514=>_0x10d928['getUser'](_0x1c5514));}_0x2aed4c['_update'](_0x5929ab,!0x0);}['buildRevisionData']({revision:_0x513f81=null,from:_0x5adaa5=null,to:_0x3dbd92=null}){_0x5adaa5=null!==_0x5adaa5?_0x5adaa5:_0x513f81['fromVersion'],_0x3dbd92=null!==_0x3dbd92?_0x3dbd92:_0x513f81['toVersion'];const _0x4f2734=this['_revisionDataBuilder']['getData'](_0x5adaa5,_0x3dbd92),_0x17ebdc={'diffData':_0x4f2734['diffData'],'authorsIds':_0x4f2734['authorsIds'],'fromVersion':_0x5adaa5,'toVersion':_0x3dbd92};if(!_0x513f81||_0x3dbd92!==_0x513f81['toVersion']){const _0x55736e=_0x3dbd92-0x1,_0x1ba3c5=this['_source']['history']['getOperation'](_0x55736e);_0x17ebdc['createdAt']=_0x1ba3c5&&_0x1ba3c5['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5adaa5===this['_loadedStateData']['fromVersion']){for(const _0x262516 of this['_loadedStateData']['authors'])_0x17ebdc['authorsIds']['includes'](_0x262516['id'])||_0x17ebdc['authorsIds']['push'](_0x262516['id']);}return _0x17ebdc;}['_loadRevisionData'](_0x4ade27){if(!_0x4ade27||_0x4ade27['diffData'])return Promise['resolve']();{const _0x22de2f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x22de2f,'revisionId':_0x4ade27['id']})['then'](_0x1bf665=>{_0x4ade27['diffData']=_0x1bf665['diffData'];});}}['_bufferUpdate'](_0x3f8d11,_0x218c50,_0x41ee83){if(this['_bufferedUpdates']['has'](_0x3f8d11)){const _0x1ef7b2=this['_bufferedUpdates']['get'](_0x3f8d11);_0x218c50=_0x41ee83?{..._0x1ef7b2,..._0x218c50}:{..._0x218c50,..._0x1ef7b2};}this['_bufferedUpdates']['set'](_0x3f8d11,_0x218c50);}['_getFromVersion'](_0x23fdee){const _0x20f94d=this['repository']['getRevisions']();_0x20f94d['reverse'](),_0x20f94d['shift']();const _0x535282=_0x20f94d['find'](_0x569107=>_0x569107['toVersion']<=_0x23fdee)['toVersion'];return _0x535282<this['_startingVersion']?this['_startingVersion']:_0x535282;}['_createInitialRevision'](_0x3de3ea){const _0x4218fe=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4218fe)this['_initialRevisionId']=_0x4218fe['id'];else{const _0x526eb8=!this['editor']['model']['document']['roots']['find'](_0x2bdcf8=>this['editor']['model']['hasContent'](_0x2bdcf8)),_0x830e6c=this['editor']['plugins']['get']('Users')['me']['id'],_0x1d204a=m(this['editor']['locale'],_0x526eb8?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3de3ea,'to':_0x3de3ea,'id':this['_initialRevisionId'],'name':_0x1d204a,'creatorId':_0x830e6c});}}['_createCurrentRevision'](_0xce1847){const _0x14b033=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x14b033),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xce1847,'to':_0xce1847,'id':_0x14b033,'name':'','creatorId':null}));}['_makeRevision']({name:_0x17c1c2,from:_0x4d0997,to:_0x51cfd6,creatorId:_0x2729f2,id:_0x63d7dc}){const _0x4e3c54=this['buildRevisionData']({'from':_0x4d0997,'to':_0x51cfd6});_0x4e3c54['name']=_0x17c1c2,_0x4e3c54['creatorId']=_0x2729f2,_0x4e3c54['id']=_0x63d7dc;const _0x49a314=this['addRevisionData'](_0x4e3c54);return this['adapter']&&this['_bufferUpdate'](_0x4e3c54['id'],_0x4e3c54,!0x0),_0x49a314;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x19e4da){return(_0x19e4da=_0x19e4da['filter'](_0x38c10a=>!_0x38c10a['name']||'revision-start'!==_0x38c10a['name']&&'revision-end'!==_0x38c10a['name']))['forEach'](_0x2c9330=>{'string'!=typeof _0x2c9330&&(_0x2c9330['children']=this['_removeRevisionMarkers'](_0x2c9330['children']),_0x2c9330['attributes']=_0x2c9330['attributes']['filter'](_0x2c3a60=>!_0x2c3a60[0x0]['startsWith']('data-revision-')));}),_0x19e4da;}}function C(_0x345543,_0x3a8e0c){const _0x4a7c4e=_0x3a8e0c['editing']['view']['document'];if('string'==typeof _0x345543)return new _0x44c77c(_0x4a7c4e,_0x345543);{const _0x523174=_0x345543['children']['map'](_0x5f0814=>C(_0x5f0814,_0x3a8e0c));return new(P[_0x345543['type']]||_0x5e506b)(_0x4a7c4e,_0x345543['name'],_0x345543['attributes'],_0x523174);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x26842f){this['editor']=_0x26842f,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'](_0xbd5c66){this['source']=_0xbd5c66;const _0x3af001=new Map(),_0x2a5253=new Map(),_0x521017=this['editor']['model']['document']['roots']['map'](_0x45add8=>_0x45add8['rootName']);for(const _0x2417e6 of _0x521017){const _0x1c7327=this['editor']['model']['document']['getRoot'](_0x2417e6),_0x46fe7f=T(_0x1c7327);_0x3af001['set'](_0x2417e6,_0x46fe7f),_0x2a5253['set'](_0x2417e6,Object['fromEntries'](_0x1c7327['getAttributes']()));}const _0x1729a5=Array['from'](this['editor']['model']['markers'])['map'](_0x3b511a=>[_0x3b511a['name'],_0x3b511a['getRange']()]),_0x22c2c7=this['source']['version'];this['_saveMetaData'](_0x22c2c7,_0x3af001,_0x1729a5,_0x2a5253),this['_startingRevisionId']=this['_revisionId'];const _0x4306bb=new Map(),_0xe95d2e=new Map();for(const _0x481e26 of _0x521017){const _0x230dea=F(_0x481e26);_0x4306bb['set'](_0x481e26,_0x230dea),_0xe95d2e['set'](_0x481e26,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4306bb,[],_0xe95d2e);}['getData'](_0x542690,_0x2ae63a){if(this['_lastFrom']===_0x542690&&this['_lastTo']<=_0x2ae63a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2ae63a,!0x0);else{if(!this['_savedMetaData']['has'](_0x542690)){const _0x34174e=this['_getPreviousFrom'](_0x542690);this['_calculateMetaData'](_0x34174e,_0x542690,!0x1);}this['_calculateMetaData'](_0x542690,_0x2ae63a,!0x0);}return this['_lastFrom']=_0x542690,this['_lastTo']=_0x2ae63a,this['_getState']();}['loadState'](_0x138f27){this['_reset'](),this['_lastFrom']=_0x138f27['fromVersion'],this['_lastTo']=_0x138f27['toVersion'];for(const _0x55aa75 in _0x138f27['diffData']){const _0x6480b=_0x138f27['diffData'][_0x55aa75]['attachChange'],_0x2052d1=_0x57b19f(_0x138f27['diffData'][_0x55aa75]['attributesBefore'])||{},_0x50c529=this['_makeModelFromViewString'](_0x138f27['diffData'][_0x55aa75]['deletions']);_0x50c529['rootName']=_0x55aa75,_0x50c529['_isAttached']=!_0x6480b||!_0x6480b['isAttached'],_0x50c529['isAttached']=()=>_0x50c529['_isAttached'],this['_baseRoots']['set'](_0x55aa75,_0x50c529),this['_baseRootsAttributes']['set'](_0x55aa75,_0x2052d1),_0x6480b&&this['_touchedRoots']['set'](_0x55aa75,_0x6480b);const _0xcffd90=this['_makeIdsRoot'](_0x50c529);this['_baseIdsRoots']['set'](_0x55aa75,_0xcffd90);for(const [_0x49251c,_0x4812b6]of _0x50c529['markers']){if(!_0x49251c['startsWith']('revision:'))continue;const _0x19330d=_0x49251c['split'](':')[0x2];for(const _0x5c89b9 of _0x4812b6['getWalker']({'singleCharacters':!0x0})){const _0x395f34=this['_getVidAttributeName'](_0x5c89b9),_0x55106a='elementEnd'==_0x5c89b9['type']?_0x5c89b9['previousPosition']['path']['slice'](0x0,-0x1):_0x5c89b9['previousPosition']['path'],_0x3ad8d4=_0xcffd90['getNodeByPath'](_0x55106a)['getAttribute'](_0x395f34);this['_touched']['set'](_0x3ad8d4,{'userId':_0x19330d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2b6cb6=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5f5717=>!this['_touched']['has'](_0x5f5717));let _0x24ad4b=0x0;const _0xa7bd93=new Map();for(const _0x2a7875 in _0x138f27['diffData']){const _0x389851=_0x138f27['diffData'][_0x2a7875]['attachChange'],_0x1041f1=_0x57b19f(_0x138f27['diffData'][_0x2a7875]['attributesAfter'])||{},_0x2ed8ba=this['_makeModelFromViewString'](_0x138f27['diffData'][_0x2a7875]['insertions']);_0x2ed8ba['rootName']=_0x2a7875,_0x2ed8ba['_isAttached']=!_0x389851||_0x389851['isAttached'],_0x2ed8ba['isAttached']=()=>_0x2ed8ba['_isAttached'],this['_diffRoots']['set'](_0x2a7875,_0x2ed8ba),this['_diffRootsAttributes']['set'](_0x2a7875,_0x1041f1);const _0x166e96=this['_makeIdsRoot'](_0x2ed8ba,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2a7875,_0x166e96),_0xa7bd93['set'](_0x2a7875,_0x2ed8ba['isAttached']()?_0x1041f1:{});for(const [_0x4e1070,_0x2fd600]of _0x2ed8ba['markers']){if(!_0x4e1070['startsWith']('revision:'))continue;const _0x1dd0a9=_0x4e1070['split'](':')[0x2];for(const _0x13d19b of _0x2fd600['getWalker']({'singleCharacters':!0x0})){const _0xd329c9=this['_getVidAttributeName'](_0x13d19b),_0x1d3ad9=this['_revisionId']++,_0x334402='elementEnd'==_0x13d19b['type']?_0x13d19b['previousPosition']['path']['slice'](0x0,-0x1):_0x13d19b['previousPosition']['path'];_0x166e96['getNodeByPath'](_0x334402)['_setAttribute'](_0xd329c9,_0x1d3ad9),this['_touched']['set'](_0x1d3ad9,{'userId':_0x1dd0a9});}}for(const _0x15fa3c of this['editor']['model']['createRangeIn'](_0x2ed8ba)['getWalker']({'singleCharacters':!0x0})){const _0x1b2bfd=this['_getVidAttributeName'](_0x15fa3c),_0x47e884='elementEnd'==_0x15fa3c['type']?_0x15fa3c['previousPosition']['path']['slice'](0x0,-0x1):_0x15fa3c['previousPosition']['path'],_0x25562b=_0x166e96['getNodeByPath'](_0x47e884);_0x25562b['getAttribute'](_0x1b2bfd)>0x0||_0x25562b['_setAttribute'](_0x1b2bfd,_0x2b6cb6[_0x24ad4b++]);}for(const [_0x590cca,_0x4a08d8]of _0x2ed8ba['markers'])_0x590cca['startsWith']('revision:')||this['_markers']['set'](_0x590cca,_0x4a08d8);}const _0xd06755=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0xd06755),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xd06755,0x1));const _0x500cfb=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x500cfb),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x500cfb,0x1));const _0x20219c=Array['from'](this['_diffRoots'])['map'](([_0x37d8b3,_0x24cbad])=>[_0x37d8b3,T(_0x24cbad)]);this['_saveMetaData'](this['_lastTo'],_0x20219c,this['_markers'],_0xa7bd93);}['_makeModelFromViewString'](_0x4f4bda){const _0x1dd9f9=JSON['parse'](_0x4f4bda),_0xec73df=this['editor']['editing']['view']['document'],_0x59c56a=new _0x1f9cff(_0xec73df,_0x1dd9f9['map'](_0x2d7f46=>C(_0x2d7f46,this['editor'])));return this['editor']['data']['toModel'](_0x59c56a);}['_saveMetaData'](_0xb19fca,_0x30c102,_0x53e8bd,_0xd7d664){const _0x25e5c1=new Map(_0x30c102),_0xb3c18a=new Map(_0x57b19f(_0xd7d664)),_0x53cf83=new Map();for(const [_0x185bb5,_0x4967c6]of _0x53e8bd)_0x53cf83['set'](_0x185bb5,{'start':_0x4967c6['start']['clone'](),'end':_0x4967c6['end']['clone'](),'rootName':_0x4967c6['root']['rootName']});this['_savedMetaData']['set'](_0xb19fca,{'roots':_0x25e5c1,'markers':_0x53cf83,'rootsAttributes':_0xb3c18a});}['_removeMetaData'](_0xc8c1bf){this['_savedMetaData']['delete'](_0xc8c1bf);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x2f673e,_0xa906ad=null){let _0x15c8b9=null;_0x2f673e['is']('documentFragment')||(_0x15c8b9=new ft(_0x2f673e['name'],{'vid_start':null===_0xa906ad?this['_revisionId']++:_0xa906ad++}));const _0x14d84e=[];for(const _0x575912 of _0x2f673e['getChildren']())if(_0x575912['is']('element')){_0x14d84e['push'](this['_makeIdsRoot'](_0x575912,_0xa906ad));const _0x34c6e9=_0x14d84e[_0x14d84e['length']-0x1];null!==_0xa906ad&&(_0xa906ad=_0x34c6e9['is']('element','$text')?_0x34c6e9['getAttribute']('vid')+0x1:_0x34c6e9['getAttribute']('vid_end')+0x1);}else{for(let _0x317425=0x0;_0x317425<_0x575912['offsetSize'];_0x317425++)_0x14d84e['push'](new ft('$text',{'vid':null===_0xa906ad?this['_revisionId']++:_0xa906ad++}));}if(_0x2f673e['is']('documentFragment')){const _0x3702b7=F(_0x2f673e['rootName']);return _0x3702b7['_insertChild'](0x0,_0x14d84e),_0x3702b7;}return _0x15c8b9['_setAttribute']('vid_end',null===_0xa906ad?this['_revisionId']++:_0xa906ad++),_0x15c8b9['_insertChild'](0x0,_0x14d84e),_0x15c8b9;}['_calculateMetaData'](_0x391b66,_0x852c7a,_0x5dbe17){this['_reset']();const {roots:_0x4f3a3a,markers:_0x4d10cf,rootsAttributes:_0x3150d8}=this['_savedMetaData']['get'](_0x391b66);this['_baseRoots']=new Map(_0x4f3a3a),this['_baseRootsAttributes']=new Map(_0x57b19f(_0x3150d8));for(const [_0x1991de,_0x17bcbf]of this['_baseRoots'])if('$graveyard'!==_0x1991de&&(this['_diffRoots']['set'](_0x1991de,T(_0x17bcbf)),this['_diffRootsAttributes']=new Map(_0x57b19f(_0x3150d8)),_0x5dbe17)){const _0x4a6003=this['_revisionId'];this['_idsRoots']['set'](_0x1991de,this['_makeIdsRoot'](_0x17bcbf)),this['_baseIdsRoots']['set'](_0x1991de,this['_makeIdsRoot'](_0x17bcbf,_0x4a6003));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x5dbe17&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3bcbcc,_0x5648d7]of _0x4d10cf){const _0x31bbcd=this['_baseRoots']['get'](_0x5648d7['rootName']),_0x11a644=this['_diffRoots']['get'](_0x5648d7['rootName']),_0x25c301=new vt(this['_fixPosition'](_0x5648d7['start'],_0x31bbcd),this['_fixPosition'](_0x5648d7['end'],_0x31bbcd)),_0x410a86=this['_fixRange'](_0x25c301,_0x11a644);_0x31bbcd['markers']['set'](_0x3bcbcc,_0x25c301),this['_markers']['set'](_0x3bcbcc,_0x410a86);}this['_applyOperations'](_0x391b66,_0x852c7a,_0x5dbe17);}['_applyOperations'](_0x37929f,_0x5dd760,_0x5996a7){for(const _0x5d7b32 of this['source']['getOperations'](_0x37929f,_0x5dd760))this['_handleOperation'](_0x5d7b32,_0x5996a7);for(const _0x3d3b6a of this['_diffRoots']['values']())_0x3d3b6a['markers']['clear']();for(const [_0x7b9aac,_0x5e59ba]of this['_markers']){this['_diffRoots']['get'](_0x5e59ba['root']['rootName'])['markers']['set'](_0x7b9aac,_0x5e59ba['clone']());}const _0x1fbc81=new Map(),_0x30b97e=new Map();for(const [_0x41917f,_0x495d54]of this['_diffRoots'])_0x1fbc81['set'](_0x41917f,T(_0x495d54)),_0x30b97e['set'](_0x41917f,this['_diffRootsAttributes']['get'](_0x41917f));this['_saveMetaData'](_0x5dd760,_0x1fbc81,this['_markers'],_0x30b97e);}['_getPreviousFrom'](_0x37d919){const _0x3c5f09=Array['from'](this['_savedMetaData']['keys']());_0x3c5f09['sort']((_0x2d0565,_0x53e783)=>_0x2d0565-_0x53e783),_0x3c5f09['reverse']();for(const _0x54163e of _0x3c5f09)if(_0x54163e<_0x37d919)return _0x54163e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x239c08,_0x25dea5){const _0x3e2624=Array['from'](_0x25dea5['markers'])['map'](([_0x15171e,_0x361388])=>[_0x15171e,this['_fixRange'](_0x361388,_0x239c08)]);_0x239c08['markers']=new Map(_0x3e2624);}['_transformMarkers'](_0x5d2490){for(const _0x8781ad of this['_markers']['values']()){const _0x8abe53=_0x8781ad['getTransformedByOperation'](_0x5d2490),_0x4e3c95=vt['_createFromRanges'](_0x8abe53);_0x8781ad['start']=_0x4e3c95['start'],_0x8781ad['end']=_0x4e3c95['end'];}}['_handleOperation'](_0x1779c9,_0x25ef86){if('addRoot'!=_0x1779c9['type']&&'detachRoot'!=_0x1779c9['type']){if('insert'==_0x1779c9['type']){const _0x59eb61=_0x1779c9['position']['root']['rootName'];this['_diffRoots']['has'](_0x59eb61)||(this['_diffRoots']['set'](_0x59eb61,F(_0x59eb61,!0x0)),this['_diffRootsAttributes']['set'](_0x59eb61,{}),_0x25ef86&&this['_idsRoots']['set'](_0x59eb61,F(_0x59eb61,!0x0)));}else{if('addRootAttribute'==_0x1779c9['type']||'removeRootAttribute'==_0x1779c9['type']||'changeRootAttribute'==_0x1779c9['type'])return void this['_handleRootAttributeOperation'](_0x1779c9);'marker'==_0x1779c9['type']&&this['_handleMarkerOperation'](_0x1779c9);}if('marker'!==_0x1779c9['type']){const _0xfb9c68=this['_cloneOperation'](_0x1779c9,this['_diffRoots']);_0xfb9c68['_execute'](),this['_transformMarkers'](_0xfb9c68);}if(_0x25ef86)switch(_0x1779c9['type']){case'insert':this['_handleInsertOperation'](_0x1779c9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1779c9);break;case'merge':this['_handleMergeOperation'](_0x1779c9);break;case'split':this['_handleSplitOperation'](_0x1779c9);}}else this['_handleRootOperation'](_0x1779c9,_0x25ef86);}['_cloneOperation'](_0x35ddf4,_0x4fb78c){const _0x36c4b9=_0x35ddf4['clone']();return _0x36c4b9['_authorId']=_0x35ddf4['_authorId'],this['_fixOperation'](_0x36c4b9,_0x4fb78c),_0x36c4b9;}['_getBaseVids'](_0x399921){return _0x399921['map'](_0x4318c7=>{const _0x268107=this['_getVidAttributeName'](_0x4318c7);return Number(_0x4318c7['item']['getAttribute'](_0x268107));});}['_generateTape'](_0x345d00,_0x4849ba){if(_0x345d00['is']('element','$text'))_0x4849ba['push']({'item':_0x345d00,'type':'text'});else{_0x345d00['is']('element')&&_0x4849ba['push']({'item':_0x345d00,'type':'elementStart'});for(const _0x3121f7 of _0x345d00['getChildren']())this['_generateTape'](_0x3121f7,_0x4849ba);_0x345d00['is']('element')&&_0x4849ba['push']({'item':_0x345d00,'type':'elementEnd'});}return _0x4849ba;}['_getState'](){const _0xd0434f=new Map(this['_touched']),_0x21aedc=new Map(_0xd0434f),_0x423dd9=new Map(),_0x13a573={'insertions':{},'deletions':{}},_0x1405e2={'insertions':{},'deletions':{}},_0x305de4=new Map(),_0x349f85=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x349f85['delete']('$graveyard');for(const _0x80bb2f of _0x349f85){const _0x573edd=this['_diffRoots']['get'](_0x80bb2f)||F(_0x80bb2f,!0x1),_0x56e92c=this['_baseRoots']['get'](_0x80bb2f)||F(_0x80bb2f,!0x1);_0x573edd['isAttached']()||_0x56e92c['isAttached']()?(_0x13a573['insertions'][_0x80bb2f]=T(_0x573edd),_0x13a573['deletions'][_0x80bb2f]=T(_0x56e92c),this['_copyMarkers'](_0x13a573['deletions'][_0x80bb2f],_0x56e92c),this['_copyMarkers'](_0x13a573['insertions'][_0x80bb2f],_0x573edd),_0x1405e2['insertions'][_0x80bb2f]=this['_generateTape'](this['_idsRoots']['get'](_0x80bb2f),[]),_0x1405e2['deletions'][_0x80bb2f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x80bb2f)||F(_0x80bb2f,!0x1),[])):_0x349f85['delete'](_0x80bb2f);}for(const _0x739a91 of _0x349f85){const _0x3d23ae=_0x1405e2['insertions'][_0x739a91];for(const _0x52b547 of _0x3d23ae){const _0x43bce8=this['_getVidAttributeName'](_0x52b547),_0x41de5d=_0x52b547['item']['getAttribute'](_0x43bce8);_0x21aedc['delete'](_0x41de5d),_0x41de5d>=this['_startingRevisionId']&&_0x423dd9['set'](_0x41de5d,_0xd0434f['get'](_0x41de5d));}}for(const _0x589cb1 of _0x349f85){const _0x2ce645=_0x1405e2['insertions'][_0x589cb1],_0x2eec6d=this['_getBaseVids'](_0x1405e2['deletions'][_0x589cb1]);let _0x31639d=0x0;for(const _0x12bdcb of _0x2ce645){const _0xe33307=this['_getVidAttributeName'](_0x12bdcb),_0x4470e8=_0x12bdcb['item']['getAttribute'](_0xe33307);if(!_0x423dd9['has'](_0x4470e8)&&!_0x305de4['has'](_0x4470e8)){if(_0x21aedc['has'](_0x4470e8))_0x31639d++;else{if(_0x4470e8!=_0x2eec6d[_0x31639d]){const _0xa32cc2=_0xd0434f['get'](_0x4470e8)||_0xd0434f['get'](_0x2eec6d[_0x31639d]);for(;_0x4470e8!=_0x2eec6d[_0x31639d];)_0x21aedc['has'](_0x2eec6d[_0x31639d])||(_0x305de4['set'](_0x2eec6d[_0x31639d],_0xa32cc2),_0xd0434f['set'](_0x2eec6d[_0x31639d],_0xa32cc2)),_0x31639d++;}_0x31639d++;}}}}for(const _0x440c3d of _0x349f85){const _0x18961b=_0x1405e2['insertions'][_0x440c3d];for(const _0x4c4964 of _0x18961b){const _0x35f987=this['_getVidAttributeName'](_0x4c4964),_0xf949a3=_0x4c4964['item']['getAttribute'](_0x35f987);if(_0x305de4['has'](_0xf949a3)){const _0x2c196f=_0x305de4['get'](_0xf949a3);_0x21aedc['has'](_0xf949a3)||_0x21aedc['set'](_0xf949a3,{..._0x2c196f}),_0x423dd9['set'](_0xf949a3,{..._0x2c196f});}}}for(const _0x3d0543 of _0x21aedc['keys']())_0x3d0543>=this['_startingRevisionId']&&_0x21aedc['delete'](_0x3d0543);const _0x373acf=new Map();for(const _0x482e63 of _0x349f85){let _0x1ef49f=_0x1405e2['insertions'][_0x482e63];for(const _0x2df2da of _0x1ef49f)if(_0x2df2da['item']['is']('element','tableCell')){const _0x26e4f3=this['_getVidAttributeName'](_0x2df2da),_0x228bbb=_0x2df2da['item']['getAttribute'](_0x26e4f3);if(_0x423dd9['has'](_0x228bbb)){const _0x3b76d8=_0x2df2da['item']['parent']['parent']['getAttribute']('vid_start'),_0x5d03a4=_0x373acf['get'](_0x3b76d8)||new Set();_0x5d03a4['add'](_0x423dd9['get'](_0x228bbb)['userId']),_0x373acf['set'](_0x3b76d8,_0x5d03a4);}}_0x1ef49f=_0x1405e2['deletions'][_0x482e63];for(const _0x4a7d57 of _0x1ef49f)if(_0x4a7d57['item']['is']('element','tableCell')){const _0x1d4b23=this['_getVidAttributeName'](_0x4a7d57),_0x3d4714=_0x4a7d57['item']['getAttribute'](_0x1d4b23);if(_0x21aedc['has'](_0x3d4714)){const _0x43ff47=_0x4a7d57['item']['parent']['parent']['getAttribute']('vid_start'),_0x277ea5=_0x373acf['get'](_0x43ff47)||new Set();_0x277ea5['add'](_0x21aedc['get'](_0x3d4714)['userId']),_0x373acf['set'](_0x43ff47,_0x277ea5);}}for(const _0x27f2af of _0x373acf['keys']())(_0x423dd9['has'](_0x27f2af)||_0x21aedc['has'](_0x27f2af))&&_0x373acf['delete'](_0x27f2af);}for(const _0x53d940 of _0x349f85){const _0x50338f=_0x1405e2['insertions'][_0x53d940];let _0x3693e6=null,_0x41a3b4=null;for(const _0x2f78bc of _0x50338f){const _0x2b45c5=this['_getVidAttributeName'](_0x2f78bc),_0x2ca991=_0x2f78bc['item']['getAttribute'](_0x2b45c5),_0x50543c=_0x373acf['get'](_0x2ca991);_0x50543c&&'elementStart'==_0x2f78bc['type']&&(_0x3693e6=Array['from'](_0x50543c)[0x0],_0x41a3b4=_0x2f78bc['item']['getAttribute']('vid_end')),_0x3693e6&&(_0x21aedc['set'](_0x2ca991,{'userId':_0x3693e6}),_0x423dd9['set'](_0x2ca991,{'userId':_0x3693e6})),_0x2ca991==_0x41a3b4&&(_0x3693e6=null,_0x41a3b4=null);}}const _0x10db27={},_0x11ac76=new Set();for(const _0x2865b3 of _0x349f85){const _0x4e85e5=_0x13a573['deletions'][_0x2865b3],_0x122654=_0x13a573['insertions'][_0x2865b3];for(const {userId:_0x1b8d9a}of this['_touchedMarkers']['values']())null!==_0x1b8d9a&&_0x11ac76['add'](_0x1b8d9a);for(const {userId:_0x30599c}of this['_touchedRoots']['values']())null!==_0x30599c&&_0x11ac76['add'](_0x30599c);this['_markChanges'](_0x122654,_0x1405e2['insertions'][_0x2865b3],_0x423dd9,'insertion',_0x11ac76),this['_markChanges'](_0x4e85e5,_0x1405e2['deletions'][_0x2865b3],_0x21aedc,'deletion',_0x11ac76),_0x10db27[_0x2865b3]={'insertions':this['_prepareViewToSave'](_0x122654),'deletions':this['_prepareViewToSave'](_0x4e85e5),'attachChange':this['_touchedRoots']['get'](_0x2865b3)||null,'attributesBefore':_0x57b19f(this['_baseRootsAttributes']['get'](_0x2865b3))||{},'attributesAfter':_0x57b19f(this['_diffRootsAttributes']['get'](_0x2865b3))};}return{'diffData':_0x10db27,'authorsIds':Array['from'](_0x11ac76)};}['_processRootBeforeSave'](_0x57db83){for(const [,_0xc28bec]of _0x57db83['markers']){const _0x1fd60c=_0xc28bec['start']['getAncestors']()['filter'](_0x27fe80=>'tableCell'==_0x27fe80['name']);for(const _0x45d43a of _0x1fd60c)0x1==_0x45d43a['childCount']&&_0x45d43a['getChild'](0x0)['is']('element','paragraph')&&_0x45d43a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x28625d){this['_processRootBeforeSave'](_0x28625d);const _0x493520=this['editor']['data']['toView'](_0x28625d,{}),_0x52c225=Array['from'](_0x493520['getChildren']())['map'](_0x486c12=>this['_getViewJson'](_0x486c12));return JSON['stringify'](_0x52c225);}['_getViewJson'](_0x2e0231){if(_0x2e0231['is']('$text'))return _0x2e0231['data'];{const _0x5a4fc8=_0x2e0231;return{'type':Object['keys'](P)['find'](_0x163a3c=>_0x2e0231 instanceof P[_0x163a3c]),'name':_0x5a4fc8['name'],'attributes':Array['from'](_0x5a4fc8['getAttributes']()),'children':Array['from'](_0x5a4fc8['getChildren']())['map'](_0xa76aee=>this['_getViewJson'](_0xa76aee))};}}['_markChanges'](_0xd13c80,_0x21f82e,_0xca0c10,_0x2ff862,_0x1d4eb2){let _0x5d32f0=null,_0xd12c0d=null,_0x18e31a=0x0;const _0x295250=this['editor']['model'];for(let _0x2d8b3b=0x0;_0x2d8b3b<_0x21f82e['length'];_0x2d8b3b++){const _0x5985e4=this['_getVidAttributeName'](_0x21f82e[_0x2d8b3b]),_0xbb1650=_0x21f82e[_0x2d8b3b]['item']['getAttribute'](_0x5985e4),_0x5b0cfd=_0xca0c10['get'](_0xbb1650),_0x40ffd8=_0x2d8b3b==_0x21f82e['length']-0x1;(!_0x5d32f0&&_0x5b0cfd&&(_0x5d32f0=_0x5b0cfd,_0xd12c0d=_0x21f82e[_0x2d8b3b]),_0x5d32f0&&(!_0x5b0cfd||_0x5b0cfd['userId']!=_0x5d32f0['userId']))&&(_0x3b19a1(_0x5b0cfd,B(_0xd12c0d,_0xd13c80,_0x295250),B(_0x21f82e[_0x2d8b3b],_0xd13c80,_0x295250)),_0x5d32f0=_0x5b0cfd||null,_0xd12c0d=_0x5b0cfd?_0x21f82e[_0x2d8b3b]:null),_0x5d32f0&&_0x40ffd8&&_0x3b19a1(_0x5b0cfd,B(_0xd12c0d,_0xd13c80,_0x295250),J(_0x21f82e[_0x2d8b3b],_0xd13c80,_0x295250));}function _0x3b19a1(_0x4eab06,_0x495dd8,_0x57c493){const _0x558e50=_0x5d32f0['userId'],_0x1a9c61='revision:'+_0x2ff862+':'+_0x558e50+':'+_0x18e31a++,_0x4b9482=_0x295250['createRange'](_0x495dd8,_0x57c493);_0xd13c80['markers']['set'](_0x1a9c61,_0x4b9482),null!==_0x558e50&&_0x1d4eb2['add'](_0x558e50);}}['_getVidAttributeName'](_0x466a8b){switch(_0x466a8b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0xb696f1,_0x5059f){_0xb696f1['baseVersion']=null;for(const _0x220e18 in _0xb696f1){const _0x3c9615=_0xb696f1[_0x220e18];if(_0x3c9615 instanceof gt){const _0x3a0f1d=_0x5059f['get'](_0x3c9615['root']['rootName']);_0xb696f1[_0x220e18]=this['_fixPosition'](_0x3c9615,_0x3a0f1d);}if(_0x3c9615 instanceof vt){const _0x4d34fa=_0x5059f['get'](_0x3c9615['root']['rootName']);_0xb696f1[_0x220e18]=this['_fixRange'](_0x3c9615,_0x4d34fa);}'root'===_0x220e18&&(_0xb696f1['root']=_0x5059f['get'](_0xb696f1['root']['rootName']));}}['_fixRange'](_0x292fe7,_0x497ea5){return this['editor']['model']['createRange'](this['_fixPosition'](_0x292fe7['start'],_0x497ea5),this['_fixPosition'](_0x292fe7['end'],_0x497ea5));}['_fixPosition'](_0x3ee0ef,_0x168e37){return this['editor']['model']['createPositionFromPath'](_0x168e37,_0x3ee0ef['path'],_0x3ee0ef['stickiness']);}['_handleInsertOperation'](_0x3e83f4){const _0x230c0e=this['_idsRoots']['get'](_0x3e83f4['position']['root']['rootName']),_0x20e8e7=this['_fixPosition'](_0x3e83f4['position'],_0x230c0e),_0x509f84=null===_0x3e83f4['_authorId']?null:_0x3e83f4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2bba4d=_0x20e8e7['parent'],_0x554075=this['_revisionId'],_0x421cd0=[];for(const _0x13b08f of _0x3e83f4['nodes'])if(_0x13b08f['is']('element'))_0x421cd0['push'](this['_makeIdsRoot'](_0x13b08f));else{for(let _0x3d025b=0x0;_0x3d025b<_0x13b08f['offsetSize'];_0x3d025b++)_0x421cd0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3dc419=this['_revisionId'];for(let _0x2f3d65=_0x554075;_0x2f3d65<_0x3dc419;_0x2f3d65++)this['_touched']['set'](_0x2f3d65,{'userId':_0x509f84});_0x2bba4d['_insertChild'](_0x20e8e7['offset'],_0x421cd0);}['_handleMoveOperation'](_0x3c3046){(_0x3c3046=this['_cloneOperation'](_0x3c3046,this['_idsRoots']))['_execute']();const _0x31b612=null===_0x3c3046['_authorId']?null:_0x3c3046['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a68ab=_0x3c3046['getMovedRangeStart'](),_0x2a5524=_0x2a68ab['parent'],_0x2f13ee=_0x2a68ab['offset'];!function _0x1d67e3(_0x168dae,_0xfb766c,_0x5e7833,_0x33d3a9){for(let _0x5e9bdc=_0x5e7833;_0x5e9bdc<_0x33d3a9;_0x5e9bdc++){const _0x39a4a4=_0xfb766c['getChild'](_0x5e9bdc);_0x39a4a4['is']('element','$text')?_0x168dae['set'](_0x39a4a4['getAttribute']('vid'),{'userId':_0x31b612}):(_0x168dae['set'](_0x39a4a4['getAttribute']('vid_start'),{'userId':_0x31b612}),_0x1d67e3(_0x168dae,_0x39a4a4,0x0,_0x39a4a4['childCount']),_0x168dae['set'](_0x39a4a4['getAttribute']('vid_end'),{'userId':_0x31b612}));}}(this['_touched'],_0x2a5524,_0x2f13ee,_0x2f13ee+_0x3c3046['howMany']);}['_handleMergeOperation'](_0x2038ca){const _0xc9dfef=null===(_0x2038ca=this['_cloneOperation'](_0x2038ca,this['_idsRoots']))['_authorId']?null:_0x2038ca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8f20e8=_0x2038ca['targetPosition']['parent'],_0x2f8e5c=_0x2038ca['sourcePosition']['parent'],_0x109bab=_0x8f20e8['getAttribute']('vid_end'),_0xe89a86=_0x2f8e5c['getAttribute']('vid_start');_0x8f20e8['_setAttribute']('vid_end',_0x2f8e5c['getAttribute']('vid_end')),_0x2f8e5c['_setAttribute']('vid_end',_0x109bab),this['_touched']['set'](_0xe89a86,{'userId':_0xc9dfef}),this['_touched']['set'](_0x109bab,{'userId':_0xc9dfef}),_0x2038ca['_execute']();}['_handleSplitOperation'](_0x499069){const _0x412586=null===(_0x499069=this['_cloneOperation'](_0x499069,this['_idsRoots']))['_authorId']?null:_0x499069['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1b1b0b=_0x499069['graveyardPosition'],_0x2bfb9f=_0x499069['splitPosition']['parent'];_0x499069['_execute']();const _0x3273a5=_0x2bfb9f['getAttribute']('vid_end'),_0x4c24ce=_0x499069['insertionPosition']['nodeAfter'];if(_0x1b1b0b){const _0x364a40=_0x4c24ce['getAttribute']('vid_end'),_0x44cd46=_0x2bfb9f['getAttribute']('vid_end');_0x2bfb9f['_setAttribute']('vid_end',_0x364a40),_0x4c24ce['_setAttribute']('vid_end',_0x44cd46),this['_touched']['set'](_0x2bfb9f['getAttribute']('vid_end'),{'userId':_0x412586}),this['_touched']['set'](_0x4c24ce['getAttribute']('vid_start'),{'userId':_0x412586});}else{const _0x3b8ae5=this['_revisionId']++,_0xb5c5ad=this['_revisionId']++;_0x2bfb9f['_setAttribute']('vid_end',_0x3b8ae5),_0x4c24ce['_setAttribute']('vid_start',_0xb5c5ad),_0x4c24ce['_setAttribute']('vid_end',_0x3273a5),this['_touched']['set'](_0x3b8ae5,{'userId':_0x412586}),this['_touched']['set'](_0xb5c5ad,{'userId':_0x412586});}}['_handleMarkerOperation'](_0x133ffe){if(!_0x133ffe['affectsData'])return;const _0x473514=(_0x133ffe=this['_cloneOperation'](_0x133ffe,this['_diffRoots']))['oldRange']?_0x133ffe['oldRange']['root']:null,_0x14807b=_0x133ffe['newRange']?_0x133ffe['newRange']['root']:null;_0x473514&&this['_markers']['delete'](_0x133ffe['name']),_0x14807b&&this['_markers']['set'](_0x133ffe['name'],_0x133ffe['newRange']['clone']());const _0x302607=null===_0x133ffe['_authorId']?null:_0x133ffe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20a17e=_0x133ffe['name'];if(!this['_touchedMarkers']['has'](_0x20a17e))return void this['_touchedMarkers']['set'](_0x20a17e,{'range':_0x133ffe['oldRange'],'userId':_0x302607});const _0x5f5cec=this['_touchedMarkers']['get'](_0x20a17e),_0x5c6edc=_0x5f5cec['range'],_0x1b6c98=_0x133ffe['newRange'];null==_0x5c6edc&&null==_0x1b6c98||_0x5c6edc&&_0x1b6c98&&_0x5c6edc['isEqual'](_0x1b6c98)?this['_touchedMarkers']['delete'](_0x133ffe['name']):_0x5f5cec['userId']=_0x302607;}['_handleRootOperation'](_0x4eba68,_0x5ba95c){this['_diffRoots']['has'](_0x4eba68['rootName'])?this['_diffRoots']['get'](_0x4eba68['rootName'])['_isAttached']=_0x4eba68['isAdd']:(this['_diffRoots']['set'](_0x4eba68['rootName'],F(_0x4eba68['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4eba68['rootName'],{}),_0x5ba95c&&this['_idsRoots']['set'](_0x4eba68['rootName'],F(_0x4eba68['rootName'],!0x0)));const _0x51c73b=null===_0x4eba68['_authorId']?null:_0x4eba68['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5be160=this['_touchedRoots']['get'](_0x4eba68['rootName']);_0x5be160&&_0x5be160['userId']===_0x51c73b?this['_touchedRoots']['delete'](_0x4eba68['rootName']):this['_touchedRoots']['set'](_0x4eba68['rootName'],{'userId':_0x51c73b,'isAttached':_0x4eba68['isAdd']});}['_handleRootAttributeOperation'](_0x460c84){const _0xfc94b1=this['_diffRootsAttributes']['get'](_0x460c84['root']['rootName']);null===_0x460c84['newValue']?delete _0xfc94b1[_0x460c84['key']]:_0xfc94b1[_0x460c84['key']]=_0x460c84['newValue'];}}function T(_0x2469fd){const _0x47d714=F(_0x2469fd['rootName'],_0x2469fd['isAttached']());for(const _0x460cda of _0x2469fd['getChildren']()){const _0x13858d=_0x460cda['_clone'](!0x0);_0x47d714['_appendChild'](_0x13858d);}return _0x47d714;}function F(_0x18b905,_0x28dd66=!0x0){const _0x317964=new mt();return _0x317964['rootName']=_0x18b905,_0x317964['_isAttached']=_0x28dd66,_0x317964['isAttached']=()=>_0x317964['_isAttached'],_0x317964;}function B(_0xd57a8a,_0x23b726,_0x2278e8){const _0x1c4262='elementEnd'==_0xd57a8a['type']?_0x2278e8['createPositionAt'](_0xd57a8a['item'],'end'):_0x2278e8['createPositionBefore'](_0xd57a8a['item']);return _0x2278e8['createPositionFromPath'](_0x23b726,_0x1c4262['path'],_0x1c4262['stickiness']);}function J(_0xbd5861,_0xb9f26b,_0x307a51){const _0x44a1f6='elementStart'==_0xbd5861['type']?_0x307a51['createPositionAt'](_0xbd5861['item'],0x0):_0x307a51['createPositionAfter'](_0xbd5861['item']);return _0x307a51['createPositionFromPath'](_0xb9f26b,_0x44a1f6['path'],_0x44a1f6['stickiness']);}class ns extends _0x1331b6{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3ea721,_0x482cc7){super(_0x3ea721),this['focusTracker']=new _0x3e6025(),this['keystrokes']=new _0x61f9fd(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x482cc7),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x1a34ad({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x312d18=_0x482b05=>_0x482b05['stopPropagation']();this['keystrokes']['set']('arrowright',_0x312d18),this['keystrokes']['set']('arrowleft',_0x312d18),this['keystrokes']['set']('arrowup',_0x312d18),this['keystrokes']['set']('arrowdown',_0x312d18);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x40e047){this['revisionNameInputView']['fieldView']['element']['value']=_0x40e047['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2b9d53){const _0x301991=new nt(this['locale'],_0x1f5698),_0x4f2192=_0x301991['fieldView'];_0x4f2192['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5a17e2=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2b9d53&&(_0x5a17e2+='\x20('+m(this['locale'],'optional')+')'),(_0x301991['label']=_0x5a17e2,_0x4f2192['on']('input',()=>{this['revisionNameInputValue']=_0x4f2192['element']['value']['trim']();}),_0x301991);}}class u extends _0xc00adc{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x5672ae=this['editor'],_0x5b5603=_0x5672ae['plugins']['get']('RevisionTracker');_0x5672ae['ui']['componentFactory']['add']('revisionHistory',_0x3183ad=>{const _0x112225=_0x336529(_0x3183ad),_0x4b51ae=_0x112225['panelView']['children'],_0x2910b0=new te(_0x3183ad),_0x34f090=new _0x339771(_0x3183ad),_0x34e939=new _0x46ea5a(_0x3183ad),_0x4ebab8=new _0x339771(_0x3183ad),_0x4b5d24=new _0x46ea5a(_0x3183ad);return _0x112225['bind']('isEnabled')['to'](_0x5b5603,'isReady',_0x5b5603,'isEnabled',_0x5672ae,'isReadOnly',(_0xd4647e,_0x3f95c3,_0x137bf6)=>_0xd4647e&&_0x3f95c3&&!_0x137bf6),_0x112225['buttonView']['set']({'icon':_0xd99ff4['history'],'label':m(_0x3183ad,'Revision\x20history'),'tooltip':!0x0}),_0x34e939['set']({'label':m(_0x3183ad,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x34e939['bind']('isEnabled')['to'](_0x5b5603,'isReady',_0x5b5603,'isEnabled',_0x5672ae,'isReadOnly',(_0x3c45d7,_0x54cd92,_0x4e9366)=>_0x3c45d7&&_0x54cd92&&!_0x4e9366),_0x34e939['on']('execute',()=>this['_showDialog']()),_0x4b5d24['set']({'label':m(_0x3183ad,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4b5d24['bind']('isEnabled')['to'](_0x5b5603,'isReady',_0x5672ae,'isReadOnly',(_0x5419c7,_0x25fbfe)=>_0x5419c7&&!_0x25fbfe),_0x4b5d24['on']('execute',()=>{_0x5672ae['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x112225['isOpen']=!0x1,_0x5672ae['editing']['view']['focus']();}),_0x34f090['children']['add'](_0x34e939),_0x4ebab8['children']['add'](_0x4b5d24),_0x2910b0['role']='menu',_0x2910b0['items']['addMany']([_0x34f090,_0x4ebab8]),_0x4b51ae['add'](_0x2910b0),_0x112225;}),_0x5672ae['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5230d8=this['editor'],_0x4672c9=_0x5230d8['locale'],_0x4030bb=new _0x5f334e(_0x4672c9),_0x50a970=new _0x4bc53c(_0x4672c9);_0x4030bb['buttonView']['set']({'icon':_0xd99ff4['history'],'label':m(_0x4672c9,'Revision\x20history')});const _0x2f40a7=new _0x4c0e56(_0x4672c9,_0x4030bb),_0x566868=new _0xf0069e(_0x4672c9);_0x566868['set']({'label':m(_0x4672c9,'Save\x20current\x20revision')}),_0x566868['delegate']('execute')['to'](_0x4030bb),_0x566868['on']('execute',()=>{this['_showDialog']();}),_0x2f40a7['children']['add'](_0x566868),_0x50a970['items']['add'](_0x2f40a7);const _0x1ed324=new _0x4c0e56(_0x4672c9,_0x4030bb),_0x2a8980=new _0xf0069e(_0x4672c9);return _0x2a8980['set']({'label':m(_0x4672c9,'Open\x20revision\x20history')}),_0x2a8980['delegate']('execute')['to'](_0x4030bb),_0x2a8980['on']('execute',()=>{_0x5230d8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1ed324['children']['add'](_0x2a8980),_0x50a970['items']['add'](_0x1ed324),_0x4030bb['panelView']['children']['add'](_0x50a970),_0x4030bb;}['_showDialog'](){const _0x24c9fc=this['editor'],_0x1425b4=_0x24c9fc['locale'],_0x4e5bc1=_0x24c9fc['plugins']['get']('Dialog'),_0x410298=_0x24c9fc['plugins']['get']('RevisionTracker');function _0x2e1fe9(_0x4ee48f){_0x24c9fc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4ee48f['revisionName']?_0x4ee48f['revisionNameInputView']['errorText']=m(_0x1425b4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x24c9fc['plugins']['get'](l)['saveRevision']({'name':_0x4ee48f['revisionName']}),_0x4e5bc1['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2e1fe9(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4e5bc1['show']({'id':'revisionSave','title':m(_0x1425b4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x24c9fc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4e5bc1['hide']()},{'label':m(_0x24c9fc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x277b1d){_0x277b1d['bind']('isEnabled')['to'](_0x410298,'isReady',_0x410298,'isEnabled',_0x24c9fc,'isReadOnly',(_0x46f16d,_0x55ec3b,_0x2b28ca)=>_0x46f16d&&_0x55ec3b&&!_0x2b28ca);},'onExecute':()=>_0x2e1fe9(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x348f07=this['editor'],_0xb2ed3d=_0x348f07['locale'];this['_saveRevisionFormView']=new ns(_0xb2ed3d,_0x348f07['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x1331b6{['changeId'];['_model'];constructor(_0x2e514d,_0x268a01){super(_0x2e514d),this['_model']=_0x268a01,this['changeId']=_0x268a01['id'];const _0x358a53=this['bindTemplate'],_0x5de050=m(_0x2e514d,_0x268a01['data']['isSuggestion']?'Suggested\x20by':'add'==_0x268a01['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x268a01['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x358a53['to']('type',_0x10b27f=>'ck-revision-change__'+_0x10b27f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5de050}]},{'text':'\x20'+_0x268a01['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x45eadb(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x589b6b){super(),this['id']=_0x589b6b['id']||_0x49b9a1(),this['author']=_0x589b6b['author'],this['type']=_0x589b6b['type'],this['data']=_0x589b6b['data']||{},this['rootName']=_0x589b6b['rootName'],this['set']('createdAt',_0x589b6b['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x166cfc,_0x248776){this['newRevisionId']=_0x166cfc,this['oldRevisionId']=_0x248776,this['changes']=new _0x43846a();}['_setChanges'](_0x273749){for(const _0x2a7735 of _0x273749)this['changes']['add'](_0x2a7735);}}const Y={'c':_0xaeeac4,'a':_0x388953,'e':_0x3a7bef,'r':_0x52a07e,'u':_0x44a4f8};class d extends _0xc00adc{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x926ed0,_0x33ed31,j];}constructor(_0x404c27){super(_0x404c27),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x41da0a,_0x54aabc,_0x275e77)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4159bd=>{for(const _0x4217de of this['editor']['editing']['view']['document']['roots'])_0x275e77?_0x4159bd['removeClass']('ck-editor__editable__overlay',_0x4217de):_0x4159bd['addClass']('ck-editor__editable__overlay',_0x4217de);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x3732cb=>null!==_0x3732cb),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x992c0c,_0x4069b1,_0x3b5cc7)=>_0x992c0c&&_0x3b5cc7?_0x4069b1['changes']['getIndex'](_0x3b5cc7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1974c0,_0x1657f7)=>_0x1974c0?_0x1657f7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x33ed31);}['init'](){const _0x402302=this['editor'],_0xf7d260=new yt(_0x402302,{'direction':'backward'}),_0x26cec2=new yt(_0x402302,{'direction':'forward'});(_0x402302['commands']['add']('showPreviousChange',_0xf7d260),_0x402302['commands']['add']('showNextChange',_0x26cec2),_0x402302['commands']['add']('restoreRevision',new _t(_0x402302)),this['on']('change:numberOfChanges',()=>{_0xf7d260['refresh'](),_0x26cec2['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x402302['enableReadOnlyMode']('revision-viewer'),_0x402302['plugins']['has']('WidgetToolbarRepository'))&&_0x402302['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xa489c0){await this['loadRevisionData'](_0xa489c0);const _0x3768ca={};for(const _0x59ce63 in _0xa489c0['diffData']){if(_0xa489c0['diffData'][_0x59ce63]['attachChange']&&!_0xa489c0['diffData'][_0x59ce63]['attachChange']['isAttached'])continue;const _0x12041=this['_removeRevisionMarkers'](JSON['parse'](_0xa489c0['diffData'][_0x59ce63]['insertions'])),_0x252ce7=this['editor']['editing']['view']['document'],_0x15248d=new _0x1f9cff(_0x252ce7,_0x12041['map'](_0x3e1984=>this['_getViewObj'](_0x3e1984)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3768ca[_0x59ce63]=this['editor']['data']['processor']['toData'](_0x15248d),this['editor']['data']['processor']['useFillerType']('default');}return _0x3768ca;}async['getRevisionRootsAttributes'](_0xecb00d){await this['loadRevisionData'](_0xecb00d);const _0x538439={};for(const _0x432cbd in _0xecb00d['diffData'])_0xecb00d['diffData'][_0x432cbd]['attachChange']&&!_0xecb00d['diffData'][_0x432cbd]['attachChange']['isAttached']||(_0x538439[_0x432cbd]=_0xecb00d['diffData'][_0x432cbd]['attributesAfter']||{});return _0x538439;}['_removeRevisionMarkers'](_0x45290d){return(_0x45290d=_0x45290d['filter'](_0x4e2b13=>!_0x4e2b13['name']||'revision-start'!==_0x4e2b13['name']&&'revision-end'!==_0x4e2b13['name']))['forEach'](_0x40b8a6=>{'string'!=typeof _0x40b8a6&&(_0x40b8a6['children']=this['_removeRevisionMarkers'](_0x40b8a6['children']),_0x40b8a6['attributes']=_0x40b8a6['attributes']['filter'](_0x49ef63=>!_0x49ef63[0x0]['startsWith']('data-revision-')));}),_0x45290d;}async['compare'](_0x34325c,_0x3fbac2,_0x4ce582=!0x1){if(!this['isEnabled'])return;const _0x1e4f1d=this['diff'],_0x7d111e=this['repository'],_0x2e1791='string'==typeof _0x34325c?_0x7d111e['getRevision'](_0x34325c):_0x34325c,_0x387ed6='string'==typeof _0x3fbac2?_0x7d111e['getRevision'](_0x3fbac2):_0x3fbac2,_0x106de0=_0x2e1791['id'],_0x4c21e0=_0x387ed6?_0x387ed6['id']:null;if(!_0x4ce582&&this['diff']&&this['diff']['newRevisionId']===_0x106de0&&this['diff']['oldRevisionId']===_0x4c21e0)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x106de0,_0x4c21e0);const _0x2b2faf=this['_getRevisionsRange'](_0x2e1791,_0x387ed6,!0x0)['map'](_0x2e6951=>this['loadRevisionData'](_0x2e6951));return _0x2b2faf['push'](new Promise(_0x4c9b70=>{setTimeout(_0x4c9b70,0x14);})),Promise['all'](_0x2b2faf)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2923df=this['_getDiff'](_0x106de0,_0x4c21e0);for(const _0x16f45a of _0x2923df['changes'])this['_changeIdToChange']['set'](_0x16f45a['id'],_0x16f45a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1cc3eb=>{for(const _0x42af11 of this['editor']['model']['document']['getRootNames']())_0x1cc3eb['detachRoot'](_0x42af11);for(const _0x503f0d of Object['keys'](_0x2923df['model'])){const _0x2918b4=_0x1cc3eb['addRoot'](_0x503f0d);for(const _0xc27972 of Object['keys'](_0x2923df['attributes'][_0x503f0d]))_0x1cc3eb['setAttribute'](_0xc27972,_0x2923df['attributes'][_0x503f0d][_0xc27972],_0x2918b4);_0x1cc3eb['insert'](_0x2923df['model'][_0x503f0d],_0x2918b4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2923df['changes'])),this['isReady']=!0x0;})['catch'](_0x4bb750=>{console['error'](_0x4bb750),this['_cleanUp'](),_0x1e4f1d&&(this['diff']=_0x1e4f1d),this['isReady']=!0x0;});}['addRevisionData'](_0x2f5499,_0x3fc3d7){const _0x1e7711=this['repository']['createRevision'](_0x2f5499);return _0x1e7711['on']('_update',(_0x39ceda,_0x389069,_0x529e4c)=>_0x3fc3d7(_0x389069,_0x529e4c,_0x1e7711)),this['repository']['addRevision'](_0x1e7711),_0x1e7711;}['loadRevisionData'](_0x211233){if(!_0x211233||_0x211233['diffData'])return Promise['resolve']();{const _0x369fd7=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x369fd7,'revisionId':_0x211233['id']})['then'](_0x2398d5=>{_0x211233['_update']({'diffData':_0x2398d5['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e4d43=>{for(const _0x41931b of this['editor']['model']['document']['getRootNames']())_0x3e4d43['detachRoot'](_0x41931b);});}['_sortAndFilterDiffChanges'](_0x421ced){const _0x38081e=[],_0x420aef=new Map();for(const _0x1c7d6f of this['editor']['model']['document']['getRootNames']()){const _0x56b893=this['editor']['editing']['view']['getDomRoot'](_0x1c7d6f);if(!_0x56b893)continue;const _0x1e0633=_0x56b893['getClientRects']()['item'](0x0);_0x1e0633&&(_0x38081e['push'](_0x1c7d6f),_0x420aef['set'](_0x1c7d6f,_0x1e0633));}return _0x38081e['sort']((_0x1cb76b,_0x8df25d)=>{const _0xc70d60=_0x420aef['get'](_0x1cb76b),_0x133793=_0x420aef['get'](_0x8df25d);return _0xc70d60['y']-_0x133793['y']||_0xc70d60['x']-_0x133793['x'];}),(_0x421ced=_0x421ced['filter'](_0x442244=>_0x38081e['includes'](_0x442244['rootName'])))['sort']((_0x1e4773,_0x23f005)=>_0x38081e['indexOf'](_0x1e4773['rootName'])-_0x38081e['indexOf'](_0x23f005['rootName'])),_0x421ced;}['_makeTape'](_0x280e88){const _0x1bab6e=Array['from'](_0x280e88['markers'])['filter'](([_0x154cd2,_0x1a239c])=>_0x154cd2['startsWith']('revision:')&&!_0x1a239c['isCollapsed']),_0xd8a746=Array['from'](this['editor']['model']['createRangeIn'](_0x280e88)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1bab6e['length'])for(const _0x1e7189 of _0xd8a746){const [_0x3f41a6,_0x1a70a8]=_0x1bab6e[0x0],[,_0x286398,_0xce172c]=_0x3f41a6['split'](':');if(_0x1a70a8['end']['isEqual'](_0x1e7189['nextPosition'])&&_0x1bab6e['shift'](),(_0x1e7189['previousPosition']['isEqual'](_0x1a70a8['start'])||_0x1e7189['previousPosition']['isAfter'](_0x1a70a8['start']))&&('insertion'==_0x286398?_0x1e7189['isAdded']={'userId':_0xce172c}:'deletion'==_0x286398&&(_0x1e7189['isRemoved']={'userId':_0xce172c})),0x0==_0x1bab6e['length'])break;}return _0xd8a746;}['_refreshStartEndIndex'](_0x4b8ded){const _0x414693=new Map();for(let _0x385111=0x0;_0x385111<_0x4b8ded['length'];_0x385111++)'text'===_0x4b8ded[_0x385111]['type']?(_0x4b8ded[_0x385111]['item']['startIndex']=_0x385111,_0x4b8ded[_0x385111]['item']['endIndex']=_0x385111):('elementStart'===_0x4b8ded[_0x385111]['type']?_0x4b8ded[_0x385111]['item']['startIndex']=_0x385111:'elementEnd'===_0x4b8ded[_0x385111]['type']&&(_0x4b8ded[_0x385111]['item']['endIndex']=_0x385111),_0x414693['set'](_0x4b8ded[_0x385111]['id'],_0x385111));for(const _0x38930e of _0x414693['values']())'elementStart'===_0x4b8ded[_0x38930e]['type']?_0x4b8ded[_0x38930e]['item']['endIndex']=_0x414693['get'](_0x4b8ded[_0x38930e]['pairId']):'elementEnd'===_0x4b8ded[_0x38930e]['type']&&(_0x4b8ded[_0x38930e]['item']['startIndex']=_0x414693['get'](_0x4b8ded[_0x38930e]['pairId']));}['_processTape'](_0x23d8cc){for(let _0x449452=0x0;_0x449452<_0x23d8cc['length'];_0x449452++){if('elementStart'===_0x23d8cc[_0x449452]['type'])_0x23d8cc[_0x449452]['item']['startIndex']=_0x449452;else{if('elementEnd'===_0x23d8cc[_0x449452]['type']){_0x23d8cc[_0x449452]['item']['endIndex']=_0x449452;const _0x2ef96d=_0x23d8cc[_0x449452]['item']['startIndex'];_0x23d8cc[_0x2ef96d]['pairId']=_0x23d8cc[_0x449452]['id'],_0x23d8cc[_0x449452]['pairId']=_0x23d8cc[_0x2ef96d]['id'];}else _0x23d8cc[_0x449452]['item']['startIndex']=_0x449452,_0x23d8cc[_0x449452]['item']['endIndex']=_0x449452,_0x23d8cc[_0x449452]['pairId']=null;}_0x23d8cc[_0x449452]['markersStart']||(_0x23d8cc[_0x449452]['markersStart']=[],_0x23d8cc[_0x449452]['markersEnd']=[]);}}['_markInsertions'](_0x4337f5,_0x3567af){const _0x20f47f=_0x4337f5['filter'](_0x5dad35=>!_0x5dad35['isAdded']);for(let _0x2da7e6=0x0;_0x2da7e6<_0x3567af['length'];_0x2da7e6++)_0x3567af[_0x2da7e6]['isAdded']&&(_0x20f47f[_0x2da7e6]['isAdded']=_0x3567af[_0x2da7e6]['isAdded']);}['_makeModelFromViewString'](_0x4f4f8d){const _0x189328=JSON['parse'](_0x4f4f8d),_0x1e8e8c=this['editor']['editing']['view']['document'],_0x56be7a=new _0x1f9cff(_0x1e8e8c,_0x189328['map'](_0xa134cc=>this['_getViewObj'](_0xa134cc)));return this['editor']['data']['toModel'](_0x56be7a);}['_getViewObj'](_0x3ff5e7){const _0x409d60=this['editor']['editing']['view']['document'];if('string'==typeof _0x3ff5e7)return new _0x44c77c(_0x409d60,_0x3ff5e7);{const _0x54ed07=_0x3ff5e7['children']['map'](_0x10d075=>this['_getViewObj'](_0x10d075));return new(Y[_0x3ff5e7['type']]||_0x5e506b)(_0x409d60,_0x3ff5e7['name'],_0x3ff5e7['attributes'],_0x54ed07);}}['_getDiff'](_0x152997,_0x24a041=null){const _0x4e04a2=this['repository']['getRevision'](_0x152997),_0x4deb6d=_0x24a041?this['repository']['getRevision'](_0x24a041):null,_0xd1f828=this['_getRevisionsRange'](_0x4e04a2,_0x4deb6d),_0x3cb3a9=_0xd1f828[_0xd1f828['length']-0x1],_0x36d69d=new Map(),_0x5bfcdc={'model':{},'attributes':{},'changes':[]},_0x28de34=new Set(),_0x16958d=new Map();for(let _0x58cd0d=_0xd1f828['length']-0x1;_0x58cd0d>=0x0;_0x58cd0d--){const _0x28835b=_0xd1f828[_0x58cd0d];for(const _0x2917ea of Object['keys'](_0x28835b['diffData']))if(_0x28835b['diffData'][_0x2917ea]['attachChange']){const _0x42b153=_0x28835b['diffData'][_0x2917ea]['attachChange'];_0x42b153['isAttached']?(_0x28de34['add'](_0x2917ea),_0x16958d['has'](_0x2917ea)&&_0x16958d['get'](_0x2917ea)['userId']==_0x42b153['userId']?_0x16958d['delete'](_0x2917ea):_0x16958d['set'](_0x2917ea,_0x42b153)):_0x16958d['has'](_0x2917ea)?(_0x28de34['delete'](_0x2917ea),_0x16958d['delete'](_0x2917ea)):(_0x28de34['add'](_0x2917ea),_0x16958d['set'](_0x2917ea,_0x42b153));}else _0x28de34['add'](_0x2917ea);}for(const _0x27ddb9 of _0x28de34){const _0xc3d089=_0x16958d['has'](_0x27ddb9)&&!_0x16958d['get'](_0x27ddb9)['isAttached'];let _0x208213=_0xc3d089?_0xd1f828['length']-0x1:0x0;const _0xb58cd4=_0xc3d089?-0x1:0x1;for(;_0xd1f828[_0x208213];){const _0x336c7c=_0xd1f828[_0x208213];if(_0x336c7c['diffData'][_0x27ddb9]){const _0x254840=_0xc3d089?_0x336c7c['diffData'][_0x27ddb9]['attributesBefore']:_0x336c7c['diffData'][_0x27ddb9]['attributesAfter'];_0x5bfcdc['attributes'][_0x27ddb9]=_0x254840?_0x57b19f(_0x254840):{};break;}_0x208213+=_0xb58cd4;}}for(const _0xce1186 of _0xd1f828){_0xce1186['model']={};for(const _0xf9c955 of _0xce1186['authors'])_0x36d69d['set'](_0xf9c955['id'],_0xf9c955);for(const _0x3c8344 of _0x28de34){const _0x512e9e=_0xce1186['diffData'][_0x3c8344]?_0xce1186['diffData'][_0x3c8344]['insertions']:'[]',_0x5ca229=_0xce1186['diffData'][_0x3c8344]?_0xce1186['diffData'][_0x3c8344]['deletions']:'[]';_0xce1186['model'][_0x3c8344]={'insertions':this['_makeModelFromViewString'](_0x512e9e),'deletions':this['_makeModelFromViewString'](_0x5ca229)};}}for(const _0x2a7b07 of _0x28de34){let _0x4aa8ea=null,_0x7bc88d=0x0;const _0x4d8b94=new Map(Array['from'](_0x4e04a2['model'][_0x2a7b07]['insertions']['markers'])['filter'](([_0x2c795f])=>!_0x2c795f['startsWith']('revision:')));let _0x476577=0x0;for(const _0x3fe3a8 of _0xd1f828){const _0x14bbed=this['_makeTape'](_0x3fe3a8['model'][_0x2a7b07]['insertions']);_0x3fe3a8==_0x4e04a2?(_0x4aa8ea=_0x14bbed,_0x7bc88d=_0x4aa8ea['length'],_0x4aa8ea['forEach'](_0x49c8e6=>{_0x49c8e6['id']=_0x476577++;}),this['_processTape'](_0x4aa8ea)):this['_markInsertions'](_0x4aa8ea,_0x14bbed);const _0x1deac7=_0x4aa8ea['filter'](_0x1c8af4=>!_0x1c8af4['isAdded'])['map'](_0x56e356=>_0x56e356['id']);let _0x160b87=0x0;const _0x433351=this['_makeTape'](_0x3fe3a8['model'][_0x2a7b07]['deletions']);_0x433351['forEach'](_0x153c61=>{_0x153c61['isRemoved']?_0x153c61['id']=_0x7bc88d++:_0x153c61['id']=_0x1deac7[_0x160b87++];}),this['_processTape'](_0x433351),this['_setDistance'](_0x4aa8ea,'isAdded'),this['_setDistance'](_0x433351,'isRemoved'),_0x3fe3a8==_0x4e04a2&&this['_markMarkers'](_0x4aa8ea,_0x4d8b94),_0x4aa8ea=this['_joinTapes'](_0x4aa8ea,_0x433351),this['_refreshStartEndIndex'](_0x4aa8ea),this['_setDistance'](_0x4aa8ea,'isRemoved');}_0x4aa8ea=_0x4aa8ea['filter'](_0xb0aa65=>!(_0xb0aa65['isAdded']&&_0xb0aa65['isRemoved']));const _0x51c4fe=new Map(_0x3cb3a9['model'][_0x2a7b07]['deletions']['markers']),_0x2bc125=new Set(_0x4d8b94['keys']());for(const _0x4c07eb of _0x51c4fe['keys']())_0x2bc125['delete'](_0x4c07eb);this['_markSuggestions'](_0x4aa8ea,_0x2bc125),this['_fixObsoleteTags'](_0x4aa8ea),_0x4aa8ea=this['_removeMissingPairs'](_0x4aa8ea),_0x4aa8ea=this['_markMismatchedRemovedTags'](_0x4aa8ea),_0x4aa8ea=this['_removeUnsupportedChanges'](_0x4aa8ea);const {root:_0x544df2,changes:_0x19fdb6}=this['_makeModelFromTape'](_0x4aa8ea,_0x36d69d,_0x2a7b07);_0x5bfcdc['model'][_0x2a7b07]=_0x544df2;const _0x1b5d3a=_0x16958d['get'](_0x2a7b07);if(_0x1b5d3a){const _0x16ef88=_0x36d69d['get'](_0x1b5d3a['userId']),_0x4a0efa=new r({'author':_0x16ef88,'type':_0x1b5d3a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2a7b07});_0x19fdb6['unshift'](_0x4a0efa),_0x5bfcdc['attributes'][_0x2a7b07]['revisionHistoryAttachChange']=_0x4a0efa['id'];}_0x5bfcdc['changes']=_0x5bfcdc['changes']['concat'](_0x19fdb6);}return _0x5bfcdc;}['_markMarkers'](_0x18218d,_0x72533){for(let _0x50f298=0x0;_0x50f298<_0x18218d['length'];_0x50f298++)for(const [_0xa3678f,_0x45cedb]of _0x72533)_0x45cedb['start']['isEqual'](_0x18218d[_0x50f298]['previousPosition'])&&_0x18218d[_0x50f298]['markersStart']['push'](_0xa3678f),_0x45cedb['end']['isEqual'](_0x18218d[_0x50f298]['nextPosition'])&&_0x18218d[_0x50f298]['markersEnd']['push'](_0xa3678f);}['_joinTapes'](_0x1cb8c7,_0x3becc4){let _0x219010=[],_0x3ef30b=0x0,_0x837b04=0x0;for(;_0x3ef30b<_0x1cb8c7['length']||_0x837b04<_0x3becc4['length'];){const _0x2325c2=_0x1cb8c7[_0x3ef30b]||{},_0x421aa6=_0x3becc4[_0x837b04]||{};if(_0x2325c2['id']==_0x421aa6['id'])_0x3ef30b++,_0x837b04++,_0x219010['push'](_0x2325c2);else{if(_0x421aa6['isRemoved']&&_0x2325c2['isAdded']){const {commonTape:_0x30c70b,iEnd:_0x14157a,jEnd:_0x1ca0d0}=this['_threeWayMerge'](_0x1cb8c7,_0x3ef30b,_0x3becc4,_0x837b04);_0x219010=_0x219010['concat'](_0x30c70b),_0x3ef30b=_0x14157a,_0x837b04=_0x1ca0d0;}else _0x421aa6['isRemoved']?(_0x837b04++,_0x219010['push'](_0x421aa6)):(_0x3ef30b++,_0x219010['push'](_0x2325c2));}}return _0x219010;}['_markSuggestions'](_0x1bd793,_0x4fefa0){const _0x504e95=[];for(let _0xa5fad3=0x0;_0xa5fad3<_0x1bd793['length'];_0xa5fad3++){for(let _0x2028ce=0x0;_0x2028ce<_0x1bd793[_0xa5fad3]['markersStart']['length'];_0x2028ce++){const _0x3b0dec=_0x1bd793[_0xa5fad3]['markersStart'][_0x2028ce];if(!_0x4fefa0['has'](_0x3b0dec))continue;const {group:_0x3e8074,type:_0x2f26d3,authorId:_0x16134b}=_0x535c7f(_0x3b0dec);'revision-suggestion'!=_0x3e8074||'insertion'!=_0x2f26d3&&'deletion'!=_0x2f26d3||(_0x504e95['unshift']({'type':_0x2f26d3,'name':_0x3b0dec,'userId':_0x16134b}),_0x1bd793[_0xa5fad3]['markersStart']['splice'](_0x2028ce,0x1),_0x2028ce--);}_0x4dbf47(_0x1bd793[_0xa5fad3]);for(let _0x25d36b=0x0;_0x25d36b<_0x1bd793[_0xa5fad3]['markersEnd']['length'];_0x25d36b++){const _0x2171db=_0x1bd793[_0xa5fad3]['markersEnd'][_0x25d36b];if(!_0x4fefa0['has'](_0x2171db))continue;const {group:_0x2e224,type:_0x3b7c0a}=_0x535c7f(_0x2171db);if('revision-suggestion'!=_0x2e224||'insertion'!=_0x3b7c0a&&'deletion'!=_0x3b7c0a)continue;_0x1bd793[_0xa5fad3]['markersEnd']['splice'](_0x25d36b,0x1),_0x25d36b--;const _0x39f27d=_0x504e95['findIndex'](_0x5e2f5f=>_0x5e2f5f['name']==_0x2171db);_0x39f27d>-0x1&&_0x504e95['splice'](_0x39f27d,0x1);}}function _0x535c7f(_0x9052dd){const _0x45d6f1=_0x9052dd['split'](':');return{'group':_0x45d6f1[0x0],'type':_0x45d6f1[0x1],'subType':_0x45d6f1['length']>=0x5?_0x45d6f1[0x2]:null,'id':_0x45d6f1['length']<0x5?_0x45d6f1[0x2]:_0x45d6f1[0x3],'authorId':_0x45d6f1['length']<0x5?_0x45d6f1[0x3]:_0x45d6f1[0x4],'markerCount':0x6==_0x45d6f1['length']?_0x45d6f1[0x5]:null};}function _0x4dbf47(_0x568886){for(let _0x5004f0=0x0;_0x5004f0<_0x504e95['length'];_0x5004f0++){if(_0x568886['isAdded']&&'insertion'==_0x504e95[_0x5004f0]['type'])return _0x568886['isAddSuggestion']=_0x504e95[_0x5004f0],void delete _0x568886['isAdded'];if(!_0x568886['isAdded']&&!_0x568886['isRemoved']&&'deletion'==_0x504e95[_0x5004f0]['type'])return void(_0x568886['isRemoveSuggestion']=_0x504e95[_0x5004f0]);}}}['_setDistance'](_0x349ae0,_0x4d92fc){let _0x42ae4c=0x0,_0x468585=!0x1;const _0x32068f=new Map();for(const _0x1e1627 of _0x349ae0)_0x1e1627[_0x4d92fc]?_0x468585&&(_0x42ae4c++,_0x468585=!0x1):(_0x42ae4c++,_0x468585=!0x0),_0x32068f['set'](_0x1e1627['id'],_0x42ae4c);for(let _0xe11dd7=0x0;_0xe11dd7<_0x349ae0['length'];_0xe11dd7++){if('isRemoved'==_0x4d92fc&&_0x349ae0[_0xe11dd7]['isAdded']||'isAdded'==_0x4d92fc&&_0x349ae0[_0xe11dd7]['isRemoved'])continue;if('text'==_0x349ae0[_0xe11dd7]['type']){_0x349ae0[_0xe11dd7]['distance']=0x0;continue;}const _0x14257b=_0x32068f['get'](_0x349ae0[_0xe11dd7]['pairId']),_0x4ab5d6=_0x32068f['get'](_0x349ae0[_0xe11dd7]['id']);_0x349ae0[_0xe11dd7]['distance']=_0x14257b-_0x4ab5d6;}}['_getRevisionsRange'](_0x33a184,_0x40b372,_0x29b8e3=!0x1){const _0x533458=[];let _0x1f3fc4=this['repository']['getIndex'](_0x33a184),_0x1adeaa=this['repository']['getIndex'](_0x40b372);for(-0x1==_0x1adeaa&&(_0x1adeaa=this['repository']['_revisions']['length'],_0x29b8e3=!0x1);_0x1f3fc4<_0x1adeaa;)_0x533458['push'](this['repository']['getRevision'](_0x1f3fc4)),_0x1f3fc4++;return _0x29b8e3&&_0x533458['push'](this['repository']['getRevision'](_0x1f3fc4)),_0x533458;}['_threeWayMerge'](_0x51ffc7,_0x4529c0,_0x30d824,_0xd228ec){const _0x1b9f10=this['editor']['model']['schema'];let _0x26290f=_0x4529c0;for(;_0x51ffc7[_0x26290f]&&_0x51ffc7[_0x26290f]['isAdded'];)_0x26290f++;let _0x2408fe=_0xd228ec;for(;_0x30d824[_0x2408fe]&&_0x30d824[_0x2408fe]['isRemoved'];)_0x2408fe++;_0x39bae7(_0x51ffc7,_0x4529c0,_0x26290f),_0x39bae7(_0x30d824,_0xd228ec,_0x2408fe);const _0x536a6e=_0x30d824['slice'](_0xd228ec,_0x2408fe)['concat'](_0x51ffc7['slice'](_0x4529c0,_0x26290f));return _0x536a6e['sort']((_0x348da0,_0x32be39)=>_0x348da0['side']!=_0x32be39['side']?_0x348da0['side']-_0x32be39['side']:_0x348da0['level']!=_0x32be39['level']?_0x348da0['level']-_0x32be39['level']:_0x348da0['distance']!=_0x32be39['distance']?_0x32be39['distance']-_0x348da0['distance']:!!_0x348da0['isAdded']!=!!_0x32be39['isAdded']?-0x1==_0x348da0['side']||0x0==_0x348da0['side']?_0x348da0['isAdded']?-0x1:0x1:_0x348da0['isAdded']?0x1:-0x1:_0x348da0['index']-_0x32be39['index']),{'commonTape':_0x536a6e,'iEnd':_0x26290f,'jEnd':_0x2408fe};function _0x39bae7(_0x20fd7c,_0xcc79dc,_0x2b0cd3){let _0x146f44=-0x1,_0x34171a=Number['POSITIVE_INFINITY'],_0x23f77a=!0x0;for(let _0x160850=_0xcc79dc;_0x160850<_0x2b0cd3;_0x160850++)if(_0x1b9f10['isInline'](_0x20fd7c[_0x160850]['item'])||(_0x23f77a=!0x1),_0x20fd7c[_0x160850]['item']['startIndex']<_0xcc79dc&&(_0x146f44=_0x160850),_0x20fd7c[_0x160850]['item']['endIndex']>=_0x2b0cd3){_0x34171a=_0x160850;break;}_0x23f77a&&(_0x146f44=_0x2b0cd3-0x1);for(let _0xff8939=_0xcc79dc;_0xff8939<_0x2b0cd3;_0xff8939++)_0x20fd7c[_0xff8939]['side']=_0xff8939<=_0x146f44?-0x1:_0xff8939<_0x34171a?0x0:0x1,_0x20fd7c[_0xff8939]['index']=_0xff8939;let _0x6267b=0x0;for(let _0xb612f1=_0xcc79dc;_0xb612f1<=_0x146f44;_0xb612f1++)0x0==_0x20fd7c[_0xb612f1]['distance']?_0x20fd7c[_0xb612f1]['level']=_0x6267b:(_0x6267b++,_0x20fd7c[_0xb612f1]['level']=_0x6267b,_0x6267b++);for(let _0x46048f=_0xcc79dc;_0x46048f<_0x2b0cd3;_0x46048f++)0x0==_0x20fd7c[_0x46048f]['side']&&(_0x20fd7c[_0x46048f]['level']=_0x6267b);_0x6267b=0x0;for(let _0x3fdc74=_0x2b0cd3-0x1;_0x3fdc74>=_0x34171a;_0x3fdc74--)0x0==_0x20fd7c[_0x3fdc74]['distance']?_0x20fd7c[_0x3fdc74]['level']=_0x6267b:(_0x6267b--,_0x20fd7c[_0x3fdc74]['level']=_0x6267b,_0x6267b--);}}['_fixObsoleteTags'](_0x11c997){const _0x54175c=new Map(),_0xfd934b=this['editor']['model']['schema'];for(let _0x53c800=0x1;_0x53c800<_0x11c997['length'];_0x53c800++){let _0x3b9b8c,_0x22ece4,_0x553ca3;const _0x541798=_0x11c997[_0x53c800],_0x26cb6b=_0x11c997[_0x53c800-0x1];if('text'==_0x541798['type'])continue;if(_0x541798['type']!=_0x26cb6b['type'])continue;if(!_0xfd934b['isBlock'](_0x26cb6b['item'])||_0xfd934b['isLimit'](_0x26cb6b['item']))continue;if(!_0xfd934b['isBlock'](_0x541798['item'])||_0xfd934b['isLimit'](_0x541798['item']))continue;if((_0x11c997[_0x53c800]['isAdded']||_0x11c997[_0x53c800]['isAddSuggestion'])&&_0x11c997[_0x53c800-0x1]['isRemoved'])_0x3b9b8c=_0x11c997[_0x53c800],_0x22ece4=_0x11c997[_0x53c800-0x1],_0x553ca3=_0x53c800-0x1;else{if(!_0x11c997[_0x53c800]['isRemoved']||!_0x11c997[_0x53c800-0x1]['isAdded']&&!_0x11c997[_0x53c800-0x1]['isAddSuggestion'])continue;_0x3b9b8c=_0x11c997[_0x53c800-0x1],_0x22ece4=_0x11c997[_0x53c800],_0x553ca3=_0x53c800;}const _0x333db8=_0x3b9b8c['level']==_0x22ece4['level'],_0x565b83=Math['abs'](_0x3b9b8c['level'])<Math['abs'](_0x22ece4['level'])&&0x0==_0x22ece4['distance'];(_0x333db8||_0x565b83)&&(_0x54175c['set'](_0x22ece4['id'],_0x3b9b8c['id']),_0x11c997['splice'](_0x553ca3,0x1),_0x53c800--,_0x3b9b8c['isAdded']=!0x1);}for(let _0xa2b1ec=0x0;_0xa2b1ec<_0x11c997['length'];_0xa2b1ec++)_0x54175c['has'](_0x11c997[_0xa2b1ec]['pairId'])&&(_0x11c997[_0xa2b1ec]['pairId']=_0x54175c['get'](_0x11c997[_0xa2b1ec]['pairId']));}['_removeMissingPairs'](_0x1fc0ed){const _0x242474=new Set(_0x1fc0ed['map'](_0xb11509=>_0xb11509['id']));for(let _0x153c30=0x0;_0x153c30<_0x1fc0ed['length'];_0x153c30++)_0x242474['has'](_0x1fc0ed[_0x153c30]['pairId'])||0x0==_0x1fc0ed[_0x153c30]['distance']||(_0x1fc0ed[_0x153c30]['isIncorrect']=!0x0);return _0x1fc0ed['filter'](_0x397120=>!_0x397120['isIncorrect']);}['_markMismatchedRemovedTags'](_0x452cb2){const _0x4aad5a=new Set();for(let _0x531ff0=0x0;_0x531ff0<_0x452cb2['length'];_0x531ff0++){if(_0x4aad5a['has'](_0x452cb2[_0x531ff0]['id'])&&_0x452cb2[_0x531ff0]['isRemoved']&&(_0x452cb2[_0x531ff0]['isIncorrect']=!0x0),_0x452cb2[_0x531ff0]['isIncorrect'])continue;if(0x0==_0x452cb2[_0x531ff0]['distance'])continue;if('elementStart'!=_0x452cb2[_0x531ff0]['type'])continue;if(null==_0x452cb2[_0x531ff0]['pairId'])continue;let _0x3032be=_0x531ff0+0x1,_0x1b4db8=0x0;for(;_0x452cb2[_0x3032be]['id']!=_0x452cb2[_0x531ff0]['pairId'];)'elementStart'==_0x452cb2[_0x3032be]['type']?_0x1b4db8++:'elementEnd'==_0x452cb2[_0x3032be]['type']&&_0x1b4db8--,_0x3032be++;if(0x0!=_0x1b4db8){if(_0x452cb2[_0x531ff0]['isRemoved'])_0x452cb2[_0x531ff0]['isIncorrect']=!0x0;else{for(;_0x3032be!=_0x531ff0;)_0x452cb2[_0x3032be]['isRemoved']&&0x0!=_0x452cb2[_0x3032be]['distance']&&(_0x452cb2[_0x3032be]['isIncorrect']=!0x0,_0x4aad5a['add'](_0x452cb2[_0x3032be]['pairId'])),_0x3032be--;}}}return _0x452cb2['filter'](_0x318e0c=>!_0x318e0c['isIncorrect']);}['_removeUnsupportedChanges'](_0x24b600){const _0x3b37ad=this['editor']['model']['schema'];for(let _0x69148d=0x0;_0x69148d<_0x24b600['length'];_0x69148d++){if(!(_0x24b600[_0x69148d]['isAdded']||_0x24b600[_0x69148d]['isAddSuggestion']||_0x24b600[_0x69148d]['isRemoved']||_0x24b600[_0x69148d]['isRemoveSuggestion']))continue;if(0x0==_0x24b600[_0x69148d]['distance'])continue;const _0x3bacc3=_0x24b600[_0x69148d]['item'];_0x3b37ad['isBlock'](_0x3bacc3)||_0x3b37ad['isLimit'](_0x3bacc3)||(_0x24b600[_0x69148d]['isAdded']&&delete _0x24b600[_0x69148d]['isAdded'],_0x24b600[_0x69148d]['isAddSuggestion']&&delete _0x24b600[_0x69148d]['isAddSuggestion'],_0x24b600[_0x69148d]['isRemoveSuggestion']&&delete _0x24b600[_0x69148d]['isRemoveSuggestion'],_0x24b600[_0x69148d]['isRemoved']&&(_0x24b600[_0x69148d]['isIncorrect']=!0x0));}return _0x24b600['filter'](_0x137267=>!_0x137267['isIncorrect']);}['_makeModelFromTape'](_0x47e796,_0x19ba2b,_0x846709){const _0x2aadb9=new mt(),_0x452667=[],_0x2067af=new Map(),_0x4581c0=this['editor']['model'],_0x58562b=_0x4581c0['schema'],_0x1b4a87=[_0x2aadb9],_0x19b432={},_0x160df6={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2d7db8=null;const _0x1fa1cb=[0x0];for(let _0x4ba6ae=0x0;_0x4ba6ae<_0x47e796['length'];_0x4ba6ae++)if('elementStart'===_0x47e796[_0x4ba6ae]['type']){_0x47e796[_0x4ba6ae]['previousPosition']=_0x4581c0['createPositionFromPath'](_0x2aadb9,_0x1fa1cb);const _0x1674a1=new ft(_0x47e796[_0x4ba6ae]['item']['name'],_0x47e796[_0x4ba6ae]['item']['getAttributes']());_0x1b4a87[0x0]['_appendChild'](_0x1674a1),_0x1fa1cb['push'](0x0),_0x1b4a87['unshift'](_0x1674a1),_0x47e796[_0x4ba6ae]['nextPosition']=_0x4581c0['createPositionFromPath'](_0x2aadb9,_0x1fa1cb);}else'elementEnd'===_0x47e796[_0x4ba6ae]['type']?(_0x1b4a87['shift'](),_0x47e796[_0x4ba6ae]['previousPosition']=_0x4581c0['createPositionFromPath'](_0x2aadb9,_0x1fa1cb),_0x1fa1cb['pop'](),_0x1fa1cb[_0x1fa1cb['length']-0x1]++,_0x47e796[_0x4ba6ae]['nextPosition']=_0x4581c0['createPositionFromPath'](_0x2aadb9,_0x1fa1cb)):(_0x47e796[_0x4ba6ae]['previousPosition']=_0x4581c0['createPositionFromPath'](_0x2aadb9,_0x1fa1cb),_0x2d7db8?_0x2d7db8['_data']+=_0x47e796[_0x4ba6ae]['item']['data']:_0x2d7db8=new wt(_0x47e796[_0x4ba6ae]['item']['data'],_0x47e796[_0x4ba6ae]['item']['getAttributes']()),_0x47e796[_0x4ba6ae+0x1]&&'text'===_0x47e796[_0x4ba6ae+0x1]['type']&&_0x345149(_0x2d7db8,_0x47e796[_0x4ba6ae+0x1]['item'])||(_0x1b4a87[0x0]['_appendChild'](_0x2d7db8),_0x2d7db8=null),_0x1fa1cb[_0x1fa1cb['length']-0x1]+=_0x47e796[_0x4ba6ae]['item']['offsetSize'],_0x47e796[_0x4ba6ae]['nextPosition']=_0x4581c0['createPositionFromPath'](_0x2aadb9,_0x1fa1cb));for(let _0x4df8d2=0x0;_0x4df8d2<_0x47e796['length'];_0x4df8d2++){const _0x2af936=_0x47e796[_0x4df8d2]['previousPosition'],_0x346a1b=_0x47e796[_0x4df8d2]['nextPosition'];for(const _0xd00552 of _0x47e796[_0x4df8d2]['markersStart'])_0x2067af['set'](_0xd00552,{'start':_0x2af936,'end':null});_0x1e3ceb('isRemoveSuggestion',_0x4df8d2,_0x2af936,_0x346a1b),_0x1e3ceb('isAddSuggestion',_0x4df8d2,_0x2af936,_0x346a1b),_0x1e3ceb('isRemoved',_0x4df8d2,_0x2af936,_0x346a1b),_0x1e3ceb('isAdded',_0x4df8d2,_0x2af936,_0x346a1b);for(const _0x71987c of _0x47e796[_0x4df8d2]['markersEnd']){_0x2067af['get'](_0x71987c)['end']=_0x346a1b;}}for(const [_0x165c88,_0x331334]of _0x2067af){const _0x248bcb=this['editor']['model']['createRange'](_0x331334['start'],_0x331334['end']);_0x2aadb9['markers']['set'](_0x165c88,_0x248bcb);}return _0x452667['sort']((_0xa202a4,_0x5c60f2)=>{const _0x50164d=_0x2aadb9['markers']['get']('revision:'+_0xa202a4['id']),_0x494e1e=_0x2aadb9['markers']['get']('revision:'+_0x5c60f2['id']);return _0x50164d['start']['isBefore'](_0x494e1e['start'])?-0x1:_0x50164d['start']['isAfter'](_0x494e1e['start'])?0x1:_0x50164d['end']['isBefore'](_0x494e1e['end'])?-0x1:_0x50164d['end']['isAfter'](_0x494e1e['end'])?0x1:'add'===_0xa202a4['type']?-0x1:0x1;}),{'root':_0x2aadb9,'changes':_0x452667};function _0x1e3ceb(_0x365513,_0x100303,_0xeebea7,_0x5e1c8c){const _0x121aa7=!!_0x47e796[_0x100303][_0x365513],_0x1a4ae2=_0x121aa7?_0x47e796[_0x100303][_0x365513]['userId']:null,_0x183db4=_0x100303===_0x47e796['length']-0x1,_0x5cdfe8=_0x160df6[_0x365513][0x0],_0x4564ca=_0x58562b['isObject'](_0x47e796[_0x100303]['item']);!_0x19b432[_0x365513]&&_0x121aa7?_0x19b432[_0x365513]={'start':_0xeebea7,'tapeItem':_0x47e796[_0x100303],'userId':_0x1a4ae2,'type':_0x365513}:_0x19b432[_0x365513]&&!_0x121aa7?(_0x19b432[_0x365513]['end']=_0xeebea7,_0x57bcb9(_0x19b432[_0x365513]),_0x19b432[_0x365513]=null):_0x19b432[_0x365513]&&_0x121aa7&&_0x19b432[_0x365513]['userId']!==_0x1a4ae2&&(_0x19b432[_0x365513]['end']=_0xeebea7,_0x5cdfe8&&_0x5cdfe8['userId']===_0x19b432[_0x365513]['userId']||_0x57bcb9(_0x19b432[_0x365513]),_0x19b432[_0x365513]={'start':_0xeebea7,'tapeItem':_0x47e796[_0x100303],'userId':_0x1a4ae2,'type':_0x365513}),_0x19b432[_0x365513]&&_0x4564ca&&('elementStart'!==_0x47e796[_0x100303]['type']||_0x5cdfe8&&_0x5cdfe8['userId']===_0x1a4ae2||_0x160df6[_0x365513]['unshift']({'userId':_0x1a4ae2,'object':_0x47e796[_0x100303]['item'],'change':_0x19b432[_0x365513]}),'elementEnd'===_0x47e796[_0x100303]['type']&&_0x5cdfe8&&_0x5cdfe8['object']===_0x47e796[_0x100303]['item']&&(_0x160df6[_0x365513]['shift'](),_0x19b432[_0x365513]=_0x5cdfe8['change'])),_0x19b432[_0x365513]&&_0x183db4&&(_0x19b432[_0x365513]['end']=_0x5e1c8c,_0x57bcb9(_0x19b432[_0x365513]),_0x19b432[_0x365513]=null);}function _0x57bcb9({start:_0x1ebc3c,end:_0x4faab8,tapeItem:_0x20700a,userId:_0x5ece1c,type:_0x4044c7}){const _0x484a76=_0x20700a['item'],_0x15441f=_0x4581c0['schema']['isBlock'](_0x484a76)&&!_0x4581c0['schema']['isLimit'](_0x484a76),_0x42935b=_0x1ebc3c['nodeAfter']==_0x4faab8['parent']&&_0x4faab8['isAtStart'];if(_0x15441f&&_0x42935b)return;const _0x4241d2=_0x4581c0['createRange'](_0x1ebc3c,_0x4faab8),_0xdf39ad=_0x19ba2b['get'](_0x5ece1c),_0x2720e8=new r({'author':_0xdf39ad,'type':'isAdded'==_0x4044c7||'isAddSuggestion'==_0x4044c7?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4044c7||'isRemoveSuggestion'==_0x4044c7},'createdAt':new Date(),'rootName':_0x846709});_0x452667['push'](_0x2720e8),_0x2aadb9['markers']['set']('revision:'+_0x2720e8['id'],_0x4241d2);}function _0x345149(_0x5cf7e3,_0x31aed2){const _0x2ce3d2=_0x5cf7e3['getAttributes'](),_0x53c9cb=_0x31aed2['getAttributes']();for(const _0x4d3f81 of _0x2ce3d2){if(_0x4d3f81[0x1]!==_0x31aed2['getAttribute'](_0x4d3f81[0x0]))return!0x1;_0x53c9cb['next']();}return _0x53c9cb['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4f4226=>{const _0x1595fe=_0x4f4226['markerName']['split'](':')[0x1],_0x3695e7=this['_getChangeFromId'](_0x1595fe);if(!_0x3695e7)return null;const _0x2319c6='add'==_0x3695e7['type']?'insertion':'deletion',_0x41a694=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2319c6];return _0x3695e7['data']['isSuggestion']&&_0x41a694['push']('ck-suggestion-marker-'+_0x2319c6+'-new'),this['activeChange']==_0x3695e7&&_0x41a694['push']('ck-suggestion-marker--active'),{'classes':_0x41a694,'attributes':{'data-change-id':_0x1595fe}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x448392=>{_0x448392['on']('element:pre',(_0x6a9bd7,_0x3490b8,_0x1a05d6)=>{const _0x12814e=_0x3490b8['viewItem']['getChild'](0x0);if(!_0x12814e||!_0x12814e['is']('element','code'))return;if(!_0x1a05d6['consumable']['consume'](_0x12814e,{'attributes':['vid_start','vid_end']}))return;const _0x10fd83=_0x3490b8['modelRange']['start']['nodeAfter'];_0x1a05d6['writer']['setAttribute']('vid_start',_0x12814e['getAttribute']('vid_start'),_0x10fd83),_0x1a05d6['writer']['setAttribute']('vid_end',_0x12814e['getAttribute']('vid_end'),_0x10fd83);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x17e799=>{_0x17e799['on']('element',(_0x1adeff,_0x3dd204,_0x364dd1)=>{if(!_0x364dd1['consumable']['consume'](_0x3dd204['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3dd204['modelRange']['isCollapsed'])return;const _0x23bfb4=_0x3dd204['modelRange']['start']['nodeAfter'];_0x23bfb4['hasAttribute']('vid_start')||_0x23bfb4['hasAttribute']('vid')||(_0x364dd1['writer']['setAttribute']('vid_start',_0x3dd204['viewItem']['getAttribute']('vid_start'),_0x23bfb4),_0x364dd1['writer']['setAttribute']('vid_end',_0x3dd204['viewItem']['getAttribute']('vid_end'),_0x23bfb4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xa8aba2=>_0xa8aba2['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x16bb29,[,_0x39433f])=>{['vid_start','vid_end','vid']['includes'](_0x39433f)&&(_0x16bb29['return']=!0x0,_0x16bb29['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x376569=>{_0x376569['on']('attribute:vid',(_0x2e1443,_0x335d0b,_0x5d42ae)=>{if('\x20'!=_0x335d0b['item']['data']||_0x335d0b['item']['parent']['maxOffset']>0x1)return;if(!_0x5d42ae['consumable']['consume'](_0x335d0b['item'],_0x2e1443['name']))return;const _0x352756=_0x5d42ae['writer'],_0x60a104=_0x5d42ae['mapper']['toViewRange'](_0x335d0b['range']);_0x352756['wrap'](_0x60a104,_0x352756['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x21bb99){const _0x4962f5=_0x21bb99['plugins']['get']('RevisionViewer');return(_0x352409,_0x102851,_0xdc93ec)=>{const _0x3b4875=_0x102851['markerName']['split'](':')[0x1],_0x2745d3=_0x4962f5['_getChangeFromId'](_0x3b4875);if(!_0x2745d3)return null;const _0x2f9ac4='add'==_0x2745d3['type']?'split':'merge';if(!_0xdc93ec['consumable']['test'](_0x102851['markerRange'],_0x352409['name']))return;const _0xdada4e=_0x102851['markerRange']['getWalker'](),_0x1716a2=_0x102851['markerRange']['start'],_0x1a161b=_0x21bb99['model']['schema'];let _0x123db2=null,_0x39ee12=null,_0x5c6d03=!0x1,_0x2b4c6a=!0x1;for(const _0x862817 of _0xdada4e){const _0x1cb7d3=_0x862817['item'];_0x5c6d03=_0x5c6d03||_0x1a161b['isContent'](_0x1cb7d3);const _0x442370=_0xdc93ec['mapper']['toViewElement'](_0x1cb7d3);if(_0x442370&&_0x442370['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x862817['type']&&(_0x1a161b['isBlock'](_0x1cb7d3)&&!_0x1a161b['isLimit'](_0x1cb7d3)&&(_0x1cb7d3['nextSibling']||_0x1716a2['isAtEnd']?_0x123db2&&_0x123db2['parent']==_0x1cb7d3||(_0x123db2=_0x1cb7d3,_0x511994(_0x862817['previousPosition']),_0x2b4c6a=!0x0):_0x39ee12=_0x39ee12||_0x862817['previousPosition']));}function _0x511994(_0x49bd40){const _0x36f5ca=_0xdc93ec['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f9ac4}),_0x1210e1=_0xdc93ec['mapper']['toViewPosition'](_0x49bd40);_0x2745d3['data']['isSuggestion']&&_0xdc93ec['writer']['addClass']('ck-suggestion-marker-'+_0x2f9ac4+'-new',_0x36f5ca),_0x4962f5['activeChange']==_0x2745d3&&_0xdc93ec['writer']['addClass']('ck-suggestion-marker--active',_0x36f5ca),_0xdc93ec['writer']['insert'](_0x1210e1,_0x36f5ca),_0xdc93ec['mapper']['bindElementToMarker'](_0x36f5ca,_0x102851['markerName']);}_0x5c6d03||_0x2b4c6a||!_0x39ee12||_0x511994(_0x39ee12);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4d259f,_0x5b0737,_0x42021d)=>{const _0x44291b=_0x42021d['mapper']['markerNameToElements'](_0x5b0737['markerName']);if(_0x44291b){for(const _0x43d504 of _0x44291b)(_0x43d504['hasClass']('ck-suggestion-marker-split')||_0x43d504['hasClass']('ck-suggestion-marker-merge'))&&(_0x42021d['mapper']['unbindElementFromMarkerName'](_0x43d504,_0x5b0737['markerName']),_0x42021d['writer']['remove'](_0x43d504));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4f7420,_0x4ac0f5,_0xfd4077)=>{const _0x13d09e=_0x4ac0f5['markerName']['split'](':')[0x1],_0x1756f2=this['_getChangeFromId'](_0x13d09e);if(!_0x1756f2)return null;const _0x491537='add'==_0x1756f2['type']?'split':'merge';if(_0xfd4077['consumable']['test'](_0x4ac0f5['markerRange'],_0x4f7420['name']))for(const _0x19df2a of _0x4ac0f5['markerRange']['getItems']()){if(!_0x19df2a['is']('element','softBreak'))continue;const _0x536b42=_0xfd4077['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x491537}),_0x2e5cec=_0xfd4077['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x19df2a));_0x1756f2['data']['isSuggestion']&&_0xfd4077['writer']['addClass']('ck-suggestion-marker-'+_0x491537+'-new',_0x536b42),this['activeChange']==_0x1756f2&&_0xfd4077['writer']['addClass']('ck-suggestion-marker--active',_0x536b42),_0xfd4077['writer']['insert'](_0x2e5cec,_0x536b42),_0xfd4077['mapper']['bindElementToMarker'](_0x536b42,_0x4ac0f5['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4cd74c=>{for(const _0x4e3cbf of this['editor']['model']['document']['getRootNames']()){const _0x4f6f9b=this['editor']['model']['document']['getRoot'](_0x4e3cbf),_0x1340ca=this['editor']['editing']['view']['document']['getRoot'](_0x4e3cbf);if(_0x1340ca){const _0x33ad07=_0x4f6f9b['getAttribute']('revisionHistoryAttachChange');if(_0x4cd74c['removeAttribute']('data-change-id',_0x1340ca),_0x4cd74c['removeClass']('ck-revision-history-root-add',_0x1340ca),_0x4cd74c['removeClass']('ck-revision-history-root-remove',_0x1340ca),_0x4cd74c['removeClass']('ck-revision-history-root--active',_0x1340ca),_0x33ad07){const _0x5570f5=this['_getChangeFromId'](_0x33ad07);if(!_0x5570f5)return null;_0x4cd74c['setAttribute']('data-change-id',_0x33ad07,_0x1340ca),_0x4cd74c['addClass']('ck-revision-history-root-'+_0x5570f5['type'],_0x1340ca),this['activeChange']==_0x5570f5&&_0x4cd74c['addClass']('ck-revision-history-root--active',_0x1340ca);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x14937e=>'revision-comment:'+_0x14937e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5a00ff=>'revision-suggestion:'+_0x5a00ff,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1d935b=>({'name':'suggestion:'+_0x1d935b,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x16149b=>{const _0x440071=_0x16149b['markerName']['split'](':')[0x1];return'insertion'!=_0x440071&&'deletion'!=_0x440071?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x440071]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x5094e8,_0x563e2d,_0x3d8841)=>{const _0x7e5857=_0x3d8841['mapper']['markerNameToElements'](_0x563e2d['markerName']);if(_0x7e5857){for(const _0x5ded7d of _0x7e5857)_0x5ded7d['is']('uiElement')&&(_0x3d8841['mapper']['unbindElementFromMarkerName'](_0x5ded7d,_0x563e2d['markerName']),_0x3d8841['writer']['remove'](_0x5ded7d));}},{'priority':'high'});}['_getChangeFromId'](_0x625d62){return this['_changeIdToChange']['get'](_0x625d62);}['_getViewForChange'](_0x30b493){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x30b493),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x44b0fc,_0x54d5b6,_0xbf389f,_0x668b27)=>{_0x668b27&&this['_balloon']['remove'](_0x668b27),_0xbf389f&&(this['_balloon']['add']({'view':_0xbf389f,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1805d9=this['editor']['editing'],_0x275a87=this['_getChangeFromId'](_0xbf389f['changeId']);let _0x427922;if(_0x275a87['data']['isOnRoot']){const _0xd57717=_0x1805d9['view']['getDomRoot'](_0x275a87['rootName']);_0x427922=Array['from'](_0xd57717['getClientRects']());}else{const _0x2b1756=this['editor']['model']['markers']['get']('revision:'+_0xbf389f['changeId']);_0x427922=Array['from'](_0x1805d9['mapper']['markerNameToElements'](_0x2b1756['name']))['map'](_0x4d73e4=>_0x1805d9['view']['domConverter']['mapViewToDom'](_0x4d73e4))['map'](_0x3e5abb=>Array['from'](_0x3e5abb['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x427922[0x0];return _0x427922['find'](_0x24767e=>_0x24767e['top']-0x3<=this['_activeViewTarget']['y']&&_0x24767e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x24767e['left']-0x3<=this['_activeViewTarget']['x']&&_0x24767e['right']+0x3>=this['_activeViewTarget']['x'])||_0x427922[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x461b89,_0x2b524d,_0x1e0729,_0x1897bc)=>{this['activeView']=_0x1e0729?this['_getViewForChange'](_0x1e0729):null,this['editor']['model']['change'](()=>{const _0x27a0f7=this['editor']['editing'];_0x1897bc&&(_0x1897bc['data']['isOnRoot']?_0x27a0f7['view']['change'](_0x31421d=>{_0x31421d['removeClass']('ck-revision-history-root--active',_0x27a0f7['view']['document']['getRoot'](_0x1897bc['rootName']));}):_0x27a0f7['reconvertMarker']('revision:'+_0x1897bc['id'])),_0x1e0729&&(_0x1e0729['data']['isOnRoot']?_0x27a0f7['view']['change'](_0x53dbe4=>{_0x53dbe4['addClass']('ck-revision-history-root--active',_0x27a0f7['view']['document']['getRoot'](_0x1e0729['rootName']));}):_0x27a0f7['reconvertMarker']('revision:'+_0x1e0729['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x124842,_0x5598fc)=>{if(this['activeChange'])return;const _0x535179=this['_findChangeIdFromDomTarget'](_0x5598fc['target']),_0x384616=this['_changeIdToChange']['get'](_0x535179);_0x384616?(this['_activeViewTarget']={'x':_0x5598fc['domEvent']['x'],'y':_0x5598fc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x384616)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x654534,_0x5b1444)=>{const _0x1f2510=this['_findChangeIdFromDomTarget'](_0x5b1444['target']),_0x21ad30=this['_changeIdToChange']['get'](_0x1f2510);_0x21ad30?(this['_activeViewTarget']={'x':_0x5b1444['domEvent']['x'],'y':_0x5b1444['domEvent']['y']},_0x21ad30===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x21ad30):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2b5a5d){do{const _0x40b724=_0x2b5a5d['getAttribute']('data-change-id');if(_0x40b724)return _0x40b724;_0x2b5a5d=_0x2b5a5d['parent'];}while(_0x2b5a5d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5c233f=>{for(const _0x5488d5 of this['editor']['model']['markers'])_0x5c233f['removeMarker'](_0x5488d5);});}}function Z(_0x1c435d,_0x5ec6da){return(_0x5164d3,_0xe6b848,_0x33d020)=>{if(!_0x33d020['consumable']['test'](_0xe6b848['markerRange'],_0x5164d3['name']))return;const _0x20e40c=_0xe6b848['markerRange']['getWalker'](),_0x39321d=_0xe6b848['markerRange']['start'],_0xbb058a=_0x1c435d['model']['schema'];let _0x1cb758=null,_0x2283ba=null,_0x52f62d=!0x1,_0x465056=!0x1;for(const _0x53ed33 of _0x20e40c){const _0x5dbc0d=_0x53ed33['item'];_0x52f62d=_0x52f62d||_0xbb058a['isContent'](_0x5dbc0d);const _0x1ecd5c=_0x33d020['mapper']['toViewElement'](_0x5dbc0d);if(_0x1ecd5c&&_0x1ecd5c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x53ed33['type']&&(_0xbb058a['isBlock'](_0x5dbc0d)&&!_0xbb058a['isLimit'](_0x5dbc0d)&&(_0x5dbc0d['nextSibling']||_0x39321d['isAtEnd']?_0x1cb758&&_0x1cb758['parent']==_0x5dbc0d||(_0x1cb758=_0x5dbc0d,_0x1a57b6(_0x53ed33['previousPosition']),_0x465056=!0x0):_0x2283ba=_0x2283ba||_0x53ed33['previousPosition']));}function _0x1a57b6(_0x363d4f){const _0x43f586=_0x33d020['mapper']['toViewPosition'](_0x363d4f),_0x5774eb=_0x33d020['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5ec6da});_0x33d020['writer']['insert'](_0x43f586,_0x5774eb),_0x33d020['mapper']['bindElementToMarker'](_0x5774eb,_0xe6b848['markerName']);}_0x52f62d||_0x465056||!_0x2283ba||_0x1a57b6(_0x2283ba);};}class _t extends _0x5db507{constructor(_0x24052b){super(_0x24052b);const _0x25dd98=_0x24052b['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x25dd98,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x25dd98,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x45f8fe=this['editor'],_0x30ca7c=_0x45f8fe['plugins']['get'](d),_0x22ae4e=_0x30ca7c['isReady']?_0x30ca7c['diff']['newRevisionId']:null;_0x45f8fe['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x22ae4e);}['refresh'](){const {isReady:_0x82b237,isEnabled:_0x55132,repository:_0x52a556,diff:_0x4beaec}=this['editor']['plugins']['get'](d),_0x13c6cb=_0x4beaec&&_0x52a556['getLaterVisibleRevision'](_0x4beaec['newRevisionId']);this['isEnabled']=_0x82b237&&_0x55132&&Boolean(_0x13c6cb);}}class yt extends _0x5db507{['_step'];constructor(_0x485c0a,{direction:_0x3f6972}){super(_0x485c0a);const _0x26b747=_0x485c0a['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3f6972?0x1:-0x1,this['listenTo'](_0x26b747,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x26b747,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x26b747,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5c79da=this['editor'],_0x5f1e4f=_0x5c79da['plugins']['get'](d),{isNavigationMode:_0x1eee52,currentChangeNumber:_0x2462c4}=_0x5f1e4f;let _0x45fc51;if(_0x5f1e4f['activeChange']=_0x1eee52?_0x5f1e4f['diff']['changes']['get'](_0x2462c4+this['_step']):_0x5f1e4f['diff']['changes']['first'],_0x5f1e4f['activeChange']['data']['isOnRoot'])_0x45fc51=_0x5c79da['editing']['view']['getDomRoot'](_0x5f1e4f['activeChange']['rootName']);else{const _0x24903f=_0x5c79da['model']['markers']['get']('revision:'+_0x5f1e4f['activeChange']['id']);_0x45fc51=_0x35fd59(_0x5c79da['editing'],_0x24903f);}_0x4f643f({'target':_0x45fc51,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ed56e,currentChangeNumber:_0x149779,numberOfChanges:_0xd94a3c,isReady:_0x2ba446,isEnabled:_0x3224a6}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3224a6&&_0x2ba446&&_0xd94a3c)&&(!_0x4ed56e||(0x1===this['_step']?_0x149779<_0xd94a3c-0x1:_0x149779>0x0));}}class _i extends _0x1331b6{constructor(_0x123dd9){super(_0x123dd9);const _0x2c0837=this['bindTemplate'],_0x10bd7f=new _0x46ea5a(_0x123dd9),_0x2dc178=new _0x46ea5a(_0x123dd9);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',(_0x2471e9,_0x3abdde)=>_0x2471e9&&_0x3abdde>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xfc29db,_0x2daab5,_0x3902ea,_0x22f371)=>{if(!_0xfc29db)return m(_0x123dd9,'Loading...');if(!_0x3902ea)return m(_0x123dd9,'No\x20changes');const _0x11ffce=m(_0x123dd9,'NUMBER_OF_CHANGES',_0x3902ea);return _0x22f371?m(_0x123dd9,'X_OF_Y_CHANGES',[_0x2daab5+0x1,_0x3902ea]):_0x11ffce;}),_0x10bd7f['set']({'label':m(_0x123dd9,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x2dc178['set']({'label':m(_0x123dd9,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x10bd7f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2dc178['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x10bd7f['on']('execute',()=>this['fire']('execute','backward')),_0x2dc178['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',_0x2c0837['if']('_isStatusLabelVisible','ck-hidden',_0x3d30c6=>!_0x3d30c6)]},'children':[{'text':_0x2c0837['to']('isNavigationMode',_0x8317a3=>_0x8317a3?m(_0x123dd9,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x123dd9,'Total')+':\x20')}]},{'text':_0x2c0837['to']('_statusText')}]},new _0x401132(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x10bd7f,_0x2dc178]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0xc00adc{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x6cd05d=this['editor']['editing']['view'];_0x6cd05d['change'](_0x11c0f5=>{for(const _0x3a7281 of _0x6cd05d['document']['roots'])_0x11c0f5['addClass'](ce,_0x3a7281);});}['hide'](){const _0x4475d4=this['editor']['editing']['view'];_0x4475d4['change'](_0x45736c=>{for(const _0x17e491 of _0x4475d4['document']['roots'])_0x45736c['removeClass'](ce,_0x17e491);});}}class g extends _0xc00adc{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x5d8eac=this['editor'],_0x2ae6be=_0x5d8eac['plugins']['get'](d),_0x1c260=_0x5d8eac['plugins']['get'](le);_0x5d8eac['ui']['componentFactory']['add']('exitToEditing',_0x5437b7=>{const _0x4b41f3=new _0x46ea5a(_0x5437b7);return _0x4b41f3['set']({'label':m(_0x5437b7,'Back\x20to\x20editing'),'icon':_0xd99ff4['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4b41f3,'execute',()=>{_0x5d8eac['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4b41f3;}),_0x5d8eac['ui']['componentFactory']['add']('restoreRevision',_0x4c57b7=>{const _0x14807e=new _0x46ea5a(_0x4c57b7);return _0x14807e['set']({'label':m(_0x4c57b7,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x14807e['bind']('isEnabled')['to'](_0x5d8eac['commands']['get']('restoreRevision')),this['listenTo'](_0x14807e,'execute',()=>_0x5d8eac['execute']('restoreRevision')),_0x14807e;}),_0x5d8eac['ui']['componentFactory']['add']('changesNavigation',_0xef1ca5=>{const _0x6aed23=new _i(_0xef1ca5),_0x454073=_0x5d8eac['commands']['get']('showPreviousChange'),_0x509675=_0x5d8eac['commands']['get']('showNextChange');return _0x6aed23['bind']('isBackwardNavigationEnabled')['to'](_0x454073,'isEnabled'),_0x6aed23['bind']('isForwardNavigationEnabled')['to'](_0x509675,'isEnabled'),_0x6aed23['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2ae6be),this['listenTo'](_0x6aed23,'execute',(_0x332047,_0x4e7e3a)=>{_0x5d8eac['execute']('forward'===_0x4e7e3a?'showNextChange':'showPreviousChange');}),_0x6aed23;}),_0x1c260['show'](),_0x2ae6be['on']('change:isReady',(_0x3fc5cc,_0xb7aa6b,_0x51d6f2)=>{_0x51d6f2?_0x1c260['hide']():_0x1c260['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x4ce9fe,_0x32e6ac){super(_0x4ce9fe,_0x32e6ac);const _0x48b8ec=this['bindTemplate'];this['set']({'label':m(_0x4ce9fe,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4ce9fe,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x48b8ec['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x3be0ea=this['fieldView']['element'];this['_tooltipString']=_0x3be0ea['scrollWidth']>_0x3be0ea['clientWidth']&&_0x3be0ea['value']||'';}}class ti extends _0x1331b6{constructor(_0x1f3e00,_0xfa58c9,_0x387005){super(_0x1f3e00);const _0x44f3fd=new _0x1c6c68();_0x44f3fd['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x353adb=['ck','ck-revision-history-sidebar__revision-author'];_0x387005&&_0x353adb['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1cdd62=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1f3e00,_0x387005?'Revision\x20creator':'Revision\x20author')},'children':[_0x44f3fd,_0xfa58c9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x353adb},'children':_0x1cdd62});}}function ni(_0x1a3b40,_0x2f154c){const _0x1bb7b2=_0x1a3b40['bindTemplate'],_0x2bbec2=_0x1a3b40['locale'],_0x4f97dc=_0x336529(_0x2bbec2);_0x4f97dc['panelPosition']='sw';const _0x194f88=function(_0x3259bf,_0x493880){const _0x125404=function(_0x48f5d9,_0x503b98){const _0x6064d2=_0x48f5d9['locale'],_0x154f5e={'Compare\x20against\x20selected':m(_0x6064d2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x6064d2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x6064d2,'Restore\x20this\x20revision')};return _0x503b98['map'](_0x22ee44=>{const _0x196c99=_0x154f5e[_0x22ee44['name']];return _0x196c99&&_0x196c99!==_0x22ee44['name']&&(_0x22ee44['name']=_0x196c99),_0x22ee44;});}(_0x3259bf,_0x493880),_0x30c45f=new _0x43846a();for(const _0x1bfc9b of _0x125404){const _0x2aa5a8={'type':'button','model':new to({'label':_0x1bfc9b['name'],'class':_0x1bfc9b['class'],'withText':!0x0,'role':'menuitem','_action':_0x1bfc9b['action']})};_0x2aa5a8['model']['bind']('isEnabled')['to'](_0x3259bf,'isActionsDropdownOpen',_0x408a67=>'function'!=typeof _0x1bfc9b['isEnabled']||(!_0x408a67||_0x1bfc9b['isEnabled'](_0x3259bf))),_0x30c45f['add'](_0x2aa5a8);}return _0x30c45f;}(_0x1a3b40,_0x2f154c);return _0x1a3b40['bind']('isActionsDropdownOpen')['to'](_0x4f97dc,'isOpen'),_0x4f97dc['buttonView']['set']({'label':m(_0x2bbec2,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xd99ff4['threeVerticalDots']}),_0x4f97dc['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1bb7b2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1bb7b2['to'](_0x43dc28=>_0x43dc28['stopPropagation']())}}),_0x4f97dc['on']('execute',_0x5c945e=>{_0x1a3b40['isReady']&&'function'==typeof _0x5c945e['source']['_action']&&_0x5c945e['source']['_action'](_0x1a3b40);}),_0x80f599(_0x4f97dc,_0x194f88,{'role':'menu'}),_0x4f97dc['listenTo'](_0x1a3b40,'change:isActionsDropdownOpen',(_0x4b1c9d,_0x4a97b8,_0x22ef7f)=>{if(_0x22ef7f)for(const _0x16eb5e of _0x4f97dc['listView']['items']){const _0x583537=_0x16eb5e['children']['first'],_0x4d43b4=_0x2f154c['find'](_0xbf1885=>_0xbf1885['action']===_0x583537['_action'])['isVisible'];_0x16eb5e['isVisible']=void 0x0===_0x4d43b4||_0x4d43b4(_0x1a3b40);}}),_0x4f97dc;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x406a80(_0x1331b6){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x328412,_0x36107f,_0x592e84,_0x3079de){super(_0x328412);const _0x2533f5=this['bindTemplate'],_0x2927d9=function(_0x1bba52,_0x129827){const _0x48ca73=Array['from'](_0x129827['authors'])['filter'](_0x472014=>_0x472014!=_0x129827['creator']);return _0x129827['creator']&&_0x48ca73['unshift'](_0x129827['creator']),_0x48ca73['map'](_0x277601=>new ti(_0x1bba52,_0x277601,_0x277601==_0x129827['creator']));}(_0x328412,_0x36107f);this['id']=_0x36107f['id'],this['_revision']=_0x36107f,this['_requireRevisionName']=_0x3079de,this['bind']('name','createdAt')['to'](_0x36107f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3ca456=>{return _0x195b4a=_0x328412['uiLanguage'],(_0x53a677=_0x3ca456)['toLocaleDateString'](_0x195b4a,{'month':'long','day':'numeric'})+',\x20'+_0x53a677['toLocaleTimeString'](_0x195b4a,{'hour':'numeric','minute':'numeric'});var _0x195b4a,_0x53a677;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x328412,_0x1f5698),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x18b72d=>_0x18b72d||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3e3a69,_0x2c1e07)=>_0x3e3a69&&_0x2c1e07),this['revisionActionsView']=_0x592e84&&_0x592e84['length']?ni(this,_0x592e84):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2533f5['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2533f5['if']('isEnabled','ck-disabled',_0x18a72f=>!_0x18a72f),_0x2533f5['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2533f5['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2533f5['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':_0x2533f5['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':_0x2927d9}]},this['revisionActionsView']],'on':{'click':_0x2533f5['to'](_0x12cb3e=>{_0x12cb3e['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x11887e=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x11887e,'change',()=>{this['_requireRevisionName']&&!_0x11887e['value']||this['fire']('setName',{'id':this['id'],'name':_0x11887e['value']}),_0x11887e['value']||(_0x11887e['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x4b2178,_0x35d64a){const _0x860288=_0x59a4ab['fromJSDate'](_0x4b2178)['setLocale'](_0x35d64a),_0x41ffb3=_0x59a4ab['local'](),_0x220e94=_0x41ffb3['minus']({'days':0x1})['startOf']('day');let _0x12961b,_0x1ac7bc;return _0x860288['hasSame'](_0x41ffb3,'day')?(_0x12961b=_0x860288['startOf']('day')['toJSDate'](),_0x1ac7bc=_0x860288['toRelativeCalendar']()):_0x860288['hasSame'](_0x220e94,'day')?(_0x12961b=_0x220e94['toJSDate'](),_0x1ac7bc=_0x860288['toRelativeCalendar']()):_0x860288['hasSame'](_0x41ffb3,'week')?(_0x12961b=_0x860288['startOf']('week')['toJSDate'](),_0x1ac7bc=_0x860288['weekdayLong']||''):_0x860288['hasSame'](_0x41ffb3,'year')?(_0x12961b=_0x860288['startOf']('month')['toJSDate'](),_0x1ac7bc=_0x860288['monthLong']||''):(_0x12961b=_0x860288['startOf']('year')['toJSDate'](),_0x1ac7bc=String(_0x860288['year'])),{'startDate':_0x12961b,'localizedPeriodName':_0x1ac7bc};}class mi extends _0x1331b6{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x407cd1,_0x2ba76d,_0x320806,_0x5d31cb){super(_0x407cd1);const _0x1e2f51=di(_0x2ba76d,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2ba76d,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x320806,this['_requireRevisionName']=_0x5d31cb,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':_0x1e2f51}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5040ca){const _0x1e667f=new ai(this['locale'],_0x5040ca,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1e667f);}['removeRevision'](_0x5439c9){const _0x5adef2=this['revisionViews']['find'](_0x130bf9=>_0x130bf9['id']===_0x5439c9['id']);this['revisionViews']['remove'](_0x5adef2);}}class as extends _0x1331b6{constructor(_0x1e9b32){super(_0x1e9b32);const _0x348a47=new _0x1c6c68();_0x348a47['content']=_0xd99ff4['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x348a47,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1e9b32,'Revision\x20history')]}]});}}class ci extends _0x1331b6{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d58bf,_0x4db9b7,_0x15783f,_0x5f0061){super(_0x3d58bf);const _0x51149a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4db9b7,this['_revisionActions']=_0x15783f,this['_requireRevisionName']=_0x5f0061,this['on']('select',(_0x59138f,_0x3b6560)=>{this['fire']('revisionSelected',_0x3b6560);}),this['on']('setName',(_0x3b8217,_0x30cb0e)=>{this['fire']('revisionSetName',_0x30cb0e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3d58bf),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x51149a['if']('isEnabled','ck-disabled',_0x485a54=>!_0x485a54)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x43bd0b of this['_revisions'])this['_addRevision'](_0x43bd0b);this['_revisions']['on']('add',(_0x29ffaf,_0x254301)=>{this['_addRevision'](_0x254301);}),this['_revisions']['on']('remove',(_0xb47dfc,_0x565e41)=>{this['_removeRevision'](_0x565e41);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4f219f=>_0x4f219f['revisionViews']['map'](_0x546af2=>_0x546af2))['flat']();}['selectRevision'](_0x490f61){for(const _0x4b3f12 of this['revisionViews'])_0x490f61&&_0x490f61['id']===_0x4b3f12['id']?_0x4b3f12['select']():_0x4b3f12['deselect']();}['highlightRevisions'](_0x4461f0){for(const _0x148f21 of this['revisionViews'])_0x4461f0['some'](({id:_0x3acf11})=>_0x3acf11===_0x148f21['id'])?_0x148f21['highlight']():_0x148f21['unhighlight']();}['_addRevision'](_0xb00730){const _0x4ebf17=di(_0xb00730['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1b5624=this['timePeriodViews']['get'](0x0);_0x1b5624&&_0x1b5624['startDate']['getTime']()===_0x4ebf17['getTime']()||(_0x1b5624=new mi(this['locale'],_0x4ebf17,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1b5624)),_0x1b5624['addRevision'](_0xb00730);}['_removeRevision'](_0x262e9b){const _0x52ddc4=di(_0x262e9b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x52ddc4)['removeRevision'](_0x262e9b);}['_getTimePeriodViewByStartDate'](_0x58508c){return this['timePeriodViews']['find'](_0x5afd30=>_0x5afd30['startDate']['getTime']()===_0x58508c['getTime']());}}class w extends _0xc00adc{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x383f40,uid as _0x66ae84,Collection as _0x4367e2,logWarning as _0x1bfd1b,FocusTracker as _0x5b1edb,KeystrokeHandler as _0x2bf539,scrollViewportToShowTarget as _0x47297b,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x49f1f6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x100481,set as _0x1963f5,unset as _0x12c8e7,isEqual as _0x458fad}from'lodash-es';import{Plugin as _0x31326a,PendingActions as _0xa01518,icons as _0x57512f,Command as _0x2e9ea6,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x29bc02,getMarkerDomElement as _0x4ddfb7,ConfirmMixin as ti,sanitizeEditorConfig as _0x56c44c}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x401b7e,Element as ft,Range as vt,ViewUIElement as _0x2e1c5d,ViewRawElement as _0xcfd9dc,ViewEmptyElement as _0x2b42de,ViewAttributeElement as _0x17eac4,ViewContainerElement as _0x455d52,Position as gt,ViewText as _0x20e0cf,ViewElement as _0x2516e6,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5e44da,submitHandler as _0x38ae6b,LabeledFieldView as _0x31f44d,createLabeledInputText as _0x22ab74,createDropdown as _0x10173a,ListView as _0x32ec06,ListItemView as _0x1c24fb,ButtonView as te,MenuBarMenuView as _0x13a10c,MenuBarMenuListView as _0x9b0c60,MenuBarMenuListItemView as _0x10f968,MenuBarMenuListItemButtonView as _0x112fc5,ContextualBalloon as _0x416265,ToolbarSeparatorView as _0x312ecc,IconView as _0x316f4d,addListToDropdown as to,ViewModel as _0x290497,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5afbc8}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x383f40(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x38fee1){super(),this['id']=_0x38fee1['id']||_0x66ae84(),this['creator']=_0x38fee1['creator']||null,this['authors']=_0x38fee1['authors']||[],this['diffData']=_0x38fee1['diffData']||null,this['toVersion']=_0x38fee1['toVersion']||0x0,this['fromVersion']=_0x38fee1['fromVersion']||0x0,this['set']('name',_0x38fee1['name']||''),this['set']('createdAt',_0x38fee1['createdAt']||new Date()),this['set']('attributes',_0x38fee1['attributes']||{});}['setName'](_0x32e487){this['_update']({'name':_0x32e487});}['setAttribute'](_0xd699d1,_0x196b59){const _0x2b65da=_0x100481(this['attributes']);_0x1963f5(_0x2b65da,_0xd699d1,_0x196b59),this['_update']({'attributes':_0x2b65da});}['removeAttribute'](_0xd809e5){const _0x425113=_0x100481(this['attributes']);_0x12c8e7(_0x425113,_0xd809e5),this['_update']({'attributes':_0x425113});}['_update'](_0x426292,_0x25432f=!0x1){let _0x119394=!0x1;const _0x2caa1={'id':this['id']},_0x2d975f=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5a8cce of _0x2d975f){const _0x51ef99=_0x426292[_0x5a8cce];void 0x0!==_0x51ef99&&_0x51ef99!==this[_0x5a8cce]&&(this[_0x5a8cce]=_0x51ef99,_0x2caa1[_0x5a8cce]=_0x51ef99,_0x119394=!0x0);}_0x119394&&(_0x2caa1['authors']&&(_0x2caa1['authorsIds']=_0x2caa1['authors']['map'](_0x40b46a=>_0x40b46a['id']),delete _0x2caa1['authors']),this['fire']('_update',_0x2caa1,_0x25432f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3778c4=>_0x3778c4['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x31326a{['_revisions'];static get['requires'](){return[_0x29bc02];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5d2593){super(_0x5d2593),this['_revisions']=new _0x4367e2();}['afterInit'](){!async function(_0xbbc38c){const _0x486948=_0x579edd([0x6b,0x57,0x58,0x73,0x72,0x64,0x4a,0x52,0x6f,0x66,0x50,0x32,0x38,0x68,0x53,0x44,0x30,0x55,0x6a,0x54,0x69,0x49,0x56,0x75,0x78,0x35,0x34,0x51,0x59,0x37,0x67,0x4e,0x5a,0x4d,0x76,0x42,0x77,0x4f,0x6e,0x6d,0x74,0x39,0x31,0x79,0x36,0x43,0x61,0x33,0x7a,0x4b,0x45,0x6c,0x41,0x4c,0x47,0x62,0x48,0x70,0x63,0x46,0x71,0x65]),_0x4481d6=0xeb829,_0x1d7c24=0x7d0260ab,_0x5f4728=0x7d050063^_0x1d7c24,_0x102eab=window[_0x579edd([0x44,0x61,0x74,0x65])][_0x579edd([0x6e,0x6f,0x77])](),_0x166e27=_0xbbc38c[_0x579edd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf7fd8f=new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x540f6a=>{_0x166e27[_0x579edd([0x6f,0x6e,0x63,0x65])](_0x579edd([0x72,0x65,0x61,0x64,0x79]),_0x540f6a);}),_0x3dc5e5={[_0x579edd([0x6b,0x74,0x79])]:_0x579edd([0x45,0x43]),[_0x579edd([0x75,0x73,0x65])]:_0x579edd([0x73,0x69,0x67]),[_0x579edd([0x63,0x72,0x76])]:_0x579edd([0x50,0x2d,0x32,0x35,0x36]),[_0x579edd([0x78])]:_0x579edd([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]),[_0x579edd([0x79])]:_0x579edd([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]),[_0x579edd([0x61,0x6c,0x67])]:_0x579edd([0x45,0x53,0x32,0x35,0x36])},_0x391f2a=_0x166e27[_0x579edd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x579edd([0x67,0x65,0x74])](_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3de876(){let _0x6f3de1,_0x29c80f=null,_0x2ccd09=null;try{if(_0x391f2a==_0x579edd([0x47,0x50,0x4c]))return _0x579edd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x6f3de1=_0x590314(),!_0x6f3de1)return _0x579edd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x6f3de1[_0x579edd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ccd09=_0x1862e6(_0x6f3de1[_0x579edd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x6f3de1[_0x579edd([0x6a,0x74,0x69])])),await _0x59708f()?_0x1c07f9()?_0x1a34eb()?_0x579edd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x911746()?(_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x579edd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29c80f=_0x2846ef(_0x579edd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x579edd([0x74,0x72,0x69,0x61,0x6c])&&(_0x29c80f=_0x2846ef(_0x579edd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34ba21()):_0x579edd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x579edd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x579edd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5e4c3c){return _0x579edd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1a34eb(){const _0x46fa7c=[_0x579edd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x579edd([0x74,0x72,0x69,0x61,0x6c])][_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x102eab/0x3e8:0xe10*_0x5f4728;return _0x6f3de1[_0x579edd([0x65,0x78,0x70])]<_0x46fa7c;}function _0x1c07f9(){const _0x465e2c=_0x6f3de1[_0x579edd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x465e2c)return!0x1;if(_0x465e2c[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x2a])))return!0x0;if(_0x465e2c[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x52,0x48])))return!0x0;if(_0x465e2c[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x52,0x52,0x48]))){if(_0x168f83())return!0x0;if(_0x210afe()||_0x4d3ac2())return!0x0;}return!0x1;}function _0x911746(){const _0x430d37=_0x6f3de1[_0x579edd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x430d37||0x0==_0x430d37[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b8269}=new URL(window[_0x579edd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x430d37[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b8269))return!0x0;const _0x117b44=_0x5b8269[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e]));return _0x430d37[_0x579edd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39df86=>_0x39df86[_0x579edd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x579edd([0x2a])))[_0x579edd([0x6d,0x61,0x70])](_0x959223=>_0x959223[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e])))[_0x579edd([0x73,0x6f,0x6d,0x65])](_0x445e4c=>_0x117b44[_0x579edd([0x65,0x76,0x65,0x72,0x79])]((_0x2c3f43,_0x1d079d)=>_0x445e4c[_0x1d079d]===_0x2c3f43||_0x445e4c[_0x1d079d]===_0x579edd([0x2a])));}function _0x34ba21(){return _0x29c80f&&_0x2ccd09?new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ae69f,_0x4ef442)=>{_0x29c80f[_0x579edd([0x74,0x68,0x65,0x6e])](_0x3ae69f,_0x4ef442),_0x2ccd09[_0x579edd([0x74,0x68,0x65,0x6e])](_0x117a94=>{_0x117a94!=_0x579edd([0x56,0x61,0x6c,0x69,0x64])&&_0x3ae69f(_0x117a94);},_0x4ef442);}):_0x29c80f||_0x2ccd09||_0x579edd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1862e6(_0x199a49,_0xa2171c){return new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x459088=>{if(_0x5606b6())return _0x459088(_0x579edd([0x56,0x61,0x6c,0x69,0x64]));_0x6a3fff(),_0x166e27[_0x579edd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x579edd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x124ce9=!0x1;const _0x3fa431=_0x66ae84();function _0x5161fa(_0x41499e){return!!_0x41499e&&(typeof _0x41499e===_0x579edd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x41499e===_0x579edd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x41499e[_0x579edd([0x74,0x68,0x65,0x6e])]===_0x579edd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x41499e[_0x579edd([0x63,0x61,0x74,0x63,0x68])]===_0x579edd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x59688d(_0x3595db){_0x2530fb(_0x3595db)[_0x579edd([0x74,0x68,0x65,0x6e])](_0x480979=>{if(!_0x480979||_0x480979[_0x579edd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x579edd([0x6f,0x6b]))return _0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3c0dab(_0x3b5958(_0x3fa431+_0xa2171c))!=_0x480979[_0x579edd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x579edd([0x56,0x61,0x6c,0x69,0x64]);})[_0x579edd([0x74,0x68,0x65,0x6e])](_0x41ca2b=>(_0x1adcc1(),_0x41ca2b),()=>{const _0x261065=_0x177fa7();return null==_0x261065?(_0x1adcc1(),_0x579edd([0x56,0x61,0x6c,0x69,0x64])):_0x579edd(_0x102eab-_0x261065>(0x590ee4ab^_0x1d7c24)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x579edd([0x74,0x68,0x65,0x6e])](_0x459088)[_0x579edd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x459088(_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4f4f77=0x7d348e2b^_0x1d7c24;function _0x1adcc1(){const _0x545920=_0x579edd([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c0dab(_0x3b5958(_0x199a49)),_0xa9bf3f=_0x4e14bd(_0x3c0dab(window[_0x579edd([0x4d,0x61,0x74,0x68])][_0x579edd([0x63,0x65,0x69,0x6c])](_0x102eab/_0x4f4f77)));window[_0x579edd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x579edd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x545920,_0xa9bf3f);}function _0x177fa7(){const _0x7a383=_0x579edd([0x6c,0x6c,0x63,0x74,0x2d])+_0x3c0dab(_0x3b5958(_0x199a49)),_0x5623bd=window[_0x579edd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x579edd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7a383);return _0x5623bd?window[_0x579edd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e14bd(_0x5623bd),0x10)*_0x4f4f77:null;}function _0x2530fb(_0x579eea){return new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b3b55,_0x1862a1)=>{_0x579eea[_0x579edd([0x74,0x68,0x65,0x6e])](_0x4b3b55,_0x1862a1),window[_0x579edd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1862a1,0x7d03b46b^_0x1d7c24);});}}_0x166e27[_0x579edd([0x6f,0x6e])](_0x579edd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c7040,_0x5a183c)=>{if(_0x5a183c[0x0]!=_0x199a49)return _0x459088(_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a183c[0x1]={..._0x5a183c[0x1],[_0x579edd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fa431};},{[_0x579edd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x579edd([0x68,0x69,0x67,0x68])}),_0x166e27[_0x579edd([0x6f,0x6e])](_0x579edd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43ea9b=>{_0x5161fa(_0x43ea9b[_0x579edd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x124ce9=!0x0,_0x59688d(_0x43ea9b[_0x579edd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x579edd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x579edd([0x6c,0x6f,0x77])}),_0xf7fd8f[_0x579edd([0x74,0x68,0x65,0x6e])](()=>{_0x124ce9||_0x459088(_0x579edd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5606b6(){return _0x166e27[_0x579edd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x579edd([0x76,0x69,0x65,0x77])][_0x579edd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x579edd([0x61,0x75,0x74,0x6f]);}function _0x6a3fff(){_0x166e27[_0x579edd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x579edd([0x76,0x69,0x65,0x77])][_0x579edd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x579edd([0x61,0x75,0x74,0x6f]);}}function _0x2846ef(_0x1015a0){const _0x17894e=[new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcd1764=>setTimeout(_0xcd1764,0x7d0b5e67^_0x1d7c24)),_0xf7fd8f[_0x579edd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19a225=>{const _0x207689=0x7d0260ac^_0x1d7c24,_0x334d50=_0xbbc38c[_0x579edd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x28231a(){_0x334d50[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x207689&&_0x19a225();}_0x28231a(),_0x334d50[_0x579edd([0x6f,0x6e])](_0x579edd([0x61,0x64,0x64]),_0x28231a);})),new window[(_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14dd08=>{function _0x184a72(){for(const _0x6bf667 in window)if(window[_0x579edd([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x579edd([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x6bf667))&&window[_0x6bf667]==_0x4481d6)return _0x14dd08();_0x166e27[_0x579edd([0x73,0x74,0x61,0x74,0x65])]!=_0x579edd([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x579edd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x184a72,0x7d027323^_0x1d7c24);}_0x2271cc(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x184a72();})];return window[_0x579edd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x579edd([0x72,0x61,0x63,0x65])](_0x17894e)[_0x579edd([0x74,0x68,0x65,0x6e])](()=>_0x1015a0);}async function _0x41132f(){if(await _0xf7fd8f,_0x2271cc(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x13ee4f=_0xbbc38c[_0x579edd([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x304d7e=_0xbbc38c[_0x579edd([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])](_0x13ee4f[_0x579edd([0x69,0x64])]),_0x262745=_0x140aee(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x262745[_0x579edd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x13ee4f['id'],_0x304d7e?_0x304d7e['id']:null,!0x0),_0x262745[_0x579edd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x262745[_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x262745[_0x579edd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xcbbfc0,void(_0x262745[_0x579edd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xcbbfc0);}if(_0x2271cc(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x15a018=_0x140aee(_0x579edd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x15a018[_0x579edd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x15a018[_0x579edd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x15a018[_0x579edd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xcbbfc0,_0x15a018[_0x579edd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xcbbfc0;}_0x166e27[_0x579edd([0x6d,0x6f,0x64,0x65,0x6c])][_0x579edd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xcbbfc0,_0x166e27[_0x579edd([0x6d,0x6f,0x64,0x65,0x6c])][_0x579edd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xcbbfc0,_0x166e27[_0x579edd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x579edd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x168f83(){return _0x2271cc(_0x579edd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x140aee(_0x579edd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x579edd([0x73,0x74,0x61,0x74,0x65])]==_0x579edd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x210afe(){return _0x2271cc(_0x579edd([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 _0x4d3ac2(){return _0x2271cc(_0x579edd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3357b7(_0xeacaec){const _0x3d267d=_0x316cc7();_0x166e27[_0x3d267d]=_0x579edd([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])+_0xeacaec,_0xeacaec[_0x579edd([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x579edd([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x316cc7()]=_0x4481d6),_0xeacaec!=_0x579edd([0x56,0x61,0x6c,0x69,0x64])&&_0x41132f();}function _0x316cc7(){const _0x45ccbd=window[_0x579edd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x579edd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x579edd([0x6e,0x6f,0x77])]())[_0x579edd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x579edd([0x2e]),'');let _0x2cba48=_0x579edd([0x6b]);for(let _0xebe1c2=0x0;_0xebe1c2<_0x45ccbd[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xebe1c2+=0x2){let _0x42b94e=window[_0x579edd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x45ccbd[_0x579edd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xebe1c2,_0xebe1c2+0x2));_0x42b94e>=_0x486948[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42b94e-=_0x486948[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2cba48+=_0x486948[_0x42b94e];}return _0x2cba48;}function _0x590314(){const _0x1c9925=_0x391f2a[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e]));if(0x3!=_0x1c9925[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37e304(_0x1c9925[0x1]);function _0x37e304(_0x30571e){const _0x5c4c83=_0x40c54f(_0x30571e);return _0x5c4c83&&_0x1a2a42()?_0x5c4c83:null;function _0x1a2a42(){const _0xcefff7=_0x5c4c83[_0x579edd([0x6a,0x74,0x69])],_0x4a4130=window[_0x579edd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcefff7[_0x579edd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xcefff7[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x902d9c={..._0x5c4c83,[_0x579edd([0x6a,0x74,0x69])]:_0xcefff7[_0x579edd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xcefff7[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x902d9c[_0x579edd([0x76,0x63])],_0x3b5958(_0x902d9c)==_0x4a4130;}}}async function _0x59708f(){let _0x4e6656=!0x0;try{const _0x28b1a8=_0x391f2a[_0x579edd([0x73,0x70,0x6c,0x69,0x74])](_0x579edd([0x2e])),[_0x4b3c01,_0xb005e1,_0xc938f2]=_0x28b1a8;return _0x1b90ce(_0x4b3c01),await _0x47aa8e(_0x4b3c01,_0xb005e1,_0xc938f2),_0x4e6656;}catch(_0x4796e9){return!0x1;}function _0x1b90ce(_0x2ca16a){const _0x160f2c=_0x40c54f(_0x2ca16a);_0x160f2c&&_0x160f2c[_0x579edd([0x61,0x6c,0x67])]==_0x579edd([0x45,0x53,0x32,0x35,0x36])||(_0x4e6656=!0x1);}async function _0x47aa8e(_0x226453,_0x3ab079,_0x304b5c){const _0x2d8b67=window[_0x579edd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x579edd([0x66,0x72,0x6f,0x6d])](_0xa0a1b5(_0x304b5c),_0x4f6520=>_0x4f6520[_0x579edd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4cb5fe=new window[(_0x579edd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x579edd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x226453+_0x579edd([0x2e])+_0x3ab079),_0x2e2db7=window[_0x579edd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x579edd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e2db7)return;const _0x302830=await _0x2e2db7[_0x579edd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x579edd([0x6a,0x77,0x6b]),_0x3dc5e5,{[_0x579edd([0x6e,0x61,0x6d,0x65])]:_0x579edd([0x45,0x43,0x44,0x53,0x41]),[_0x579edd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x579edd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x579edd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e2db7[_0x579edd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x579edd([0x6e,0x61,0x6d,0x65])]:_0x579edd([0x45,0x43,0x44,0x53,0x41]),[_0x579edd([0x68,0x61,0x73,0x68])]:{[_0x579edd([0x6e,0x61,0x6d,0x65])]:_0x579edd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x302830,_0x2d8b67,_0x4cb5fe)||(_0x4e6656=!0x1);}}function _0x40c54f(_0x5b8bfd){return _0x5b8bfd[_0x579edd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x579edd([0x65,0x79]))?JSON[_0x579edd([0x70,0x61,0x72,0x73,0x65])](_0xa0a1b5(_0x5b8bfd)):null;}function _0xa0a1b5(_0x472d64){return window[_0x579edd([0x61,0x74,0x6f,0x62])](_0x472d64[_0x579edd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x579edd([0x2b]))[_0x579edd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x579edd([0x2f])));}function _0x3b5958(_0x2f5ce5){let _0x37a627=0x1505;function _0x137bcf(_0x4576c4){for(let _0xb24aec=0x0;_0xb24aec<_0x4576c4[_0x579edd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb24aec++){const _0x26d5e6=_0x4576c4[_0x579edd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xb24aec);_0x37a627=(_0x37a627<<0x5)+_0x37a627+_0x26d5e6,_0x37a627&=_0x37a627;}}function _0x196f62(_0x2821e8){Array[_0x579edd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2821e8)?_0x2821e8[_0x579edd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x196f62):_0x2821e8&&typeof _0x2821e8==_0x579edd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x579edd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2821e8)[_0x579edd([0x73,0x6f,0x72,0x74])]()[_0x579edd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x366fac,_0x3b528d])=>{_0x137bcf(_0x366fac),_0x196f62(_0x3b528d);}):_0x137bcf(window[_0x579edd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2821e8));}return _0x196f62(_0x2f5ce5),_0x37a627>>>0x0;}function _0x3c0dab(_0x28f0e6){return _0x28f0e6[_0x579edd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x579edd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x579edd([0x30]));}function _0x4e14bd(_0x10a8e7){return _0x10a8e7[_0x579edd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x579edd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x579edd([0x6a,0x6f,0x69,0x6e])]('');}function _0x2271cc(_0x69f925){return _0x166e27[_0x579edd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x579edd([0x68,0x61,0x73])](_0x69f925);}function _0x140aee(_0x3fae24){return _0x166e27[_0x579edd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x579edd([0x67,0x65,0x74])](_0x3fae24);}function _0xcbbfc0(){}function _0x579edd(_0x150518){return _0x150518['map'](_0x291275=>String['fromCharCode'](_0x291275))['join']('');}_0x3357b7(await _0x3de876());}(this);}['createRevision'](_0x1d3d16){const _0x10554f=this['editor']['plugins']['get']('Users');return new a({'id':_0x1d3d16['id'],'name':_0x1d3d16['name'],'creator':_0x1d3d16['creatorId']?_0x10554f['getUser'](_0x1d3d16['creatorId']):null,'diffData':_0x1d3d16['diffData']||_0x1d3d16['data'],'authors':_0x1d3d16['authorsIds']['map'](_0x5c6b56=>_0x10554f['getUser'](_0x5c6b56)),'createdAt':new Date(_0x1d3d16['createdAt']),'attributes':_0x1d3d16['attributes'],'fromVersion':_0x1d3d16['fromVersion'],'toVersion':_0x1d3d16['toVersion']});}['addRevision'](_0x40a428,_0x2190c4=0x0){this['_revisions']['add'](_0x40a428,_0x2190c4);}['getRevision'](_0x7b7d2f){return this['_revisions']['get'](_0x7b7d2f);}['getRevisions'](_0x5055e7={'toJSON':!0x1}){const _0x25b5d6=Array['from'](this['_revisions']);return _0x25b5d6['reverse'](),_0x5055e7['toJSON']?_0x25b5d6['map'](_0x27b313=>_0x27b313['toJSON']()):_0x25b5d6;}['getIndex'](_0xe71420){return this['_revisions']['getIndex'](_0xe71420);}['getEarlierVisibleRevision'](_0x4a3bfd){const [,_0x413c78]=this['getRevisionsIterator'](_0x4a3bfd,{'direction':'earlier'});return _0x413c78;}['getLaterVisibleRevision'](_0x539f72){const [,_0x596294]=this['getRevisionsIterator'](_0x539f72,{'direction':'later'});return _0x596294;}['getRevisionsInDiff'](_0x4f217b){const _0xa17323=[];for(const _0x35b0ce of this['getRevisionsIterator'](_0x4f217b['newRevisionId']))if(_0xa17323['push'](_0x35b0ce),_0x35b0ce['id']===_0x4f217b['oldRevisionId'])break;return _0xa17323;}*['getRevisionsIterator'](_0x418577,{direction:_0x260ce9='earlier',filter:_0x118485=()=>!0x0}={}){const _0x42f433='earlier'===_0x260ce9?0x1:-0x1;let _0x118709=this['_revisions']['get'](_0x418577),_0x57ae15=this['getIndex'](_0x118709);for(yield _0x118709;_0x118709;){if(_0x57ae15+=_0x42f433,_0x118709=this['getRevision'](_0x57ae15),!_0x118709)return;_0x118485(_0x118709)&&(yield _0x118709);}}}function m(_0x588777,_0x4ee616,_0x561126){const t=_0x588777['t'];switch(_0x4ee616){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'},_0x561126);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x561126);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x455d52,'a':_0x17eac4,'e':_0x2b42de,'r':_0xcfd9dc,'u':_0x2e1c5d};class l extends _0x31326a{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x29bc02,j,_0xa01518];}constructor(_0x11e749){super(_0x11e749),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x41082e=_0x66ae84();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x41082e},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x594fc7=this['repository']['getRevision'](0x0),_0x18b1c1=_0x594fc7&&null===_0x594fc7['creator']?_0x594fc7:null;if(this['_continueCurrentRevision']=!!_0x18b1c1&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x525a40=this['_source']['getCurrentRevisionId'](),_0x257166=this['repository']['getRevision'](_0x525a40);if(_0x257166)this['_startingVersion']=_0x257166['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2fbe4d=this['_source']['history']['_operations']['find'](_0x1a9c82=>!_0x1a9c82['_isInit']),_0x4eb162=_0x2fbe4d?_0x2fbe4d['baseVersion']:this['_source']['history']['version'];_0x594fc7?(_0x594fc7['toVersion']<_0x4eb162&&_0x594fc7['_update']({'toVersion':_0x4eb162}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x18b1c1['id'],this['_startingVersion']=_0x18b1c1['fromVersion']):(this['_startingVersion']=_0x594fc7['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4eb162,this['_continueCurrentRevision']=!0x1);}}else _0x18b1c1&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x18b1c1['toVersion'],this['editor']['model']['document']['history']['version']),_0x18b1c1['fromVersion']===_0x18b1c1['toVersion']?(0x0!==_0x18b1c1['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x18b1c1['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x18b1c1['id'],this['_startingVersion']=_0x18b1c1['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',_0x79d27c=>!_0x79d27c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x327503=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x519d49;for(const _0x7152db in _0x327503){const _0x51d8b4=_0x7152db,_0x5d2ca8=_0x327503[_0x51d8b4];if('revisionHistoryLicenseKeyValid'==_0x5d2ca8||'revisionHistoryLicenseKeyInvalid'==_0x5d2ca8||'revisionHistoryLicenseKeyExpired'==_0x5d2ca8||'revisionHistoryLicenseKeyDomainLimit'==_0x5d2ca8||'revisionHistoryLicenseKeyNotAllowed'==_0x5d2ca8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5d2ca8||'revisionHistoryLicenseKeyTrialLimit'==_0x5d2ca8||'revisionHistoryLicenseKeyUsageLimit'==_0x5d2ca8){delete _0x327503[_0x51d8b4],_0x519d49=_0x5d2ca8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x519d49&&_0x327503['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x519d49&&_0x327503['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x519d49&&_0x327503['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x519d49&&_0x327503['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x519d49&&_0x327503['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x519d49&&_0x327503['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x519d49&&_0x327503['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3d4078=this['repository']['getRevision'](0x0),_0x31b27d=await this['getRevisionDocumentData'](_0x3d4078),_0x11d19a=await this['getRevisionRootsAttributes'](_0x3d4078);this['_replaceEditorDataWithRevisionData'](_0x31b27d,_0x11d19a);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x135419){this['_source']=_0x135419;}async['update'](){const _0x292e22=await this['_source']['getLatestVersion']();if(_0x292e22>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5a6e59=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x292e22});_0x5a6e59['authors']=_0x5a6e59['authorsIds']['map'](_0x501d54=>this['editor']['plugins']['get']('Users')['getUser'](_0x501d54)),this['currentRevision']['_update'](_0x5a6e59);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x30b2bd={},_0x9fd8c8=null){const _0x3e75ac=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x9fd8c8>this['currentRevision']['toVersion']&&(_0x9fd8c8=null),null===_0x9fd8c8&&(_0x9fd8c8=await this['_source']['getLatestVersion']());const _0x272b13=this['_getFromVersion'](_0x9fd8c8),_0x228cae=this['buildRevisionData']({'from':_0x272b13,'to':_0x9fd8c8});if(this['currentRevision']['toVersion']<_0x9fd8c8){const _0xa4d5bb=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x9fd8c8,'to':_0x9fd8c8});_0xa4d5bb['authors']=[],_0xa4d5bb['authorsIds']=[],_0xa4d5bb['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xa4d5bb,!0x0),delete _0xa4d5bb['authors'],_0x3e75ac['push'](_0xa4d5bb);}_0x30b2bd['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x30b2bd['name']=_0x30b2bd['name']||null,_0x30b2bd['id']=_0x30b2bd['id']||_0x66ae84(),_0x30b2bd={..._0x30b2bd,..._0x228cae};const _0x18b169=this['addRevisionData'](_0x30b2bd);_0x3e75ac['push'](_0x30b2bd);const _0x47d397=this['repository']['getIndex'](_0x18b169);if(0x0!==_0x47d397){const _0x41edca=this['repository']['getRevision'](_0x47d397-0x1);if(_0x41edca['fromVersion']!==_0x9fd8c8){const _0x3b50f3=this['_revisionDataBuilder']['getData'](_0x9fd8c8,_0x41edca['toVersion']),_0x255c11={'id':_0x41edca['id'],'diffData':_0x3b50f3['diffData'],'authorsIds':_0x3b50f3['authorsIds'],'authors':_0x3b50f3['authorsIds']['map'](_0x32b02d=>this['editor']['plugins']['get']('Users')['getUser'](_0x32b02d)),'fromVersion':_0x9fd8c8};_0x41edca===this['currentRevision']&&(_0x255c11['createdAt']=new Date(_0x30b2bd['createdAt']['getTime']()+0xa)),_0x41edca['_update'](_0x255c11,!0x0),delete _0x255c11['authors'],_0x3e75ac['push'](_0x255c11);}}if(this['adapter']){for(const _0x1bf369 of _0x3e75ac)this['_bufferUpdate'](_0x1bf369['id'],_0x1bf369,!0x0);this['sendBufferedUpdates']();}return _0x18b169;}['addRevisionData'](_0x798c91){const _0x49d589=this['repository']['createRevision'](_0x798c91);return this['adapter']&&_0x49d589['on']('_update',(_0x425690,_0x11f585,_0x1610f8)=>{_0x1610f8||(this['_bufferUpdate'](_0x11f585['id'],_0x11f585,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x49d589,this['_findInsertionIndex'](_0x49d589)),_0x49d589;}async['getRevisionDocumentData'](_0x334bbc){await this['_loadRevisionData'](_0x334bbc);const _0x118a83={};for(const _0x49dfab in _0x334bbc['diffData']){if(_0x334bbc['diffData'][_0x49dfab]['attachChange']&&!_0x334bbc['diffData'][_0x49dfab]['attachChange']['isAttached'])continue;const _0x48d80b=this['_removeRevisionMarkers'](JSON['parse'](_0x334bbc['diffData'][_0x49dfab]['insertions'])),_0x56f3d9=this['editor']['editing']['view']['document'],_0x30884a=new _0x401b7e(_0x56f3d9,_0x48d80b['map'](_0x9a01a=>C(_0x9a01a,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x118a83[_0x49dfab]=this['editor']['data']['processor']['toData'](_0x30884a),this['editor']['data']['processor']['useFillerType']('default');}return _0x118a83;}async['getRevisionRootsAttributes'](_0x5b41b8){await this['_loadRevisionData'](_0x5b41b8);const _0x3bd129={};for(const _0x2ecc9c in _0x5b41b8['diffData'])_0x5b41b8['diffData'][_0x2ecc9c]['attachChange']&&!_0x5b41b8['diffData'][_0x2ecc9c]['attachChange']['isAttached']||(_0x3bd129[_0x2ecc9c]=_0x5b41b8['diffData'][_0x2ecc9c]['attributesAfter']||{});return _0x3bd129;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2fdc30=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x21a4fe=0x0;_0x21a4fe<_0x2fdc30['length'];_0x21a4fe++){const _0x2340bd=_0x2fdc30[_0x21a4fe];let _0x4b80e5=!0x1;for(const _0x4e4fd6 of Object['keys'](_0x2340bd))void 0x0===_0x2340bd[_0x4e4fd6]?delete _0x2340bd[_0x4e4fd6]:'id'!==_0x4e4fd6&&(_0x4b80e5=!0x0);_0x4b80e5||(_0x2fdc30[_0x21a4fe]=null);}if(_0x2fdc30=_0x2fdc30['filter'](_0x365960=>null!==_0x365960),!_0x2fdc30['length'])return;for(let _0x5add3f=0x0;_0x5add3f<_0x2fdc30['length'];_0x5add3f++){const _0x11eda7=_0x2fdc30[_0x5add3f];void 0x0!==_0x11eda7['fromVersion']&&void 0x0===_0x11eda7['toVersion']&&(_0x11eda7['toVersion']=this['repository']['getRevision'](_0x11eda7['id'])['toVersion']),void 0x0!==_0x11eda7['toVersion']&&void 0x0===_0x11eda7['fromVersion']&&(_0x11eda7['fromVersion']=this['repository']['getRevision'](_0x11eda7['id'])['fromVersion']);}const _0x438cc9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2fdc30,_0x438cc9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x47769e=>{if(_0x47769e){for(const _0x503db3 of _0x47769e)this['setRevisionData']({'id':_0x503db3['id'],'createdAt':_0x503db3['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xf1e450,_0x51d753){let _0x4f8862=this['editor']['config']['get']('initialData'),_0x850ba6=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4f8862){_0x4f8862={};for(const _0x209444 of this['editor']['model']['document']['getRootNames']())_0x4f8862[_0x209444]='';}if('string'==typeof _0x4f8862&&(_0x4f8862={'main':_0x4f8862}),void 0x0===_0x850ba6){_0x850ba6={};for(const _0x563fb7 of this['editor']['model']['document']['getRootNames']())_0x850ba6[_0x563fb7]={};}let _0x59bb30=!0x1;const _0x5e49b0=Object['keys'](_0x4f8862),_0x20fde3=Object['keys'](_0xf1e450);for(const _0x4d92ae of _0x5e49b0){if(_0x4f8862[_0x4d92ae]!==_0xf1e450[_0x4d92ae]&&''!==_0x4f8862[_0x4d92ae]['trim']()){_0x59bb30=!0x0;break;}if(!_0x458fad(_0x850ba6[_0x4d92ae],_0x51d753[_0x4d92ae])&&Object['keys'](_0x850ba6[_0x4d92ae])['length']>0x0){_0x59bb30=!0x0;break;}}_0x59bb30||(_0x59bb30=_0x20fde3['some'](_0x22a10d=>!this['editor']['model']['document']['getRoot'](_0x22a10d))),_0x59bb30&&_0x1bfd1b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4f8862,'editorRootsAttributes':_0x850ba6,'revisionData':_0xf1e450,'revisionRootsAttributes':_0x51d753}),this['editor']['config']['set']('initialData',_0xf1e450),this['editor']['config']['set']('rootsAttributes',_0x51d753);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x24e7bb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x24e7bb['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x591134){const _0x13b347=this['repository']['getRevisions']();_0x13b347['reverse']();let _0x2604fe=0x0;for(;_0x2604fe<_0x13b347['length'];){const _0x1eba57=_0x13b347[_0x2604fe];if(_0x1eba57===this['currentRevision']){_0x2604fe++;continue;}if(_0x1eba57['id']===this['_initialRevisionId'])break;const _0x101dfc=_0x591134['toVersion']-_0x1eba57['toVersion']||_0x591134['fromVersion']-_0x1eba57['fromVersion'];if(_0x101dfc>0x0)break;if(_0x101dfc<0x0)_0x2604fe++;else{if(!_0x591134['creator']&&_0x1eba57['creator'])break;if(_0x1eba57['creator']||!_0x591134['creator']){if(_0x591134['createdAt']>_0x1eba57['createdAt'])break;_0x2604fe++;}else _0x2604fe++;}}return _0x2604fe;}['setRevisionData'](_0x240218){const _0x4da6e5=this['repository']['getRevision'](_0x240218['id']);if(_0x240218['createdAt']&&(_0x240218['createdAt']=new Date(_0x240218['createdAt'])),_0x240218['authorsIds']){const _0x4535be=this['editor']['plugins']['get']('Users');_0x240218['authors']=_0x240218['authorsIds']['map'](_0x948a57=>_0x4535be['getUser'](_0x948a57));}_0x4da6e5['_update'](_0x240218,!0x0);}['buildRevisionData']({revision:_0x2559c0=null,from:_0x409fae=null,to:_0xccb8c3=null}){_0x409fae=null!==_0x409fae?_0x409fae:_0x2559c0['fromVersion'],_0xccb8c3=null!==_0xccb8c3?_0xccb8c3:_0x2559c0['toVersion'];const _0x5f20bd=this['_revisionDataBuilder']['getData'](_0x409fae,_0xccb8c3),_0x45dc92={'diffData':_0x5f20bd['diffData'],'authorsIds':_0x5f20bd['authorsIds'],'fromVersion':_0x409fae,'toVersion':_0xccb8c3};if(!_0x2559c0||_0xccb8c3!==_0x2559c0['toVersion']){const _0x3d23b1=_0xccb8c3-0x1,_0x10a412=this['_source']['history']['getOperation'](_0x3d23b1);_0x45dc92['createdAt']=_0x10a412&&_0x10a412['createdAt']||new Date();}if(this['_loadedStateData']&&_0x409fae===this['_loadedStateData']['fromVersion']){for(const _0x15edc0 of this['_loadedStateData']['authors'])_0x45dc92['authorsIds']['includes'](_0x15edc0['id'])||_0x45dc92['authorsIds']['push'](_0x15edc0['id']);}return _0x45dc92;}['_loadRevisionData'](_0x5342c4){if(!_0x5342c4||_0x5342c4['diffData'])return Promise['resolve']();{const _0x4e8884=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4e8884,'revisionId':_0x5342c4['id']})['then'](_0x29ca76=>{_0x5342c4['diffData']=_0x29ca76['diffData'];});}}['_bufferUpdate'](_0x32efa5,_0x16cdef,_0x3c267f){if(this['_bufferedUpdates']['has'](_0x32efa5)){const _0x247109=this['_bufferedUpdates']['get'](_0x32efa5);_0x16cdef=_0x3c267f?{..._0x247109,..._0x16cdef}:{..._0x16cdef,..._0x247109};}this['_bufferedUpdates']['set'](_0x32efa5,_0x16cdef);}['_getFromVersion'](_0x274d4f){const _0x64ded8=this['repository']['getRevisions']();_0x64ded8['reverse'](),_0x64ded8['shift']();const _0x2a7ef8=_0x64ded8['find'](_0xe22ccc=>_0xe22ccc['toVersion']<=_0x274d4f)['toVersion'];return _0x2a7ef8<this['_startingVersion']?this['_startingVersion']:_0x2a7ef8;}['_createInitialRevision'](_0x58c30f){const _0x373216=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x373216)this['_initialRevisionId']=_0x373216['id'];else{const _0x1c8730=!this['editor']['model']['document']['roots']['find'](_0x5d0b52=>this['editor']['model']['hasContent'](_0x5d0b52)),_0x1cb019=this['editor']['plugins']['get']('Users')['me']['id'],_0x51e72e=m(this['editor']['locale'],_0x1c8730?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x58c30f,'to':_0x58c30f,'id':this['_initialRevisionId'],'name':_0x51e72e,'creatorId':_0x1cb019});}}['_createCurrentRevision'](_0x584879){const _0x5d6200=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5d6200),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x584879,'to':_0x584879,'id':_0x5d6200,'name':'','creatorId':null}));}['_makeRevision']({name:_0x41c633,from:_0x4cc3e8,to:_0x5863cd,creatorId:_0xcf78fc,id:_0x22a267}){const _0x1e598d=this['buildRevisionData']({'from':_0x4cc3e8,'to':_0x5863cd});_0x1e598d['name']=_0x41c633,_0x1e598d['creatorId']=_0xcf78fc,_0x1e598d['id']=_0x22a267;const _0x3aa6b2=this['addRevisionData'](_0x1e598d);return this['adapter']&&this['_bufferUpdate'](_0x1e598d['id'],_0x1e598d,!0x0),_0x3aa6b2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x33b77d){return(_0x33b77d=_0x33b77d['filter'](_0x8ac7e2=>!_0x8ac7e2['name']||'revision-start'!==_0x8ac7e2['name']&&'revision-end'!==_0x8ac7e2['name']))['forEach'](_0x3b7b07=>{'string'!=typeof _0x3b7b07&&(_0x3b7b07['children']=this['_removeRevisionMarkers'](_0x3b7b07['children']),_0x3b7b07['attributes']=_0x3b7b07['attributes']['filter'](_0x338694=>!_0x338694[0x0]['startsWith']('data-revision-')));}),_0x33b77d;}}function C(_0x4adce8,_0x330795){const _0x29479f=_0x330795['editing']['view']['document'];if('string'==typeof _0x4adce8)return new _0x20e0cf(_0x29479f,_0x4adce8);{const _0x5f1af5=_0x4adce8['children']['map'](_0x16656b=>C(_0x16656b,_0x330795));return new(P[_0x4adce8['type']]||_0x2516e6)(_0x29479f,_0x4adce8['name'],_0x4adce8['attributes'],_0x5f1af5);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x136c09){this['editor']=_0x136c09,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'](_0x1d6484){this['source']=_0x1d6484;const _0x4815e6=new Map(),_0x3b66b8=new Map(),_0x1b32ec=this['editor']['model']['document']['roots']['map'](_0x4b1d7f=>_0x4b1d7f['rootName']);for(const _0x40bdd9 of _0x1b32ec){const _0x211404=this['editor']['model']['document']['getRoot'](_0x40bdd9),_0x3bbe0d=T(_0x211404);_0x4815e6['set'](_0x40bdd9,_0x3bbe0d),_0x3b66b8['set'](_0x40bdd9,Object['fromEntries'](_0x211404['getAttributes']()));}const _0x475fdf=Array['from'](this['editor']['model']['markers'])['map'](_0x29a823=>[_0x29a823['name'],_0x29a823['getRange']()]),_0x29d9c5=this['source']['version'];this['_saveMetaData'](_0x29d9c5,_0x4815e6,_0x475fdf,_0x3b66b8),this['_startingRevisionId']=this['_revisionId'];const _0x3914d9=new Map(),_0x5b536a=new Map();for(const _0x489c11 of _0x1b32ec){const _0x33f3da=F(_0x489c11);_0x3914d9['set'](_0x489c11,_0x33f3da),_0x5b536a['set'](_0x489c11,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3914d9,[],_0x5b536a);}['getData'](_0x32a7c6,_0x3560b8){if(this['_lastFrom']===_0x32a7c6&&this['_lastTo']<=_0x3560b8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3560b8,!0x0);else{if(!this['_savedMetaData']['has'](_0x32a7c6)){const _0x43b729=this['_getPreviousFrom'](_0x32a7c6);this['_calculateMetaData'](_0x43b729,_0x32a7c6,!0x1);}this['_calculateMetaData'](_0x32a7c6,_0x3560b8,!0x0);}return this['_lastFrom']=_0x32a7c6,this['_lastTo']=_0x3560b8,this['_getState']();}['loadState'](_0x4c56f7){this['_reset'](),this['_lastFrom']=_0x4c56f7['fromVersion'],this['_lastTo']=_0x4c56f7['toVersion'];for(const _0x162597 in _0x4c56f7['diffData']){const _0x4d54c3=_0x4c56f7['diffData'][_0x162597]['attachChange'],_0x2d6826=_0x100481(_0x4c56f7['diffData'][_0x162597]['attributesBefore'])||{},_0x506879=this['_makeModelFromViewString'](_0x4c56f7['diffData'][_0x162597]['deletions']);_0x506879['rootName']=_0x162597,_0x506879['_isAttached']=!_0x4d54c3||!_0x4d54c3['isAttached'],_0x506879['isAttached']=()=>_0x506879['_isAttached'],this['_baseRoots']['set'](_0x162597,_0x506879),this['_baseRootsAttributes']['set'](_0x162597,_0x2d6826),_0x4d54c3&&this['_touchedRoots']['set'](_0x162597,_0x4d54c3);const _0x3104ab=this['_makeIdsRoot'](_0x506879);this['_baseIdsRoots']['set'](_0x162597,_0x3104ab);for(const [_0x529505,_0x43b9b3]of _0x506879['markers']){if(!_0x529505['startsWith']('revision:'))continue;const _0x2a30dc=_0x529505['split'](':')[0x2];for(const _0xa13fa3 of _0x43b9b3['getWalker']({'singleCharacters':!0x0})){const _0x3eb193=this['_getVidAttributeName'](_0xa13fa3),_0x1620fa='elementEnd'==_0xa13fa3['type']?_0xa13fa3['previousPosition']['path']['slice'](0x0,-0x1):_0xa13fa3['previousPosition']['path'],_0x250d17=_0x3104ab['getNodeByPath'](_0x1620fa)['getAttribute'](_0x3eb193);this['_touched']['set'](_0x250d17,{'userId':_0x2a30dc});}}}this['_startingRevisionId']=this['_revisionId'];const _0x41a9bb=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xfb88ff=>!this['_touched']['has'](_0xfb88ff));let _0x179cbc=0x0;const _0xae4a45=new Map();for(const _0x57bd49 in _0x4c56f7['diffData']){const _0x5b5102=_0x4c56f7['diffData'][_0x57bd49]['attachChange'],_0x171ecc=_0x100481(_0x4c56f7['diffData'][_0x57bd49]['attributesAfter'])||{},_0x1cae05=this['_makeModelFromViewString'](_0x4c56f7['diffData'][_0x57bd49]['insertions']);_0x1cae05['rootName']=_0x57bd49,_0x1cae05['_isAttached']=!_0x5b5102||_0x5b5102['isAttached'],_0x1cae05['isAttached']=()=>_0x1cae05['_isAttached'],this['_diffRoots']['set'](_0x57bd49,_0x1cae05),this['_diffRootsAttributes']['set'](_0x57bd49,_0x171ecc);const _0x4d3a07=this['_makeIdsRoot'](_0x1cae05,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x57bd49,_0x4d3a07),_0xae4a45['set'](_0x57bd49,_0x1cae05['isAttached']()?_0x171ecc:{});for(const [_0x5bdd6c,_0x3faad5]of _0x1cae05['markers']){if(!_0x5bdd6c['startsWith']('revision:'))continue;const _0x2b0417=_0x5bdd6c['split'](':')[0x2];for(const _0x33992 of _0x3faad5['getWalker']({'singleCharacters':!0x0})){const _0x24514f=this['_getVidAttributeName'](_0x33992),_0x5bff47=this['_revisionId']++,_0x33294e='elementEnd'==_0x33992['type']?_0x33992['previousPosition']['path']['slice'](0x0,-0x1):_0x33992['previousPosition']['path'];_0x4d3a07['getNodeByPath'](_0x33294e)['_setAttribute'](_0x24514f,_0x5bff47),this['_touched']['set'](_0x5bff47,{'userId':_0x2b0417});}}for(const _0x2c1712 of this['editor']['model']['createRangeIn'](_0x1cae05)['getWalker']({'singleCharacters':!0x0})){const _0x3100e0=this['_getVidAttributeName'](_0x2c1712),_0x4c3f46='elementEnd'==_0x2c1712['type']?_0x2c1712['previousPosition']['path']['slice'](0x0,-0x1):_0x2c1712['previousPosition']['path'],_0x3eeba4=_0x4d3a07['getNodeByPath'](_0x4c3f46);_0x3eeba4['getAttribute'](_0x3100e0)>0x0||_0x3eeba4['_setAttribute'](_0x3100e0,_0x41a9bb[_0x179cbc++]);}for(const [_0x3c13ab,_0x24b439]of _0x1cae05['markers'])_0x3c13ab['startsWith']('revision:')||this['_markers']['set'](_0x3c13ab,_0x24b439);}const _0x18bab2=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x18bab2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x18bab2,0x1));const _0x3c53b2=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3c53b2),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c53b2,0x1));const _0x573150=Array['from'](this['_diffRoots'])['map'](([_0x48dca2,_0x1eda64])=>[_0x48dca2,T(_0x1eda64)]);this['_saveMetaData'](this['_lastTo'],_0x573150,this['_markers'],_0xae4a45);}['_makeModelFromViewString'](_0x1994c8){const _0x6c5ac1=JSON['parse'](_0x1994c8),_0x1de382=this['editor']['editing']['view']['document'],_0x2d2566=new _0x401b7e(_0x1de382,_0x6c5ac1['map'](_0x541eb0=>C(_0x541eb0,this['editor'])));return this['editor']['data']['toModel'](_0x2d2566);}['_saveMetaData'](_0x511045,_0x5e4da7,_0x51a9fa,_0x335bf6){const _0x4ba9d5=new Map(_0x5e4da7),_0x39b71b=new Map(_0x100481(_0x335bf6)),_0x565322=new Map();for(const [_0x3ad79d,_0x25e0d8]of _0x51a9fa)_0x565322['set'](_0x3ad79d,{'start':_0x25e0d8['start']['clone'](),'end':_0x25e0d8['end']['clone'](),'rootName':_0x25e0d8['root']['rootName']});this['_savedMetaData']['set'](_0x511045,{'roots':_0x4ba9d5,'markers':_0x565322,'rootsAttributes':_0x39b71b});}['_removeMetaData'](_0x467c08){this['_savedMetaData']['delete'](_0x467c08);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x56f105,_0x30796e=null){let _0x413bb=null;_0x56f105['is']('documentFragment')||(_0x413bb=new ft(_0x56f105['name'],{'vid_start':null===_0x30796e?this['_revisionId']++:_0x30796e++}));const _0x29fd93=[];for(const _0x5bc11a of _0x56f105['getChildren']())if(_0x5bc11a['is']('element')){_0x29fd93['push'](this['_makeIdsRoot'](_0x5bc11a,_0x30796e));const _0x13517e=_0x29fd93[_0x29fd93['length']-0x1];null!==_0x30796e&&(_0x30796e=_0x13517e['is']('element','$text')?_0x13517e['getAttribute']('vid')+0x1:_0x13517e['getAttribute']('vid_end')+0x1);}else{for(let _0x3fb736=0x0;_0x3fb736<_0x5bc11a['offsetSize'];_0x3fb736++)_0x29fd93['push'](new ft('$text',{'vid':null===_0x30796e?this['_revisionId']++:_0x30796e++}));}if(_0x56f105['is']('documentFragment')){const _0x5a621d=F(_0x56f105['rootName']);return _0x5a621d['_insertChild'](0x0,_0x29fd93),_0x5a621d;}return _0x413bb['_setAttribute']('vid_end',null===_0x30796e?this['_revisionId']++:_0x30796e++),_0x413bb['_insertChild'](0x0,_0x29fd93),_0x413bb;}['_calculateMetaData'](_0x51f1ca,_0xa0ae18,_0x4cda47){this['_reset']();const {roots:_0x2f1e8b,markers:_0x188fe6,rootsAttributes:_0x184ab3}=this['_savedMetaData']['get'](_0x51f1ca);this['_baseRoots']=new Map(_0x2f1e8b),this['_baseRootsAttributes']=new Map(_0x100481(_0x184ab3));for(const [_0x301a9b,_0x5cbf76]of this['_baseRoots'])if('$graveyard'!==_0x301a9b&&(this['_diffRoots']['set'](_0x301a9b,T(_0x5cbf76)),this['_diffRootsAttributes']=new Map(_0x100481(_0x184ab3)),_0x4cda47)){const _0x3084d5=this['_revisionId'];this['_idsRoots']['set'](_0x301a9b,this['_makeIdsRoot'](_0x5cbf76)),this['_baseIdsRoots']['set'](_0x301a9b,this['_makeIdsRoot'](_0x5cbf76,_0x3084d5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4cda47&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5d5cc0,_0x222cce]of _0x188fe6){const _0x19c84b=this['_baseRoots']['get'](_0x222cce['rootName']),_0x6566a9=this['_diffRoots']['get'](_0x222cce['rootName']),_0x323753=new vt(this['_fixPosition'](_0x222cce['start'],_0x19c84b),this['_fixPosition'](_0x222cce['end'],_0x19c84b)),_0x53e484=this['_fixRange'](_0x323753,_0x6566a9);_0x19c84b['markers']['set'](_0x5d5cc0,_0x323753),this['_markers']['set'](_0x5d5cc0,_0x53e484);}this['_applyOperations'](_0x51f1ca,_0xa0ae18,_0x4cda47);}['_applyOperations'](_0xc99123,_0x28f147,_0x239090){for(const _0x1a50d0 of this['source']['getOperations'](_0xc99123,_0x28f147))this['_handleOperation'](_0x1a50d0,_0x239090);for(const _0x47d8f3 of this['_diffRoots']['values']())_0x47d8f3['markers']['clear']();for(const [_0x37c803,_0x4ac571]of this['_markers']){this['_diffRoots']['get'](_0x4ac571['root']['rootName'])['markers']['set'](_0x37c803,_0x4ac571['clone']());}const _0x1078b1=new Map(),_0x5619b6=new Map();for(const [_0x2165eb,_0x109507]of this['_diffRoots'])_0x1078b1['set'](_0x2165eb,T(_0x109507)),_0x5619b6['set'](_0x2165eb,this['_diffRootsAttributes']['get'](_0x2165eb));this['_saveMetaData'](_0x28f147,_0x1078b1,this['_markers'],_0x5619b6);}['_getPreviousFrom'](_0x6d26ff){const _0x46ce1e=Array['from'](this['_savedMetaData']['keys']());_0x46ce1e['sort']((_0x2db988,_0x2e87d7)=>_0x2db988-_0x2e87d7),_0x46ce1e['reverse']();for(const _0x4e6c0d of _0x46ce1e)if(_0x4e6c0d<_0x6d26ff)return _0x4e6c0d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x50dc9a,_0x440330){const _0x2ab5a6=Array['from'](_0x440330['markers'])['map'](([_0x23ee03,_0x455f7c])=>[_0x23ee03,this['_fixRange'](_0x455f7c,_0x50dc9a)]);_0x50dc9a['markers']=new Map(_0x2ab5a6);}['_transformMarkers'](_0x3188d5){for(const _0x41e8d5 of this['_markers']['values']()){const _0x4cc14d=_0x41e8d5['getTransformedByOperation'](_0x3188d5),_0x50680e=vt['_createFromRanges'](_0x4cc14d);_0x41e8d5['start']=_0x50680e['start'],_0x41e8d5['end']=_0x50680e['end'];}}['_handleOperation'](_0x1a17ec,_0xfc5cf){if('addRoot'!=_0x1a17ec['type']&&'detachRoot'!=_0x1a17ec['type']){if('insert'==_0x1a17ec['type']){const _0x55b298=_0x1a17ec['position']['root']['rootName'];this['_diffRoots']['has'](_0x55b298)||(this['_diffRoots']['set'](_0x55b298,F(_0x55b298,!0x0)),this['_diffRootsAttributes']['set'](_0x55b298,{}),_0xfc5cf&&this['_idsRoots']['set'](_0x55b298,F(_0x55b298,!0x0)));}else{if('addRootAttribute'==_0x1a17ec['type']||'removeRootAttribute'==_0x1a17ec['type']||'changeRootAttribute'==_0x1a17ec['type'])return void this['_handleRootAttributeOperation'](_0x1a17ec);'marker'==_0x1a17ec['type']&&this['_handleMarkerOperation'](_0x1a17ec);}if('marker'!==_0x1a17ec['type']){const _0x1f76ec=this['_cloneOperation'](_0x1a17ec,this['_diffRoots']);_0x1f76ec['_execute'](),this['_transformMarkers'](_0x1f76ec);}if(_0xfc5cf)switch(_0x1a17ec['type']){case'insert':this['_handleInsertOperation'](_0x1a17ec);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1a17ec);break;case'merge':this['_handleMergeOperation'](_0x1a17ec);break;case'split':this['_handleSplitOperation'](_0x1a17ec);}}else this['_handleRootOperation'](_0x1a17ec,_0xfc5cf);}['_cloneOperation'](_0x476446,_0xa2a69f){const _0xe17f6=_0x476446['clone']();return _0xe17f6['_authorId']=_0x476446['_authorId'],this['_fixOperation'](_0xe17f6,_0xa2a69f),_0xe17f6;}['_getBaseVids'](_0x387bef){return _0x387bef['map'](_0x306c45=>{const _0x8e4f8b=this['_getVidAttributeName'](_0x306c45);return Number(_0x306c45['item']['getAttribute'](_0x8e4f8b));});}['_generateTape'](_0x41c753,_0x1fb6e5){if(_0x41c753['is']('element','$text'))_0x1fb6e5['push']({'item':_0x41c753,'type':'text'});else{_0x41c753['is']('element')&&_0x1fb6e5['push']({'item':_0x41c753,'type':'elementStart'});for(const _0x1e007d of _0x41c753['getChildren']())this['_generateTape'](_0x1e007d,_0x1fb6e5);_0x41c753['is']('element')&&_0x1fb6e5['push']({'item':_0x41c753,'type':'elementEnd'});}return _0x1fb6e5;}['_getState'](){const _0x5ce87a=new Map(this['_touched']),_0x3585fd=new Map(_0x5ce87a),_0x27af31=new Map(),_0x41b3c8={'insertions':{},'deletions':{}},_0x43da69={'insertions':{},'deletions':{}},_0x5266bd=new Map(),_0x564c0d=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x564c0d['delete']('$graveyard');for(const _0x15c35c of _0x564c0d){const _0x5e5f27=this['_diffRoots']['get'](_0x15c35c)||F(_0x15c35c,!0x1),_0x310f2a=this['_baseRoots']['get'](_0x15c35c)||F(_0x15c35c,!0x1);_0x5e5f27['isAttached']()||_0x310f2a['isAttached']()?(_0x41b3c8['insertions'][_0x15c35c]=T(_0x5e5f27),_0x41b3c8['deletions'][_0x15c35c]=T(_0x310f2a),this['_copyMarkers'](_0x41b3c8['deletions'][_0x15c35c],_0x310f2a),this['_copyMarkers'](_0x41b3c8['insertions'][_0x15c35c],_0x5e5f27),_0x43da69['insertions'][_0x15c35c]=this['_generateTape'](this['_idsRoots']['get'](_0x15c35c),[]),_0x43da69['deletions'][_0x15c35c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x15c35c)||F(_0x15c35c,!0x1),[])):_0x564c0d['delete'](_0x15c35c);}for(const _0x4b552a of _0x564c0d){const _0x32ddbb=_0x43da69['insertions'][_0x4b552a];for(const _0x557c9b of _0x32ddbb){const _0x4c1725=this['_getVidAttributeName'](_0x557c9b),_0x170f13=_0x557c9b['item']['getAttribute'](_0x4c1725);_0x3585fd['delete'](_0x170f13),_0x170f13>=this['_startingRevisionId']&&_0x27af31['set'](_0x170f13,_0x5ce87a['get'](_0x170f13));}}for(const _0xa9b7cf of _0x564c0d){const _0x1a79dc=_0x43da69['insertions'][_0xa9b7cf],_0x522198=this['_getBaseVids'](_0x43da69['deletions'][_0xa9b7cf]);let _0x29a68f=0x0;for(const _0x6861ac of _0x1a79dc){const _0xe8f0bb=this['_getVidAttributeName'](_0x6861ac),_0x5190dd=_0x6861ac['item']['getAttribute'](_0xe8f0bb);if(!_0x27af31['has'](_0x5190dd)&&!_0x5266bd['has'](_0x5190dd)){if(_0x3585fd['has'](_0x5190dd))_0x29a68f++;else{if(_0x5190dd!=_0x522198[_0x29a68f]){const _0x1e2b4e=_0x5ce87a['get'](_0x5190dd)||_0x5ce87a['get'](_0x522198[_0x29a68f]);for(;_0x5190dd!=_0x522198[_0x29a68f];)_0x3585fd['has'](_0x522198[_0x29a68f])||(_0x5266bd['set'](_0x522198[_0x29a68f],_0x1e2b4e),_0x5ce87a['set'](_0x522198[_0x29a68f],_0x1e2b4e)),_0x29a68f++;}_0x29a68f++;}}}}for(const _0x3ebc85 of _0x564c0d){const _0x5b67f6=_0x43da69['insertions'][_0x3ebc85];for(const _0x36f96c of _0x5b67f6){const _0x322acb=this['_getVidAttributeName'](_0x36f96c),_0xcf1e70=_0x36f96c['item']['getAttribute'](_0x322acb);if(_0x5266bd['has'](_0xcf1e70)){const _0x28f47d=_0x5266bd['get'](_0xcf1e70);_0x3585fd['has'](_0xcf1e70)||_0x3585fd['set'](_0xcf1e70,{..._0x28f47d}),_0x27af31['set'](_0xcf1e70,{..._0x28f47d});}}}for(const _0x440e82 of _0x3585fd['keys']())_0x440e82>=this['_startingRevisionId']&&_0x3585fd['delete'](_0x440e82);const _0x47bf57=new Map();for(const _0x4dbe43 of _0x564c0d){let _0x537b92=_0x43da69['insertions'][_0x4dbe43];for(const _0x2ccb8a of _0x537b92)if(_0x2ccb8a['item']['is']('element','tableCell')){const _0xe0fb47=this['_getVidAttributeName'](_0x2ccb8a),_0x28f45c=_0x2ccb8a['item']['getAttribute'](_0xe0fb47);if(_0x27af31['has'](_0x28f45c)){const _0x6cec7=_0x2ccb8a['item']['parent']['parent']['getAttribute']('vid_start'),_0x42e61b=_0x47bf57['get'](_0x6cec7)||new Set();_0x42e61b['add'](_0x27af31['get'](_0x28f45c)['userId']),_0x47bf57['set'](_0x6cec7,_0x42e61b);}}_0x537b92=_0x43da69['deletions'][_0x4dbe43];for(const _0xb0ac36 of _0x537b92)if(_0xb0ac36['item']['is']('element','tableCell')){const _0x1e3cbb=this['_getVidAttributeName'](_0xb0ac36),_0x4056f1=_0xb0ac36['item']['getAttribute'](_0x1e3cbb);if(_0x3585fd['has'](_0x4056f1)){const _0x201f3a=_0xb0ac36['item']['parent']['parent']['getAttribute']('vid_start'),_0x570ef6=_0x47bf57['get'](_0x201f3a)||new Set();_0x570ef6['add'](_0x3585fd['get'](_0x4056f1)['userId']),_0x47bf57['set'](_0x201f3a,_0x570ef6);}}for(const _0x370cc9 of _0x47bf57['keys']())(_0x27af31['has'](_0x370cc9)||_0x3585fd['has'](_0x370cc9))&&_0x47bf57['delete'](_0x370cc9);}for(const _0xdc2754 of _0x564c0d){const _0x2ef8c0=_0x43da69['insertions'][_0xdc2754];let _0x52d719=null,_0x4041ff=null;for(const _0x51ae0d of _0x2ef8c0){const _0x3c9042=this['_getVidAttributeName'](_0x51ae0d),_0x11183f=_0x51ae0d['item']['getAttribute'](_0x3c9042),_0x3c0d0b=_0x47bf57['get'](_0x11183f);_0x3c0d0b&&'elementStart'==_0x51ae0d['type']&&(_0x52d719=Array['from'](_0x3c0d0b)[0x0],_0x4041ff=_0x51ae0d['item']['getAttribute']('vid_end')),_0x52d719&&(_0x3585fd['set'](_0x11183f,{'userId':_0x52d719}),_0x27af31['set'](_0x11183f,{'userId':_0x52d719})),_0x11183f==_0x4041ff&&(_0x52d719=null,_0x4041ff=null);}}const _0x5daa0a={},_0x2a6154=new Set();for(const _0x175187 of _0x564c0d){const _0x194c39=_0x41b3c8['deletions'][_0x175187],_0x5a3f42=_0x41b3c8['insertions'][_0x175187];for(const {userId:_0x228ac6}of this['_touchedMarkers']['values']())null!==_0x228ac6&&_0x2a6154['add'](_0x228ac6);for(const {userId:_0x149385}of this['_touchedRoots']['values']())null!==_0x149385&&_0x2a6154['add'](_0x149385);this['_markChanges'](_0x5a3f42,_0x43da69['insertions'][_0x175187],_0x27af31,'insertion',_0x2a6154),this['_markChanges'](_0x194c39,_0x43da69['deletions'][_0x175187],_0x3585fd,'deletion',_0x2a6154),_0x5daa0a[_0x175187]={'insertions':this['_prepareViewToSave'](_0x5a3f42),'deletions':this['_prepareViewToSave'](_0x194c39),'attachChange':this['_touchedRoots']['get'](_0x175187)||null,'attributesBefore':_0x100481(this['_baseRootsAttributes']['get'](_0x175187))||{},'attributesAfter':_0x100481(this['_diffRootsAttributes']['get'](_0x175187))};}return{'diffData':_0x5daa0a,'authorsIds':Array['from'](_0x2a6154)};}['_processRootBeforeSave'](_0x308897){for(const [,_0x123d22]of _0x308897['markers']){const _0x310cc6=_0x123d22['start']['getAncestors']()['filter'](_0x53c2d6=>'tableCell'==_0x53c2d6['name']);for(const _0x1f903a of _0x310cc6)0x1==_0x1f903a['childCount']&&_0x1f903a['getChild'](0x0)['is']('element','paragraph')&&_0x1f903a['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x55d3b5){this['_processRootBeforeSave'](_0x55d3b5);const _0x5bfa9c=this['editor']['data']['toView'](_0x55d3b5,{}),_0x557b9b=Array['from'](_0x5bfa9c['getChildren']())['map'](_0x4c326e=>this['_getViewJson'](_0x4c326e));return JSON['stringify'](_0x557b9b);}['_getViewJson'](_0x3aac58){if(_0x3aac58['is']('$text'))return _0x3aac58['data'];{const _0x4593f2=_0x3aac58;return{'type':Object['keys'](P)['find'](_0x2c8f7d=>_0x3aac58 instanceof P[_0x2c8f7d]),'name':_0x4593f2['name'],'attributes':Array['from'](_0x4593f2['getAttributes']()),'children':Array['from'](_0x4593f2['getChildren']())['map'](_0x543a87=>this['_getViewJson'](_0x543a87))};}}['_markChanges'](_0xbdb68f,_0x247884,_0x4469bd,_0x21d600,_0x198ad5){let _0x47ad1a=null,_0xc9851b=null,_0x477e32=0x0;const _0x38a81f=this['editor']['model'];for(let _0x476283=0x0;_0x476283<_0x247884['length'];_0x476283++){const _0x57e03a=this['_getVidAttributeName'](_0x247884[_0x476283]),_0x5e3a8e=_0x247884[_0x476283]['item']['getAttribute'](_0x57e03a),_0x4e5a59=_0x4469bd['get'](_0x5e3a8e),_0x4f1728=_0x476283==_0x247884['length']-0x1;(!_0x47ad1a&&_0x4e5a59&&(_0x47ad1a=_0x4e5a59,_0xc9851b=_0x247884[_0x476283]),_0x47ad1a&&(!_0x4e5a59||_0x4e5a59['userId']!=_0x47ad1a['userId']))&&(_0x54de17(_0x4e5a59,B(_0xc9851b,_0xbdb68f,_0x38a81f),B(_0x247884[_0x476283],_0xbdb68f,_0x38a81f)),_0x47ad1a=_0x4e5a59||null,_0xc9851b=_0x4e5a59?_0x247884[_0x476283]:null),_0x47ad1a&&_0x4f1728&&_0x54de17(_0x4e5a59,B(_0xc9851b,_0xbdb68f,_0x38a81f),J(_0x247884[_0x476283],_0xbdb68f,_0x38a81f));}function _0x54de17(_0x5e11cc,_0x4563d3,_0x1468b9){const _0xafe6c8=_0x47ad1a['userId'],_0x3a069d='revision:'+_0x21d600+':'+_0xafe6c8+':'+_0x477e32++,_0x2c8ef2=_0x38a81f['createRange'](_0x4563d3,_0x1468b9);_0xbdb68f['markers']['set'](_0x3a069d,_0x2c8ef2),null!==_0xafe6c8&&_0x198ad5['add'](_0xafe6c8);}}['_getVidAttributeName'](_0x119740){switch(_0x119740['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x3c264d,_0x3c577d){_0x3c264d['baseVersion']=null;for(const _0x3476f8 in _0x3c264d){const _0x2f1a97=_0x3c264d[_0x3476f8];if(_0x2f1a97 instanceof gt){const _0x2b04ff=_0x3c577d['get'](_0x2f1a97['root']['rootName']);_0x3c264d[_0x3476f8]=this['_fixPosition'](_0x2f1a97,_0x2b04ff);}if(_0x2f1a97 instanceof vt){const _0x31aa4e=_0x3c577d['get'](_0x2f1a97['root']['rootName']);_0x3c264d[_0x3476f8]=this['_fixRange'](_0x2f1a97,_0x31aa4e);}'root'===_0x3476f8&&(_0x3c264d['root']=_0x3c577d['get'](_0x3c264d['root']['rootName']));}}['_fixRange'](_0x463e30,_0x339a49){return this['editor']['model']['createRange'](this['_fixPosition'](_0x463e30['start'],_0x339a49),this['_fixPosition'](_0x463e30['end'],_0x339a49));}['_fixPosition'](_0x212a08,_0x42afa5){return this['editor']['model']['createPositionFromPath'](_0x42afa5,_0x212a08['path'],_0x212a08['stickiness']);}['_handleInsertOperation'](_0x4b4170){const _0x2efe14=this['_idsRoots']['get'](_0x4b4170['position']['root']['rootName']),_0x1f1811=this['_fixPosition'](_0x4b4170['position'],_0x2efe14),_0x40f7a2=null===_0x4b4170['_authorId']?null:_0x4b4170['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x20448c=_0x1f1811['parent'],_0x358ff5=this['_revisionId'],_0x278aa0=[];for(const _0x5689ab of _0x4b4170['nodes'])if(_0x5689ab['is']('element'))_0x278aa0['push'](this['_makeIdsRoot'](_0x5689ab));else{for(let _0x396a8b=0x0;_0x396a8b<_0x5689ab['offsetSize'];_0x396a8b++)_0x278aa0['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x242ce8=this['_revisionId'];for(let _0x39f525=_0x358ff5;_0x39f525<_0x242ce8;_0x39f525++)this['_touched']['set'](_0x39f525,{'userId':_0x40f7a2});_0x20448c['_insertChild'](_0x1f1811['offset'],_0x278aa0);}['_handleMoveOperation'](_0x5de280){(_0x5de280=this['_cloneOperation'](_0x5de280,this['_idsRoots']))['_execute']();const _0x19fc40=null===_0x5de280['_authorId']?null:_0x5de280['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x535fd2=_0x5de280['getMovedRangeStart'](),_0x5af414=_0x535fd2['parent'],_0x1f2f9b=_0x535fd2['offset'];!function _0x20aee7(_0x37aab4,_0x1613f3,_0x4b1f14,_0x2490ba){for(let _0x623fb7=_0x4b1f14;_0x623fb7<_0x2490ba;_0x623fb7++){const _0x23ddab=_0x1613f3['getChild'](_0x623fb7);_0x23ddab['is']('element','$text')?_0x37aab4['set'](_0x23ddab['getAttribute']('vid'),{'userId':_0x19fc40}):(_0x37aab4['set'](_0x23ddab['getAttribute']('vid_start'),{'userId':_0x19fc40}),_0x20aee7(_0x37aab4,_0x23ddab,0x0,_0x23ddab['childCount']),_0x37aab4['set'](_0x23ddab['getAttribute']('vid_end'),{'userId':_0x19fc40}));}}(this['_touched'],_0x5af414,_0x1f2f9b,_0x1f2f9b+_0x5de280['howMany']);}['_handleMergeOperation'](_0x5dde30){const _0x1cb304=null===(_0x5dde30=this['_cloneOperation'](_0x5dde30,this['_idsRoots']))['_authorId']?null:_0x5dde30['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa5f5a7=_0x5dde30['targetPosition']['parent'],_0x14252e=_0x5dde30['sourcePosition']['parent'],_0x3170ec=_0xa5f5a7['getAttribute']('vid_end'),_0x2bf110=_0x14252e['getAttribute']('vid_start');_0xa5f5a7['_setAttribute']('vid_end',_0x14252e['getAttribute']('vid_end')),_0x14252e['_setAttribute']('vid_end',_0x3170ec),this['_touched']['set'](_0x2bf110,{'userId':_0x1cb304}),this['_touched']['set'](_0x3170ec,{'userId':_0x1cb304}),_0x5dde30['_execute']();}['_handleSplitOperation'](_0x4f2a61){const _0x49f005=null===(_0x4f2a61=this['_cloneOperation'](_0x4f2a61,this['_idsRoots']))['_authorId']?null:_0x4f2a61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ffa21=_0x4f2a61['graveyardPosition'],_0x3c4506=_0x4f2a61['splitPosition']['parent'];_0x4f2a61['_execute']();const _0x16466f=_0x3c4506['getAttribute']('vid_end'),_0x4c0606=_0x4f2a61['insertionPosition']['nodeAfter'];if(_0x3ffa21){const _0x8377a9=_0x4c0606['getAttribute']('vid_end'),_0x419750=_0x3c4506['getAttribute']('vid_end');_0x3c4506['_setAttribute']('vid_end',_0x8377a9),_0x4c0606['_setAttribute']('vid_end',_0x419750),this['_touched']['set'](_0x3c4506['getAttribute']('vid_end'),{'userId':_0x49f005}),this['_touched']['set'](_0x4c0606['getAttribute']('vid_start'),{'userId':_0x49f005});}else{const _0x568db8=this['_revisionId']++,_0x490dbc=this['_revisionId']++;_0x3c4506['_setAttribute']('vid_end',_0x568db8),_0x4c0606['_setAttribute']('vid_start',_0x490dbc),_0x4c0606['_setAttribute']('vid_end',_0x16466f),this['_touched']['set'](_0x568db8,{'userId':_0x49f005}),this['_touched']['set'](_0x490dbc,{'userId':_0x49f005});}}['_handleMarkerOperation'](_0x420877){if(!_0x420877['affectsData'])return;const _0x34ba6a=(_0x420877=this['_cloneOperation'](_0x420877,this['_diffRoots']))['oldRange']?_0x420877['oldRange']['root']:null,_0x42c8d0=_0x420877['newRange']?_0x420877['newRange']['root']:null;_0x34ba6a&&this['_markers']['delete'](_0x420877['name']),_0x42c8d0&&this['_markers']['set'](_0x420877['name'],_0x420877['newRange']['clone']());const _0x4704ab=null===_0x420877['_authorId']?null:_0x420877['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46cca9=_0x420877['name'];if(!this['_touchedMarkers']['has'](_0x46cca9))return void this['_touchedMarkers']['set'](_0x46cca9,{'range':_0x420877['oldRange'],'userId':_0x4704ab});const _0x5f301d=this['_touchedMarkers']['get'](_0x46cca9),_0x43f448=_0x5f301d['range'],_0x4e8e9d=_0x420877['newRange'];null==_0x43f448&&null==_0x4e8e9d||_0x43f448&&_0x4e8e9d&&_0x43f448['isEqual'](_0x4e8e9d)?this['_touchedMarkers']['delete'](_0x420877['name']):_0x5f301d['userId']=_0x4704ab;}['_handleRootOperation'](_0x136131,_0x55227c){this['_diffRoots']['has'](_0x136131['rootName'])?this['_diffRoots']['get'](_0x136131['rootName'])['_isAttached']=_0x136131['isAdd']:(this['_diffRoots']['set'](_0x136131['rootName'],F(_0x136131['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x136131['rootName'],{}),_0x55227c&&this['_idsRoots']['set'](_0x136131['rootName'],F(_0x136131['rootName'],!0x0)));const _0x623e15=null===_0x136131['_authorId']?null:_0x136131['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2796a9=this['_touchedRoots']['get'](_0x136131['rootName']);_0x2796a9&&_0x2796a9['userId']===_0x623e15?this['_touchedRoots']['delete'](_0x136131['rootName']):this['_touchedRoots']['set'](_0x136131['rootName'],{'userId':_0x623e15,'isAttached':_0x136131['isAdd']});}['_handleRootAttributeOperation'](_0x17f05f){const _0x58e162=this['_diffRootsAttributes']['get'](_0x17f05f['root']['rootName']);null===_0x17f05f['newValue']?delete _0x58e162[_0x17f05f['key']]:_0x58e162[_0x17f05f['key']]=_0x17f05f['newValue'];}}function T(_0x4cef95){const _0x14801e=F(_0x4cef95['rootName'],_0x4cef95['isAttached']());for(const _0x21cff6 of _0x4cef95['getChildren']()){const _0x5124f1=_0x21cff6['_clone'](!0x0);_0x14801e['_appendChild'](_0x5124f1);}return _0x14801e;}function F(_0x58fd35,_0x5b69bc=!0x0){const _0x1aac60=new mt();return _0x1aac60['rootName']=_0x58fd35,_0x1aac60['_isAttached']=_0x5b69bc,_0x1aac60['isAttached']=()=>_0x1aac60['_isAttached'],_0x1aac60;}function B(_0x1bd2a0,_0x5d5c5f,_0x3054e9){const _0x354ef2='elementEnd'==_0x1bd2a0['type']?_0x3054e9['createPositionAt'](_0x1bd2a0['item'],'end'):_0x3054e9['createPositionBefore'](_0x1bd2a0['item']);return _0x3054e9['createPositionFromPath'](_0x5d5c5f,_0x354ef2['path'],_0x354ef2['stickiness']);}function J(_0x1f9a9c,_0x4e0ba5,_0x41376c){const _0x52af21='elementStart'==_0x1f9a9c['type']?_0x41376c['createPositionAt'](_0x1f9a9c['item'],0x0):_0x41376c['createPositionAfter'](_0x1f9a9c['item']);return _0x41376c['createPositionFromPath'](_0x4e0ba5,_0x52af21['path'],_0x52af21['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x16bc13,_0x28be6b){super(_0x16bc13),this['focusTracker']=new _0x5b1edb(),this['keystrokes']=new _0x2bf539(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x28be6b),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5e44da(this);}['render'](){super['render'](),_0x38ae6b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x37abda=_0x5e60ba=>_0x5e60ba['stopPropagation']();this['keystrokes']['set']('arrowright',_0x37abda),this['keystrokes']['set']('arrowleft',_0x37abda),this['keystrokes']['set']('arrowup',_0x37abda),this['keystrokes']['set']('arrowdown',_0x37abda);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xe40682){this['revisionNameInputView']['fieldView']['element']['value']=_0xe40682['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1a0849){const _0x6dce36=new _0x31f44d(this['locale'],_0x22ab74),_0x8e45da=_0x6dce36['fieldView'];_0x8e45da['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5b0d21=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1a0849&&(_0x5b0d21+='\x20('+m(this['locale'],'optional')+')'),(_0x6dce36['label']=_0x5b0d21,_0x8e45da['on']('input',()=>{this['revisionNameInputValue']=_0x8e45da['element']['value']['trim']();}),_0x6dce36);}}class u extends _0x31326a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2fb3ec=this['editor'],_0x1f71c8=_0x2fb3ec['plugins']['get']('RevisionTracker');_0x2fb3ec['ui']['componentFactory']['add']('revisionHistory',_0xcc824b=>{const _0x13aa3a=_0x10173a(_0xcc824b),_0x128536=_0x13aa3a['panelView']['children'],_0x3e56a5=new _0x32ec06(_0xcc824b),_0x392c27=new _0x1c24fb(_0xcc824b),_0x3ce8f5=new te(_0xcc824b),_0x15657c=new _0x1c24fb(_0xcc824b),_0x38d9aa=new te(_0xcc824b);return _0x13aa3a['bind']('isEnabled')['to'](_0x1f71c8,'isReady',_0x1f71c8,'isEnabled',_0x2fb3ec,'isReadOnly',(_0x1256d5,_0x5c17ff,_0x2ad353)=>_0x1256d5&&_0x5c17ff&&!_0x2ad353),_0x13aa3a['buttonView']['set']({'icon':_0x57512f['history'],'label':m(_0xcc824b,'Revision\x20history'),'tooltip':!0x0}),_0x3ce8f5['set']({'label':m(_0xcc824b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3ce8f5['bind']('isEnabled')['to'](_0x1f71c8,'isReady',_0x1f71c8,'isEnabled',_0x2fb3ec,'isReadOnly',(_0x5a11f6,_0x4f8bb1,_0x4e579c)=>_0x5a11f6&&_0x4f8bb1&&!_0x4e579c),_0x3ce8f5['on']('execute',()=>this['_showDialog']()),_0x38d9aa['set']({'label':m(_0xcc824b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x38d9aa['bind']('isEnabled')['to'](_0x1f71c8,'isReady',_0x2fb3ec,'isReadOnly',(_0x37ae9e,_0x5aac95)=>_0x37ae9e&&!_0x5aac95),_0x38d9aa['on']('execute',()=>{_0x2fb3ec['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x13aa3a['isOpen']=!0x1,_0x2fb3ec['editing']['view']['focus']();}),_0x392c27['children']['add'](_0x3ce8f5),_0x15657c['children']['add'](_0x38d9aa),_0x3e56a5['role']='menu',_0x3e56a5['items']['addMany']([_0x392c27,_0x15657c]),_0x128536['add'](_0x3e56a5),_0x13aa3a;}),_0x2fb3ec['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5f3187=this['editor'],_0x3fb853=_0x5f3187['locale'],_0x28a382=new _0x13a10c(_0x3fb853),_0xad03dc=new _0x9b0c60(_0x3fb853);_0x28a382['buttonView']['set']({'icon':_0x57512f['history'],'label':m(_0x3fb853,'Revision\x20history')});const _0xdb2e42=new _0x10f968(_0x3fb853,_0x28a382),_0x4d5f9b=new _0x112fc5(_0x3fb853);_0x4d5f9b['set']({'label':m(_0x3fb853,'Save\x20current\x20revision')}),_0x4d5f9b['delegate']('execute')['to'](_0x28a382),_0x4d5f9b['on']('execute',()=>{this['_showDialog']();}),_0xdb2e42['children']['add'](_0x4d5f9b),_0xad03dc['items']['add'](_0xdb2e42);const _0x2d87a0=new _0x10f968(_0x3fb853,_0x28a382),_0x34351d=new _0x112fc5(_0x3fb853);return _0x34351d['set']({'label':m(_0x3fb853,'Open\x20revision\x20history')}),_0x34351d['delegate']('execute')['to'](_0x28a382),_0x34351d['on']('execute',()=>{_0x5f3187['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2d87a0['children']['add'](_0x34351d),_0xad03dc['items']['add'](_0x2d87a0),_0x28a382['panelView']['children']['add'](_0xad03dc),_0x28a382;}['_showDialog'](){const _0x447bd1=this['editor'],_0x343d36=_0x447bd1['locale'],_0xe4f298=_0x447bd1['plugins']['get']('Dialog'),_0x307dc3=_0x447bd1['plugins']['get']('RevisionTracker');function _0x185435(_0x517666){_0x447bd1['config']['get']('revisionHistory.requireRevisionName')&&''===_0x517666['revisionName']?_0x517666['revisionNameInputView']['errorText']=m(_0x343d36,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x447bd1['plugins']['get'](l)['saveRevision']({'name':_0x517666['revisionName']}),_0xe4f298['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x185435(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xe4f298['show']({'id':'revisionSave','title':m(_0x343d36,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x447bd1['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xe4f298['hide']()},{'label':m(_0x447bd1['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x702237){_0x702237['bind']('isEnabled')['to'](_0x307dc3,'isReady',_0x307dc3,'isEnabled',_0x447bd1,'isReadOnly',(_0x52041e,_0x20c47c,_0x3b990d)=>_0x52041e&&_0x20c47c&&!_0x3b990d);},'onExecute':()=>_0x185435(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x27d2ba=this['editor'],_0x3f5fd0=_0x27d2ba['locale'];this['_saveRevisionFormView']=new hs(_0x3f5fd0,_0x27d2ba['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x4af252,_0x4f2b6f){super(_0x4af252),this['_model']=_0x4f2b6f,this['changeId']=_0x4f2b6f['id'];const _0x2a27f1=this['bindTemplate'],_0x3cf620=m(_0x4af252,_0x4f2b6f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4f2b6f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4f2b6f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x2a27f1['to']('type',_0x2195c9=>'ck-revision-change__'+_0x2195c9)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3cf620}]},{'text':'\x20'+_0x4f2b6f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x383f40(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x549900){super(),this['id']=_0x549900['id']||_0x66ae84(),this['author']=_0x549900['author'],this['type']=_0x549900['type'],this['data']=_0x549900['data']||{},this['rootName']=_0x549900['rootName'],this['set']('createdAt',_0x549900['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x362083,_0x1c19e2){this['newRevisionId']=_0x362083,this['oldRevisionId']=_0x1c19e2,this['changes']=new _0x4367e2();}['_setChanges'](_0x4d868d){for(const _0xe1fb43 of _0x4d868d)this['changes']['add'](_0xe1fb43);}}const Y={'c':_0x455d52,'a':_0x17eac4,'e':_0x2b42de,'r':_0xcfd9dc,'u':_0x2e1c5d};class d extends _0x31326a{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x29bc02,_0x416265,j];}constructor(_0x3b9f8b){super(_0x3b9f8b),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5e34d0,_0xbc72e2,_0x28cce7)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x160474=>{for(const _0x4d5217 of this['editor']['editing']['view']['document']['roots'])_0x28cce7?_0x160474['removeClass']('ck-editor__editable__overlay',_0x4d5217):_0x160474['addClass']('ck-editor__editable__overlay',_0x4d5217);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x19ee6d=>null!==_0x19ee6d),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4567c2,_0xdd7849,_0xf1c8d0)=>_0x4567c2&&_0xf1c8d0?_0xdd7849['changes']['getIndex'](_0xf1c8d0):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x415e79,_0xfcf670)=>_0x415e79?_0xfcf670['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x416265);}['init'](){const _0x57dea6=this['editor'],_0x435379=new _t(_0x57dea6,{'direction':'backward'}),_0x285633=new _t(_0x57dea6,{'direction':'forward'});(_0x57dea6['commands']['add']('showPreviousChange',_0x435379),_0x57dea6['commands']['add']('showNextChange',_0x285633),_0x57dea6['commands']['add']('restoreRevision',new pt(_0x57dea6)),this['on']('change:numberOfChanges',()=>{_0x435379['refresh'](),_0x285633['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x57dea6['enableReadOnlyMode']('revision-viewer'),_0x57dea6['plugins']['has']('WidgetToolbarRepository'))&&_0x57dea6['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x321949){await this['loadRevisionData'](_0x321949);const _0xe94a67={};for(const _0x183440 in _0x321949['diffData']){if(_0x321949['diffData'][_0x183440]['attachChange']&&!_0x321949['diffData'][_0x183440]['attachChange']['isAttached'])continue;const _0x37ff5d=this['_removeRevisionMarkers'](JSON['parse'](_0x321949['diffData'][_0x183440]['insertions'])),_0x798d86=this['editor']['editing']['view']['document'],_0x3fec89=new _0x401b7e(_0x798d86,_0x37ff5d['map'](_0x558bb6=>this['_getViewObj'](_0x558bb6)));this['editor']['data']['processor']['useFillerType']('marked'),_0xe94a67[_0x183440]=this['editor']['data']['processor']['toData'](_0x3fec89),this['editor']['data']['processor']['useFillerType']('default');}return _0xe94a67;}async['getRevisionRootsAttributes'](_0x3b7905){await this['loadRevisionData'](_0x3b7905);const _0xe723c3={};for(const _0x129f77 in _0x3b7905['diffData'])_0x3b7905['diffData'][_0x129f77]['attachChange']&&!_0x3b7905['diffData'][_0x129f77]['attachChange']['isAttached']||(_0xe723c3[_0x129f77]=_0x3b7905['diffData'][_0x129f77]['attributesAfter']||{});return _0xe723c3;}['_removeRevisionMarkers'](_0x2e4936){return(_0x2e4936=_0x2e4936['filter'](_0x18158a=>!_0x18158a['name']||'revision-start'!==_0x18158a['name']&&'revision-end'!==_0x18158a['name']))['forEach'](_0x298564=>{'string'!=typeof _0x298564&&(_0x298564['children']=this['_removeRevisionMarkers'](_0x298564['children']),_0x298564['attributes']=_0x298564['attributes']['filter'](_0x26e677=>!_0x26e677[0x0]['startsWith']('data-revision-')));}),_0x2e4936;}async['compare'](_0x51f3e1,_0x249ead,_0xeffda8=!0x1){if(!this['isEnabled'])return;const _0x38d049=this['diff'],_0xe9fd43=this['repository'],_0x379399='string'==typeof _0x51f3e1?_0xe9fd43['getRevision'](_0x51f3e1):_0x51f3e1,_0x40b74e='string'==typeof _0x249ead?_0xe9fd43['getRevision'](_0x249ead):_0x249ead,_0x1a95e2=_0x379399['id'],_0x4c348e=_0x40b74e?_0x40b74e['id']:null;if(!_0xeffda8&&this['diff']&&this['diff']['newRevisionId']===_0x1a95e2&&this['diff']['oldRevisionId']===_0x4c348e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1a95e2,_0x4c348e);const _0x222efa=this['_getRevisionsRange'](_0x379399,_0x40b74e,!0x0)['map'](_0x3924b9=>this['loadRevisionData'](_0x3924b9));return _0x222efa['push'](new Promise(_0x3d3136=>{setTimeout(_0x3d3136,0x14);})),Promise['all'](_0x222efa)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0xde37f1=this['_getDiff'](_0x1a95e2,_0x4c348e);for(const _0x227032 of _0xde37f1['changes'])this['_changeIdToChange']['set'](_0x227032['id'],_0x227032);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5950cf=>{for(const _0x5f3872 of this['editor']['model']['document']['getRootNames']())_0x5950cf['detachRoot'](_0x5f3872);for(const _0xd7feab of Object['keys'](_0xde37f1['model'])){const _0x32609b=_0x5950cf['addRoot'](_0xd7feab);for(const _0x4a82c3 of Object['keys'](_0xde37f1['attributes'][_0xd7feab]))_0x5950cf['setAttribute'](_0x4a82c3,_0xde37f1['attributes'][_0xd7feab][_0x4a82c3],_0x32609b);_0x5950cf['insert'](_0xde37f1['model'][_0xd7feab],_0x32609b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0xde37f1['changes'])),this['isReady']=!0x0;})['catch'](_0x2091a5=>{console['error'](_0x2091a5),this['_cleanUp'](),_0x38d049&&(this['diff']=_0x38d049),this['isReady']=!0x0;});}['addRevisionData'](_0x1952d1,_0x37ab39){const _0x2e3294=this['repository']['createRevision'](_0x1952d1);return _0x2e3294['on']('_update',(_0x82c03c,_0x5353d7,_0x3e2cc3)=>_0x37ab39(_0x5353d7,_0x3e2cc3,_0x2e3294)),this['repository']['addRevision'](_0x2e3294),_0x2e3294;}['loadRevisionData'](_0x4c4d54){if(!_0x4c4d54||_0x4c4d54['diffData'])return Promise['resolve']();{const _0x172ffb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x172ffb,'revisionId':_0x4c4d54['id']})['then'](_0x122cce=>{_0x4c4d54['_update']({'diffData':_0x122cce['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xa88f6d=>{for(const _0x17a18c of this['editor']['model']['document']['getRootNames']())_0xa88f6d['detachRoot'](_0x17a18c);});}['_sortAndFilterDiffChanges'](_0x489e09){const _0x119ca3=[],_0x358aa4=new Map();for(const _0x40a04a of this['editor']['model']['document']['getRootNames']()){const _0x52a57d=this['editor']['editing']['view']['getDomRoot'](_0x40a04a);if(!_0x52a57d)continue;const _0x214941=_0x52a57d['getClientRects']()['item'](0x0);_0x214941&&(_0x119ca3['push'](_0x40a04a),_0x358aa4['set'](_0x40a04a,_0x214941));}return _0x119ca3['sort']((_0x4735eb,_0x24f31b)=>{const _0x4c2192=_0x358aa4['get'](_0x4735eb),_0x3628ee=_0x358aa4['get'](_0x24f31b);return _0x4c2192['y']-_0x3628ee['y']||_0x4c2192['x']-_0x3628ee['x'];}),(_0x489e09=_0x489e09['filter'](_0x55dffb=>_0x119ca3['includes'](_0x55dffb['rootName'])))['sort']((_0x46f53d,_0x2c7737)=>_0x119ca3['indexOf'](_0x46f53d['rootName'])-_0x119ca3['indexOf'](_0x2c7737['rootName'])),_0x489e09;}['_makeTape'](_0x3bcc02){const _0x2a9e34=Array['from'](_0x3bcc02['markers'])['filter'](([_0x46d98e,_0x267fb5])=>_0x46d98e['startsWith']('revision:')&&!_0x267fb5['isCollapsed']),_0xab9e3c=Array['from'](this['editor']['model']['createRangeIn'](_0x3bcc02)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2a9e34['length'])for(const _0x1a1b30 of _0xab9e3c){const [_0x14fe0c,_0x2c40b7]=_0x2a9e34[0x0],[,_0x2a2841,_0x849fdd]=_0x14fe0c['split'](':');if(_0x2c40b7['end']['isEqual'](_0x1a1b30['nextPosition'])&&_0x2a9e34['shift'](),(_0x1a1b30['previousPosition']['isEqual'](_0x2c40b7['start'])||_0x1a1b30['previousPosition']['isAfter'](_0x2c40b7['start']))&&('insertion'==_0x2a2841?_0x1a1b30['isAdded']={'userId':_0x849fdd}:'deletion'==_0x2a2841&&(_0x1a1b30['isRemoved']={'userId':_0x849fdd})),0x0==_0x2a9e34['length'])break;}return _0xab9e3c;}['_refreshStartEndIndex'](_0x135f11){const _0x14d5fc=new Map();for(let _0xeffc91=0x0;_0xeffc91<_0x135f11['length'];_0xeffc91++)'text'===_0x135f11[_0xeffc91]['type']?(_0x135f11[_0xeffc91]['item']['startIndex']=_0xeffc91,_0x135f11[_0xeffc91]['item']['endIndex']=_0xeffc91):('elementStart'===_0x135f11[_0xeffc91]['type']?_0x135f11[_0xeffc91]['item']['startIndex']=_0xeffc91:'elementEnd'===_0x135f11[_0xeffc91]['type']&&(_0x135f11[_0xeffc91]['item']['endIndex']=_0xeffc91),_0x14d5fc['set'](_0x135f11[_0xeffc91]['id'],_0xeffc91));for(const _0x4c75ca of _0x14d5fc['values']())'elementStart'===_0x135f11[_0x4c75ca]['type']?_0x135f11[_0x4c75ca]['item']['endIndex']=_0x14d5fc['get'](_0x135f11[_0x4c75ca]['pairId']):'elementEnd'===_0x135f11[_0x4c75ca]['type']&&(_0x135f11[_0x4c75ca]['item']['startIndex']=_0x14d5fc['get'](_0x135f11[_0x4c75ca]['pairId']));}['_processTape'](_0x2c8f9f){for(let _0xf19743=0x0;_0xf19743<_0x2c8f9f['length'];_0xf19743++){if('elementStart'===_0x2c8f9f[_0xf19743]['type'])_0x2c8f9f[_0xf19743]['item']['startIndex']=_0xf19743;else{if('elementEnd'===_0x2c8f9f[_0xf19743]['type']){_0x2c8f9f[_0xf19743]['item']['endIndex']=_0xf19743;const _0x2b40b9=_0x2c8f9f[_0xf19743]['item']['startIndex'];_0x2c8f9f[_0x2b40b9]['pairId']=_0x2c8f9f[_0xf19743]['id'],_0x2c8f9f[_0xf19743]['pairId']=_0x2c8f9f[_0x2b40b9]['id'];}else _0x2c8f9f[_0xf19743]['item']['startIndex']=_0xf19743,_0x2c8f9f[_0xf19743]['item']['endIndex']=_0xf19743,_0x2c8f9f[_0xf19743]['pairId']=null;}_0x2c8f9f[_0xf19743]['markersStart']||(_0x2c8f9f[_0xf19743]['markersStart']=[],_0x2c8f9f[_0xf19743]['markersEnd']=[]);}}['_markInsertions'](_0x551732,_0x4c4ea5){const _0x94d367=_0x551732['filter'](_0x38c890=>!_0x38c890['isAdded']);for(let _0x1597a8=0x0;_0x1597a8<_0x4c4ea5['length'];_0x1597a8++)_0x4c4ea5[_0x1597a8]['isAdded']&&(_0x94d367[_0x1597a8]['isAdded']=_0x4c4ea5[_0x1597a8]['isAdded']);}['_makeModelFromViewString'](_0xae8fa8){const _0x1f5d97=JSON['parse'](_0xae8fa8),_0x495eb7=this['editor']['editing']['view']['document'],_0x81129a=new _0x401b7e(_0x495eb7,_0x1f5d97['map'](_0x1f7545=>this['_getViewObj'](_0x1f7545)));return this['editor']['data']['toModel'](_0x81129a);}['_getViewObj'](_0x544c30){const _0x4ecfa2=this['editor']['editing']['view']['document'];if('string'==typeof _0x544c30)return new _0x20e0cf(_0x4ecfa2,_0x544c30);{const _0x827704=_0x544c30['children']['map'](_0xbc4baf=>this['_getViewObj'](_0xbc4baf));return new(Y[_0x544c30['type']]||_0x2516e6)(_0x4ecfa2,_0x544c30['name'],_0x544c30['attributes'],_0x827704);}}['_getDiff'](_0x142f94,_0x1a0c96=null){const _0xce5904=this['repository']['getRevision'](_0x142f94),_0x33be4b=_0x1a0c96?this['repository']['getRevision'](_0x1a0c96):null,_0x1a4912=this['_getRevisionsRange'](_0xce5904,_0x33be4b),_0x58a683=_0x1a4912[_0x1a4912['length']-0x1],_0x4af7d4=new Map(),_0xe12a2={'model':{},'attributes':{},'changes':[]},_0x2096bd=new Set(),_0x17220e=new Map();for(let _0x4161d1=_0x1a4912['length']-0x1;_0x4161d1>=0x0;_0x4161d1--){const _0x5c9442=_0x1a4912[_0x4161d1];for(const _0x3fbca6 of Object['keys'](_0x5c9442['diffData']))if(_0x5c9442['diffData'][_0x3fbca6]['attachChange']){const _0x37df47=_0x5c9442['diffData'][_0x3fbca6]['attachChange'];_0x37df47['isAttached']?(_0x2096bd['add'](_0x3fbca6),_0x17220e['has'](_0x3fbca6)&&_0x17220e['get'](_0x3fbca6)['userId']==_0x37df47['userId']?_0x17220e['delete'](_0x3fbca6):_0x17220e['set'](_0x3fbca6,_0x37df47)):_0x17220e['has'](_0x3fbca6)?(_0x2096bd['delete'](_0x3fbca6),_0x17220e['delete'](_0x3fbca6)):(_0x2096bd['add'](_0x3fbca6),_0x17220e['set'](_0x3fbca6,_0x37df47));}else _0x2096bd['add'](_0x3fbca6);}for(const _0x3592f1 of _0x2096bd){const _0x5b40b9=_0x17220e['has'](_0x3592f1)&&!_0x17220e['get'](_0x3592f1)['isAttached'];let _0x2e448a=_0x5b40b9?_0x1a4912['length']-0x1:0x0;const _0x5ac7c5=_0x5b40b9?-0x1:0x1;for(;_0x1a4912[_0x2e448a];){const _0xf5856e=_0x1a4912[_0x2e448a];if(_0xf5856e['diffData'][_0x3592f1]){const _0x199cb0=_0x5b40b9?_0xf5856e['diffData'][_0x3592f1]['attributesBefore']:_0xf5856e['diffData'][_0x3592f1]['attributesAfter'];_0xe12a2['attributes'][_0x3592f1]=_0x199cb0?_0x100481(_0x199cb0):{};break;}_0x2e448a+=_0x5ac7c5;}}for(const _0x49c4e0 of _0x1a4912){_0x49c4e0['model']={};for(const _0xc06e22 of _0x49c4e0['authors'])_0x4af7d4['set'](_0xc06e22['id'],_0xc06e22);for(const _0x28ee50 of _0x2096bd){const _0x25d596=_0x49c4e0['diffData'][_0x28ee50]?_0x49c4e0['diffData'][_0x28ee50]['insertions']:'[]',_0x28b5ce=_0x49c4e0['diffData'][_0x28ee50]?_0x49c4e0['diffData'][_0x28ee50]['deletions']:'[]';_0x49c4e0['model'][_0x28ee50]={'insertions':this['_makeModelFromViewString'](_0x25d596),'deletions':this['_makeModelFromViewString'](_0x28b5ce)};}}for(const _0x4b8429 of _0x2096bd){let _0x2b8300=null,_0x319c57=0x0;const _0x313d54=new Map(Array['from'](_0xce5904['model'][_0x4b8429]['insertions']['markers'])['filter'](([_0x385960])=>!_0x385960['startsWith']('revision:')));let _0x13967d=0x0;for(const _0x539a41 of _0x1a4912){const _0x2db2a0=this['_makeTape'](_0x539a41['model'][_0x4b8429]['insertions']);_0x539a41==_0xce5904?(_0x2b8300=_0x2db2a0,_0x319c57=_0x2b8300['length'],_0x2b8300['forEach'](_0x272a14=>{_0x272a14['id']=_0x13967d++;}),this['_processTape'](_0x2b8300)):this['_markInsertions'](_0x2b8300,_0x2db2a0);const _0x118dcf=_0x2b8300['filter'](_0x2c6228=>!_0x2c6228['isAdded'])['map'](_0x3e7081=>_0x3e7081['id']);let _0xa24051=0x0;const _0x26030c=this['_makeTape'](_0x539a41['model'][_0x4b8429]['deletions']);_0x26030c['forEach'](_0x105849=>{_0x105849['isRemoved']?_0x105849['id']=_0x319c57++:_0x105849['id']=_0x118dcf[_0xa24051++];}),this['_processTape'](_0x26030c),this['_setDistance'](_0x2b8300,'isAdded'),this['_setDistance'](_0x26030c,'isRemoved'),_0x539a41==_0xce5904&&this['_markMarkers'](_0x2b8300,_0x313d54),_0x2b8300=this['_joinTapes'](_0x2b8300,_0x26030c),this['_refreshStartEndIndex'](_0x2b8300),this['_setDistance'](_0x2b8300,'isRemoved');}_0x2b8300=_0x2b8300['filter'](_0x186c45=>!(_0x186c45['isAdded']&&_0x186c45['isRemoved']));const _0x53d48c=new Map(_0x58a683['model'][_0x4b8429]['deletions']['markers']),_0x54dbf3=new Set(_0x313d54['keys']());for(const _0x3022c7 of _0x53d48c['keys']())_0x54dbf3['delete'](_0x3022c7);this['_markSuggestions'](_0x2b8300,_0x54dbf3),this['_fixObsoleteTags'](_0x2b8300),_0x2b8300=this['_removeMissingPairs'](_0x2b8300),_0x2b8300=this['_markMismatchedRemovedTags'](_0x2b8300),_0x2b8300=this['_removeUnsupportedChanges'](_0x2b8300);const {root:_0x3f102e,changes:_0x3b7170}=this['_makeModelFromTape'](_0x2b8300,_0x4af7d4,_0x4b8429);_0xe12a2['model'][_0x4b8429]=_0x3f102e;const _0x4d335e=_0x17220e['get'](_0x4b8429);if(_0x4d335e){const _0x5bd35f=_0x4af7d4['get'](_0x4d335e['userId']),_0x40f84e=new r({'author':_0x5bd35f,'type':_0x4d335e['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4b8429});_0x3b7170['unshift'](_0x40f84e),_0xe12a2['attributes'][_0x4b8429]['revisionHistoryAttachChange']=_0x40f84e['id'];}_0xe12a2['changes']=_0xe12a2['changes']['concat'](_0x3b7170);}return _0xe12a2;}['_markMarkers'](_0x25cba3,_0x58e43f){for(let _0xb9565f=0x0;_0xb9565f<_0x25cba3['length'];_0xb9565f++)for(const [_0x47b948,_0x36de5d]of _0x58e43f)_0x36de5d['start']['isEqual'](_0x25cba3[_0xb9565f]['previousPosition'])&&_0x25cba3[_0xb9565f]['markersStart']['push'](_0x47b948),_0x36de5d['end']['isEqual'](_0x25cba3[_0xb9565f]['nextPosition'])&&_0x25cba3[_0xb9565f]['markersEnd']['push'](_0x47b948);}['_joinTapes'](_0x32b3eb,_0x51edb1){let _0x32ab1e=[],_0x25f26d=0x0,_0x187b01=0x0;for(;_0x25f26d<_0x32b3eb['length']||_0x187b01<_0x51edb1['length'];){const _0x179835=_0x32b3eb[_0x25f26d]||{},_0x306290=_0x51edb1[_0x187b01]||{};if(_0x179835['id']==_0x306290['id'])_0x25f26d++,_0x187b01++,_0x32ab1e['push'](_0x179835);else{if(_0x306290['isRemoved']&&_0x179835['isAdded']){const {commonTape:_0x3f6a62,iEnd:_0x2aef2b,jEnd:_0x2f5a93}=this['_threeWayMerge'](_0x32b3eb,_0x25f26d,_0x51edb1,_0x187b01);_0x32ab1e=_0x32ab1e['concat'](_0x3f6a62),_0x25f26d=_0x2aef2b,_0x187b01=_0x2f5a93;}else _0x306290['isRemoved']?(_0x187b01++,_0x32ab1e['push'](_0x306290)):(_0x25f26d++,_0x32ab1e['push'](_0x179835));}}return _0x32ab1e;}['_markSuggestions'](_0x54949e,_0x1e8b72){const _0x7ee0bd=[];for(let _0x59f19d=0x0;_0x59f19d<_0x54949e['length'];_0x59f19d++){for(let _0x5d42d7=0x0;_0x5d42d7<_0x54949e[_0x59f19d]['markersStart']['length'];_0x5d42d7++){const _0x295fde=_0x54949e[_0x59f19d]['markersStart'][_0x5d42d7];if(!_0x1e8b72['has'](_0x295fde))continue;const {group:_0x53dccf,type:_0x5ad3f8,authorId:_0x322aea}=_0x16a25a(_0x295fde);'revision-suggestion'!=_0x53dccf||'insertion'!=_0x5ad3f8&&'deletion'!=_0x5ad3f8||(_0x7ee0bd['unshift']({'type':_0x5ad3f8,'name':_0x295fde,'userId':_0x322aea}),_0x54949e[_0x59f19d]['markersStart']['splice'](_0x5d42d7,0x1),_0x5d42d7--);}_0x41b002(_0x54949e[_0x59f19d]);for(let _0x5801f2=0x0;_0x5801f2<_0x54949e[_0x59f19d]['markersEnd']['length'];_0x5801f2++){const _0x2101b8=_0x54949e[_0x59f19d]['markersEnd'][_0x5801f2];if(!_0x1e8b72['has'](_0x2101b8))continue;const {group:_0x2c901a,type:_0x49fe42}=_0x16a25a(_0x2101b8);if('revision-suggestion'!=_0x2c901a||'insertion'!=_0x49fe42&&'deletion'!=_0x49fe42)continue;_0x54949e[_0x59f19d]['markersEnd']['splice'](_0x5801f2,0x1),_0x5801f2--;const _0x1621e2=_0x7ee0bd['findIndex'](_0x3eee85=>_0x3eee85['name']==_0x2101b8);_0x1621e2>-0x1&&_0x7ee0bd['splice'](_0x1621e2,0x1);}}function _0x16a25a(_0x3ae246){const _0x5ea008=_0x3ae246['split'](':');return{'group':_0x5ea008[0x0],'type':_0x5ea008[0x1],'subType':_0x5ea008['length']>=0x5?_0x5ea008[0x2]:null,'id':_0x5ea008['length']<0x5?_0x5ea008[0x2]:_0x5ea008[0x3],'authorId':_0x5ea008['length']<0x5?_0x5ea008[0x3]:_0x5ea008[0x4],'markerCount':0x6==_0x5ea008['length']?_0x5ea008[0x5]:null};}function _0x41b002(_0x3e821e){for(let _0x1f14b3=0x0;_0x1f14b3<_0x7ee0bd['length'];_0x1f14b3++){if(_0x3e821e['isAdded']&&'insertion'==_0x7ee0bd[_0x1f14b3]['type'])return _0x3e821e['isAddSuggestion']=_0x7ee0bd[_0x1f14b3],void delete _0x3e821e['isAdded'];if(!_0x3e821e['isAdded']&&!_0x3e821e['isRemoved']&&'deletion'==_0x7ee0bd[_0x1f14b3]['type'])return void(_0x3e821e['isRemoveSuggestion']=_0x7ee0bd[_0x1f14b3]);}}}['_setDistance'](_0x2df603,_0x576817){let _0x67514d=0x0,_0x54725f=!0x1;const _0x3ba60e=new Map();for(const _0x279da0 of _0x2df603)_0x279da0[_0x576817]?_0x54725f&&(_0x67514d++,_0x54725f=!0x1):(_0x67514d++,_0x54725f=!0x0),_0x3ba60e['set'](_0x279da0['id'],_0x67514d);for(let _0x4fc2a3=0x0;_0x4fc2a3<_0x2df603['length'];_0x4fc2a3++){if('isRemoved'==_0x576817&&_0x2df603[_0x4fc2a3]['isAdded']||'isAdded'==_0x576817&&_0x2df603[_0x4fc2a3]['isRemoved'])continue;if('text'==_0x2df603[_0x4fc2a3]['type']){_0x2df603[_0x4fc2a3]['distance']=0x0;continue;}const _0x4b4b10=_0x3ba60e['get'](_0x2df603[_0x4fc2a3]['pairId']),_0x10acae=_0x3ba60e['get'](_0x2df603[_0x4fc2a3]['id']);_0x2df603[_0x4fc2a3]['distance']=_0x4b4b10-_0x10acae;}}['_getRevisionsRange'](_0x488eec,_0xe7abff,_0x13adfc=!0x1){const _0x63f049=[];let _0x5f5e8b=this['repository']['getIndex'](_0x488eec),_0x52e0be=this['repository']['getIndex'](_0xe7abff);for(-0x1==_0x52e0be&&(_0x52e0be=this['repository']['_revisions']['length'],_0x13adfc=!0x1);_0x5f5e8b<_0x52e0be;)_0x63f049['push'](this['repository']['getRevision'](_0x5f5e8b)),_0x5f5e8b++;return _0x13adfc&&_0x63f049['push'](this['repository']['getRevision'](_0x5f5e8b)),_0x63f049;}['_threeWayMerge'](_0x559f16,_0x20b314,_0x2d5995,_0x37d4b7){const _0x4d7a0f=this['editor']['model']['schema'];let _0x227f32=_0x20b314;for(;_0x559f16[_0x227f32]&&_0x559f16[_0x227f32]['isAdded'];)_0x227f32++;let _0x58022d=_0x37d4b7;for(;_0x2d5995[_0x58022d]&&_0x2d5995[_0x58022d]['isRemoved'];)_0x58022d++;_0x5ecd4c(_0x559f16,_0x20b314,_0x227f32),_0x5ecd4c(_0x2d5995,_0x37d4b7,_0x58022d);const _0x237139=_0x2d5995['slice'](_0x37d4b7,_0x58022d)['concat'](_0x559f16['slice'](_0x20b314,_0x227f32));return _0x237139['sort']((_0x37a2cc,_0x4e65b7)=>_0x37a2cc['side']!=_0x4e65b7['side']?_0x37a2cc['side']-_0x4e65b7['side']:_0x37a2cc['level']!=_0x4e65b7['level']?_0x37a2cc['level']-_0x4e65b7['level']:_0x37a2cc['distance']!=_0x4e65b7['distance']?_0x4e65b7['distance']-_0x37a2cc['distance']:!!_0x37a2cc['isAdded']!=!!_0x4e65b7['isAdded']?-0x1==_0x37a2cc['side']||0x0==_0x37a2cc['side']?_0x37a2cc['isAdded']?-0x1:0x1:_0x37a2cc['isAdded']?0x1:-0x1:_0x37a2cc['index']-_0x4e65b7['index']),{'commonTape':_0x237139,'iEnd':_0x227f32,'jEnd':_0x58022d};function _0x5ecd4c(_0x620edc,_0xdcd2,_0x4b4905){let _0x37f9bf=-0x1,_0x2cea96=Number['POSITIVE_INFINITY'],_0x35f862=!0x0;for(let _0x4adf32=_0xdcd2;_0x4adf32<_0x4b4905;_0x4adf32++)if(_0x4d7a0f['isInline'](_0x620edc[_0x4adf32]['item'])||(_0x35f862=!0x1),_0x620edc[_0x4adf32]['item']['startIndex']<_0xdcd2&&(_0x37f9bf=_0x4adf32),_0x620edc[_0x4adf32]['item']['endIndex']>=_0x4b4905){_0x2cea96=_0x4adf32;break;}_0x35f862&&(_0x37f9bf=_0x4b4905-0x1);for(let _0x1a0715=_0xdcd2;_0x1a0715<_0x4b4905;_0x1a0715++)_0x620edc[_0x1a0715]['side']=_0x1a0715<=_0x37f9bf?-0x1:_0x1a0715<_0x2cea96?0x0:0x1,_0x620edc[_0x1a0715]['index']=_0x1a0715;let _0x3cd745=0x0;for(let _0x56776c=_0xdcd2;_0x56776c<=_0x37f9bf;_0x56776c++)0x0==_0x620edc[_0x56776c]['distance']?_0x620edc[_0x56776c]['level']=_0x3cd745:(_0x3cd745++,_0x620edc[_0x56776c]['level']=_0x3cd745,_0x3cd745++);for(let _0x41d055=_0xdcd2;_0x41d055<_0x4b4905;_0x41d055++)0x0==_0x620edc[_0x41d055]['side']&&(_0x620edc[_0x41d055]['level']=_0x3cd745);_0x3cd745=0x0;for(let _0x340757=_0x4b4905-0x1;_0x340757>=_0x2cea96;_0x340757--)0x0==_0x620edc[_0x340757]['distance']?_0x620edc[_0x340757]['level']=_0x3cd745:(_0x3cd745--,_0x620edc[_0x340757]['level']=_0x3cd745,_0x3cd745--);}}['_fixObsoleteTags'](_0x5af043){const _0x289ba2=new Map(),_0x1f37d2=this['editor']['model']['schema'];for(let _0x29c59f=0x1;_0x29c59f<_0x5af043['length'];_0x29c59f++){let _0x1cf291,_0x25638e,_0x5557d5;const _0x478a62=_0x5af043[_0x29c59f],_0x3ebc31=_0x5af043[_0x29c59f-0x1];if('text'==_0x478a62['type'])continue;if(_0x478a62['type']!=_0x3ebc31['type'])continue;if(!_0x1f37d2['isBlock'](_0x3ebc31['item'])||_0x1f37d2['isLimit'](_0x3ebc31['item']))continue;if(!_0x1f37d2['isBlock'](_0x478a62['item'])||_0x1f37d2['isLimit'](_0x478a62['item']))continue;if((_0x5af043[_0x29c59f]['isAdded']||_0x5af043[_0x29c59f]['isAddSuggestion'])&&_0x5af043[_0x29c59f-0x1]['isRemoved'])_0x1cf291=_0x5af043[_0x29c59f],_0x25638e=_0x5af043[_0x29c59f-0x1],_0x5557d5=_0x29c59f-0x1;else{if(!_0x5af043[_0x29c59f]['isRemoved']||!_0x5af043[_0x29c59f-0x1]['isAdded']&&!_0x5af043[_0x29c59f-0x1]['isAddSuggestion'])continue;_0x1cf291=_0x5af043[_0x29c59f-0x1],_0x25638e=_0x5af043[_0x29c59f],_0x5557d5=_0x29c59f;}const _0x1d42c1=_0x1cf291['level']==_0x25638e['level'],_0x1db01c=Math['abs'](_0x1cf291['level'])<Math['abs'](_0x25638e['level'])&&0x0==_0x25638e['distance'];(_0x1d42c1||_0x1db01c)&&(_0x289ba2['set'](_0x25638e['id'],_0x1cf291['id']),_0x5af043['splice'](_0x5557d5,0x1),_0x29c59f--,_0x1cf291['isAdded']=!0x1);}for(let _0x5348a1=0x0;_0x5348a1<_0x5af043['length'];_0x5348a1++)_0x289ba2['has'](_0x5af043[_0x5348a1]['pairId'])&&(_0x5af043[_0x5348a1]['pairId']=_0x289ba2['get'](_0x5af043[_0x5348a1]['pairId']));}['_removeMissingPairs'](_0x463303){const _0x1dd758=new Set(_0x463303['map'](_0x554d00=>_0x554d00['id']));for(let _0x3480f8=0x0;_0x3480f8<_0x463303['length'];_0x3480f8++)_0x1dd758['has'](_0x463303[_0x3480f8]['pairId'])||0x0==_0x463303[_0x3480f8]['distance']||(_0x463303[_0x3480f8]['isIncorrect']=!0x0);return _0x463303['filter'](_0x5e5408=>!_0x5e5408['isIncorrect']);}['_markMismatchedRemovedTags'](_0x225cea){const _0x3699c1=new Set();for(let _0x156aa6=0x0;_0x156aa6<_0x225cea['length'];_0x156aa6++){if(_0x3699c1['has'](_0x225cea[_0x156aa6]['id'])&&_0x225cea[_0x156aa6]['isRemoved']&&(_0x225cea[_0x156aa6]['isIncorrect']=!0x0),_0x225cea[_0x156aa6]['isIncorrect'])continue;if(0x0==_0x225cea[_0x156aa6]['distance'])continue;if('elementStart'!=_0x225cea[_0x156aa6]['type'])continue;if(null==_0x225cea[_0x156aa6]['pairId'])continue;let _0x213689=_0x156aa6+0x1,_0x22bc91=0x0;for(;_0x225cea[_0x213689]['id']!=_0x225cea[_0x156aa6]['pairId'];)'elementStart'==_0x225cea[_0x213689]['type']?_0x22bc91++:'elementEnd'==_0x225cea[_0x213689]['type']&&_0x22bc91--,_0x213689++;if(0x0!=_0x22bc91){if(_0x225cea[_0x156aa6]['isRemoved'])_0x225cea[_0x156aa6]['isIncorrect']=!0x0;else{for(;_0x213689!=_0x156aa6;)_0x225cea[_0x213689]['isRemoved']&&0x0!=_0x225cea[_0x213689]['distance']&&(_0x225cea[_0x213689]['isIncorrect']=!0x0,_0x3699c1['add'](_0x225cea[_0x213689]['pairId'])),_0x213689--;}}}return _0x225cea['filter'](_0x3e872d=>!_0x3e872d['isIncorrect']);}['_removeUnsupportedChanges'](_0x408da0){const _0x3b49b7=this['editor']['model']['schema'];for(let _0x323288=0x0;_0x323288<_0x408da0['length'];_0x323288++){if(!(_0x408da0[_0x323288]['isAdded']||_0x408da0[_0x323288]['isAddSuggestion']||_0x408da0[_0x323288]['isRemoved']||_0x408da0[_0x323288]['isRemoveSuggestion']))continue;if(0x0==_0x408da0[_0x323288]['distance'])continue;const _0x40af1f=_0x408da0[_0x323288]['item'];_0x3b49b7['isBlock'](_0x40af1f)||_0x3b49b7['isLimit'](_0x40af1f)||(_0x408da0[_0x323288]['isAdded']&&delete _0x408da0[_0x323288]['isAdded'],_0x408da0[_0x323288]['isAddSuggestion']&&delete _0x408da0[_0x323288]['isAddSuggestion'],_0x408da0[_0x323288]['isRemoveSuggestion']&&delete _0x408da0[_0x323288]['isRemoveSuggestion'],_0x408da0[_0x323288]['isRemoved']&&(_0x408da0[_0x323288]['isIncorrect']=!0x0));}return _0x408da0['filter'](_0x1b46be=>!_0x1b46be['isIncorrect']);}['_makeModelFromTape'](_0x1ae75b,_0x2d0507,_0x37c139){const _0x5be5d7=new mt(),_0xa59845=[],_0x77654d=new Map(),_0x425e7f=this['editor']['model'],_0x47d1c7=_0x425e7f['schema'],_0x439211=[_0x5be5d7],_0x7d7ad3={},_0x151894={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3ac3bd=null;const _0x3e39c4=[0x0];for(let _0x452f79=0x0;_0x452f79<_0x1ae75b['length'];_0x452f79++)if('elementStart'===_0x1ae75b[_0x452f79]['type']){_0x1ae75b[_0x452f79]['previousPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4);const _0x8f04b8=new ft(_0x1ae75b[_0x452f79]['item']['name'],_0x1ae75b[_0x452f79]['item']['getAttributes']());_0x439211[0x0]['_appendChild'](_0x8f04b8),_0x3e39c4['push'](0x0),_0x439211['unshift'](_0x8f04b8),_0x1ae75b[_0x452f79]['nextPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4);}else'elementEnd'===_0x1ae75b[_0x452f79]['type']?(_0x439211['shift'](),_0x1ae75b[_0x452f79]['previousPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4),_0x3e39c4['pop'](),_0x3e39c4[_0x3e39c4['length']-0x1]++,_0x1ae75b[_0x452f79]['nextPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4)):(_0x1ae75b[_0x452f79]['previousPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4),_0x3ac3bd?_0x3ac3bd['_data']+=_0x1ae75b[_0x452f79]['item']['data']:_0x3ac3bd=new wt(_0x1ae75b[_0x452f79]['item']['data'],_0x1ae75b[_0x452f79]['item']['getAttributes']()),_0x1ae75b[_0x452f79+0x1]&&'text'===_0x1ae75b[_0x452f79+0x1]['type']&&_0x572540(_0x3ac3bd,_0x1ae75b[_0x452f79+0x1]['item'])||(_0x439211[0x0]['_appendChild'](_0x3ac3bd),_0x3ac3bd=null),_0x3e39c4[_0x3e39c4['length']-0x1]+=_0x1ae75b[_0x452f79]['item']['offsetSize'],_0x1ae75b[_0x452f79]['nextPosition']=_0x425e7f['createPositionFromPath'](_0x5be5d7,_0x3e39c4));for(let _0x5a2ea3=0x0;_0x5a2ea3<_0x1ae75b['length'];_0x5a2ea3++){const _0x547075=_0x1ae75b[_0x5a2ea3]['previousPosition'],_0x13ed93=_0x1ae75b[_0x5a2ea3]['nextPosition'];for(const _0x15add0 of _0x1ae75b[_0x5a2ea3]['markersStart'])_0x77654d['set'](_0x15add0,{'start':_0x547075,'end':null});_0x1a1612('isRemoveSuggestion',_0x5a2ea3,_0x547075,_0x13ed93),_0x1a1612('isAddSuggestion',_0x5a2ea3,_0x547075,_0x13ed93),_0x1a1612('isRemoved',_0x5a2ea3,_0x547075,_0x13ed93),_0x1a1612('isAdded',_0x5a2ea3,_0x547075,_0x13ed93);for(const _0x15e37c of _0x1ae75b[_0x5a2ea3]['markersEnd']){_0x77654d['get'](_0x15e37c)['end']=_0x13ed93;}}for(const [_0x4d5dd2,_0x34ce05]of _0x77654d){const _0x5432b0=this['editor']['model']['createRange'](_0x34ce05['start'],_0x34ce05['end']);_0x5be5d7['markers']['set'](_0x4d5dd2,_0x5432b0);}return _0xa59845['sort']((_0xca537e,_0x220ad1)=>{const _0x4b5fcf=_0x5be5d7['markers']['get']('revision:'+_0xca537e['id']),_0x5c9f1b=_0x5be5d7['markers']['get']('revision:'+_0x220ad1['id']);return _0x4b5fcf['start']['isBefore'](_0x5c9f1b['start'])?-0x1:_0x4b5fcf['start']['isAfter'](_0x5c9f1b['start'])?0x1:_0x4b5fcf['end']['isBefore'](_0x5c9f1b['end'])?-0x1:_0x4b5fcf['end']['isAfter'](_0x5c9f1b['end'])?0x1:'add'===_0xca537e['type']?-0x1:0x1;}),{'root':_0x5be5d7,'changes':_0xa59845};function _0x1a1612(_0x355b6e,_0x52fc2b,_0xb1395,_0x3f770e){const _0x9ee139=!!_0x1ae75b[_0x52fc2b][_0x355b6e],_0x59147f=_0x9ee139?_0x1ae75b[_0x52fc2b][_0x355b6e]['userId']:null,_0x325254=_0x52fc2b===_0x1ae75b['length']-0x1,_0xc095ac=_0x151894[_0x355b6e][0x0],_0x365c0a=_0x47d1c7['isObject'](_0x1ae75b[_0x52fc2b]['item']);!_0x7d7ad3[_0x355b6e]&&_0x9ee139?_0x7d7ad3[_0x355b6e]={'start':_0xb1395,'tapeItem':_0x1ae75b[_0x52fc2b],'userId':_0x59147f,'type':_0x355b6e}:_0x7d7ad3[_0x355b6e]&&!_0x9ee139?(_0x7d7ad3[_0x355b6e]['end']=_0xb1395,_0x27a5e8(_0x7d7ad3[_0x355b6e]),_0x7d7ad3[_0x355b6e]=null):_0x7d7ad3[_0x355b6e]&&_0x9ee139&&_0x7d7ad3[_0x355b6e]['userId']!==_0x59147f&&(_0x7d7ad3[_0x355b6e]['end']=_0xb1395,_0xc095ac&&_0xc095ac['userId']===_0x7d7ad3[_0x355b6e]['userId']||_0x27a5e8(_0x7d7ad3[_0x355b6e]),_0x7d7ad3[_0x355b6e]={'start':_0xb1395,'tapeItem':_0x1ae75b[_0x52fc2b],'userId':_0x59147f,'type':_0x355b6e}),_0x7d7ad3[_0x355b6e]&&_0x365c0a&&('elementStart'!==_0x1ae75b[_0x52fc2b]['type']||_0xc095ac&&_0xc095ac['userId']===_0x59147f||_0x151894[_0x355b6e]['unshift']({'userId':_0x59147f,'object':_0x1ae75b[_0x52fc2b]['item'],'change':_0x7d7ad3[_0x355b6e]}),'elementEnd'===_0x1ae75b[_0x52fc2b]['type']&&_0xc095ac&&_0xc095ac['object']===_0x1ae75b[_0x52fc2b]['item']&&(_0x151894[_0x355b6e]['shift'](),_0x7d7ad3[_0x355b6e]=_0xc095ac['change'])),_0x7d7ad3[_0x355b6e]&&_0x325254&&(_0x7d7ad3[_0x355b6e]['end']=_0x3f770e,_0x27a5e8(_0x7d7ad3[_0x355b6e]),_0x7d7ad3[_0x355b6e]=null);}function _0x27a5e8({start:_0x50f727,end:_0x4dcd85,tapeItem:_0x2bc386,userId:_0x3b4f5a,type:_0x49b5b6}){const _0x57ab1b=_0x2bc386['item'],_0x3276b7=_0x425e7f['schema']['isBlock'](_0x57ab1b)&&!_0x425e7f['schema']['isLimit'](_0x57ab1b),_0x434050=_0x50f727['nodeAfter']==_0x4dcd85['parent']&&_0x4dcd85['isAtStart'];if(_0x3276b7&&_0x434050)return;const _0x3f512e=_0x425e7f['createRange'](_0x50f727,_0x4dcd85),_0x45b519=_0x2d0507['get'](_0x3b4f5a),_0x2fb743=new r({'author':_0x45b519,'type':'isAdded'==_0x49b5b6||'isAddSuggestion'==_0x49b5b6?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x49b5b6||'isRemoveSuggestion'==_0x49b5b6},'createdAt':new Date(),'rootName':_0x37c139});_0xa59845['push'](_0x2fb743),_0x5be5d7['markers']['set']('revision:'+_0x2fb743['id'],_0x3f512e);}function _0x572540(_0x320613,_0x3f57d2){const _0x20aaa5=_0x320613['getAttributes'](),_0x3b6f7a=_0x3f57d2['getAttributes']();for(const _0x7c83b6 of _0x20aaa5){if(_0x7c83b6[0x1]!==_0x3f57d2['getAttribute'](_0x7c83b6[0x0]))return!0x1;_0x3b6f7a['next']();}return _0x3b6f7a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x400646=>{const _0x243df4=_0x400646['markerName']['split'](':')[0x1],_0x2e2c7f=this['_getChangeFromId'](_0x243df4);if(!_0x2e2c7f)return null;const _0x4ef527='add'==_0x2e2c7f['type']?'insertion':'deletion',_0xc15029=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4ef527];return _0x2e2c7f['data']['isSuggestion']&&_0xc15029['push']('ck-suggestion-marker-'+_0x4ef527+'-new'),this['activeChange']==_0x2e2c7f&&_0xc15029['push']('ck-suggestion-marker--active'),{'classes':_0xc15029,'attributes':{'data-change-id':_0x243df4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xcf660f=>{_0xcf660f['on']('element:pre',(_0x5cb6f4,_0x2dc0e1,_0x245cd5)=>{const _0x41f5e9=_0x2dc0e1['viewItem']['getChild'](0x0);if(!_0x41f5e9||!_0x41f5e9['is']('element','code'))return;if(!_0x245cd5['consumable']['consume'](_0x41f5e9,{'attributes':['vid_start','vid_end']}))return;const _0x136c01=_0x2dc0e1['modelRange']['start']['nodeAfter'];_0x245cd5['writer']['setAttribute']('vid_start',_0x41f5e9['getAttribute']('vid_start'),_0x136c01),_0x245cd5['writer']['setAttribute']('vid_end',_0x41f5e9['getAttribute']('vid_end'),_0x136c01);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x11479d=>{_0x11479d['on']('element',(_0x2a70c6,_0x5e2dd8,_0x108d92)=>{if(!_0x108d92['consumable']['consume'](_0x5e2dd8['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5e2dd8['modelRange']['isCollapsed'])return;const _0x1f653c=_0x5e2dd8['modelRange']['start']['nodeAfter'];_0x1f653c['hasAttribute']('vid_start')||_0x1f653c['hasAttribute']('vid')||(_0x108d92['writer']['setAttribute']('vid_start',_0x5e2dd8['viewItem']['getAttribute']('vid_start'),_0x1f653c),_0x108d92['writer']['setAttribute']('vid_end',_0x5e2dd8['viewItem']['getAttribute']('vid_end'),_0x1f653c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x207692=>_0x207692['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x19f60e,[,_0x408b18])=>{['vid_start','vid_end','vid']['includes'](_0x408b18)&&(_0x19f60e['return']=!0x0,_0x19f60e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x42baa3=>{_0x42baa3['on']('attribute:vid',(_0x3eb693,_0x343933,_0xb2368b)=>{if('\x20'!=_0x343933['item']['data']||_0x343933['item']['parent']['maxOffset']>0x1)return;if(!_0xb2368b['consumable']['consume'](_0x343933['item'],_0x3eb693['name']))return;const _0x5c63f7=_0xb2368b['writer'],_0x4392cc=_0xb2368b['mapper']['toViewRange'](_0x343933['range']);_0x5c63f7['wrap'](_0x4392cc,_0x5c63f7['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x767809){const _0x261649=_0x767809['plugins']['get']('RevisionViewer');return(_0x259b20,_0x56fce8,_0x388508)=>{const _0x4aecf9=_0x56fce8['markerName']['split'](':')[0x1],_0x1d59e6=_0x261649['_getChangeFromId'](_0x4aecf9);if(!_0x1d59e6)return null;const _0x4abe55='add'==_0x1d59e6['type']?'split':'merge';if(!_0x388508['consumable']['test'](_0x56fce8['markerRange'],_0x259b20['name']))return;const _0x97842e=_0x56fce8['markerRange']['getWalker'](),_0x3c3f47=_0x56fce8['markerRange']['start'],_0x5ea223=_0x767809['model']['schema'];let _0x4748af=null,_0x40763f=null,_0x590324=!0x1,_0x2791ee=!0x1;for(const _0x1d7a07 of _0x97842e){const _0x3ceeb6=_0x1d7a07['item'];_0x590324=_0x590324||_0x5ea223['isContent'](_0x3ceeb6);const _0x219ca6=_0x388508['mapper']['toViewElement'](_0x3ceeb6);if(_0x219ca6&&_0x219ca6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1d7a07['type']&&(_0x5ea223['isBlock'](_0x3ceeb6)&&!_0x5ea223['isLimit'](_0x3ceeb6)&&(_0x3ceeb6['nextSibling']||_0x3c3f47['isAtEnd']?_0x4748af&&_0x4748af['parent']==_0x3ceeb6||(_0x4748af=_0x3ceeb6,_0x3345b9(_0x1d7a07['previousPosition']),_0x2791ee=!0x0):_0x40763f=_0x40763f||_0x1d7a07['previousPosition']));}function _0x3345b9(_0x210fbf){const _0x528485=_0x388508['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4abe55}),_0x64314=_0x388508['mapper']['toViewPosition'](_0x210fbf);_0x1d59e6['data']['isSuggestion']&&_0x388508['writer']['addClass']('ck-suggestion-marker-'+_0x4abe55+'-new',_0x528485),_0x261649['activeChange']==_0x1d59e6&&_0x388508['writer']['addClass']('ck-suggestion-marker--active',_0x528485),_0x388508['writer']['insert'](_0x64314,_0x528485),_0x388508['mapper']['bindElementToMarker'](_0x528485,_0x56fce8['markerName']);}_0x590324||_0x2791ee||!_0x40763f||_0x3345b9(_0x40763f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x354c3d,_0x3efb41,_0x5e99d0)=>{const _0x3b5d98=_0x5e99d0['mapper']['markerNameToElements'](_0x3efb41['markerName']);if(_0x3b5d98){for(const _0x1f8544 of _0x3b5d98)(_0x1f8544['hasClass']('ck-suggestion-marker-split')||_0x1f8544['hasClass']('ck-suggestion-marker-merge'))&&(_0x5e99d0['mapper']['unbindElementFromMarkerName'](_0x1f8544,_0x3efb41['markerName']),_0x5e99d0['writer']['remove'](_0x1f8544));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x18adfe,_0x44cbd1,_0x330915)=>{const _0xaee9cd=_0x44cbd1['markerName']['split'](':')[0x1],_0x21a609=this['_getChangeFromId'](_0xaee9cd);if(!_0x21a609)return null;const _0x56398c='add'==_0x21a609['type']?'split':'merge';if(_0x330915['consumable']['test'](_0x44cbd1['markerRange'],_0x18adfe['name']))for(const _0x159c51 of _0x44cbd1['markerRange']['getItems']()){if(!_0x159c51['is']('element','softBreak'))continue;const _0x4892d2=_0x330915['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x56398c}),_0x54f88b=_0x330915['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x159c51));_0x21a609['data']['isSuggestion']&&_0x330915['writer']['addClass']('ck-suggestion-marker-'+_0x56398c+'-new',_0x4892d2),this['activeChange']==_0x21a609&&_0x330915['writer']['addClass']('ck-suggestion-marker--active',_0x4892d2),_0x330915['writer']['insert'](_0x54f88b,_0x4892d2),_0x330915['mapper']['bindElementToMarker'](_0x4892d2,_0x44cbd1['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x52b630=>{for(const _0xec56be of this['editor']['model']['document']['getRootNames']()){const _0x19be2f=this['editor']['model']['document']['getRoot'](_0xec56be),_0x3ebd87=this['editor']['editing']['view']['document']['getRoot'](_0xec56be);if(_0x3ebd87){const _0x459296=_0x19be2f['getAttribute']('revisionHistoryAttachChange');if(_0x52b630['removeAttribute']('data-change-id',_0x3ebd87),_0x52b630['removeClass']('ck-revision-history-root-add',_0x3ebd87),_0x52b630['removeClass']('ck-revision-history-root-remove',_0x3ebd87),_0x52b630['removeClass']('ck-revision-history-root--active',_0x3ebd87),_0x459296){const _0x101cf4=this['_getChangeFromId'](_0x459296);if(!_0x101cf4)return null;_0x52b630['setAttribute']('data-change-id',_0x459296,_0x3ebd87),_0x52b630['addClass']('ck-revision-history-root-'+_0x101cf4['type'],_0x3ebd87),this['activeChange']==_0x101cf4&&_0x52b630['addClass']('ck-revision-history-root--active',_0x3ebd87);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xaf99a0=>'revision-comment:'+_0xaf99a0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x35e77e=>'revision-suggestion:'+_0x35e77e,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x51a4e2=>({'name':'suggestion:'+_0x51a4e2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5928fc=>{const _0x34e0a6=_0x5928fc['markerName']['split'](':')[0x1];return'insertion'!=_0x34e0a6&&'deletion'!=_0x34e0a6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x34e0a6]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x279aab,_0x34ee55,_0x5876c4)=>{const _0xe4a6a8=_0x5876c4['mapper']['markerNameToElements'](_0x34ee55['markerName']);if(_0xe4a6a8){for(const _0x186aa1 of _0xe4a6a8)_0x186aa1['is']('uiElement')&&(_0x5876c4['mapper']['unbindElementFromMarkerName'](_0x186aa1,_0x34ee55['markerName']),_0x5876c4['writer']['remove'](_0x186aa1));}},{'priority':'high'});}['_getChangeFromId'](_0x1431ce){return this['_changeIdToChange']['get'](_0x1431ce);}['_getViewForChange'](_0x5786fe){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x5786fe),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xf0d3db,_0x5ec916,_0x1371c9,_0x2b8d58)=>{_0x2b8d58&&this['_balloon']['remove'](_0x2b8d58),_0x1371c9&&(this['_balloon']['add']({'view':_0x1371c9,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x28c554=this['editor']['editing'],_0x3fc0ec=this['_getChangeFromId'](_0x1371c9['changeId']);let _0x39eb90;if(_0x3fc0ec['data']['isOnRoot']){const _0x42b9f3=_0x28c554['view']['getDomRoot'](_0x3fc0ec['rootName']);_0x39eb90=Array['from'](_0x42b9f3['getClientRects']());}else{const _0x3b51b4=this['editor']['model']['markers']['get']('revision:'+_0x1371c9['changeId']);_0x39eb90=Array['from'](_0x28c554['mapper']['markerNameToElements'](_0x3b51b4['name']))['map'](_0x4f741f=>_0x28c554['view']['domConverter']['mapViewToDom'](_0x4f741f))['map'](_0x2afdb4=>Array['from'](_0x2afdb4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x39eb90[0x0];return _0x39eb90['find'](_0x363fda=>_0x363fda['top']-0x3<=this['_activeViewTarget']['y']&&_0x363fda['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x363fda['left']-0x3<=this['_activeViewTarget']['x']&&_0x363fda['right']+0x3>=this['_activeViewTarget']['x'])||_0x39eb90[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x518218,_0x498a97,_0x243b73,_0x32473f)=>{this['activeView']=_0x243b73?this['_getViewForChange'](_0x243b73):null,this['editor']['model']['change'](()=>{const _0x2ee541=this['editor']['editing'];_0x32473f&&(_0x32473f['data']['isOnRoot']?_0x2ee541['view']['change'](_0x1c6367=>{_0x1c6367['removeClass']('ck-revision-history-root--active',_0x2ee541['view']['document']['getRoot'](_0x32473f['rootName']));}):_0x2ee541['reconvertMarker']('revision:'+_0x32473f['id'])),_0x243b73&&(_0x243b73['data']['isOnRoot']?_0x2ee541['view']['change'](_0xd19909=>{_0xd19909['addClass']('ck-revision-history-root--active',_0x2ee541['view']['document']['getRoot'](_0x243b73['rootName']));}):_0x2ee541['reconvertMarker']('revision:'+_0x243b73['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x10fb0d,_0x4ae5b3)=>{if(this['activeChange'])return;const _0x3bd78e=this['_findChangeIdFromDomTarget'](_0x4ae5b3['target']),_0x406eda=this['_changeIdToChange']['get'](_0x3bd78e);_0x406eda?(this['_activeViewTarget']={'x':_0x4ae5b3['domEvent']['x'],'y':_0x4ae5b3['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x406eda)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x555eb8,_0x4af50e)=>{const _0x5a6276=this['_findChangeIdFromDomTarget'](_0x4af50e['target']),_0x12a7af=this['_changeIdToChange']['get'](_0x5a6276);_0x12a7af?(this['_activeViewTarget']={'x':_0x4af50e['domEvent']['x'],'y':_0x4af50e['domEvent']['y']},_0x12a7af===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x12a7af):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x28085d){do{const _0x250867=_0x28085d['getAttribute']('data-change-id');if(_0x250867)return _0x250867;_0x28085d=_0x28085d['parent'];}while(_0x28085d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25ebcb=>{for(const _0xb05bde of this['editor']['model']['markers'])_0x25ebcb['removeMarker'](_0xb05bde);});}}function Z(_0x1ba9f0,_0x46cebf){return(_0x5af3fe,_0x114116,_0x1edc00)=>{if(!_0x1edc00['consumable']['test'](_0x114116['markerRange'],_0x5af3fe['name']))return;const _0x43a892=_0x114116['markerRange']['getWalker'](),_0x2543f5=_0x114116['markerRange']['start'],_0x5e191b=_0x1ba9f0['model']['schema'];let _0x4ff103=null,_0x5a5507=null,_0x12028d=!0x1,_0x501227=!0x1;for(const _0x254e8b of _0x43a892){const _0x369770=_0x254e8b['item'];_0x12028d=_0x12028d||_0x5e191b['isContent'](_0x369770);const _0x5a236e=_0x1edc00['mapper']['toViewElement'](_0x369770);if(_0x5a236e&&_0x5a236e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x254e8b['type']&&(_0x5e191b['isBlock'](_0x369770)&&!_0x5e191b['isLimit'](_0x369770)&&(_0x369770['nextSibling']||_0x2543f5['isAtEnd']?_0x4ff103&&_0x4ff103['parent']==_0x369770||(_0x4ff103=_0x369770,_0x51726a(_0x254e8b['previousPosition']),_0x501227=!0x0):_0x5a5507=_0x5a5507||_0x254e8b['previousPosition']));}function _0x51726a(_0x1c8bff){const _0x123b30=_0x1edc00['mapper']['toViewPosition'](_0x1c8bff),_0x104539=_0x1edc00['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x46cebf});_0x1edc00['writer']['insert'](_0x123b30,_0x104539),_0x1edc00['mapper']['bindElementToMarker'](_0x104539,_0x114116['markerName']);}_0x12028d||_0x501227||!_0x5a5507||_0x51726a(_0x5a5507);};}class pt extends _0x2e9ea6{constructor(_0x14dbfd){super(_0x14dbfd);const _0x34c4d2=_0x14dbfd['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x34c4d2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x34c4d2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x402523=this['editor'],_0x14a91e=_0x402523['plugins']['get'](d),_0x1a5e76=_0x14a91e['isReady']?_0x14a91e['diff']['newRevisionId']:null;_0x402523['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1a5e76);}['refresh'](){const {isReady:_0x22690b,isEnabled:_0x2a533b,repository:_0x51d6e7,diff:_0x4c2589}=this['editor']['plugins']['get'](d),_0x839b70=_0x4c2589&&_0x51d6e7['getLaterVisibleRevision'](_0x4c2589['newRevisionId']);this['isEnabled']=_0x22690b&&_0x2a533b&&Boolean(_0x839b70);}}class _t extends _0x2e9ea6{['_step'];constructor(_0xa69399,{direction:_0x40b6d5}){super(_0xa69399);const _0x2e9f0c=_0xa69399['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x40b6d5?0x1:-0x1,this['listenTo'](_0x2e9f0c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2e9f0c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2e9f0c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x4265cf=this['editor'],_0x406ede=_0x4265cf['plugins']['get'](d),{isNavigationMode:_0x5359fd,currentChangeNumber:_0x464bae}=_0x406ede;let _0x3e9091;if(_0x406ede['activeChange']=_0x5359fd?_0x406ede['diff']['changes']['get'](_0x464bae+this['_step']):_0x406ede['diff']['changes']['first'],_0x406ede['activeChange']['data']['isOnRoot'])_0x3e9091=_0x4265cf['editing']['view']['getDomRoot'](_0x406ede['activeChange']['rootName']);else{const _0x2ae274=_0x4265cf['model']['markers']['get']('revision:'+_0x406ede['activeChange']['id']);_0x3e9091=_0x4ddfb7(_0x4265cf['editing'],_0x2ae274);}_0x47297b({'target':_0x3e9091,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x336dec,currentChangeNumber:_0x40d3e1,numberOfChanges:_0x17f8f9,isReady:_0x4f8e35,isEnabled:_0x42555e}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x42555e&&_0x4f8e35&&_0x17f8f9)&&(!_0x336dec||(0x1===this['_step']?_0x40d3e1<_0x17f8f9-0x1:_0x40d3e1>0x0));}}class li extends ts{constructor(_0x524a81){super(_0x524a81);const _0x3c52e8=this['bindTemplate'],_0x57cd8c=new te(_0x524a81),_0x85144f=new te(_0x524a81);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',(_0x44a547,_0x43c4ae)=>_0x44a547&&_0x43c4ae>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x422976,_0x584239,_0x3f5932,_0x175b99)=>{if(!_0x422976)return m(_0x524a81,'Loading...');if(!_0x3f5932)return m(_0x524a81,'No\x20changes');const _0x52425=m(_0x524a81,'NUMBER_OF_CHANGES',_0x3f5932);return _0x175b99?m(_0x524a81,'X_OF_Y_CHANGES',[_0x584239+0x1,_0x3f5932]):_0x52425;}),_0x57cd8c['set']({'label':m(_0x524a81,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x85144f['set']({'label':m(_0x524a81,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x57cd8c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x85144f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x57cd8c['on']('execute',()=>this['fire']('execute','backward')),_0x85144f['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',_0x3c52e8['if']('_isStatusLabelVisible','ck-hidden',_0x49cef4=>!_0x49cef4)]},'children':[{'text':_0x3c52e8['to']('isNavigationMode',_0x3a9ac5=>_0x3a9ac5?m(_0x524a81,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x524a81,'Total')+':\x20')}]},{'text':_0x3c52e8['to']('_statusText')}]},new _0x312ecc(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x57cd8c,_0x85144f]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x31326a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x729a7c=this['editor']['editing']['view'];_0x729a7c['change'](_0x3d7a26=>{for(const _0x4a2973 of _0x729a7c['document']['roots'])_0x3d7a26['addClass'](le,_0x4a2973);});}['hide'](){const _0x2bc64e=this['editor']['editing']['view'];_0x2bc64e['change'](_0x5ccdce=>{for(const _0xd564cb of _0x2bc64e['document']['roots'])_0x5ccdce['removeClass'](le,_0xd564cb);});}}class g extends _0x31326a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x49a9ff=this['editor'],_0x1de406=_0x49a9ff['plugins']['get'](d),_0x17e488=_0x49a9ff['plugins']['get'](ge);_0x49a9ff['ui']['componentFactory']['add']('exitToEditing',_0x3945bb=>{const _0x118fd9=new te(_0x3945bb);return _0x118fd9['set']({'label':m(_0x3945bb,'Back\x20to\x20editing'),'icon':_0x57512f['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x118fd9,'execute',()=>{_0x49a9ff['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x118fd9;}),_0x49a9ff['ui']['componentFactory']['add']('restoreRevision',_0x47b2da=>{const _0x2393bb=new te(_0x47b2da);return _0x2393bb['set']({'label':m(_0x47b2da,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2393bb['bind']('isEnabled')['to'](_0x49a9ff['commands']['get']('restoreRevision')),this['listenTo'](_0x2393bb,'execute',()=>_0x49a9ff['execute']('restoreRevision')),_0x2393bb;}),_0x49a9ff['ui']['componentFactory']['add']('changesNavigation',_0x3684d4=>{const _0x377f5b=new li(_0x3684d4),_0xaea742=_0x49a9ff['commands']['get']('showPreviousChange'),_0x2f2b46=_0x49a9ff['commands']['get']('showNextChange');return _0x377f5b['bind']('isBackwardNavigationEnabled')['to'](_0xaea742,'isEnabled'),_0x377f5b['bind']('isForwardNavigationEnabled')['to'](_0x2f2b46,'isEnabled'),_0x377f5b['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1de406),this['listenTo'](_0x377f5b,'execute',(_0x584215,_0x11e7f5)=>{_0x49a9ff['execute']('forward'===_0x11e7f5?'showNextChange':'showPreviousChange');}),_0x377f5b;}),_0x17e488['show'](),_0x1de406['on']('change:isReady',(_0x5b8110,_0x3b4aa1,_0x9b57e7)=>{_0x9b57e7?_0x17e488['hide']():_0x17e488['show']();});}}class at extends _0x31f44d{['_resizeObserver']=null;constructor(_0x757562,_0x1cfd73){super(_0x757562,_0x1cfd73);const _0x3ec2e7=this['bindTemplate'];this['set']({'label':m(_0x757562,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x757562,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3ec2e7['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 _0xb611fa=this['fieldView']['element'];this['_tooltipString']=_0xb611fa['scrollWidth']>_0xb611fa['clientWidth']&&_0xb611fa['value']||'';}}class ri extends ts{constructor(_0x46f322,_0x1ae507,_0x5e08ec){super(_0x46f322);const _0x5bdb4d=new _0x316f4d();_0x5bdb4d['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x2e5381=['ck','ck-revision-history-sidebar__revision-author'];_0x5e08ec&&_0x2e5381['push']('ck-revision-history-sidebar__revision-author_creator');const _0x296838=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x46f322,_0x5e08ec?'Revision\x20creator':'Revision\x20author')},'children':[_0x5bdb4d,_0x1ae507['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2e5381},'children':_0x296838});}}function oi(_0x5d8efe,_0x56294e){const _0x3337d1=_0x5d8efe['bindTemplate'],_0x5d9ff6=_0x5d8efe['locale'],_0x5350fd=_0x10173a(_0x5d9ff6);_0x5350fd['panelPosition']='sw';const _0x995f54=function(_0x5a4eff,_0x2845b6){const _0x23af6d=function(_0x20ae2e,_0x4b7278){const _0x577e26=_0x20ae2e['locale'],_0x2bbba5={'Compare\x20against\x20selected':m(_0x577e26,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x577e26,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x577e26,'Restore\x20this\x20revision')};return _0x4b7278['map'](_0x46f403=>{const _0x5339f8=_0x2bbba5[_0x46f403['name']];return _0x5339f8&&_0x5339f8!==_0x46f403['name']&&(_0x46f403['name']=_0x5339f8),_0x46f403;});}(_0x5a4eff,_0x2845b6),_0x5f26d9=new _0x4367e2();for(const _0x1f2ee1 of _0x23af6d){const _0x45f218={'type':'button','model':new _0x290497({'label':_0x1f2ee1['name'],'class':_0x1f2ee1['class'],'withText':!0x0,'role':'menuitem','_action':_0x1f2ee1['action']})};_0x45f218['model']['bind']('isEnabled')['to'](_0x5a4eff,'isActionsDropdownOpen',_0x54d80c=>'function'!=typeof _0x1f2ee1['isEnabled']||(!_0x54d80c||_0x1f2ee1['isEnabled'](_0x5a4eff))),_0x5f26d9['add'](_0x45f218);}return _0x5f26d9;}(_0x5d8efe,_0x56294e);return _0x5d8efe['bind']('isActionsDropdownOpen')['to'](_0x5350fd,'isOpen'),_0x5350fd['buttonView']['set']({'label':m(_0x5d9ff6,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x57512f['threeVerticalDots']}),_0x5350fd['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3337d1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3337d1['to'](_0x6eb3ea=>_0x6eb3ea['stopPropagation']())}}),_0x5350fd['on']('execute',_0x4d00c1=>{_0x5d8efe['isReady']&&'function'==typeof _0x4d00c1['source']['_action']&&_0x4d00c1['source']['_action'](_0x5d8efe);}),to(_0x5350fd,_0x995f54,{'role':'menu'}),_0x5350fd['listenTo'](_0x5d8efe,'change:isActionsDropdownOpen',(_0x7de56,_0x562b54,_0x4dee1e)=>{if(_0x4dee1e)for(const _0x27451c of _0x5350fd['listView']['items']){const _0x3036f0=_0x27451c['children']['first'],_0x51f0db=_0x56294e['find'](_0x385085=>_0x385085['action']===_0x3036f0['_action'])['isVisible'];_0x27451c['isVisible']=void 0x0===_0x51f0db||_0x51f0db(_0x5d8efe);}}),_0x5350fd;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x39402d,_0x1605fd,_0x1383f7,_0x15194d){super(_0x39402d);const _0xa0d5dd=this['bindTemplate'],_0x20b49d=function(_0x31ddba,_0x317c25){const _0x280d1a=Array['from'](_0x317c25['authors'])['filter'](_0x53c25a=>_0x53c25a!=_0x317c25['creator']);return _0x317c25['creator']&&_0x280d1a['unshift'](_0x317c25['creator']),_0x280d1a['map'](_0x326ccf=>new ri(_0x31ddba,_0x326ccf,_0x326ccf==_0x317c25['creator']));}(_0x39402d,_0x1605fd);this['id']=_0x1605fd['id'],this['_revision']=_0x1605fd,this['_requireRevisionName']=_0x15194d,this['bind']('name','createdAt')['to'](_0x1605fd),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x471724=>{return _0x128626=_0x39402d['uiLanguage'],(_0x46047b=_0x471724)['toLocaleDateString'](_0x128626,{'month':'long','day':'numeric'})+',\x20'+_0x46047b['toLocaleTimeString'](_0x128626,{'hour':'numeric','minute':'numeric'});var _0x128626,_0x46047b;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x39402d,_0x22ab74),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x32f288=>_0x32f288||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x13d823,_0x2addfb)=>_0x13d823&&_0x2addfb),this['revisionActionsView']=_0x1383f7&&_0x1383f7['length']?oi(this,_0x1383f7):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xa0d5dd['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xa0d5dd['if']('isEnabled','ck-disabled',_0x44d827=>!_0x44d827),_0xa0d5dd['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xa0d5dd['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xa0d5dd['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':_0xa0d5dd['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':_0x20b49d}]},this['revisionActionsView']],'on':{'click':_0xa0d5dd['to'](_0x56a040=>{_0x56a040['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2e2db5=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2e2db5,'change',()=>{this['_requireRevisionName']&&!_0x2e2db5['value']||this['fire']('setName',{'id':this['id'],'name':_0x2e2db5['value']}),_0x2e2db5['value']||(_0x2e2db5['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x38e044,_0x3dfff9){const _0x214626=_0x5afbc8['fromJSDate'](_0x38e044)['setLocale'](_0x3dfff9),_0xbe1ba6=_0x5afbc8['local'](),_0xbce39f=_0xbe1ba6['minus']({'days':0x1})['startOf']('day');let _0x539c02,_0x437155;return _0x214626['hasSame'](_0xbe1ba6,'day')?(_0x539c02=_0x214626['startOf']('day')['toJSDate'](),_0x437155=_0x214626['toRelativeCalendar']()):_0x214626['hasSame'](_0xbce39f,'day')?(_0x539c02=_0xbce39f['toJSDate'](),_0x437155=_0x214626['toRelativeCalendar']()):_0x214626['hasSame'](_0xbe1ba6,'week')?(_0x539c02=_0x214626['startOf']('week')['toJSDate'](),_0x437155=_0x214626['weekdayLong']||''):_0x214626['hasSame'](_0xbe1ba6,'year')?(_0x539c02=_0x214626['startOf']('month')['toJSDate'](),_0x437155=_0x214626['monthLong']||''):(_0x539c02=_0x214626['startOf']('year')['toJSDate'](),_0x437155=String(_0x214626['year'])),{'startDate':_0x539c02,'localizedPeriodName':_0x437155};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3327e1,_0x68afe,_0x2418a0,_0x55abd0){super(_0x3327e1);const _0x44e855=ci(_0x68afe,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x68afe,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2418a0,this['_requireRevisionName']=_0x55abd0,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':_0x44e855}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3d1d15){const _0x1baa53=new hi(this['locale'],_0x3d1d15,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1baa53);}['removeRevision'](_0x97429e){const _0x1955a7=this['revisionViews']['find'](_0xc4eab8=>_0xc4eab8['id']===_0x97429e['id']);this['revisionViews']['remove'](_0x1955a7);}}class as extends ts{constructor(_0x477b51){super(_0x477b51);const _0xc4e17a=new _0x316f4d();_0xc4e17a['content']=_0x57512f['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xc4e17a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x477b51,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x60d257,_0x40e6e8,_0xbc8a11,_0x9e5f9a){super(_0x60d257);const _0x50a189=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x40e6e8,this['_revisionActions']=_0xbc8a11,this['_requireRevisionName']=_0x9e5f9a,this['on']('select',(_0xe8b63d,_0x2ca43e)=>{this['fire']('revisionSelected',_0x2ca43e);}),this['on']('setName',(_0x12ec67,_0x3e9f23)=>{this['fire']('revisionSetName',_0x3e9f23);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x60d257),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x50a189['if']('isEnabled','ck-disabled',_0x4d9cb2=>!_0x4d9cb2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x41f1a2 of this['_revisions'])this['_addRevision'](_0x41f1a2);this['_revisions']['on']('add',(_0x289344,_0x27fe56)=>{this['_addRevision'](_0x27fe56);}),this['_revisions']['on']('remove',(_0x101cae,_0x3ac94e)=>{this['_removeRevision'](_0x3ac94e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x307a32=>_0x307a32['revisionViews']['map'](_0x2ac49a=>_0x2ac49a))['flat']();}['selectRevision'](_0xbfd09b){for(const _0xa41052 of this['revisionViews'])_0xbfd09b&&_0xbfd09b['id']===_0xa41052['id']?_0xa41052['select']():_0xa41052['deselect']();}['highlightRevisions'](_0x3d511b){for(const _0x39b10b of this['revisionViews'])_0x3d511b['some'](({id:_0x324ce7})=>_0x324ce7===_0x39b10b['id'])?_0x39b10b['highlight']():_0x39b10b['unhighlight']();}['_addRevision'](_0x18ac15){const _0x487b13=ci(_0x18ac15['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xf4a503=this['timePeriodViews']['get'](0x0);_0xf4a503&&_0xf4a503['startDate']['getTime']()===_0x487b13['getTime']()||(_0xf4a503=new ai(this['locale'],_0x487b13,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xf4a503)),_0xf4a503['addRevision'](_0x18ac15);}['_removeRevision'](_0x1b74a1){const _0x3aaa02=ci(_0x1b74a1['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3aaa02)['removeRevision'](_0x1b74a1);}['_getTimePeriodViewByStartDate'](_0x5d3888){return this['timePeriodViews']['find'](_0x263d2a=>_0x263d2a['startDate']['getTime']()===_0x5d3888['getTime']());}}class w extends _0x31326a{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x5afbad){super(_0x5afbad),this['_revisionViewer']=_0x5afbad['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x55c950=this['_revisionsRepository']['_revisions'],_0x3813bf=this['_createRevisionActions'](),_0x46f9ef=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x55c950,_0x3813bf,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',(_0x392b42,_0xd48e25)=>{_0xd48e25['revisionViews']['on']('add',(_0x64c95e,_0x19a691)=>{_0x19a691['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)),_0x46f9ef['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2d3eb6=this['_revisionsRepository']['getRevision'](0x0);if(_0x2d3eb6){const _0x171ac5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2d3eb6['id']);this['_revisionViewer']['compare'](_0x2d3eb6,_0x171ac5);}}['_handleRevisionSelected'](_0x268cc9,_0x6bc77){const _0x20bc80=this['_revisionsRepository']['getRevision'](_0x6bc77['id']),_0x2c746d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x20bc80['id']);this['_revisionViewer']['compare'](_0x20bc80,_0x2c746d);}['_handleRevisionSetName'](_0x4091ed,_0x7d0a10){this['_revisionsRepository']['getRevision'](_0x7d0a10['id'])['setName'](_0x7d0a10['name']);}['_handleDiffChange'](_0x1d1b13,_0x44364d,_0x11611e){const _0x3da8ad=this['_revisionsRepository']['getRevisionsInDiff'](_0x11611e);_0x3da8ad['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3da8ad),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3da8ad[0x0]));}['_createRevisionActions'](){const _0x54b656=this['editor'],_0x58c9b9=w['availableRevisionActions'],_0x410c53=_0x54b656['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x410c53['length'])return _0x410c53['map'](_0x1f4112=>{const _0x239f8a='string'==typeof _0x1f4112?Object['assign']({},_0x58c9b9[_0x1f4112]):_0x1f4112;return _0x239f8a['action']=_0x239f8a['action']['bind'](this,_0x54b656),_0x239f8a['isVisible']&&(_0x239f8a['isVisible']=_0x239f8a['isVisible']['bind'](this,_0x54b656)),_0x239f8a;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x649ade},_0x2048d5)=>{const _0x29f140=_0x649ade['get'](d),_0x25561e=_0x29f140['repository'];let _0xf63965=_0x29f140['diff']['newRevisionId'],_0x39dd72=_0x2048d5['id'];_0x25561e['getIndex'](_0xf63965)>_0x25561e['getIndex'](_0x39dd72)&&([_0xf63965,_0x39dd72]=[_0x39dd72,_0xf63965]),_0x29f140['compare'](_0xf63965,_0x39dd72);},'isVisible':({plugins:_0x2e87fb},_0x3f8379)=>{const _0x1759b7=_0x2e87fb['get'](d);return!(_0x1759b7['repository']['getRevisionsInDiff'](_0x1759b7['diff'])['length']>0x2)&&!_0x3f8379['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1e04b2,{id:_0x435102})=>{_0x1e04b2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x435102);},'isVisible':({plugins:_0x43936a},_0x5d6ca9)=>!!_0x43936a['get'](d)['repository']['getLaterVisibleRevision'](_0x5d6ca9['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x492442},{id:_0x2fe0fb,revisionNameView:_0x4b24a1})=>{const _0x17730f=_0x492442['get'](d),_0x3e6ae2=_0x17730f['repository']['getEarlierVisibleRevision'](_0x2fe0fb);_0x17730f['compare'](_0x2fe0fb,_0x3e6ae2),_0x4b24a1['focus'](),_0x4b24a1['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x28df7a,_0x24c954){super(_0x28df7a),this['_view']=_0x24c954,this['_toolbarConfig']=ot(_0x28df7a['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x42ef40){const _0x45fffc=this['editor'],_0x3cd807=this['view'],_0x1e3268=_0x45fffc['editing']['view'],_0x1da5fc=_0x3cd807['editable'],_0x2ca184=_0x1e3268['document']['getRoot']();_0x1da5fc['name']=_0x2ca184['rootName'],_0x3cd807['render']();const _0xe3f98b=_0x1da5fc['element'];this['setEditableElement'](_0x1da5fc['name'],_0xe3f98b),_0x3cd807['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1e3268['attachDomRoot'](_0xe3f98b),this['_elementReplacer']['replace'](_0x42ef40,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x57ca56=this['view'],_0x32feea=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x32feea['detachDomRoot'](_0x57ca56['editable']['name']),_0x57ca56['destroy']();}['_initToolbar'](){const _0x2002ac=this['view'];_0x2002ac['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x2002ac['stickyPanel']['limiterElement']=_0x2002ac['element'],_0x2002ac['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x36894a})=>_0x36894a),_0x2002ac['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x2002ac['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3fa72f,_0x3932bc,_0x59104e={}){super(_0x3fa72f),this['stickyPanel']=new ut(_0x3fa72f),this['toolbar']=new lt(_0x3fa72f,{'shouldGroupWhenFull':_0x59104e['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x3fa72f,_0x3932bc);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x7ac14a,_0x65130b){super(_0x65130b),this['sourceElement']=_0x7ac14a,this['model']['document']['createRoot']();const _0x45a36f=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x45a36f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3bbcf3,_0x1c2eda){const _0x5f13f9=new this(_0x3bbcf3,_0x1c2eda);return await _0x5f13f9['initPlugins'](),await _0x5f13f9['ui']['init'](_0x3bbcf3),await _0x5f13f9['data']['init'](_0x5f13f9['config']['get']('initialData')||''),_0x5f13f9['fire']('ready'),_0x5f13f9;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0xc00adc{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x522454){function _0x16d9c9(_0x285958){return _0x285958['map'](_0x40e865=>String['fromCharCode'](_0x40e865))['join']('');}super(_0x522454),this['result']='end',_0x522454[_0x16d9c9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16d9c9([0x76,0x69,0x65,0x77])][_0x16d9c9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16d9c9([0x61,0x75,0x74,0x6f]),_0x522454[_0x16d9c9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x16d9c9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16d9c9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x16d9c9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x16d9c9([0x6f,0x6b])});}}class k extends _0xc00adc{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5b58d0){if(super(_0x5b58d0),!this['editor']['config']['get']('revisionHistory'))throw new _0x756e24('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x16da3a=>this['_showRevisionViewer']({..._0x16da3a,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xf10c19=>this['_closeRevisionViewer'](_0xf10c19)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x49ad90=>this['_restoreRevision'](_0x49ad90)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5d1a0f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5d1a0f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x18ae84){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x18ae84);}['getRevision'](_0x178298){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x178298);}['getRevisions'](_0x308d00){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x308d00||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x396eb0=this['editor'],_0x21d814=_0x1396dd(_0x396eb0,p),_0x8c8bf1=_0x396eb0['plugins']['get']('RevisionTracker'),_0xa45614=_0x396eb0['plugins']['get']('Users')['users'];return _0x21d814['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x21d814['lazyRoots'],(_0x21d814['plugins']['push'](Rt,d,g,class extends _0xc00adc{static get['requires'](){return[d,'Users'];}['init'](){const _0x3cf30a=this['editor']['plugins']['get']('Users');for(const _0x31e44f of _0xa45614)_0x31e44f['isAnonymous']||_0x3cf30a['getUser'](_0x31e44f['id'])||_0x3cf30a['addUser'](_0x31e44f);const _0x2b0bbc=_0x8c8bf1['repository']['getRevisions']();let _0x1a5040=null;const _0x4baed0=this['editor']['plugins']['get']('RevisionViewer');_0x4baed0['adapter']=_0x8c8bf1['adapter'],_0x4baed0['bind']('isEnabled')['to'](_0x8c8bf1),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x396eb0,'isReadOnly',_0x5b7ddd=>!_0x5b7ddd);for(const _0x4db0c7 of _0x2b0bbc){const _0x3cfe57=null===_0x4db0c7['creator'];if(_0x3cfe57&&_0x4db0c7['toVersion']===_0x4db0c7['fromVersion'])continue;const _0x377d24=_0x4db0c7['toJSON']();_0x4baed0['addRevisionData'](_0x377d24,(_0x678e4f,_0x5063a9,_0xaca8e9)=>{if(_0x3cfe57){if(_0x1a5040)_0x1a5040['_update'](_0x678e4f,_0x5063a9);else{if(!_0x5063a9){const _0x1a6c71=_0xaca8e9['toJSON']();_0x1a6c71['id']=_0x49b9a1(),_0x8c8bf1['saveRevision'](_0x1a6c71,_0xaca8e9['toVersion'])['then'](_0x1162e6=>{_0x1a5040=_0x1162e6;});}}}else _0x4db0c7['_update'](_0x678e4f,_0x5063a9);});}}},w),_0x21d814);}['_enhanceShowRevisionViewerCallback'](){const _0x3e8da6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x22250e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3aff12=this['editor']['plugins']['get']('Autosave');await _0x3aff12['save']();}else await _0x22250e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x151f27=this['editor']['plugins']['get']('Dialog');_0x151f27['isOpen']&&_0x151f27['hide']();}const _0x6dbbb5=this['_getRevisionViewerEditorConfig']();return _0x3e8da6(_0x6dbbb5)['then'](_0x343de8=>{return(this['_viewerEditor']=_0x343de8,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x343de8;})['catch'](_0x1bd655=>(console['error'](_0x1bd655),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x40bca6=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x40bca6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x26d412=this['editor']['plugins']['get']('Annotations');_0x26d412['refreshVisibility'](),_0x26d412['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4d0fae){const _0x567817=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3c73e7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x527ae2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x527ae2,_0x4d0fae)['then'](_0x58e25a=>(_0x3c73e7['style']['display']='block',_0x567817['style']['display']='none',_0x58e25a));}['_closeRevisionViewer'](_0x4b0753){const _0xff160c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xff160c['style']['display']='',_0x4b0753['destroy']();}async['_restoreRevision'](_0x19ed07){const _0x274224=this['editor'],_0x3e1f7a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2c3872=_0x274224['plugins']['get']('RevisionTracker'),_0xb82f44=_0x3e1f7a['repository']['getRevision'](_0x19ed07);let _0x530039,_0x1600a4,_0x1691e1;try{_0x530039=await _0x3e1f7a['getRevisionData'](_0xb82f44),_0x1600a4=await _0x3e1f7a['getRevisionRootsAttributes'](_0xb82f44);}catch(_0x5ec012){return void console['error'](_0x5ec012);}_0x274224['model']['change'](_0x51432d=>{for(const _0x3c3c82 of Array['from'](_0x274224['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x51432d['removeMarker'](_0x3c3c82);}),_0x3e1f7a['isReady']=!0x1,_0x274224['model']['enqueueChange'](_0x1c1fcd=>{_0x1c1fcd['setSelection'](null),_0x1c1fcd['removeSelectionAttribute'](_0x274224['model']['document']['selection']['getAttributeKeys']());const _0xa8a6f1=Object['keys'](_0x530039);for(const _0x249d99 of _0x274224['model']['document']['roots'])'$graveyard'!=_0x249d99['rootName']&&_0x249d99['isAttached']()&&!_0xa8a6f1['includes'](_0x249d99['rootName'])&&_0x1c1fcd['detachRoot'](_0x249d99);for(const _0x231008 of _0xa8a6f1){let _0x371c4c=_0x274224['model']['document']['getRoot'](_0x231008);_0x371c4c&&_0x371c4c['isAttached']()||(_0x371c4c=_0x1c1fcd['addRoot'](_0x231008));const _0x12c987=_0x1600a4[_0x231008],_0x3d4b91=Object['keys'](_0x12c987),_0x16632e=_0x530039[_0x231008];for(const _0x139600 of _0x371c4c['getAttributeKeys']())_0x3d4b91['includes'](_0x139600)||_0x1c1fcd['removeAttribute'](_0x139600,_0x371c4c);for(const _0x58d879 of _0x3d4b91)_0x1c1fcd['setAttribute'](_0x58d879,_0x1600a4[_0x231008][_0x58d879],_0x371c4c);_0x1c1fcd['remove'](_0x1c1fcd['createRangeIn'](_0x371c4c)),_0x1c1fcd['insert'](_0x274224['data']['parse'](_0x16632e,_0x371c4c),_0x371c4c,0x0);}});const _0x109729=m(_0x274224['locale'],'Restored');if(_0xb82f44['name'])_0x1691e1=-0x1==_0xb82f44['name']['indexOf'](_0x109729)?_0x109729+':\x20'+_0xb82f44['name']:_0xb82f44['name'];else _0x1691e1=_0x109729+':\x20'+(_0xb82f44['createdAt']['toLocaleDateString'](_0x274224['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xb82f44['createdAt']['toLocaleTimeString'](_0x274224['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2c3872['saveRevision']({'name':_0x1691e1}),_0x3e1f7a['isReady']=!0x0,_0x274224['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x4a0531){super(_0x4a0531),this['_revisionViewer']=_0x4a0531['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1b971f=this['_revisionsRepository']['_revisions'],_0x3ff883=this['_createRevisionActions'](),_0x2191ad=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x1b971f,_0x3ff883,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',(_0x68c361,_0x7c359)=>{_0x7c359['revisionViews']['on']('add',(_0x5659b4,_0x43bd3a)=>{_0x43bd3a['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)),_0x2191ad['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4752f1=this['_revisionsRepository']['getRevision'](0x0);if(_0x4752f1){const _0x4e38b7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4752f1['id']);this['_revisionViewer']['compare'](_0x4752f1,_0x4e38b7);}}['_handleRevisionSelected'](_0x5b67ea,_0x315ebe){const _0x473bce=this['_revisionsRepository']['getRevision'](_0x315ebe['id']),_0x7656e6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x473bce['id']);this['_revisionViewer']['compare'](_0x473bce,_0x7656e6);}['_handleRevisionSetName'](_0x301340,_0x99b3bd){this['_revisionsRepository']['getRevision'](_0x99b3bd['id'])['setName'](_0x99b3bd['name']);}['_handleDiffChange'](_0x2ae5ef,_0x39c7db,_0x3f1482){const _0x1a7ff7=this['_revisionsRepository']['getRevisionsInDiff'](_0x3f1482);_0x1a7ff7['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1a7ff7),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1a7ff7[0x0]));}['_createRevisionActions'](){const _0xeb0654=this['editor'],_0x3f1ec1=w['availableRevisionActions'],_0x1f5795=_0xeb0654['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x1f5795['length'])return _0x1f5795['map'](_0x312fc9=>{const _0x4a70a1='string'==typeof _0x312fc9?Object['assign']({},_0x3f1ec1[_0x312fc9]):_0x312fc9;return _0x4a70a1['action']=_0x4a70a1['action']['bind'](this,_0xeb0654),_0x4a70a1['isVisible']&&(_0x4a70a1['isVisible']=_0x4a70a1['isVisible']['bind'](this,_0xeb0654)),_0x4a70a1;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x328536},_0x434105)=>{const _0x4ba26d=_0x328536['get'](d),_0x3ef2f9=_0x4ba26d['repository'];let _0x2e0198=_0x4ba26d['diff']['newRevisionId'],_0x49ed55=_0x434105['id'];_0x3ef2f9['getIndex'](_0x2e0198)>_0x3ef2f9['getIndex'](_0x49ed55)&&([_0x2e0198,_0x49ed55]=[_0x49ed55,_0x2e0198]),_0x4ba26d['compare'](_0x2e0198,_0x49ed55);},'isVisible':({plugins:_0x1ad2b9},_0x27a44b)=>{const _0x27eb9d=_0x1ad2b9['get'](d);return!(_0x27eb9d['repository']['getRevisionsInDiff'](_0x27eb9d['diff'])['length']>0x2)&&!_0x27a44b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x230316,{id:_0x59b8a8})=>{_0x230316['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x59b8a8);},'isVisible':({plugins:_0x394110},_0x1cb6a8)=>!!_0x394110['get'](d)['repository']['getLaterVisibleRevision'](_0x1cb6a8['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x237f1e},{id:_0x3d7404,revisionNameView:_0x47adc5})=>{const _0x4741c8=_0x237f1e['get'](d),_0x2aef04=_0x4741c8['repository']['getEarlierVisibleRevision'](_0x3d7404);_0x4741c8['compare'](_0x3d7404,_0x2aef04),_0x47adc5['focus'](),_0x47adc5['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x26c3da,_0x294fad){super(_0x26c3da),this['_view']=_0x294fad,this['_toolbarConfig']=ot(_0x26c3da['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x15360e){const _0x2cfc53=this['editor'],_0xfdee8b=this['view'],_0x24724c=_0x2cfc53['editing']['view'],_0x2c955c=_0xfdee8b['editable'],_0x2dae4a=_0x24724c['document']['getRoot']();_0x2c955c['name']=_0x2dae4a['rootName'],_0xfdee8b['render']();const _0x4d7a97=_0x2c955c['element'];this['setEditableElement'](_0x2c955c['name'],_0x4d7a97),_0xfdee8b['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x24724c['attachDomRoot'](_0x4d7a97),this['_elementReplacer']['replace'](_0x15360e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2b10a1=this['view'],_0x318825=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x318825['detachDomRoot'](_0x2b10a1['editable']['name']),_0x2b10a1['destroy']();}['_initToolbar'](){const _0x5c80d9=this['view'];_0x5c80d9['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5c80d9['stickyPanel']['limiterElement']=_0x5c80d9['element'],_0x5c80d9['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x47ad7e})=>_0x47ad7e),_0x5c80d9['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5c80d9['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x229f09,_0x34bebd,_0x35a6f7={}){super(_0x229f09),this['stickyPanel']=new ut(_0x229f09),this['toolbar']=new lt(_0x229f09,{'shouldGroupWhenFull':_0x35a6f7['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x229f09,_0x34bebd);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4b5322,_0x2a6a03){super(_0x2a6a03),this['sourceElement']=_0x4b5322,this['model']['document']['createRoot']();const _0x37de9c=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x37de9c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x399fe3,_0x101e93){const _0x17b39a=new this(_0x399fe3,_0x101e93);return await _0x17b39a['initPlugins'](),await _0x17b39a['ui']['init'](_0x399fe3),await _0x17b39a['data']['init'](_0x17b39a['config']['get']('initialData')||''),_0x17b39a['fire']('ready'),_0x17b39a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x31326a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x26174d){function _0x33782d(_0x1efad6){return _0x1efad6['map'](_0x25aaef=>String['fromCharCode'](_0x25aaef))['join']('');}super(_0x26174d),this['result']='end',_0x26174d[_0x33782d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x33782d([0x76,0x69,0x65,0x77])][_0x33782d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x33782d([0x61,0x75,0x74,0x6f]),_0x26174d[_0x33782d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x33782d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x33782d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x33782d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x33782d([0x6f,0x6b])});}}class k extends _0x31326a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x587675){if(super(_0x587675),!this['editor']['config']['get']('revisionHistory'))throw new _0x49f1f6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3fe19b=>this['_showRevisionViewer']({..._0x3fe19b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0xe361ad=>this['_closeRevisionViewer'](_0xe361ad)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x563718=>this['_restoreRevision'](_0x563718)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x40d1c0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x40d1c0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x27ad09){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x27ad09);}['getRevision'](_0x3f6edb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3f6edb);}['getRevisions'](_0x27643b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x27643b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xfbee94=this['editor'],_0x582c1e=_0x56c44c(_0xfbee94,p),_0x552187=_0xfbee94['plugins']['get']('RevisionTracker'),_0x22d020=_0xfbee94['plugins']['get']('Users')['users'];return _0x582c1e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x582c1e['lazyRoots'],(_0x582c1e['plugins']['push'](bt,d,g,class extends _0x31326a{static get['requires'](){return[d,'Users'];}['init'](){const _0x5c6737=this['editor']['plugins']['get']('Users');for(const _0x587ec3 of _0x22d020)_0x587ec3['isAnonymous']||_0x5c6737['getUser'](_0x587ec3['id'])||_0x5c6737['addUser'](_0x587ec3);const _0x173df9=_0x552187['repository']['getRevisions']();let _0x5b335f=null;const _0x5157dc=this['editor']['plugins']['get']('RevisionViewer');_0x5157dc['adapter']=_0x552187['adapter'],_0x5157dc['bind']('isEnabled')['to'](_0x552187),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xfbee94,'isReadOnly',_0x365a2b=>!_0x365a2b);for(const _0x39ab6b of _0x173df9){const _0x32fab1=null===_0x39ab6b['creator'];if(_0x32fab1&&_0x39ab6b['toVersion']===_0x39ab6b['fromVersion'])continue;const _0xe946c5=_0x39ab6b['toJSON']();_0x5157dc['addRevisionData'](_0xe946c5,(_0x4b139c,_0x5a46b3,_0x2aaf34)=>{if(_0x32fab1){if(_0x5b335f)_0x5b335f['_update'](_0x4b139c,_0x5a46b3);else{if(!_0x5a46b3){const _0x189986=_0x2aaf34['toJSON']();_0x189986['id']=_0x66ae84(),_0x552187['saveRevision'](_0x189986,_0x2aaf34['toVersion'])['then'](_0xf4ace0=>{_0x5b335f=_0xf4ace0;});}}}else _0x39ab6b['_update'](_0x4b139c,_0x5a46b3);});}}},w),_0x582c1e);}['_enhanceShowRevisionViewerCallback'](){const _0x17a3bf=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1c70f3=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x226a2f=this['editor']['plugins']['get']('Autosave');await _0x226a2f['save']();}else await _0x1c70f3['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x7c744=this['editor']['plugins']['get']('Dialog');_0x7c744['isOpen']&&_0x7c744['hide']();}const _0x4396e9=this['_getRevisionViewerEditorConfig']();return _0x17a3bf(_0x4396e9)['then'](_0x3cb36b=>{return(this['_viewerEditor']=_0x3cb36b,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x3cb36b;})['catch'](_0x16151b=>(console['error'](_0x16151b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4da94a=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4da94a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x518eb5=this['editor']['plugins']['get']('Annotations');_0x518eb5['refreshVisibility'](),_0x518eb5['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5b8025){const _0x3e3cbb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0xd8dfcc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x337dde=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x337dde,_0x5b8025)['then'](_0x3f3be6=>(_0xd8dfcc['style']['display']='block',_0x3e3cbb['style']['display']='none',_0x3f3be6));}['_closeRevisionViewer'](_0x97134e){const _0x12b8c3=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x12b8c3['style']['display']='',_0x97134e['destroy']();}async['_restoreRevision'](_0x3ebefe){const _0x52f944=this['editor'],_0x135eaf=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x267ca6=_0x52f944['plugins']['get']('RevisionTracker'),_0x1e6113=_0x135eaf['repository']['getRevision'](_0x3ebefe);let _0x2821c5,_0x4810d7,_0x48e813;try{_0x2821c5=await _0x135eaf['getRevisionData'](_0x1e6113),_0x4810d7=await _0x135eaf['getRevisionRootsAttributes'](_0x1e6113);}catch(_0x4ce208){return void console['error'](_0x4ce208);}_0x52f944['model']['change'](_0x37dce7=>{for(const _0x4e57c0 of Array['from'](_0x52f944['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x37dce7['removeMarker'](_0x4e57c0);}),_0x135eaf['isReady']=!0x1,_0x52f944['model']['enqueueChange'](_0x1030b4=>{_0x1030b4['setSelection'](null),_0x1030b4['removeSelectionAttribute'](_0x52f944['model']['document']['selection']['getAttributeKeys']());const _0x5a2567=Object['keys'](_0x2821c5);for(const _0x99694b of _0x52f944['model']['document']['roots'])'$graveyard'!=_0x99694b['rootName']&&_0x99694b['isAttached']()&&!_0x5a2567['includes'](_0x99694b['rootName'])&&_0x1030b4['detachRoot'](_0x99694b);for(const _0x45262b of _0x5a2567){let _0x1c939f=_0x52f944['model']['document']['getRoot'](_0x45262b);_0x1c939f&&_0x1c939f['isAttached']()||(_0x1c939f=_0x1030b4['addRoot'](_0x45262b));const _0x56ed4f=_0x4810d7[_0x45262b],_0x3be9c2=Object['keys'](_0x56ed4f),_0x464b72=_0x2821c5[_0x45262b];for(const _0x5ee22c of _0x1c939f['getAttributeKeys']())_0x3be9c2['includes'](_0x5ee22c)||_0x1030b4['removeAttribute'](_0x5ee22c,_0x1c939f);for(const _0x1d9308 of _0x3be9c2)_0x1030b4['setAttribute'](_0x1d9308,_0x4810d7[_0x45262b][_0x1d9308],_0x1c939f);_0x1030b4['remove'](_0x1030b4['createRangeIn'](_0x1c939f)),_0x1030b4['insert'](_0x52f944['data']['parse'](_0x464b72,_0x1c939f),_0x1c939f,0x0);}});const _0xe9c820=m(_0x52f944['locale'],'Restored');if(_0x1e6113['name'])_0x48e813=-0x1==_0x1e6113['name']['indexOf'](_0xe9c820)?_0xe9c820+':\x20'+_0x1e6113['name']:_0x1e6113['name'];else _0x48e813=_0xe9c820+':\x20'+(_0x1e6113['createdAt']['toLocaleDateString'](_0x52f944['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1e6113['createdAt']['toLocaleTimeString'](_0x52f944['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x267ca6['saveRevision']({'name':_0x48e813}),_0x135eaf['isReady']=!0x0,_0x52f944['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};