@ckeditor/ckeditor5-revision-history 44.0.0-alpha.5 → 44.0.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +8 -8
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x1212e4,uid as _0x1ced54,Collection as _0x2f121a,logWarning as _0x320a3b,FocusTracker as _0x20319a,KeystrokeHandler as _0x3c6629,scrollViewportToShowTarget as _0xdc13e8,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x52c9ac}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xd15063,set as _0xe216fa,unset as _0x20a92e,isEqual as _0xf460ad}from'lodash-es';import{Plugin as _0x9a5545,PendingActions as _0xf8d3ba,icons as _0x25fa55,Command as _0x16bd35,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5241b4,getMarkerDomElement as _0x1e3d9d,ConfirmMixin as _0x735357,sanitizeEditorConfig as _0x48122b}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x30434f,ViewText as _0x5b9193,ViewElement as _0x3ff468,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x4221dd,ViewAttributeElement as _0x414029,ViewEmptyElement as _0x452337,ViewRawElement as _0x3497f3,ViewUIElement as _0xa39994,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x4f4dcf,injectCssTransitionDisabler as ts,submitHandler as _0x258bed,LabeledFieldView as at,createLabeledInputText as _0x5e8fe9,createDropdown as _0x5c06d4,ListView as te,ListItemView as _0xeca532,ButtonView as _0x18590d,MenuBarMenuView as _0x5afccc,MenuBarMenuListView as _0x1e0c87,MenuBarMenuListItemView as _0x51e979,MenuBarMenuListItemButtonView as _0x39a7a7,ContextualBalloon as _0x613301,ToolbarSeparatorView as _0x3b7cad,IconView as _0x58df23,addListToDropdown as _0x584b38,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x143ed1}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x1212e4(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3e292d){super(),this['id']=_0x3e292d['id']||_0x1ced54(),this['creator']=_0x3e292d['creator']||null,this['authors']=_0x3e292d['authors']||[],this['diffData']=_0x3e292d['diffData']||null,this['toVersion']=_0x3e292d['toVersion']||0x0,this['fromVersion']=_0x3e292d['fromVersion']||0x0,this['set']('name',_0x3e292d['name']||''),this['set']('createdAt',_0x3e292d['createdAt']||new Date()),this['set']('attributes',_0x3e292d['attributes']||{});}['setName'](_0x59bcb1){this['_update']({'name':_0x59bcb1});}['setAttribute'](_0xdfa05d,_0x49e506){const _0x208a58=_0xd15063(this['attributes']);_0xe216fa(_0x208a58,_0xdfa05d,_0x49e506),this['_update']({'attributes':_0x208a58});}['removeAttribute'](_0x2eb7a7){const _0x5aea12=_0xd15063(this['attributes']);_0x20a92e(_0x5aea12,_0x2eb7a7),this['_update']({'attributes':_0x5aea12});}['_update'](_0x257183,_0x6a8b4=!0x1){let _0x52f5a9=!0x1;const _0x502de6={'id':this['id']},_0x3d74d9=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x270e45 of _0x3d74d9){const _0x2900d9=_0x257183[_0x270e45];void 0x0!==_0x2900d9&&_0x2900d9!==this[_0x270e45]&&(this[_0x270e45]=_0x2900d9,_0x502de6[_0x270e45]=_0x2900d9,_0x52f5a9=!0x0);}_0x52f5a9&&(_0x502de6['authors']&&(_0x502de6['authorsIds']=_0x502de6['authors']['map'](_0x38030e=>_0x38030e['id']),delete _0x502de6['authors']),this['fire']('_update',_0x502de6,_0x6a8b4));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xe1d03e=>_0xe1d03e['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x9a5545{['_revisions'];static get['requires'](){return[_0x5241b4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x20eb18){super(_0x20eb18),this['_revisions']=new _0x2f121a();}['afterInit'](){!async function(_0x36e148){const _0x564740=_0x4f50b1([0x62,0x30,0x73,0x4f,0x68,0x74,0x53,0x6f,0x37,0x49,0x55,0x34,0x70,0x4c,0x32,0x6a,0x64,0x76,0x31,0x75,0x63,0x61,0x6c,0x56,0x4b,0x65,0x5a,0x69,0x6e,0x4e,0x44,0x33,0x6b,0x43,0x78,0x39,0x4d,0x72,0x58,0x77,0x54,0x66,0x7a,0x4a,0x59,0x47,0x51,0x50,0x6d,0x67,0x35,0x46,0x71,0x79,0x36,0x38,0x42,0x57,0x48,0x45,0x52,0x41]),_0x3cae14=0xeb829,_0x3ecc3c=0x29160cc0,_0x4d65e2=0x29115b20^_0x3ecc3c,_0x2d8397=window[_0x4f50b1([0x44,0x61,0x74,0x65])][_0x4f50b1([0x6e,0x6f,0x77])](),_0x2efc27=_0x36e148[_0x4f50b1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c618a=new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5bae80=>{_0x2efc27[_0x4f50b1([0x6f,0x6e,0x63,0x65])](_0x4f50b1([0x72,0x65,0x61,0x64,0x79]),_0x5bae80);}),_0x443165={[_0x4f50b1([0x6b,0x74,0x79])]:_0x4f50b1([0x45,0x43]),[_0x4f50b1([0x75,0x73,0x65])]:_0x4f50b1([0x73,0x69,0x67]),[_0x4f50b1([0x63,0x72,0x76])]:_0x4f50b1([0x50,0x2d,0x32,0x35,0x36]),[_0x4f50b1([0x78])]:_0x4f50b1([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]),[_0x4f50b1([0x79])]:_0x4f50b1([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]),[_0x4f50b1([0x61,0x6c,0x67])]:_0x4f50b1([0x45,0x53,0x32,0x35,0x36])},_0x2d1332=_0x2efc27[_0x4f50b1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4f50b1([0x67,0x65,0x74])](_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xe7b31e(){let _0x308f5d,_0x33c268=null,_0x276938=null;try{if(_0x2d1332==_0x4f50b1([0x47,0x50,0x4c]))return _0x4f50b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x308f5d=_0x2c0ce4(),!_0x308f5d)return _0x4f50b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x308f5d[_0x4f50b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x276938=_0x1cc86d(_0x308f5d[_0x4f50b1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x308f5d[_0x4f50b1([0x6a,0x74,0x69])])),await _0x3b4b59()?_0x27058f()?_0x3aa300()?_0x4f50b1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f2bbf()?(_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f50b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x33c268=_0x4bff2c(_0x4f50b1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f50b1([0x74,0x72,0x69,0x61,0x6c])&&(_0x33c268=_0x4bff2c(_0x4f50b1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4f50b1([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x33c268=_0x4bff2c(_0x4f50b1([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x12a683()):_0x4f50b1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4f50b1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4f50b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x21a99d){return _0x4f50b1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3aa300(){const _0x2af4a7=[_0x4f50b1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4f50b1([0x74,0x72,0x69,0x61,0x6c])][_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2d8397/0x3e8:0xe10*_0x4d65e2;return _0x308f5d[_0x4f50b1([0x65,0x78,0x70])]<_0x2af4a7;}function _0x27058f(){const _0x11f6bf=_0x308f5d[_0x4f50b1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x11f6bf&&(!!_0x11f6bf[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x2a]))||(!!_0x11f6bf[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x52,0x48]))||!(!_0x11f6bf[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x52,0x52,0x48]))||!_0x4ea81b())));}function _0x4f2bbf(){const _0x119b9d=_0x308f5d[_0x4f50b1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x119b9d||0x0==_0x119b9d[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x529d99}=new URL(window[_0x4f50b1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x119b9d[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x529d99))return!0x0;const _0x36df3e=_0x529d99[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e]));return _0x119b9d[_0x4f50b1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x198c07=>_0x198c07[_0x4f50b1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f50b1([0x2a])))[_0x4f50b1([0x6d,0x61,0x70])](_0x9f920=>_0x9f920[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e])))[_0x4f50b1([0x73,0x6f,0x6d,0x65])](_0x5ceccd=>_0x36df3e[_0x4f50b1([0x65,0x76,0x65,0x72,0x79])]((_0x17ead8,_0x43ae7d)=>_0x5ceccd[_0x43ae7d]===_0x17ead8||_0x5ceccd[_0x43ae7d]===_0x4f50b1([0x2a])));}function _0x12a683(){return _0x33c268&&_0x276938?new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x533776,_0x2e47d8)=>{_0x33c268[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x533776,_0x2e47d8),_0x276938[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x269128=>{_0x269128!=_0x4f50b1([0x56,0x61,0x6c,0x69,0x64])&&_0x533776(_0x269128);},_0x2e47d8);}):_0x33c268||_0x276938||_0x4f50b1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cc86d(_0x2c8aab,_0x141903){return new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f865d=>{if(_0x55f01b())return _0x1f865d(_0x4f50b1([0x56,0x61,0x6c,0x69,0x64]));_0x54669c(),_0x2efc27[_0x4f50b1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4f50b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4780ed=!0x1;const _0x2f2edf=_0x1ced54();function _0x236631(_0x30b89b){return!!_0x30b89b&&(typeof _0x30b89b===_0x4f50b1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30b89b===_0x4f50b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30b89b[_0x4f50b1([0x74,0x68,0x65,0x6e])]===_0x4f50b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30b89b[_0x4f50b1([0x63,0x61,0x74,0x63,0x68])]===_0x4f50b1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e2612(_0x499309){_0x27c590(_0x499309)[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x5a52b3=>{if(!_0x5a52b3||_0x5a52b3[_0x4f50b1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4f50b1([0x6f,0x6b]))return _0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b5d11(_0x5c6119(_0x2f2edf+_0x141903))!=_0x5a52b3[_0x4f50b1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4f50b1([0x56,0x61,0x6c,0x69,0x64]);})[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x3658c6=>(_0x396ddb(),_0x3658c6),()=>{const _0x9b0e40=_0x35724d();return null==_0x9b0e40?(_0x396ddb(),_0x4f50b1([0x56,0x61,0x6c,0x69,0x64])):_0x4f50b1(_0x2d8397-_0x9b0e40>(0xd1a88c0^_0x3ecc3c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x1f865d)[_0x4f50b1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1f865d(_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x429bc2=0x2920e240^_0x3ecc3c;function _0x396ddb(){const _0x267576=_0x4f50b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5d11(_0x5c6119(_0x2c8aab)),_0x1251fd=_0x5102d9(_0x4b5d11(window[_0x4f50b1([0x4d,0x61,0x74,0x68])][_0x4f50b1([0x63,0x65,0x69,0x6c])](_0x2d8397/_0x429bc2)));window[_0x4f50b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f50b1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x267576,_0x1251fd);}function _0x35724d(){const _0x375c32=_0x4f50b1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b5d11(_0x5c6119(_0x2c8aab)),_0xa575ff=window[_0x4f50b1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4f50b1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x375c32);return _0xa575ff?window[_0x4f50b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5102d9(_0xa575ff),0x10)*_0x429bc2:null;}function _0x27c590(_0x207a8b){return new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x34bc25,_0x55da7c)=>{_0x207a8b[_0x4f50b1([0x74,0x68,0x65,0x6e])](_0x34bc25,_0x55da7c),window[_0x4f50b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55da7c,0x2917d800^_0x3ecc3c);});}}_0x2efc27[_0x4f50b1([0x6f,0x6e])](_0x4f50b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2d127f,_0x75c61c)=>{if(_0x75c61c[0x0]!=_0x2c8aab)return _0x1f865d(_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x75c61c[0x1]={..._0x75c61c[0x1],[_0x4f50b1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f2edf};},{[_0x4f50b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f50b1([0x68,0x69,0x67,0x68])}),_0x2efc27[_0x4f50b1([0x6f,0x6e])](_0x4f50b1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f428a=>{_0x236631(_0x4f428a[_0x4f50b1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4780ed=!0x0,_0x4e2612(_0x4f428a[_0x4f50b1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4f50b1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4f50b1([0x6c,0x6f,0x77])}),_0x5c618a[_0x4f50b1([0x74,0x68,0x65,0x6e])](()=>{_0x4780ed||_0x1f865d(_0x4f50b1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55f01b(){return _0x2efc27[_0x4f50b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f50b1([0x76,0x69,0x65,0x77])][_0x4f50b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4f50b1([0x61,0x75,0x74,0x6f]);}function _0x54669c(){_0x2efc27[_0x4f50b1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f50b1([0x76,0x69,0x65,0x77])][_0x4f50b1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f50b1([0x61,0x75,0x74,0x6f]);}}function _0x4bff2c(_0x7cb3e){const _0x3c906e=[new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3780c4=>setTimeout(_0x3780c4,0x291f320c^_0x3ecc3c)),_0x5c618a[_0x4f50b1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a4cc7=>{const _0x3eb300=0x29160cc7^_0x3ecc3c,_0x53e1e0=_0x36e148[_0x4f50b1([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x125f5e(){_0x53e1e0[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3eb300&&_0x5a4cc7();}_0x125f5e(),_0x53e1e0[_0x4f50b1([0x6f,0x6e])](_0x4f50b1([0x61,0x64,0x64]),_0x125f5e);})),new window[(_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcafe2f=>{function _0x4e6f9b(){for(const _0x4a72e3 in window)if(window[_0x4f50b1([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4f50b1([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4a72e3))&&window[_0x4a72e3]==_0x3cae14)return _0xcafe2f();_0x2efc27[_0x4f50b1([0x73,0x74,0x61,0x74,0x65])]!=_0x4f50b1([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4f50b1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4e6f9b,0x29161f48^_0x3ecc3c);}_0x20b07d(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x4e6f9b();})];return window[_0x4f50b1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f50b1([0x72,0x61,0x63,0x65])](_0x3c906e)[_0x4f50b1([0x74,0x68,0x65,0x6e])](()=>_0x7cb3e);}async function _0x4542d4(){if(await _0x5c618a,_0x20b07d(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5a9905=_0x36e148[_0x4f50b1([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x749ee=_0x36e148[_0x4f50b1([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])](_0x5a9905[_0x4f50b1([0x69,0x64])]),_0x26f0fb=_0x183142(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x26f0fb[_0x4f50b1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5a9905['id'],_0x749ee?_0x749ee['id']:null,!0x0),_0x26f0fb[_0x4f50b1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x26f0fb[_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x26f0fb[_0x4f50b1([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x508bb8,void(_0x26f0fb[_0x4f50b1([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x508bb8);}if(_0x20b07d(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5d6d87=_0x183142(_0x4f50b1([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5d6d87[_0x4f50b1([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5d6d87[_0x4f50b1([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5d6d87[_0x4f50b1([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x508bb8,_0x5d6d87[_0x4f50b1([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x508bb8;}_0x2efc27[_0x4f50b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f50b1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x508bb8,_0x2efc27[_0x4f50b1([0x6d,0x6f,0x64,0x65,0x6c])][_0x4f50b1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x508bb8,_0x2efc27[_0x4f50b1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4f50b1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4ea81b(){return _0x20b07d(_0x4f50b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x183142(_0x4f50b1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4f50b1([0x73,0x74,0x61,0x74,0x65])]==_0x4f50b1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x287a9c(_0x3739ef){const _0x524a84=_0x31fb17();_0x2efc27[_0x524a84]=_0x4f50b1([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])+_0x3739ef,_0x3739ef[_0x4f50b1([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4f50b1([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x31fb17()]=_0x3cae14),_0x3739ef!=_0x4f50b1([0x56,0x61,0x6c,0x69,0x64])&&_0x4542d4();}function _0x31fb17(){const _0x56d6a0=window[_0x4f50b1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4f50b1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4f50b1([0x6e,0x6f,0x77])]())[_0x4f50b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4f50b1([0x2e]),'');let _0x408500=_0x4f50b1([0x62]);for(let _0x3f6fc4=0x0;_0x3f6fc4<_0x56d6a0[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3f6fc4+=0x2){let _0x5a2d1e=window[_0x4f50b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56d6a0[_0x4f50b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f6fc4,_0x3f6fc4+0x2));_0x5a2d1e>=_0x564740[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5a2d1e-=_0x564740[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x408500+=_0x564740[_0x5a2d1e];}return _0x408500;}function _0x2c0ce4(){const _0x16acfa=_0x2d1332[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e]));if(0x3!=_0x16acfa[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1ce748(_0x16acfa[0x1]);function _0x1ce748(_0x338e46){const _0x1e8954=_0x389842(_0x338e46);return _0x1e8954&&_0x1d5be2()?_0x1e8954:null;function _0x1d5be2(){const _0x510844=_0x1e8954[_0x4f50b1([0x6a,0x74,0x69])],_0x30a62a=window[_0x4f50b1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x510844[_0x4f50b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x510844[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x48d158={..._0x1e8954,[_0x4f50b1([0x6a,0x74,0x69])]:_0x510844[_0x4f50b1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x510844[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x48d158[_0x4f50b1([0x76,0x63])],_0x5c6119(_0x48d158)==_0x30a62a;}}}async function _0x3b4b59(){let _0x29cf83=!0x0;try{const _0x55782d=_0x2d1332[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])](_0x4f50b1([0x2e])),[_0x541a01,_0x46327b,_0x944afc]=_0x55782d;return _0x55dfeb(_0x541a01),await _0x27c3d9(_0x541a01,_0x46327b,_0x944afc),_0x29cf83;}catch(_0x4971fc){return!0x1;}function _0x55dfeb(_0x21328a){const _0xf846f2=_0x389842(_0x21328a);_0xf846f2&&_0xf846f2[_0x4f50b1([0x61,0x6c,0x67])]==_0x4f50b1([0x45,0x53,0x32,0x35,0x36])||(_0x29cf83=!0x1);}async function _0x27c3d9(_0x793f22,_0x529985,_0x391d05){const _0x50e4bc=window[_0x4f50b1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4f50b1([0x66,0x72,0x6f,0x6d])](_0x3c377b(_0x391d05),_0x82d19c=>_0x82d19c[_0x4f50b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2181da=new window[(_0x4f50b1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4f50b1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x793f22+_0x4f50b1([0x2e])+_0x529985),_0xa4c199=window[_0x4f50b1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4f50b1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa4c199)return;const _0x4632f9=await _0xa4c199[_0x4f50b1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4f50b1([0x6a,0x77,0x6b]),_0x443165,{[_0x4f50b1([0x6e,0x61,0x6d,0x65])]:_0x4f50b1([0x45,0x43,0x44,0x53,0x41]),[_0x4f50b1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4f50b1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4f50b1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa4c199[_0x4f50b1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4f50b1([0x6e,0x61,0x6d,0x65])]:_0x4f50b1([0x45,0x43,0x44,0x53,0x41]),[_0x4f50b1([0x68,0x61,0x73,0x68])]:{[_0x4f50b1([0x6e,0x61,0x6d,0x65])]:_0x4f50b1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4632f9,_0x50e4bc,_0x2181da)||(_0x29cf83=!0x1);}}function _0x389842(_0x55bac2){return _0x55bac2[_0x4f50b1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4f50b1([0x65,0x79]))?JSON[_0x4f50b1([0x70,0x61,0x72,0x73,0x65])](_0x3c377b(_0x55bac2)):null;}function _0x3c377b(_0x45c12f){return window[_0x4f50b1([0x61,0x74,0x6f,0x62])](_0x45c12f[_0x4f50b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4f50b1([0x2b]))[_0x4f50b1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4f50b1([0x2f])));}function _0x5c6119(_0x1c8675){let _0x69b08b=0x1505;function _0x536316(_0x5ba64d){for(let _0x294200=0x0;_0x294200<_0x5ba64d[_0x4f50b1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x294200++){const _0x16c861=_0x5ba64d[_0x4f50b1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x294200);_0x69b08b=(_0x69b08b<<0x5)+_0x69b08b+_0x16c861,_0x69b08b&=_0x69b08b;}}function _0x4c3b8f(_0x47d968){Array[_0x4f50b1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x47d968)?_0x47d968[_0x4f50b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c3b8f):_0x47d968&&typeof _0x47d968==_0x4f50b1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4f50b1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x47d968)[_0x4f50b1([0x73,0x6f,0x72,0x74])]()[_0x4f50b1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x7582e5,_0x556d2c])=>{_0x536316(_0x7582e5),_0x4c3b8f(_0x556d2c);}):_0x536316(window[_0x4f50b1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x47d968));}return _0x4c3b8f(_0x1c8675),_0x69b08b>>>0x0;}function _0x4b5d11(_0x3bc980){return _0x3bc980[_0x4f50b1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4f50b1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4f50b1([0x30]));}function _0x5102d9(_0x2ff206){return _0x2ff206[_0x4f50b1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4f50b1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4f50b1([0x6a,0x6f,0x69,0x6e])]('');}function _0x20b07d(_0x1a163e){return _0x2efc27[_0x4f50b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f50b1([0x68,0x61,0x73])](_0x1a163e);}function _0x183142(_0x1fdfdb){return _0x2efc27[_0x4f50b1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4f50b1([0x67,0x65,0x74])](_0x1fdfdb);}function _0x508bb8(){}function _0x4f50b1(_0x311dab){return _0x311dab['map'](_0x1087ab=>String['fromCharCode'](_0x1087ab))['join']('');}_0x287a9c(await _0xe7b31e());}(this);}['createRevision'](_0x5d57a5){const _0x1ee771=this['editor']['plugins']['get']('Users');return new a({'id':_0x5d57a5['id'],'name':_0x5d57a5['name'],'creator':_0x5d57a5['creatorId']?_0x1ee771['getUser'](_0x5d57a5['creatorId']):null,'diffData':_0x5d57a5['diffData']||_0x5d57a5['data'],'authors':_0x5d57a5['authorsIds']['map'](_0xe8a8ca=>_0x1ee771['getUser'](_0xe8a8ca)),'createdAt':new Date(_0x5d57a5['createdAt']),'attributes':_0x5d57a5['attributes'],'fromVersion':_0x5d57a5['fromVersion'],'toVersion':_0x5d57a5['toVersion']});}['addRevision'](_0x33f324,_0x5300d8=0x0){this['_revisions']['add'](_0x33f324,_0x5300d8);}['getRevision'](_0x1184e5){return this['_revisions']['get'](_0x1184e5);}['getRevisions'](_0x11c25a={'toJSON':!0x1}){const _0xfcc66=Array['from'](this['_revisions']);return _0xfcc66['reverse'](),_0x11c25a['toJSON']?_0xfcc66['map'](_0x460776=>_0x460776['toJSON']()):_0xfcc66;}['getIndex'](_0x4eccd4){return this['_revisions']['getIndex'](_0x4eccd4);}['getEarlierVisibleRevision'](_0x3ebe5f){const [,_0x45e6ea]=this['getRevisionsIterator'](_0x3ebe5f,{'direction':'earlier'});return _0x45e6ea;}['getLaterVisibleRevision'](_0xb9c4ef){const [,_0x59e670]=this['getRevisionsIterator'](_0xb9c4ef,{'direction':'later'});return _0x59e670;}['getRevisionsInDiff'](_0x21a5d4){const _0x1b703b=[];for(const _0x10d506 of this['getRevisionsIterator'](_0x21a5d4['newRevisionId']))if(_0x1b703b['push'](_0x10d506),_0x10d506['id']===_0x21a5d4['oldRevisionId'])break;return _0x1b703b;}*['getRevisionsIterator'](_0x3f67de,{direction:_0x1e46ca='earlier',filter:_0x31650f=()=>!0x0}={}){const _0x357040='earlier'===_0x1e46ca?0x1:-0x1;let _0x38f41a=this['_revisions']['get'](_0x3f67de),_0x45e251=this['getIndex'](_0x38f41a);for(yield _0x38f41a;_0x38f41a;){if(_0x45e251+=_0x357040,_0x38f41a=this['getRevision'](_0x45e251),!_0x38f41a)return;_0x31650f(_0x38f41a)&&(yield _0x38f41a);}}}function R(_0x4451aa,_0xf04b54,_0xb35b1d){const t=_0x4451aa['t'];switch(_0xf04b54){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'},_0xb35b1d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xb35b1d);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x4221dd,'a':_0x414029,'e':_0x452337,'r':_0x3497f3,'u':_0xa39994};class l extends _0x9a5545{['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[_0x5241b4,j,_0xf8d3ba];}constructor(_0x4b6197){super(_0x4b6197),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2e2abc=_0x1ced54();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2e2abc},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 _0x17a5c9=this['repository']['getRevision'](0x0),_0x11e90c=_0x17a5c9&&null===_0x17a5c9['creator']?_0x17a5c9:null;if(this['_continueCurrentRevision']=!!_0x11e90c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x54e0a5=this['_source']['getCurrentRevisionId'](),_0x452314=this['repository']['getRevision'](_0x54e0a5);if(_0x452314)this['_startingVersion']=_0x452314['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x35e2ba=this['_source']['history']['_operations']['find'](_0xd59e77=>!_0xd59e77['_isInit']),_0x4f157b=_0x35e2ba?_0x35e2ba['baseVersion']:this['_source']['history']['version'];_0x17a5c9?(_0x17a5c9['toVersion']<_0x4f157b&&_0x17a5c9['_update']({'toVersion':_0x4f157b}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x11e90c['id'],this['_startingVersion']=_0x11e90c['fromVersion']):(this['_startingVersion']=_0x17a5c9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4f157b,this['_continueCurrentRevision']=!0x1);}}else _0x11e90c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x11e90c['toVersion'],this['editor']['model']['document']['history']['version']),_0x11e90c['fromVersion']===_0x11e90c['toVersion']?(0x0!==_0x11e90c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x11e90c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x11e90c['id'],this['_startingVersion']=_0x11e90c['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',_0x572a12=>!_0x572a12),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x369a29=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x514078;for(const _0x51ad47 in _0x369a29){const _0x19817a=_0x51ad47,_0x2fd0aa=_0x369a29[_0x19817a];if('revisionHistoryLicenseKeyValid'==_0x2fd0aa||'revisionHistoryLicenseKeyInvalid'==_0x2fd0aa||'revisionHistoryLicenseKeyExpired'==_0x2fd0aa||'revisionHistoryLicenseKeyDomainLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyNotAllowed'==_0x2fd0aa||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyTrialLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2fd0aa||'revisionHistoryLicenseKeyUsageLimit'==_0x2fd0aa){delete _0x369a29[_0x19817a],_0x514078=_0x2fd0aa,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x514078&&_0x369a29['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x514078&&_0x369a29['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x514078&&_0x369a29['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x514078&&_0x369a29['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x514078&&_0x369a29['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x514078&&_0x369a29['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x514078&&_0x369a29['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x514078&&_0x369a29['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x257a1f=this['repository']['getRevision'](0x0),_0xcc3649=await this['getRevisionDocumentData'](_0x257a1f),_0xc68c1=await this['getRevisionRootsAttributes'](_0x257a1f);this['_replaceEditorDataWithRevisionData'](_0xcc3649,_0xc68c1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x23bc83){this['_source']=_0x23bc83;}async['update'](){const _0x320a4c=await this['_source']['getLatestVersion']();if(_0x320a4c>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3116a7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x320a4c});_0x3116a7['authors']=_0x3116a7['authorsIds']['map'](_0x1cc378=>this['editor']['plugins']['get']('Users')['getUser'](_0x1cc378)),this['currentRevision']['_update'](_0x3116a7);}}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'](_0x1e2f02={},_0x2588ed=null){const _0x293239=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2588ed>this['currentRevision']['toVersion']&&(_0x2588ed=null),null===_0x2588ed&&(_0x2588ed=await this['_source']['getLatestVersion']());const _0x45defb=this['_getFromVersion'](_0x2588ed),_0x4b3002=this['buildRevisionData']({'from':_0x45defb,'to':_0x2588ed});if(this['currentRevision']['toVersion']<_0x2588ed){const _0x2a7d9c=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2588ed,'to':_0x2588ed});_0x2a7d9c['authors']=[],_0x2a7d9c['authorsIds']=[],_0x2a7d9c['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2a7d9c,!0x0),delete _0x2a7d9c['authors'],_0x293239['push'](_0x2a7d9c);}_0x1e2f02['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e2f02['name']=_0x1e2f02['name']||null,_0x1e2f02['id']=_0x1e2f02['id']||_0x1ced54(),_0x1e2f02={..._0x1e2f02,..._0x4b3002};const _0x262452=this['addRevisionData'](_0x1e2f02);_0x293239['push'](_0x1e2f02);const _0x49b7c3=this['repository']['getIndex'](_0x262452);if(0x0!==_0x49b7c3){const _0x640c4a=this['repository']['getRevision'](_0x49b7c3-0x1);if(_0x640c4a['fromVersion']!==_0x2588ed){const _0x103f4b=this['_revisionDataBuilder']['getData'](_0x2588ed,_0x640c4a['toVersion']),_0x54d7a8={'id':_0x640c4a['id'],'diffData':_0x103f4b['diffData'],'authorsIds':_0x103f4b['authorsIds'],'authors':_0x103f4b['authorsIds']['map'](_0x589b84=>this['editor']['plugins']['get']('Users')['getUser'](_0x589b84)),'fromVersion':_0x2588ed};_0x640c4a===this['currentRevision']&&(_0x54d7a8['createdAt']=new Date(_0x1e2f02['createdAt']['getTime']()+0xa)),_0x640c4a['_update'](_0x54d7a8,!0x0),delete _0x54d7a8['authors'],_0x293239['push'](_0x54d7a8);}}if(this['adapter']){for(const _0x3aee3c of _0x293239)this['_bufferUpdate'](_0x3aee3c['id'],_0x3aee3c,!0x0);this['sendBufferedUpdates']();}return _0x262452;}['addRevisionData'](_0x31039c){const _0x3c9f9b=this['repository']['createRevision'](_0x31039c);return this['adapter']&&_0x3c9f9b['on']('_update',(_0x5f26d7,_0x38595f,_0x19c246)=>{_0x19c246||(this['_bufferUpdate'](_0x38595f['id'],_0x38595f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x3c9f9b,this['_findInsertionIndex'](_0x3c9f9b)),_0x3c9f9b;}async['getRevisionDocumentData'](_0x59fd42){await this['_loadRevisionData'](_0x59fd42);const _0x152637={};for(const _0x157879 in _0x59fd42['diffData']){if(_0x59fd42['diffData'][_0x157879]['attachChange']&&!_0x59fd42['diffData'][_0x157879]['attachChange']['isAttached'])continue;const _0x4b6dea=this['_removeRevisionMarkers'](JSON['parse'](_0x59fd42['diffData'][_0x157879]['insertions'])),_0x1ef48f=this['editor']['editing']['view']['document'],_0x2090a6=new _0x30434f(_0x1ef48f,_0x4b6dea['map'](_0x4b61e3=>V(_0x4b61e3,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x152637[_0x157879]=this['editor']['data']['processor']['toData'](_0x2090a6),this['editor']['data']['processor']['useFillerType']('default');}return _0x152637;}async['getRevisionRootsAttributes'](_0x5263f3){await this['_loadRevisionData'](_0x5263f3);const _0x434aa5={};for(const _0x4782f8 in _0x5263f3['diffData'])_0x5263f3['diffData'][_0x4782f8]['attachChange']&&!_0x5263f3['diffData'][_0x4782f8]['attachChange']['isAttached']||(_0x434aa5[_0x4782f8]=_0x5263f3['diffData'][_0x4782f8]['attributesAfter']||{});return _0x434aa5;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x1d7e76=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x806576=0x0;_0x806576<_0x1d7e76['length'];_0x806576++){const _0x19bd9f=_0x1d7e76[_0x806576];let _0x38c1d2=!0x1;for(const _0x2165c9 of Object['keys'](_0x19bd9f))void 0x0===_0x19bd9f[_0x2165c9]?delete _0x19bd9f[_0x2165c9]:'id'!==_0x2165c9&&(_0x38c1d2=!0x0);_0x38c1d2||(_0x1d7e76[_0x806576]=null);}if(_0x1d7e76=_0x1d7e76['filter'](_0x1ca83a=>null!==_0x1ca83a),!_0x1d7e76['length'])return;for(let _0x199cc4=0x0;_0x199cc4<_0x1d7e76['length'];_0x199cc4++){const _0x122b9e=_0x1d7e76[_0x199cc4];void 0x0!==_0x122b9e['fromVersion']&&void 0x0===_0x122b9e['toVersion']&&(_0x122b9e['toVersion']=this['repository']['getRevision'](_0x122b9e['id'])['toVersion']),void 0x0!==_0x122b9e['toVersion']&&void 0x0===_0x122b9e['fromVersion']&&(_0x122b9e['fromVersion']=this['repository']['getRevision'](_0x122b9e['id'])['fromVersion']);}const _0x2deaca=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x1d7e76,_0x2deaca)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1fe2b4=>{if(_0x1fe2b4){for(const _0xc20de4 of _0x1fe2b4)this['setRevisionData']({'id':_0xc20de4['id'],'createdAt':_0xc20de4['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xe4a59d,_0x353fe9){let _0x33f652=this['editor']['config']['get']('initialData'),_0x3c833=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x33f652){_0x33f652={};for(const _0x4f2881 of this['editor']['model']['document']['getRootNames']())_0x33f652[_0x4f2881]='';}if('string'==typeof _0x33f652&&(_0x33f652={'main':_0x33f652}),void 0x0===_0x3c833){_0x3c833={};for(const _0x42bd50 of this['editor']['model']['document']['getRootNames']())_0x3c833[_0x42bd50]={};}let _0x4f1b0a=!0x1;const _0x4ae45d=Object['keys'](_0x33f652),_0x590ea4=Object['keys'](_0xe4a59d);for(const _0x5a8a9f of _0x4ae45d){if(_0x33f652[_0x5a8a9f]!==_0xe4a59d[_0x5a8a9f]&&''!==_0x33f652[_0x5a8a9f]['trim']()){_0x4f1b0a=!0x0;break;}if(!_0xf460ad(_0x3c833[_0x5a8a9f],_0x353fe9[_0x5a8a9f])&&Object['keys'](_0x3c833[_0x5a8a9f])['length']>0x0){_0x4f1b0a=!0x0;break;}}_0x4f1b0a||(_0x4f1b0a=_0x590ea4['some'](_0x4118d1=>!this['editor']['model']['document']['getRoot'](_0x4118d1))),_0x4f1b0a&&_0x320a3b('editor-initial-data-replaced-with-revision-data',{'editorData':_0x33f652,'editorRootsAttributes':_0x3c833,'revisionData':_0xe4a59d,'revisionRootsAttributes':_0x353fe9}),this['editor']['config']['set']('initialData',_0xe4a59d),this['editor']['config']['set']('rootsAttributes',_0x353fe9);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x560353=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x560353['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x28f796){const _0x583c29=this['repository']['getRevisions']();_0x583c29['reverse']();let _0x557590=0x0;for(;_0x557590<_0x583c29['length'];){const _0x14b778=_0x583c29[_0x557590];if(_0x14b778===this['currentRevision']){_0x557590++;continue;}if(_0x14b778['id']===this['_initialRevisionId'])break;const _0xb738e0=_0x28f796['toVersion']-_0x14b778['toVersion']||_0x28f796['fromVersion']-_0x14b778['fromVersion'];if(_0xb738e0>0x0)break;if(_0xb738e0<0x0)_0x557590++;else{if(!_0x28f796['creator']&&_0x14b778['creator'])break;if(_0x14b778['creator']||!_0x28f796['creator']){if(_0x28f796['createdAt']>_0x14b778['createdAt'])break;_0x557590++;}else _0x557590++;}}return _0x557590;}['setRevisionData'](_0x5e442a){const _0x31fde8=this['repository']['getRevision'](_0x5e442a['id']);if(_0x5e442a['createdAt']&&(_0x5e442a['createdAt']=new Date(_0x5e442a['createdAt'])),_0x5e442a['authorsIds']){const _0x3066d2=this['editor']['plugins']['get']('Users');_0x5e442a['authors']=_0x5e442a['authorsIds']['map'](_0x313160=>_0x3066d2['getUser'](_0x313160));}_0x31fde8['_update'](_0x5e442a,!0x0);}['buildRevisionData']({revision:_0x20db19=null,from:_0x4e5a95=null,to:_0x2462b9=null}){_0x4e5a95=null!==_0x4e5a95?_0x4e5a95:_0x20db19['fromVersion'],_0x2462b9=null!==_0x2462b9?_0x2462b9:_0x20db19['toVersion'];const _0x314554=this['_revisionDataBuilder']['getData'](_0x4e5a95,_0x2462b9),_0x1c7f36={'diffData':_0x314554['diffData'],'authorsIds':_0x314554['authorsIds'],'fromVersion':_0x4e5a95,'toVersion':_0x2462b9};if(!_0x20db19||_0x2462b9!==_0x20db19['toVersion']){const _0x50e886=_0x2462b9-0x1,_0x175ed7=this['_source']['history']['getOperation'](_0x50e886);_0x1c7f36['createdAt']=_0x175ed7&&_0x175ed7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4e5a95===this['_loadedStateData']['fromVersion']){for(const _0x2d1d8 of this['_loadedStateData']['authors'])_0x1c7f36['authorsIds']['includes'](_0x2d1d8['id'])||_0x1c7f36['authorsIds']['push'](_0x2d1d8['id']);}return _0x1c7f36;}['_loadRevisionData'](_0x49c4bf){if(!_0x49c4bf||_0x49c4bf['diffData'])return Promise['resolve']();{const _0x5e1561=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x5e1561,'revisionId':_0x49c4bf['id']})['then'](_0x158054=>{_0x49c4bf['diffData']=_0x158054['diffData'];});}}['_bufferUpdate'](_0x47617c,_0x30a90b,_0x267c0b){if(this['_bufferedUpdates']['has'](_0x47617c)){const _0x3ec4a8=this['_bufferedUpdates']['get'](_0x47617c);_0x30a90b=_0x267c0b?{..._0x3ec4a8,..._0x30a90b}:{..._0x30a90b,..._0x3ec4a8};}this['_bufferedUpdates']['set'](_0x47617c,_0x30a90b);}['_getFromVersion'](_0x4c23ac){const _0x37c4a7=this['repository']['getRevisions']();_0x37c4a7['reverse'](),_0x37c4a7['shift']();const _0x48a91b=_0x37c4a7['find'](_0x168bb6=>_0x168bb6['toVersion']<=_0x4c23ac)['toVersion'];return _0x48a91b<this['_startingVersion']?this['_startingVersion']:_0x48a91b;}['_createInitialRevision'](_0x5ce619){const _0x32e0aa=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x32e0aa)this['_initialRevisionId']=_0x32e0aa['id'];else{const _0x5d93d4=!this['editor']['model']['document']['roots']['find'](_0x399d37=>this['editor']['model']['hasContent'](_0x399d37)),_0xfa8534=this['editor']['plugins']['get']('Users')['me']['id'],_0x501c53=R(this['editor']['locale'],_0x5d93d4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5ce619,'to':_0x5ce619,'id':this['_initialRevisionId'],'name':_0x501c53,'creatorId':_0xfa8534});}}['_createCurrentRevision'](_0x5eb640){const _0x1466fb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1466fb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5eb640,'to':_0x5eb640,'id':_0x1466fb,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4a8d3c,from:_0xae28c6,to:_0x3c3c62,creatorId:_0x4669ee,id:_0x15bb9f}){const _0x2ab37c=this['buildRevisionData']({'from':_0xae28c6,'to':_0x3c3c62});_0x2ab37c['name']=_0x4a8d3c,_0x2ab37c['creatorId']=_0x4669ee,_0x2ab37c['id']=_0x15bb9f;const _0x16ce4a=this['addRevisionData'](_0x2ab37c);return this['adapter']&&this['_bufferUpdate'](_0x2ab37c['id'],_0x2ab37c,!0x0),_0x16ce4a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4f760a){return(_0x4f760a=_0x4f760a['filter'](_0x585e26=>!_0x585e26['name']||'revision-start'!==_0x585e26['name']&&'revision-end'!==_0x585e26['name']))['forEach'](_0x222b0e=>{'string'!=typeof _0x222b0e&&(_0x222b0e['children']=this['_removeRevisionMarkers'](_0x222b0e['children']),_0x222b0e['attributes']=_0x222b0e['attributes']['filter'](_0x4b57ce=>!_0x4b57ce[0x0]['startsWith']('data-revision-')));}),_0x4f760a;}}function V(_0x563f52,_0x5f5c22){const _0x472d7a=_0x5f5c22['editing']['view']['document'];if('string'==typeof _0x563f52)return new _0x5b9193(_0x472d7a,_0x563f52);{const _0x3e1c1a=_0x563f52['children']['map'](_0x42053b=>V(_0x42053b,_0x5f5c22));return new(C[_0x563f52['type']]||_0x3ff468)(_0x472d7a,_0x563f52['name'],_0x563f52['attributes'],_0x3e1c1a);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x24541f){this['editor']=_0x24541f,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'](_0x28002b){this['source']=_0x28002b;const _0x38ac9c=new Map(),_0x5c8e57=new Map(),_0x5a3c3f=this['editor']['model']['document']['roots']['map'](_0x3d2590=>_0x3d2590['rootName']);for(const _0x4cb64a of _0x5a3c3f){const _0x445a69=this['editor']['model']['document']['getRoot'](_0x4cb64a),_0x4a30c5=F(_0x445a69);_0x38ac9c['set'](_0x4cb64a,_0x4a30c5),_0x5c8e57['set'](_0x4cb64a,Object['fromEntries'](_0x445a69['getAttributes']()));}const _0x38af73=Array['from'](this['editor']['model']['markers'])['map'](_0x5a1ed6=>[_0x5a1ed6['name'],_0x5a1ed6['getRange']()]),_0x388808=this['source']['version'];this['_saveMetaData'](_0x388808,_0x38ac9c,_0x38af73,_0x5c8e57),this['_startingRevisionId']=this['_revisionId'];const _0x198437=new Map(),_0x56a9e2=new Map();for(const _0x5d18a0 of _0x5a3c3f){const _0x595040=B(_0x5d18a0);_0x198437['set'](_0x5d18a0,_0x595040),_0x56a9e2['set'](_0x5d18a0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x198437,[],_0x56a9e2);}['getData'](_0x36dfcf,_0xb0c92c){if(this['_lastFrom']===_0x36dfcf&&this['_lastTo']<=_0xb0c92c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xb0c92c,!0x0);else{if(!this['_savedMetaData']['has'](_0x36dfcf)){const _0x560a81=this['_getPreviousFrom'](_0x36dfcf);this['_calculateMetaData'](_0x560a81,_0x36dfcf,!0x1);}this['_calculateMetaData'](_0x36dfcf,_0xb0c92c,!0x0);}return this['_lastFrom']=_0x36dfcf,this['_lastTo']=_0xb0c92c,this['_getState']();}['loadState'](_0x53d8fe){this['_reset'](),this['_lastFrom']=_0x53d8fe['fromVersion'],this['_lastTo']=_0x53d8fe['toVersion'];for(const _0xd98a42 in _0x53d8fe['diffData']){const _0x251172=_0x53d8fe['diffData'][_0xd98a42]['attachChange'],_0x238f86=_0xd15063(_0x53d8fe['diffData'][_0xd98a42]['attributesBefore'])||{},_0xf436e7=this['_makeModelFromViewString'](_0x53d8fe['diffData'][_0xd98a42]['deletions']);_0xf436e7['rootName']=_0xd98a42,_0xf436e7['_isAttached']=!_0x251172||!_0x251172['isAttached'],_0xf436e7['isAttached']=()=>_0xf436e7['_isAttached'],this['_baseRoots']['set'](_0xd98a42,_0xf436e7),this['_baseRootsAttributes']['set'](_0xd98a42,_0x238f86),_0x251172&&this['_touchedRoots']['set'](_0xd98a42,_0x251172);const _0xa55aed=this['_makeIdsRoot'](_0xf436e7);this['_baseIdsRoots']['set'](_0xd98a42,_0xa55aed);for(const [_0x33a898,_0x5732f8]of _0xf436e7['markers']){if(!_0x33a898['startsWith']('revision:'))continue;const _0x297b4f=_0x33a898['split'](':')[0x2];for(const _0x1b6e0f of _0x5732f8['getWalker']({'singleCharacters':!0x0})){const _0x17fd5f=this['_getVidAttributeName'](_0x1b6e0f),_0x59d79a='elementEnd'==_0x1b6e0f['type']?_0x1b6e0f['previousPosition']['path']['slice'](0x0,-0x1):_0x1b6e0f['previousPosition']['path'],_0x2328c1=_0xa55aed['getNodeByPath'](_0x59d79a)['getAttribute'](_0x17fd5f);this['_touched']['set'](_0x2328c1,{'userId':_0x297b4f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x162757=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4eef4c=>!this['_touched']['has'](_0x4eef4c));let _0x27e0bf=0x0;const _0xb57577=new Map();for(const _0x529e45 in _0x53d8fe['diffData']){const _0x570621=_0x53d8fe['diffData'][_0x529e45]['attachChange'],_0xd5021c=_0xd15063(_0x53d8fe['diffData'][_0x529e45]['attributesAfter'])||{},_0x5b2118=this['_makeModelFromViewString'](_0x53d8fe['diffData'][_0x529e45]['insertions']);_0x5b2118['rootName']=_0x529e45,_0x5b2118['_isAttached']=!_0x570621||_0x570621['isAttached'],_0x5b2118['isAttached']=()=>_0x5b2118['_isAttached'],this['_diffRoots']['set'](_0x529e45,_0x5b2118),this['_diffRootsAttributes']['set'](_0x529e45,_0xd5021c);const _0x582a92=this['_makeIdsRoot'](_0x5b2118,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x529e45,_0x582a92),_0xb57577['set'](_0x529e45,_0x5b2118['isAttached']()?_0xd5021c:{});for(const [_0x28983e,_0xe375d9]of _0x5b2118['markers']){if(!_0x28983e['startsWith']('revision:'))continue;const _0x256872=_0x28983e['split'](':')[0x2];for(const _0x346b7f of _0xe375d9['getWalker']({'singleCharacters':!0x0})){const _0x29bef0=this['_getVidAttributeName'](_0x346b7f),_0x5a13be=this['_revisionId']++,_0x14d471='elementEnd'==_0x346b7f['type']?_0x346b7f['previousPosition']['path']['slice'](0x0,-0x1):_0x346b7f['previousPosition']['path'];_0x582a92['getNodeByPath'](_0x14d471)['_setAttribute'](_0x29bef0,_0x5a13be),this['_touched']['set'](_0x5a13be,{'userId':_0x256872});}}for(const _0x17e592 of this['editor']['model']['createRangeIn'](_0x5b2118)['getWalker']({'singleCharacters':!0x0})){const _0xe502fd=this['_getVidAttributeName'](_0x17e592),_0x228be5='elementEnd'==_0x17e592['type']?_0x17e592['previousPosition']['path']['slice'](0x0,-0x1):_0x17e592['previousPosition']['path'],_0x201243=_0x582a92['getNodeByPath'](_0x228be5);_0x201243['getAttribute'](_0xe502fd)>0x0||_0x201243['_setAttribute'](_0xe502fd,_0x162757[_0x27e0bf++]);}for(const [_0x10f6d7,_0xe53e22]of _0x5b2118['markers'])_0x10f6d7['startsWith']('revision:')||this['_markers']['set'](_0x10f6d7,_0xe53e22);}const _0x17ddbe=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x17ddbe),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x17ddbe,0x1));const _0x40f33c=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x40f33c),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x40f33c,0x1));const _0x105fa6=Array['from'](this['_diffRoots'])['map'](([_0x102baf,_0x377fa6])=>[_0x102baf,F(_0x377fa6)]);this['_saveMetaData'](this['_lastTo'],_0x105fa6,this['_markers'],_0xb57577);}['_makeModelFromViewString'](_0xdc683a){const _0x66104e=JSON['parse'](_0xdc683a),_0x353f86=this['editor']['editing']['view']['document'],_0x56d0a8=new _0x30434f(_0x353f86,_0x66104e['map'](_0x1aa266=>V(_0x1aa266,this['editor'])));return this['editor']['data']['toModel'](_0x56d0a8);}['_saveMetaData'](_0x206b41,_0x5b1cd4,_0x4e5dd7,_0xf43cc1){const _0x22eb59=new Map(_0x5b1cd4),_0x2cc01c=new Map(_0xd15063(_0xf43cc1)),_0x1e3cc5=new Map();for(const [_0x515dbc,_0x234db3]of _0x4e5dd7)_0x1e3cc5['set'](_0x515dbc,{'start':_0x234db3['start']['clone'](),'end':_0x234db3['end']['clone'](),'rootName':_0x234db3['root']['rootName']});this['_savedMetaData']['set'](_0x206b41,{'roots':_0x22eb59,'markers':_0x1e3cc5,'rootsAttributes':_0x2cc01c});}['_removeMetaData'](_0x4c035a){this['_savedMetaData']['delete'](_0x4c035a);}['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'](_0x3677e2,_0x49fb74=null){let _0x20f99c=null;_0x3677e2['is']('documentFragment')||(_0x20f99c=new ft(_0x3677e2['name'],{'vid_start':null===_0x49fb74?this['_revisionId']++:_0x49fb74++}));const _0x38eb22=[];for(const _0x4cbb54 of _0x3677e2['getChildren']())if(_0x4cbb54['is']('element')){_0x38eb22['push'](this['_makeIdsRoot'](_0x4cbb54,_0x49fb74));const _0x493f12=_0x38eb22[_0x38eb22['length']-0x1];null!==_0x49fb74&&(_0x49fb74=_0x493f12['is']('element','$text')?_0x493f12['getAttribute']('vid')+0x1:_0x493f12['getAttribute']('vid_end')+0x1);}else{for(let _0x5f3f49=0x0;_0x5f3f49<_0x4cbb54['offsetSize'];_0x5f3f49++)_0x38eb22['push'](new ft('$text',{'vid':null===_0x49fb74?this['_revisionId']++:_0x49fb74++}));}if(_0x3677e2['is']('documentFragment')){const _0x16fe45=B(_0x3677e2['rootName']);return _0x16fe45['_insertChild'](0x0,_0x38eb22),_0x16fe45;}return _0x20f99c['_setAttribute']('vid_end',null===_0x49fb74?this['_revisionId']++:_0x49fb74++),_0x20f99c['_insertChild'](0x0,_0x38eb22),_0x20f99c;}['_calculateMetaData'](_0x43cc2a,_0x3a260d,_0x3d3442){this['_reset']();const {roots:_0x17a079,markers:_0x416817,rootsAttributes:_0x42596f}=this['_savedMetaData']['get'](_0x43cc2a);this['_baseRoots']=new Map(_0x17a079),this['_baseRootsAttributes']=new Map(_0xd15063(_0x42596f));for(const [_0xd81ae0,_0x27d165]of this['_baseRoots'])if('$graveyard'!==_0xd81ae0&&(this['_diffRoots']['set'](_0xd81ae0,F(_0x27d165)),this['_diffRootsAttributes']=new Map(_0xd15063(_0x42596f)),_0x3d3442)){const _0x1f2d77=this['_revisionId'];this['_idsRoots']['set'](_0xd81ae0,this['_makeIdsRoot'](_0x27d165)),this['_baseIdsRoots']['set'](_0xd81ae0,this['_makeIdsRoot'](_0x27d165,_0x1f2d77));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3d3442&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1f0dc8,_0x41884f]of _0x416817){const _0x74f1a5=this['_baseRoots']['get'](_0x41884f['rootName']),_0x35d859=this['_diffRoots']['get'](_0x41884f['rootName']),_0x2931a3=new vt(this['_fixPosition'](_0x41884f['start'],_0x74f1a5),this['_fixPosition'](_0x41884f['end'],_0x74f1a5)),_0x49efc3=this['_fixRange'](_0x2931a3,_0x35d859);_0x74f1a5['markers']['set'](_0x1f0dc8,_0x2931a3),this['_markers']['set'](_0x1f0dc8,_0x49efc3);}this['_applyOperations'](_0x43cc2a,_0x3a260d,_0x3d3442);}['_applyOperations'](_0x4f7133,_0x1554b1,_0x1d065a){for(const _0x5884e5 of this['source']['getOperations'](_0x4f7133,_0x1554b1))this['_handleOperation'](_0x5884e5,_0x1d065a);for(const _0x13245d of this['_diffRoots']['values']())_0x13245d['markers']['clear']();for(const [_0x2878eb,_0x28fc50]of this['_markers']){this['_diffRoots']['get'](_0x28fc50['root']['rootName'])['markers']['set'](_0x2878eb,_0x28fc50['clone']());}const _0x48b161=new Map(),_0x2c4f01=new Map();for(const [_0x1cd86d,_0x2c072a]of this['_diffRoots'])_0x48b161['set'](_0x1cd86d,F(_0x2c072a)),_0x2c4f01['set'](_0x1cd86d,this['_diffRootsAttributes']['get'](_0x1cd86d));this['_saveMetaData'](_0x1554b1,_0x48b161,this['_markers'],_0x2c4f01);}['_getPreviousFrom'](_0x3de369){const _0x1d087c=Array['from'](this['_savedMetaData']['keys']());_0x1d087c['sort']((_0x50de8c,_0x860ca9)=>_0x50de8c-_0x860ca9),_0x1d087c['reverse']();for(const _0x1b25be of _0x1d087c)if(_0x1b25be<_0x3de369)return _0x1b25be;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x229e18,_0x1bfbbe){const _0x35c6e6=Array['from'](_0x1bfbbe['markers'])['map'](([_0x301e36,_0x83f688])=>[_0x301e36,this['_fixRange'](_0x83f688,_0x229e18)]);_0x229e18['markers']=new Map(_0x35c6e6);}['_transformMarkers'](_0x430535){for(const _0x3ccbd5 of this['_markers']['values']()){const _0x435368=_0x3ccbd5['getTransformedByOperation'](_0x430535),_0x457937=vt['_createFromRanges'](_0x435368);_0x3ccbd5['start']=_0x457937['start'],_0x3ccbd5['end']=_0x457937['end'];}}['_handleOperation'](_0xbc77ff,_0x251fb7){if('addRoot'!=_0xbc77ff['type']&&'detachRoot'!=_0xbc77ff['type']){if('insert'==_0xbc77ff['type']){const _0x181047=_0xbc77ff['position']['root']['rootName'];this['_diffRoots']['has'](_0x181047)||(this['_diffRoots']['set'](_0x181047,B(_0x181047,!0x0)),this['_diffRootsAttributes']['set'](_0x181047,{}),_0x251fb7&&this['_idsRoots']['set'](_0x181047,B(_0x181047,!0x0)));}else{if('addRootAttribute'==_0xbc77ff['type']||'removeRootAttribute'==_0xbc77ff['type']||'changeRootAttribute'==_0xbc77ff['type'])return void this['_handleRootAttributeOperation'](_0xbc77ff);'marker'==_0xbc77ff['type']&&this['_handleMarkerOperation'](_0xbc77ff);}if('marker'!==_0xbc77ff['type']){const _0xdefa37=this['_cloneOperation'](_0xbc77ff,this['_diffRoots']);_0xdefa37['_execute'](),this['_transformMarkers'](_0xdefa37);}if(_0x251fb7)switch(_0xbc77ff['type']){case'insert':this['_handleInsertOperation'](_0xbc77ff);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xbc77ff);break;case'merge':this['_handleMergeOperation'](_0xbc77ff);break;case'split':this['_handleSplitOperation'](_0xbc77ff);}}else this['_handleRootOperation'](_0xbc77ff,_0x251fb7);}['_cloneOperation'](_0x42f707,_0x12c45e){const _0x2ac3d3=_0x42f707['clone']();return _0x2ac3d3['_authorId']=_0x42f707['_authorId'],this['_fixOperation'](_0x2ac3d3,_0x12c45e),_0x2ac3d3;}['_getBaseVids'](_0x7018a3){return _0x7018a3['map'](_0x529f95=>{const _0x28a456=this['_getVidAttributeName'](_0x529f95);return Number(_0x529f95['item']['getAttribute'](_0x28a456));});}['_generateTape'](_0x1bd8e7,_0x5e9c40){if(_0x1bd8e7['is']('element','$text'))_0x5e9c40['push']({'item':_0x1bd8e7,'type':'text'});else{_0x1bd8e7['is']('element')&&_0x5e9c40['push']({'item':_0x1bd8e7,'type':'elementStart'});for(const _0x1477c7 of _0x1bd8e7['getChildren']())this['_generateTape'](_0x1477c7,_0x5e9c40);_0x1bd8e7['is']('element')&&_0x5e9c40['push']({'item':_0x1bd8e7,'type':'elementEnd'});}return _0x5e9c40;}['_getState'](){const _0x5a1db7=new Map(this['_touched']),_0x169da6=new Map(_0x5a1db7),_0x2b4b65=new Map(),_0x203df6={'insertions':{},'deletions':{}},_0x21bfc4={'insertions':{},'deletions':{}},_0x199bec=new Map(),_0x164801=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x164801['delete']('$graveyard');for(const _0x35157b of _0x164801){const _0x417bf6=this['_diffRoots']['get'](_0x35157b)||B(_0x35157b,!0x1),_0x5e09ed=this['_baseRoots']['get'](_0x35157b)||B(_0x35157b,!0x1);_0x417bf6['isAttached']()||_0x5e09ed['isAttached']()?(_0x203df6['insertions'][_0x35157b]=F(_0x417bf6),_0x203df6['deletions'][_0x35157b]=F(_0x5e09ed),this['_copyMarkers'](_0x203df6['deletions'][_0x35157b],_0x5e09ed),this['_copyMarkers'](_0x203df6['insertions'][_0x35157b],_0x417bf6),_0x21bfc4['insertions'][_0x35157b]=this['_generateTape'](this['_idsRoots']['get'](_0x35157b),[]),_0x21bfc4['deletions'][_0x35157b]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x35157b)||B(_0x35157b,!0x1),[])):_0x164801['delete'](_0x35157b);}for(const _0x3c115d of _0x164801){const _0x3d56a4=_0x21bfc4['insertions'][_0x3c115d];for(const _0x5739d7 of _0x3d56a4){const _0x39265a=this['_getVidAttributeName'](_0x5739d7),_0x150980=_0x5739d7['item']['getAttribute'](_0x39265a);_0x169da6['delete'](_0x150980),_0x150980>=this['_startingRevisionId']&&_0x2b4b65['set'](_0x150980,_0x5a1db7['get'](_0x150980));}}for(const _0x51595f of _0x164801){const _0x74368e=_0x21bfc4['insertions'][_0x51595f],_0x32d194=this['_getBaseVids'](_0x21bfc4['deletions'][_0x51595f]);let _0x11577c=0x0;for(const _0x871ce0 of _0x74368e){const _0x95a981=this['_getVidAttributeName'](_0x871ce0),_0x145f43=_0x871ce0['item']['getAttribute'](_0x95a981);if(!_0x2b4b65['has'](_0x145f43)&&!_0x199bec['has'](_0x145f43)){if(_0x169da6['has'](_0x145f43))_0x11577c++;else{if(_0x145f43!=_0x32d194[_0x11577c]){const _0x1b62e6=_0x5a1db7['get'](_0x145f43)||_0x5a1db7['get'](_0x32d194[_0x11577c]);for(;_0x145f43!=_0x32d194[_0x11577c];)_0x169da6['has'](_0x32d194[_0x11577c])||(_0x199bec['set'](_0x32d194[_0x11577c],_0x1b62e6),_0x5a1db7['set'](_0x32d194[_0x11577c],_0x1b62e6)),_0x11577c++;}_0x11577c++;}}}}for(const _0x11f9b0 of _0x164801){const _0x35f8e6=_0x21bfc4['insertions'][_0x11f9b0];for(const _0x364158 of _0x35f8e6){const _0x3c105b=this['_getVidAttributeName'](_0x364158),_0x2e1cd6=_0x364158['item']['getAttribute'](_0x3c105b);if(_0x199bec['has'](_0x2e1cd6)){const _0xde6226=_0x199bec['get'](_0x2e1cd6);_0x169da6['has'](_0x2e1cd6)||_0x169da6['set'](_0x2e1cd6,{..._0xde6226}),_0x2b4b65['set'](_0x2e1cd6,{..._0xde6226});}}}for(const _0xcec316 of _0x169da6['keys']())_0xcec316>=this['_startingRevisionId']&&_0x169da6['delete'](_0xcec316);const _0x9d684b=new Map();for(const _0x22a4bc of _0x164801){let _0x145755=_0x21bfc4['insertions'][_0x22a4bc];for(const _0x41e486 of _0x145755)if(_0x41e486['item']['is']('element','tableCell')){const _0x1d9d1b=this['_getVidAttributeName'](_0x41e486),_0x2afb78=_0x41e486['item']['getAttribute'](_0x1d9d1b);if(_0x2b4b65['has'](_0x2afb78)){const _0x4ac1f3=_0x41e486['item']['parent']['parent']['getAttribute']('vid_start'),_0x50241c=_0x9d684b['get'](_0x4ac1f3)||new Set();_0x50241c['add'](_0x2b4b65['get'](_0x2afb78)['userId']),_0x9d684b['set'](_0x4ac1f3,_0x50241c);}}_0x145755=_0x21bfc4['deletions'][_0x22a4bc];for(const _0xa5407f of _0x145755)if(_0xa5407f['item']['is']('element','tableCell')){const _0x5b1377=this['_getVidAttributeName'](_0xa5407f),_0x5f3ee7=_0xa5407f['item']['getAttribute'](_0x5b1377);if(_0x169da6['has'](_0x5f3ee7)){const _0xcea671=_0xa5407f['item']['parent']['parent']['getAttribute']('vid_start'),_0x4ce4d=_0x9d684b['get'](_0xcea671)||new Set();_0x4ce4d['add'](_0x169da6['get'](_0x5f3ee7)['userId']),_0x9d684b['set'](_0xcea671,_0x4ce4d);}}for(const _0x2be9c1 of _0x9d684b['keys']())(_0x2b4b65['has'](_0x2be9c1)||_0x169da6['has'](_0x2be9c1))&&_0x9d684b['delete'](_0x2be9c1);}for(const _0x2d50ab of _0x164801){const _0xc9520e=_0x21bfc4['insertions'][_0x2d50ab];let _0x184e98=null,_0x27c93f=null;for(const _0x148679 of _0xc9520e){const _0xf4a7ef=this['_getVidAttributeName'](_0x148679),_0x12f8ee=_0x148679['item']['getAttribute'](_0xf4a7ef),_0x3d3c5f=_0x9d684b['get'](_0x12f8ee);_0x3d3c5f&&'elementStart'==_0x148679['type']&&(_0x184e98=Array['from'](_0x3d3c5f)[0x0],_0x27c93f=_0x148679['item']['getAttribute']('vid_end')),_0x184e98&&(_0x169da6['set'](_0x12f8ee,{'userId':_0x184e98}),_0x2b4b65['set'](_0x12f8ee,{'userId':_0x184e98})),_0x12f8ee==_0x27c93f&&(_0x184e98=null,_0x27c93f=null);}}const _0x4c991a={},_0x39f86f=new Set();for(const _0x30fd48 of _0x164801){const _0x2050b3=_0x203df6['deletions'][_0x30fd48],_0x3619cf=_0x203df6['insertions'][_0x30fd48];for(const {userId:_0x469cc6}of this['_touchedMarkers']['values']())null!==_0x469cc6&&_0x39f86f['add'](_0x469cc6);for(const {userId:_0x506483}of this['_touchedRoots']['values']())null!==_0x506483&&_0x39f86f['add'](_0x506483);this['_markChanges'](_0x3619cf,_0x21bfc4['insertions'][_0x30fd48],_0x2b4b65,'insertion',_0x39f86f),this['_markChanges'](_0x2050b3,_0x21bfc4['deletions'][_0x30fd48],_0x169da6,'deletion',_0x39f86f),_0x4c991a[_0x30fd48]={'insertions':this['_prepareViewToSave'](_0x3619cf),'deletions':this['_prepareViewToSave'](_0x2050b3),'attachChange':this['_touchedRoots']['get'](_0x30fd48)||null,'attributesBefore':_0xd15063(this['_baseRootsAttributes']['get'](_0x30fd48))||{},'attributesAfter':_0xd15063(this['_diffRootsAttributes']['get'](_0x30fd48))};}return{'diffData':_0x4c991a,'authorsIds':Array['from'](_0x39f86f)};}['_processRootBeforeSave'](_0x272068){for(const [,_0x2ccaf9]of _0x272068['markers']){const _0x402f59=_0x2ccaf9['start']['getAncestors']()['filter'](_0x256785=>'tableCell'==_0x256785['name']);for(const _0x5aa23d of _0x402f59)0x1==_0x5aa23d['childCount']&&_0x5aa23d['getChild'](0x0)['is']('element','paragraph')&&_0x5aa23d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4c4e2d){this['_processRootBeforeSave'](_0x4c4e2d);const _0xbdf34f=this['editor']['data']['toView'](_0x4c4e2d,{}),_0x1910ac=Array['from'](_0xbdf34f['getChildren']())['map'](_0x51d4a8=>this['_getViewJson'](_0x51d4a8));return JSON['stringify'](_0x1910ac);}['_getViewJson'](_0x231782){if(_0x231782['is']('$text'))return _0x231782['data'];{const _0x180c44=_0x231782;return{'type':Object['keys'](C)['find'](_0x24512a=>_0x231782 instanceof C[_0x24512a]),'name':_0x180c44['name'],'attributes':Array['from'](_0x180c44['getAttributes']()),'children':Array['from'](_0x180c44['getChildren']())['map'](_0x417945=>this['_getViewJson'](_0x417945))};}}['_markChanges'](_0x503de1,_0x27c5b4,_0x29ec93,_0x2d4fab,_0x5508e4){let _0x3c317a=null,_0x1b056e=null,_0x576476=0x0;const _0x20540e=this['editor']['model'];for(let _0x2bace4=0x0;_0x2bace4<_0x27c5b4['length'];_0x2bace4++){const _0x51ab31=this['_getVidAttributeName'](_0x27c5b4[_0x2bace4]),_0x5acfe1=_0x27c5b4[_0x2bace4]['item']['getAttribute'](_0x51ab31),_0x2c1408=_0x29ec93['get'](_0x5acfe1),_0x54032f=_0x2bace4==_0x27c5b4['length']-0x1;(!_0x3c317a&&_0x2c1408&&(_0x3c317a=_0x2c1408,_0x1b056e=_0x27c5b4[_0x2bace4]),_0x3c317a&&(!_0x2c1408||_0x2c1408['userId']!=_0x3c317a['userId']))&&(_0x2a9af0(_0x2c1408,J(_0x1b056e,_0x503de1,_0x20540e),J(_0x27c5b4[_0x2bace4],_0x503de1,_0x20540e)),_0x3c317a=_0x2c1408||null,_0x1b056e=_0x2c1408?_0x27c5b4[_0x2bace4]:null),_0x3c317a&&_0x54032f&&_0x2a9af0(_0x2c1408,J(_0x1b056e,_0x503de1,_0x20540e),q(_0x27c5b4[_0x2bace4],_0x503de1,_0x20540e));}function _0x2a9af0(_0x53a7c9,_0x53bd90,_0x1e2183){const _0x503e44=_0x3c317a['userId'],_0x53eff9='revision:'+_0x2d4fab+':'+_0x503e44+':'+_0x576476++,_0x1346ca=_0x20540e['createRange'](_0x53bd90,_0x1e2183);_0x503de1['markers']['set'](_0x53eff9,_0x1346ca),null!==_0x503e44&&_0x5508e4['add'](_0x503e44);}}['_getVidAttributeName'](_0x38d1ae){switch(_0x38d1ae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x344811,_0x49641d){_0x344811['baseVersion']=null;for(const _0x27c5e0 in _0x344811){const _0x48cd8a=_0x344811[_0x27c5e0];if(_0x48cd8a instanceof gt){const _0x3afd5d=_0x49641d['get'](_0x48cd8a['root']['rootName']);_0x344811[_0x27c5e0]=this['_fixPosition'](_0x48cd8a,_0x3afd5d);}if(_0x48cd8a instanceof vt){const _0x497537=_0x49641d['get'](_0x48cd8a['root']['rootName']);_0x344811[_0x27c5e0]=this['_fixRange'](_0x48cd8a,_0x497537);}'root'===_0x27c5e0&&(_0x344811['root']=_0x49641d['get'](_0x344811['root']['rootName']));}}['_fixRange'](_0x18f54f,_0x4a0ac2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x18f54f['start'],_0x4a0ac2),this['_fixPosition'](_0x18f54f['end'],_0x4a0ac2));}['_fixPosition'](_0x45165d,_0x4afbce){return this['editor']['model']['createPositionFromPath'](_0x4afbce,_0x45165d['path'],_0x45165d['stickiness']);}['_handleInsertOperation'](_0x57b34e){const _0x14b899=this['_idsRoots']['get'](_0x57b34e['position']['root']['rootName']),_0x3351a5=this['_fixPosition'](_0x57b34e['position'],_0x14b899),_0x54735c=null===_0x57b34e['_authorId']?null:_0x57b34e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x51e79a=_0x3351a5['parent'],_0x42735c=this['_revisionId'],_0x447c0f=[];for(const _0x308bab of _0x57b34e['nodes'])if(_0x308bab['is']('element'))_0x447c0f['push'](this['_makeIdsRoot'](_0x308bab));else{for(let _0x2f6c1d=0x0;_0x2f6c1d<_0x308bab['offsetSize'];_0x2f6c1d++)_0x447c0f['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5a93e4=this['_revisionId'];for(let _0x41e7a5=_0x42735c;_0x41e7a5<_0x5a93e4;_0x41e7a5++)this['_touched']['set'](_0x41e7a5,{'userId':_0x54735c});_0x51e79a['_insertChild'](_0x3351a5['offset'],_0x447c0f);}['_handleMoveOperation'](_0x19926b){(_0x19926b=this['_cloneOperation'](_0x19926b,this['_idsRoots']))['_execute']();const _0xb9d175=null===_0x19926b['_authorId']?null:_0x19926b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5abcc2=_0x19926b['getMovedRangeStart'](),_0xfad0d7=_0x5abcc2['parent'],_0x1caa36=_0x5abcc2['offset'];!function _0x5d5529(_0x5bf133,_0x59f6c6,_0x1f592e,_0x4875fd){for(let _0xf995da=_0x1f592e;_0xf995da<_0x4875fd;_0xf995da++){const _0x36d164=_0x59f6c6['getChild'](_0xf995da);_0x36d164['is']('element','$text')?_0x5bf133['set'](_0x36d164['getAttribute']('vid'),{'userId':_0xb9d175}):(_0x5bf133['set'](_0x36d164['getAttribute']('vid_start'),{'userId':_0xb9d175}),_0x5d5529(_0x5bf133,_0x36d164,0x0,_0x36d164['childCount']),_0x5bf133['set'](_0x36d164['getAttribute']('vid_end'),{'userId':_0xb9d175}));}}(this['_touched'],_0xfad0d7,_0x1caa36,_0x1caa36+_0x19926b['howMany']);}['_handleMergeOperation'](_0x2e77ee){const _0x32c25a=null===(_0x2e77ee=this['_cloneOperation'](_0x2e77ee,this['_idsRoots']))['_authorId']?null:_0x2e77ee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c3fe1=_0x2e77ee['targetPosition']['parent'],_0x438dcf=_0x2e77ee['sourcePosition']['parent'],_0x40cb44=_0x4c3fe1['getAttribute']('vid_end'),_0x35b874=_0x438dcf['getAttribute']('vid_start');_0x4c3fe1['_setAttribute']('vid_end',_0x438dcf['getAttribute']('vid_end')),_0x438dcf['_setAttribute']('vid_end',_0x40cb44),this['_touched']['set'](_0x35b874,{'userId':_0x32c25a}),this['_touched']['set'](_0x40cb44,{'userId':_0x32c25a}),_0x2e77ee['_execute']();}['_handleSplitOperation'](_0x5923c1){const _0x5499a3=null===(_0x5923c1=this['_cloneOperation'](_0x5923c1,this['_idsRoots']))['_authorId']?null:_0x5923c1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x725209=_0x5923c1['graveyardPosition'],_0x47b78e=_0x5923c1['splitPosition']['parent'];_0x5923c1['_execute']();const _0x53d347=_0x47b78e['getAttribute']('vid_end'),_0x1b6acd=_0x5923c1['insertionPosition']['nodeAfter'];if(_0x725209){const _0x2118b2=_0x1b6acd['getAttribute']('vid_end'),_0x5401ad=_0x47b78e['getAttribute']('vid_end');_0x47b78e['_setAttribute']('vid_end',_0x2118b2),_0x1b6acd['_setAttribute']('vid_end',_0x5401ad),this['_touched']['set'](_0x47b78e['getAttribute']('vid_end'),{'userId':_0x5499a3}),this['_touched']['set'](_0x1b6acd['getAttribute']('vid_start'),{'userId':_0x5499a3});}else{const _0x4bae47=this['_revisionId']++,_0x2572ef=this['_revisionId']++;_0x47b78e['_setAttribute']('vid_end',_0x4bae47),_0x1b6acd['_setAttribute']('vid_start',_0x2572ef),_0x1b6acd['_setAttribute']('vid_end',_0x53d347),this['_touched']['set'](_0x4bae47,{'userId':_0x5499a3}),this['_touched']['set'](_0x2572ef,{'userId':_0x5499a3});}}['_handleMarkerOperation'](_0x243f6e){if(!_0x243f6e['affectsData'])return;const _0x27ae72=(_0x243f6e=this['_cloneOperation'](_0x243f6e,this['_diffRoots']))['oldRange']?_0x243f6e['oldRange']['root']:null,_0x152afa=_0x243f6e['newRange']?_0x243f6e['newRange']['root']:null;_0x27ae72&&this['_markers']['delete'](_0x243f6e['name']),_0x152afa&&this['_markers']['set'](_0x243f6e['name'],_0x243f6e['newRange']['clone']());const _0x44bfe6=null===_0x243f6e['_authorId']?null:_0x243f6e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d8d80=_0x243f6e['name'];if(!this['_touchedMarkers']['has'](_0x1d8d80))return void this['_touchedMarkers']['set'](_0x1d8d80,{'range':_0x243f6e['oldRange'],'userId':_0x44bfe6});const _0x15d06c=this['_touchedMarkers']['get'](_0x1d8d80),_0x4ba06e=_0x15d06c['range'],_0x3e8211=_0x243f6e['newRange'];null==_0x4ba06e&&null==_0x3e8211||_0x4ba06e&&_0x3e8211&&_0x4ba06e['isEqual'](_0x3e8211)?this['_touchedMarkers']['delete'](_0x243f6e['name']):_0x15d06c['userId']=_0x44bfe6;}['_handleRootOperation'](_0x56bbca,_0x1af674){this['_diffRoots']['has'](_0x56bbca['rootName'])?this['_diffRoots']['get'](_0x56bbca['rootName'])['_isAttached']=_0x56bbca['isAdd']:(this['_diffRoots']['set'](_0x56bbca['rootName'],B(_0x56bbca['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x56bbca['rootName'],{}),_0x1af674&&this['_idsRoots']['set'](_0x56bbca['rootName'],B(_0x56bbca['rootName'],!0x0)));const _0x3c65dd=null===_0x56bbca['_authorId']?null:_0x56bbca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x10f74f=this['_touchedRoots']['get'](_0x56bbca['rootName']);_0x10f74f&&_0x10f74f['userId']===_0x3c65dd?this['_touchedRoots']['delete'](_0x56bbca['rootName']):this['_touchedRoots']['set'](_0x56bbca['rootName'],{'userId':_0x3c65dd,'isAttached':_0x56bbca['isAdd']});}['_handleRootAttributeOperation'](_0x3cf4f4){const _0xbea939=this['_diffRootsAttributes']['get'](_0x3cf4f4['root']['rootName']);null===_0x3cf4f4['newValue']?delete _0xbea939[_0x3cf4f4['key']]:_0xbea939[_0x3cf4f4['key']]=_0x3cf4f4['newValue'];}}function F(_0x3944d1){const _0x3ff8c0=B(_0x3944d1['rootName'],_0x3944d1['isAttached']());for(const _0x3c5f1f of _0x3944d1['getChildren']()){const _0x40c57b=_0x3c5f1f['_clone'](!0x0);_0x3ff8c0['_appendChild'](_0x40c57b);}return _0x3ff8c0;}function B(_0x1abf3c,_0x2116a2=!0x0){const _0x54abfb=new wt();return _0x54abfb['rootName']=_0x1abf3c,_0x54abfb['_isAttached']=_0x2116a2,_0x54abfb['isAttached']=()=>_0x54abfb['_isAttached'],_0x54abfb;}function J(_0x2ead10,_0x11a15b,_0x32c54e){const _0x55e92e='elementEnd'==_0x2ead10['type']?_0x32c54e['createPositionAt'](_0x2ead10['item'],'end'):_0x32c54e['createPositionBefore'](_0x2ead10['item']);return _0x32c54e['createPositionFromPath'](_0x11a15b,_0x55e92e['path'],_0x55e92e['stickiness']);}function q(_0x483a0c,_0x14c205,_0x537390){const _0x2a5fbe='elementStart'==_0x483a0c['type']?_0x537390['createPositionAt'](_0x483a0c['item'],0x0):_0x537390['createPositionAfter'](_0x483a0c['item']);return _0x537390['createPositionFromPath'](_0x14c205,_0x2a5fbe['path'],_0x2a5fbe['stickiness']);}class ns extends _0x4f4dcf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x38c630,_0x3b0c64){super(_0x38c630),this['focusTracker']=new _0x20319a(),this['keystrokes']=new _0x3c6629(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3b0c64),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'](),_0x258bed({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x40832a=_0xc53dc7=>_0xc53dc7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x40832a),this['keystrokes']['set']('arrowleft',_0x40832a),this['keystrokes']['set']('arrowup',_0x40832a),this['keystrokes']['set']('arrowdown',_0x40832a);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3df83f){this['revisionNameInputView']['fieldView']['element']['value']=_0x3df83f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x267ff1){const _0x2198c9=new at(this['locale'],_0x5e8fe9),_0x318b21=_0x2198c9['fieldView'];_0x318b21['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3c50bf=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x267ff1&&(_0x3c50bf+='\x20('+R(this['locale'],'optional')+')'),(_0x2198c9['label']=_0x3c50bf,_0x318b21['on']('input',()=>{this['revisionNameInputValue']=_0x318b21['element']['value']['trim']();}),_0x2198c9);}}class u extends _0x9a5545{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x38a021=this['editor'],_0x446b5b=_0x38a021['plugins']['get']('RevisionTracker');_0x38a021['ui']['componentFactory']['add']('revisionHistory',_0x2a6813=>{const _0x56f1b9=_0x5c06d4(_0x2a6813),_0x475eae=_0x56f1b9['panelView']['children'],_0x315652=new te(_0x2a6813),_0x4126c5=new _0xeca532(_0x2a6813),_0x77fd2f=new _0x18590d(_0x2a6813),_0x2df7f5=new _0xeca532(_0x2a6813),_0x31220b=new _0x18590d(_0x2a6813);return _0x56f1b9['bind']('isEnabled')['to'](_0x446b5b,'isReady',_0x446b5b,'isEnabled',_0x38a021,'isReadOnly',(_0x57e9c2,_0x11d88d,_0x28ab9f)=>_0x57e9c2&&_0x11d88d&&!_0x28ab9f),_0x56f1b9['buttonView']['set']({'icon':_0x25fa55['history'],'label':R(_0x2a6813,'Revision\x20history'),'tooltip':!0x0}),_0x77fd2f['set']({'label':R(_0x2a6813,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x77fd2f['bind']('isEnabled')['to'](_0x446b5b,'isReady',_0x446b5b,'isEnabled',_0x38a021,'isReadOnly',(_0x3abce1,_0x4e0496,_0x2a7d12)=>_0x3abce1&&_0x4e0496&&!_0x2a7d12),_0x77fd2f['on']('execute',()=>this['_showDialog']()),_0x31220b['set']({'label':R(_0x2a6813,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x31220b['bind']('isEnabled')['to'](_0x446b5b,'isReady',_0x38a021,'isReadOnly',(_0x723d4d,_0x5defbe)=>_0x723d4d&&!_0x5defbe),_0x31220b['on']('execute',()=>{_0x38a021['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x56f1b9['isOpen']=!0x1,_0x38a021['editing']['view']['focus']();}),_0x4126c5['children']['add'](_0x77fd2f),_0x2df7f5['children']['add'](_0x31220b),_0x315652['role']='menu',_0x315652['items']['addMany']([_0x4126c5,_0x2df7f5]),_0x475eae['add'](_0x315652),_0x56f1b9;}),_0x38a021['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5b3e9e=this['editor'],_0x33fc12=_0x5b3e9e['locale'],_0x3bba36=new _0x5afccc(_0x33fc12),_0x4a5c05=new _0x1e0c87(_0x33fc12);_0x3bba36['buttonView']['set']({'icon':_0x25fa55['history'],'label':R(_0x33fc12,'Revision\x20history')});const _0x42cce8=new _0x51e979(_0x33fc12,_0x3bba36),_0x32d6d9=new _0x39a7a7(_0x33fc12);_0x32d6d9['set']({'label':R(_0x33fc12,'Save\x20current\x20revision')}),_0x32d6d9['delegate']('execute')['to'](_0x3bba36),_0x32d6d9['on']('execute',()=>{this['_showDialog']();}),_0x42cce8['children']['add'](_0x32d6d9),_0x4a5c05['items']['add'](_0x42cce8);const _0x5d919b=new _0x51e979(_0x33fc12,_0x3bba36),_0x1a9045=new _0x39a7a7(_0x33fc12);return _0x1a9045['set']({'label':R(_0x33fc12,'Open\x20revision\x20history')}),_0x1a9045['delegate']('execute')['to'](_0x3bba36),_0x1a9045['on']('execute',()=>{_0x5b3e9e['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5d919b['children']['add'](_0x1a9045),_0x4a5c05['items']['add'](_0x5d919b),_0x3bba36['panelView']['children']['add'](_0x4a5c05),_0x3bba36;}['_showDialog'](){const _0x9bea38=this['editor'],_0x448209=_0x9bea38['locale'],_0x5b0dc9=_0x9bea38['plugins']['get']('Dialog'),_0x49c6ab=_0x9bea38['plugins']['get']('RevisionTracker');function _0x4cdaec(_0x346f10){_0x9bea38['config']['get']('revisionHistory.requireRevisionName')&&''===_0x346f10['revisionName']?_0x346f10['revisionNameInputView']['errorText']=R(_0x448209,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x9bea38['plugins']['get'](l)['saveRevision']({'name':_0x346f10['revisionName']}),_0x5b0dc9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4cdaec(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5b0dc9['show']({'id':'revisionSave','title':R(_0x448209,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x9bea38['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5b0dc9['hide']()},{'label':R(_0x9bea38['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4e0a62){_0x4e0a62['bind']('isEnabled')['to'](_0x49c6ab,'isReady',_0x49c6ab,'isEnabled',_0x9bea38,'isReadOnly',(_0x1dfe4d,_0x109787,_0x14b67f)=>_0x1dfe4d&&_0x109787&&!_0x14b67f);},'onExecute':()=>_0x4cdaec(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x55bb89=this['editor'],_0x430080=_0x55bb89['locale'];this['_saveRevisionFormView']=new ns(_0x430080,_0x55bb89['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x4f4dcf{['changeId'];['_model'];constructor(_0x14bcea,_0x1d6ff5){super(_0x14bcea),this['_model']=_0x1d6ff5,this['changeId']=_0x1d6ff5['id'];const _0x46ce0c=this['bindTemplate'],_0x14cc00=R(_0x14bcea,_0x1d6ff5['data']['isSuggestion']?'Suggested\x20by':'add'==_0x1d6ff5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x1d6ff5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x46ce0c['to']('type',_0x387b59=>'ck-revision-change__'+_0x387b59)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x14cc00}]},{'text':'\x20'+_0x1d6ff5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x1212e4(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x34ae7a){super(),this['id']=_0x34ae7a['id']||_0x1ced54(),this['author']=_0x34ae7a['author'],this['type']=_0x34ae7a['type'],this['data']=_0x34ae7a['data']||{},this['rootName']=_0x34ae7a['rootName'],this['set']('createdAt',_0x34ae7a['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(_0x1a6426,_0x5c5079){this['newRevisionId']=_0x1a6426,this['oldRevisionId']=_0x5c5079,this['changes']=new _0x2f121a();}['_setChanges'](_0x2e3124){for(const _0x463904 of _0x2e3124)this['changes']['add'](_0x463904);}}const Z={'c':_0x4221dd,'a':_0x414029,'e':_0x452337,'r':_0x3497f3,'u':_0xa39994};class d extends _0x9a5545{['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[_0x5241b4,_0x613301,j];}constructor(_0x5a8d84){super(_0x5a8d84),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',(_0x11459b,_0x51d503,_0x744414)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x567ea1=>{for(const _0x4239cc of this['editor']['editing']['view']['document']['roots'])_0x744414?_0x567ea1['removeClass']('ck-editor__editable__overlay',_0x4239cc):_0x567ea1['addClass']('ck-editor__editable__overlay',_0x4239cc);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x354764=>null!==_0x354764),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xc13487,_0x1c4974,_0x1efadc)=>_0xc13487&&_0x1efadc?_0x1c4974['changes']['getIndex'](_0x1efadc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2570a5,_0x1208f6)=>_0x2570a5?_0x1208f6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x613301);}['init'](){const _0x55ddd2=this['editor'],_0x47df75=new bt(_0x55ddd2,{'direction':'backward'}),_0x25e73a=new bt(_0x55ddd2,{'direction':'forward'});(_0x55ddd2['commands']['add']('showPreviousChange',_0x47df75),_0x55ddd2['commands']['add']('showNextChange',_0x25e73a),_0x55ddd2['commands']['add']('restoreRevision',new yt(_0x55ddd2)),this['on']('change:numberOfChanges',()=>{_0x47df75['refresh'](),_0x25e73a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x55ddd2['enableReadOnlyMode']('revision-viewer'),_0x55ddd2['plugins']['has']('WidgetToolbarRepository'))&&_0x55ddd2['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5f575c){await this['loadRevisionData'](_0x5f575c);const _0x160f72={};for(const _0x4abe9f in _0x5f575c['diffData']){if(_0x5f575c['diffData'][_0x4abe9f]['attachChange']&&!_0x5f575c['diffData'][_0x4abe9f]['attachChange']['isAttached'])continue;const _0x44639f=this['_removeRevisionMarkers'](JSON['parse'](_0x5f575c['diffData'][_0x4abe9f]['insertions'])),_0x2f465a=this['editor']['editing']['view']['document'],_0x196dda=new _0x30434f(_0x2f465a,_0x44639f['map'](_0x5c0ad9=>this['_getViewObj'](_0x5c0ad9)));this['editor']['data']['processor']['useFillerType']('marked'),_0x160f72[_0x4abe9f]=this['editor']['data']['processor']['toData'](_0x196dda),this['editor']['data']['processor']['useFillerType']('default');}return _0x160f72;}async['getRevisionRootsAttributes'](_0x13ca62){await this['loadRevisionData'](_0x13ca62);const _0x377ef7={};for(const _0x213603 in _0x13ca62['diffData'])_0x13ca62['diffData'][_0x213603]['attachChange']&&!_0x13ca62['diffData'][_0x213603]['attachChange']['isAttached']||(_0x377ef7[_0x213603]=_0x13ca62['diffData'][_0x213603]['attributesAfter']||{});return _0x377ef7;}['_removeRevisionMarkers'](_0x1e0c46){return(_0x1e0c46=_0x1e0c46['filter'](_0x535ded=>!_0x535ded['name']||'revision-start'!==_0x535ded['name']&&'revision-end'!==_0x535ded['name']))['forEach'](_0x222cf5=>{'string'!=typeof _0x222cf5&&(_0x222cf5['children']=this['_removeRevisionMarkers'](_0x222cf5['children']),_0x222cf5['attributes']=_0x222cf5['attributes']['filter'](_0x3e9aa8=>!_0x3e9aa8[0x0]['startsWith']('data-revision-')));}),_0x1e0c46;}async['compare'](_0x5d59d4,_0x101049,_0x1f04f5=!0x1){if(!this['isEnabled'])return;const _0x5b64d7=this['diff'],_0x405ae4=this['repository'],_0x33870b='string'==typeof _0x5d59d4?_0x405ae4['getRevision'](_0x5d59d4):_0x5d59d4,_0x470141='string'==typeof _0x101049?_0x405ae4['getRevision'](_0x101049):_0x101049,_0x3a1ac1=_0x33870b['id'],_0x5bc1d5=_0x470141?_0x470141['id']:null;if(!_0x1f04f5&&this['diff']&&this['diff']['newRevisionId']===_0x3a1ac1&&this['diff']['oldRevisionId']===_0x5bc1d5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x3a1ac1,_0x5bc1d5);const _0x5ef374=this['_getRevisionsRange'](_0x33870b,_0x470141,!0x0)['map'](_0x330052=>this['loadRevisionData'](_0x330052));return _0x5ef374['push'](new Promise(_0x5cfee3=>{setTimeout(_0x5cfee3,0x14);})),Promise['all'](_0x5ef374)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4e9e21=this['_getDiff'](_0x3a1ac1,_0x5bc1d5);for(const _0x23a8a0 of _0x4e9e21['changes'])this['_changeIdToChange']['set'](_0x23a8a0['id'],_0x23a8a0);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4ed0d6=>{for(const _0xca3d9a of this['editor']['model']['document']['getRootNames']())_0x4ed0d6['detachRoot'](_0xca3d9a);for(const _0x1433dc of Object['keys'](_0x4e9e21['model'])){const _0x293463=_0x4ed0d6['addRoot'](_0x1433dc);for(const _0x435483 of Object['keys'](_0x4e9e21['attributes'][_0x1433dc]))_0x4ed0d6['setAttribute'](_0x435483,_0x4e9e21['attributes'][_0x1433dc][_0x435483],_0x293463);_0x4ed0d6['insert'](_0x4e9e21['model'][_0x1433dc],_0x293463,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4e9e21['changes'])),this['isReady']=!0x0;})['catch'](_0x598481=>{console['error'](_0x598481),this['_cleanUp'](),_0x5b64d7&&(this['diff']=_0x5b64d7),this['isReady']=!0x0;});}['addRevisionData'](_0x43b846,_0x57db55){const _0x5a3ffb=this['repository']['createRevision'](_0x43b846);return _0x5a3ffb['on']('_update',(_0x1be6a8,_0x3693ef,_0x1ab509)=>_0x57db55(_0x3693ef,_0x1ab509,_0x5a3ffb)),this['repository']['addRevision'](_0x5a3ffb),_0x5a3ffb;}['loadRevisionData'](_0x6b3834){if(!_0x6b3834||_0x6b3834['diffData'])return Promise['resolve']();{const _0x3aa90e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3aa90e,'revisionId':_0x6b3834['id']})['then'](_0x2b5e70=>{_0x6b3834['_update']({'diffData':_0x2b5e70['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},_0x576aa5=>{for(const _0x52e0eb of this['editor']['model']['document']['getRootNames']())_0x576aa5['detachRoot'](_0x52e0eb);});}['_sortAndFilterDiffChanges'](_0xc7b9a6){const _0xa739eb=[],_0x2dd155=new Map();for(const _0x49c34c of this['editor']['model']['document']['getRootNames']()){const _0x47c88f=this['editor']['editing']['view']['getDomRoot'](_0x49c34c);if(!_0x47c88f)continue;const _0x4dfacb=_0x47c88f['getClientRects']()['item'](0x0);_0x4dfacb&&(_0xa739eb['push'](_0x49c34c),_0x2dd155['set'](_0x49c34c,_0x4dfacb));}return _0xa739eb['sort']((_0x1ad2fb,_0x1dca5e)=>{const _0x242ce4=_0x2dd155['get'](_0x1ad2fb),_0x30ee77=_0x2dd155['get'](_0x1dca5e);return _0x242ce4['y']-_0x30ee77['y']||_0x242ce4['x']-_0x30ee77['x'];}),(_0xc7b9a6=_0xc7b9a6['filter'](_0x5536f6=>_0xa739eb['includes'](_0x5536f6['rootName'])))['sort']((_0x1ef54c,_0x4fe01b)=>_0xa739eb['indexOf'](_0x1ef54c['rootName'])-_0xa739eb['indexOf'](_0x4fe01b['rootName'])),_0xc7b9a6;}['_makeTape'](_0x560f1f){const _0x3a96c3=Array['from'](_0x560f1f['markers'])['filter'](([_0x2bac06,_0x47032e])=>_0x2bac06['startsWith']('revision:')&&!_0x47032e['isCollapsed']),_0x1ec013=Array['from'](this['editor']['model']['createRangeIn'](_0x560f1f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3a96c3['length'])for(const _0x397f9d of _0x1ec013){const [_0x393a69,_0x567d9b]=_0x3a96c3[0x0],[,_0x191ad7,_0x5017f0]=_0x393a69['split'](':');if(_0x567d9b['end']['isEqual'](_0x397f9d['nextPosition'])&&_0x3a96c3['shift'](),(_0x397f9d['previousPosition']['isEqual'](_0x567d9b['start'])||_0x397f9d['previousPosition']['isAfter'](_0x567d9b['start']))&&('insertion'==_0x191ad7?_0x397f9d['isAdded']={'userId':_0x5017f0}:'deletion'==_0x191ad7&&(_0x397f9d['isRemoved']={'userId':_0x5017f0})),0x0==_0x3a96c3['length'])break;}return _0x1ec013;}['_refreshStartEndIndex'](_0x336642){const _0x2ed4de=new Map();for(let _0x45b39c=0x0;_0x45b39c<_0x336642['length'];_0x45b39c++)'text'===_0x336642[_0x45b39c]['type']?(_0x336642[_0x45b39c]['item']['startIndex']=_0x45b39c,_0x336642[_0x45b39c]['item']['endIndex']=_0x45b39c):('elementStart'===_0x336642[_0x45b39c]['type']?_0x336642[_0x45b39c]['item']['startIndex']=_0x45b39c:'elementEnd'===_0x336642[_0x45b39c]['type']&&(_0x336642[_0x45b39c]['item']['endIndex']=_0x45b39c),_0x2ed4de['set'](_0x336642[_0x45b39c]['id'],_0x45b39c));for(const _0x24e052 of _0x2ed4de['values']())'elementStart'===_0x336642[_0x24e052]['type']?_0x336642[_0x24e052]['item']['endIndex']=_0x2ed4de['get'](_0x336642[_0x24e052]['pairId']):'elementEnd'===_0x336642[_0x24e052]['type']&&(_0x336642[_0x24e052]['item']['startIndex']=_0x2ed4de['get'](_0x336642[_0x24e052]['pairId']));}['_processTape'](_0x36941c){for(let _0x272dee=0x0;_0x272dee<_0x36941c['length'];_0x272dee++){if('elementStart'===_0x36941c[_0x272dee]['type'])_0x36941c[_0x272dee]['item']['startIndex']=_0x272dee;else{if('elementEnd'===_0x36941c[_0x272dee]['type']){_0x36941c[_0x272dee]['item']['endIndex']=_0x272dee;const _0x97f2d5=_0x36941c[_0x272dee]['item']['startIndex'];_0x36941c[_0x97f2d5]['pairId']=_0x36941c[_0x272dee]['id'],_0x36941c[_0x272dee]['pairId']=_0x36941c[_0x97f2d5]['id'];}else _0x36941c[_0x272dee]['item']['startIndex']=_0x272dee,_0x36941c[_0x272dee]['item']['endIndex']=_0x272dee,_0x36941c[_0x272dee]['pairId']=null;}_0x36941c[_0x272dee]['markersStart']||(_0x36941c[_0x272dee]['markersStart']=[],_0x36941c[_0x272dee]['markersEnd']=[]);}}['_markInsertions'](_0x1086b7,_0x56f97a){const _0xd0a074=_0x1086b7['filter'](_0x1bdca8=>!_0x1bdca8['isAdded']);for(let _0x54bd17=0x0;_0x54bd17<_0x56f97a['length'];_0x54bd17++)_0x56f97a[_0x54bd17]['isAdded']&&(_0xd0a074[_0x54bd17]['isAdded']=_0x56f97a[_0x54bd17]['isAdded']);}['_makeModelFromViewString'](_0x1cab2e){const _0x40dca9=JSON['parse'](_0x1cab2e),_0x34fbcb=this['editor']['editing']['view']['document'],_0x872766=new _0x30434f(_0x34fbcb,_0x40dca9['map'](_0x3ef8b6=>this['_getViewObj'](_0x3ef8b6)));return this['editor']['data']['toModel'](_0x872766);}['_getViewObj'](_0x562b26){const _0x2ab79b=this['editor']['editing']['view']['document'];if('string'==typeof _0x562b26)return new _0x5b9193(_0x2ab79b,_0x562b26);{const _0x2f49cc=_0x562b26['children']['map'](_0x7923e9=>this['_getViewObj'](_0x7923e9));return new(Z[_0x562b26['type']]||_0x3ff468)(_0x2ab79b,_0x562b26['name'],_0x562b26['attributes'],_0x2f49cc);}}['_getDiff'](_0x2510c4,_0x1e881b=null){const _0x34b88a=this['repository']['getRevision'](_0x2510c4),_0x538d98=_0x1e881b?this['repository']['getRevision'](_0x1e881b):null,_0x354309=this['_getRevisionsRange'](_0x34b88a,_0x538d98),_0x4e3d32=_0x354309[_0x354309['length']-0x1],_0x58d264=new Map(),_0x385d6c={'model':{},'attributes':{},'changes':[]},_0x18abe4=new Set(),_0x303db5=new Map();for(let _0x2b82c4=_0x354309['length']-0x1;_0x2b82c4>=0x0;_0x2b82c4--){const _0x5ea5ea=_0x354309[_0x2b82c4];for(const _0x3b75d3 of Object['keys'](_0x5ea5ea['diffData']))if(_0x5ea5ea['diffData'][_0x3b75d3]['attachChange']){const _0x2fdad6=_0x5ea5ea['diffData'][_0x3b75d3]['attachChange'];_0x2fdad6['isAttached']?(_0x18abe4['add'](_0x3b75d3),_0x303db5['has'](_0x3b75d3)&&_0x303db5['get'](_0x3b75d3)['userId']==_0x2fdad6['userId']?_0x303db5['delete'](_0x3b75d3):_0x303db5['set'](_0x3b75d3,_0x2fdad6)):_0x303db5['has'](_0x3b75d3)?(_0x18abe4['delete'](_0x3b75d3),_0x303db5['delete'](_0x3b75d3)):(_0x18abe4['add'](_0x3b75d3),_0x303db5['set'](_0x3b75d3,_0x2fdad6));}else _0x18abe4['add'](_0x3b75d3);}for(const _0x1afe61 of _0x18abe4){const _0x473dca=_0x303db5['has'](_0x1afe61)&&!_0x303db5['get'](_0x1afe61)['isAttached'];let _0x163ac9=_0x473dca?_0x354309['length']-0x1:0x0;const _0x5ed6d1=_0x473dca?-0x1:0x1;for(;_0x354309[_0x163ac9];){const _0x48d9b0=_0x354309[_0x163ac9];if(_0x48d9b0['diffData'][_0x1afe61]){const _0x28aba0=_0x473dca?_0x48d9b0['diffData'][_0x1afe61]['attributesBefore']:_0x48d9b0['diffData'][_0x1afe61]['attributesAfter'];_0x385d6c['attributes'][_0x1afe61]=_0x28aba0?_0xd15063(_0x28aba0):{};break;}_0x163ac9+=_0x5ed6d1;}}for(const _0x41c74f of _0x354309){_0x41c74f['model']={};for(const _0x3bf481 of _0x41c74f['authors'])_0x58d264['set'](_0x3bf481['id'],_0x3bf481);for(const _0x2d360a of _0x18abe4){const _0xe3d2b6=_0x41c74f['diffData'][_0x2d360a]?_0x41c74f['diffData'][_0x2d360a]['insertions']:'[]',_0x47923d=_0x41c74f['diffData'][_0x2d360a]?_0x41c74f['diffData'][_0x2d360a]['deletions']:'[]';_0x41c74f['model'][_0x2d360a]={'insertions':this['_makeModelFromViewString'](_0xe3d2b6),'deletions':this['_makeModelFromViewString'](_0x47923d)};}}for(const _0x4c315b of _0x18abe4){let _0x4995e4=null,_0x73cf6a=0x0;const _0x689606=new Map(Array['from'](_0x34b88a['model'][_0x4c315b]['insertions']['markers'])['filter'](([_0x507616])=>!_0x507616['startsWith']('revision:')));let _0x211e6a=0x0;for(const _0x8f95c4 of _0x354309){const _0x5b868d=this['_makeTape'](_0x8f95c4['model'][_0x4c315b]['insertions']);_0x8f95c4==_0x34b88a?(_0x4995e4=_0x5b868d,_0x73cf6a=_0x4995e4['length'],_0x4995e4['forEach'](_0x27ebe9=>{_0x27ebe9['id']=_0x211e6a++;}),this['_processTape'](_0x4995e4)):this['_markInsertions'](_0x4995e4,_0x5b868d);const _0x3039b0=_0x4995e4['filter'](_0x3c54b5=>!_0x3c54b5['isAdded'])['map'](_0xea6d6d=>_0xea6d6d['id']);let _0x2bc5e0=0x0;const _0x40c89e=this['_makeTape'](_0x8f95c4['model'][_0x4c315b]['deletions']);_0x40c89e['forEach'](_0x3c6618=>{_0x3c6618['isRemoved']?_0x3c6618['id']=_0x73cf6a++:_0x3c6618['id']=_0x3039b0[_0x2bc5e0++];}),this['_processTape'](_0x40c89e),this['_setDistance'](_0x4995e4,'isAdded'),this['_setDistance'](_0x40c89e,'isRemoved'),_0x8f95c4==_0x34b88a&&this['_markMarkers'](_0x4995e4,_0x689606),_0x4995e4=this['_joinTapes'](_0x4995e4,_0x40c89e),this['_refreshStartEndIndex'](_0x4995e4),this['_setDistance'](_0x4995e4,'isRemoved');}_0x4995e4=_0x4995e4['filter'](_0x5bff4b=>!(_0x5bff4b['isAdded']&&_0x5bff4b['isRemoved']));const _0x3f8d13=new Map(_0x4e3d32['model'][_0x4c315b]['deletions']['markers']),_0x106532=new Set(_0x689606['keys']());for(const _0x448e31 of _0x3f8d13['keys']())_0x106532['delete'](_0x448e31);this['_markSuggestions'](_0x4995e4,_0x106532),this['_fixObsoleteTags'](_0x4995e4),_0x4995e4=this['_removeMissingPairs'](_0x4995e4),_0x4995e4=this['_markMismatchedRemovedTags'](_0x4995e4),_0x4995e4=this['_removeUnsupportedChanges'](_0x4995e4);const {root:_0x1b0539,changes:_0x1483c3}=this['_makeModelFromTape'](_0x4995e4,_0x58d264,_0x4c315b);_0x385d6c['model'][_0x4c315b]=_0x1b0539;const _0x202848=_0x303db5['get'](_0x4c315b);if(_0x202848){const _0x565287=_0x58d264['get'](_0x202848['userId']),_0x467b07=new r({'author':_0x565287,'type':_0x202848['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4c315b});_0x1483c3['unshift'](_0x467b07),_0x385d6c['attributes'][_0x4c315b]['revisionHistoryAttachChange']=_0x467b07['id'];}_0x385d6c['changes']=_0x385d6c['changes']['concat'](_0x1483c3);}return _0x385d6c;}['_markMarkers'](_0x5e3225,_0x51ef48){for(let _0x500f1b=0x0;_0x500f1b<_0x5e3225['length'];_0x500f1b++)for(const [_0x3612d4,_0x57d34b]of _0x51ef48)_0x57d34b['start']['isEqual'](_0x5e3225[_0x500f1b]['previousPosition'])&&_0x5e3225[_0x500f1b]['markersStart']['push'](_0x3612d4),_0x57d34b['end']['isEqual'](_0x5e3225[_0x500f1b]['nextPosition'])&&_0x5e3225[_0x500f1b]['markersEnd']['push'](_0x3612d4);}['_joinTapes'](_0xe73a08,_0x5d96ff){let _0x1c8e6b=[],_0x1daf80=0x0,_0x114c97=0x0;for(;_0x1daf80<_0xe73a08['length']||_0x114c97<_0x5d96ff['length'];){const _0x2fd481=_0xe73a08[_0x1daf80]||{},_0x15dd11=_0x5d96ff[_0x114c97]||{};if(_0x2fd481['id']==_0x15dd11['id'])_0x1daf80++,_0x114c97++,_0x1c8e6b['push'](_0x2fd481);else{if(_0x15dd11['isRemoved']&&_0x2fd481['isAdded']){const {commonTape:_0x23ee69,iEnd:_0x106106,jEnd:_0x5d5b47}=this['_threeWayMerge'](_0xe73a08,_0x1daf80,_0x5d96ff,_0x114c97);_0x1c8e6b=_0x1c8e6b['concat'](_0x23ee69),_0x1daf80=_0x106106,_0x114c97=_0x5d5b47;}else _0x15dd11['isRemoved']?(_0x114c97++,_0x1c8e6b['push'](_0x15dd11)):(_0x1daf80++,_0x1c8e6b['push'](_0x2fd481));}}return _0x1c8e6b;}['_markSuggestions'](_0x3dd7ae,_0x3e5cba){const _0x155368=[];for(let _0x36f468=0x0;_0x36f468<_0x3dd7ae['length'];_0x36f468++){for(let _0x12e251=0x0;_0x12e251<_0x3dd7ae[_0x36f468]['markersStart']['length'];_0x12e251++){const _0x1219aa=_0x3dd7ae[_0x36f468]['markersStart'][_0x12e251];if(!_0x3e5cba['has'](_0x1219aa))continue;const {group:_0x2ef843,type:_0x3db1a8,authorId:_0x5d51bc}=_0x3cfb68(_0x1219aa);'revision-suggestion'!=_0x2ef843||'insertion'!=_0x3db1a8&&'deletion'!=_0x3db1a8||(_0x155368['unshift']({'type':_0x3db1a8,'name':_0x1219aa,'userId':_0x5d51bc}),_0x3dd7ae[_0x36f468]['markersStart']['splice'](_0x12e251,0x1),_0x12e251--);}_0x588cb2(_0x3dd7ae[_0x36f468]);for(let _0x578f06=0x0;_0x578f06<_0x3dd7ae[_0x36f468]['markersEnd']['length'];_0x578f06++){const _0x49d078=_0x3dd7ae[_0x36f468]['markersEnd'][_0x578f06];if(!_0x3e5cba['has'](_0x49d078))continue;const {group:_0x1509bb,type:_0x5090e3}=_0x3cfb68(_0x49d078);if('revision-suggestion'!=_0x1509bb||'insertion'!=_0x5090e3&&'deletion'!=_0x5090e3)continue;_0x3dd7ae[_0x36f468]['markersEnd']['splice'](_0x578f06,0x1),_0x578f06--;const _0x2d63fe=_0x155368['findIndex'](_0x503f5e=>_0x503f5e['name']==_0x49d078);_0x2d63fe>-0x1&&_0x155368['splice'](_0x2d63fe,0x1);}}function _0x3cfb68(_0x48637b){const _0x419bd1=_0x48637b['split'](':');return{'group':_0x419bd1[0x0],'type':_0x419bd1[0x1],'subType':_0x419bd1['length']>=0x5?_0x419bd1[0x2]:null,'id':_0x419bd1['length']<0x5?_0x419bd1[0x2]:_0x419bd1[0x3],'authorId':_0x419bd1['length']<0x5?_0x419bd1[0x3]:_0x419bd1[0x4],'markerCount':0x6==_0x419bd1['length']?_0x419bd1[0x5]:null};}function _0x588cb2(_0x15239a){for(let _0x581d82=0x0;_0x581d82<_0x155368['length'];_0x581d82++){if(_0x15239a['isAdded']&&'insertion'==_0x155368[_0x581d82]['type'])return _0x15239a['isAddSuggestion']=_0x155368[_0x581d82],void delete _0x15239a['isAdded'];if(!_0x15239a['isAdded']&&!_0x15239a['isRemoved']&&'deletion'==_0x155368[_0x581d82]['type'])return void(_0x15239a['isRemoveSuggestion']=_0x155368[_0x581d82]);}}}['_setDistance'](_0x274b60,_0x49b6cb){let _0x34a0c9=0x0,_0x3c83a2=!0x1;const _0x2b2992=new Map();for(const _0x286033 of _0x274b60)_0x286033[_0x49b6cb]?_0x3c83a2&&(_0x34a0c9++,_0x3c83a2=!0x1):(_0x34a0c9++,_0x3c83a2=!0x0),_0x2b2992['set'](_0x286033['id'],_0x34a0c9);for(let _0x353a62=0x0;_0x353a62<_0x274b60['length'];_0x353a62++){if('isRemoved'==_0x49b6cb&&_0x274b60[_0x353a62]['isAdded']||'isAdded'==_0x49b6cb&&_0x274b60[_0x353a62]['isRemoved'])continue;if('text'==_0x274b60[_0x353a62]['type']){_0x274b60[_0x353a62]['distance']=0x0;continue;}const _0x590c21=_0x2b2992['get'](_0x274b60[_0x353a62]['pairId']),_0x18a2a6=_0x2b2992['get'](_0x274b60[_0x353a62]['id']);_0x274b60[_0x353a62]['distance']=_0x590c21-_0x18a2a6;}}['_getRevisionsRange'](_0x3f898b,_0x323660,_0xe6e5eb=!0x1){const _0x5c90af=[];let _0x1946fd=this['repository']['getIndex'](_0x3f898b),_0x5495d6=this['repository']['getIndex'](_0x323660);for(-0x1==_0x5495d6&&(_0x5495d6=this['repository']['_revisions']['length'],_0xe6e5eb=!0x1);_0x1946fd<_0x5495d6;)_0x5c90af['push'](this['repository']['getRevision'](_0x1946fd)),_0x1946fd++;return _0xe6e5eb&&_0x5c90af['push'](this['repository']['getRevision'](_0x1946fd)),_0x5c90af;}['_threeWayMerge'](_0x33a5ba,_0x5578b2,_0x17920f,_0xe37068){const _0x48a88a=this['editor']['model']['schema'];let _0x3ab8ec=_0x5578b2;for(;_0x33a5ba[_0x3ab8ec]&&_0x33a5ba[_0x3ab8ec]['isAdded'];)_0x3ab8ec++;let _0x3c3e4f=_0xe37068;for(;_0x17920f[_0x3c3e4f]&&_0x17920f[_0x3c3e4f]['isRemoved'];)_0x3c3e4f++;_0x452bb4(_0x33a5ba,_0x5578b2,_0x3ab8ec),_0x452bb4(_0x17920f,_0xe37068,_0x3c3e4f);const _0x2f9a15=_0x17920f['slice'](_0xe37068,_0x3c3e4f)['concat'](_0x33a5ba['slice'](_0x5578b2,_0x3ab8ec));return _0x2f9a15['sort']((_0x485120,_0x2d63ea)=>_0x485120['side']!=_0x2d63ea['side']?_0x485120['side']-_0x2d63ea['side']:_0x485120['level']!=_0x2d63ea['level']?_0x485120['level']-_0x2d63ea['level']:_0x485120['distance']!=_0x2d63ea['distance']?_0x2d63ea['distance']-_0x485120['distance']:!!_0x485120['isAdded']!=!!_0x2d63ea['isAdded']?-0x1==_0x485120['side']||0x0==_0x485120['side']?_0x485120['isAdded']?-0x1:0x1:_0x485120['isAdded']?0x1:-0x1:_0x485120['index']-_0x2d63ea['index']),{'commonTape':_0x2f9a15,'iEnd':_0x3ab8ec,'jEnd':_0x3c3e4f};function _0x452bb4(_0x39730b,_0x108f91,_0x4b99cd){let _0x59c750=-0x1,_0x462914=Number['POSITIVE_INFINITY'],_0x109749=!0x0;for(let _0x656749=_0x108f91;_0x656749<_0x4b99cd;_0x656749++)if(_0x48a88a['isInline'](_0x39730b[_0x656749]['item'])||(_0x109749=!0x1),_0x39730b[_0x656749]['item']['startIndex']<_0x108f91&&(_0x59c750=_0x656749),_0x39730b[_0x656749]['item']['endIndex']>=_0x4b99cd){_0x462914=_0x656749;break;}_0x109749&&(_0x59c750=_0x4b99cd-0x1);for(let _0x9d23f6=_0x108f91;_0x9d23f6<_0x4b99cd;_0x9d23f6++)_0x39730b[_0x9d23f6]['side']=_0x9d23f6<=_0x59c750?-0x1:_0x9d23f6<_0x462914?0x0:0x1,_0x39730b[_0x9d23f6]['index']=_0x9d23f6;let _0xc0e2ad=0x0;for(let _0x419764=_0x108f91;_0x419764<=_0x59c750;_0x419764++)0x0==_0x39730b[_0x419764]['distance']?_0x39730b[_0x419764]['level']=_0xc0e2ad:(_0xc0e2ad++,_0x39730b[_0x419764]['level']=_0xc0e2ad,_0xc0e2ad++);for(let _0x20c5bb=_0x108f91;_0x20c5bb<_0x4b99cd;_0x20c5bb++)0x0==_0x39730b[_0x20c5bb]['side']&&(_0x39730b[_0x20c5bb]['level']=_0xc0e2ad);_0xc0e2ad=0x0;for(let _0x3a314a=_0x4b99cd-0x1;_0x3a314a>=_0x462914;_0x3a314a--)0x0==_0x39730b[_0x3a314a]['distance']?_0x39730b[_0x3a314a]['level']=_0xc0e2ad:(_0xc0e2ad--,_0x39730b[_0x3a314a]['level']=_0xc0e2ad,_0xc0e2ad--);}}['_fixObsoleteTags'](_0x5c36cd){const _0x91369e=new Map(),_0x365d96=this['editor']['model']['schema'];for(let _0xb99a90=0x1;_0xb99a90<_0x5c36cd['length'];_0xb99a90++){let _0x412476,_0x32949b,_0x277196;const _0x3c45ea=_0x5c36cd[_0xb99a90],_0x55af84=_0x5c36cd[_0xb99a90-0x1];if('text'==_0x3c45ea['type'])continue;if(_0x3c45ea['type']!=_0x55af84['type'])continue;if(!_0x365d96['isBlock'](_0x55af84['item'])||_0x365d96['isLimit'](_0x55af84['item']))continue;if(!_0x365d96['isBlock'](_0x3c45ea['item'])||_0x365d96['isLimit'](_0x3c45ea['item']))continue;if((_0x5c36cd[_0xb99a90]['isAdded']||_0x5c36cd[_0xb99a90]['isAddSuggestion'])&&_0x5c36cd[_0xb99a90-0x1]['isRemoved'])_0x412476=_0x5c36cd[_0xb99a90],_0x32949b=_0x5c36cd[_0xb99a90-0x1],_0x277196=_0xb99a90-0x1;else{if(!_0x5c36cd[_0xb99a90]['isRemoved']||!_0x5c36cd[_0xb99a90-0x1]['isAdded']&&!_0x5c36cd[_0xb99a90-0x1]['isAddSuggestion'])continue;_0x412476=_0x5c36cd[_0xb99a90-0x1],_0x32949b=_0x5c36cd[_0xb99a90],_0x277196=_0xb99a90;}const _0x2d9393=_0x412476['level']==_0x32949b['level'],_0x19da3b=Math['abs'](_0x412476['level'])<Math['abs'](_0x32949b['level'])&&0x0==_0x32949b['distance'];(_0x2d9393||_0x19da3b)&&(_0x91369e['set'](_0x32949b['id'],_0x412476['id']),_0x5c36cd['splice'](_0x277196,0x1),_0xb99a90--,_0x412476['isAdded']=!0x1);}for(let _0x37a60f=0x0;_0x37a60f<_0x5c36cd['length'];_0x37a60f++)_0x91369e['has'](_0x5c36cd[_0x37a60f]['pairId'])&&(_0x5c36cd[_0x37a60f]['pairId']=_0x91369e['get'](_0x5c36cd[_0x37a60f]['pairId']));}['_removeMissingPairs'](_0x58ccc2){const _0x396544=new Set(_0x58ccc2['map'](_0x2907a2=>_0x2907a2['id']));for(let _0x2b9d86=0x0;_0x2b9d86<_0x58ccc2['length'];_0x2b9d86++)_0x396544['has'](_0x58ccc2[_0x2b9d86]['pairId'])||0x0==_0x58ccc2[_0x2b9d86]['distance']||(_0x58ccc2[_0x2b9d86]['isIncorrect']=!0x0);return _0x58ccc2['filter'](_0x10cf9c=>!_0x10cf9c['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3a17ca){const _0x516187=new Set();for(let _0x1a48e2=0x0;_0x1a48e2<_0x3a17ca['length'];_0x1a48e2++){if(_0x516187['has'](_0x3a17ca[_0x1a48e2]['id'])&&_0x3a17ca[_0x1a48e2]['isRemoved']&&(_0x3a17ca[_0x1a48e2]['isIncorrect']=!0x0),_0x3a17ca[_0x1a48e2]['isIncorrect'])continue;if(0x0==_0x3a17ca[_0x1a48e2]['distance'])continue;if('elementStart'!=_0x3a17ca[_0x1a48e2]['type'])continue;if(null==_0x3a17ca[_0x1a48e2]['pairId'])continue;let _0xa2a73a=_0x1a48e2+0x1,_0x5523d5=0x0;for(;_0x3a17ca[_0xa2a73a]['id']!=_0x3a17ca[_0x1a48e2]['pairId'];)'elementStart'==_0x3a17ca[_0xa2a73a]['type']?_0x5523d5++:'elementEnd'==_0x3a17ca[_0xa2a73a]['type']&&_0x5523d5--,_0xa2a73a++;if(0x0!=_0x5523d5){if(_0x3a17ca[_0x1a48e2]['isRemoved'])_0x3a17ca[_0x1a48e2]['isIncorrect']=!0x0;else{for(;_0xa2a73a!=_0x1a48e2;)_0x3a17ca[_0xa2a73a]['isRemoved']&&0x0!=_0x3a17ca[_0xa2a73a]['distance']&&(_0x3a17ca[_0xa2a73a]['isIncorrect']=!0x0,_0x516187['add'](_0x3a17ca[_0xa2a73a]['pairId'])),_0xa2a73a--;}}}return _0x3a17ca['filter'](_0x1f200f=>!_0x1f200f['isIncorrect']);}['_removeUnsupportedChanges'](_0x47c4a0){const _0x47b287=this['editor']['model']['schema'];for(let _0x48dd77=0x0;_0x48dd77<_0x47c4a0['length'];_0x48dd77++){if(!(_0x47c4a0[_0x48dd77]['isAdded']||_0x47c4a0[_0x48dd77]['isAddSuggestion']||_0x47c4a0[_0x48dd77]['isRemoved']||_0x47c4a0[_0x48dd77]['isRemoveSuggestion']))continue;if(0x0==_0x47c4a0[_0x48dd77]['distance'])continue;const _0x12590a=_0x47c4a0[_0x48dd77]['item'];_0x47b287['isBlock'](_0x12590a)||_0x47b287['isLimit'](_0x12590a)||(_0x47c4a0[_0x48dd77]['isAdded']&&delete _0x47c4a0[_0x48dd77]['isAdded'],_0x47c4a0[_0x48dd77]['isAddSuggestion']&&delete _0x47c4a0[_0x48dd77]['isAddSuggestion'],_0x47c4a0[_0x48dd77]['isRemoveSuggestion']&&delete _0x47c4a0[_0x48dd77]['isRemoveSuggestion'],_0x47c4a0[_0x48dd77]['isRemoved']&&(_0x47c4a0[_0x48dd77]['isIncorrect']=!0x0));}return _0x47c4a0['filter'](_0x279406=>!_0x279406['isIncorrect']);}['_makeModelFromTape'](_0x3f2afa,_0x9162b9,_0xfaa90c){const _0x4b88ad=new wt(),_0x4d4790=[],_0x8a2e84=new Map(),_0x42c364=this['editor']['model'],_0x299ff1=_0x42c364['schema'],_0xb9e352=[_0x4b88ad],_0x1a5bf9={},_0x4efe17={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3068cf=null;const _0x141561=[0x0];for(let _0x2b9d32=0x0;_0x2b9d32<_0x3f2afa['length'];_0x2b9d32++)if('elementStart'===_0x3f2afa[_0x2b9d32]['type']){_0x3f2afa[_0x2b9d32]['previousPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561);const _0x56eca9=new ft(_0x3f2afa[_0x2b9d32]['item']['name'],_0x3f2afa[_0x2b9d32]['item']['getAttributes']());_0xb9e352[0x0]['_appendChild'](_0x56eca9),_0x141561['push'](0x0),_0xb9e352['unshift'](_0x56eca9),_0x3f2afa[_0x2b9d32]['nextPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561);}else'elementEnd'===_0x3f2afa[_0x2b9d32]['type']?(_0xb9e352['shift'](),_0x3f2afa[_0x2b9d32]['previousPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561),_0x141561['pop'](),_0x141561[_0x141561['length']-0x1]++,_0x3f2afa[_0x2b9d32]['nextPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561)):(_0x3f2afa[_0x2b9d32]['previousPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561),_0x3068cf?_0x3068cf['_data']+=_0x3f2afa[_0x2b9d32]['item']['data']:_0x3068cf=new _t(_0x3f2afa[_0x2b9d32]['item']['data'],_0x3f2afa[_0x2b9d32]['item']['getAttributes']()),_0x3f2afa[_0x2b9d32+0x1]&&'text'===_0x3f2afa[_0x2b9d32+0x1]['type']&&_0x45ac5c(_0x3068cf,_0x3f2afa[_0x2b9d32+0x1]['item'])||(_0xb9e352[0x0]['_appendChild'](_0x3068cf),_0x3068cf=null),_0x141561[_0x141561['length']-0x1]+=_0x3f2afa[_0x2b9d32]['item']['offsetSize'],_0x3f2afa[_0x2b9d32]['nextPosition']=_0x42c364['createPositionFromPath'](_0x4b88ad,_0x141561));for(let _0x27996d=0x0;_0x27996d<_0x3f2afa['length'];_0x27996d++){const _0x66007d=_0x3f2afa[_0x27996d]['previousPosition'],_0x3810f4=_0x3f2afa[_0x27996d]['nextPosition'];for(const _0x469dc9 of _0x3f2afa[_0x27996d]['markersStart'])_0x8a2e84['set'](_0x469dc9,{'start':_0x66007d,'end':null});_0x443076('isRemoveSuggestion',_0x27996d,_0x66007d,_0x3810f4),_0x443076('isAddSuggestion',_0x27996d,_0x66007d,_0x3810f4),_0x443076('isRemoved',_0x27996d,_0x66007d,_0x3810f4),_0x443076('isAdded',_0x27996d,_0x66007d,_0x3810f4);for(const _0x256564 of _0x3f2afa[_0x27996d]['markersEnd']){_0x8a2e84['get'](_0x256564)['end']=_0x3810f4;}}for(const [_0x246a4d,_0x1c2a00]of _0x8a2e84){const _0x65f7b=this['editor']['model']['createRange'](_0x1c2a00['start'],_0x1c2a00['end']);_0x4b88ad['markers']['set'](_0x246a4d,_0x65f7b);}return _0x4d4790['sort']((_0x2558e1,_0x33e897)=>{const _0x2b4312=_0x4b88ad['markers']['get']('revision:'+_0x2558e1['id']),_0x36e7eb=_0x4b88ad['markers']['get']('revision:'+_0x33e897['id']);return _0x2b4312['start']['isBefore'](_0x36e7eb['start'])?-0x1:_0x2b4312['start']['isAfter'](_0x36e7eb['start'])?0x1:_0x2b4312['end']['isBefore'](_0x36e7eb['end'])?-0x1:_0x2b4312['end']['isAfter'](_0x36e7eb['end'])?0x1:'add'===_0x2558e1['type']?-0x1:0x1;}),{'root':_0x4b88ad,'changes':_0x4d4790};function _0x443076(_0x5b3369,_0x4a1f5a,_0x118d89,_0x3dba3f){const _0x5102b8=!!_0x3f2afa[_0x4a1f5a][_0x5b3369],_0x432849=_0x5102b8?_0x3f2afa[_0x4a1f5a][_0x5b3369]['userId']:null,_0x26e526=_0x4a1f5a===_0x3f2afa['length']-0x1,_0x4257fe=_0x4efe17[_0x5b3369][0x0],_0x1b2258=_0x299ff1['isObject'](_0x3f2afa[_0x4a1f5a]['item']);!_0x1a5bf9[_0x5b3369]&&_0x5102b8?_0x1a5bf9[_0x5b3369]={'start':_0x118d89,'tapeItem':_0x3f2afa[_0x4a1f5a],'userId':_0x432849,'type':_0x5b3369}:_0x1a5bf9[_0x5b3369]&&!_0x5102b8?(_0x1a5bf9[_0x5b3369]['end']=_0x118d89,_0x1d8364(_0x1a5bf9[_0x5b3369]),_0x1a5bf9[_0x5b3369]=null):_0x1a5bf9[_0x5b3369]&&_0x5102b8&&_0x1a5bf9[_0x5b3369]['userId']!==_0x432849&&(_0x1a5bf9[_0x5b3369]['end']=_0x118d89,_0x4257fe&&_0x4257fe['userId']===_0x1a5bf9[_0x5b3369]['userId']||_0x1d8364(_0x1a5bf9[_0x5b3369]),_0x1a5bf9[_0x5b3369]={'start':_0x118d89,'tapeItem':_0x3f2afa[_0x4a1f5a],'userId':_0x432849,'type':_0x5b3369}),_0x1a5bf9[_0x5b3369]&&_0x1b2258&&('elementStart'!==_0x3f2afa[_0x4a1f5a]['type']||_0x4257fe&&_0x4257fe['userId']===_0x432849||_0x4efe17[_0x5b3369]['unshift']({'userId':_0x432849,'object':_0x3f2afa[_0x4a1f5a]['item'],'change':_0x1a5bf9[_0x5b3369]}),'elementEnd'===_0x3f2afa[_0x4a1f5a]['type']&&_0x4257fe&&_0x4257fe['object']===_0x3f2afa[_0x4a1f5a]['item']&&(_0x4efe17[_0x5b3369]['shift'](),_0x1a5bf9[_0x5b3369]=_0x4257fe['change'])),_0x1a5bf9[_0x5b3369]&&_0x26e526&&(_0x1a5bf9[_0x5b3369]['end']=_0x3dba3f,_0x1d8364(_0x1a5bf9[_0x5b3369]),_0x1a5bf9[_0x5b3369]=null);}function _0x1d8364({start:_0x245733,end:_0x50ea8f,tapeItem:_0x31ccc3,userId:_0x3ec4a9,type:_0x597c58}){const _0x1ef9c6=_0x31ccc3['item'],_0x170835=_0x42c364['schema']['isBlock'](_0x1ef9c6)&&!_0x42c364['schema']['isLimit'](_0x1ef9c6),_0x59910a=_0x245733['nodeAfter']==_0x50ea8f['parent']&&_0x50ea8f['isAtStart'];if(_0x170835&&_0x59910a)return;const _0x41de29=_0x42c364['createRange'](_0x245733,_0x50ea8f),_0xb9ffba=_0x9162b9['get'](_0x3ec4a9),_0x58c438=new r({'author':_0xb9ffba,'type':'isAdded'==_0x597c58||'isAddSuggestion'==_0x597c58?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x597c58||'isRemoveSuggestion'==_0x597c58},'createdAt':new Date(),'rootName':_0xfaa90c});_0x4d4790['push'](_0x58c438),_0x4b88ad['markers']['set']('revision:'+_0x58c438['id'],_0x41de29);}function _0x45ac5c(_0x242032,_0x5cc6fb){const _0x1c0799=_0x242032['getAttributes'](),_0x1a513c=_0x5cc6fb['getAttributes']();for(const _0x6571f0 of _0x1c0799){if(_0x6571f0[0x1]!==_0x5cc6fb['getAttribute'](_0x6571f0[0x0]))return!0x1;_0x1a513c['next']();}return _0x1a513c['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x156c98=>{const _0x1e99d3=_0x156c98['markerName']['split'](':')[0x1],_0x1a2fc6=this['_getChangeFromId'](_0x1e99d3);if(!_0x1a2fc6)return null;const _0x5b6532='add'==_0x1a2fc6['type']?'insertion':'deletion',_0x203cac=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5b6532];return _0x1a2fc6['data']['isSuggestion']&&_0x203cac['push']('ck-suggestion-marker-'+_0x5b6532+'-new'),this['activeChange']==_0x1a2fc6&&_0x203cac['push']('ck-suggestion-marker--active'),{'classes':_0x203cac,'attributes':{'data-change-id':_0x1e99d3}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e2153=>{_0x5e2153['on']('element:pre',(_0x4a5b98,_0x50ae90,_0x2aab8a)=>{const _0x74e635=_0x50ae90['viewItem']['getChild'](0x0);if(!_0x74e635||!_0x74e635['is']('element','code'))return;if(!_0x2aab8a['consumable']['consume'](_0x74e635,{'attributes':['vid_start','vid_end']}))return;const _0x55056a=_0x50ae90['modelRange']['start']['nodeAfter'];_0x2aab8a['writer']['setAttribute']('vid_start',_0x74e635['getAttribute']('vid_start'),_0x55056a),_0x2aab8a['writer']['setAttribute']('vid_end',_0x74e635['getAttribute']('vid_end'),_0x55056a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x268c04=>{_0x268c04['on']('element',(_0x286bff,_0x3419ad,_0x41b322)=>{if(!_0x41b322['consumable']['consume'](_0x3419ad['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3419ad['modelRange']['isCollapsed'])return;const _0x144ce3=_0x3419ad['modelRange']['start']['nodeAfter'];_0x144ce3['hasAttribute']('vid_start')||_0x144ce3['hasAttribute']('vid')||(_0x41b322['writer']['setAttribute']('vid_start',_0x3419ad['viewItem']['getAttribute']('vid_start'),_0x144ce3),_0x41b322['writer']['setAttribute']('vid_end',_0x3419ad['viewItem']['getAttribute']('vid_end'),_0x144ce3));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xbde84f=>_0xbde84f['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3b19a0,[,_0x38b397])=>{['vid_start','vid_end','vid']['includes'](_0x38b397)&&(_0x3b19a0['return']=!0x0,_0x3b19a0['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x57de3a=>{_0x57de3a['on']('attribute:vid',(_0x5bb448,_0x3172de,_0x13beec)=>{if('\x20'!=_0x3172de['item']['data']||_0x3172de['item']['parent']['maxOffset']>0x1)return;if(!_0x13beec['consumable']['consume'](_0x3172de['item'],_0x5bb448['name']))return;const _0x577d47=_0x13beec['writer'],_0xa852ea=_0x13beec['mapper']['toViewRange'](_0x3172de['range']);_0x577d47['wrap'](_0xa852ea,_0x577d47['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x27ac6f){const _0x48efad=_0x27ac6f['plugins']['get']('RevisionViewer');return(_0x5f08f8,_0x1801ad,_0x5a4d1c)=>{const _0x29cebf=_0x1801ad['markerName']['split'](':')[0x1],_0x526ba1=_0x48efad['_getChangeFromId'](_0x29cebf);if(!_0x526ba1)return null;const _0x393bdb='add'==_0x526ba1['type']?'split':'merge';if(!_0x5a4d1c['consumable']['test'](_0x1801ad['markerRange'],_0x5f08f8['name']))return;const _0x48771b=_0x1801ad['markerRange']['getWalker'](),_0x455671=_0x1801ad['markerRange']['start'],_0x405f92=_0x27ac6f['model']['schema'];let _0x3f28e3=null,_0x418ac4=null,_0xfec8de=!0x1,_0x5c9638=!0x1;for(const _0x49c91a of _0x48771b){const _0xb04513=_0x49c91a['item'];_0xfec8de=_0xfec8de||_0x405f92['isContent'](_0xb04513);const _0x1d07a4=_0x5a4d1c['mapper']['toViewElement'](_0xb04513);if(_0x1d07a4&&_0x1d07a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x49c91a['type']&&(_0x405f92['isBlock'](_0xb04513)&&!_0x405f92['isLimit'](_0xb04513)&&(_0xb04513['nextSibling']||_0x455671['isAtEnd']?_0x3f28e3&&_0x3f28e3['parent']==_0xb04513||(_0x3f28e3=_0xb04513,_0x2e7ea4(_0x49c91a['previousPosition']),_0x5c9638=!0x0):_0x418ac4=_0x418ac4||_0x49c91a['previousPosition']));}function _0x2e7ea4(_0x24aa67){const _0x1ffe32=_0x5a4d1c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x393bdb}),_0x3addfe=_0x5a4d1c['mapper']['toViewPosition'](_0x24aa67);_0x526ba1['data']['isSuggestion']&&_0x5a4d1c['writer']['addClass']('ck-suggestion-marker-'+_0x393bdb+'-new',_0x1ffe32),_0x48efad['activeChange']==_0x526ba1&&_0x5a4d1c['writer']['addClass']('ck-suggestion-marker--active',_0x1ffe32),_0x5a4d1c['writer']['insert'](_0x3addfe,_0x1ffe32),_0x5a4d1c['mapper']['bindElementToMarker'](_0x1ffe32,_0x1801ad['markerName']);}_0xfec8de||_0x5c9638||!_0x418ac4||_0x2e7ea4(_0x418ac4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2be13a,_0x305797,_0x52fd14)=>{const _0x118f0a=_0x52fd14['mapper']['markerNameToElements'](_0x305797['markerName']);if(_0x118f0a){for(const _0x299887 of _0x118f0a)(_0x299887['hasClass']('ck-suggestion-marker-split')||_0x299887['hasClass']('ck-suggestion-marker-merge'))&&(_0x52fd14['mapper']['unbindElementFromMarkerName'](_0x299887,_0x305797['markerName']),_0x52fd14['writer']['remove'](_0x299887));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x17c8be,_0x5b055c,_0x69cc58)=>{const _0x27877f=_0x5b055c['markerName']['split'](':')[0x1],_0x150195=this['_getChangeFromId'](_0x27877f);if(!_0x150195)return null;const _0x35b0c0='add'==_0x150195['type']?'split':'merge';if(_0x69cc58['consumable']['test'](_0x5b055c['markerRange'],_0x17c8be['name']))for(const _0x200c6f of _0x5b055c['markerRange']['getItems']()){if(!_0x200c6f['is']('element','softBreak'))continue;const _0x3c903f=_0x69cc58['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35b0c0}),_0x51c7c3=_0x69cc58['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x200c6f));_0x150195['data']['isSuggestion']&&_0x69cc58['writer']['addClass']('ck-suggestion-marker-'+_0x35b0c0+'-new',_0x3c903f),this['activeChange']==_0x150195&&_0x69cc58['writer']['addClass']('ck-suggestion-marker--active',_0x3c903f),_0x69cc58['writer']['insert'](_0x51c7c3,_0x3c903f),_0x69cc58['mapper']['bindElementToMarker'](_0x3c903f,_0x5b055c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x583821=>{for(const _0xdf6ac8 of this['editor']['model']['document']['getRootNames']()){const _0x5f30f6=this['editor']['model']['document']['getRoot'](_0xdf6ac8),_0x3b1941=this['editor']['editing']['view']['document']['getRoot'](_0xdf6ac8);if(_0x3b1941){const _0x57248c=_0x5f30f6['getAttribute']('revisionHistoryAttachChange');if(_0x583821['removeAttribute']('data-change-id',_0x3b1941),_0x583821['removeClass']('ck-revision-history-root-add',_0x3b1941),_0x583821['removeClass']('ck-revision-history-root-remove',_0x3b1941),_0x583821['removeClass']('ck-revision-history-root--active',_0x3b1941),_0x57248c){const _0x25d32a=this['_getChangeFromId'](_0x57248c);if(!_0x25d32a)return null;_0x583821['setAttribute']('data-change-id',_0x57248c,_0x3b1941),_0x583821['addClass']('ck-revision-history-root-'+_0x25d32a['type'],_0x3b1941),this['activeChange']==_0x25d32a&&_0x583821['addClass']('ck-revision-history-root--active',_0x3b1941);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x18de01=>'revision-comment:'+_0x18de01,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xa54a02=>'revision-suggestion:'+_0xa54a02,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x22b0f2=>({'name':'suggestion:'+_0x22b0f2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x51efd3=>{const _0x56cbf0=_0x51efd3['markerName']['split'](':')[0x1];return'insertion'!=_0x56cbf0&&'deletion'!=_0x56cbf0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x56cbf0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x575894,_0x546158,_0x435ef8)=>{const _0x4b6714=_0x435ef8['mapper']['markerNameToElements'](_0x546158['markerName']);if(_0x4b6714){for(const _0x43d126 of _0x4b6714)_0x43d126['is']('uiElement')&&(_0x435ef8['mapper']['unbindElementFromMarkerName'](_0x43d126,_0x546158['markerName']),_0x435ef8['writer']['remove'](_0x43d126));}},{'priority':'high'});}['_getChangeFromId'](_0x12e7a7){return this['_changeIdToChange']['get'](_0x12e7a7);}['_getViewForChange'](_0x5b4c85){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5b4c85),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0xba4acd,_0x5dd626,_0x3c5857,_0x58bfa4)=>{_0x58bfa4&&this['_balloon']['remove'](_0x58bfa4),_0x3c5857&&(this['_balloon']['add']({'view':_0x3c5857,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2ff0cb=this['editor']['editing'],_0x3bedf2=this['_getChangeFromId'](_0x3c5857['changeId']);let _0x1dcf02;if(_0x3bedf2['data']['isOnRoot']){const _0x3cfe6d=_0x2ff0cb['view']['getDomRoot'](_0x3bedf2['rootName']);_0x1dcf02=Array['from'](_0x3cfe6d['getClientRects']());}else{const _0x5d6aef=this['editor']['model']['markers']['get']('revision:'+_0x3c5857['changeId']);_0x1dcf02=Array['from'](_0x2ff0cb['mapper']['markerNameToElements'](_0x5d6aef['name']))['map'](_0x3b9cb5=>_0x2ff0cb['view']['domConverter']['mapViewToDom'](_0x3b9cb5))['map'](_0x52d462=>Array['from'](_0x52d462['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1dcf02[0x0];return _0x1dcf02['find'](_0x2bd09d=>_0x2bd09d['top']-0x3<=this['_activeViewTarget']['y']&&_0x2bd09d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2bd09d['left']-0x3<=this['_activeViewTarget']['x']&&_0x2bd09d['right']+0x3>=this['_activeViewTarget']['x'])||_0x1dcf02[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2c91a3,_0x5727aa,_0x5f4f00,_0x3180ca)=>{this['activeView']=_0x5f4f00?this['_getViewForChange'](_0x5f4f00):null,this['editor']['model']['change'](()=>{const _0x590a8f=this['editor']['editing'];_0x3180ca&&(_0x3180ca['data']['isOnRoot']?_0x590a8f['view']['change'](_0x1f77ed=>{_0x1f77ed['removeClass']('ck-revision-history-root--active',_0x590a8f['view']['document']['getRoot'](_0x3180ca['rootName']));}):_0x590a8f['reconvertMarker']('revision:'+_0x3180ca['id'])),_0x5f4f00&&(_0x5f4f00['data']['isOnRoot']?_0x590a8f['view']['change'](_0x5ecb55=>{_0x5ecb55['addClass']('ck-revision-history-root--active',_0x590a8f['view']['document']['getRoot'](_0x5f4f00['rootName']));}):_0x590a8f['reconvertMarker']('revision:'+_0x5f4f00['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x59a574,_0x50e861)=>{if(this['activeChange'])return;const _0x34b1a2=this['_findChangeIdFromDomTarget'](_0x50e861['target']),_0x5dc35d=this['_changeIdToChange']['get'](_0x34b1a2);_0x5dc35d?(this['_activeViewTarget']={'x':_0x50e861['domEvent']['x'],'y':_0x50e861['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5dc35d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x31fcc5,_0x4af0df)=>{const _0x38f491=this['_findChangeIdFromDomTarget'](_0x4af0df['target']),_0x25793c=this['_changeIdToChange']['get'](_0x38f491);_0x25793c?(this['_activeViewTarget']={'x':_0x4af0df['domEvent']['x'],'y':_0x4af0df['domEvent']['y']},_0x25793c===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25793c):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x22fe6b){do{const _0x21a965=_0x22fe6b['getAttribute']('data-change-id');if(_0x21a965)return _0x21a965;_0x22fe6b=_0x22fe6b['parent'];}while(_0x22fe6b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4d5849=>{for(const _0x15fd1b of this['editor']['model']['markers'])_0x4d5849['removeMarker'](_0x15fd1b);});}}function tt(_0x5f019c,_0x453ed9){return(_0x51e891,_0x44c247,_0x1836a5)=>{if(!_0x1836a5['consumable']['test'](_0x44c247['markerRange'],_0x51e891['name']))return;const _0x2b6804=_0x44c247['markerRange']['getWalker'](),_0x11f572=_0x44c247['markerRange']['start'],_0x2197a1=_0x5f019c['model']['schema'];let _0x2cb332=null,_0x199063=null,_0x505531=!0x1,_0x20af7d=!0x1;for(const _0x239049 of _0x2b6804){const _0x483f85=_0x239049['item'];_0x505531=_0x505531||_0x2197a1['isContent'](_0x483f85);const _0x11a92b=_0x1836a5['mapper']['toViewElement'](_0x483f85);if(_0x11a92b&&_0x11a92b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x239049['type']&&(_0x2197a1['isBlock'](_0x483f85)&&!_0x2197a1['isLimit'](_0x483f85)&&(_0x483f85['nextSibling']||_0x11f572['isAtEnd']?_0x2cb332&&_0x2cb332['parent']==_0x483f85||(_0x2cb332=_0x483f85,_0x1b6bdc(_0x239049['previousPosition']),_0x20af7d=!0x0):_0x199063=_0x199063||_0x239049['previousPosition']));}function _0x1b6bdc(_0x1b763f){const _0x477fd3=_0x1836a5['mapper']['toViewPosition'](_0x1b763f),_0x2e713d=_0x1836a5['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x453ed9});_0x1836a5['writer']['insert'](_0x477fd3,_0x2e713d),_0x1836a5['mapper']['bindElementToMarker'](_0x2e713d,_0x44c247['markerName']);}_0x505531||_0x20af7d||!_0x199063||_0x1b6bdc(_0x199063);};}class yt extends _0x16bd35{constructor(_0x1d91ca){super(_0x1d91ca);const _0xef3b6d=_0x1d91ca['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xef3b6d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xef3b6d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x504ca0=this['editor'],_0x23ff04=_0x504ca0['plugins']['get'](d),_0x1b4d19=_0x23ff04['isReady']?_0x23ff04['diff']['newRevisionId']:null;_0x504ca0['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1b4d19);}['refresh'](){const {isReady:_0x2c1d08,isEnabled:_0x2fab54}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x2c1d08&&_0x2fab54;}}class bt extends _0x16bd35{['_step'];constructor(_0xf80c81,{direction:_0x30d909}){super(_0xf80c81);const _0x2137c9=_0xf80c81['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x30d909?0x1:-0x1,this['listenTo'](_0x2137c9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2137c9,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2137c9,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2ce991=this['editor'],_0x492b09=_0x2ce991['plugins']['get'](d),{isNavigationMode:_0x3654b1,currentChangeNumber:_0xf6f6bc}=_0x492b09;let _0x3425d2;if(_0x492b09['activeChange']=_0x3654b1?_0x492b09['diff']['changes']['get'](_0xf6f6bc+this['_step']):_0x492b09['diff']['changes']['first'],_0x492b09['activeChange']['data']['isOnRoot'])_0x3425d2=_0x2ce991['editing']['view']['getDomRoot'](_0x492b09['activeChange']['rootName']);else{const _0x5cac28=_0x2ce991['model']['markers']['get']('revision:'+_0x492b09['activeChange']['id']);_0x3425d2=_0x1e3d9d(_0x2ce991['editing'],_0x5cac28);}_0xdc13e8({'target':_0x3425d2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x35aea9,currentChangeNumber:_0x39240b,numberOfChanges:_0x4198c4,isReady:_0x2b8057,isEnabled:_0xdf8550}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xdf8550&&_0x2b8057&&_0x4198c4)&&(!_0x35aea9||(0x1===this['_step']?_0x39240b<_0x4198c4-0x1:_0x39240b>0x0));}}class di extends _0x4f4dcf{constructor(_0x315ea2){super(_0x315ea2);const _0x1b5dde=this['bindTemplate'],_0x3f7bdf=new _0x18590d(_0x315ea2),_0x92cd7c=new _0x18590d(_0x315ea2);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',(_0xc36be0,_0x5bcf0e)=>_0xc36be0&&_0x5bcf0e>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x144d8b,_0x16e4c8,_0x23a613,_0x19f4f5)=>{if(!_0x144d8b)return R(_0x315ea2,'Loading...');if(!_0x23a613)return R(_0x315ea2,'No\x20changes');const _0x33042b=R(_0x315ea2,'NUMBER_OF_CHANGES',_0x23a613);return _0x19f4f5?R(_0x315ea2,'X_OF_Y_CHANGES',[_0x16e4c8+0x1,_0x23a613]):_0x33042b;}),_0x3f7bdf['set']({'label':R(_0x315ea2,'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'}),_0x92cd7c['set']({'label':R(_0x315ea2,'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'}),_0x3f7bdf['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x92cd7c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x3f7bdf['on']('execute',()=>this['fire']('execute','backward')),_0x92cd7c['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',_0x1b5dde['if']('_isStatusLabelVisible','ck-hidden',_0x5e9126=>!_0x5e9126)]},'children':[{'text':_0x1b5dde['to']('isNavigationMode',_0xb5db1f=>_0xb5db1f?R(_0x315ea2,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x315ea2,'Total')+':\x20')}]},{'text':_0x1b5dde['to']('_statusText')}]},new _0x3b7cad(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x3f7bdf,_0x92cd7c]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x9a5545{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xbed15a=this['editor']['editing']['view'];_0xbed15a['change'](_0x5b0291=>{for(const _0x363d68 of _0xbed15a['document']['roots'])_0x5b0291['addClass'](ce,_0x363d68);});}['hide'](){const _0x4d35ca=this['editor']['editing']['view'];_0x4d35ca['change'](_0x451487=>{for(const _0x278be8 of _0x4d35ca['document']['roots'])_0x451487['removeClass'](ce,_0x278be8);});}}class m extends _0x9a5545{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x29bedc=this['editor'],_0x4e1132=_0x29bedc['plugins']['get'](d),_0xec447f=_0x29bedc['plugins']['get'](ae);_0x29bedc['ui']['componentFactory']['add']('exitToEditing',_0x2be7a7=>{const _0x25e763=new _0x18590d(_0x2be7a7);return _0x25e763['set']({'label':R(_0x2be7a7,'Back\x20to\x20editing'),'icon':_0x25fa55['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x25e763,'execute',()=>{_0x29bedc['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x25e763;}),_0x29bedc['ui']['componentFactory']['add']('restoreRevision',_0x183354=>{const _0x3b4e41=new _0x18590d(_0x183354);return _0x3b4e41['set']({'label':R(_0x183354,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3b4e41['bind']('isEnabled')['to'](_0x29bedc['commands']['get']('restoreRevision')),this['listenTo'](_0x3b4e41,'execute',()=>_0x29bedc['execute']('restoreRevision')),_0x3b4e41;}),_0x29bedc['ui']['componentFactory']['add']('changesNavigation',_0x2c8d33=>{const _0x2c1633=new di(_0x2c8d33),_0x59715b=_0x29bedc['commands']['get']('showPreviousChange'),_0x12ef38=_0x29bedc['commands']['get']('showNextChange');return _0x2c1633['bind']('isBackwardNavigationEnabled')['to'](_0x59715b,'isEnabled'),_0x2c1633['bind']('isForwardNavigationEnabled')['to'](_0x12ef38,'isEnabled'),_0x2c1633['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4e1132),this['listenTo'](_0x2c1633,'execute',(_0x13ebdb,_0x18e0a4)=>{_0x29bedc['execute']('forward'===_0x18e0a4?'showNextChange':'showPreviousChange');}),_0x2c1633;}),_0xec447f['show'](),_0x4e1132['on']('change:isReady',(_0x1e8d5b,_0x28d650,_0x21e609)=>{_0x21e609?_0xec447f['hide']():_0xec447f['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x407381,_0x9c6319){super(_0x407381,_0x9c6319);const _0x7f271c=this['bindTemplate'];this['set']({'label':R(_0x407381,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x407381,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x7f271c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x5d5db1=this['fieldView']['element'];this['_tooltipString']=_0x5d5db1['scrollWidth']>_0x5d5db1['clientWidth']&&_0x5d5db1['value']||'';}}class ti extends _0x4f4dcf{constructor(_0x2f6ccd,_0x265d92,_0x1c190b){super(_0x2f6ccd);const _0x59c38a=new _0x58df23();_0x59c38a['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 _0x4731e0=['ck','ck-revision-history-sidebar__revision-author'];_0x1c190b&&_0x4731e0['push']('ck-revision-history-sidebar__revision-author_creator');const _0xa19858=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x2f6ccd,_0x1c190b?'Revision\x20creator':'Revision\x20author')},'children':[_0x59c38a,_0x265d92['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4731e0},'children':_0xa19858});}}function ni(_0x225c61,_0x5d269b){const _0x2b0080=_0x225c61['bindTemplate'],_0x41a643=_0x225c61['locale'],_0x504e9a=_0x5c06d4(_0x41a643);_0x504e9a['panelPosition']='sw';const _0x50b68d=function(_0x3090de,_0x47512b){const _0x53d1f4=function(_0x20e461,_0x193b93){const _0x57b863=_0x20e461['locale'],_0x143e68={'Compare\x20against\x20selected':R(_0x57b863,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x57b863,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x57b863,'Restore\x20this\x20revision')};return _0x193b93['map'](_0xbf7a77=>{const _0x5ef09b=_0x143e68[_0xbf7a77['name']];return _0x5ef09b&&_0x5ef09b!==_0xbf7a77['name']&&(_0xbf7a77['name']=_0x5ef09b),_0xbf7a77;});}(_0x3090de,_0x47512b),_0x527d94=new _0x2f121a();for(const _0x341765 of _0x53d1f4){const _0x3310ad={'type':'button','model':new to({'label':_0x341765['name'],'class':_0x341765['class'],'withText':!0x0,'role':'menuitem','_action':_0x341765['action']})};_0x3310ad['model']['bind']('isEnabled')['to'](_0x3090de,'isActionsDropdownOpen',_0x3cc4ef=>'function'!=typeof _0x341765['isEnabled']||(!_0x3cc4ef||_0x341765['isEnabled'](_0x3090de))),_0x527d94['add'](_0x3310ad);}return _0x527d94;}(_0x225c61,_0x5d269b);return _0x225c61['bind']('isActionsDropdownOpen')['to'](_0x504e9a,'isOpen'),_0x504e9a['buttonView']['set']({'label':R(_0x41a643,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x25fa55['threeVerticalDots']}),_0x504e9a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2b0080['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2b0080['to'](_0x2870b2=>_0x2870b2['stopPropagation']())}}),_0x504e9a['on']('execute',_0x10b435=>{_0x225c61['isReady']&&'function'==typeof _0x10b435['source']['_action']&&_0x10b435['source']['_action'](_0x225c61);}),_0x584b38(_0x504e9a,_0x50b68d,{'role':'menu'}),_0x504e9a['listenTo'](_0x225c61,'change:isActionsDropdownOpen',(_0x3ab9d3,_0x3e89f2,_0x11d9a0)=>{if(_0x11d9a0)for(const _0x2954e2 of _0x504e9a['listView']['items']){const _0x1cf105=_0x2954e2['children']['first'],_0x13f8bf=_0x5d269b['find'](_0x35a40d=>_0x35a40d['action']===_0x1cf105['_action'])['isVisible'];_0x2954e2['isVisible']=void 0x0===_0x13f8bf||_0x13f8bf(_0x225c61);}}),_0x504e9a;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x735357(_0x4f4dcf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x327c5a,_0xa53223,_0x459cb3,_0x1fb3ab){super(_0x327c5a);const _0x1142a1=this['bindTemplate'],_0x3ee046=function(_0xedded2,_0x10647d){const _0x3aeb12=Array['from'](_0x10647d['authors'])['filter'](_0x15e303=>_0x15e303!=_0x10647d['creator']);return _0x10647d['creator']&&_0x3aeb12['unshift'](_0x10647d['creator']),_0x3aeb12['map'](_0x469b0a=>new ti(_0xedded2,_0x469b0a,_0x469b0a==_0x10647d['creator']));}(_0x327c5a,_0xa53223);this['id']=_0xa53223['id'],this['_revision']=_0xa53223,this['_requireRevisionName']=_0x1fb3ab,this['bind']('name','createdAt')['to'](_0xa53223),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x53b294=>{return _0x285ecb=_0x327c5a['uiLanguage'],(_0x3578be=_0x53b294)['toLocaleDateString'](_0x285ecb,{'month':'long','day':'numeric'})+',\x20'+_0x3578be['toLocaleTimeString'](_0x285ecb,{'hour':'numeric','minute':'numeric'});var _0x285ecb,_0x3578be;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x327c5a,_0x5e8fe9),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x18b073=>_0x18b073||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x259e75,_0x43da7d)=>_0x259e75&&_0x43da7d),this['revisionActionsView']=_0x459cb3&&_0x459cb3['length']?ni(this,_0x459cb3):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1142a1['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1142a1['if']('isEnabled','ck-disabled',_0x20c4ec=>!_0x20c4ec),_0x1142a1['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1142a1['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1142a1['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':_0x1142a1['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':_0x3ee046}]},this['revisionActionsView']],'on':{'click':_0x1142a1['to'](_0x133a74=>{_0x133a74['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3045d1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3045d1,'change',()=>{this['_requireRevisionName']&&!_0x3045d1['value']||this['fire']('setName',{'id':this['id'],'name':_0x3045d1['value']}),_0x3045d1['value']||(_0x3045d1['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x3482a4,_0x10a765){const _0xdd84d2=_0x143ed1['fromJSDate'](_0x3482a4)['setLocale'](_0x10a765),_0x14ad43=_0x143ed1['local'](),_0x1a98c1=_0x14ad43['minus']({'days':0x1})['startOf']('day');let _0x489f11,_0xdcfba2;return _0xdd84d2['hasSame'](_0x14ad43,'day')?(_0x489f11=_0xdd84d2['startOf']('day')['toJSDate'](),_0xdcfba2=_0xdd84d2['toRelativeCalendar']()):_0xdd84d2['hasSame'](_0x1a98c1,'day')?(_0x489f11=_0x1a98c1['toJSDate'](),_0xdcfba2=_0xdd84d2['toRelativeCalendar']()):_0xdd84d2['hasSame'](_0x14ad43,'week')?(_0x489f11=_0xdd84d2['startOf']('week')['toJSDate'](),_0xdcfba2=_0xdd84d2['weekdayLong']||''):_0xdd84d2['hasSame'](_0x14ad43,'year')?(_0x489f11=_0xdd84d2['startOf']('month')['toJSDate'](),_0xdcfba2=_0xdd84d2['monthLong']||''):(_0x489f11=_0xdd84d2['startOf']('year')['toJSDate'](),_0xdcfba2=String(_0xdd84d2['year'])),{'startDate':_0x489f11,'localizedPeriodName':_0xdcfba2};}class vi extends _0x4f4dcf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0xcf4a2,_0x345c68,_0x49adec,_0x16f75a){super(_0xcf4a2);const _0x35f603=mi(_0x345c68,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x345c68,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x49adec,this['_requireRevisionName']=_0x16f75a,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':_0x35f603}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3e7098){const _0x202987=new ai(this['locale'],_0x3e7098,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x202987);}['removeRevision'](_0x5d0c46){const _0x12b0b5=this['revisionViews']['find'](_0x170518=>_0x170518['id']===_0x5d0c46['id']);this['revisionViews']['remove'](_0x12b0b5);}}class as extends _0x4f4dcf{constructor(_0x28c0ff){super(_0x28c0ff);const _0x57d5df=new _0x58df23();_0x57d5df['content']=_0x25fa55['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x57d5df,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x28c0ff,'Revision\x20history')]}]});}}class li extends _0x4f4dcf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x292239,_0x45dbf2,_0xc98234,_0x4e6e42){super(_0x292239);const _0x232589=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x45dbf2,this['_revisionActions']=_0xc98234,this['_requireRevisionName']=_0x4e6e42,this['on']('select',(_0x43932f,_0x91cf7)=>{this['fire']('revisionSelected',_0x91cf7);}),this['on']('setName',(_0x32e797,_0x5e54c8)=>{this['fire']('revisionSetName',_0x5e54c8);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x292239),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x232589['if']('isEnabled','ck-disabled',_0x2ee6ce=>!_0x2ee6ce)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x158639 of this['_revisions'])this['_addRevision'](_0x158639);this['_revisions']['on']('add',(_0x287578,_0x85660f)=>{this['_addRevision'](_0x85660f);}),this['_revisions']['on']('remove',(_0x2a222f,_0x276219)=>{this['_removeRevision'](_0x276219);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x4a4c11=>_0x4a4c11['revisionViews']['map'](_0x26d26f=>_0x26d26f))['flat']();}['selectRevision'](_0x205846){for(const _0x56c2a8 of this['revisionViews'])_0x205846&&_0x205846['id']===_0x56c2a8['id']?_0x56c2a8['select']():_0x56c2a8['deselect']();}['highlightRevisions'](_0x52f06a){for(const _0x18bb7b of this['revisionViews'])_0x52f06a['some'](({id:_0x78a731})=>_0x78a731===_0x18bb7b['id'])?_0x18bb7b['highlight']():_0x18bb7b['unhighlight']();}['_addRevision'](_0xcd8947){const _0x2d76e2=mi(_0xcd8947['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x28a811=this['timePeriodViews']['get'](0x0);_0x28a811&&_0x28a811['startDate']['getTime']()===_0x2d76e2['getTime']()||(_0x28a811=new vi(this['locale'],_0x2d76e2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x28a811)),_0x28a811['addRevision'](_0xcd8947);}['_removeRevision'](_0x5e9a31){const _0x183d3d=mi(_0x5e9a31['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x183d3d)['removeRevision'](_0x5e9a31);}['_getTimePeriodViewByStartDate'](_0x3329b4){return this['timePeriodViews']['find'](_0x58a335=>_0x58a335['startDate']['getTime']()===_0x3329b4['getTime']());}}class g extends _0x9a5545{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x5c7d88,uid as _0x4dce4d,Collection as _0x2ad968,logWarning as _0x482cd7,FocusTracker as _0x5cf0e0,KeystrokeHandler as _0x3a2814,scrollViewportToShowTarget as _0x277b74,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x2c83c4}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x295472,set as _0x8cbf8d,unset as _0x222f53,isEqual as _0x23c23a}from'lodash-es';import{Plugin as _0x24aabd,PendingActions as _0x23b549,icons as _0x888a61,Command as _0xf66950,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4943c5,getMarkerDomElement as _0x218286,ConfirmMixin as _0x33105c,sanitizeEditorConfig as _0x3f5003}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x4833c1,ViewText as _0xd57083,ViewElement as _0x2c4196,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x23c6b9,ViewAttributeElement as _0x3e4e99,ViewEmptyElement as _0x46de0e,ViewRawElement as _0xcf47a2,ViewUIElement as _0x131e84,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x2c43c9,injectCssTransitionDisabler as ts,submitHandler as _0x5b1924,LabeledFieldView as at,createLabeledInputText as _0x4fabfa,createDropdown as _0x20789c,ListView as te,ListItemView as _0x4e494e,ButtonView as _0x15a92a,MenuBarMenuView as _0x5320cf,MenuBarMenuListView as _0xae8b9,MenuBarMenuListItemView as _0x414113,MenuBarMenuListItemButtonView as _0x1ea6c3,ContextualBalloon as _0x276f8f,ToolbarSeparatorView as _0x372320,IconView as _0x544954,addListToDropdown as _0x3d32c0,ViewModel as to,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x283079}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x5c7d88(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x419778){super(),this['id']=_0x419778['id']||_0x4dce4d(),this['creator']=_0x419778['creator']||null,this['authors']=_0x419778['authors']||[],this['diffData']=_0x419778['diffData']||null,this['toVersion']=_0x419778['toVersion']||0x0,this['fromVersion']=_0x419778['fromVersion']||0x0,this['set']('name',_0x419778['name']||''),this['set']('createdAt',_0x419778['createdAt']||new Date()),this['set']('attributes',_0x419778['attributes']||{});}['setName'](_0x1e9d96){this['_update']({'name':_0x1e9d96});}['setAttribute'](_0x4c8012,_0x144a76){const _0x33fd19=_0x295472(this['attributes']);_0x8cbf8d(_0x33fd19,_0x4c8012,_0x144a76),this['_update']({'attributes':_0x33fd19});}['removeAttribute'](_0x524985){const _0x373fb5=_0x295472(this['attributes']);_0x222f53(_0x373fb5,_0x524985),this['_update']({'attributes':_0x373fb5});}['_update'](_0x50adb9,_0x4a7be8=!0x1){let _0x54e226=!0x1;const _0x40973c={'id':this['id']},_0x4f02ce=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xc9892f of _0x4f02ce){const _0x38850b=_0x50adb9[_0xc9892f];void 0x0!==_0x38850b&&_0x38850b!==this[_0xc9892f]&&(this[_0xc9892f]=_0x38850b,_0x40973c[_0xc9892f]=_0x38850b,_0x54e226=!0x0);}_0x54e226&&(_0x40973c['authors']&&(_0x40973c['authorsIds']=_0x40973c['authors']['map'](_0x1ea1a2=>_0x1ea1a2['id']),delete _0x40973c['authors']),this['fire']('_update',_0x40973c,_0x4a7be8));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x19791a=>_0x19791a['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x24aabd{['_revisions'];static get['requires'](){return[_0x4943c5];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xa1d20c){super(_0xa1d20c),this['_revisions']=new _0x2ad968();}['afterInit'](){!async function(_0x5340a2){const _0x464530=_0x3ad719([0x36,0x69,0x38,0x32,0x59,0x67,0x51,0x41,0x47,0x31,0x70,0x6a,0x35,0x48,0x6d,0x37,0x57,0x7a,0x50,0x76,0x44,0x5a,0x63,0x45,0x6b,0x79,0x73,0x33,0x4e,0x72,0x46,0x64,0x55,0x39,0x6f,0x77,0x30,0x62,0x34,0x61,0x4d,0x4b,0x6c,0x56,0x58,0x4f,0x4c,0x49,0x65,0x68,0x75,0x43,0x53,0x6e,0x66,0x71,0x4a,0x52,0x78,0x74,0x54,0x42]),_0x3bb680=0xeb829,_0x2e7537=0x7d72a7d8,_0x7c16ea=0x7d75ffc8^_0x2e7537,_0x53780f=window[_0x3ad719([0x44,0x61,0x74,0x65])][_0x3ad719([0x6e,0x6f,0x77])](),_0x9e3d64=_0x5340a2[_0x3ad719([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a878b=new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x546cc6=>{_0x9e3d64[_0x3ad719([0x6f,0x6e,0x63,0x65])](_0x3ad719([0x72,0x65,0x61,0x64,0x79]),_0x546cc6);}),_0x1c9644={[_0x3ad719([0x6b,0x74,0x79])]:_0x3ad719([0x45,0x43]),[_0x3ad719([0x75,0x73,0x65])]:_0x3ad719([0x73,0x69,0x67]),[_0x3ad719([0x63,0x72,0x76])]:_0x3ad719([0x50,0x2d,0x32,0x35,0x36]),[_0x3ad719([0x78])]:_0x3ad719([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]),[_0x3ad719([0x79])]:_0x3ad719([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]),[_0x3ad719([0x61,0x6c,0x67])]:_0x3ad719([0x45,0x53,0x32,0x35,0x36])},_0x3c14c5=_0x9e3d64[_0x3ad719([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3ad719([0x67,0x65,0x74])](_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cfcf4(){let _0x45d878,_0x4850af=null,_0x23882f=null;try{if(_0x3c14c5==_0x3ad719([0x47,0x50,0x4c]))return _0x3ad719([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x45d878=_0x36fe8e(),!_0x45d878)return _0x3ad719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x45d878[_0x3ad719([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x23882f=_0x914192(_0x45d878[_0x3ad719([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x45d878[_0x3ad719([0x6a,0x74,0x69])])),await _0x3e43f8()?_0x194bb2()?_0x124c20()?_0x3ad719([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x113eae()?(_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad719([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4850af=_0x3b4a67(_0x3ad719([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad719([0x74,0x72,0x69,0x61,0x6c])&&(_0x4850af=_0x3b4a67(_0x3ad719([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3ad719([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4850af=_0x3b4a67(_0x3ad719([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x64c4a8()):_0x3ad719([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3ad719([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3ad719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x27fe0e){return _0x3ad719([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x124c20(){const _0x333b1a=[_0x3ad719([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3ad719([0x74,0x72,0x69,0x61,0x6c])][_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x53780f/0x3e8:0xe10*_0x7c16ea;return _0x45d878[_0x3ad719([0x65,0x78,0x70])]<_0x333b1a;}function _0x194bb2(){const _0x5943e8=_0x45d878[_0x3ad719([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5943e8&&(!!_0x5943e8[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x2a]))||(!!_0x5943e8[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x52,0x48]))||!(!_0x5943e8[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x52,0x52,0x48]))||!_0x90a7f3())));}function _0x113eae(){const _0x495904=_0x45d878[_0x3ad719([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x495904||0x0==_0x495904[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ae30a}=new URL(window[_0x3ad719([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x495904[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ae30a))return!0x0;const _0x247f55=_0x3ae30a[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e]));return _0x495904[_0x3ad719([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d884e=>_0x5d884e[_0x3ad719([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ad719([0x2a])))[_0x3ad719([0x6d,0x61,0x70])](_0x271f71=>_0x271f71[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e])))[_0x3ad719([0x73,0x6f,0x6d,0x65])](_0x36fa03=>_0x247f55[_0x3ad719([0x65,0x76,0x65,0x72,0x79])]((_0x1957cb,_0x1ffe7f)=>_0x36fa03[_0x1ffe7f]===_0x1957cb||_0x36fa03[_0x1ffe7f]===_0x3ad719([0x2a])));}function _0x64c4a8(){return _0x4850af&&_0x23882f?new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf31d60,_0x2f3b48)=>{_0x4850af[_0x3ad719([0x74,0x68,0x65,0x6e])](_0xf31d60,_0x2f3b48),_0x23882f[_0x3ad719([0x74,0x68,0x65,0x6e])](_0xa9e8e7=>{_0xa9e8e7!=_0x3ad719([0x56,0x61,0x6c,0x69,0x64])&&_0xf31d60(_0xa9e8e7);},_0x2f3b48);}):_0x4850af||_0x23882f||_0x3ad719([0x56,0x61,0x6c,0x69,0x64]);}}function _0x914192(_0x28296f,_0x171217){return new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46b17a=>{if(_0x82c58f())return _0x46b17a(_0x3ad719([0x56,0x61,0x6c,0x69,0x64]));_0x3c0545(),_0x9e3d64[_0x3ad719([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3ad719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27bb41=!0x1;const _0x4ea5ca=_0x4dce4d();function _0x54eeaf(_0xde3533){return!!_0xde3533&&(typeof _0xde3533===_0x3ad719([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xde3533===_0x3ad719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xde3533[_0x3ad719([0x74,0x68,0x65,0x6e])]===_0x3ad719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xde3533[_0x3ad719([0x63,0x61,0x74,0x63,0x68])]===_0x3ad719([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4c9605(_0x3ff4b8){_0x2c73fa(_0x3ff4b8)[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x1dae87=>{if(!_0x1dae87||_0x1dae87[_0x3ad719([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3ad719([0x6f,0x6b]))return _0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3173fe(_0xc42e86(_0x4ea5ca+_0x171217))!=_0x1dae87[_0x3ad719([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3ad719([0x56,0x61,0x6c,0x69,0x64]);})[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x44c666=>(_0x3b0c74(),_0x44c666),()=>{const _0x4d334b=_0x5e1f60();return null==_0x4d334b?(_0x3b0c74(),_0x3ad719([0x56,0x61,0x6c,0x69,0x64])):_0x3ad719(_0x53780f-_0x4d334b>(0x597e23d8^_0x2e7537)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x46b17a)[_0x3ad719([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46b17a(_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x47a8e0=0x7d444958^_0x2e7537;function _0x3b0c74(){const _0x4ad696=_0x3ad719([0x6c,0x6c,0x63,0x74,0x2d])+_0x3173fe(_0xc42e86(_0x28296f)),_0x29b374=_0x343095(_0x3173fe(window[_0x3ad719([0x4d,0x61,0x74,0x68])][_0x3ad719([0x63,0x65,0x69,0x6c])](_0x53780f/_0x47a8e0)));window[_0x3ad719([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ad719([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ad696,_0x29b374);}function _0x5e1f60(){const _0x461d7e=_0x3ad719([0x6c,0x6c,0x63,0x74,0x2d])+_0x3173fe(_0xc42e86(_0x28296f)),_0x59d759=window[_0x3ad719([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3ad719([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x461d7e);return _0x59d759?window[_0x3ad719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x343095(_0x59d759),0x10)*_0x47a8e0:null;}function _0x2c73fa(_0x310102){return new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50619e,_0x263214)=>{_0x310102[_0x3ad719([0x74,0x68,0x65,0x6e])](_0x50619e,_0x263214),window[_0x3ad719([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x263214,0x7d737318^_0x2e7537);});}}_0x9e3d64[_0x3ad719([0x6f,0x6e])](_0x3ad719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x467090,_0xd0ec25)=>{if(_0xd0ec25[0x0]!=_0x28296f)return _0x46b17a(_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd0ec25[0x1]={..._0xd0ec25[0x1],[_0x3ad719([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4ea5ca};},{[_0x3ad719([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ad719([0x68,0x69,0x67,0x68])}),_0x9e3d64[_0x3ad719([0x6f,0x6e])](_0x3ad719([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x19e3b7=>{_0x54eeaf(_0x19e3b7[_0x3ad719([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27bb41=!0x0,_0x4c9605(_0x19e3b7[_0x3ad719([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3ad719([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3ad719([0x6c,0x6f,0x77])}),_0x3a878b[_0x3ad719([0x74,0x68,0x65,0x6e])](()=>{_0x27bb41||_0x46b17a(_0x3ad719([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x82c58f(){return _0x9e3d64[_0x3ad719([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ad719([0x76,0x69,0x65,0x77])][_0x3ad719([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3ad719([0x61,0x75,0x74,0x6f]);}function _0x3c0545(){_0x9e3d64[_0x3ad719([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3ad719([0x76,0x69,0x65,0x77])][_0x3ad719([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3ad719([0x61,0x75,0x74,0x6f]);}}function _0x3b4a67(_0x26b156){const _0x4fa974=[new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513be9=>setTimeout(_0x513be9,0x7d7b9914^_0x2e7537)),_0x3a878b[_0x3ad719([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55141b=>{const _0xfb3db7=0x7d72a7df^_0x2e7537,_0x160a88=_0x5340a2[_0x3ad719([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1597c2(){_0x160a88[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0xfb3db7&&_0x55141b();}_0x1597c2(),_0x160a88[_0x3ad719([0x6f,0x6e])](_0x3ad719([0x61,0x64,0x64]),_0x1597c2);})),new window[(_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x26c705=>{function _0x271cd5(){for(const _0x103f6e in window)if(window[_0x3ad719([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3ad719([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x103f6e))&&window[_0x103f6e]==_0x3bb680)return _0x26c705();_0x9e3d64[_0x3ad719([0x73,0x74,0x61,0x74,0x65])]!=_0x3ad719([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3ad719([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x271cd5,0x7d72b450^_0x2e7537);}_0x57b27f(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x271cd5();})];return window[_0x3ad719([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3ad719([0x72,0x61,0x63,0x65])](_0x4fa974)[_0x3ad719([0x74,0x68,0x65,0x6e])](()=>_0x26b156);}async function _0x3c9295(){if(await _0x3a878b,_0x57b27f(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x33f97f=_0x5340a2[_0x3ad719([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3b7aea=_0x5340a2[_0x3ad719([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])](_0x33f97f[_0x3ad719([0x69,0x64])]),_0x538961=_0x55d28e(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x538961[_0x3ad719([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x33f97f['id'],_0x3b7aea?_0x3b7aea['id']:null,!0x0),_0x538961[_0x3ad719([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x538961[_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x538961[_0x3ad719([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5858e7,void(_0x538961[_0x3ad719([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5858e7);}if(_0x57b27f(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5314ba=_0x55d28e(_0x3ad719([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5314ba[_0x3ad719([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5314ba[_0x3ad719([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5314ba[_0x3ad719([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5858e7,_0x5314ba[_0x3ad719([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5858e7;}_0x9e3d64[_0x3ad719([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ad719([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5858e7,_0x9e3d64[_0x3ad719([0x6d,0x6f,0x64,0x65,0x6c])][_0x3ad719([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5858e7,_0x9e3d64[_0x3ad719([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3ad719([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x90a7f3(){return _0x57b27f(_0x3ad719([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x55d28e(_0x3ad719([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3ad719([0x73,0x74,0x61,0x74,0x65])]==_0x3ad719([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ab29c(_0x7f47a){const _0x6b9d8d=_0x1ecb84();_0x9e3d64[_0x6b9d8d]=_0x3ad719([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])+_0x7f47a,_0x7f47a[_0x3ad719([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3ad719([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1ecb84()]=_0x3bb680),_0x7f47a!=_0x3ad719([0x56,0x61,0x6c,0x69,0x64])&&_0x3c9295();}function _0x1ecb84(){const _0x324195=window[_0x3ad719([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3ad719([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3ad719([0x6e,0x6f,0x77])]())[_0x3ad719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3ad719([0x2e]),'');let _0x366eb3=_0x3ad719([0x69]);for(let _0x3a6e50=0x0;_0x3a6e50<_0x324195[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a6e50+=0x2){let _0x5bfec0=window[_0x3ad719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x324195[_0x3ad719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3a6e50,_0x3a6e50+0x2));_0x5bfec0>=_0x464530[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5bfec0-=_0x464530[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x366eb3+=_0x464530[_0x5bfec0];}return _0x366eb3;}function _0x36fe8e(){const _0x41017e=_0x3c14c5[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e]));if(0x3!=_0x41017e[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x489464(_0x41017e[0x1]);function _0x489464(_0x436751){const _0x2450c7=_0x355f1f(_0x436751);return _0x2450c7&&_0x4bd888()?_0x2450c7:null;function _0x4bd888(){const _0x49bb6c=_0x2450c7[_0x3ad719([0x6a,0x74,0x69])],_0x2a1123=window[_0x3ad719([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x49bb6c[_0x3ad719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x49bb6c[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b7d3a={..._0x2450c7,[_0x3ad719([0x6a,0x74,0x69])]:_0x49bb6c[_0x3ad719([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x49bb6c[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b7d3a[_0x3ad719([0x76,0x63])],_0xc42e86(_0x3b7d3a)==_0x2a1123;}}}async function _0x3e43f8(){let _0x4a5957=!0x0;try{const _0x50a9d7=_0x3c14c5[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])](_0x3ad719([0x2e])),[_0x3235c7,_0x91a284,_0x5b6fa8]=_0x50a9d7;return _0x41b661(_0x3235c7),await _0x126fae(_0x3235c7,_0x91a284,_0x5b6fa8),_0x4a5957;}catch(_0x15a9f7){return!0x1;}function _0x41b661(_0xcdd0e5){const _0x5dadb4=_0x355f1f(_0xcdd0e5);_0x5dadb4&&_0x5dadb4[_0x3ad719([0x61,0x6c,0x67])]==_0x3ad719([0x45,0x53,0x32,0x35,0x36])||(_0x4a5957=!0x1);}async function _0x126fae(_0x34e43e,_0x5cec72,_0x2e0af0){const _0x54203e=window[_0x3ad719([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3ad719([0x66,0x72,0x6f,0x6d])](_0x38a00d(_0x2e0af0),_0x34559e=>_0x34559e[_0x3ad719([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x98e63a=new window[(_0x3ad719([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3ad719([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x34e43e+_0x3ad719([0x2e])+_0x5cec72),_0x4f12b8=window[_0x3ad719([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3ad719([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f12b8)return;const _0x4f57aa=await _0x4f12b8[_0x3ad719([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3ad719([0x6a,0x77,0x6b]),_0x1c9644,{[_0x3ad719([0x6e,0x61,0x6d,0x65])]:_0x3ad719([0x45,0x43,0x44,0x53,0x41]),[_0x3ad719([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3ad719([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3ad719([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f12b8[_0x3ad719([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3ad719([0x6e,0x61,0x6d,0x65])]:_0x3ad719([0x45,0x43,0x44,0x53,0x41]),[_0x3ad719([0x68,0x61,0x73,0x68])]:{[_0x3ad719([0x6e,0x61,0x6d,0x65])]:_0x3ad719([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4f57aa,_0x54203e,_0x98e63a)||(_0x4a5957=!0x1);}}function _0x355f1f(_0x3842c4){return _0x3842c4[_0x3ad719([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3ad719([0x65,0x79]))?JSON[_0x3ad719([0x70,0x61,0x72,0x73,0x65])](_0x38a00d(_0x3842c4)):null;}function _0x38a00d(_0x57205a){return window[_0x3ad719([0x61,0x74,0x6f,0x62])](_0x57205a[_0x3ad719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3ad719([0x2b]))[_0x3ad719([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3ad719([0x2f])));}function _0xc42e86(_0xe12558){let _0x1f90a6=0x1505;function _0x185fd4(_0x4c4d6e){for(let _0x34aeca=0x0;_0x34aeca<_0x4c4d6e[_0x3ad719([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x34aeca++){const _0x48680c=_0x4c4d6e[_0x3ad719([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x34aeca);_0x1f90a6=(_0x1f90a6<<0x5)+_0x1f90a6+_0x48680c,_0x1f90a6&=_0x1f90a6;}}function _0x5e3522(_0x2519c0){Array[_0x3ad719([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2519c0)?_0x2519c0[_0x3ad719([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e3522):_0x2519c0&&typeof _0x2519c0==_0x3ad719([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3ad719([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2519c0)[_0x3ad719([0x73,0x6f,0x72,0x74])]()[_0x3ad719([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2c34e9,_0x7aa52f])=>{_0x185fd4(_0x2c34e9),_0x5e3522(_0x7aa52f);}):_0x185fd4(window[_0x3ad719([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2519c0));}return _0x5e3522(_0xe12558),_0x1f90a6>>>0x0;}function _0x3173fe(_0x45437b){return _0x45437b[_0x3ad719([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3ad719([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3ad719([0x30]));}function _0x343095(_0x480e14){return _0x480e14[_0x3ad719([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3ad719([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3ad719([0x6a,0x6f,0x69,0x6e])]('');}function _0x57b27f(_0x3b9ba4){return _0x9e3d64[_0x3ad719([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ad719([0x68,0x61,0x73])](_0x3b9ba4);}function _0x55d28e(_0x597b9c){return _0x9e3d64[_0x3ad719([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3ad719([0x67,0x65,0x74])](_0x597b9c);}function _0x5858e7(){}function _0x3ad719(_0x12aca5){return _0x12aca5['map'](_0x11ab20=>String['fromCharCode'](_0x11ab20))['join']('');}_0x1ab29c(await _0x4cfcf4());}(this);}['createRevision'](_0x16f426){const _0x42bfdf=this['editor']['plugins']['get']('Users');return new a({'id':_0x16f426['id'],'name':_0x16f426['name'],'creator':_0x16f426['creatorId']?_0x42bfdf['getUser'](_0x16f426['creatorId']):null,'diffData':_0x16f426['diffData']||_0x16f426['data'],'authors':_0x16f426['authorsIds']['map'](_0x5139d5=>_0x42bfdf['getUser'](_0x5139d5)),'createdAt':new Date(_0x16f426['createdAt']),'attributes':_0x16f426['attributes'],'fromVersion':_0x16f426['fromVersion'],'toVersion':_0x16f426['toVersion']});}['addRevision'](_0x1a7bf7,_0x26d4ba=0x0){this['_revisions']['add'](_0x1a7bf7,_0x26d4ba);}['getRevision'](_0x354f2d){return this['_revisions']['get'](_0x354f2d);}['getRevisions'](_0x20ef89={'toJSON':!0x1}){const _0x5e235d=Array['from'](this['_revisions']);return _0x5e235d['reverse'](),_0x20ef89['toJSON']?_0x5e235d['map'](_0x2f753d=>_0x2f753d['toJSON']()):_0x5e235d;}['getIndex'](_0x25ed66){return this['_revisions']['getIndex'](_0x25ed66);}['getEarlierVisibleRevision'](_0xc891e4){const [,_0x32af89]=this['getRevisionsIterator'](_0xc891e4,{'direction':'earlier'});return _0x32af89;}['getLaterVisibleRevision'](_0x4b87e8){const [,_0x2244ed]=this['getRevisionsIterator'](_0x4b87e8,{'direction':'later'});return _0x2244ed;}['getRevisionsInDiff'](_0x215673){const _0x309e8d=[];for(const _0x252723 of this['getRevisionsIterator'](_0x215673['newRevisionId']))if(_0x309e8d['push'](_0x252723),_0x252723['id']===_0x215673['oldRevisionId'])break;return _0x309e8d;}*['getRevisionsIterator'](_0x18d91e,{direction:_0x55fe8b='earlier',filter:_0xced462=()=>!0x0}={}){const _0x46e6f4='earlier'===_0x55fe8b?0x1:-0x1;let _0x3e7cd8=this['_revisions']['get'](_0x18d91e),_0x5d2645=this['getIndex'](_0x3e7cd8);for(yield _0x3e7cd8;_0x3e7cd8;){if(_0x5d2645+=_0x46e6f4,_0x3e7cd8=this['getRevision'](_0x5d2645),!_0x3e7cd8)return;_0xced462(_0x3e7cd8)&&(yield _0x3e7cd8);}}}function R(_0xa9f3c2,_0x2a22b2,_0x2c03ec){const t=_0xa9f3c2['t'];switch(_0x2a22b2){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'},_0x2c03ec);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2c03ec);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const C={'c':_0x23c6b9,'a':_0x3e4e99,'e':_0x46de0e,'r':_0xcf47a2,'u':_0x131e84};class l extends _0x24aabd{['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[_0x4943c5,j,_0x23b549];}constructor(_0x8f3592){super(_0x8f3592),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x18a83f=_0x4dce4d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x18a83f},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 _0x448b50=this['repository']['getRevision'](0x0),_0x5f3425=_0x448b50&&null===_0x448b50['creator']?_0x448b50:null;if(this['_continueCurrentRevision']=!!_0x5f3425&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5eb682=this['_source']['getCurrentRevisionId'](),_0x5aeb13=this['repository']['getRevision'](_0x5eb682);if(_0x5aeb13)this['_startingVersion']=_0x5aeb13['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5e90be=this['_source']['history']['_operations']['find'](_0x5a09b3=>!_0x5a09b3['_isInit']),_0x2cd52e=_0x5e90be?_0x5e90be['baseVersion']:this['_source']['history']['version'];_0x448b50?(_0x448b50['toVersion']<_0x2cd52e&&_0x448b50['_update']({'toVersion':_0x2cd52e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5f3425['id'],this['_startingVersion']=_0x5f3425['fromVersion']):(this['_startingVersion']=_0x448b50['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2cd52e,this['_continueCurrentRevision']=!0x1);}}else _0x5f3425&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5f3425['toVersion'],this['editor']['model']['document']['history']['version']),_0x5f3425['fromVersion']===_0x5f3425['toVersion']?(0x0!==_0x5f3425['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5f3425['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5f3425['id'],this['_startingVersion']=_0x5f3425['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',_0x59d97e=>!_0x59d97e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ffbe=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2767e0;for(const _0x3c4f0f in _0x3ffbe){const _0x22386c=_0x3c4f0f,_0x2ca479=_0x3ffbe[_0x22386c];if('revisionHistoryLicenseKeyValid'==_0x2ca479||'revisionHistoryLicenseKeyInvalid'==_0x2ca479||'revisionHistoryLicenseKeyExpired'==_0x2ca479||'revisionHistoryLicenseKeyDomainLimit'==_0x2ca479||'revisionHistoryLicenseKeyNotAllowed'==_0x2ca479||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2ca479||'revisionHistoryLicenseKeyTrialLimit'==_0x2ca479||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2ca479||'revisionHistoryLicenseKeyUsageLimit'==_0x2ca479){delete _0x3ffbe[_0x22386c],_0x2767e0=_0x2ca479,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2767e0&&_0x3ffbe['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2767e0&&_0x3ffbe['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2767e0&&_0x3ffbe['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2767e0&&_0x3ffbe['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x168faa=this['repository']['getRevision'](0x0),_0xa2f83=await this['getRevisionDocumentData'](_0x168faa),_0x2afe14=await this['getRevisionRootsAttributes'](_0x168faa);this['_replaceEditorDataWithRevisionData'](_0xa2f83,_0x2afe14);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5a6034){this['_source']=_0x5a6034;}async['update'](){const _0x13ebaf=await this['_source']['getLatestVersion']();if(_0x13ebaf>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4e6d83=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x13ebaf});_0x4e6d83['authors']=_0x4e6d83['authorsIds']['map'](_0x4ec68f=>this['editor']['plugins']['get']('Users')['getUser'](_0x4ec68f)),this['currentRevision']['_update'](_0x4e6d83);}}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'](_0x3a952c={},_0x2b599b=null){const _0xfe899=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2b599b>this['currentRevision']['toVersion']&&(_0x2b599b=null),null===_0x2b599b&&(_0x2b599b=await this['_source']['getLatestVersion']());const _0x599efa=this['_getFromVersion'](_0x2b599b),_0x4c46e9=this['buildRevisionData']({'from':_0x599efa,'to':_0x2b599b});if(this['currentRevision']['toVersion']<_0x2b599b){const _0x14548d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2b599b,'to':_0x2b599b});_0x14548d['authors']=[],_0x14548d['authorsIds']=[],_0x14548d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x14548d,!0x0),delete _0x14548d['authors'],_0xfe899['push'](_0x14548d);}_0x3a952c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x3a952c['name']=_0x3a952c['name']||null,_0x3a952c['id']=_0x3a952c['id']||_0x4dce4d(),_0x3a952c={..._0x3a952c,..._0x4c46e9};const _0x504914=this['addRevisionData'](_0x3a952c);_0xfe899['push'](_0x3a952c);const _0x3e29da=this['repository']['getIndex'](_0x504914);if(0x0!==_0x3e29da){const _0x49a848=this['repository']['getRevision'](_0x3e29da-0x1);if(_0x49a848['fromVersion']!==_0x2b599b){const _0x43f4aa=this['_revisionDataBuilder']['getData'](_0x2b599b,_0x49a848['toVersion']),_0x6bfc2f={'id':_0x49a848['id'],'diffData':_0x43f4aa['diffData'],'authorsIds':_0x43f4aa['authorsIds'],'authors':_0x43f4aa['authorsIds']['map'](_0x3e51aa=>this['editor']['plugins']['get']('Users')['getUser'](_0x3e51aa)),'fromVersion':_0x2b599b};_0x49a848===this['currentRevision']&&(_0x6bfc2f['createdAt']=new Date(_0x3a952c['createdAt']['getTime']()+0xa)),_0x49a848['_update'](_0x6bfc2f,!0x0),delete _0x6bfc2f['authors'],_0xfe899['push'](_0x6bfc2f);}}if(this['adapter']){for(const _0x4f8e91 of _0xfe899)this['_bufferUpdate'](_0x4f8e91['id'],_0x4f8e91,!0x0);this['sendBufferedUpdates']();}return _0x504914;}['addRevisionData'](_0x1def92){const _0x1cc712=this['repository']['createRevision'](_0x1def92);return this['adapter']&&_0x1cc712['on']('_update',(_0x24d07c,_0x493151,_0x524323)=>{_0x524323||(this['_bufferUpdate'](_0x493151['id'],_0x493151,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1cc712,this['_findInsertionIndex'](_0x1cc712)),_0x1cc712;}async['getRevisionDocumentData'](_0x4866ad){await this['_loadRevisionData'](_0x4866ad);const _0x44729b={};for(const _0x4cf61d in _0x4866ad['diffData']){if(_0x4866ad['diffData'][_0x4cf61d]['attachChange']&&!_0x4866ad['diffData'][_0x4cf61d]['attachChange']['isAttached'])continue;const _0x1b1d9f=this['_removeRevisionMarkers'](JSON['parse'](_0x4866ad['diffData'][_0x4cf61d]['insertions'])),_0xb39278=this['editor']['editing']['view']['document'],_0x5b9a43=new _0x4833c1(_0xb39278,_0x1b1d9f['map'](_0x2d6a11=>V(_0x2d6a11,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x44729b[_0x4cf61d]=this['editor']['data']['processor']['toData'](_0x5b9a43),this['editor']['data']['processor']['useFillerType']('default');}return _0x44729b;}async['getRevisionRootsAttributes'](_0x11e137){await this['_loadRevisionData'](_0x11e137);const _0x50cad7={};for(const _0x15961a in _0x11e137['diffData'])_0x11e137['diffData'][_0x15961a]['attachChange']&&!_0x11e137['diffData'][_0x15961a]['attachChange']['isAttached']||(_0x50cad7[_0x15961a]=_0x11e137['diffData'][_0x15961a]['attributesAfter']||{});return _0x50cad7;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x504d98=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1f686f=0x0;_0x1f686f<_0x504d98['length'];_0x1f686f++){const _0x5d9cef=_0x504d98[_0x1f686f];let _0x29261f=!0x1;for(const _0x19bc96 of Object['keys'](_0x5d9cef))void 0x0===_0x5d9cef[_0x19bc96]?delete _0x5d9cef[_0x19bc96]:'id'!==_0x19bc96&&(_0x29261f=!0x0);_0x29261f||(_0x504d98[_0x1f686f]=null);}if(_0x504d98=_0x504d98['filter'](_0x55aada=>null!==_0x55aada),!_0x504d98['length'])return;for(let _0x20f2af=0x0;_0x20f2af<_0x504d98['length'];_0x20f2af++){const _0x519030=_0x504d98[_0x20f2af];void 0x0!==_0x519030['fromVersion']&&void 0x0===_0x519030['toVersion']&&(_0x519030['toVersion']=this['repository']['getRevision'](_0x519030['id'])['toVersion']),void 0x0!==_0x519030['toVersion']&&void 0x0===_0x519030['fromVersion']&&(_0x519030['fromVersion']=this['repository']['getRevision'](_0x519030['id'])['fromVersion']);}const _0x7e91de=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x504d98,_0x7e91de)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1621c5=>{if(_0x1621c5){for(const _0x31f75a of _0x1621c5)this['setRevisionData']({'id':_0x31f75a['id'],'createdAt':_0x31f75a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x3a3076,_0xcc1fe2){let _0x46c766=this['editor']['config']['get']('initialData'),_0x4acca2=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x46c766){_0x46c766={};for(const _0x5b667d of this['editor']['model']['document']['getRootNames']())_0x46c766[_0x5b667d]='';}if('string'==typeof _0x46c766&&(_0x46c766={'main':_0x46c766}),void 0x0===_0x4acca2){_0x4acca2={};for(const _0x66ac65 of this['editor']['model']['document']['getRootNames']())_0x4acca2[_0x66ac65]={};}let _0x5e6a44=!0x1;const _0x3e77c3=Object['keys'](_0x46c766),_0xd4831=Object['keys'](_0x3a3076);for(const _0x21ca3e of _0x3e77c3){if(_0x46c766[_0x21ca3e]!==_0x3a3076[_0x21ca3e]&&''!==_0x46c766[_0x21ca3e]['trim']()){_0x5e6a44=!0x0;break;}if(!_0x23c23a(_0x4acca2[_0x21ca3e],_0xcc1fe2[_0x21ca3e])&&Object['keys'](_0x4acca2[_0x21ca3e])['length']>0x0){_0x5e6a44=!0x0;break;}}_0x5e6a44||(_0x5e6a44=_0xd4831['some'](_0x22193d=>!this['editor']['model']['document']['getRoot'](_0x22193d))),_0x5e6a44&&_0x482cd7('editor-initial-data-replaced-with-revision-data',{'editorData':_0x46c766,'editorRootsAttributes':_0x4acca2,'revisionData':_0x3a3076,'revisionRootsAttributes':_0xcc1fe2}),this['editor']['config']['set']('initialData',_0x3a3076),this['editor']['config']['set']('rootsAttributes',_0xcc1fe2);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4f3ec5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4f3ec5['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x102773){const _0x5bd694=this['repository']['getRevisions']();_0x5bd694['reverse']();let _0x29bf75=0x0;for(;_0x29bf75<_0x5bd694['length'];){const _0x432dcb=_0x5bd694[_0x29bf75];if(_0x432dcb===this['currentRevision']){_0x29bf75++;continue;}if(_0x432dcb['id']===this['_initialRevisionId'])break;const _0x4a43fc=_0x102773['toVersion']-_0x432dcb['toVersion']||_0x102773['fromVersion']-_0x432dcb['fromVersion'];if(_0x4a43fc>0x0)break;if(_0x4a43fc<0x0)_0x29bf75++;else{if(!_0x102773['creator']&&_0x432dcb['creator'])break;if(_0x432dcb['creator']||!_0x102773['creator']){if(_0x102773['createdAt']>_0x432dcb['createdAt'])break;_0x29bf75++;}else _0x29bf75++;}}return _0x29bf75;}['setRevisionData'](_0x47b951){const _0x36f34a=this['repository']['getRevision'](_0x47b951['id']);if(_0x47b951['createdAt']&&(_0x47b951['createdAt']=new Date(_0x47b951['createdAt'])),_0x47b951['authorsIds']){const _0x312c8f=this['editor']['plugins']['get']('Users');_0x47b951['authors']=_0x47b951['authorsIds']['map'](_0x2e00d0=>_0x312c8f['getUser'](_0x2e00d0));}_0x36f34a['_update'](_0x47b951,!0x0);}['buildRevisionData']({revision:_0x4842c8=null,from:_0x4f7818=null,to:_0x30b6d1=null}){_0x4f7818=null!==_0x4f7818?_0x4f7818:_0x4842c8['fromVersion'],_0x30b6d1=null!==_0x30b6d1?_0x30b6d1:_0x4842c8['toVersion'];const _0x2e8ef4=this['_revisionDataBuilder']['getData'](_0x4f7818,_0x30b6d1),_0xd79ed4={'diffData':_0x2e8ef4['diffData'],'authorsIds':_0x2e8ef4['authorsIds'],'fromVersion':_0x4f7818,'toVersion':_0x30b6d1};if(!_0x4842c8||_0x30b6d1!==_0x4842c8['toVersion']){const _0xcbf99c=_0x30b6d1-0x1,_0x41b4ca=this['_source']['history']['getOperation'](_0xcbf99c);_0xd79ed4['createdAt']=_0x41b4ca&&_0x41b4ca['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4f7818===this['_loadedStateData']['fromVersion']){for(const _0x111ac8 of this['_loadedStateData']['authors'])_0xd79ed4['authorsIds']['includes'](_0x111ac8['id'])||_0xd79ed4['authorsIds']['push'](_0x111ac8['id']);}return _0xd79ed4;}['_loadRevisionData'](_0x165b8b){if(!_0x165b8b||_0x165b8b['diffData'])return Promise['resolve']();{const _0x364aed=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x364aed,'revisionId':_0x165b8b['id']})['then'](_0x2e5e60=>{_0x165b8b['diffData']=_0x2e5e60['diffData'];});}}['_bufferUpdate'](_0x39bfb8,_0x24f75b,_0xb9e1a2){if(this['_bufferedUpdates']['has'](_0x39bfb8)){const _0x3bdbc8=this['_bufferedUpdates']['get'](_0x39bfb8);_0x24f75b=_0xb9e1a2?{..._0x3bdbc8,..._0x24f75b}:{..._0x24f75b,..._0x3bdbc8};}this['_bufferedUpdates']['set'](_0x39bfb8,_0x24f75b);}['_getFromVersion'](_0x33b2f0){const _0x3be4a6=this['repository']['getRevisions']();_0x3be4a6['reverse'](),_0x3be4a6['shift']();const _0x1947ba=_0x3be4a6['find'](_0x5ee92b=>_0x5ee92b['toVersion']<=_0x33b2f0)['toVersion'];return _0x1947ba<this['_startingVersion']?this['_startingVersion']:_0x1947ba;}['_createInitialRevision'](_0x2077ad){const _0x7268b1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x7268b1)this['_initialRevisionId']=_0x7268b1['id'];else{const _0x1fff2a=!this['editor']['model']['document']['roots']['find'](_0x338930=>this['editor']['model']['hasContent'](_0x338930)),_0xa52812=this['editor']['plugins']['get']('Users')['me']['id'],_0x239c44=R(this['editor']['locale'],_0x1fff2a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x2077ad,'to':_0x2077ad,'id':this['_initialRevisionId'],'name':_0x239c44,'creatorId':_0xa52812});}}['_createCurrentRevision'](_0x1e6ce2){const _0x3e31c2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3e31c2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1e6ce2,'to':_0x1e6ce2,'id':_0x3e31c2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x42b386,from:_0x2a1c15,to:_0x50a8e4,creatorId:_0x858237,id:_0x41c25c}){const _0x1d5e83=this['buildRevisionData']({'from':_0x2a1c15,'to':_0x50a8e4});_0x1d5e83['name']=_0x42b386,_0x1d5e83['creatorId']=_0x858237,_0x1d5e83['id']=_0x41c25c;const _0x27fc23=this['addRevisionData'](_0x1d5e83);return this['adapter']&&this['_bufferUpdate'](_0x1d5e83['id'],_0x1d5e83,!0x0),_0x27fc23;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x58bf7e){return(_0x58bf7e=_0x58bf7e['filter'](_0x241d9c=>!_0x241d9c['name']||'revision-start'!==_0x241d9c['name']&&'revision-end'!==_0x241d9c['name']))['forEach'](_0x1006f0=>{'string'!=typeof _0x1006f0&&(_0x1006f0['children']=this['_removeRevisionMarkers'](_0x1006f0['children']),_0x1006f0['attributes']=_0x1006f0['attributes']['filter'](_0x1cdc68=>!_0x1cdc68[0x0]['startsWith']('data-revision-')));}),_0x58bf7e;}}function V(_0xa0927e,_0x599793){const _0x5c606e=_0x599793['editing']['view']['document'];if('string'==typeof _0xa0927e)return new _0xd57083(_0x5c606e,_0xa0927e);{const _0xe687a5=_0xa0927e['children']['map'](_0x46296c=>V(_0x46296c,_0x599793));return new(C[_0xa0927e['type']]||_0x2c4196)(_0x5c606e,_0xa0927e['name'],_0xa0927e['attributes'],_0xe687a5);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x7176c4){this['editor']=_0x7176c4,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'](_0x2dd5df){this['source']=_0x2dd5df;const _0x38c5cc=new Map(),_0x50144d=new Map(),_0x27b84b=this['editor']['model']['document']['roots']['map'](_0x176634=>_0x176634['rootName']);for(const _0x4bee9e of _0x27b84b){const _0x15680e=this['editor']['model']['document']['getRoot'](_0x4bee9e),_0x1bcd76=F(_0x15680e);_0x38c5cc['set'](_0x4bee9e,_0x1bcd76),_0x50144d['set'](_0x4bee9e,Object['fromEntries'](_0x15680e['getAttributes']()));}const _0x601a8e=Array['from'](this['editor']['model']['markers'])['map'](_0x5e7e91=>[_0x5e7e91['name'],_0x5e7e91['getRange']()]),_0x4e6098=this['source']['version'];this['_saveMetaData'](_0x4e6098,_0x38c5cc,_0x601a8e,_0x50144d),this['_startingRevisionId']=this['_revisionId'];const _0x2967c2=new Map(),_0x992431=new Map();for(const _0x38fecc of _0x27b84b){const _0x52be48=B(_0x38fecc);_0x2967c2['set'](_0x38fecc,_0x52be48),_0x992431['set'](_0x38fecc,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2967c2,[],_0x992431);}['getData'](_0x56a22a,_0x46df74){if(this['_lastFrom']===_0x56a22a&&this['_lastTo']<=_0x46df74)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x46df74,!0x0);else{if(!this['_savedMetaData']['has'](_0x56a22a)){const _0x37c1cb=this['_getPreviousFrom'](_0x56a22a);this['_calculateMetaData'](_0x37c1cb,_0x56a22a,!0x1);}this['_calculateMetaData'](_0x56a22a,_0x46df74,!0x0);}return this['_lastFrom']=_0x56a22a,this['_lastTo']=_0x46df74,this['_getState']();}['loadState'](_0xf75fcc){this['_reset'](),this['_lastFrom']=_0xf75fcc['fromVersion'],this['_lastTo']=_0xf75fcc['toVersion'];for(const _0x4acb8e in _0xf75fcc['diffData']){const _0x19aec5=_0xf75fcc['diffData'][_0x4acb8e]['attachChange'],_0x3c300a=_0x295472(_0xf75fcc['diffData'][_0x4acb8e]['attributesBefore'])||{},_0x1b5c64=this['_makeModelFromViewString'](_0xf75fcc['diffData'][_0x4acb8e]['deletions']);_0x1b5c64['rootName']=_0x4acb8e,_0x1b5c64['_isAttached']=!_0x19aec5||!_0x19aec5['isAttached'],_0x1b5c64['isAttached']=()=>_0x1b5c64['_isAttached'],this['_baseRoots']['set'](_0x4acb8e,_0x1b5c64),this['_baseRootsAttributes']['set'](_0x4acb8e,_0x3c300a),_0x19aec5&&this['_touchedRoots']['set'](_0x4acb8e,_0x19aec5);const _0x581fa7=this['_makeIdsRoot'](_0x1b5c64);this['_baseIdsRoots']['set'](_0x4acb8e,_0x581fa7);for(const [_0x2a86ae,_0x2b0e68]of _0x1b5c64['markers']){if(!_0x2a86ae['startsWith']('revision:'))continue;const _0x3e958e=_0x2a86ae['split'](':')[0x2];for(const _0x38b83e of _0x2b0e68['getWalker']({'singleCharacters':!0x0})){const _0x21a904=this['_getVidAttributeName'](_0x38b83e),_0x3cf5f4='elementEnd'==_0x38b83e['type']?_0x38b83e['previousPosition']['path']['slice'](0x0,-0x1):_0x38b83e['previousPosition']['path'],_0x3e3b5a=_0x581fa7['getNodeByPath'](_0x3cf5f4)['getAttribute'](_0x21a904);this['_touched']['set'](_0x3e3b5a,{'userId':_0x3e958e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5aefdf=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x40fb45=>!this['_touched']['has'](_0x40fb45));let _0x6b50a7=0x0;const _0x94b8cb=new Map();for(const _0x482faf in _0xf75fcc['diffData']){const _0x4dfd9f=_0xf75fcc['diffData'][_0x482faf]['attachChange'],_0x46d6e1=_0x295472(_0xf75fcc['diffData'][_0x482faf]['attributesAfter'])||{},_0x317cac=this['_makeModelFromViewString'](_0xf75fcc['diffData'][_0x482faf]['insertions']);_0x317cac['rootName']=_0x482faf,_0x317cac['_isAttached']=!_0x4dfd9f||_0x4dfd9f['isAttached'],_0x317cac['isAttached']=()=>_0x317cac['_isAttached'],this['_diffRoots']['set'](_0x482faf,_0x317cac),this['_diffRootsAttributes']['set'](_0x482faf,_0x46d6e1);const _0x377408=this['_makeIdsRoot'](_0x317cac,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x482faf,_0x377408),_0x94b8cb['set'](_0x482faf,_0x317cac['isAttached']()?_0x46d6e1:{});for(const [_0x15d77b,_0x5d51a0]of _0x317cac['markers']){if(!_0x15d77b['startsWith']('revision:'))continue;const _0x217ca3=_0x15d77b['split'](':')[0x2];for(const _0x14c650 of _0x5d51a0['getWalker']({'singleCharacters':!0x0})){const _0x3363d4=this['_getVidAttributeName'](_0x14c650),_0x1d7d11=this['_revisionId']++,_0x5d4fab='elementEnd'==_0x14c650['type']?_0x14c650['previousPosition']['path']['slice'](0x0,-0x1):_0x14c650['previousPosition']['path'];_0x377408['getNodeByPath'](_0x5d4fab)['_setAttribute'](_0x3363d4,_0x1d7d11),this['_touched']['set'](_0x1d7d11,{'userId':_0x217ca3});}}for(const _0x46ba32 of this['editor']['model']['createRangeIn'](_0x317cac)['getWalker']({'singleCharacters':!0x0})){const _0x576e85=this['_getVidAttributeName'](_0x46ba32),_0x1aee12='elementEnd'==_0x46ba32['type']?_0x46ba32['previousPosition']['path']['slice'](0x0,-0x1):_0x46ba32['previousPosition']['path'],_0x18c9cb=_0x377408['getNodeByPath'](_0x1aee12);_0x18c9cb['getAttribute'](_0x576e85)>0x0||_0x18c9cb['_setAttribute'](_0x576e85,_0x5aefdf[_0x6b50a7++]);}for(const [_0x5e6276,_0x56b5bb]of _0x317cac['markers'])_0x5e6276['startsWith']('revision:')||this['_markers']['set'](_0x5e6276,_0x56b5bb);}const _0x29a107=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x29a107),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29a107,0x1));const _0x1e691b=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1e691b),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1e691b,0x1));const _0x4e68e7=Array['from'](this['_diffRoots'])['map'](([_0x4aac75,_0xddb746])=>[_0x4aac75,F(_0xddb746)]);this['_saveMetaData'](this['_lastTo'],_0x4e68e7,this['_markers'],_0x94b8cb);}['_makeModelFromViewString'](_0x8cc927){const _0x504161=JSON['parse'](_0x8cc927),_0x2de130=this['editor']['editing']['view']['document'],_0x3cd7b4=new _0x4833c1(_0x2de130,_0x504161['map'](_0x345261=>V(_0x345261,this['editor'])));return this['editor']['data']['toModel'](_0x3cd7b4);}['_saveMetaData'](_0x2d6865,_0x51d6c7,_0x4fcf06,_0x5bca5c){const _0x585d86=new Map(_0x51d6c7),_0x2c7919=new Map(_0x295472(_0x5bca5c)),_0x3a82c2=new Map();for(const [_0x2a774d,_0x11b64e]of _0x4fcf06)_0x3a82c2['set'](_0x2a774d,{'start':_0x11b64e['start']['clone'](),'end':_0x11b64e['end']['clone'](),'rootName':_0x11b64e['root']['rootName']});this['_savedMetaData']['set'](_0x2d6865,{'roots':_0x585d86,'markers':_0x3a82c2,'rootsAttributes':_0x2c7919});}['_removeMetaData'](_0x2fa536){this['_savedMetaData']['delete'](_0x2fa536);}['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'](_0x130843,_0x322b7d=null){let _0x234976=null;_0x130843['is']('documentFragment')||(_0x234976=new ft(_0x130843['name'],{'vid_start':null===_0x322b7d?this['_revisionId']++:_0x322b7d++}));const _0x4cd76d=[];for(const _0x2886af of _0x130843['getChildren']())if(_0x2886af['is']('element')){_0x4cd76d['push'](this['_makeIdsRoot'](_0x2886af,_0x322b7d));const _0x57de46=_0x4cd76d[_0x4cd76d['length']-0x1];null!==_0x322b7d&&(_0x322b7d=_0x57de46['is']('element','$text')?_0x57de46['getAttribute']('vid')+0x1:_0x57de46['getAttribute']('vid_end')+0x1);}else{for(let _0x32d205=0x0;_0x32d205<_0x2886af['offsetSize'];_0x32d205++)_0x4cd76d['push'](new ft('$text',{'vid':null===_0x322b7d?this['_revisionId']++:_0x322b7d++}));}if(_0x130843['is']('documentFragment')){const _0x2b5907=B(_0x130843['rootName']);return _0x2b5907['_insertChild'](0x0,_0x4cd76d),_0x2b5907;}return _0x234976['_setAttribute']('vid_end',null===_0x322b7d?this['_revisionId']++:_0x322b7d++),_0x234976['_insertChild'](0x0,_0x4cd76d),_0x234976;}['_calculateMetaData'](_0x2a3da3,_0x5ee7f0,_0x2e0edb){this['_reset']();const {roots:_0x35c342,markers:_0x3c04ab,rootsAttributes:_0x41a080}=this['_savedMetaData']['get'](_0x2a3da3);this['_baseRoots']=new Map(_0x35c342),this['_baseRootsAttributes']=new Map(_0x295472(_0x41a080));for(const [_0xe6d4e1,_0x354587]of this['_baseRoots'])if('$graveyard'!==_0xe6d4e1&&(this['_diffRoots']['set'](_0xe6d4e1,F(_0x354587)),this['_diffRootsAttributes']=new Map(_0x295472(_0x41a080)),_0x2e0edb)){const _0x1f0fe5=this['_revisionId'];this['_idsRoots']['set'](_0xe6d4e1,this['_makeIdsRoot'](_0x354587)),this['_baseIdsRoots']['set'](_0xe6d4e1,this['_makeIdsRoot'](_0x354587,_0x1f0fe5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x2e0edb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x3446e4,_0x3430f9]of _0x3c04ab){const _0x105724=this['_baseRoots']['get'](_0x3430f9['rootName']),_0x3610c9=this['_diffRoots']['get'](_0x3430f9['rootName']),_0x3d5e23=new vt(this['_fixPosition'](_0x3430f9['start'],_0x105724),this['_fixPosition'](_0x3430f9['end'],_0x105724)),_0x486db8=this['_fixRange'](_0x3d5e23,_0x3610c9);_0x105724['markers']['set'](_0x3446e4,_0x3d5e23),this['_markers']['set'](_0x3446e4,_0x486db8);}this['_applyOperations'](_0x2a3da3,_0x5ee7f0,_0x2e0edb);}['_applyOperations'](_0x21f882,_0x28d697,_0x2e3c47){for(const _0x49ebad of this['source']['getOperations'](_0x21f882,_0x28d697))this['_handleOperation'](_0x49ebad,_0x2e3c47);for(const _0x54fbce of this['_diffRoots']['values']())_0x54fbce['markers']['clear']();for(const [_0x4f08e2,_0x38bde5]of this['_markers']){this['_diffRoots']['get'](_0x38bde5['root']['rootName'])['markers']['set'](_0x4f08e2,_0x38bde5['clone']());}const _0x3b7a39=new Map(),_0x261118=new Map();for(const [_0x19644a,_0xef3e2a]of this['_diffRoots'])_0x3b7a39['set'](_0x19644a,F(_0xef3e2a)),_0x261118['set'](_0x19644a,this['_diffRootsAttributes']['get'](_0x19644a));this['_saveMetaData'](_0x28d697,_0x3b7a39,this['_markers'],_0x261118);}['_getPreviousFrom'](_0x109d04){const _0x4e52a7=Array['from'](this['_savedMetaData']['keys']());_0x4e52a7['sort']((_0x138aa2,_0xcfcac3)=>_0x138aa2-_0xcfcac3),_0x4e52a7['reverse']();for(const _0x56f07b of _0x4e52a7)if(_0x56f07b<_0x109d04)return _0x56f07b;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x45c659,_0x1d9185){const _0xd6603d=Array['from'](_0x1d9185['markers'])['map'](([_0x26b0d6,_0xd7f4f9])=>[_0x26b0d6,this['_fixRange'](_0xd7f4f9,_0x45c659)]);_0x45c659['markers']=new Map(_0xd6603d);}['_transformMarkers'](_0x1aac4e){for(const _0x25e8e5 of this['_markers']['values']()){const _0x256a47=_0x25e8e5['getTransformedByOperation'](_0x1aac4e),_0x33333e=vt['_createFromRanges'](_0x256a47);_0x25e8e5['start']=_0x33333e['start'],_0x25e8e5['end']=_0x33333e['end'];}}['_handleOperation'](_0x37db7d,_0x49c079){if('addRoot'!=_0x37db7d['type']&&'detachRoot'!=_0x37db7d['type']){if('insert'==_0x37db7d['type']){const _0x241511=_0x37db7d['position']['root']['rootName'];this['_diffRoots']['has'](_0x241511)||(this['_diffRoots']['set'](_0x241511,B(_0x241511,!0x0)),this['_diffRootsAttributes']['set'](_0x241511,{}),_0x49c079&&this['_idsRoots']['set'](_0x241511,B(_0x241511,!0x0)));}else{if('addRootAttribute'==_0x37db7d['type']||'removeRootAttribute'==_0x37db7d['type']||'changeRootAttribute'==_0x37db7d['type'])return void this['_handleRootAttributeOperation'](_0x37db7d);'marker'==_0x37db7d['type']&&this['_handleMarkerOperation'](_0x37db7d);}if('marker'!==_0x37db7d['type']){const _0x58c1bf=this['_cloneOperation'](_0x37db7d,this['_diffRoots']);_0x58c1bf['_execute'](),this['_transformMarkers'](_0x58c1bf);}if(_0x49c079)switch(_0x37db7d['type']){case'insert':this['_handleInsertOperation'](_0x37db7d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x37db7d);break;case'merge':this['_handleMergeOperation'](_0x37db7d);break;case'split':this['_handleSplitOperation'](_0x37db7d);}}else this['_handleRootOperation'](_0x37db7d,_0x49c079);}['_cloneOperation'](_0x5ebee1,_0x461f07){const _0x545928=_0x5ebee1['clone']();return _0x545928['_authorId']=_0x5ebee1['_authorId'],this['_fixOperation'](_0x545928,_0x461f07),_0x545928;}['_getBaseVids'](_0x19e478){return _0x19e478['map'](_0x144e5c=>{const _0x506b38=this['_getVidAttributeName'](_0x144e5c);return Number(_0x144e5c['item']['getAttribute'](_0x506b38));});}['_generateTape'](_0x3dbe3a,_0x5ccc90){if(_0x3dbe3a['is']('element','$text'))_0x5ccc90['push']({'item':_0x3dbe3a,'type':'text'});else{_0x3dbe3a['is']('element')&&_0x5ccc90['push']({'item':_0x3dbe3a,'type':'elementStart'});for(const _0x2e2687 of _0x3dbe3a['getChildren']())this['_generateTape'](_0x2e2687,_0x5ccc90);_0x3dbe3a['is']('element')&&_0x5ccc90['push']({'item':_0x3dbe3a,'type':'elementEnd'});}return _0x5ccc90;}['_getState'](){const _0x24e574=new Map(this['_touched']),_0x46670f=new Map(_0x24e574),_0x3798b4=new Map(),_0x12ac6f={'insertions':{},'deletions':{}},_0x143e89={'insertions':{},'deletions':{}},_0x128694=new Map(),_0x2f2993=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2f2993['delete']('$graveyard');for(const _0x3bbb7d of _0x2f2993){const _0x51c9b4=this['_diffRoots']['get'](_0x3bbb7d)||B(_0x3bbb7d,!0x1),_0x19c1cc=this['_baseRoots']['get'](_0x3bbb7d)||B(_0x3bbb7d,!0x1);_0x51c9b4['isAttached']()||_0x19c1cc['isAttached']()?(_0x12ac6f['insertions'][_0x3bbb7d]=F(_0x51c9b4),_0x12ac6f['deletions'][_0x3bbb7d]=F(_0x19c1cc),this['_copyMarkers'](_0x12ac6f['deletions'][_0x3bbb7d],_0x19c1cc),this['_copyMarkers'](_0x12ac6f['insertions'][_0x3bbb7d],_0x51c9b4),_0x143e89['insertions'][_0x3bbb7d]=this['_generateTape'](this['_idsRoots']['get'](_0x3bbb7d),[]),_0x143e89['deletions'][_0x3bbb7d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x3bbb7d)||B(_0x3bbb7d,!0x1),[])):_0x2f2993['delete'](_0x3bbb7d);}for(const _0x55eb81 of _0x2f2993){const _0x131c25=_0x143e89['insertions'][_0x55eb81];for(const _0x10aaad of _0x131c25){const _0x19ce73=this['_getVidAttributeName'](_0x10aaad),_0x842c4d=_0x10aaad['item']['getAttribute'](_0x19ce73);_0x46670f['delete'](_0x842c4d),_0x842c4d>=this['_startingRevisionId']&&_0x3798b4['set'](_0x842c4d,_0x24e574['get'](_0x842c4d));}}for(const _0x5201ab of _0x2f2993){const _0xe18253=_0x143e89['insertions'][_0x5201ab],_0x8bd45b=this['_getBaseVids'](_0x143e89['deletions'][_0x5201ab]);let _0x54fb92=0x0;for(const _0x12b5ac of _0xe18253){const _0xa82039=this['_getVidAttributeName'](_0x12b5ac),_0x2727c1=_0x12b5ac['item']['getAttribute'](_0xa82039);if(!_0x3798b4['has'](_0x2727c1)&&!_0x128694['has'](_0x2727c1)){if(_0x46670f['has'](_0x2727c1))_0x54fb92++;else{if(_0x2727c1!=_0x8bd45b[_0x54fb92]){const _0x551d2f=_0x24e574['get'](_0x2727c1)||_0x24e574['get'](_0x8bd45b[_0x54fb92]);for(;_0x2727c1!=_0x8bd45b[_0x54fb92];)_0x46670f['has'](_0x8bd45b[_0x54fb92])||(_0x128694['set'](_0x8bd45b[_0x54fb92],_0x551d2f),_0x24e574['set'](_0x8bd45b[_0x54fb92],_0x551d2f)),_0x54fb92++;}_0x54fb92++;}}}}for(const _0x433476 of _0x2f2993){const _0x51bfec=_0x143e89['insertions'][_0x433476];for(const _0x15b8d6 of _0x51bfec){const _0x19b115=this['_getVidAttributeName'](_0x15b8d6),_0x24feb5=_0x15b8d6['item']['getAttribute'](_0x19b115);if(_0x128694['has'](_0x24feb5)){const _0x421661=_0x128694['get'](_0x24feb5);_0x46670f['has'](_0x24feb5)||_0x46670f['set'](_0x24feb5,{..._0x421661}),_0x3798b4['set'](_0x24feb5,{..._0x421661});}}}for(const _0x31d48e of _0x46670f['keys']())_0x31d48e>=this['_startingRevisionId']&&_0x46670f['delete'](_0x31d48e);const _0x5d6a29=new Map();for(const _0x5562c4 of _0x2f2993){let _0x378b5d=_0x143e89['insertions'][_0x5562c4];for(const _0x294540 of _0x378b5d)if(_0x294540['item']['is']('element','tableCell')){const _0x49d477=this['_getVidAttributeName'](_0x294540),_0x1d5a37=_0x294540['item']['getAttribute'](_0x49d477);if(_0x3798b4['has'](_0x1d5a37)){const _0x2200f3=_0x294540['item']['parent']['parent']['getAttribute']('vid_start'),_0x40d1b8=_0x5d6a29['get'](_0x2200f3)||new Set();_0x40d1b8['add'](_0x3798b4['get'](_0x1d5a37)['userId']),_0x5d6a29['set'](_0x2200f3,_0x40d1b8);}}_0x378b5d=_0x143e89['deletions'][_0x5562c4];for(const _0x20fca5 of _0x378b5d)if(_0x20fca5['item']['is']('element','tableCell')){const _0x5ded06=this['_getVidAttributeName'](_0x20fca5),_0x1842ea=_0x20fca5['item']['getAttribute'](_0x5ded06);if(_0x46670f['has'](_0x1842ea)){const _0x34e1ad=_0x20fca5['item']['parent']['parent']['getAttribute']('vid_start'),_0x5de7ab=_0x5d6a29['get'](_0x34e1ad)||new Set();_0x5de7ab['add'](_0x46670f['get'](_0x1842ea)['userId']),_0x5d6a29['set'](_0x34e1ad,_0x5de7ab);}}for(const _0x28a1ef of _0x5d6a29['keys']())(_0x3798b4['has'](_0x28a1ef)||_0x46670f['has'](_0x28a1ef))&&_0x5d6a29['delete'](_0x28a1ef);}for(const _0x50cea2 of _0x2f2993){const _0x396edc=_0x143e89['insertions'][_0x50cea2];let _0x5c3628=null,_0x1aff6f=null;for(const _0x119f96 of _0x396edc){const _0x4c6349=this['_getVidAttributeName'](_0x119f96),_0x2ce2d7=_0x119f96['item']['getAttribute'](_0x4c6349),_0x5bc010=_0x5d6a29['get'](_0x2ce2d7);_0x5bc010&&'elementStart'==_0x119f96['type']&&(_0x5c3628=Array['from'](_0x5bc010)[0x0],_0x1aff6f=_0x119f96['item']['getAttribute']('vid_end')),_0x5c3628&&(_0x46670f['set'](_0x2ce2d7,{'userId':_0x5c3628}),_0x3798b4['set'](_0x2ce2d7,{'userId':_0x5c3628})),_0x2ce2d7==_0x1aff6f&&(_0x5c3628=null,_0x1aff6f=null);}}const _0x5ca6ce={},_0x79e4e4=new Set();for(const _0x265ff5 of _0x2f2993){const _0x4e83f2=_0x12ac6f['deletions'][_0x265ff5],_0x2ee800=_0x12ac6f['insertions'][_0x265ff5];for(const {userId:_0x22c1b1}of this['_touchedMarkers']['values']())null!==_0x22c1b1&&_0x79e4e4['add'](_0x22c1b1);for(const {userId:_0x3ea17a}of this['_touchedRoots']['values']())null!==_0x3ea17a&&_0x79e4e4['add'](_0x3ea17a);this['_markChanges'](_0x2ee800,_0x143e89['insertions'][_0x265ff5],_0x3798b4,'insertion',_0x79e4e4),this['_markChanges'](_0x4e83f2,_0x143e89['deletions'][_0x265ff5],_0x46670f,'deletion',_0x79e4e4),_0x5ca6ce[_0x265ff5]={'insertions':this['_prepareViewToSave'](_0x2ee800),'deletions':this['_prepareViewToSave'](_0x4e83f2),'attachChange':this['_touchedRoots']['get'](_0x265ff5)||null,'attributesBefore':_0x295472(this['_baseRootsAttributes']['get'](_0x265ff5))||{},'attributesAfter':_0x295472(this['_diffRootsAttributes']['get'](_0x265ff5))};}return{'diffData':_0x5ca6ce,'authorsIds':Array['from'](_0x79e4e4)};}['_processRootBeforeSave'](_0x19f406){for(const [,_0x5f1473]of _0x19f406['markers']){const _0x47ff96=_0x5f1473['start']['getAncestors']()['filter'](_0x49bb5d=>'tableCell'==_0x49bb5d['name']);for(const _0x291458 of _0x47ff96)0x1==_0x291458['childCount']&&_0x291458['getChild'](0x0)['is']('element','paragraph')&&_0x291458['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2add00){this['_processRootBeforeSave'](_0x2add00);const _0x299e8f=this['editor']['data']['toView'](_0x2add00,{}),_0x29eada=Array['from'](_0x299e8f['getChildren']())['map'](_0x2dc3ad=>this['_getViewJson'](_0x2dc3ad));return JSON['stringify'](_0x29eada);}['_getViewJson'](_0x14899e){if(_0x14899e['is']('$text'))return _0x14899e['data'];{const _0x421e12=_0x14899e;return{'type':Object['keys'](C)['find'](_0x2512f5=>_0x14899e instanceof C[_0x2512f5]),'name':_0x421e12['name'],'attributes':Array['from'](_0x421e12['getAttributes']()),'children':Array['from'](_0x421e12['getChildren']())['map'](_0x73a231=>this['_getViewJson'](_0x73a231))};}}['_markChanges'](_0x3990d6,_0x58b58a,_0xbb3167,_0x5df67f,_0x224bbe){let _0x406aa4=null,_0xe685d4=null,_0x3be966=0x0;const _0x18592c=this['editor']['model'];for(let _0x5d7a97=0x0;_0x5d7a97<_0x58b58a['length'];_0x5d7a97++){const _0x405fec=this['_getVidAttributeName'](_0x58b58a[_0x5d7a97]),_0x2cc560=_0x58b58a[_0x5d7a97]['item']['getAttribute'](_0x405fec),_0x5c010d=_0xbb3167['get'](_0x2cc560),_0x4bf5d7=_0x5d7a97==_0x58b58a['length']-0x1;(!_0x406aa4&&_0x5c010d&&(_0x406aa4=_0x5c010d,_0xe685d4=_0x58b58a[_0x5d7a97]),_0x406aa4&&(!_0x5c010d||_0x5c010d['userId']!=_0x406aa4['userId']))&&(_0x1eb6ba(_0x5c010d,J(_0xe685d4,_0x3990d6,_0x18592c),J(_0x58b58a[_0x5d7a97],_0x3990d6,_0x18592c)),_0x406aa4=_0x5c010d||null,_0xe685d4=_0x5c010d?_0x58b58a[_0x5d7a97]:null),_0x406aa4&&_0x4bf5d7&&_0x1eb6ba(_0x5c010d,J(_0xe685d4,_0x3990d6,_0x18592c),q(_0x58b58a[_0x5d7a97],_0x3990d6,_0x18592c));}function _0x1eb6ba(_0x10d366,_0x1dcf7f,_0x5778d5){const _0x9e9607=_0x406aa4['userId'],_0x12301c='revision:'+_0x5df67f+':'+_0x9e9607+':'+_0x3be966++,_0x370d83=_0x18592c['createRange'](_0x1dcf7f,_0x5778d5);_0x3990d6['markers']['set'](_0x12301c,_0x370d83),null!==_0x9e9607&&_0x224bbe['add'](_0x9e9607);}}['_getVidAttributeName'](_0x2624d5){switch(_0x2624d5['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1c31dd,_0x55ae2d){_0x1c31dd['baseVersion']=null;for(const _0x2650a0 in _0x1c31dd){const _0xfe793c=_0x1c31dd[_0x2650a0];if(_0xfe793c instanceof gt){const _0x1038d7=_0x55ae2d['get'](_0xfe793c['root']['rootName']);_0x1c31dd[_0x2650a0]=this['_fixPosition'](_0xfe793c,_0x1038d7);}if(_0xfe793c instanceof vt){const _0x2b143b=_0x55ae2d['get'](_0xfe793c['root']['rootName']);_0x1c31dd[_0x2650a0]=this['_fixRange'](_0xfe793c,_0x2b143b);}'root'===_0x2650a0&&(_0x1c31dd['root']=_0x55ae2d['get'](_0x1c31dd['root']['rootName']));}}['_fixRange'](_0x1394e4,_0x317ff7){return this['editor']['model']['createRange'](this['_fixPosition'](_0x1394e4['start'],_0x317ff7),this['_fixPosition'](_0x1394e4['end'],_0x317ff7));}['_fixPosition'](_0x3d2c5b,_0x1d43b0){return this['editor']['model']['createPositionFromPath'](_0x1d43b0,_0x3d2c5b['path'],_0x3d2c5b['stickiness']);}['_handleInsertOperation'](_0x59256a){const _0x37dd52=this['_idsRoots']['get'](_0x59256a['position']['root']['rootName']),_0x18aa61=this['_fixPosition'](_0x59256a['position'],_0x37dd52),_0x59ea7d=null===_0x59256a['_authorId']?null:_0x59256a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3d06bf=_0x18aa61['parent'],_0xd207b6=this['_revisionId'],_0x5ac66c=[];for(const _0x287382 of _0x59256a['nodes'])if(_0x287382['is']('element'))_0x5ac66c['push'](this['_makeIdsRoot'](_0x287382));else{for(let _0x35968f=0x0;_0x35968f<_0x287382['offsetSize'];_0x35968f++)_0x5ac66c['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x382b39=this['_revisionId'];for(let _0x45d6c5=_0xd207b6;_0x45d6c5<_0x382b39;_0x45d6c5++)this['_touched']['set'](_0x45d6c5,{'userId':_0x59ea7d});_0x3d06bf['_insertChild'](_0x18aa61['offset'],_0x5ac66c);}['_handleMoveOperation'](_0x192e87){(_0x192e87=this['_cloneOperation'](_0x192e87,this['_idsRoots']))['_execute']();const _0x409134=null===_0x192e87['_authorId']?null:_0x192e87['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1754ce=_0x192e87['getMovedRangeStart'](),_0xdc582c=_0x1754ce['parent'],_0x51212e=_0x1754ce['offset'];!function _0x1e3518(_0x255c5c,_0x467b8c,_0x498460,_0x50a4dd){for(let _0x12a31d=_0x498460;_0x12a31d<_0x50a4dd;_0x12a31d++){const _0x100e4b=_0x467b8c['getChild'](_0x12a31d);_0x100e4b['is']('element','$text')?_0x255c5c['set'](_0x100e4b['getAttribute']('vid'),{'userId':_0x409134}):(_0x255c5c['set'](_0x100e4b['getAttribute']('vid_start'),{'userId':_0x409134}),_0x1e3518(_0x255c5c,_0x100e4b,0x0,_0x100e4b['childCount']),_0x255c5c['set'](_0x100e4b['getAttribute']('vid_end'),{'userId':_0x409134}));}}(this['_touched'],_0xdc582c,_0x51212e,_0x51212e+_0x192e87['howMany']);}['_handleMergeOperation'](_0x2c441e){const _0x31380c=null===(_0x2c441e=this['_cloneOperation'](_0x2c441e,this['_idsRoots']))['_authorId']?null:_0x2c441e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x251d38=_0x2c441e['targetPosition']['parent'],_0x3510d0=_0x2c441e['sourcePosition']['parent'],_0xe0a236=_0x251d38['getAttribute']('vid_end'),_0x249217=_0x3510d0['getAttribute']('vid_start');_0x251d38['_setAttribute']('vid_end',_0x3510d0['getAttribute']('vid_end')),_0x3510d0['_setAttribute']('vid_end',_0xe0a236),this['_touched']['set'](_0x249217,{'userId':_0x31380c}),this['_touched']['set'](_0xe0a236,{'userId':_0x31380c}),_0x2c441e['_execute']();}['_handleSplitOperation'](_0x1b0239){const _0x27d995=null===(_0x1b0239=this['_cloneOperation'](_0x1b0239,this['_idsRoots']))['_authorId']?null:_0x1b0239['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28caa6=_0x1b0239['graveyardPosition'],_0x39f2e3=_0x1b0239['splitPosition']['parent'];_0x1b0239['_execute']();const _0x44e156=_0x39f2e3['getAttribute']('vid_end'),_0x3ffe2c=_0x1b0239['insertionPosition']['nodeAfter'];if(_0x28caa6){const _0x435ac6=_0x3ffe2c['getAttribute']('vid_end'),_0x3cfebe=_0x39f2e3['getAttribute']('vid_end');_0x39f2e3['_setAttribute']('vid_end',_0x435ac6),_0x3ffe2c['_setAttribute']('vid_end',_0x3cfebe),this['_touched']['set'](_0x39f2e3['getAttribute']('vid_end'),{'userId':_0x27d995}),this['_touched']['set'](_0x3ffe2c['getAttribute']('vid_start'),{'userId':_0x27d995});}else{const _0x29dab3=this['_revisionId']++,_0x4b89ce=this['_revisionId']++;_0x39f2e3['_setAttribute']('vid_end',_0x29dab3),_0x3ffe2c['_setAttribute']('vid_start',_0x4b89ce),_0x3ffe2c['_setAttribute']('vid_end',_0x44e156),this['_touched']['set'](_0x29dab3,{'userId':_0x27d995}),this['_touched']['set'](_0x4b89ce,{'userId':_0x27d995});}}['_handleMarkerOperation'](_0x2a2564){if(!_0x2a2564['affectsData'])return;const _0x3998da=(_0x2a2564=this['_cloneOperation'](_0x2a2564,this['_diffRoots']))['oldRange']?_0x2a2564['oldRange']['root']:null,_0x3b1bf4=_0x2a2564['newRange']?_0x2a2564['newRange']['root']:null;_0x3998da&&this['_markers']['delete'](_0x2a2564['name']),_0x3b1bf4&&this['_markers']['set'](_0x2a2564['name'],_0x2a2564['newRange']['clone']());const _0x19ee5d=null===_0x2a2564['_authorId']?null:_0x2a2564['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x575309=_0x2a2564['name'];if(!this['_touchedMarkers']['has'](_0x575309))return void this['_touchedMarkers']['set'](_0x575309,{'range':_0x2a2564['oldRange'],'userId':_0x19ee5d});const _0x3ef388=this['_touchedMarkers']['get'](_0x575309),_0x587342=_0x3ef388['range'],_0xc390fa=_0x2a2564['newRange'];null==_0x587342&&null==_0xc390fa||_0x587342&&_0xc390fa&&_0x587342['isEqual'](_0xc390fa)?this['_touchedMarkers']['delete'](_0x2a2564['name']):_0x3ef388['userId']=_0x19ee5d;}['_handleRootOperation'](_0x408399,_0x43ec6c){this['_diffRoots']['has'](_0x408399['rootName'])?this['_diffRoots']['get'](_0x408399['rootName'])['_isAttached']=_0x408399['isAdd']:(this['_diffRoots']['set'](_0x408399['rootName'],B(_0x408399['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x408399['rootName'],{}),_0x43ec6c&&this['_idsRoots']['set'](_0x408399['rootName'],B(_0x408399['rootName'],!0x0)));const _0x17c5d9=null===_0x408399['_authorId']?null:_0x408399['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x762f70=this['_touchedRoots']['get'](_0x408399['rootName']);_0x762f70&&_0x762f70['userId']===_0x17c5d9?this['_touchedRoots']['delete'](_0x408399['rootName']):this['_touchedRoots']['set'](_0x408399['rootName'],{'userId':_0x17c5d9,'isAttached':_0x408399['isAdd']});}['_handleRootAttributeOperation'](_0x847968){const _0x162c93=this['_diffRootsAttributes']['get'](_0x847968['root']['rootName']);null===_0x847968['newValue']?delete _0x162c93[_0x847968['key']]:_0x162c93[_0x847968['key']]=_0x847968['newValue'];}}function F(_0x51e79c){const _0x3081c5=B(_0x51e79c['rootName'],_0x51e79c['isAttached']());for(const _0x587a1b of _0x51e79c['getChildren']()){const _0x3e10aa=_0x587a1b['_clone'](!0x0);_0x3081c5['_appendChild'](_0x3e10aa);}return _0x3081c5;}function B(_0x1290c2,_0x6e1acf=!0x0){const _0x19edfd=new wt();return _0x19edfd['rootName']=_0x1290c2,_0x19edfd['_isAttached']=_0x6e1acf,_0x19edfd['isAttached']=()=>_0x19edfd['_isAttached'],_0x19edfd;}function J(_0xa7ba6,_0x5ceb4e,_0x186ed5){const _0x2ac71a='elementEnd'==_0xa7ba6['type']?_0x186ed5['createPositionAt'](_0xa7ba6['item'],'end'):_0x186ed5['createPositionBefore'](_0xa7ba6['item']);return _0x186ed5['createPositionFromPath'](_0x5ceb4e,_0x2ac71a['path'],_0x2ac71a['stickiness']);}function q(_0x4b4325,_0x16126c,_0x29308d){const _0x2338ac='elementStart'==_0x4b4325['type']?_0x29308d['createPositionAt'](_0x4b4325['item'],0x0):_0x29308d['createPositionAfter'](_0x4b4325['item']);return _0x29308d['createPositionFromPath'](_0x16126c,_0x2338ac['path'],_0x2338ac['stickiness']);}class ns extends _0x2c43c9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x509ee3,_0x48cbbe){super(_0x509ee3),this['focusTracker']=new _0x5cf0e0(),this['keystrokes']=new _0x3a2814(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x48cbbe),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'](),_0x5b1924({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xdd905d=_0x118df9=>_0x118df9['stopPropagation']();this['keystrokes']['set']('arrowright',_0xdd905d),this['keystrokes']['set']('arrowleft',_0xdd905d),this['keystrokes']['set']('arrowup',_0xdd905d),this['keystrokes']['set']('arrowdown',_0xdd905d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x36a197){this['revisionNameInputView']['fieldView']['element']['value']=_0x36a197['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x4cc47d){const _0x4bb1dc=new at(this['locale'],_0x4fabfa),_0x196073=_0x4bb1dc['fieldView'];_0x196073['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x20564a=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x4cc47d&&(_0x20564a+='\x20('+R(this['locale'],'optional')+')'),(_0x4bb1dc['label']=_0x20564a,_0x196073['on']('input',()=>{this['revisionNameInputValue']=_0x196073['element']['value']['trim']();}),_0x4bb1dc);}}class u extends _0x24aabd{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x2b95b0=this['editor'],_0xbc630c=_0x2b95b0['plugins']['get']('RevisionTracker');_0x2b95b0['ui']['componentFactory']['add']('revisionHistory',_0x534a0a=>{const _0x212096=_0x20789c(_0x534a0a),_0xf81698=_0x212096['panelView']['children'],_0x41302d=new te(_0x534a0a),_0x4694db=new _0x4e494e(_0x534a0a),_0x20f1e6=new _0x15a92a(_0x534a0a),_0x3d873b=new _0x4e494e(_0x534a0a),_0x1fd945=new _0x15a92a(_0x534a0a);return _0x212096['bind']('isEnabled')['to'](_0xbc630c,'isReady',_0xbc630c,'isEnabled',_0x2b95b0,'isReadOnly',(_0x37081a,_0x9d7e75,_0x5e67b0)=>_0x37081a&&_0x9d7e75&&!_0x5e67b0),_0x212096['buttonView']['set']({'icon':_0x888a61['history'],'label':R(_0x534a0a,'Revision\x20history'),'tooltip':!0x0}),_0x20f1e6['set']({'label':R(_0x534a0a,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x20f1e6['bind']('isEnabled')['to'](_0xbc630c,'isReady',_0xbc630c,'isEnabled',_0x2b95b0,'isReadOnly',(_0x4fbefa,_0x1bedeb,_0x1100f8)=>_0x4fbefa&&_0x1bedeb&&!_0x1100f8),_0x20f1e6['on']('execute',()=>this['_showDialog']()),_0x1fd945['set']({'label':R(_0x534a0a,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1fd945['bind']('isEnabled')['to'](_0xbc630c,'isReady',_0x2b95b0,'isReadOnly',(_0x5a6635,_0x41be6c)=>_0x5a6635&&!_0x41be6c),_0x1fd945['on']('execute',()=>{_0x2b95b0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x212096['isOpen']=!0x1,_0x2b95b0['editing']['view']['focus']();}),_0x4694db['children']['add'](_0x20f1e6),_0x3d873b['children']['add'](_0x1fd945),_0x41302d['role']='menu',_0x41302d['items']['addMany']([_0x4694db,_0x3d873b]),_0xf81698['add'](_0x41302d),_0x212096;}),_0x2b95b0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x32c57f=this['editor'],_0x5ce71d=_0x32c57f['locale'],_0x446330=new _0x5320cf(_0x5ce71d),_0x48597e=new _0xae8b9(_0x5ce71d);_0x446330['buttonView']['set']({'icon':_0x888a61['history'],'label':R(_0x5ce71d,'Revision\x20history')});const _0x32273a=new _0x414113(_0x5ce71d,_0x446330),_0x50b1a6=new _0x1ea6c3(_0x5ce71d);_0x50b1a6['set']({'label':R(_0x5ce71d,'Save\x20current\x20revision')}),_0x50b1a6['delegate']('execute')['to'](_0x446330),_0x50b1a6['on']('execute',()=>{this['_showDialog']();}),_0x32273a['children']['add'](_0x50b1a6),_0x48597e['items']['add'](_0x32273a);const _0x1f2674=new _0x414113(_0x5ce71d,_0x446330),_0x166ed1=new _0x1ea6c3(_0x5ce71d);return _0x166ed1['set']({'label':R(_0x5ce71d,'Open\x20revision\x20history')}),_0x166ed1['delegate']('execute')['to'](_0x446330),_0x166ed1['on']('execute',()=>{_0x32c57f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1f2674['children']['add'](_0x166ed1),_0x48597e['items']['add'](_0x1f2674),_0x446330['panelView']['children']['add'](_0x48597e),_0x446330;}['_showDialog'](){const _0x25e441=this['editor'],_0x5014bb=_0x25e441['locale'],_0x239a38=_0x25e441['plugins']['get']('Dialog'),_0x45d2f8=_0x25e441['plugins']['get']('RevisionTracker');function _0x4c32af(_0x41dbfc){_0x25e441['config']['get']('revisionHistory.requireRevisionName')&&''===_0x41dbfc['revisionName']?_0x41dbfc['revisionNameInputView']['errorText']=R(_0x5014bb,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x25e441['plugins']['get'](l)['saveRevision']({'name':_0x41dbfc['revisionName']}),_0x239a38['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c32af(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x239a38['show']({'id':'revisionSave','title':R(_0x5014bb,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x25e441['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x239a38['hide']()},{'label':R(_0x25e441['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0xcc2988){_0xcc2988['bind']('isEnabled')['to'](_0x45d2f8,'isReady',_0x45d2f8,'isEnabled',_0x25e441,'isReadOnly',(_0x1be6e2,_0x9320dd,_0x2a09ff)=>_0x1be6e2&&_0x9320dd&&!_0x2a09ff);},'onExecute':()=>_0x4c32af(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x2e050e=this['editor'],_0x422836=_0x2e050e['locale'];this['_saveRevisionFormView']=new ns(_0x422836,_0x2e050e['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x2c43c9{['changeId'];['_model'];constructor(_0x5cbbeb,_0x5ef592){super(_0x5cbbeb),this['_model']=_0x5ef592,this['changeId']=_0x5ef592['id'];const _0x5d40d0=this['bindTemplate'],_0x355751=R(_0x5cbbeb,_0x5ef592['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5ef592['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5ef592['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5d40d0['to']('type',_0x517949=>'ck-revision-change__'+_0x517949)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x355751}]},{'text':'\x20'+_0x5ef592['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x5c7d88(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x292ad7){super(),this['id']=_0x292ad7['id']||_0x4dce4d(),this['author']=_0x292ad7['author'],this['type']=_0x292ad7['type'],this['data']=_0x292ad7['data']||{},this['rootName']=_0x292ad7['rootName'],this['set']('createdAt',_0x292ad7['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(_0x2afd34,_0x1590ae){this['newRevisionId']=_0x2afd34,this['oldRevisionId']=_0x1590ae,this['changes']=new _0x2ad968();}['_setChanges'](_0x56a35c){for(const _0xcae32c of _0x56a35c)this['changes']['add'](_0xcae32c);}}const Z={'c':_0x23c6b9,'a':_0x3e4e99,'e':_0x46de0e,'r':_0xcf47a2,'u':_0x131e84};class d extends _0x24aabd{['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[_0x4943c5,_0x276f8f,j];}constructor(_0x3e28e3){super(_0x3e28e3),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',(_0x234696,_0x927a59,_0x4ccb61)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xa2dbe0=>{for(const _0x36b414 of this['editor']['editing']['view']['document']['roots'])_0x4ccb61?_0xa2dbe0['removeClass']('ck-editor__editable__overlay',_0x36b414):_0xa2dbe0['addClass']('ck-editor__editable__overlay',_0x36b414);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x51ee7a=>null!==_0x51ee7a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x16ef7f,_0x3b8007,_0x331292)=>_0x16ef7f&&_0x331292?_0x3b8007['changes']['getIndex'](_0x331292):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4fd678,_0x574be7)=>_0x4fd678?_0x574be7['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x276f8f);}['init'](){const _0x277f92=this['editor'],_0x4e5aee=new bt(_0x277f92,{'direction':'backward'}),_0xb84a9a=new bt(_0x277f92,{'direction':'forward'});(_0x277f92['commands']['add']('showPreviousChange',_0x4e5aee),_0x277f92['commands']['add']('showNextChange',_0xb84a9a),_0x277f92['commands']['add']('restoreRevision',new yt(_0x277f92)),this['on']('change:numberOfChanges',()=>{_0x4e5aee['refresh'](),_0xb84a9a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x277f92['enableReadOnlyMode']('revision-viewer'),_0x277f92['plugins']['has']('WidgetToolbarRepository'))&&_0x277f92['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3019e2){await this['loadRevisionData'](_0x3019e2);const _0x49eeb3={};for(const _0x42f227 in _0x3019e2['diffData']){if(_0x3019e2['diffData'][_0x42f227]['attachChange']&&!_0x3019e2['diffData'][_0x42f227]['attachChange']['isAttached'])continue;const _0x54bc17=this['_removeRevisionMarkers'](JSON['parse'](_0x3019e2['diffData'][_0x42f227]['insertions'])),_0x489995=this['editor']['editing']['view']['document'],_0x204556=new _0x4833c1(_0x489995,_0x54bc17['map'](_0x1aaa78=>this['_getViewObj'](_0x1aaa78)));this['editor']['data']['processor']['useFillerType']('marked'),_0x49eeb3[_0x42f227]=this['editor']['data']['processor']['toData'](_0x204556),this['editor']['data']['processor']['useFillerType']('default');}return _0x49eeb3;}async['getRevisionRootsAttributes'](_0x28776f){await this['loadRevisionData'](_0x28776f);const _0x427492={};for(const _0x43174d in _0x28776f['diffData'])_0x28776f['diffData'][_0x43174d]['attachChange']&&!_0x28776f['diffData'][_0x43174d]['attachChange']['isAttached']||(_0x427492[_0x43174d]=_0x28776f['diffData'][_0x43174d]['attributesAfter']||{});return _0x427492;}['_removeRevisionMarkers'](_0x1738cd){return(_0x1738cd=_0x1738cd['filter'](_0x3bd105=>!_0x3bd105['name']||'revision-start'!==_0x3bd105['name']&&'revision-end'!==_0x3bd105['name']))['forEach'](_0x26b757=>{'string'!=typeof _0x26b757&&(_0x26b757['children']=this['_removeRevisionMarkers'](_0x26b757['children']),_0x26b757['attributes']=_0x26b757['attributes']['filter'](_0x41dcc4=>!_0x41dcc4[0x0]['startsWith']('data-revision-')));}),_0x1738cd;}async['compare'](_0x1bf94e,_0xd3e591,_0x4329c8=!0x1){if(!this['isEnabled'])return;const _0x481aa7=this['diff'],_0x2be1f0=this['repository'],_0x576362='string'==typeof _0x1bf94e?_0x2be1f0['getRevision'](_0x1bf94e):_0x1bf94e,_0x2cb11a='string'==typeof _0xd3e591?_0x2be1f0['getRevision'](_0xd3e591):_0xd3e591,_0x5d6e1c=_0x576362['id'],_0x5a0be9=_0x2cb11a?_0x2cb11a['id']:null;if(!_0x4329c8&&this['diff']&&this['diff']['newRevisionId']===_0x5d6e1c&&this['diff']['oldRevisionId']===_0x5a0be9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x5d6e1c,_0x5a0be9);const _0x264e5f=this['_getRevisionsRange'](_0x576362,_0x2cb11a,!0x0)['map'](_0x431fe0=>this['loadRevisionData'](_0x431fe0));return _0x264e5f['push'](new Promise(_0x4eea36=>{setTimeout(_0x4eea36,0x14);})),Promise['all'](_0x264e5f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x7be1c9=this['_getDiff'](_0x5d6e1c,_0x5a0be9);for(const _0x54b90a of _0x7be1c9['changes'])this['_changeIdToChange']['set'](_0x54b90a['id'],_0x54b90a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x198a9d=>{for(const _0xcabfb of this['editor']['model']['document']['getRootNames']())_0x198a9d['detachRoot'](_0xcabfb);for(const _0xa434f0 of Object['keys'](_0x7be1c9['model'])){const _0x44faee=_0x198a9d['addRoot'](_0xa434f0);for(const _0x57475d of Object['keys'](_0x7be1c9['attributes'][_0xa434f0]))_0x198a9d['setAttribute'](_0x57475d,_0x7be1c9['attributes'][_0xa434f0][_0x57475d],_0x44faee);_0x198a9d['insert'](_0x7be1c9['model'][_0xa434f0],_0x44faee,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x7be1c9['changes'])),this['isReady']=!0x0;})['catch'](_0x498f6a=>{console['error'](_0x498f6a),this['_cleanUp'](),_0x481aa7&&(this['diff']=_0x481aa7),this['isReady']=!0x0;});}['addRevisionData'](_0x9aa945,_0x20abdb){const _0x382283=this['repository']['createRevision'](_0x9aa945);return _0x382283['on']('_update',(_0x56c4eb,_0x96a66b,_0x3d693c)=>_0x20abdb(_0x96a66b,_0x3d693c,_0x382283)),this['repository']['addRevision'](_0x382283),_0x382283;}['loadRevisionData'](_0x42947b){if(!_0x42947b||_0x42947b['diffData'])return Promise['resolve']();{const _0x28b187=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x28b187,'revisionId':_0x42947b['id']})['then'](_0x301714=>{_0x42947b['_update']({'diffData':_0x301714['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},_0x2bbe6d=>{for(const _0x37800d of this['editor']['model']['document']['getRootNames']())_0x2bbe6d['detachRoot'](_0x37800d);});}['_sortAndFilterDiffChanges'](_0x297f2){const _0x10125c=[],_0x3915d6=new Map();for(const _0x55c1a2 of this['editor']['model']['document']['getRootNames']()){const _0x5bcf50=this['editor']['editing']['view']['getDomRoot'](_0x55c1a2);if(!_0x5bcf50)continue;const _0x3be814=_0x5bcf50['getClientRects']()['item'](0x0);_0x3be814&&(_0x10125c['push'](_0x55c1a2),_0x3915d6['set'](_0x55c1a2,_0x3be814));}return _0x10125c['sort']((_0x3f811a,_0x3a5c11)=>{const _0x242912=_0x3915d6['get'](_0x3f811a),_0x5b7361=_0x3915d6['get'](_0x3a5c11);return _0x242912['y']-_0x5b7361['y']||_0x242912['x']-_0x5b7361['x'];}),(_0x297f2=_0x297f2['filter'](_0x187d0a=>_0x10125c['includes'](_0x187d0a['rootName'])))['sort']((_0x3d2702,_0x3d5aad)=>_0x10125c['indexOf'](_0x3d2702['rootName'])-_0x10125c['indexOf'](_0x3d5aad['rootName'])),_0x297f2;}['_makeTape'](_0xfcda5){const _0x333295=Array['from'](_0xfcda5['markers'])['filter'](([_0x185ba5,_0x46036c])=>_0x185ba5['startsWith']('revision:')&&!_0x46036c['isCollapsed']),_0x474f31=Array['from'](this['editor']['model']['createRangeIn'](_0xfcda5)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x333295['length'])for(const _0x1d3b4b of _0x474f31){const [_0x47232e,_0x40a640]=_0x333295[0x0],[,_0x4d6ffa,_0x2bc427]=_0x47232e['split'](':');if(_0x40a640['end']['isEqual'](_0x1d3b4b['nextPosition'])&&_0x333295['shift'](),(_0x1d3b4b['previousPosition']['isEqual'](_0x40a640['start'])||_0x1d3b4b['previousPosition']['isAfter'](_0x40a640['start']))&&('insertion'==_0x4d6ffa?_0x1d3b4b['isAdded']={'userId':_0x2bc427}:'deletion'==_0x4d6ffa&&(_0x1d3b4b['isRemoved']={'userId':_0x2bc427})),0x0==_0x333295['length'])break;}return _0x474f31;}['_refreshStartEndIndex'](_0x2ff1d0){const _0xa5cb1=new Map();for(let _0x126803=0x0;_0x126803<_0x2ff1d0['length'];_0x126803++)'text'===_0x2ff1d0[_0x126803]['type']?(_0x2ff1d0[_0x126803]['item']['startIndex']=_0x126803,_0x2ff1d0[_0x126803]['item']['endIndex']=_0x126803):('elementStart'===_0x2ff1d0[_0x126803]['type']?_0x2ff1d0[_0x126803]['item']['startIndex']=_0x126803:'elementEnd'===_0x2ff1d0[_0x126803]['type']&&(_0x2ff1d0[_0x126803]['item']['endIndex']=_0x126803),_0xa5cb1['set'](_0x2ff1d0[_0x126803]['id'],_0x126803));for(const _0x3fd35a of _0xa5cb1['values']())'elementStart'===_0x2ff1d0[_0x3fd35a]['type']?_0x2ff1d0[_0x3fd35a]['item']['endIndex']=_0xa5cb1['get'](_0x2ff1d0[_0x3fd35a]['pairId']):'elementEnd'===_0x2ff1d0[_0x3fd35a]['type']&&(_0x2ff1d0[_0x3fd35a]['item']['startIndex']=_0xa5cb1['get'](_0x2ff1d0[_0x3fd35a]['pairId']));}['_processTape'](_0x354f61){for(let _0x261b6a=0x0;_0x261b6a<_0x354f61['length'];_0x261b6a++){if('elementStart'===_0x354f61[_0x261b6a]['type'])_0x354f61[_0x261b6a]['item']['startIndex']=_0x261b6a;else{if('elementEnd'===_0x354f61[_0x261b6a]['type']){_0x354f61[_0x261b6a]['item']['endIndex']=_0x261b6a;const _0x28b58b=_0x354f61[_0x261b6a]['item']['startIndex'];_0x354f61[_0x28b58b]['pairId']=_0x354f61[_0x261b6a]['id'],_0x354f61[_0x261b6a]['pairId']=_0x354f61[_0x28b58b]['id'];}else _0x354f61[_0x261b6a]['item']['startIndex']=_0x261b6a,_0x354f61[_0x261b6a]['item']['endIndex']=_0x261b6a,_0x354f61[_0x261b6a]['pairId']=null;}_0x354f61[_0x261b6a]['markersStart']||(_0x354f61[_0x261b6a]['markersStart']=[],_0x354f61[_0x261b6a]['markersEnd']=[]);}}['_markInsertions'](_0x598f08,_0x43e6c5){const _0x296cab=_0x598f08['filter'](_0x1fccb3=>!_0x1fccb3['isAdded']);for(let _0x5e87c7=0x0;_0x5e87c7<_0x43e6c5['length'];_0x5e87c7++)_0x43e6c5[_0x5e87c7]['isAdded']&&(_0x296cab[_0x5e87c7]['isAdded']=_0x43e6c5[_0x5e87c7]['isAdded']);}['_makeModelFromViewString'](_0x7e8d2e){const _0x283a5f=JSON['parse'](_0x7e8d2e),_0xf75380=this['editor']['editing']['view']['document'],_0x42811a=new _0x4833c1(_0xf75380,_0x283a5f['map'](_0x427313=>this['_getViewObj'](_0x427313)));return this['editor']['data']['toModel'](_0x42811a);}['_getViewObj'](_0x4cc5a5){const _0x3b2f53=this['editor']['editing']['view']['document'];if('string'==typeof _0x4cc5a5)return new _0xd57083(_0x3b2f53,_0x4cc5a5);{const _0x5d64a6=_0x4cc5a5['children']['map'](_0x1bbedf=>this['_getViewObj'](_0x1bbedf));return new(Z[_0x4cc5a5['type']]||_0x2c4196)(_0x3b2f53,_0x4cc5a5['name'],_0x4cc5a5['attributes'],_0x5d64a6);}}['_getDiff'](_0x18c7dc,_0x439e9b=null){const _0x1beb89=this['repository']['getRevision'](_0x18c7dc),_0x27872b=_0x439e9b?this['repository']['getRevision'](_0x439e9b):null,_0x3dbdd2=this['_getRevisionsRange'](_0x1beb89,_0x27872b),_0x499c2b=_0x3dbdd2[_0x3dbdd2['length']-0x1],_0x3ad2c6=new Map(),_0x16af63={'model':{},'attributes':{},'changes':[]},_0x578150=new Set(),_0x2387b8=new Map();for(let _0x28b50a=_0x3dbdd2['length']-0x1;_0x28b50a>=0x0;_0x28b50a--){const _0x19b842=_0x3dbdd2[_0x28b50a];for(const _0x579c8c of Object['keys'](_0x19b842['diffData']))if(_0x19b842['diffData'][_0x579c8c]['attachChange']){const _0x24bf2e=_0x19b842['diffData'][_0x579c8c]['attachChange'];_0x24bf2e['isAttached']?(_0x578150['add'](_0x579c8c),_0x2387b8['has'](_0x579c8c)&&_0x2387b8['get'](_0x579c8c)['userId']==_0x24bf2e['userId']?_0x2387b8['delete'](_0x579c8c):_0x2387b8['set'](_0x579c8c,_0x24bf2e)):_0x2387b8['has'](_0x579c8c)?(_0x578150['delete'](_0x579c8c),_0x2387b8['delete'](_0x579c8c)):(_0x578150['add'](_0x579c8c),_0x2387b8['set'](_0x579c8c,_0x24bf2e));}else _0x578150['add'](_0x579c8c);}for(const _0x17f8b2 of _0x578150){const _0x3956d0=_0x2387b8['has'](_0x17f8b2)&&!_0x2387b8['get'](_0x17f8b2)['isAttached'];let _0x1ebb8d=_0x3956d0?_0x3dbdd2['length']-0x1:0x0;const _0x467f8c=_0x3956d0?-0x1:0x1;for(;_0x3dbdd2[_0x1ebb8d];){const _0x2a917f=_0x3dbdd2[_0x1ebb8d];if(_0x2a917f['diffData'][_0x17f8b2]){const _0x3e87a9=_0x3956d0?_0x2a917f['diffData'][_0x17f8b2]['attributesBefore']:_0x2a917f['diffData'][_0x17f8b2]['attributesAfter'];_0x16af63['attributes'][_0x17f8b2]=_0x3e87a9?_0x295472(_0x3e87a9):{};break;}_0x1ebb8d+=_0x467f8c;}}for(const _0x3bdb87 of _0x3dbdd2){_0x3bdb87['model']={};for(const _0x4bd6c2 of _0x3bdb87['authors'])_0x3ad2c6['set'](_0x4bd6c2['id'],_0x4bd6c2);for(const _0x544f46 of _0x578150){const _0x2c7004=_0x3bdb87['diffData'][_0x544f46]?_0x3bdb87['diffData'][_0x544f46]['insertions']:'[]',_0x483aac=_0x3bdb87['diffData'][_0x544f46]?_0x3bdb87['diffData'][_0x544f46]['deletions']:'[]';_0x3bdb87['model'][_0x544f46]={'insertions':this['_makeModelFromViewString'](_0x2c7004),'deletions':this['_makeModelFromViewString'](_0x483aac)};}}for(const _0x5d1d87 of _0x578150){let _0x427d9b=null,_0x74499a=0x0;const _0x4202f5=new Map(Array['from'](_0x1beb89['model'][_0x5d1d87]['insertions']['markers'])['filter'](([_0x328df5])=>!_0x328df5['startsWith']('revision:')));let _0x50b348=0x0;for(const _0x259823 of _0x3dbdd2){const _0x198d6f=this['_makeTape'](_0x259823['model'][_0x5d1d87]['insertions']);_0x259823==_0x1beb89?(_0x427d9b=_0x198d6f,_0x74499a=_0x427d9b['length'],_0x427d9b['forEach'](_0x508e01=>{_0x508e01['id']=_0x50b348++;}),this['_processTape'](_0x427d9b)):this['_markInsertions'](_0x427d9b,_0x198d6f);const _0x3ef541=_0x427d9b['filter'](_0x3d4985=>!_0x3d4985['isAdded'])['map'](_0x5030f9=>_0x5030f9['id']);let _0x589642=0x0;const _0x58790c=this['_makeTape'](_0x259823['model'][_0x5d1d87]['deletions']);_0x58790c['forEach'](_0x41d4cb=>{_0x41d4cb['isRemoved']?_0x41d4cb['id']=_0x74499a++:_0x41d4cb['id']=_0x3ef541[_0x589642++];}),this['_processTape'](_0x58790c),this['_setDistance'](_0x427d9b,'isAdded'),this['_setDistance'](_0x58790c,'isRemoved'),_0x259823==_0x1beb89&&this['_markMarkers'](_0x427d9b,_0x4202f5),_0x427d9b=this['_joinTapes'](_0x427d9b,_0x58790c),this['_refreshStartEndIndex'](_0x427d9b),this['_setDistance'](_0x427d9b,'isRemoved');}_0x427d9b=_0x427d9b['filter'](_0xce7c44=>!(_0xce7c44['isAdded']&&_0xce7c44['isRemoved']));const _0x19949b=new Map(_0x499c2b['model'][_0x5d1d87]['deletions']['markers']),_0x19dd8e=new Set(_0x4202f5['keys']());for(const _0x459230 of _0x19949b['keys']())_0x19dd8e['delete'](_0x459230);this['_markSuggestions'](_0x427d9b,_0x19dd8e),this['_fixObsoleteTags'](_0x427d9b),_0x427d9b=this['_removeMissingPairs'](_0x427d9b),_0x427d9b=this['_markMismatchedRemovedTags'](_0x427d9b),_0x427d9b=this['_removeUnsupportedChanges'](_0x427d9b);const {root:_0x212927,changes:_0x3a78aa}=this['_makeModelFromTape'](_0x427d9b,_0x3ad2c6,_0x5d1d87);_0x16af63['model'][_0x5d1d87]=_0x212927;const _0x3540e6=_0x2387b8['get'](_0x5d1d87);if(_0x3540e6){const _0x2b978a=_0x3ad2c6['get'](_0x3540e6['userId']),_0x1bc2bc=new r({'author':_0x2b978a,'type':_0x3540e6['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d1d87});_0x3a78aa['unshift'](_0x1bc2bc),_0x16af63['attributes'][_0x5d1d87]['revisionHistoryAttachChange']=_0x1bc2bc['id'];}_0x16af63['changes']=_0x16af63['changes']['concat'](_0x3a78aa);}return _0x16af63;}['_markMarkers'](_0x257b62,_0x2b768f){for(let _0x1d4892=0x0;_0x1d4892<_0x257b62['length'];_0x1d4892++)for(const [_0x50712c,_0x3b5094]of _0x2b768f)_0x3b5094['start']['isEqual'](_0x257b62[_0x1d4892]['previousPosition'])&&_0x257b62[_0x1d4892]['markersStart']['push'](_0x50712c),_0x3b5094['end']['isEqual'](_0x257b62[_0x1d4892]['nextPosition'])&&_0x257b62[_0x1d4892]['markersEnd']['push'](_0x50712c);}['_joinTapes'](_0x4d828d,_0x263598){let _0x564555=[],_0x32ca2e=0x0,_0x545e2a=0x0;for(;_0x32ca2e<_0x4d828d['length']||_0x545e2a<_0x263598['length'];){const _0x4011d4=_0x4d828d[_0x32ca2e]||{},_0x55d00e=_0x263598[_0x545e2a]||{};if(_0x4011d4['id']==_0x55d00e['id'])_0x32ca2e++,_0x545e2a++,_0x564555['push'](_0x4011d4);else{if(_0x55d00e['isRemoved']&&_0x4011d4['isAdded']){const {commonTape:_0x1fea78,iEnd:_0x2b3555,jEnd:_0x35795c}=this['_threeWayMerge'](_0x4d828d,_0x32ca2e,_0x263598,_0x545e2a);_0x564555=_0x564555['concat'](_0x1fea78),_0x32ca2e=_0x2b3555,_0x545e2a=_0x35795c;}else _0x55d00e['isRemoved']?(_0x545e2a++,_0x564555['push'](_0x55d00e)):(_0x32ca2e++,_0x564555['push'](_0x4011d4));}}return _0x564555;}['_markSuggestions'](_0x57bcaf,_0x4bd173){const _0x32cf2b=[];for(let _0x460be3=0x0;_0x460be3<_0x57bcaf['length'];_0x460be3++){for(let _0x3d4fa7=0x0;_0x3d4fa7<_0x57bcaf[_0x460be3]['markersStart']['length'];_0x3d4fa7++){const _0x563ec4=_0x57bcaf[_0x460be3]['markersStart'][_0x3d4fa7];if(!_0x4bd173['has'](_0x563ec4))continue;const {group:_0x5226b5,type:_0x53cb37,authorId:_0x2dd7c2}=_0x1d71f0(_0x563ec4);'revision-suggestion'!=_0x5226b5||'insertion'!=_0x53cb37&&'deletion'!=_0x53cb37||(_0x32cf2b['unshift']({'type':_0x53cb37,'name':_0x563ec4,'userId':_0x2dd7c2}),_0x57bcaf[_0x460be3]['markersStart']['splice'](_0x3d4fa7,0x1),_0x3d4fa7--);}_0x45504b(_0x57bcaf[_0x460be3]);for(let _0x18f018=0x0;_0x18f018<_0x57bcaf[_0x460be3]['markersEnd']['length'];_0x18f018++){const _0x526bdd=_0x57bcaf[_0x460be3]['markersEnd'][_0x18f018];if(!_0x4bd173['has'](_0x526bdd))continue;const {group:_0x5d4593,type:_0x144d85}=_0x1d71f0(_0x526bdd);if('revision-suggestion'!=_0x5d4593||'insertion'!=_0x144d85&&'deletion'!=_0x144d85)continue;_0x57bcaf[_0x460be3]['markersEnd']['splice'](_0x18f018,0x1),_0x18f018--;const _0x32fc79=_0x32cf2b['findIndex'](_0x562bb8=>_0x562bb8['name']==_0x526bdd);_0x32fc79>-0x1&&_0x32cf2b['splice'](_0x32fc79,0x1);}}function _0x1d71f0(_0x164c57){const _0x571db3=_0x164c57['split'](':');return{'group':_0x571db3[0x0],'type':_0x571db3[0x1],'subType':_0x571db3['length']>=0x5?_0x571db3[0x2]:null,'id':_0x571db3['length']<0x5?_0x571db3[0x2]:_0x571db3[0x3],'authorId':_0x571db3['length']<0x5?_0x571db3[0x3]:_0x571db3[0x4],'markerCount':0x6==_0x571db3['length']?_0x571db3[0x5]:null};}function _0x45504b(_0x2a3afb){for(let _0xbdb32e=0x0;_0xbdb32e<_0x32cf2b['length'];_0xbdb32e++){if(_0x2a3afb['isAdded']&&'insertion'==_0x32cf2b[_0xbdb32e]['type'])return _0x2a3afb['isAddSuggestion']=_0x32cf2b[_0xbdb32e],void delete _0x2a3afb['isAdded'];if(!_0x2a3afb['isAdded']&&!_0x2a3afb['isRemoved']&&'deletion'==_0x32cf2b[_0xbdb32e]['type'])return void(_0x2a3afb['isRemoveSuggestion']=_0x32cf2b[_0xbdb32e]);}}}['_setDistance'](_0x451955,_0x2bdbb7){let _0x1a066f=0x0,_0x52bcd2=!0x1;const _0x49ee95=new Map();for(const _0x4fe36a of _0x451955)_0x4fe36a[_0x2bdbb7]?_0x52bcd2&&(_0x1a066f++,_0x52bcd2=!0x1):(_0x1a066f++,_0x52bcd2=!0x0),_0x49ee95['set'](_0x4fe36a['id'],_0x1a066f);for(let _0x5b6132=0x0;_0x5b6132<_0x451955['length'];_0x5b6132++){if('isRemoved'==_0x2bdbb7&&_0x451955[_0x5b6132]['isAdded']||'isAdded'==_0x2bdbb7&&_0x451955[_0x5b6132]['isRemoved'])continue;if('text'==_0x451955[_0x5b6132]['type']){_0x451955[_0x5b6132]['distance']=0x0;continue;}const _0x547043=_0x49ee95['get'](_0x451955[_0x5b6132]['pairId']),_0x1fbfe6=_0x49ee95['get'](_0x451955[_0x5b6132]['id']);_0x451955[_0x5b6132]['distance']=_0x547043-_0x1fbfe6;}}['_getRevisionsRange'](_0x5e62bd,_0x1d9637,_0x480789=!0x1){const _0x5b0ff8=[];let _0x5c21ea=this['repository']['getIndex'](_0x5e62bd),_0x4427d8=this['repository']['getIndex'](_0x1d9637);for(-0x1==_0x4427d8&&(_0x4427d8=this['repository']['_revisions']['length'],_0x480789=!0x1);_0x5c21ea<_0x4427d8;)_0x5b0ff8['push'](this['repository']['getRevision'](_0x5c21ea)),_0x5c21ea++;return _0x480789&&_0x5b0ff8['push'](this['repository']['getRevision'](_0x5c21ea)),_0x5b0ff8;}['_threeWayMerge'](_0x5976c4,_0x2fe1ec,_0x475c73,_0x3cf5c8){const _0x32e60e=this['editor']['model']['schema'];let _0x58643c=_0x2fe1ec;for(;_0x5976c4[_0x58643c]&&_0x5976c4[_0x58643c]['isAdded'];)_0x58643c++;let _0x462413=_0x3cf5c8;for(;_0x475c73[_0x462413]&&_0x475c73[_0x462413]['isRemoved'];)_0x462413++;_0x43bca3(_0x5976c4,_0x2fe1ec,_0x58643c),_0x43bca3(_0x475c73,_0x3cf5c8,_0x462413);const _0xd7db85=_0x475c73['slice'](_0x3cf5c8,_0x462413)['concat'](_0x5976c4['slice'](_0x2fe1ec,_0x58643c));return _0xd7db85['sort']((_0x52bd34,_0x41d8d3)=>_0x52bd34['side']!=_0x41d8d3['side']?_0x52bd34['side']-_0x41d8d3['side']:_0x52bd34['level']!=_0x41d8d3['level']?_0x52bd34['level']-_0x41d8d3['level']:_0x52bd34['distance']!=_0x41d8d3['distance']?_0x41d8d3['distance']-_0x52bd34['distance']:!!_0x52bd34['isAdded']!=!!_0x41d8d3['isAdded']?-0x1==_0x52bd34['side']||0x0==_0x52bd34['side']?_0x52bd34['isAdded']?-0x1:0x1:_0x52bd34['isAdded']?0x1:-0x1:_0x52bd34['index']-_0x41d8d3['index']),{'commonTape':_0xd7db85,'iEnd':_0x58643c,'jEnd':_0x462413};function _0x43bca3(_0x18ca20,_0x222bd1,_0x22c3b9){let _0x4e6231=-0x1,_0x53cafa=Number['POSITIVE_INFINITY'],_0xf1a558=!0x0;for(let _0x55c1f4=_0x222bd1;_0x55c1f4<_0x22c3b9;_0x55c1f4++)if(_0x32e60e['isInline'](_0x18ca20[_0x55c1f4]['item'])||(_0xf1a558=!0x1),_0x18ca20[_0x55c1f4]['item']['startIndex']<_0x222bd1&&(_0x4e6231=_0x55c1f4),_0x18ca20[_0x55c1f4]['item']['endIndex']>=_0x22c3b9){_0x53cafa=_0x55c1f4;break;}_0xf1a558&&(_0x4e6231=_0x22c3b9-0x1);for(let _0x3ea76d=_0x222bd1;_0x3ea76d<_0x22c3b9;_0x3ea76d++)_0x18ca20[_0x3ea76d]['side']=_0x3ea76d<=_0x4e6231?-0x1:_0x3ea76d<_0x53cafa?0x0:0x1,_0x18ca20[_0x3ea76d]['index']=_0x3ea76d;let _0x4a5a12=0x0;for(let _0x549d25=_0x222bd1;_0x549d25<=_0x4e6231;_0x549d25++)0x0==_0x18ca20[_0x549d25]['distance']?_0x18ca20[_0x549d25]['level']=_0x4a5a12:(_0x4a5a12++,_0x18ca20[_0x549d25]['level']=_0x4a5a12,_0x4a5a12++);for(let _0x1f0f0e=_0x222bd1;_0x1f0f0e<_0x22c3b9;_0x1f0f0e++)0x0==_0x18ca20[_0x1f0f0e]['side']&&(_0x18ca20[_0x1f0f0e]['level']=_0x4a5a12);_0x4a5a12=0x0;for(let _0x17824b=_0x22c3b9-0x1;_0x17824b>=_0x53cafa;_0x17824b--)0x0==_0x18ca20[_0x17824b]['distance']?_0x18ca20[_0x17824b]['level']=_0x4a5a12:(_0x4a5a12--,_0x18ca20[_0x17824b]['level']=_0x4a5a12,_0x4a5a12--);}}['_fixObsoleteTags'](_0x4a3208){const _0x181a91=new Map(),_0x44e74d=this['editor']['model']['schema'];for(let _0x205369=0x1;_0x205369<_0x4a3208['length'];_0x205369++){let _0x32c756,_0x552ba3,_0x4dea1d;const _0x118765=_0x4a3208[_0x205369],_0x253c04=_0x4a3208[_0x205369-0x1];if('text'==_0x118765['type'])continue;if(_0x118765['type']!=_0x253c04['type'])continue;if(!_0x44e74d['isBlock'](_0x253c04['item'])||_0x44e74d['isLimit'](_0x253c04['item']))continue;if(!_0x44e74d['isBlock'](_0x118765['item'])||_0x44e74d['isLimit'](_0x118765['item']))continue;if((_0x4a3208[_0x205369]['isAdded']||_0x4a3208[_0x205369]['isAddSuggestion'])&&_0x4a3208[_0x205369-0x1]['isRemoved'])_0x32c756=_0x4a3208[_0x205369],_0x552ba3=_0x4a3208[_0x205369-0x1],_0x4dea1d=_0x205369-0x1;else{if(!_0x4a3208[_0x205369]['isRemoved']||!_0x4a3208[_0x205369-0x1]['isAdded']&&!_0x4a3208[_0x205369-0x1]['isAddSuggestion'])continue;_0x32c756=_0x4a3208[_0x205369-0x1],_0x552ba3=_0x4a3208[_0x205369],_0x4dea1d=_0x205369;}const _0x224d41=_0x32c756['level']==_0x552ba3['level'],_0x1a7f7e=Math['abs'](_0x32c756['level'])<Math['abs'](_0x552ba3['level'])&&0x0==_0x552ba3['distance'];(_0x224d41||_0x1a7f7e)&&(_0x181a91['set'](_0x552ba3['id'],_0x32c756['id']),_0x4a3208['splice'](_0x4dea1d,0x1),_0x205369--,_0x32c756['isAdded']=!0x1);}for(let _0xab0966=0x0;_0xab0966<_0x4a3208['length'];_0xab0966++)_0x181a91['has'](_0x4a3208[_0xab0966]['pairId'])&&(_0x4a3208[_0xab0966]['pairId']=_0x181a91['get'](_0x4a3208[_0xab0966]['pairId']));}['_removeMissingPairs'](_0x4e2ddc){const _0x517902=new Set(_0x4e2ddc['map'](_0xc0b0a7=>_0xc0b0a7['id']));for(let _0x51a75e=0x0;_0x51a75e<_0x4e2ddc['length'];_0x51a75e++)_0x517902['has'](_0x4e2ddc[_0x51a75e]['pairId'])||0x0==_0x4e2ddc[_0x51a75e]['distance']||(_0x4e2ddc[_0x51a75e]['isIncorrect']=!0x0);return _0x4e2ddc['filter'](_0x10a331=>!_0x10a331['isIncorrect']);}['_markMismatchedRemovedTags'](_0x137910){const _0x3cb612=new Set();for(let _0x3916ed=0x0;_0x3916ed<_0x137910['length'];_0x3916ed++){if(_0x3cb612['has'](_0x137910[_0x3916ed]['id'])&&_0x137910[_0x3916ed]['isRemoved']&&(_0x137910[_0x3916ed]['isIncorrect']=!0x0),_0x137910[_0x3916ed]['isIncorrect'])continue;if(0x0==_0x137910[_0x3916ed]['distance'])continue;if('elementStart'!=_0x137910[_0x3916ed]['type'])continue;if(null==_0x137910[_0x3916ed]['pairId'])continue;let _0x4faded=_0x3916ed+0x1,_0x3ca314=0x0;for(;_0x137910[_0x4faded]['id']!=_0x137910[_0x3916ed]['pairId'];)'elementStart'==_0x137910[_0x4faded]['type']?_0x3ca314++:'elementEnd'==_0x137910[_0x4faded]['type']&&_0x3ca314--,_0x4faded++;if(0x0!=_0x3ca314){if(_0x137910[_0x3916ed]['isRemoved'])_0x137910[_0x3916ed]['isIncorrect']=!0x0;else{for(;_0x4faded!=_0x3916ed;)_0x137910[_0x4faded]['isRemoved']&&0x0!=_0x137910[_0x4faded]['distance']&&(_0x137910[_0x4faded]['isIncorrect']=!0x0,_0x3cb612['add'](_0x137910[_0x4faded]['pairId'])),_0x4faded--;}}}return _0x137910['filter'](_0x4b9710=>!_0x4b9710['isIncorrect']);}['_removeUnsupportedChanges'](_0x2d2e39){const _0x4fed9c=this['editor']['model']['schema'];for(let _0xede69e=0x0;_0xede69e<_0x2d2e39['length'];_0xede69e++){if(!(_0x2d2e39[_0xede69e]['isAdded']||_0x2d2e39[_0xede69e]['isAddSuggestion']||_0x2d2e39[_0xede69e]['isRemoved']||_0x2d2e39[_0xede69e]['isRemoveSuggestion']))continue;if(0x0==_0x2d2e39[_0xede69e]['distance'])continue;const _0x493aeb=_0x2d2e39[_0xede69e]['item'];_0x4fed9c['isBlock'](_0x493aeb)||_0x4fed9c['isLimit'](_0x493aeb)||(_0x2d2e39[_0xede69e]['isAdded']&&delete _0x2d2e39[_0xede69e]['isAdded'],_0x2d2e39[_0xede69e]['isAddSuggestion']&&delete _0x2d2e39[_0xede69e]['isAddSuggestion'],_0x2d2e39[_0xede69e]['isRemoveSuggestion']&&delete _0x2d2e39[_0xede69e]['isRemoveSuggestion'],_0x2d2e39[_0xede69e]['isRemoved']&&(_0x2d2e39[_0xede69e]['isIncorrect']=!0x0));}return _0x2d2e39['filter'](_0x196297=>!_0x196297['isIncorrect']);}['_makeModelFromTape'](_0x3aaf89,_0x2630d9,_0x475fb6){const _0xdb00a4=new wt(),_0x3b3af9=[],_0x2a1b51=new Map(),_0x1c9470=this['editor']['model'],_0x372309=_0x1c9470['schema'],_0x274d50=[_0xdb00a4],_0x114564={},_0x491bd7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3808d4=null;const _0x34af5f=[0x0];for(let _0x2f1d0b=0x0;_0x2f1d0b<_0x3aaf89['length'];_0x2f1d0b++)if('elementStart'===_0x3aaf89[_0x2f1d0b]['type']){_0x3aaf89[_0x2f1d0b]['previousPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f);const _0x129676=new ft(_0x3aaf89[_0x2f1d0b]['item']['name'],_0x3aaf89[_0x2f1d0b]['item']['getAttributes']());_0x274d50[0x0]['_appendChild'](_0x129676),_0x34af5f['push'](0x0),_0x274d50['unshift'](_0x129676),_0x3aaf89[_0x2f1d0b]['nextPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f);}else'elementEnd'===_0x3aaf89[_0x2f1d0b]['type']?(_0x274d50['shift'](),_0x3aaf89[_0x2f1d0b]['previousPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f),_0x34af5f['pop'](),_0x34af5f[_0x34af5f['length']-0x1]++,_0x3aaf89[_0x2f1d0b]['nextPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f)):(_0x3aaf89[_0x2f1d0b]['previousPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f),_0x3808d4?_0x3808d4['_data']+=_0x3aaf89[_0x2f1d0b]['item']['data']:_0x3808d4=new _t(_0x3aaf89[_0x2f1d0b]['item']['data'],_0x3aaf89[_0x2f1d0b]['item']['getAttributes']()),_0x3aaf89[_0x2f1d0b+0x1]&&'text'===_0x3aaf89[_0x2f1d0b+0x1]['type']&&_0x1082d1(_0x3808d4,_0x3aaf89[_0x2f1d0b+0x1]['item'])||(_0x274d50[0x0]['_appendChild'](_0x3808d4),_0x3808d4=null),_0x34af5f[_0x34af5f['length']-0x1]+=_0x3aaf89[_0x2f1d0b]['item']['offsetSize'],_0x3aaf89[_0x2f1d0b]['nextPosition']=_0x1c9470['createPositionFromPath'](_0xdb00a4,_0x34af5f));for(let _0x2f07ee=0x0;_0x2f07ee<_0x3aaf89['length'];_0x2f07ee++){const _0x499324=_0x3aaf89[_0x2f07ee]['previousPosition'],_0x135cc9=_0x3aaf89[_0x2f07ee]['nextPosition'];for(const _0x13f00a of _0x3aaf89[_0x2f07ee]['markersStart'])_0x2a1b51['set'](_0x13f00a,{'start':_0x499324,'end':null});_0x4bc19d('isRemoveSuggestion',_0x2f07ee,_0x499324,_0x135cc9),_0x4bc19d('isAddSuggestion',_0x2f07ee,_0x499324,_0x135cc9),_0x4bc19d('isRemoved',_0x2f07ee,_0x499324,_0x135cc9),_0x4bc19d('isAdded',_0x2f07ee,_0x499324,_0x135cc9);for(const _0x128f8e of _0x3aaf89[_0x2f07ee]['markersEnd']){_0x2a1b51['get'](_0x128f8e)['end']=_0x135cc9;}}for(const [_0x55b556,_0x2c481c]of _0x2a1b51){const _0x483481=this['editor']['model']['createRange'](_0x2c481c['start'],_0x2c481c['end']);_0xdb00a4['markers']['set'](_0x55b556,_0x483481);}return _0x3b3af9['sort']((_0x48ea01,_0x2b7795)=>{const _0x3cac0e=_0xdb00a4['markers']['get']('revision:'+_0x48ea01['id']),_0x773f7=_0xdb00a4['markers']['get']('revision:'+_0x2b7795['id']);return _0x3cac0e['start']['isBefore'](_0x773f7['start'])?-0x1:_0x3cac0e['start']['isAfter'](_0x773f7['start'])?0x1:_0x3cac0e['end']['isBefore'](_0x773f7['end'])?-0x1:_0x3cac0e['end']['isAfter'](_0x773f7['end'])?0x1:'add'===_0x48ea01['type']?-0x1:0x1;}),{'root':_0xdb00a4,'changes':_0x3b3af9};function _0x4bc19d(_0x255722,_0x343552,_0x509cfd,_0x5e2c57){const _0x44de08=!!_0x3aaf89[_0x343552][_0x255722],_0x4b3dd1=_0x44de08?_0x3aaf89[_0x343552][_0x255722]['userId']:null,_0x4f3e11=_0x343552===_0x3aaf89['length']-0x1,_0x35a031=_0x491bd7[_0x255722][0x0],_0x553602=_0x372309['isObject'](_0x3aaf89[_0x343552]['item']);!_0x114564[_0x255722]&&_0x44de08?_0x114564[_0x255722]={'start':_0x509cfd,'tapeItem':_0x3aaf89[_0x343552],'userId':_0x4b3dd1,'type':_0x255722}:_0x114564[_0x255722]&&!_0x44de08?(_0x114564[_0x255722]['end']=_0x509cfd,_0x2c50ce(_0x114564[_0x255722]),_0x114564[_0x255722]=null):_0x114564[_0x255722]&&_0x44de08&&_0x114564[_0x255722]['userId']!==_0x4b3dd1&&(_0x114564[_0x255722]['end']=_0x509cfd,_0x35a031&&_0x35a031['userId']===_0x114564[_0x255722]['userId']||_0x2c50ce(_0x114564[_0x255722]),_0x114564[_0x255722]={'start':_0x509cfd,'tapeItem':_0x3aaf89[_0x343552],'userId':_0x4b3dd1,'type':_0x255722}),_0x114564[_0x255722]&&_0x553602&&('elementStart'!==_0x3aaf89[_0x343552]['type']||_0x35a031&&_0x35a031['userId']===_0x4b3dd1||_0x491bd7[_0x255722]['unshift']({'userId':_0x4b3dd1,'object':_0x3aaf89[_0x343552]['item'],'change':_0x114564[_0x255722]}),'elementEnd'===_0x3aaf89[_0x343552]['type']&&_0x35a031&&_0x35a031['object']===_0x3aaf89[_0x343552]['item']&&(_0x491bd7[_0x255722]['shift'](),_0x114564[_0x255722]=_0x35a031['change'])),_0x114564[_0x255722]&&_0x4f3e11&&(_0x114564[_0x255722]['end']=_0x5e2c57,_0x2c50ce(_0x114564[_0x255722]),_0x114564[_0x255722]=null);}function _0x2c50ce({start:_0x1e6024,end:_0x23d7ef,tapeItem:_0x5f5417,userId:_0x23837e,type:_0x5bed2d}){const _0x2b6bba=_0x5f5417['item'],_0xa5ff27=_0x1c9470['schema']['isBlock'](_0x2b6bba)&&!_0x1c9470['schema']['isLimit'](_0x2b6bba),_0x4a5556=_0x1e6024['nodeAfter']==_0x23d7ef['parent']&&_0x23d7ef['isAtStart'];if(_0xa5ff27&&_0x4a5556)return;const _0x57d3f7=_0x1c9470['createRange'](_0x1e6024,_0x23d7ef),_0x185204=_0x2630d9['get'](_0x23837e),_0x150e21=new r({'author':_0x185204,'type':'isAdded'==_0x5bed2d||'isAddSuggestion'==_0x5bed2d?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5bed2d||'isRemoveSuggestion'==_0x5bed2d},'createdAt':new Date(),'rootName':_0x475fb6});_0x3b3af9['push'](_0x150e21),_0xdb00a4['markers']['set']('revision:'+_0x150e21['id'],_0x57d3f7);}function _0x1082d1(_0x15b065,_0x4b98c5){const _0x245d9f=_0x15b065['getAttributes'](),_0x304056=_0x4b98c5['getAttributes']();for(const _0x49bdb6 of _0x245d9f){if(_0x49bdb6[0x1]!==_0x4b98c5['getAttribute'](_0x49bdb6[0x0]))return!0x1;_0x304056['next']();}return _0x304056['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3f34e1=>{const _0x5e0c66=_0x3f34e1['markerName']['split'](':')[0x1],_0x565b66=this['_getChangeFromId'](_0x5e0c66);if(!_0x565b66)return null;const _0x3ece90='add'==_0x565b66['type']?'insertion':'deletion',_0x2cd11a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3ece90];return _0x565b66['data']['isSuggestion']&&_0x2cd11a['push']('ck-suggestion-marker-'+_0x3ece90+'-new'),this['activeChange']==_0x565b66&&_0x2cd11a['push']('ck-suggestion-marker--active'),{'classes':_0x2cd11a,'attributes':{'data-change-id':_0x5e0c66}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x3abe2e=>{_0x3abe2e['on']('element:pre',(_0x468efd,_0x14a68f,_0x3112b8)=>{const _0x3279da=_0x14a68f['viewItem']['getChild'](0x0);if(!_0x3279da||!_0x3279da['is']('element','code'))return;if(!_0x3112b8['consumable']['consume'](_0x3279da,{'attributes':['vid_start','vid_end']}))return;const _0x5aaf4b=_0x14a68f['modelRange']['start']['nodeAfter'];_0x3112b8['writer']['setAttribute']('vid_start',_0x3279da['getAttribute']('vid_start'),_0x5aaf4b),_0x3112b8['writer']['setAttribute']('vid_end',_0x3279da['getAttribute']('vid_end'),_0x5aaf4b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x193fd7=>{_0x193fd7['on']('element',(_0x22d3d6,_0x397cec,_0x74f73d)=>{if(!_0x74f73d['consumable']['consume'](_0x397cec['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x397cec['modelRange']['isCollapsed'])return;const _0x1dc4cb=_0x397cec['modelRange']['start']['nodeAfter'];_0x1dc4cb['hasAttribute']('vid_start')||_0x1dc4cb['hasAttribute']('vid')||(_0x74f73d['writer']['setAttribute']('vid_start',_0x397cec['viewItem']['getAttribute']('vid_start'),_0x1dc4cb),_0x74f73d['writer']['setAttribute']('vid_end',_0x397cec['viewItem']['getAttribute']('vid_end'),_0x1dc4cb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x40d1a8=>_0x40d1a8['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x368526,[,_0x2f0691])=>{['vid_start','vid_end','vid']['includes'](_0x2f0691)&&(_0x368526['return']=!0x0,_0x368526['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x13e606=>{_0x13e606['on']('attribute:vid',(_0x68016c,_0x10ff5e,_0x22bce0)=>{if('\x20'!=_0x10ff5e['item']['data']||_0x10ff5e['item']['parent']['maxOffset']>0x1)return;if(!_0x22bce0['consumable']['consume'](_0x10ff5e['item'],_0x68016c['name']))return;const _0x5b43dd=_0x22bce0['writer'],_0x37672e=_0x22bce0['mapper']['toViewRange'](_0x10ff5e['range']);_0x5b43dd['wrap'](_0x37672e,_0x5b43dd['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x9c69a4){const _0x1dcde9=_0x9c69a4['plugins']['get']('RevisionViewer');return(_0x321421,_0x73afe2,_0x533549)=>{const _0x2ccabf=_0x73afe2['markerName']['split'](':')[0x1],_0x36bbfa=_0x1dcde9['_getChangeFromId'](_0x2ccabf);if(!_0x36bbfa)return null;const _0x4f48c7='add'==_0x36bbfa['type']?'split':'merge';if(!_0x533549['consumable']['test'](_0x73afe2['markerRange'],_0x321421['name']))return;const _0x2fc0b8=_0x73afe2['markerRange']['getWalker'](),_0x1ef924=_0x73afe2['markerRange']['start'],_0x5eea7b=_0x9c69a4['model']['schema'];let _0x27345c=null,_0x96f11f=null,_0x12f46e=!0x1,_0x54be47=!0x1;for(const _0x5b547a of _0x2fc0b8){const _0x5f26a2=_0x5b547a['item'];_0x12f46e=_0x12f46e||_0x5eea7b['isContent'](_0x5f26a2);const _0x3606eb=_0x533549['mapper']['toViewElement'](_0x5f26a2);if(_0x3606eb&&_0x3606eb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b547a['type']&&(_0x5eea7b['isBlock'](_0x5f26a2)&&!_0x5eea7b['isLimit'](_0x5f26a2)&&(_0x5f26a2['nextSibling']||_0x1ef924['isAtEnd']?_0x27345c&&_0x27345c['parent']==_0x5f26a2||(_0x27345c=_0x5f26a2,_0x229a75(_0x5b547a['previousPosition']),_0x54be47=!0x0):_0x96f11f=_0x96f11f||_0x5b547a['previousPosition']));}function _0x229a75(_0x12b5d7){const _0x34387f=_0x533549['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f48c7}),_0x41ce10=_0x533549['mapper']['toViewPosition'](_0x12b5d7);_0x36bbfa['data']['isSuggestion']&&_0x533549['writer']['addClass']('ck-suggestion-marker-'+_0x4f48c7+'-new',_0x34387f),_0x1dcde9['activeChange']==_0x36bbfa&&_0x533549['writer']['addClass']('ck-suggestion-marker--active',_0x34387f),_0x533549['writer']['insert'](_0x41ce10,_0x34387f),_0x533549['mapper']['bindElementToMarker'](_0x34387f,_0x73afe2['markerName']);}_0x12f46e||_0x54be47||!_0x96f11f||_0x229a75(_0x96f11f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4128f0,_0x22bc93,_0x403402)=>{const _0x1de816=_0x403402['mapper']['markerNameToElements'](_0x22bc93['markerName']);if(_0x1de816){for(const _0x2d4921 of _0x1de816)(_0x2d4921['hasClass']('ck-suggestion-marker-split')||_0x2d4921['hasClass']('ck-suggestion-marker-merge'))&&(_0x403402['mapper']['unbindElementFromMarkerName'](_0x2d4921,_0x22bc93['markerName']),_0x403402['writer']['remove'](_0x2d4921));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x3e5661,_0x138d70,_0x209b09)=>{const _0x4f9f9c=_0x138d70['markerName']['split'](':')[0x1],_0x175451=this['_getChangeFromId'](_0x4f9f9c);if(!_0x175451)return null;const _0x6a61ee='add'==_0x175451['type']?'split':'merge';if(_0x209b09['consumable']['test'](_0x138d70['markerRange'],_0x3e5661['name']))for(const _0x468ae3 of _0x138d70['markerRange']['getItems']()){if(!_0x468ae3['is']('element','softBreak'))continue;const _0x2344bd=_0x209b09['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6a61ee}),_0x69b92e=_0x209b09['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x468ae3));_0x175451['data']['isSuggestion']&&_0x209b09['writer']['addClass']('ck-suggestion-marker-'+_0x6a61ee+'-new',_0x2344bd),this['activeChange']==_0x175451&&_0x209b09['writer']['addClass']('ck-suggestion-marker--active',_0x2344bd),_0x209b09['writer']['insert'](_0x69b92e,_0x2344bd),_0x209b09['mapper']['bindElementToMarker'](_0x2344bd,_0x138d70['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x20d1ed=>{for(const _0x314768 of this['editor']['model']['document']['getRootNames']()){const _0x42097c=this['editor']['model']['document']['getRoot'](_0x314768),_0xc51b24=this['editor']['editing']['view']['document']['getRoot'](_0x314768);if(_0xc51b24){const _0x1583d6=_0x42097c['getAttribute']('revisionHistoryAttachChange');if(_0x20d1ed['removeAttribute']('data-change-id',_0xc51b24),_0x20d1ed['removeClass']('ck-revision-history-root-add',_0xc51b24),_0x20d1ed['removeClass']('ck-revision-history-root-remove',_0xc51b24),_0x20d1ed['removeClass']('ck-revision-history-root--active',_0xc51b24),_0x1583d6){const _0x2db85a=this['_getChangeFromId'](_0x1583d6);if(!_0x2db85a)return null;_0x20d1ed['setAttribute']('data-change-id',_0x1583d6,_0xc51b24),_0x20d1ed['addClass']('ck-revision-history-root-'+_0x2db85a['type'],_0xc51b24),this['activeChange']==_0x2db85a&&_0x20d1ed['addClass']('ck-revision-history-root--active',_0xc51b24);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x22583e=>'revision-comment:'+_0x22583e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5ba6d8=>'revision-suggestion:'+_0x5ba6d8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x15d4bf=>({'name':'suggestion:'+_0x15d4bf,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2fe35b=>{const _0x525ee6=_0x2fe35b['markerName']['split'](':')[0x1];return'insertion'!=_0x525ee6&&'deletion'!=_0x525ee6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x525ee6]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x31a284,_0x578ccf,_0x5d85cc)=>{const _0x3980b7=_0x5d85cc['mapper']['markerNameToElements'](_0x578ccf['markerName']);if(_0x3980b7){for(const _0x5c88fc of _0x3980b7)_0x5c88fc['is']('uiElement')&&(_0x5d85cc['mapper']['unbindElementFromMarkerName'](_0x5c88fc,_0x578ccf['markerName']),_0x5d85cc['writer']['remove'](_0x5c88fc));}},{'priority':'high'});}['_getChangeFromId'](_0x1b01cb){return this['_changeIdToChange']['get'](_0x1b01cb);}['_getViewForChange'](_0x439308){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x439308),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5e4c9e,_0x535177,_0x474b19,_0x3ef1ed)=>{_0x3ef1ed&&this['_balloon']['remove'](_0x3ef1ed),_0x474b19&&(this['_balloon']['add']({'view':_0x474b19,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xe10cb0=this['editor']['editing'],_0x2ab02d=this['_getChangeFromId'](_0x474b19['changeId']);let _0x3cd958;if(_0x2ab02d['data']['isOnRoot']){const _0x55d641=_0xe10cb0['view']['getDomRoot'](_0x2ab02d['rootName']);_0x3cd958=Array['from'](_0x55d641['getClientRects']());}else{const _0x5dfe50=this['editor']['model']['markers']['get']('revision:'+_0x474b19['changeId']);_0x3cd958=Array['from'](_0xe10cb0['mapper']['markerNameToElements'](_0x5dfe50['name']))['map'](_0x256d3c=>_0xe10cb0['view']['domConverter']['mapViewToDom'](_0x256d3c))['map'](_0x2e1cb3=>Array['from'](_0x2e1cb3['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3cd958[0x0];return _0x3cd958['find'](_0x59021b=>_0x59021b['top']-0x3<=this['_activeViewTarget']['y']&&_0x59021b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x59021b['left']-0x3<=this['_activeViewTarget']['x']&&_0x59021b['right']+0x3>=this['_activeViewTarget']['x'])||_0x3cd958[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3bb7bf,_0x107390,_0x446a6b,_0x3b9759)=>{this['activeView']=_0x446a6b?this['_getViewForChange'](_0x446a6b):null,this['editor']['model']['change'](()=>{const _0x4cb634=this['editor']['editing'];_0x3b9759&&(_0x3b9759['data']['isOnRoot']?_0x4cb634['view']['change'](_0x226984=>{_0x226984['removeClass']('ck-revision-history-root--active',_0x4cb634['view']['document']['getRoot'](_0x3b9759['rootName']));}):_0x4cb634['reconvertMarker']('revision:'+_0x3b9759['id'])),_0x446a6b&&(_0x446a6b['data']['isOnRoot']?_0x4cb634['view']['change'](_0x4e1381=>{_0x4e1381['addClass']('ck-revision-history-root--active',_0x4cb634['view']['document']['getRoot'](_0x446a6b['rootName']));}):_0x4cb634['reconvertMarker']('revision:'+_0x446a6b['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3bae6c,_0x11c7bc)=>{if(this['activeChange'])return;const _0x34b2f9=this['_findChangeIdFromDomTarget'](_0x11c7bc['target']),_0x31ba0f=this['_changeIdToChange']['get'](_0x34b2f9);_0x31ba0f?(this['_activeViewTarget']={'x':_0x11c7bc['domEvent']['x'],'y':_0x11c7bc['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x31ba0f)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0xa18566,_0x4bdd74)=>{const _0x928a11=this['_findChangeIdFromDomTarget'](_0x4bdd74['target']),_0x373308=this['_changeIdToChange']['get'](_0x928a11);_0x373308?(this['_activeViewTarget']={'x':_0x4bdd74['domEvent']['x'],'y':_0x4bdd74['domEvent']['y']},_0x373308===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x373308):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x291ebb){do{const _0x1352c7=_0x291ebb['getAttribute']('data-change-id');if(_0x1352c7)return _0x1352c7;_0x291ebb=_0x291ebb['parent'];}while(_0x291ebb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x43b56d=>{for(const _0x4f22f8 of this['editor']['model']['markers'])_0x43b56d['removeMarker'](_0x4f22f8);});}}function tt(_0x403237,_0x2b380f){return(_0x157b12,_0x160c7a,_0x3011ca)=>{if(!_0x3011ca['consumable']['test'](_0x160c7a['markerRange'],_0x157b12['name']))return;const _0x4c93d4=_0x160c7a['markerRange']['getWalker'](),_0x1f50e3=_0x160c7a['markerRange']['start'],_0x2a78cb=_0x403237['model']['schema'];let _0x4e4ecf=null,_0x35267c=null,_0x1d6c2c=!0x1,_0x52e107=!0x1;for(const _0x2e6428 of _0x4c93d4){const _0x2e0528=_0x2e6428['item'];_0x1d6c2c=_0x1d6c2c||_0x2a78cb['isContent'](_0x2e0528);const _0x44a668=_0x3011ca['mapper']['toViewElement'](_0x2e0528);if(_0x44a668&&_0x44a668['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e6428['type']&&(_0x2a78cb['isBlock'](_0x2e0528)&&!_0x2a78cb['isLimit'](_0x2e0528)&&(_0x2e0528['nextSibling']||_0x1f50e3['isAtEnd']?_0x4e4ecf&&_0x4e4ecf['parent']==_0x2e0528||(_0x4e4ecf=_0x2e0528,_0x105347(_0x2e6428['previousPosition']),_0x52e107=!0x0):_0x35267c=_0x35267c||_0x2e6428['previousPosition']));}function _0x105347(_0x23eae6){const _0x2bdbdc=_0x3011ca['mapper']['toViewPosition'](_0x23eae6),_0x2a5fb1=_0x3011ca['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2b380f});_0x3011ca['writer']['insert'](_0x2bdbdc,_0x2a5fb1),_0x3011ca['mapper']['bindElementToMarker'](_0x2a5fb1,_0x160c7a['markerName']);}_0x1d6c2c||_0x52e107||!_0x35267c||_0x105347(_0x35267c);};}class yt extends _0xf66950{constructor(_0x215e7b){super(_0x215e7b);const _0x105b5e=_0x215e7b['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x105b5e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x105b5e,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x206b48=this['editor'],_0x28818c=_0x206b48['plugins']['get'](d),_0x5b466b=_0x28818c['isReady']?_0x28818c['diff']['newRevisionId']:null;_0x206b48['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5b466b);}['refresh'](){const {isReady:_0x515b45,isEnabled:_0x105197}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x515b45&&_0x105197;}}class bt extends _0xf66950{['_step'];constructor(_0x19f96c,{direction:_0x5d2bfb}){super(_0x19f96c);const _0x208407=_0x19f96c['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5d2bfb?0x1:-0x1,this['listenTo'](_0x208407,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x208407,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x208407,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2585a5=this['editor'],_0x4893b5=_0x2585a5['plugins']['get'](d),{isNavigationMode:_0x4c4bfc,currentChangeNumber:_0x4a397f}=_0x4893b5;let _0x44a8ac;if(_0x4893b5['activeChange']=_0x4c4bfc?_0x4893b5['diff']['changes']['get'](_0x4a397f+this['_step']):_0x4893b5['diff']['changes']['first'],_0x4893b5['activeChange']['data']['isOnRoot'])_0x44a8ac=_0x2585a5['editing']['view']['getDomRoot'](_0x4893b5['activeChange']['rootName']);else{const _0x442c28=_0x2585a5['model']['markers']['get']('revision:'+_0x4893b5['activeChange']['id']);_0x44a8ac=_0x218286(_0x2585a5['editing'],_0x442c28);}_0x277b74({'target':_0x44a8ac,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xa2c776,currentChangeNumber:_0x422560,numberOfChanges:_0x4bbf44,isReady:_0x4af0be,isEnabled:_0x3301d0}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3301d0&&_0x4af0be&&_0x4bbf44)&&(!_0xa2c776||(0x1===this['_step']?_0x422560<_0x4bbf44-0x1:_0x422560>0x0));}}class _i extends _0x2c43c9{constructor(_0x316ee7){super(_0x316ee7);const _0x2da79c=this['bindTemplate'],_0x124bfa=new _0x15a92a(_0x316ee7),_0x506ccb=new _0x15a92a(_0x316ee7);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',(_0x5c29bb,_0x3a7ce0)=>_0x5c29bb&&_0x3a7ce0>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4783e8,_0x4fe40b,_0x26b87c,_0x1afc4f)=>{if(!_0x4783e8)return R(_0x316ee7,'Loading...');if(!_0x26b87c)return R(_0x316ee7,'No\x20changes');const _0x5b71f4=R(_0x316ee7,'NUMBER_OF_CHANGES',_0x26b87c);return _0x1afc4f?R(_0x316ee7,'X_OF_Y_CHANGES',[_0x4fe40b+0x1,_0x26b87c]):_0x5b71f4;}),_0x124bfa['set']({'label':R(_0x316ee7,'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'}),_0x506ccb['set']({'label':R(_0x316ee7,'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'}),_0x124bfa['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x506ccb['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x124bfa['on']('execute',()=>this['fire']('execute','backward')),_0x506ccb['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',_0x2da79c['if']('_isStatusLabelVisible','ck-hidden',_0x5715b1=>!_0x5715b1)]},'children':[{'text':_0x2da79c['to']('isNavigationMode',_0x541b6e=>_0x541b6e?R(_0x316ee7,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x316ee7,'Total')+':\x20')}]},{'text':_0x2da79c['to']('_statusText')}]},new _0x372320(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x124bfa,_0x506ccb]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x24aabd{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3dbd4c=this['editor']['editing']['view'];_0x3dbd4c['change'](_0x8f5126=>{for(const _0x2f6d48 of _0x3dbd4c['document']['roots'])_0x8f5126['addClass'](ce,_0x2f6d48);});}['hide'](){const _0x1ab7e7=this['editor']['editing']['view'];_0x1ab7e7['change'](_0x4122b0=>{for(const _0x132a12 of _0x1ab7e7['document']['roots'])_0x4122b0['removeClass'](ce,_0x132a12);});}}class m extends _0x24aabd{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x14cee4=this['editor'],_0x474734=_0x14cee4['plugins']['get'](d),_0x32a771=_0x14cee4['plugins']['get'](le);_0x14cee4['ui']['componentFactory']['add']('exitToEditing',_0x2a65f7=>{const _0x2447c6=new _0x15a92a(_0x2a65f7);return _0x2447c6['set']({'label':R(_0x2a65f7,'Back\x20to\x20editing'),'icon':_0x888a61['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x2447c6,'execute',()=>{_0x14cee4['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x2447c6;}),_0x14cee4['ui']['componentFactory']['add']('restoreRevision',_0x53c57e=>{const _0x5cb4b2=new _0x15a92a(_0x53c57e);return _0x5cb4b2['set']({'label':R(_0x53c57e,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5cb4b2['bind']('isEnabled')['to'](_0x14cee4['commands']['get']('restoreRevision')),this['listenTo'](_0x5cb4b2,'execute',()=>_0x14cee4['execute']('restoreRevision')),_0x5cb4b2;}),_0x14cee4['ui']['componentFactory']['add']('changesNavigation',_0x398727=>{const _0x90d155=new _i(_0x398727),_0x4f7525=_0x14cee4['commands']['get']('showPreviousChange'),_0x14da1c=_0x14cee4['commands']['get']('showNextChange');return _0x90d155['bind']('isBackwardNavigationEnabled')['to'](_0x4f7525,'isEnabled'),_0x90d155['bind']('isForwardNavigationEnabled')['to'](_0x14da1c,'isEnabled'),_0x90d155['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x474734),this['listenTo'](_0x90d155,'execute',(_0x4150fb,_0xaa58b)=>{_0x14cee4['execute']('forward'===_0xaa58b?'showNextChange':'showPreviousChange');}),_0x90d155;}),_0x32a771['show'](),_0x474734['on']('change:isReady',(_0x2abb09,_0x45974a,_0x393bf4)=>{_0x393bf4?_0x32a771['hide']():_0x32a771['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x19513d,_0x45f2e4){super(_0x19513d,_0x45f2e4);const _0x60952c=this['bindTemplate'];this['set']({'label':R(_0x19513d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x19513d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x60952c['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x38ffce=this['fieldView']['element'];this['_tooltipString']=_0x38ffce['scrollWidth']>_0x38ffce['clientWidth']&&_0x38ffce['value']||'';}}class ti extends _0x2c43c9{constructor(_0x478222,_0x4347f3,_0x4a2034){super(_0x478222);const _0x323a21=new _0x544954();_0x323a21['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 _0x261530=['ck','ck-revision-history-sidebar__revision-author'];_0x4a2034&&_0x261530['push']('ck-revision-history-sidebar__revision-author_creator');const _0x57b687=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x478222,_0x4a2034?'Revision\x20creator':'Revision\x20author')},'children':[_0x323a21,_0x4347f3['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x261530},'children':_0x57b687});}}function ni(_0x2a9079,_0x2d2159){const _0x4fbdeb=_0x2a9079['bindTemplate'],_0x3e248b=_0x2a9079['locale'],_0x5660ec=_0x20789c(_0x3e248b);_0x5660ec['panelPosition']='sw';const _0x3ab3ea=function(_0x537b8b,_0x546701){const _0x16da37=function(_0x1cf03a,_0x3c3303){const _0x117e11=_0x1cf03a['locale'],_0xcd3b1b={'Compare\x20against\x20selected':R(_0x117e11,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x117e11,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x117e11,'Restore\x20this\x20revision')};return _0x3c3303['map'](_0x271354=>{const _0x5e6cf8=_0xcd3b1b[_0x271354['name']];return _0x5e6cf8&&_0x5e6cf8!==_0x271354['name']&&(_0x271354['name']=_0x5e6cf8),_0x271354;});}(_0x537b8b,_0x546701),_0x22424c=new _0x2ad968();for(const _0x33c59e of _0x16da37){const _0xbf0e06={'type':'button','model':new to({'label':_0x33c59e['name'],'class':_0x33c59e['class'],'withText':!0x0,'role':'menuitem','_action':_0x33c59e['action']})};_0xbf0e06['model']['bind']('isEnabled')['to'](_0x537b8b,'isActionsDropdownOpen',_0x5973f3=>'function'!=typeof _0x33c59e['isEnabled']||(!_0x5973f3||_0x33c59e['isEnabled'](_0x537b8b))),_0x22424c['add'](_0xbf0e06);}return _0x22424c;}(_0x2a9079,_0x2d2159);return _0x2a9079['bind']('isActionsDropdownOpen')['to'](_0x5660ec,'isOpen'),_0x5660ec['buttonView']['set']({'label':R(_0x3e248b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x888a61['threeVerticalDots']}),_0x5660ec['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4fbdeb['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4fbdeb['to'](_0x4fad9f=>_0x4fad9f['stopPropagation']())}}),_0x5660ec['on']('execute',_0xcacd75=>{_0x2a9079['isReady']&&'function'==typeof _0xcacd75['source']['_action']&&_0xcacd75['source']['_action'](_0x2a9079);}),_0x3d32c0(_0x5660ec,_0x3ab3ea,{'role':'menu'}),_0x5660ec['listenTo'](_0x2a9079,'change:isActionsDropdownOpen',(_0x1080aa,_0x6ffbf0,_0x2965eb)=>{if(_0x2965eb)for(const _0x4cec23 of _0x5660ec['listView']['items']){const _0x5b8c30=_0x4cec23['children']['first'],_0x233bc5=_0x2d2159['find'](_0x3b46af=>_0x3b46af['action']===_0x5b8c30['_action'])['isVisible'];_0x4cec23['isVisible']=void 0x0===_0x233bc5||_0x233bc5(_0x2a9079);}}),_0x5660ec;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x33105c(_0x2c43c9){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x277f19,_0x878266,_0xbfbaa,_0x227e2a){super(_0x277f19);const _0x131a7b=this['bindTemplate'],_0x40d7b6=function(_0x390b19,_0x3139db){const _0x59d2e8=Array['from'](_0x3139db['authors'])['filter'](_0x2ddb0b=>_0x2ddb0b!=_0x3139db['creator']);return _0x3139db['creator']&&_0x59d2e8['unshift'](_0x3139db['creator']),_0x59d2e8['map'](_0x54ca7a=>new ti(_0x390b19,_0x54ca7a,_0x54ca7a==_0x3139db['creator']));}(_0x277f19,_0x878266);this['id']=_0x878266['id'],this['_revision']=_0x878266,this['_requireRevisionName']=_0x227e2a,this['bind']('name','createdAt')['to'](_0x878266),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x40a6f4=>{return _0x204042=_0x277f19['uiLanguage'],(_0x54bf08=_0x40a6f4)['toLocaleDateString'](_0x204042,{'month':'long','day':'numeric'})+',\x20'+_0x54bf08['toLocaleTimeString'](_0x204042,{'hour':'numeric','minute':'numeric'});var _0x204042,_0x54bf08;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x277f19,_0x4fabfa),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x135ea7=>_0x135ea7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x1cac97,_0x3ddfbd)=>_0x1cac97&&_0x3ddfbd),this['revisionActionsView']=_0xbfbaa&&_0xbfbaa['length']?ni(this,_0xbfbaa):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x131a7b['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x131a7b['if']('isEnabled','ck-disabled',_0x38262f=>!_0x38262f),_0x131a7b['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x131a7b['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x131a7b['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':_0x131a7b['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':_0x40d7b6}]},this['revisionActionsView']],'on':{'click':_0x131a7b['to'](_0x448d64=>{_0x448d64['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2ca3b8=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2ca3b8,'change',()=>{this['_requireRevisionName']&&!_0x2ca3b8['value']||this['fire']('setName',{'id':this['id'],'name':_0x2ca3b8['value']}),_0x2ca3b8['value']||(_0x2ca3b8['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(_0x52a232,_0x3ecc1b){const _0x33f11b=_0x283079['fromJSDate'](_0x52a232)['setLocale'](_0x3ecc1b),_0x419b8a=_0x283079['local'](),_0xddfcb8=_0x419b8a['minus']({'days':0x1})['startOf']('day');let _0xdecbb5,_0x2d7a96;return _0x33f11b['hasSame'](_0x419b8a,'day')?(_0xdecbb5=_0x33f11b['startOf']('day')['toJSDate'](),_0x2d7a96=_0x33f11b['toRelativeCalendar']()):_0x33f11b['hasSame'](_0xddfcb8,'day')?(_0xdecbb5=_0xddfcb8['toJSDate'](),_0x2d7a96=_0x33f11b['toRelativeCalendar']()):_0x33f11b['hasSame'](_0x419b8a,'week')?(_0xdecbb5=_0x33f11b['startOf']('week')['toJSDate'](),_0x2d7a96=_0x33f11b['weekdayLong']||''):_0x33f11b['hasSame'](_0x419b8a,'year')?(_0xdecbb5=_0x33f11b['startOf']('month')['toJSDate'](),_0x2d7a96=_0x33f11b['monthLong']||''):(_0xdecbb5=_0x33f11b['startOf']('year')['toJSDate'](),_0x2d7a96=String(_0x33f11b['year'])),{'startDate':_0xdecbb5,'localizedPeriodName':_0x2d7a96};}class mi extends _0x2c43c9{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x34d782,_0x4341ff,_0x42bdc2,_0x11d983){super(_0x34d782);const _0x109877=di(_0x4341ff,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4341ff,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x42bdc2,this['_requireRevisionName']=_0x11d983,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':_0x109877}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4ccaf3){const _0x3d30ed=new ai(this['locale'],_0x4ccaf3,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x3d30ed);}['removeRevision'](_0x4d4261){const _0xf31c4c=this['revisionViews']['find'](_0x22e299=>_0x22e299['id']===_0x4d4261['id']);this['revisionViews']['remove'](_0xf31c4c);}}class as extends _0x2c43c9{constructor(_0x5e47ec){super(_0x5e47ec);const _0x2d9a9f=new _0x544954();_0x2d9a9f['content']=_0x888a61['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2d9a9f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x5e47ec,'Revision\x20history')]}]});}}class ci extends _0x2c43c9{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0xf73ee9,_0x4dbff5,_0x4e7077,_0x593d4e){super(_0xf73ee9);const _0x59442b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4dbff5,this['_revisionActions']=_0x4e7077,this['_requireRevisionName']=_0x593d4e,this['on']('select',(_0x2b8669,_0x3ab664)=>{this['fire']('revisionSelected',_0x3ab664);}),this['on']('setName',(_0x3087f7,_0x5648b9)=>{this['fire']('revisionSetName',_0x5648b9);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0xf73ee9),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x59442b['if']('isEnabled','ck-disabled',_0x5f02d2=>!_0x5f02d2)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2dc929 of this['_revisions'])this['_addRevision'](_0x2dc929);this['_revisions']['on']('add',(_0x1a269b,_0x2e8de3)=>{this['_addRevision'](_0x2e8de3);}),this['_revisions']['on']('remove',(_0x96f07d,_0x2e4979)=>{this['_removeRevision'](_0x2e4979);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2e98a8=>_0x2e98a8['revisionViews']['map'](_0x494419=>_0x494419))['flat']();}['selectRevision'](_0x1ca27c){for(const _0x492714 of this['revisionViews'])_0x1ca27c&&_0x1ca27c['id']===_0x492714['id']?_0x492714['select']():_0x492714['deselect']();}['highlightRevisions'](_0x4f6b91){for(const _0x4c1bd3 of this['revisionViews'])_0x4f6b91['some'](({id:_0x5eaa02})=>_0x5eaa02===_0x4c1bd3['id'])?_0x4c1bd3['highlight']():_0x4c1bd3['unhighlight']();}['_addRevision'](_0x5cc6cb){const _0x295da7=di(_0x5cc6cb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x23e232=this['timePeriodViews']['get'](0x0);_0x23e232&&_0x23e232['startDate']['getTime']()===_0x295da7['getTime']()||(_0x23e232=new mi(this['locale'],_0x295da7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x23e232)),_0x23e232['addRevision'](_0x5cc6cb);}['_removeRevision'](_0x3318f0){const _0x40e459=di(_0x3318f0['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x40e459)['removeRevision'](_0x3318f0);}['_getTimePeriodViewByStartDate'](_0x311728){return this['timePeriodViews']['find'](_0x3a056d=>_0x3a056d['startDate']['getTime']()===_0x311728['getTime']());}}class g extends _0x24aabd{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x196587){super(_0x196587),this['_revisionViewer']=_0x196587['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x15421c=this['_revisionsRepository']['_revisions'],_0x69158b=this['_createRevisionActions'](),_0x642bcf=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x15421c,_0x69158b,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',(_0x25b510,_0x1d2dbe)=>{_0x1d2dbe['revisionViews']['on']('add',(_0x51f4d9,_0x4c7283)=>{_0x4c7283['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)),_0x642bcf['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3e87df=this['_revisionsRepository']['getRevision'](0x0);if(_0x3e87df){const _0x7b0916=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3e87df['id']);this['_revisionViewer']['compare'](_0x3e87df,_0x7b0916);}}['_handleRevisionSelected'](_0x3828c0,_0x49e711){const _0x8f019b=this['_revisionsRepository']['getRevision'](_0x49e711['id']),_0x1aac4f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x8f019b['id']);this['_revisionViewer']['compare'](_0x8f019b,_0x1aac4f);}['_handleRevisionSetName'](_0x5a4a64,_0xcae481){this['_revisionsRepository']['getRevision'](_0xcae481['id'])['setName'](_0xcae481['name']);}['_handleDiffChange'](_0x5ce7c8,_0x23a68e,_0x32c9b5){const _0x3d08c8=this['_revisionsRepository']['getRevisionsInDiff'](_0x32c9b5);_0x3d08c8['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3d08c8),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3d08c8[0x0]));}['_createRevisionActions'](){const _0x4fba7b=this['editor'],_0x3a10f4=g['availableRevisionActions'],_0x1903db=_0x4fba7b['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1903db['length'])return _0x1903db['map'](_0x474ffa=>{const _0x528ced='string'==typeof _0x474ffa?Object['assign']({},_0x3a10f4[_0x474ffa]):_0x474ffa;return _0x528ced['action']=_0x528ced['action']['bind'](this,_0x4fba7b),_0x528ced['isVisible']&&(_0x528ced['isVisible']=_0x528ced['isVisible']['bind'](this,_0x4fba7b)),_0x528ced;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x14aa36},_0x576b28)=>{const _0x417a8d=_0x14aa36['get'](d),_0x18bab9=_0x417a8d['repository'];let _0x21b288=_0x417a8d['diff']['newRevisionId'],_0x4fc41f=_0x576b28['id'];_0x18bab9['getIndex'](_0x21b288)>_0x18bab9['getIndex'](_0x4fc41f)&&([_0x21b288,_0x4fc41f]=[_0x4fc41f,_0x21b288]),_0x417a8d['compare'](_0x21b288,_0x4fc41f);},'isVisible':({plugins:_0x1796e4},_0x3f152a)=>{const _0x389089=_0x1796e4['get'](d);return!(_0x389089['repository']['getRevisionsInDiff'](_0x389089['diff'])['length']>0x2)&&!_0x3f152a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x486651,{id:_0x1e8b32})=>{_0x486651['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1e8b32);},'isVisible':({plugins:_0x40ef11},_0x535ccc)=>!!_0x40ef11['get'](d)['repository']['getLaterVisibleRevision'](_0x535ccc['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x110fcd},{id:_0x4cf8e0,revisionNameView:_0x2d3a7a})=>{const _0x142bbf=_0x110fcd['get'](d),_0x559ba4=_0x142bbf['repository']['getEarlierVisibleRevision'](_0x4cf8e0);_0x142bbf['compare'](_0x4cf8e0,_0x559ba4),_0x2d3a7a['focus'](),_0x2d3a7a['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1d5326,_0x1af508){super(_0x1d5326),this['_view']=_0x1af508,this['_toolbarConfig']=ht(_0x1d5326['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x1e2f16){const _0x18c458=this['editor'],_0x6d201c=this['view'],_0x25987a=_0x18c458['editing']['view'],_0x2d7e37=_0x6d201c['editable'],_0x39f0af=_0x25987a['document']['getRoot']();_0x2d7e37['name']=_0x39f0af['rootName'],_0x6d201c['render']();const _0x4cfb76=_0x2d7e37['element'];this['setEditableElement'](_0x2d7e37['name'],_0x4cfb76),_0x6d201c['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x25987a['attachDomRoot'](_0x4cfb76),this['_elementReplacer']['replace'](_0x1e2f16,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xebc8f9=this['view'],_0x5cef8b=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5cef8b['detachDomRoot'](_0xebc8f9['editable']['name']),_0xebc8f9['destroy']();}['_initToolbar'](){const _0x34630a=this['view'];_0x34630a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x34630a['stickyPanel']['limiterElement']=_0x34630a['element'],_0x34630a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4c1d1b})=>_0x4c1d1b),_0x34630a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x34630a['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4b700c,_0x2611db,_0x369898={}){super(_0x4b700c),this['stickyPanel']=new lt(_0x4b700c),this['toolbar']=new nt(_0x4b700c,{'shouldGroupWhenFull':_0x369898['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x4b700c,_0x2611db);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x205c10,_0x292749){super(_0x292749),this['sourceElement']=_0x205c10,this['model']['document']['createRoot']();const _0x15be77=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x15be77);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x125290,_0x4484d6){const _0x2b92d3=new this(_0x125290,_0x4484d6);return await _0x2b92d3['initPlugins'](),await _0x2b92d3['ui']['init'](_0x125290),await _0x2b92d3['data']['init'](_0x2b92d3['config']['get']('initialData')||''),_0x2b92d3['fire']('ready'),_0x2b92d3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x9a5545{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3c5713){function _0x1ac147(_0x3d5207){return _0x3d5207['map'](_0x9d4357=>String['fromCharCode'](_0x9d4357))['join']('');}super(_0x3c5713),this['result']='end',_0x3c5713[_0x1ac147([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ac147([0x76,0x69,0x65,0x77])][_0x1ac147([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ac147([0x61,0x75,0x74,0x6f]),_0x3c5713[_0x1ac147([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1ac147([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ac147([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1ac147([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1ac147([0x6f,0x6b])});}}class H extends _0x9a5545{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3671e5){if(super(_0x3671e5),!this['editor']['config']['get']('revisionHistory'))throw new _0x52c9ac('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xd1dcb3=>this['_showRevisionViewer']({..._0xd1dcb3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1e610f=>this['_closeRevisionViewer'](_0x1e610f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x14378c=>this['_restoreRevision'](_0x14378c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xaa7ef5){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xaa7ef5;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x336ea6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x336ea6);}['getRevision'](_0x4fefed){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4fefed);}['getRevisions'](_0x4ab34a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4ab34a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4cb82c=this['editor'],_0x1e833f=_0x48122b(_0x4cb82c,p),_0x3d535d=_0x4cb82c['plugins']['get']('RevisionTracker'),_0x27f321=_0x4cb82c['plugins']['get']('Users')['users'];return _0x1e833f['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1e833f['lazyRoots'],(_0x1e833f['plugins']['push'](k,d,m,class extends _0x9a5545{static get['requires'](){return[d,'Users'];}['init'](){const _0x8960f0=this['editor']['plugins']['get']('Users');for(const _0x4c521a of _0x27f321)_0x4c521a['isAnonymous']||_0x8960f0['getUser'](_0x4c521a['id'])||_0x8960f0['addUser'](_0x4c521a);const _0x24bd02=_0x3d535d['repository']['getRevisions']();let _0x302dbe=null;const _0x89efa0=this['editor']['plugins']['get']('RevisionViewer');_0x89efa0['adapter']=_0x3d535d['adapter'],_0x89efa0['bind']('isEnabled')['to'](_0x3d535d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4cb82c,'isReadOnly',_0x1df206=>!_0x1df206);for(const _0x538037 of _0x24bd02){const _0x38210a=null===_0x538037['creator'];if(_0x38210a&&_0x538037['toVersion']===_0x538037['fromVersion'])continue;const _0x4ea644=_0x538037['toJSON']();_0x89efa0['addRevisionData'](_0x4ea644,(_0x1ecd1c,_0x276866,_0x55f73e)=>{if(_0x38210a){if(_0x302dbe)_0x302dbe['_update'](_0x1ecd1c,_0x276866);else{if(!_0x276866){const _0x5b08e0=_0x55f73e['toJSON']();_0x5b08e0['id']=_0x1ced54(),_0x3d535d['saveRevision'](_0x5b08e0,_0x55f73e['toVersion'])['then'](_0x4e472a=>{_0x302dbe=_0x4e472a;});}}}else _0x538037['_update'](_0x1ecd1c,_0x276866);});}}},g),_0x1e833f);}['_enhanceShowRevisionViewerCallback'](){const _0x3e00d1=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x48b95a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x52dcfa=this['editor']['plugins']['get']('Autosave');await _0x52dcfa['save']();}else await _0x48b95a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4161db=this['editor']['plugins']['get']('Dialog');_0x4161db['isOpen']&&_0x4161db['hide']();}const _0x56c004=this['_getRevisionViewerEditorConfig']();return _0x3e00d1(_0x56c004)['then'](_0x37b99a=>{return(this['_viewerEditor']=_0x37b99a,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x37b99a;})['catch'](_0x5ac3f6=>(console['error'](_0x5ac3f6),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xc17422=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'](),_0xc17422(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x39e2bf=this['editor']['plugins']['get']('Annotations');_0x39e2bf['refreshVisibility'](),_0x39e2bf['refreshPositioning']();}})));}['_showRevisionViewer'](_0x5f0f0c){const _0x1d8bf6=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x437908=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2830c2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x2830c2,_0x5f0f0c)['then'](_0xb848c3=>(_0x437908['style']['display']='block',_0x1d8bf6['style']['display']='none',_0xb848c3));}['_closeRevisionViewer'](_0x5b240a){const _0x56654f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x56654f['style']['display']='',_0x5b240a['destroy']();}async['_restoreRevision'](_0x41033e){const _0x42da29=this['editor'],_0x2d39b1=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x58b872=_0x42da29['plugins']['get']('RevisionTracker'),_0x3e16bb=_0x2d39b1['repository']['getRevision'](_0x41033e);let _0x23f3f4,_0x3d240d,_0x575e66;try{_0x23f3f4=await _0x2d39b1['getRevisionData'](_0x3e16bb),_0x3d240d=await _0x2d39b1['getRevisionRootsAttributes'](_0x3e16bb);}catch(_0x1843d4){return void console['error'](_0x1843d4);}_0x42da29['model']['change'](_0x58b400=>{for(const _0x382d89 of Array['from'](_0x42da29['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x58b400['removeMarker'](_0x382d89);}),_0x2d39b1['isReady']=!0x1,_0x42da29['model']['enqueueChange'](_0x311643=>{_0x311643['setSelection'](null),_0x311643['removeSelectionAttribute'](_0x42da29['model']['document']['selection']['getAttributeKeys']());const _0x451bd5=Object['keys'](_0x23f3f4);for(const _0x49df59 of _0x42da29['model']['document']['roots'])'$graveyard'!=_0x49df59['rootName']&&_0x49df59['isAttached']()&&!_0x451bd5['includes'](_0x49df59['rootName'])&&_0x311643['detachRoot'](_0x49df59);for(const _0x3af571 of _0x451bd5){let _0x1307ff=_0x42da29['model']['document']['getRoot'](_0x3af571);_0x1307ff&&_0x1307ff['isAttached']()||(_0x1307ff=_0x311643['addRoot'](_0x3af571));const _0x29e9db=_0x3d240d[_0x3af571],_0x6f4fc7=Object['keys'](_0x29e9db),_0x492c19=_0x23f3f4[_0x3af571];for(const _0x2ae031 of _0x1307ff['getAttributeKeys']())_0x6f4fc7['includes'](_0x2ae031)||_0x311643['removeAttribute'](_0x2ae031,_0x1307ff);for(const _0x395f9c of _0x6f4fc7)_0x311643['setAttribute'](_0x395f9c,_0x3d240d[_0x3af571][_0x395f9c],_0x1307ff);_0x311643['remove'](_0x311643['createRangeIn'](_0x1307ff)),_0x311643['insert'](_0x42da29['data']['parse'](_0x492c19,_0x1307ff),_0x1307ff,0x0);}});const _0x311173=R(_0x42da29['locale'],'Restored');if(_0x3e16bb['name'])_0x575e66=-0x1==_0x3e16bb['name']['indexOf'](_0x311173)?_0x311173+':\x20'+_0x3e16bb['name']:_0x3e16bb['name'];else _0x575e66=_0x311173+':\x20'+(_0x3e16bb['createdAt']['toLocaleDateString'](_0x42da29['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3e16bb['createdAt']['toLocaleTimeString'](_0x42da29['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x58b872['saveRevision']({'name':_0x575e66}),_0x2d39b1['isReady']=!0x0,_0x42da29['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ Rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x46242a){super(_0x46242a),this['_revisionViewer']=_0x46242a['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x429c8f=this['_revisionsRepository']['_revisions'],_0xd1e78d=this['_createRevisionActions'](),_0x57cd5e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x429c8f,_0xd1e78d,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',(_0x15d719,_0x65fa1d)=>{_0x65fa1d['revisionViews']['on']('add',(_0x2635db,_0x195c0d)=>{_0x195c0d['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)),_0x57cd5e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2b3871=this['_revisionsRepository']['getRevision'](0x0);if(_0x2b3871){const _0x414da7=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2b3871['id']);this['_revisionViewer']['compare'](_0x2b3871,_0x414da7);}}['_handleRevisionSelected'](_0xb51152,_0x4a3064){const _0x3f9682=this['_revisionsRepository']['getRevision'](_0x4a3064['id']),_0x372837=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3f9682['id']);this['_revisionViewer']['compare'](_0x3f9682,_0x372837);}['_handleRevisionSetName'](_0x316fdd,_0x56f107){this['_revisionsRepository']['getRevision'](_0x56f107['id'])['setName'](_0x56f107['name']);}['_handleDiffChange'](_0x593a2e,_0x46384b,_0x55458b){const _0x3aa2d1=this['_revisionsRepository']['getRevisionsInDiff'](_0x55458b);_0x3aa2d1['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3aa2d1),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3aa2d1[0x0]));}['_createRevisionActions'](){const _0x22f6dd=this['editor'],_0x48675f=g['availableRevisionActions'],_0x2710ad=_0x22f6dd['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2710ad['length'])return _0x2710ad['map'](_0x4b2988=>{const _0xd6e9db='string'==typeof _0x4b2988?Object['assign']({},_0x48675f[_0x4b2988]):_0x4b2988;return _0xd6e9db['action']=_0xd6e9db['action']['bind'](this,_0x22f6dd),_0xd6e9db['isVisible']&&(_0xd6e9db['isVisible']=_0xd6e9db['isVisible']['bind'](this,_0x22f6dd)),_0xd6e9db;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x32a6df},_0x1a622e)=>{const _0x26fd3e=_0x32a6df['get'](d),_0x501052=_0x26fd3e['repository'];let _0x2cfc70=_0x26fd3e['diff']['newRevisionId'],_0x2e442c=_0x1a622e['id'];_0x501052['getIndex'](_0x2cfc70)>_0x501052['getIndex'](_0x2e442c)&&([_0x2cfc70,_0x2e442c]=[_0x2e442c,_0x2cfc70]),_0x26fd3e['compare'](_0x2cfc70,_0x2e442c);},'isVisible':({plugins:_0x291be0},_0x511098)=>{const _0x34bf43=_0x291be0['get'](d);return!(_0x34bf43['repository']['getRevisionsInDiff'](_0x34bf43['diff'])['length']>0x2)&&!_0x511098['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x559025,{id:_0x2d8881})=>{_0x559025['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2d8881);},'isVisible':({plugins:_0x2c232c},_0xa86de2)=>!!_0x2c232c['get'](d)['repository']['getLaterVisibleRevision'](_0xa86de2['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xc04e9},{id:_0x116e2c,revisionNameView:_0x1b8077})=>{const _0x16c52a=_0xc04e9['get'](d),_0x2a4607=_0x16c52a['repository']['getEarlierVisibleRevision'](_0x116e2c);_0x16c52a['compare'](_0x116e2c,_0x2a4607),_0x1b8077['focus'](),_0x1b8077['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3e3946,_0x20e38f){super(_0x3e3946),this['_view']=_0x20e38f,this['_toolbarConfig']=ht(_0x3e3946['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x59ea9d){const _0x1eb05d=this['editor'],_0x5c4ed4=this['view'],_0x424fe4=_0x1eb05d['editing']['view'],_0x250a3f=_0x5c4ed4['editable'],_0x43a5f5=_0x424fe4['document']['getRoot']();_0x250a3f['name']=_0x43a5f5['rootName'],_0x5c4ed4['render']();const _0x518a63=_0x250a3f['element'];this['setEditableElement'](_0x250a3f['name'],_0x518a63),_0x5c4ed4['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x424fe4['attachDomRoot'](_0x518a63),this['_elementReplacer']['replace'](_0x59ea9d,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1c662b=this['view'],_0x524dc1=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x524dc1['detachDomRoot'](_0x1c662b['editable']['name']),_0x1c662b['destroy']();}['_initToolbar'](){const _0x1bf03e=this['view'];_0x1bf03e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1bf03e['stickyPanel']['limiterElement']=_0x1bf03e['element'],_0x1bf03e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x890d08})=>_0x890d08),_0x1bf03e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1bf03e['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1241a9,_0x4660f1,_0x12a88f={}){super(_0x1241a9),this['stickyPanel']=new lt(_0x1241a9),this['toolbar']=new nt(_0x1241a9,{'shouldGroupWhenFull':_0x12a88f['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x1241a9,_0x4660f1);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4e6451,_0x207961){super(_0x207961),this['sourceElement']=_0x4e6451,this['model']['document']['createRoot']();const _0x3e7d71=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x3e7d71);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2c64eb,_0xd816b0){const _0x3a1126=new this(_0x2c64eb,_0xd816b0);return await _0x3a1126['initPlugins'](),await _0x3a1126['ui']['init'](_0x2c64eb),await _0x3a1126['data']['init'](_0x3a1126['config']['get']('initialData')||''),_0x3a1126['fire']('ready'),_0x3a1126;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x24aabd{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x202c14){function _0x624173(_0xc03c99){return _0xc03c99['map'](_0x4d03b9=>String['fromCharCode'](_0x4d03b9))['join']('');}super(_0x202c14),this['result']='end',_0x202c14[_0x624173([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x624173([0x76,0x69,0x65,0x77])][_0x624173([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x624173([0x61,0x75,0x74,0x6f]),_0x202c14[_0x624173([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x624173([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x624173([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x624173([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x624173([0x6f,0x6b])});}}class H extends _0x24aabd{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x1dfd5a){if(super(_0x1dfd5a),!this['editor']['config']['get']('revisionHistory'))throw new _0x2c83c4('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1216e0=>this['_showRevisionViewer']({..._0x1216e0,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x6efeaa=>this['_closeRevisionViewer'](_0x6efeaa)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xb5d5d8=>this['_restoreRevision'](_0xb5d5d8)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xc5b1a4){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xc5b1a4;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4f7658){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4f7658);}['getRevision'](_0x4ae114){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4ae114);}['getRevisions'](_0x4705cd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4705cd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xbc5759=this['editor'],_0x1fdf79=_0x3f5003(_0xbc5759,p),_0x940aad=_0xbc5759['plugins']['get']('RevisionTracker'),_0x3e2218=_0xbc5759['plugins']['get']('Users')['users'];return _0x1fdf79['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1fdf79['lazyRoots'],(_0x1fdf79['plugins']['push'](k,d,m,class extends _0x24aabd{static get['requires'](){return[d,'Users'];}['init'](){const _0x123115=this['editor']['plugins']['get']('Users');for(const _0x19854 of _0x3e2218)_0x19854['isAnonymous']||_0x123115['getUser'](_0x19854['id'])||_0x123115['addUser'](_0x19854);const _0x267ceb=_0x940aad['repository']['getRevisions']();let _0xb13620=null;const _0x487488=this['editor']['plugins']['get']('RevisionViewer');_0x487488['adapter']=_0x940aad['adapter'],_0x487488['bind']('isEnabled')['to'](_0x940aad),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xbc5759,'isReadOnly',_0x48c847=>!_0x48c847);for(const _0x1fb415 of _0x267ceb){const _0x383b33=null===_0x1fb415['creator'];if(_0x383b33&&_0x1fb415['toVersion']===_0x1fb415['fromVersion'])continue;const _0x37fc85=_0x1fb415['toJSON']();_0x487488['addRevisionData'](_0x37fc85,(_0x53cc82,_0xa2d568,_0x3a5440)=>{if(_0x383b33){if(_0xb13620)_0xb13620['_update'](_0x53cc82,_0xa2d568);else{if(!_0xa2d568){const _0x4e9e4a=_0x3a5440['toJSON']();_0x4e9e4a['id']=_0x4dce4d(),_0x940aad['saveRevision'](_0x4e9e4a,_0x3a5440['toVersion'])['then'](_0x295998=>{_0xb13620=_0x295998;});}}}else _0x1fb415['_update'](_0x53cc82,_0xa2d568);});}}},g),_0x1fdf79);}['_enhanceShowRevisionViewerCallback'](){const _0x3cf8d4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4aca0f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xd67fa3=this['editor']['plugins']['get']('Autosave');await _0xd67fa3['save']();}else await _0x4aca0f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x131d81=this['editor']['plugins']['get']('Dialog');_0x131d81['isOpen']&&_0x131d81['hide']();}const _0x3e0d66=this['_getRevisionViewerEditorConfig']();return _0x3cf8d4(_0x3e0d66)['then'](_0x1ef73c=>{return(this['_viewerEditor']=_0x1ef73c,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1ef73c;})['catch'](_0x16e2ee=>(console['error'](_0x16e2ee),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x379bdb=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'](),_0x379bdb(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x18c973=this['editor']['plugins']['get']('Annotations');_0x18c973['refreshVisibility'](),_0x18c973['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3e7318){const _0x3ff5db=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4ce097=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x55675a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x55675a,_0x3e7318)['then'](_0x3797e2=>(_0x4ce097['style']['display']='block',_0x3ff5db['style']['display']='none',_0x3797e2));}['_closeRevisionViewer'](_0xa5822b){const _0x53de07=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x53de07['style']['display']='',_0xa5822b['destroy']();}async['_restoreRevision'](_0x127aeb){const _0x4e113b=this['editor'],_0x35eba0=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x232de0=_0x4e113b['plugins']['get']('RevisionTracker'),_0xc6cc98=_0x35eba0['repository']['getRevision'](_0x127aeb);let _0x5633e6,_0x157a61,_0x50aa91;try{_0x5633e6=await _0x35eba0['getRevisionData'](_0xc6cc98),_0x157a61=await _0x35eba0['getRevisionRootsAttributes'](_0xc6cc98);}catch(_0xdebb31){return void console['error'](_0xdebb31);}_0x4e113b['model']['change'](_0x463336=>{for(const _0x14d38e of Array['from'](_0x4e113b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x463336['removeMarker'](_0x14d38e);}),_0x35eba0['isReady']=!0x1,_0x4e113b['model']['enqueueChange'](_0x23b062=>{_0x23b062['setSelection'](null),_0x23b062['removeSelectionAttribute'](_0x4e113b['model']['document']['selection']['getAttributeKeys']());const _0x1ae232=Object['keys'](_0x5633e6);for(const _0x1604a2 of _0x4e113b['model']['document']['roots'])'$graveyard'!=_0x1604a2['rootName']&&_0x1604a2['isAttached']()&&!_0x1ae232['includes'](_0x1604a2['rootName'])&&_0x23b062['detachRoot'](_0x1604a2);for(const _0x13a001 of _0x1ae232){let _0x56ca54=_0x4e113b['model']['document']['getRoot'](_0x13a001);_0x56ca54&&_0x56ca54['isAttached']()||(_0x56ca54=_0x23b062['addRoot'](_0x13a001));const _0x3b905a=_0x157a61[_0x13a001],_0x16d16e=Object['keys'](_0x3b905a),_0x148f41=_0x5633e6[_0x13a001];for(const _0x8b8e0a of _0x56ca54['getAttributeKeys']())_0x16d16e['includes'](_0x8b8e0a)||_0x23b062['removeAttribute'](_0x8b8e0a,_0x56ca54);for(const _0x584244 of _0x16d16e)_0x23b062['setAttribute'](_0x584244,_0x157a61[_0x13a001][_0x584244],_0x56ca54);_0x23b062['remove'](_0x23b062['createRangeIn'](_0x56ca54)),_0x23b062['insert'](_0x4e113b['data']['parse'](_0x148f41,_0x56ca54),_0x56ca54,0x0);}});const _0x41a15b=R(_0x4e113b['locale'],'Restored');if(_0xc6cc98['name'])_0x50aa91=-0x1==_0xc6cc98['name']['indexOf'](_0x41a15b)?_0x41a15b+':\x20'+_0xc6cc98['name']:_0xc6cc98['name'];else _0x50aa91=_0x41a15b+':\x20'+(_0xc6cc98['createdAt']['toLocaleDateString'](_0x4e113b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0xc6cc98['createdAt']['toLocaleTimeString'](_0x4e113b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x232de0['saveRevision']({'name':_0x50aa91}),_0x35eba0['isReady']=!0x0,_0x4e113b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};