@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250107.0 → 0.0.0-nightly-20250108.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +8 -8
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x24b81a,uid as _0x3dbcc6,Collection as _0x515089,logWarning as _0x15e511,FocusTracker as _0x4c45e7,KeystrokeHandler as _0x3fadfc,scrollViewportToShowTarget as _0x40d3b7,ResizeObserver as pt,ElementReplacer as ct,CKEditorError as _0x3e3d00}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xdba081,set as _0xac7ac,unset as _0xa52ad6,isEqual as _0x3a5dc0}from'lodash-es';import{Plugin as _0x407311,PendingActions as _0x5c8b71,icons as _0x5b30c8,Command as _0x5205b2,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x12faa4,getMarkerDomElement as _0x24c5c4,ConfirmMixin as _0x473037,sanitizeEditorConfig as _0x108145}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x49605f,ViewText as _0x36a978,ViewElement as _0x15326a,Element as ft,Range as vt,Position as gt,DocumentFragment as wt,ViewContainerElement as _0x3bceea,ViewAttributeElement as _0x330855,ViewEmptyElement as _0x302f02,ViewRawElement as _0x2b842a,ViewUIElement as _0x523f61,Text as _t}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x19e8cf,injectCssTransitionDisabler as ts,submitHandler as _0x4b9d92,LabeledFieldView as at,createLabeledInputText as _0x29f839,createDropdown as _0x3509e4,ListView as te,ListItemView as _0x30dd58,ButtonView as _0x36e8a7,MenuBarMenuView as _0x15710d,MenuBarMenuListView as _0x186312,MenuBarMenuListItemView as _0x3cfb0f,MenuBarMenuListItemButtonView as _0x4cea6f,ContextualBalloon as _0x476d63,ToolbarSeparatorView as _0x53264a,IconView as _0x3e63b5,addListToDropdown as _0x861ad1,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 _0x417bee}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x24b81a(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x150f40){super(),this['id']=_0x150f40['id']||_0x3dbcc6(),this['creator']=_0x150f40['creator']||null,this['authors']=_0x150f40['authors']||[],this['diffData']=_0x150f40['diffData']||null,this['toVersion']=_0x150f40['toVersion']||0x0,this['fromVersion']=_0x150f40['fromVersion']||0x0,this['set']('name',_0x150f40['name']||''),this['set']('createdAt',_0x150f40['createdAt']||new Date()),this['set']('attributes',_0x150f40['attributes']||{});}['setName'](_0x38ce4a){this['_update']({'name':_0x38ce4a});}['setAttribute'](_0x2f950a,_0x36d9b3){const _0x2d2974=_0xdba081(this['attributes']);_0xac7ac(_0x2d2974,_0x2f950a,_0x36d9b3),this['_update']({'attributes':_0x2d2974});}['removeAttribute'](_0x5f429b){const _0x325b8b=_0xdba081(this['attributes']);_0xa52ad6(_0x325b8b,_0x5f429b),this['_update']({'attributes':_0x325b8b});}['_update'](_0x451d6c,_0x9be5d5=!0x1){let _0x4721cc=!0x1;const _0x2c43ef={'id':this['id']},_0x2d077d=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x587ce0 of _0x2d077d){const _0x3953b3=_0x451d6c[_0x587ce0];void 0x0!==_0x3953b3&&_0x3953b3!==this[_0x587ce0]&&(this[_0x587ce0]=_0x3953b3,_0x2c43ef[_0x587ce0]=_0x3953b3,_0x4721cc=!0x0);}_0x4721cc&&(_0x2c43ef['authors']&&(_0x2c43ef['authorsIds']=_0x2c43ef['authors']['map'](_0x2b73dd=>_0x2b73dd['id']),delete _0x2c43ef['authors']),this['fire']('_update',_0x2c43ef,_0x9be5d5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x49603d=>_0x49603d['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x407311{['_revisions'];static get['requires'](){return[_0x12faa4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5eb3bb){super(_0x5eb3bb),this['_revisions']=new _0x515089();}['afterInit'](){!async function(_0x280a66){const _0xca8a5d=_0x4e77de([0x73,0x69,0x4a,0x6f,0x6b,0x64,0x70,0x51,0x34,0x4f,0x74,0x38,0x31,0x42,0x6d,0x58,0x32,0x71,0x54,0x50,0x75,0x41,0x57,0x63,0x7a,0x37,0x46,0x59,0x6a,0x39,0x30,0x45,0x76,0x66,0x65,0x33,0x53,0x49,0x5a,0x79,0x47,0x4b,0x43,0x6e,0x62,0x77,0x68,0x48,0x61,0x72,0x67,0x4e,0x35,0x6c,0x4c,0x55,0x78,0x56,0x36,0x4d,0x44,0x52]),_0x760016=0xeb829,_0x5ed803=0x3e4a0cac,_0x2d0a33=0x3e4d5744^_0x5ed803,_0x342bad=window[_0x4e77de([0x44,0x61,0x74,0x65])][_0x4e77de([0x6e,0x6f,0x77])](),_0x1ebdf2=_0x280a66[_0x4e77de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2f6b61=new window[(_0x4e77de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2234f0=>{_0x1ebdf2[_0x4e77de([0x6f,0x6e,0x63,0x65])](_0x4e77de([0x72,0x65,0x61,0x64,0x79]),_0x2234f0);}),_0x49e2ef={[_0x4e77de([0x6b,0x74,0x79])]:_0x4e77de([0x45,0x43]),[_0x4e77de([0x75,0x73,0x65])]:_0x4e77de([0x73,0x69,0x67]),[_0x4e77de([0x63,0x72,0x76])]:_0x4e77de([0x50,0x2d,0x32,0x35,0x36]),[_0x4e77de([0x78])]:_0x4e77de([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]),[_0x4e77de([0x79])]:_0x4e77de([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]),[_0x4e77de([0x61,0x6c,0x67])]:_0x4e77de([0x45,0x53,0x32,0x35,0x36])},_0x406410=_0x1ebdf2[_0x4e77de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e77de([0x67,0x65,0x74])](_0x4e77de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x157027(){let _0x394421,_0x2fbe02=null,_0x5d71bd=null;try{if(_0x406410==_0x4e77de([0x47,0x50,0x4c]))return _0x4e77de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x394421=_0x5d758f(),!_0x394421)return _0x4e77de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x394421[_0x4e77de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5d71bd=_0x12aa1d(_0x394421[_0x4e77de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x394421[_0x4e77de([0x6a,0x74,0x69])])),await _0x2d0a12()?_0x44a4b3()?_0x1bef35()?_0x4e77de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a08f6()?(_0x394421[_0x4e77de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e77de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fbe02=_0x20b756(_0x4e77de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x394421[_0x4e77de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e77de([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fbe02=_0x20b756(_0x4e77de([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x394421[_0x4e77de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e77de([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x2fbe02=_0x20b756(_0x4e77de([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2f2e03()):_0x4e77de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e77de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e77de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3bac50){return _0x4e77de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1bef35(){const _0x11923d=[_0x4e77de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e77de([0x74,0x72,0x69,0x61,0x6c])][_0x4e77de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x394421[_0x4e77de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x342bad/0x3e8:0xe10*_0x2d0a33;return _0x394421[_0x4e77de([0x65,0x78,0x70])]<_0x11923d;}function _0x44a4b3(){const _0x13551e=_0x394421[_0x4e77de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13551e)return!0x1;if(_0x13551e[_0x4e77de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e77de([0x2a])))return!0x0;if(_0x13551e[_0x4e77de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e77de([0x52,0x48])))return!0x0;if(_0x13551e[_0x4e77de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e77de([0x52,0x52,0x48]))){if(_0x46c57d())return!0x0;if(_0x430ed9()||_0x257038())return!0x0;}return!0x1;}function _0x2a08f6(){const _0x174112=_0x394421[_0x4e77de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x174112||0x0==_0x174112[_0x4e77de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b0e4a}=new URL(window[_0x4e77de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x174112[_0x4e77de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b0e4a))return!0x0;const _0x6fd1e5=_0x2b0e4a[_0x4e77de([0x73,0x70,0x6c,0x69,0x74])](_0x4e77de([0x2e]));return _0x174112[_0x4e77de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x596213=>_0x596213[_0x4e77de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e77de([0x2a])))[_0x4e77de([0x6d,0x61,0x70])](_0x4a80b1=>_0x4a80b1[_0x4e77de([0x73,0x70,0x6c,0x69,0x74])](_0x4e77de([0x2e])))[_0x4e77de([0x73,0x6f,0x6d,0x65])](_0x1231db=>_0x6fd1e5[_0x4e77de([0x65,0x76,0x65,0x72,0x79])]((_0xf54489,_0x4f93ab)=>_0x1231db[_0x4f93ab]===_0xf54489||_0x1231db[_0x4f93ab]===_0x4e77de([0x2a])));}function _0x2f2e03(){return _0x2fbe02&&_0x5d71bd?new window[(_0x4e77de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f6432,_0x2451b3)=>{_0x2fbe02[_0x4e77de([0x74,0x68,0x65,0x6e])](_0x1f6432,_0x2451b3),_0x5d71bd[_0x4e77de([0x74,0x68,0x65,0x6e])](_0x5568ba=>{_0x5568ba!=_0x4e77de([0x56,0x61,0x6c,0x69,0x64])&&_0x1f6432(_0x5568ba);},_0x2451b3);}):_0x2fbe02||_0x5d71bd||_0x4e77de([0x56,0x61,0x6c,0x69,0x64]);}}function _0x12aa1d(_0x5889c1,_0x491b7c){return new window[(_0x4e77de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54d2bd=>{if(_0x2e3a09())return _0x54d2bd(_0x4e77de([0x56,0x61,0x6c,0x69,0x64]));_0x14ec20(),_0x1ebdf2[_0x4e77de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e77de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x16e1ae=!0x1;const _0x15ed45=_0x3dbcc6();function _0x3f4f65(_0x44ddd6){return!!_0x44ddd6&&(typeof _0x44ddd6===_0x4e77de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x44ddd6===_0x4e77de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x44ddd6[_0x4e77de([0x74,0x68,0x65,0x6e])]===_0x4e77de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x44ddd6[_0x4e77de([0x63,0x61,0x74,0x63,0x68])]===_0x4e77de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5a6908(_0x22e725){_0x3837a4(_0x22e725)[_0x4e77de([0x74,0x68,0x65,0x6e])](_0x4be890=>{if(!_0x4be890||_0x4be890[_0x4e77de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e77de([0x6f,0x6b]))return _0x4e77de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c29f1(_0x3da113(_0x15ed45+_0x491b7c))!=_0x4be890[_0x4e77de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e77de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e77de([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e77de([0x74,0x68,0x65,0x6e])](_0x312bf0=>(_0x33b26c(),_0x312bf0),()=>{const _0x387169=_0x223a0a();return null==_0x387169?(_0x33b26c(),_0x4e77de([0x56,0x61,0x6c,0x69,0x64])):_0x4e77de(_0x342bad-_0x387169>(0x1a4688ac^_0x5ed803)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e77de([0x74,0x68,0x65,0x6e])](_0x54d2bd)[_0x4e77de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x54d2bd(_0x4e77de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1f5893=0x3e7ce22c^_0x5ed803;function _0x33b26c(){const _0x3623bf=_0x4e77de([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c29f1(_0x3da113(_0x5889c1)),_0x4ca453=_0x3fc153(_0x2c29f1(window[_0x4e77de([0x4d,0x61,0x74,0x68])][_0x4e77de([0x63,0x65,0x69,0x6c])](_0x342bad/_0x1f5893)));window[_0x4e77de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e77de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3623bf,_0x4ca453);}function _0x223a0a(){const _0x17def1=_0x4e77de([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c29f1(_0x3da113(_0x5889c1)),_0x24b0bb=window[_0x4e77de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e77de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17def1);return _0x24b0bb?window[_0x4e77de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fc153(_0x24b0bb),0x10)*_0x1f5893:null;}function _0x3837a4(_0x2371fd){return new window[(_0x4e77de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e09d6,_0x9f84fc)=>{_0x2371fd[_0x4e77de([0x74,0x68,0x65,0x6e])](_0x5e09d6,_0x9f84fc),window[_0x4e77de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9f84fc,0x3e4bd86c^_0x5ed803);});}}_0x1ebdf2[_0x4e77de([0x6f,0x6e])](_0x4e77de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x172583,_0x4670f8)=>{if(_0x4670f8[0x0]!=_0x5889c1)return _0x54d2bd(_0x4e77de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4670f8[0x1]={..._0x4670f8[0x1],[_0x4e77de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x15ed45};},{[_0x4e77de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e77de([0x68,0x69,0x67,0x68])}),_0x1ebdf2[_0x4e77de([0x6f,0x6e])](_0x4e77de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x29cf72=>{_0x3f4f65(_0x29cf72[_0x4e77de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x16e1ae=!0x0,_0x5a6908(_0x29cf72[_0x4e77de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e77de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e77de([0x6c,0x6f,0x77])}),_0x2f6b61[_0x4e77de([0x74,0x68,0x65,0x6e])](()=>{_0x16e1ae||_0x54d2bd(_0x4e77de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2e3a09(){return _0x1ebdf2[_0x4e77de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e77de([0x76,0x69,0x65,0x77])][_0x4e77de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e77de([0x61,0x75,0x74,0x6f]);}function _0x14ec20(){_0x1ebdf2[_0x4e77de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e77de([0x76,0x69,0x65,0x77])][_0x4e77de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e77de([0x61,0x75,0x74,0x6f]);}}function _0x20b756(_0x136f83){const _0x18853a=[new window[(_0x4e77de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x380d12=>setTimeout(_0x380d12,0x3e433260^_0x5ed803)),_0x2f6b61[_0x4e77de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e77de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a657f=>{const _0x2e4a1a=0x3e4a0cab^_0x5ed803,_0x120844=_0x280a66[_0x4e77de([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x437bb2(){_0x120844[_0x4e77de([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2e4a1a&&_0x5a657f();}_0x437bb2(),_0x120844[_0x4e77de([0x6f,0x6e])](_0x4e77de([0x61,0x64,0x64]),_0x437bb2);})),new window[(_0x4e77de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa52cff=>{function _0x94572d(){for(const _0x1f201d in window)if(window[_0x4e77de([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4e77de([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1f201d))&&window[_0x1f201d]==_0x760016)return _0xa52cff();_0x1ebdf2[_0x4e77de([0x73,0x74,0x61,0x74,0x65])]!=_0x4e77de([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4e77de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x94572d,0x3e4a1f24^_0x5ed803);}_0x5bba6a(_0x4e77de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x94572d();})];return window[_0x4e77de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e77de([0x72,0x61,0x63,0x65])](_0x18853a)[_0x4e77de([0x74,0x68,0x65,0x6e])](()=>_0x136f83);}async function _0xeb5f5c(){if(await _0x2f6b61,_0x5bba6a(_0x4e77de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x10010e=_0x280a66[_0x4e77de([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x6f7ef5=_0x280a66[_0x4e77de([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])](_0x10010e[_0x4e77de([0x69,0x64])]),_0x32c5a7=_0x5c77(_0x4e77de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x32c5a7[_0x4e77de([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x10010e['id'],_0x6f7ef5?_0x6f7ef5['id']:null,!0x0),_0x32c5a7[_0x4e77de([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4e77de([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x32c5a7[_0x4e77de([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x32c5a7[_0x4e77de([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x24c504,void(_0x32c5a7[_0x4e77de([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x24c504);}if(_0x5bba6a(_0x4e77de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x528478=_0x5c77(_0x4e77de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x528478[_0x4e77de([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4e77de([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x528478[_0x4e77de([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x528478[_0x4e77de([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x24c504,_0x528478[_0x4e77de([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x24c504;}_0x1ebdf2[_0x4e77de([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e77de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24c504,_0x1ebdf2[_0x4e77de([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e77de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24c504,_0x1ebdf2[_0x4e77de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e77de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46c57d(){return _0x5bba6a(_0x4e77de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5c77(_0x4e77de([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4e77de([0x73,0x74,0x61,0x74,0x65])]==_0x4e77de([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x430ed9(){return _0x5bba6a(_0x4e77de([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x257038(){return _0x5bba6a(_0x4e77de([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2a10f2(_0x56f86b){const _0x3d3516=_0x309c63();_0x1ebdf2[_0x3d3516]=_0x4e77de([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])+_0x56f86b,_0x56f86b[_0x4e77de([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4e77de([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x309c63()]=_0x760016),_0x56f86b!=_0x4e77de([0x56,0x61,0x6c,0x69,0x64])&&_0xeb5f5c();}function _0x309c63(){const _0x27e307=window[_0x4e77de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e77de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e77de([0x6e,0x6f,0x77])]())[_0x4e77de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e77de([0x2e]),'');let _0x5317c8=_0x4e77de([0x73]);for(let _0x296853=0x0;_0x296853<_0x27e307[_0x4e77de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x296853+=0x2){let _0x3553fe=window[_0x4e77de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x27e307[_0x4e77de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x296853,_0x296853+0x2));_0x3553fe>=_0xca8a5d[_0x4e77de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3553fe-=_0xca8a5d[_0x4e77de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5317c8+=_0xca8a5d[_0x3553fe];}return _0x5317c8;}function _0x5d758f(){const _0x1b3b97=_0x406410[_0x4e77de([0x73,0x70,0x6c,0x69,0x74])](_0x4e77de([0x2e]));if(0x3!=_0x1b3b97[_0x4e77de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34a925(_0x1b3b97[0x1]);function _0x34a925(_0x422e19){const _0x49ced9=_0x794166(_0x422e19);return _0x49ced9&&_0x593273()?_0x49ced9:null;function _0x593273(){const _0x4219a0=_0x49ced9[_0x4e77de([0x6a,0x74,0x69])],_0x333bb8=window[_0x4e77de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4219a0[_0x4e77de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4219a0[_0x4e77de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x59f612={..._0x49ced9,[_0x4e77de([0x6a,0x74,0x69])]:_0x4219a0[_0x4e77de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4219a0[_0x4e77de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x59f612[_0x4e77de([0x76,0x63])],_0x3da113(_0x59f612)==_0x333bb8;}}}async function _0x2d0a12(){let _0x466526=!0x0;try{const _0x30d67a=_0x406410[_0x4e77de([0x73,0x70,0x6c,0x69,0x74])](_0x4e77de([0x2e])),[_0x35cac0,_0x3cb196,_0x5eae5b]=_0x30d67a;return _0x4cc052(_0x35cac0),await _0x2d5000(_0x35cac0,_0x3cb196,_0x5eae5b),_0x466526;}catch(_0x3ea789){return!0x1;}function _0x4cc052(_0x56b623){const _0x2f9fd9=_0x794166(_0x56b623);_0x2f9fd9&&_0x2f9fd9[_0x4e77de([0x61,0x6c,0x67])]==_0x4e77de([0x45,0x53,0x32,0x35,0x36])||(_0x466526=!0x1);}async function _0x2d5000(_0x2dce19,_0x54538f,_0x9688c9){const _0x17e685=window[_0x4e77de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e77de([0x66,0x72,0x6f,0x6d])](_0x23bfc6(_0x9688c9),_0x1b3966=>_0x1b3966[_0x4e77de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4467a1=new window[(_0x4e77de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e77de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2dce19+_0x4e77de([0x2e])+_0x54538f),_0x4bcc09=window[_0x4e77de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e77de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4bcc09)return;const _0x409371=await _0x4bcc09[_0x4e77de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e77de([0x6a,0x77,0x6b]),_0x49e2ef,{[_0x4e77de([0x6e,0x61,0x6d,0x65])]:_0x4e77de([0x45,0x43,0x44,0x53,0x41]),[_0x4e77de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e77de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e77de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4bcc09[_0x4e77de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e77de([0x6e,0x61,0x6d,0x65])]:_0x4e77de([0x45,0x43,0x44,0x53,0x41]),[_0x4e77de([0x68,0x61,0x73,0x68])]:{[_0x4e77de([0x6e,0x61,0x6d,0x65])]:_0x4e77de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x409371,_0x17e685,_0x4467a1)||(_0x466526=!0x1);}}function _0x794166(_0x17eada){return _0x17eada[_0x4e77de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e77de([0x65,0x79]))?JSON[_0x4e77de([0x70,0x61,0x72,0x73,0x65])](_0x23bfc6(_0x17eada)):null;}function _0x23bfc6(_0x33d393){return window[_0x4e77de([0x61,0x74,0x6f,0x62])](_0x33d393[_0x4e77de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e77de([0x2b]))[_0x4e77de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e77de([0x2f])));}function _0x3da113(_0x26794d){let _0x2d9aae=0x1505;function _0x53e438(_0x849e6){for(let _0x402f4c=0x0;_0x402f4c<_0x849e6[_0x4e77de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x402f4c++){const _0x5a04ba=_0x849e6[_0x4e77de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x402f4c);_0x2d9aae=(_0x2d9aae<<0x5)+_0x2d9aae+_0x5a04ba,_0x2d9aae&=_0x2d9aae;}}function _0x175f77(_0x495dd5){Array[_0x4e77de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x495dd5)?_0x495dd5[_0x4e77de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x175f77):_0x495dd5&&typeof _0x495dd5==_0x4e77de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e77de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x495dd5)[_0x4e77de([0x73,0x6f,0x72,0x74])]()[_0x4e77de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x323987,_0x2f0d1e])=>{_0x53e438(_0x323987),_0x175f77(_0x2f0d1e);}):_0x53e438(window[_0x4e77de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x495dd5));}return _0x175f77(_0x26794d),_0x2d9aae>>>0x0;}function _0x2c29f1(_0xc6d4b1){return _0xc6d4b1[_0x4e77de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e77de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e77de([0x30]));}function _0x3fc153(_0x2eca02){return _0x2eca02[_0x4e77de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e77de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e77de([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bba6a(_0x5790c7){return _0x1ebdf2[_0x4e77de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e77de([0x68,0x61,0x73])](_0x5790c7);}function _0x5c77(_0x24540f){return _0x1ebdf2[_0x4e77de([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e77de([0x67,0x65,0x74])](_0x24540f);}function _0x24c504(){}function _0x4e77de(_0x4b5c8b){return _0x4b5c8b['map'](_0x529747=>String['fromCharCode'](_0x529747))['join']('');}_0x2a10f2(await _0x157027());}(this);}['createRevision'](_0x31e929){const _0x227c69=this['editor']['plugins']['get']('Users');return new a({'id':_0x31e929['id'],'name':_0x31e929['name'],'creator':_0x31e929['creatorId']?_0x227c69['getUser'](_0x31e929['creatorId']):null,'diffData':_0x31e929['diffData']||_0x31e929['data'],'authors':_0x31e929['authorsIds']['map'](_0x1220b7=>_0x227c69['getUser'](_0x1220b7)),'createdAt':new Date(_0x31e929['createdAt']),'attributes':_0x31e929['attributes'],'fromVersion':_0x31e929['fromVersion'],'toVersion':_0x31e929['toVersion']});}['addRevision'](_0x5cc1ff,_0xbfa7a=0x0){this['_revisions']['add'](_0x5cc1ff,_0xbfa7a);}['getRevision'](_0x223c0f){return this['_revisions']['get'](_0x223c0f);}['getRevisions'](_0x199c4c={'toJSON':!0x1}){const _0x1f8f08=Array['from'](this['_revisions']);return _0x1f8f08['reverse'](),_0x199c4c['toJSON']?_0x1f8f08['map'](_0xe06cda=>_0xe06cda['toJSON']()):_0x1f8f08;}['getIndex'](_0x4295fb){return this['_revisions']['getIndex'](_0x4295fb);}['getEarlierVisibleRevision'](_0x582908){const [,_0x85ae36]=this['getRevisionsIterator'](_0x582908,{'direction':'earlier'});return _0x85ae36;}['getLaterVisibleRevision'](_0x347cc5){const [,_0x57a1b1]=this['getRevisionsIterator'](_0x347cc5,{'direction':'later'});return _0x57a1b1;}['getRevisionsInDiff'](_0x2105c9){const _0x2db0f0=[];for(const _0x2833aa of this['getRevisionsIterator'](_0x2105c9['newRevisionId']))if(_0x2db0f0['push'](_0x2833aa),_0x2833aa['id']===_0x2105c9['oldRevisionId'])break;return _0x2db0f0;}*['getRevisionsIterator'](_0x4fa20a,{direction:_0x230ffd='earlier',filter:_0x60caea=()=>!0x0}={}){const _0x429323='earlier'===_0x230ffd?0x1:-0x1;let _0x1d4998=this['_revisions']['get'](_0x4fa20a),_0x41e121=this['getIndex'](_0x1d4998);for(yield _0x1d4998;_0x1d4998;){if(_0x41e121+=_0x429323,_0x1d4998=this['getRevision'](_0x41e121),!_0x1d4998)return;_0x60caea(_0x1d4998)&&(yield _0x1d4998);}}}function R(_0x5328a1,_0x2744c2,_0x497573){const t=_0x5328a1['t'];switch(_0x2744c2){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'},_0x497573);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x497573);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':_0x3bceea,'a':_0x330855,'e':_0x302f02,'r':_0x2b842a,'u':_0x523f61};class l extends _0x407311{['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[_0x12faa4,j,_0x5c8b71];}constructor(_0xd7a838){super(_0xd7a838),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 _0x4e38e=_0x3dbcc6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4e38e},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 _0x521b56=this['repository']['getRevision'](0x0),_0x4fa971=_0x521b56&&null===_0x521b56['creator']?_0x521b56:null;if(this['_continueCurrentRevision']=!!_0x4fa971&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2dc63b=this['_source']['getCurrentRevisionId'](),_0x1baa0e=this['repository']['getRevision'](_0x2dc63b);if(_0x1baa0e)this['_startingVersion']=_0x1baa0e['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x32a3a5=this['_source']['history']['_operations']['find'](_0x45b609=>!_0x45b609['_isInit']),_0x500c94=_0x32a3a5?_0x32a3a5['baseVersion']:this['_source']['history']['version'];_0x521b56?(_0x521b56['toVersion']<_0x500c94&&_0x521b56['_update']({'toVersion':_0x500c94}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4fa971['id'],this['_startingVersion']=_0x4fa971['fromVersion']):(this['_startingVersion']=_0x521b56['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x500c94,this['_continueCurrentRevision']=!0x1);}}else _0x4fa971&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4fa971['toVersion'],this['editor']['model']['document']['history']['version']),_0x4fa971['fromVersion']===_0x4fa971['toVersion']?(0x0!==_0x4fa971['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fa971['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fa971['id'],this['_startingVersion']=_0x4fa971['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',_0x4c4e40=>!_0x4c4e40),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4706a2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2984ce;for(const _0xad6f4a in _0x4706a2){const _0x576fd8=_0xad6f4a,_0x5a3398=_0x4706a2[_0x576fd8];if('revisionHistoryLicenseKeyValid'==_0x5a3398||'revisionHistoryLicenseKeyInvalid'==_0x5a3398||'revisionHistoryLicenseKeyExpired'==_0x5a3398||'revisionHistoryLicenseKeyDomainLimit'==_0x5a3398||'revisionHistoryLicenseKeyNotAllowed'==_0x5a3398||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5a3398||'revisionHistoryLicenseKeyTrialLimit'==_0x5a3398||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5a3398||'revisionHistoryLicenseKeyUsageLimit'==_0x5a3398){delete _0x4706a2[_0x576fd8],_0x2984ce=_0x5a3398,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2984ce&&_0x4706a2['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2984ce&&_0x4706a2['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2984ce&&_0x4706a2['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2984ce&&_0x4706a2['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2984ce&&_0x4706a2['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2984ce&&_0x4706a2['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2984ce&&_0x4706a2['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2984ce&&_0x4706a2['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5a39dd=this['repository']['getRevision'](0x0),_0x23dfc7=await this['getRevisionDocumentData'](_0x5a39dd),_0x52136c=await this['getRevisionRootsAttributes'](_0x5a39dd);this['_replaceEditorDataWithRevisionData'](_0x23dfc7,_0x52136c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2b6d90){this['_source']=_0x2b6d90;}async['update'](){const _0x1243ba=await this['_source']['getLatestVersion']();if(_0x1243ba>this['currentRevision']['toVersion']){await this['_loadState']();const _0x518fd4=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1243ba});_0x518fd4['authors']=_0x518fd4['authorsIds']['map'](_0x4f2f06=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f2f06)),this['currentRevision']['_update'](_0x518fd4);}}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'](_0x490784={},_0x45cd0f=null){const _0x2577ba=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x45cd0f>this['currentRevision']['toVersion']&&(_0x45cd0f=null),null===_0x45cd0f&&(_0x45cd0f=await this['_source']['getLatestVersion']());const _0x3930cc=this['_getFromVersion'](_0x45cd0f),_0x28916a=this['buildRevisionData']({'from':_0x3930cc,'to':_0x45cd0f});if(this['currentRevision']['toVersion']<_0x45cd0f){const _0x378bb8=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x45cd0f,'to':_0x45cd0f});_0x378bb8['authors']=[],_0x378bb8['authorsIds']=[],_0x378bb8['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x378bb8,!0x0),delete _0x378bb8['authors'],_0x2577ba['push'](_0x378bb8);}_0x490784['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x490784['name']=_0x490784['name']||null,_0x490784['id']=_0x490784['id']||_0x3dbcc6(),_0x490784={..._0x490784,..._0x28916a};const _0x402e04=this['addRevisionData'](_0x490784);_0x2577ba['push'](_0x490784);const _0x42bef6=this['repository']['getIndex'](_0x402e04);if(0x0!==_0x42bef6){const _0x387a84=this['repository']['getRevision'](_0x42bef6-0x1);if(_0x387a84['fromVersion']!==_0x45cd0f){const _0x3a295d=this['_revisionDataBuilder']['getData'](_0x45cd0f,_0x387a84['toVersion']),_0x3ba241={'id':_0x387a84['id'],'diffData':_0x3a295d['diffData'],'authorsIds':_0x3a295d['authorsIds'],'authors':_0x3a295d['authorsIds']['map'](_0x5dc46a=>this['editor']['plugins']['get']('Users')['getUser'](_0x5dc46a)),'fromVersion':_0x45cd0f};_0x387a84===this['currentRevision']&&(_0x3ba241['createdAt']=new Date(_0x490784['createdAt']['getTime']()+0xa)),_0x387a84['_update'](_0x3ba241,!0x0),delete _0x3ba241['authors'],_0x2577ba['push'](_0x3ba241);}}if(this['adapter']){for(const _0x63a7c5 of _0x2577ba)this['_bufferUpdate'](_0x63a7c5['id'],_0x63a7c5,!0x0);this['sendBufferedUpdates']();}return _0x402e04;}['addRevisionData'](_0x421d3a){const _0x5e62ca=this['repository']['createRevision'](_0x421d3a);return this['adapter']&&_0x5e62ca['on']('_update',(_0x46f963,_0x58b3d5,_0x16ef35)=>{_0x16ef35||(this['_bufferUpdate'](_0x58b3d5['id'],_0x58b3d5,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5e62ca,this['_findInsertionIndex'](_0x5e62ca)),_0x5e62ca;}async['getRevisionDocumentData'](_0x568bf1){await this['_loadRevisionData'](_0x568bf1);const _0x187a01={};for(const _0x15ef5d in _0x568bf1['diffData']){if(_0x568bf1['diffData'][_0x15ef5d]['attachChange']&&!_0x568bf1['diffData'][_0x15ef5d]['attachChange']['isAttached'])continue;const _0x5b0739=this['_removeRevisionMarkers'](JSON['parse'](_0x568bf1['diffData'][_0x15ef5d]['insertions'])),_0x4c3eee=this['editor']['editing']['view']['document'],_0x3f365a=new _0x49605f(_0x4c3eee,_0x5b0739['map'](_0x176681=>V(_0x176681,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x187a01[_0x15ef5d]=this['editor']['data']['processor']['toData'](_0x3f365a),this['editor']['data']['processor']['useFillerType']('default');}return _0x187a01;}async['getRevisionRootsAttributes'](_0xe78c9c){await this['_loadRevisionData'](_0xe78c9c);const _0x11a696={};for(const _0x31fb11 in _0xe78c9c['diffData'])_0xe78c9c['diffData'][_0x31fb11]['attachChange']&&!_0xe78c9c['diffData'][_0x31fb11]['attachChange']['isAttached']||(_0x11a696[_0x31fb11]=_0xe78c9c['diffData'][_0x31fb11]['attributesAfter']||{});return _0x11a696;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x269653=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x4ecf99=0x0;_0x4ecf99<_0x269653['length'];_0x4ecf99++){const _0xa270bd=_0x269653[_0x4ecf99];let _0x369c0d=!0x1;for(const _0x57bea1 of Object['keys'](_0xa270bd))void 0x0===_0xa270bd[_0x57bea1]?delete _0xa270bd[_0x57bea1]:'id'!==_0x57bea1&&(_0x369c0d=!0x0);_0x369c0d||(_0x269653[_0x4ecf99]=null);}if(_0x269653=_0x269653['filter'](_0x24cdec=>null!==_0x24cdec),!_0x269653['length'])return;for(let _0x256df3=0x0;_0x256df3<_0x269653['length'];_0x256df3++){const _0x305eab=_0x269653[_0x256df3];void 0x0!==_0x305eab['fromVersion']&&void 0x0===_0x305eab['toVersion']&&(_0x305eab['toVersion']=this['repository']['getRevision'](_0x305eab['id'])['toVersion']),void 0x0!==_0x305eab['toVersion']&&void 0x0===_0x305eab['fromVersion']&&(_0x305eab['fromVersion']=this['repository']['getRevision'](_0x305eab['id'])['fromVersion']);}const _0x3b55a0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x269653,_0x3b55a0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3bbb56=>{if(_0x3bbb56){for(const _0x1a6457 of _0x3bbb56)this['setRevisionData']({'id':_0x1a6457['id'],'createdAt':_0x1a6457['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xacea4,_0x356a3f){let _0x39e022=this['editor']['config']['get']('initialData'),_0x2e6eb8=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x39e022){_0x39e022={};for(const _0x2eaea4 of this['editor']['model']['document']['getRootNames']())_0x39e022[_0x2eaea4]='';}if('string'==typeof _0x39e022&&(_0x39e022={'main':_0x39e022}),void 0x0===_0x2e6eb8){_0x2e6eb8={};for(const _0x91bac9 of this['editor']['model']['document']['getRootNames']())_0x2e6eb8[_0x91bac9]={};}let _0x5c6f7e=!0x1;const _0x342d3d=Object['keys'](_0x39e022),_0x50901d=Object['keys'](_0xacea4);for(const _0x5f3f4e of _0x342d3d){if(_0x39e022[_0x5f3f4e]!==_0xacea4[_0x5f3f4e]&&''!==_0x39e022[_0x5f3f4e]['trim']()){_0x5c6f7e=!0x0;break;}if(!_0x3a5dc0(_0x2e6eb8[_0x5f3f4e],_0x356a3f[_0x5f3f4e])&&Object['keys'](_0x2e6eb8[_0x5f3f4e])['length']>0x0){_0x5c6f7e=!0x0;break;}}_0x5c6f7e||(_0x5c6f7e=_0x50901d['some'](_0x58559f=>!this['editor']['model']['document']['getRoot'](_0x58559f))),_0x5c6f7e&&_0x15e511('editor-initial-data-replaced-with-revision-data',{'editorData':_0x39e022,'editorRootsAttributes':_0x2e6eb8,'revisionData':_0xacea4,'revisionRootsAttributes':_0x356a3f}),this['editor']['config']['set']('initialData',_0xacea4),this['editor']['config']['set']('rootsAttributes',_0x356a3f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3bd1fe=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3bd1fe['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4abba8){const _0xf9d3e1=this['repository']['getRevisions']();_0xf9d3e1['reverse']();let _0x45d546=0x0;for(;_0x45d546<_0xf9d3e1['length'];){const _0x517b9a=_0xf9d3e1[_0x45d546];if(_0x517b9a===this['currentRevision']){_0x45d546++;continue;}if(_0x517b9a['id']===this['_initialRevisionId'])break;const _0x2f5143=_0x4abba8['toVersion']-_0x517b9a['toVersion']||_0x4abba8['fromVersion']-_0x517b9a['fromVersion'];if(_0x2f5143>0x0)break;if(_0x2f5143<0x0)_0x45d546++;else{if(!_0x4abba8['creator']&&_0x517b9a['creator'])break;if(_0x517b9a['creator']||!_0x4abba8['creator']){if(_0x4abba8['createdAt']>_0x517b9a['createdAt'])break;_0x45d546++;}else _0x45d546++;}}return _0x45d546;}['setRevisionData'](_0x55c777){const _0x7b9a0=this['repository']['getRevision'](_0x55c777['id']);if(_0x55c777['createdAt']&&(_0x55c777['createdAt']=new Date(_0x55c777['createdAt'])),_0x55c777['authorsIds']){const _0x31edfb=this['editor']['plugins']['get']('Users');_0x55c777['authors']=_0x55c777['authorsIds']['map'](_0x10435e=>_0x31edfb['getUser'](_0x10435e));}_0x7b9a0['_update'](_0x55c777,!0x0);}['buildRevisionData']({revision:_0x596e67=null,from:_0x58322a=null,to:_0x3ef0d2=null}){_0x58322a=null!==_0x58322a?_0x58322a:_0x596e67['fromVersion'],_0x3ef0d2=null!==_0x3ef0d2?_0x3ef0d2:_0x596e67['toVersion'];const _0x58bcbd=this['_revisionDataBuilder']['getData'](_0x58322a,_0x3ef0d2),_0x40466c={'diffData':_0x58bcbd['diffData'],'authorsIds':_0x58bcbd['authorsIds'],'fromVersion':_0x58322a,'toVersion':_0x3ef0d2};if(!_0x596e67||_0x3ef0d2!==_0x596e67['toVersion']){const _0x217d86=_0x3ef0d2-0x1,_0xbfe070=this['_source']['history']['getOperation'](_0x217d86);_0x40466c['createdAt']=_0xbfe070&&_0xbfe070['createdAt']||new Date();}if(this['_loadedStateData']&&_0x58322a===this['_loadedStateData']['fromVersion']){for(const _0xdd5aa1 of this['_loadedStateData']['authors'])_0x40466c['authorsIds']['includes'](_0xdd5aa1['id'])||_0x40466c['authorsIds']['push'](_0xdd5aa1['id']);}return _0x40466c;}['_loadRevisionData'](_0x827c82){if(!_0x827c82||_0x827c82['diffData'])return Promise['resolve']();{const _0x586853=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x586853,'revisionId':_0x827c82['id']})['then'](_0x2e2bbf=>{_0x827c82['diffData']=_0x2e2bbf['diffData'];});}}['_bufferUpdate'](_0x48b74e,_0x299085,_0xe4f864){if(this['_bufferedUpdates']['has'](_0x48b74e)){const _0x1804c5=this['_bufferedUpdates']['get'](_0x48b74e);_0x299085=_0xe4f864?{..._0x1804c5,..._0x299085}:{..._0x299085,..._0x1804c5};}this['_bufferedUpdates']['set'](_0x48b74e,_0x299085);}['_getFromVersion'](_0x507be0){const _0xb44372=this['repository']['getRevisions']();_0xb44372['reverse'](),_0xb44372['shift']();const _0x1b17e0=_0xb44372['find'](_0x1ff617=>_0x1ff617['toVersion']<=_0x507be0)['toVersion'];return _0x1b17e0<this['_startingVersion']?this['_startingVersion']:_0x1b17e0;}['_createInitialRevision'](_0xae355b){const _0x59ae09=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x59ae09)this['_initialRevisionId']=_0x59ae09['id'];else{const _0x16cd77=!this['editor']['model']['document']['roots']['find'](_0x51e242=>this['editor']['model']['hasContent'](_0x51e242)),_0x25e747=this['editor']['plugins']['get']('Users')['me']['id'],_0x212865=R(this['editor']['locale'],_0x16cd77?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xae355b,'to':_0xae355b,'id':this['_initialRevisionId'],'name':_0x212865,'creatorId':_0x25e747});}}['_createCurrentRevision'](_0x3a19e1){const _0x5b32f6=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5b32f6),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3a19e1,'to':_0x3a19e1,'id':_0x5b32f6,'name':'','creatorId':null}));}['_makeRevision']({name:_0x36f734,from:_0x3368e2,to:_0x105d09,creatorId:_0x2462ba,id:_0x1a5360}){const _0x337d5d=this['buildRevisionData']({'from':_0x3368e2,'to':_0x105d09});_0x337d5d['name']=_0x36f734,_0x337d5d['creatorId']=_0x2462ba,_0x337d5d['id']=_0x1a5360;const _0x540b5c=this['addRevisionData'](_0x337d5d);return this['adapter']&&this['_bufferUpdate'](_0x337d5d['id'],_0x337d5d,!0x0),_0x540b5c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x26bfe3){return(_0x26bfe3=_0x26bfe3['filter'](_0x1cbcdc=>!_0x1cbcdc['name']||'revision-start'!==_0x1cbcdc['name']&&'revision-end'!==_0x1cbcdc['name']))['forEach'](_0x9c9c6a=>{'string'!=typeof _0x9c9c6a&&(_0x9c9c6a['children']=this['_removeRevisionMarkers'](_0x9c9c6a['children']),_0x9c9c6a['attributes']=_0x9c9c6a['attributes']['filter'](_0x4d6149=>!_0x4d6149[0x0]['startsWith']('data-revision-')));}),_0x26bfe3;}}function V(_0x5b8430,_0x39bcf5){const _0x25c1ab=_0x39bcf5['editing']['view']['document'];if('string'==typeof _0x5b8430)return new _0x36a978(_0x25c1ab,_0x5b8430);{const _0x43c6bd=_0x5b8430['children']['map'](_0x2c14e9=>V(_0x2c14e9,_0x39bcf5));return new(C[_0x5b8430['type']]||_0x15326a)(_0x25c1ab,_0x5b8430['name'],_0x5b8430['attributes'],_0x43c6bd);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x414918){this['editor']=_0x414918,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'](_0xcd3e7d){this['source']=_0xcd3e7d;const _0x3ceae7=new Map(),_0x9d5f4=new Map(),_0x3fb5a8=this['editor']['model']['document']['roots']['map'](_0x28d6ec=>_0x28d6ec['rootName']);for(const _0x432a73 of _0x3fb5a8){const _0x555be6=this['editor']['model']['document']['getRoot'](_0x432a73),_0x453cad=F(_0x555be6);_0x3ceae7['set'](_0x432a73,_0x453cad),_0x9d5f4['set'](_0x432a73,Object['fromEntries'](_0x555be6['getAttributes']()));}const _0x3436c3=Array['from'](this['editor']['model']['markers'])['map'](_0x319a2f=>[_0x319a2f['name'],_0x319a2f['getRange']()]),_0x12726f=this['source']['version'];this['_saveMetaData'](_0x12726f,_0x3ceae7,_0x3436c3,_0x9d5f4),this['_startingRevisionId']=this['_revisionId'];const _0x1ddfcb=new Map(),_0x53f658=new Map();for(const _0x5ae79f of _0x3fb5a8){const _0x369be0=B(_0x5ae79f);_0x1ddfcb['set'](_0x5ae79f,_0x369be0),_0x53f658['set'](_0x5ae79f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1ddfcb,[],_0x53f658);}['getData'](_0x5ff552,_0x45d440){if(this['_lastFrom']===_0x5ff552&&this['_lastTo']<=_0x45d440)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x45d440,!0x0);else{if(!this['_savedMetaData']['has'](_0x5ff552)){const _0x52dee7=this['_getPreviousFrom'](_0x5ff552);this['_calculateMetaData'](_0x52dee7,_0x5ff552,!0x1);}this['_calculateMetaData'](_0x5ff552,_0x45d440,!0x0);}return this['_lastFrom']=_0x5ff552,this['_lastTo']=_0x45d440,this['_getState']();}['loadState'](_0x30f5ce){this['_reset'](),this['_lastFrom']=_0x30f5ce['fromVersion'],this['_lastTo']=_0x30f5ce['toVersion'];for(const _0x1d8a20 in _0x30f5ce['diffData']){const _0x2ea2bc=_0x30f5ce['diffData'][_0x1d8a20]['attachChange'],_0x431d85=_0xdba081(_0x30f5ce['diffData'][_0x1d8a20]['attributesBefore'])||{},_0x2c9909=this['_makeModelFromViewString'](_0x30f5ce['diffData'][_0x1d8a20]['deletions']);_0x2c9909['rootName']=_0x1d8a20,_0x2c9909['_isAttached']=!_0x2ea2bc||!_0x2ea2bc['isAttached'],_0x2c9909['isAttached']=()=>_0x2c9909['_isAttached'],this['_baseRoots']['set'](_0x1d8a20,_0x2c9909),this['_baseRootsAttributes']['set'](_0x1d8a20,_0x431d85),_0x2ea2bc&&this['_touchedRoots']['set'](_0x1d8a20,_0x2ea2bc);const _0x69c4e2=this['_makeIdsRoot'](_0x2c9909);this['_baseIdsRoots']['set'](_0x1d8a20,_0x69c4e2);for(const [_0x4679d7,_0x352cdc]of _0x2c9909['markers']){if(!_0x4679d7['startsWith']('revision:'))continue;const _0x19ac83=_0x4679d7['split'](':')[0x2];for(const _0x319d5a of _0x352cdc['getWalker']({'singleCharacters':!0x0})){const _0x1f27a9=this['_getVidAttributeName'](_0x319d5a),_0x11ee10='elementEnd'==_0x319d5a['type']?_0x319d5a['previousPosition']['path']['slice'](0x0,-0x1):_0x319d5a['previousPosition']['path'],_0x42eb3e=_0x69c4e2['getNodeByPath'](_0x11ee10)['getAttribute'](_0x1f27a9);this['_touched']['set'](_0x42eb3e,{'userId':_0x19ac83});}}}this['_startingRevisionId']=this['_revisionId'];const _0x373c75=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5cdbab=>!this['_touched']['has'](_0x5cdbab));let _0x1efd20=0x0;const _0x387290=new Map();for(const _0x3231c5 in _0x30f5ce['diffData']){const _0x2d1fb7=_0x30f5ce['diffData'][_0x3231c5]['attachChange'],_0x35a985=_0xdba081(_0x30f5ce['diffData'][_0x3231c5]['attributesAfter'])||{},_0x28297d=this['_makeModelFromViewString'](_0x30f5ce['diffData'][_0x3231c5]['insertions']);_0x28297d['rootName']=_0x3231c5,_0x28297d['_isAttached']=!_0x2d1fb7||_0x2d1fb7['isAttached'],_0x28297d['isAttached']=()=>_0x28297d['_isAttached'],this['_diffRoots']['set'](_0x3231c5,_0x28297d),this['_diffRootsAttributes']['set'](_0x3231c5,_0x35a985);const _0x4b5746=this['_makeIdsRoot'](_0x28297d,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3231c5,_0x4b5746),_0x387290['set'](_0x3231c5,_0x28297d['isAttached']()?_0x35a985:{});for(const [_0x52deaa,_0x34b8ad]of _0x28297d['markers']){if(!_0x52deaa['startsWith']('revision:'))continue;const _0x3b59d3=_0x52deaa['split'](':')[0x2];for(const _0x494d66 of _0x34b8ad['getWalker']({'singleCharacters':!0x0})){const _0x23858e=this['_getVidAttributeName'](_0x494d66),_0x815a31=this['_revisionId']++,_0x548060='elementEnd'==_0x494d66['type']?_0x494d66['previousPosition']['path']['slice'](0x0,-0x1):_0x494d66['previousPosition']['path'];_0x4b5746['getNodeByPath'](_0x548060)['_setAttribute'](_0x23858e,_0x815a31),this['_touched']['set'](_0x815a31,{'userId':_0x3b59d3});}}for(const _0x39b510 of this['editor']['model']['createRangeIn'](_0x28297d)['getWalker']({'singleCharacters':!0x0})){const _0x8f935c=this['_getVidAttributeName'](_0x39b510),_0x43fc56='elementEnd'==_0x39b510['type']?_0x39b510['previousPosition']['path']['slice'](0x0,-0x1):_0x39b510['previousPosition']['path'],_0x38a318=_0x4b5746['getNodeByPath'](_0x43fc56);_0x38a318['getAttribute'](_0x8f935c)>0x0||_0x38a318['_setAttribute'](_0x8f935c,_0x373c75[_0x1efd20++]);}for(const [_0x222a89,_0x29bf68]of _0x28297d['markers'])_0x222a89['startsWith']('revision:')||this['_markers']['set'](_0x222a89,_0x29bf68);}const _0x3f09a8=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3f09a8),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f09a8,0x1));const _0x13fa12=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x13fa12),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x13fa12,0x1));const _0xf32fb9=Array['from'](this['_diffRoots'])['map'](([_0x55c923,_0x95a06d])=>[_0x55c923,F(_0x95a06d)]);this['_saveMetaData'](this['_lastTo'],_0xf32fb9,this['_markers'],_0x387290);}['_makeModelFromViewString'](_0xfc8d74){const _0x54a39e=JSON['parse'](_0xfc8d74),_0x389c1b=this['editor']['editing']['view']['document'],_0xa5a76d=new _0x49605f(_0x389c1b,_0x54a39e['map'](_0xfa9fab=>V(_0xfa9fab,this['editor'])));return this['editor']['data']['toModel'](_0xa5a76d);}['_saveMetaData'](_0x45815b,_0x4c88b9,_0x24da87,_0x437325){const _0x176e7e=new Map(_0x4c88b9),_0x25b910=new Map(_0xdba081(_0x437325)),_0x15a35f=new Map();for(const [_0x306d40,_0x51fe33]of _0x24da87)_0x15a35f['set'](_0x306d40,{'start':_0x51fe33['start']['clone'](),'end':_0x51fe33['end']['clone'](),'rootName':_0x51fe33['root']['rootName']});this['_savedMetaData']['set'](_0x45815b,{'roots':_0x176e7e,'markers':_0x15a35f,'rootsAttributes':_0x25b910});}['_removeMetaData'](_0x5e786a){this['_savedMetaData']['delete'](_0x5e786a);}['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'](_0x28c482,_0x4288dd=null){let _0x2b4af9=null;_0x28c482['is']('documentFragment')||(_0x2b4af9=new ft(_0x28c482['name'],{'vid_start':null===_0x4288dd?this['_revisionId']++:_0x4288dd++}));const _0x424879=[];for(const _0xc24908 of _0x28c482['getChildren']())if(_0xc24908['is']('element')){_0x424879['push'](this['_makeIdsRoot'](_0xc24908,_0x4288dd));const _0x192bcd=_0x424879[_0x424879['length']-0x1];null!==_0x4288dd&&(_0x4288dd=_0x192bcd['is']('element','$text')?_0x192bcd['getAttribute']('vid')+0x1:_0x192bcd['getAttribute']('vid_end')+0x1);}else{for(let _0x38bafb=0x0;_0x38bafb<_0xc24908['offsetSize'];_0x38bafb++)_0x424879['push'](new ft('$text',{'vid':null===_0x4288dd?this['_revisionId']++:_0x4288dd++}));}if(_0x28c482['is']('documentFragment')){const _0x2743fe=B(_0x28c482['rootName']);return _0x2743fe['_insertChild'](0x0,_0x424879),_0x2743fe;}return _0x2b4af9['_setAttribute']('vid_end',null===_0x4288dd?this['_revisionId']++:_0x4288dd++),_0x2b4af9['_insertChild'](0x0,_0x424879),_0x2b4af9;}['_calculateMetaData'](_0x34399e,_0x3512a0,_0x363959){this['_reset']();const {roots:_0x22f303,markers:_0x2c1098,rootsAttributes:_0x37a852}=this['_savedMetaData']['get'](_0x34399e);this['_baseRoots']=new Map(_0x22f303),this['_baseRootsAttributes']=new Map(_0xdba081(_0x37a852));for(const [_0x1d67bc,_0x125efb]of this['_baseRoots'])if('$graveyard'!==_0x1d67bc&&(this['_diffRoots']['set'](_0x1d67bc,F(_0x125efb)),this['_diffRootsAttributes']=new Map(_0xdba081(_0x37a852)),_0x363959)){const _0x241a50=this['_revisionId'];this['_idsRoots']['set'](_0x1d67bc,this['_makeIdsRoot'](_0x125efb)),this['_baseIdsRoots']['set'](_0x1d67bc,this['_makeIdsRoot'](_0x125efb,_0x241a50));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x363959&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x57ffd8,_0x24fe40]of _0x2c1098){const _0x35ac55=this['_baseRoots']['get'](_0x24fe40['rootName']),_0x3df8f6=this['_diffRoots']['get'](_0x24fe40['rootName']),_0x5105f8=new vt(this['_fixPosition'](_0x24fe40['start'],_0x35ac55),this['_fixPosition'](_0x24fe40['end'],_0x35ac55)),_0x1d3ea2=this['_fixRange'](_0x5105f8,_0x3df8f6);_0x35ac55['markers']['set'](_0x57ffd8,_0x5105f8),this['_markers']['set'](_0x57ffd8,_0x1d3ea2);}this['_applyOperations'](_0x34399e,_0x3512a0,_0x363959);}['_applyOperations'](_0x415f7e,_0x398eec,_0x240584){for(const _0x4bc4b0 of this['source']['getOperations'](_0x415f7e,_0x398eec))this['_handleOperation'](_0x4bc4b0,_0x240584);for(const _0x3c8697 of this['_diffRoots']['values']())_0x3c8697['markers']['clear']();for(const [_0x4ed379,_0xb0c41c]of this['_markers']){this['_diffRoots']['get'](_0xb0c41c['root']['rootName'])['markers']['set'](_0x4ed379,_0xb0c41c['clone']());}const _0x50b8c8=new Map(),_0x2d1a89=new Map();for(const [_0x1c3129,_0x2a576a]of this['_diffRoots'])_0x50b8c8['set'](_0x1c3129,F(_0x2a576a)),_0x2d1a89['set'](_0x1c3129,this['_diffRootsAttributes']['get'](_0x1c3129));this['_saveMetaData'](_0x398eec,_0x50b8c8,this['_markers'],_0x2d1a89);}['_getPreviousFrom'](_0x17d1dd){const _0x2289df=Array['from'](this['_savedMetaData']['keys']());_0x2289df['sort']((_0x740355,_0x4f1ca1)=>_0x740355-_0x4f1ca1),_0x2289df['reverse']();for(const _0x31aaa4 of _0x2289df)if(_0x31aaa4<_0x17d1dd)return _0x31aaa4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5bf599,_0x4fe2a2){const _0x3d07f6=Array['from'](_0x4fe2a2['markers'])['map'](([_0x520bb4,_0x1d7b00])=>[_0x520bb4,this['_fixRange'](_0x1d7b00,_0x5bf599)]);_0x5bf599['markers']=new Map(_0x3d07f6);}['_transformMarkers'](_0x319b82){for(const _0x1e6589 of this['_markers']['values']()){const _0x49e670=_0x1e6589['getTransformedByOperation'](_0x319b82),_0x504c9d=vt['_createFromRanges'](_0x49e670);_0x1e6589['start']=_0x504c9d['start'],_0x1e6589['end']=_0x504c9d['end'];}}['_handleOperation'](_0xff93b0,_0x58682b){if('addRoot'!=_0xff93b0['type']&&'detachRoot'!=_0xff93b0['type']){if('insert'==_0xff93b0['type']){const _0x12b3c2=_0xff93b0['position']['root']['rootName'];this['_diffRoots']['has'](_0x12b3c2)||(this['_diffRoots']['set'](_0x12b3c2,B(_0x12b3c2,!0x0)),this['_diffRootsAttributes']['set'](_0x12b3c2,{}),_0x58682b&&this['_idsRoots']['set'](_0x12b3c2,B(_0x12b3c2,!0x0)));}else{if('addRootAttribute'==_0xff93b0['type']||'removeRootAttribute'==_0xff93b0['type']||'changeRootAttribute'==_0xff93b0['type'])return void this['_handleRootAttributeOperation'](_0xff93b0);'marker'==_0xff93b0['type']&&this['_handleMarkerOperation'](_0xff93b0);}if('marker'!==_0xff93b0['type']){const _0x6a98af=this['_cloneOperation'](_0xff93b0,this['_diffRoots']);_0x6a98af['_execute'](),this['_transformMarkers'](_0x6a98af);}if(_0x58682b)switch(_0xff93b0['type']){case'insert':this['_handleInsertOperation'](_0xff93b0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xff93b0);break;case'merge':this['_handleMergeOperation'](_0xff93b0);break;case'split':this['_handleSplitOperation'](_0xff93b0);}}else this['_handleRootOperation'](_0xff93b0,_0x58682b);}['_cloneOperation'](_0x119272,_0x58bbe3){const _0x28e039=_0x119272['clone']();return _0x28e039['_authorId']=_0x119272['_authorId'],this['_fixOperation'](_0x28e039,_0x58bbe3),_0x28e039;}['_getBaseVids'](_0x26eadf){return _0x26eadf['map'](_0x1c1b80=>{const _0x26394e=this['_getVidAttributeName'](_0x1c1b80);return Number(_0x1c1b80['item']['getAttribute'](_0x26394e));});}['_generateTape'](_0x1f2e87,_0x1adc88){if(_0x1f2e87['is']('element','$text'))_0x1adc88['push']({'item':_0x1f2e87,'type':'text'});else{_0x1f2e87['is']('element')&&_0x1adc88['push']({'item':_0x1f2e87,'type':'elementStart'});for(const _0x33969b of _0x1f2e87['getChildren']())this['_generateTape'](_0x33969b,_0x1adc88);_0x1f2e87['is']('element')&&_0x1adc88['push']({'item':_0x1f2e87,'type':'elementEnd'});}return _0x1adc88;}['_getState'](){const _0x4800eb=new Map(this['_touched']),_0x5e8f5d=new Map(_0x4800eb),_0x3b2428=new Map(),_0x334eb5={'insertions':{},'deletions':{}},_0x480132={'insertions':{},'deletions':{}},_0x2bf348=new Map(),_0x8eb361=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x8eb361['delete']('$graveyard');for(const _0x549090 of _0x8eb361){const _0x51a397=this['_diffRoots']['get'](_0x549090)||B(_0x549090,!0x1),_0x441822=this['_baseRoots']['get'](_0x549090)||B(_0x549090,!0x1);_0x51a397['isAttached']()||_0x441822['isAttached']()?(_0x334eb5['insertions'][_0x549090]=F(_0x51a397),_0x334eb5['deletions'][_0x549090]=F(_0x441822),this['_copyMarkers'](_0x334eb5['deletions'][_0x549090],_0x441822),this['_copyMarkers'](_0x334eb5['insertions'][_0x549090],_0x51a397),_0x480132['insertions'][_0x549090]=this['_generateTape'](this['_idsRoots']['get'](_0x549090),[]),_0x480132['deletions'][_0x549090]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x549090)||B(_0x549090,!0x1),[])):_0x8eb361['delete'](_0x549090);}for(const _0xeb7ebf of _0x8eb361){const _0x14f1b9=_0x480132['insertions'][_0xeb7ebf];for(const _0x42766f of _0x14f1b9){const _0x358bd1=this['_getVidAttributeName'](_0x42766f),_0x175bec=_0x42766f['item']['getAttribute'](_0x358bd1);_0x5e8f5d['delete'](_0x175bec),_0x175bec>=this['_startingRevisionId']&&_0x3b2428['set'](_0x175bec,_0x4800eb['get'](_0x175bec));}}for(const _0x46941a of _0x8eb361){const _0x18a9ac=_0x480132['insertions'][_0x46941a],_0x3ab6a0=this['_getBaseVids'](_0x480132['deletions'][_0x46941a]);let _0x3f5f66=0x0;for(const _0x1bfb00 of _0x18a9ac){const _0x147aa9=this['_getVidAttributeName'](_0x1bfb00),_0xd6e575=_0x1bfb00['item']['getAttribute'](_0x147aa9);if(!_0x3b2428['has'](_0xd6e575)&&!_0x2bf348['has'](_0xd6e575)){if(_0x5e8f5d['has'](_0xd6e575))_0x3f5f66++;else{if(_0xd6e575!=_0x3ab6a0[_0x3f5f66]){const _0x5e8361=_0x4800eb['get'](_0xd6e575)||_0x4800eb['get'](_0x3ab6a0[_0x3f5f66]);for(;_0xd6e575!=_0x3ab6a0[_0x3f5f66];)_0x5e8f5d['has'](_0x3ab6a0[_0x3f5f66])||(_0x2bf348['set'](_0x3ab6a0[_0x3f5f66],_0x5e8361),_0x4800eb['set'](_0x3ab6a0[_0x3f5f66],_0x5e8361)),_0x3f5f66++;}_0x3f5f66++;}}}}for(const _0x4aaefc of _0x8eb361){const _0x359b53=_0x480132['insertions'][_0x4aaefc];for(const _0x4d33bf of _0x359b53){const _0x3ca0b9=this['_getVidAttributeName'](_0x4d33bf),_0x2a84c1=_0x4d33bf['item']['getAttribute'](_0x3ca0b9);if(_0x2bf348['has'](_0x2a84c1)){const _0x3444d8=_0x2bf348['get'](_0x2a84c1);_0x5e8f5d['has'](_0x2a84c1)||_0x5e8f5d['set'](_0x2a84c1,{..._0x3444d8}),_0x3b2428['set'](_0x2a84c1,{..._0x3444d8});}}}for(const _0x1fc4fc of _0x5e8f5d['keys']())_0x1fc4fc>=this['_startingRevisionId']&&_0x5e8f5d['delete'](_0x1fc4fc);const _0x37d932=new Map();for(const _0x4c884b of _0x8eb361){let _0x5876e4=_0x480132['insertions'][_0x4c884b];for(const _0x2b6d7f of _0x5876e4)if(_0x2b6d7f['item']['is']('element','tableCell')){const _0x26b85f=this['_getVidAttributeName'](_0x2b6d7f),_0x1e8908=_0x2b6d7f['item']['getAttribute'](_0x26b85f);if(_0x3b2428['has'](_0x1e8908)){const _0x352c7d=_0x2b6d7f['item']['parent']['parent']['getAttribute']('vid_start'),_0x2ae83a=_0x37d932['get'](_0x352c7d)||new Set();_0x2ae83a['add'](_0x3b2428['get'](_0x1e8908)['userId']),_0x37d932['set'](_0x352c7d,_0x2ae83a);}}_0x5876e4=_0x480132['deletions'][_0x4c884b];for(const _0x1d8d48 of _0x5876e4)if(_0x1d8d48['item']['is']('element','tableCell')){const _0x3154d0=this['_getVidAttributeName'](_0x1d8d48),_0x202d5f=_0x1d8d48['item']['getAttribute'](_0x3154d0);if(_0x5e8f5d['has'](_0x202d5f)){const _0x5cb474=_0x1d8d48['item']['parent']['parent']['getAttribute']('vid_start'),_0x33078d=_0x37d932['get'](_0x5cb474)||new Set();_0x33078d['add'](_0x5e8f5d['get'](_0x202d5f)['userId']),_0x37d932['set'](_0x5cb474,_0x33078d);}}for(const _0x4c70a6 of _0x37d932['keys']())(_0x3b2428['has'](_0x4c70a6)||_0x5e8f5d['has'](_0x4c70a6))&&_0x37d932['delete'](_0x4c70a6);}for(const _0x56f19c of _0x8eb361){const _0x3d149d=_0x480132['insertions'][_0x56f19c];let _0x364d20=null,_0x2e3245=null;for(const _0x2e94e3 of _0x3d149d){const _0x291b25=this['_getVidAttributeName'](_0x2e94e3),_0x2e1b6a=_0x2e94e3['item']['getAttribute'](_0x291b25),_0x19f814=_0x37d932['get'](_0x2e1b6a);_0x19f814&&'elementStart'==_0x2e94e3['type']&&(_0x364d20=Array['from'](_0x19f814)[0x0],_0x2e3245=_0x2e94e3['item']['getAttribute']('vid_end')),_0x364d20&&(_0x5e8f5d['set'](_0x2e1b6a,{'userId':_0x364d20}),_0x3b2428['set'](_0x2e1b6a,{'userId':_0x364d20})),_0x2e1b6a==_0x2e3245&&(_0x364d20=null,_0x2e3245=null);}}const _0x4322fa={},_0x25fc59=new Set();for(const _0x22c47a of _0x8eb361){const _0x5f21fa=_0x334eb5['deletions'][_0x22c47a],_0x4e33b3=_0x334eb5['insertions'][_0x22c47a];for(const {userId:_0x4ad1f9}of this['_touchedMarkers']['values']())null!==_0x4ad1f9&&_0x25fc59['add'](_0x4ad1f9);for(const {userId:_0x2eecde}of this['_touchedRoots']['values']())null!==_0x2eecde&&_0x25fc59['add'](_0x2eecde);this['_markChanges'](_0x4e33b3,_0x480132['insertions'][_0x22c47a],_0x3b2428,'insertion',_0x25fc59),this['_markChanges'](_0x5f21fa,_0x480132['deletions'][_0x22c47a],_0x5e8f5d,'deletion',_0x25fc59),_0x4322fa[_0x22c47a]={'insertions':this['_prepareViewToSave'](_0x4e33b3),'deletions':this['_prepareViewToSave'](_0x5f21fa),'attachChange':this['_touchedRoots']['get'](_0x22c47a)||null,'attributesBefore':_0xdba081(this['_baseRootsAttributes']['get'](_0x22c47a))||{},'attributesAfter':_0xdba081(this['_diffRootsAttributes']['get'](_0x22c47a))};}return{'diffData':_0x4322fa,'authorsIds':Array['from'](_0x25fc59)};}['_processRootBeforeSave'](_0x505a18){for(const [,_0x1b3fb3]of _0x505a18['markers']){const _0x462cbd=_0x1b3fb3['start']['getAncestors']()['filter'](_0x4e6661=>'tableCell'==_0x4e6661['name']);for(const _0x402c91 of _0x462cbd)0x1==_0x402c91['childCount']&&_0x402c91['getChild'](0x0)['is']('element','paragraph')&&_0x402c91['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xa81c31){this['_processRootBeforeSave'](_0xa81c31);const _0x218328=this['editor']['data']['toView'](_0xa81c31,{}),_0x2d504e=Array['from'](_0x218328['getChildren']())['map'](_0x548fbf=>this['_getViewJson'](_0x548fbf));return JSON['stringify'](_0x2d504e);}['_getViewJson'](_0x22c910){if(_0x22c910['is']('$text'))return _0x22c910['data'];{const _0x217cb9=_0x22c910;return{'type':Object['keys'](C)['find'](_0x2006aa=>_0x22c910 instanceof C[_0x2006aa]),'name':_0x217cb9['name'],'attributes':Array['from'](_0x217cb9['getAttributes']()),'children':Array['from'](_0x217cb9['getChildren']())['map'](_0x110f9b=>this['_getViewJson'](_0x110f9b))};}}['_markChanges'](_0xdf8bc2,_0x43976f,_0x1629e1,_0x5e1a59,_0x422f16){let _0x391569=null,_0x31e192=null,_0x4f61a8=0x0;const _0x1e8e99=this['editor']['model'];for(let _0x14bfa1=0x0;_0x14bfa1<_0x43976f['length'];_0x14bfa1++){const _0x421f59=this['_getVidAttributeName'](_0x43976f[_0x14bfa1]),_0x3954a0=_0x43976f[_0x14bfa1]['item']['getAttribute'](_0x421f59),_0x229700=_0x1629e1['get'](_0x3954a0),_0xa4f152=_0x14bfa1==_0x43976f['length']-0x1;(!_0x391569&&_0x229700&&(_0x391569=_0x229700,_0x31e192=_0x43976f[_0x14bfa1]),_0x391569&&(!_0x229700||_0x229700['userId']!=_0x391569['userId']))&&(_0x52fb7a(_0x229700,J(_0x31e192,_0xdf8bc2,_0x1e8e99),J(_0x43976f[_0x14bfa1],_0xdf8bc2,_0x1e8e99)),_0x391569=_0x229700||null,_0x31e192=_0x229700?_0x43976f[_0x14bfa1]:null),_0x391569&&_0xa4f152&&_0x52fb7a(_0x229700,J(_0x31e192,_0xdf8bc2,_0x1e8e99),q(_0x43976f[_0x14bfa1],_0xdf8bc2,_0x1e8e99));}function _0x52fb7a(_0x3f1e35,_0x1562c3,_0x5ca431){const _0x3de280=_0x391569['userId'],_0x525218='revision:'+_0x5e1a59+':'+_0x3de280+':'+_0x4f61a8++,_0x33b70e=_0x1e8e99['createRange'](_0x1562c3,_0x5ca431);_0xdf8bc2['markers']['set'](_0x525218,_0x33b70e),null!==_0x3de280&&_0x422f16['add'](_0x3de280);}}['_getVidAttributeName'](_0x5a6376){switch(_0x5a6376['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5ebb35,_0x371152){_0x5ebb35['baseVersion']=null;for(const _0x993f44 in _0x5ebb35){const _0x27bd60=_0x5ebb35[_0x993f44];if(_0x27bd60 instanceof gt){const _0x373354=_0x371152['get'](_0x27bd60['root']['rootName']);_0x5ebb35[_0x993f44]=this['_fixPosition'](_0x27bd60,_0x373354);}if(_0x27bd60 instanceof vt){const _0x5d8839=_0x371152['get'](_0x27bd60['root']['rootName']);_0x5ebb35[_0x993f44]=this['_fixRange'](_0x27bd60,_0x5d8839);}'root'===_0x993f44&&(_0x5ebb35['root']=_0x371152['get'](_0x5ebb35['root']['rootName']));}}['_fixRange'](_0x171b0d,_0x103c45){return this['editor']['model']['createRange'](this['_fixPosition'](_0x171b0d['start'],_0x103c45),this['_fixPosition'](_0x171b0d['end'],_0x103c45));}['_fixPosition'](_0x32d6cb,_0x257843){return this['editor']['model']['createPositionFromPath'](_0x257843,_0x32d6cb['path'],_0x32d6cb['stickiness']);}['_handleInsertOperation'](_0x2f7cee){const _0x2f86c9=this['_idsRoots']['get'](_0x2f7cee['position']['root']['rootName']),_0x136353=this['_fixPosition'](_0x2f7cee['position'],_0x2f86c9),_0x5186b6=null===_0x2f7cee['_authorId']?null:_0x2f7cee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x309231=_0x136353['parent'],_0x49384c=this['_revisionId'],_0x59965c=[];for(const _0x334ccc of _0x2f7cee['nodes'])if(_0x334ccc['is']('element'))_0x59965c['push'](this['_makeIdsRoot'](_0x334ccc));else{for(let _0x2f8a8c=0x0;_0x2f8a8c<_0x334ccc['offsetSize'];_0x2f8a8c++)_0x59965c['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x142f2d=this['_revisionId'];for(let _0x41b49d=_0x49384c;_0x41b49d<_0x142f2d;_0x41b49d++)this['_touched']['set'](_0x41b49d,{'userId':_0x5186b6});_0x309231['_insertChild'](_0x136353['offset'],_0x59965c);}['_handleMoveOperation'](_0x288ec7){(_0x288ec7=this['_cloneOperation'](_0x288ec7,this['_idsRoots']))['_execute']();const _0x46ee72=null===_0x288ec7['_authorId']?null:_0x288ec7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4f2419=_0x288ec7['getMovedRangeStart'](),_0x47c236=_0x4f2419['parent'],_0x2efd07=_0x4f2419['offset'];!function _0x379f51(_0x727336,_0xd58ca9,_0x4ae15a,_0x3141f8){for(let _0x3f8384=_0x4ae15a;_0x3f8384<_0x3141f8;_0x3f8384++){const _0x1fda8a=_0xd58ca9['getChild'](_0x3f8384);_0x1fda8a['is']('element','$text')?_0x727336['set'](_0x1fda8a['getAttribute']('vid'),{'userId':_0x46ee72}):(_0x727336['set'](_0x1fda8a['getAttribute']('vid_start'),{'userId':_0x46ee72}),_0x379f51(_0x727336,_0x1fda8a,0x0,_0x1fda8a['childCount']),_0x727336['set'](_0x1fda8a['getAttribute']('vid_end'),{'userId':_0x46ee72}));}}(this['_touched'],_0x47c236,_0x2efd07,_0x2efd07+_0x288ec7['howMany']);}['_handleMergeOperation'](_0x4a2856){const _0xb6137=null===(_0x4a2856=this['_cloneOperation'](_0x4a2856,this['_idsRoots']))['_authorId']?null:_0x4a2856['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6384c5=_0x4a2856['targetPosition']['parent'],_0x337cf7=_0x4a2856['sourcePosition']['parent'],_0x466172=_0x6384c5['getAttribute']('vid_end'),_0x3a6d3f=_0x337cf7['getAttribute']('vid_start');_0x6384c5['_setAttribute']('vid_end',_0x337cf7['getAttribute']('vid_end')),_0x337cf7['_setAttribute']('vid_end',_0x466172),this['_touched']['set'](_0x3a6d3f,{'userId':_0xb6137}),this['_touched']['set'](_0x466172,{'userId':_0xb6137}),_0x4a2856['_execute']();}['_handleSplitOperation'](_0x2d9d67){const _0x3d0674=null===(_0x2d9d67=this['_cloneOperation'](_0x2d9d67,this['_idsRoots']))['_authorId']?null:_0x2d9d67['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53c70b=_0x2d9d67['graveyardPosition'],_0x5aebfb=_0x2d9d67['splitPosition']['parent'];_0x2d9d67['_execute']();const _0x115e08=_0x5aebfb['getAttribute']('vid_end'),_0x394da4=_0x2d9d67['insertionPosition']['nodeAfter'];if(_0x53c70b){const _0x59de2b=_0x394da4['getAttribute']('vid_end'),_0x17f6de=_0x5aebfb['getAttribute']('vid_end');_0x5aebfb['_setAttribute']('vid_end',_0x59de2b),_0x394da4['_setAttribute']('vid_end',_0x17f6de),this['_touched']['set'](_0x5aebfb['getAttribute']('vid_end'),{'userId':_0x3d0674}),this['_touched']['set'](_0x394da4['getAttribute']('vid_start'),{'userId':_0x3d0674});}else{const _0x4eab60=this['_revisionId']++,_0x46e16c=this['_revisionId']++;_0x5aebfb['_setAttribute']('vid_end',_0x4eab60),_0x394da4['_setAttribute']('vid_start',_0x46e16c),_0x394da4['_setAttribute']('vid_end',_0x115e08),this['_touched']['set'](_0x4eab60,{'userId':_0x3d0674}),this['_touched']['set'](_0x46e16c,{'userId':_0x3d0674});}}['_handleMarkerOperation'](_0x14eb76){if(!_0x14eb76['affectsData'])return;const _0x114c2a=(_0x14eb76=this['_cloneOperation'](_0x14eb76,this['_diffRoots']))['oldRange']?_0x14eb76['oldRange']['root']:null,_0x45011c=_0x14eb76['newRange']?_0x14eb76['newRange']['root']:null;_0x114c2a&&this['_markers']['delete'](_0x14eb76['name']),_0x45011c&&this['_markers']['set'](_0x14eb76['name'],_0x14eb76['newRange']['clone']());const _0x57ecd2=null===_0x14eb76['_authorId']?null:_0x14eb76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xdfac99=_0x14eb76['name'];if(!this['_touchedMarkers']['has'](_0xdfac99))return void this['_touchedMarkers']['set'](_0xdfac99,{'range':_0x14eb76['oldRange'],'userId':_0x57ecd2});const _0x646a75=this['_touchedMarkers']['get'](_0xdfac99),_0x251aa0=_0x646a75['range'],_0x2ea5b9=_0x14eb76['newRange'];null==_0x251aa0&&null==_0x2ea5b9||_0x251aa0&&_0x2ea5b9&&_0x251aa0['isEqual'](_0x2ea5b9)?this['_touchedMarkers']['delete'](_0x14eb76['name']):_0x646a75['userId']=_0x57ecd2;}['_handleRootOperation'](_0xbba86,_0x1909a8){this['_diffRoots']['has'](_0xbba86['rootName'])?this['_diffRoots']['get'](_0xbba86['rootName'])['_isAttached']=_0xbba86['isAdd']:(this['_diffRoots']['set'](_0xbba86['rootName'],B(_0xbba86['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xbba86['rootName'],{}),_0x1909a8&&this['_idsRoots']['set'](_0xbba86['rootName'],B(_0xbba86['rootName'],!0x0)));const _0x1f6b17=null===_0xbba86['_authorId']?null:_0xbba86['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x455b92=this['_touchedRoots']['get'](_0xbba86['rootName']);_0x455b92&&_0x455b92['userId']===_0x1f6b17?this['_touchedRoots']['delete'](_0xbba86['rootName']):this['_touchedRoots']['set'](_0xbba86['rootName'],{'userId':_0x1f6b17,'isAttached':_0xbba86['isAdd']});}['_handleRootAttributeOperation'](_0x93e9c5){const _0x2c647b=this['_diffRootsAttributes']['get'](_0x93e9c5['root']['rootName']);null===_0x93e9c5['newValue']?delete _0x2c647b[_0x93e9c5['key']]:_0x2c647b[_0x93e9c5['key']]=_0x93e9c5['newValue'];}}function F(_0x220570){const _0x29e4e0=B(_0x220570['rootName'],_0x220570['isAttached']());for(const _0x28fb8d of _0x220570['getChildren']()){const _0x84781d=_0x28fb8d['_clone'](!0x0);_0x29e4e0['_appendChild'](_0x84781d);}return _0x29e4e0;}function B(_0x2cc736,_0x26f00f=!0x0){const _0x59ba1e=new wt();return _0x59ba1e['rootName']=_0x2cc736,_0x59ba1e['_isAttached']=_0x26f00f,_0x59ba1e['isAttached']=()=>_0x59ba1e['_isAttached'],_0x59ba1e;}function J(_0x4c9470,_0x44afba,_0x4d2614){const _0x3234b4='elementEnd'==_0x4c9470['type']?_0x4d2614['createPositionAt'](_0x4c9470['item'],'end'):_0x4d2614['createPositionBefore'](_0x4c9470['item']);return _0x4d2614['createPositionFromPath'](_0x44afba,_0x3234b4['path'],_0x3234b4['stickiness']);}function q(_0x983db1,_0x351283,_0x5eeb0e){const _0x2f7c30='elementStart'==_0x983db1['type']?_0x5eeb0e['createPositionAt'](_0x983db1['item'],0x0):_0x5eeb0e['createPositionAfter'](_0x983db1['item']);return _0x5eeb0e['createPositionFromPath'](_0x351283,_0x2f7c30['path'],_0x2f7c30['stickiness']);}class ns extends _0x19e8cf{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5e5ae7,_0x2802f2){super(_0x5e5ae7),this['focusTracker']=new _0x4c45e7(),this['keystrokes']=new _0x3fadfc(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2802f2),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'](),_0x4b9d92({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x58be9a=_0x469336=>_0x469336['stopPropagation']();this['keystrokes']['set']('arrowright',_0x58be9a),this['keystrokes']['set']('arrowleft',_0x58be9a),this['keystrokes']['set']('arrowup',_0x58be9a),this['keystrokes']['set']('arrowdown',_0x58be9a);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1dcdb3){this['revisionNameInputView']['fieldView']['element']['value']=_0x1dcdb3['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x40e34f){const _0x3df8e3=new at(this['locale'],_0x29f839),_0x1b8ba0=_0x3df8e3['fieldView'];_0x1b8ba0['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3e3c63=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x40e34f&&(_0x3e3c63+='\x20('+R(this['locale'],'optional')+')'),(_0x3df8e3['label']=_0x3e3c63,_0x1b8ba0['on']('input',()=>{this['revisionNameInputValue']=_0x1b8ba0['element']['value']['trim']();}),_0x3df8e3);}}class u extends _0x407311{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xafa0a6=this['editor'],_0x1a849e=_0xafa0a6['plugins']['get']('RevisionTracker');_0xafa0a6['ui']['componentFactory']['add']('revisionHistory',_0x14b7a8=>{const _0x58a897=_0x3509e4(_0x14b7a8),_0x124b3d=_0x58a897['panelView']['children'],_0x4834e5=new te(_0x14b7a8),_0x463f87=new _0x30dd58(_0x14b7a8),_0x48b68f=new _0x36e8a7(_0x14b7a8),_0x4186f6=new _0x30dd58(_0x14b7a8),_0xabcd1=new _0x36e8a7(_0x14b7a8);return _0x58a897['bind']('isEnabled')['to'](_0x1a849e,'isReady',_0x1a849e,'isEnabled',_0xafa0a6,'isReadOnly',(_0x45f1b1,_0x10abf6,_0x5281c3)=>_0x45f1b1&&_0x10abf6&&!_0x5281c3),_0x58a897['buttonView']['set']({'icon':_0x5b30c8['history'],'label':R(_0x14b7a8,'Revision\x20history'),'tooltip':!0x0}),_0x48b68f['set']({'label':R(_0x14b7a8,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x48b68f['bind']('isEnabled')['to'](_0x1a849e,'isReady',_0x1a849e,'isEnabled',_0xafa0a6,'isReadOnly',(_0x34a853,_0x32d413,_0x471582)=>_0x34a853&&_0x32d413&&!_0x471582),_0x48b68f['on']('execute',()=>this['_showDialog']()),_0xabcd1['set']({'label':R(_0x14b7a8,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xabcd1['bind']('isEnabled')['to'](_0x1a849e,'isReady',_0xafa0a6,'isReadOnly',(_0x1e6534,_0xc02674)=>_0x1e6534&&!_0xc02674),_0xabcd1['on']('execute',()=>{_0xafa0a6['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x58a897['isOpen']=!0x1,_0xafa0a6['editing']['view']['focus']();}),_0x463f87['children']['add'](_0x48b68f),_0x4186f6['children']['add'](_0xabcd1),_0x4834e5['role']='menu',_0x4834e5['items']['addMany']([_0x463f87,_0x4186f6]),_0x124b3d['add'](_0x4834e5),_0x58a897;}),_0xafa0a6['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x50c038=this['editor'],_0x50ea02=_0x50c038['locale'],_0x303665=new _0x15710d(_0x50ea02),_0x105a7d=new _0x186312(_0x50ea02);_0x303665['buttonView']['set']({'icon':_0x5b30c8['history'],'label':R(_0x50ea02,'Revision\x20history')});const _0x45f4aa=new _0x3cfb0f(_0x50ea02,_0x303665),_0x113331=new _0x4cea6f(_0x50ea02);_0x113331['set']({'label':R(_0x50ea02,'Save\x20current\x20revision')}),_0x113331['delegate']('execute')['to'](_0x303665),_0x113331['on']('execute',()=>{this['_showDialog']();}),_0x45f4aa['children']['add'](_0x113331),_0x105a7d['items']['add'](_0x45f4aa);const _0x57a83b=new _0x3cfb0f(_0x50ea02,_0x303665),_0x15193e=new _0x4cea6f(_0x50ea02);return _0x15193e['set']({'label':R(_0x50ea02,'Open\x20revision\x20history')}),_0x15193e['delegate']('execute')['to'](_0x303665),_0x15193e['on']('execute',()=>{_0x50c038['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x57a83b['children']['add'](_0x15193e),_0x105a7d['items']['add'](_0x57a83b),_0x303665['panelView']['children']['add'](_0x105a7d),_0x303665;}['_showDialog'](){const _0x191f19=this['editor'],_0x5a0a8d=_0x191f19['locale'],_0x3c94d3=_0x191f19['plugins']['get']('Dialog'),_0x5a1675=_0x191f19['plugins']['get']('RevisionTracker');function _0x363a9d(_0x2c0c47){_0x191f19['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2c0c47['revisionName']?_0x2c0c47['revisionNameInputView']['errorText']=R(_0x5a0a8d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x191f19['plugins']['get'](l)['saveRevision']({'name':_0x2c0c47['revisionName']}),_0x3c94d3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x363a9d(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3c94d3['show']({'id':'revisionSave','title':R(_0x5a0a8d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x191f19['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3c94d3['hide']()},{'label':R(_0x191f19['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x315f08){_0x315f08['bind']('isEnabled')['to'](_0x5a1675,'isReady',_0x5a1675,'isEnabled',_0x191f19,'isReadOnly',(_0x57d82f,_0x660e1b,_0x23992e)=>_0x57d82f&&_0x660e1b&&!_0x23992e);},'onExecute':()=>_0x363a9d(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x122f8b=this['editor'],_0x4321e9=_0x122f8b['locale'];this['_saveRevisionFormView']=new ns(_0x4321e9,_0x122f8b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends _0x19e8cf{['changeId'];['_model'];constructor(_0x4ddcf2,_0x148ed9){super(_0x4ddcf2),this['_model']=_0x148ed9,this['changeId']=_0x148ed9['id'];const _0x3e889a=this['bindTemplate'],_0xb2d855=R(_0x4ddcf2,_0x148ed9['data']['isSuggestion']?'Suggested\x20by':'add'==_0x148ed9['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x148ed9['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3e889a['to']('type',_0xf65797=>'ck-revision-change__'+_0xf65797)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xb2d855}]},{'text':'\x20'+_0x148ed9['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x24b81a(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x14d0fd){super(),this['id']=_0x14d0fd['id']||_0x3dbcc6(),this['author']=_0x14d0fd['author'],this['type']=_0x14d0fd['type'],this['data']=_0x14d0fd['data']||{},this['rootName']=_0x14d0fd['rootName'],this['set']('createdAt',_0x14d0fd['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(_0x5d0a66,_0x3c6ca7){this['newRevisionId']=_0x5d0a66,this['oldRevisionId']=_0x3c6ca7,this['changes']=new _0x515089();}['_setChanges'](_0x14aaf7){for(const _0x18f3f7 of _0x14aaf7)this['changes']['add'](_0x18f3f7);}}const Z={'c':_0x3bceea,'a':_0x330855,'e':_0x302f02,'r':_0x2b842a,'u':_0x523f61};class d extends _0x407311{['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[_0x12faa4,_0x476d63,j];}constructor(_0x2dc483){super(_0x2dc483),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',(_0x3cccce,_0x4d2014,_0x4c7f63)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1634ac=>{for(const _0x1c064a of this['editor']['editing']['view']['document']['roots'])_0x4c7f63?_0x1634ac['removeClass']('ck-editor__editable__overlay',_0x1c064a):_0x1634ac['addClass']('ck-editor__editable__overlay',_0x1c064a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x49683c=>null!==_0x49683c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5d44aa,_0x199f6e,_0x554c60)=>_0x5d44aa&&_0x554c60?_0x199f6e['changes']['getIndex'](_0x554c60):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2def81,_0x402d07)=>_0x2def81?_0x402d07['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x476d63);}['init'](){const _0x2fdfaa=this['editor'],_0x3183ce=new bt(_0x2fdfaa,{'direction':'backward'}),_0x1cd0bb=new bt(_0x2fdfaa,{'direction':'forward'});(_0x2fdfaa['commands']['add']('showPreviousChange',_0x3183ce),_0x2fdfaa['commands']['add']('showNextChange',_0x1cd0bb),_0x2fdfaa['commands']['add']('restoreRevision',new yt(_0x2fdfaa)),this['on']('change:numberOfChanges',()=>{_0x3183ce['refresh'](),_0x1cd0bb['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2fdfaa['enableReadOnlyMode']('revision-viewer'),_0x2fdfaa['plugins']['has']('WidgetToolbarRepository'))&&_0x2fdfaa['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x391bea){await this['loadRevisionData'](_0x391bea);const _0x45f4b5={};for(const _0x40cfd4 in _0x391bea['diffData']){if(_0x391bea['diffData'][_0x40cfd4]['attachChange']&&!_0x391bea['diffData'][_0x40cfd4]['attachChange']['isAttached'])continue;const _0x371a35=this['_removeRevisionMarkers'](JSON['parse'](_0x391bea['diffData'][_0x40cfd4]['insertions'])),_0x48a402=this['editor']['editing']['view']['document'],_0x512f37=new _0x49605f(_0x48a402,_0x371a35['map'](_0x5053e6=>this['_getViewObj'](_0x5053e6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x45f4b5[_0x40cfd4]=this['editor']['data']['processor']['toData'](_0x512f37),this['editor']['data']['processor']['useFillerType']('default');}return _0x45f4b5;}async['getRevisionRootsAttributes'](_0x210fc2){await this['loadRevisionData'](_0x210fc2);const _0x1db7a9={};for(const _0x24d860 in _0x210fc2['diffData'])_0x210fc2['diffData'][_0x24d860]['attachChange']&&!_0x210fc2['diffData'][_0x24d860]['attachChange']['isAttached']||(_0x1db7a9[_0x24d860]=_0x210fc2['diffData'][_0x24d860]['attributesAfter']||{});return _0x1db7a9;}['_removeRevisionMarkers'](_0xd601ef){return(_0xd601ef=_0xd601ef['filter'](_0x3f1799=>!_0x3f1799['name']||'revision-start'!==_0x3f1799['name']&&'revision-end'!==_0x3f1799['name']))['forEach'](_0x24c0f0=>{'string'!=typeof _0x24c0f0&&(_0x24c0f0['children']=this['_removeRevisionMarkers'](_0x24c0f0['children']),_0x24c0f0['attributes']=_0x24c0f0['attributes']['filter'](_0xf43858=>!_0xf43858[0x0]['startsWith']('data-revision-')));}),_0xd601ef;}async['compare'](_0x58b7e0,_0x2d6027,_0x39f483=!0x1){if(!this['isEnabled'])return;const _0x22b3d6=this['diff'],_0x43c5c1=this['repository'],_0x57bef2='string'==typeof _0x58b7e0?_0x43c5c1['getRevision'](_0x58b7e0):_0x58b7e0,_0xb64869='string'==typeof _0x2d6027?_0x43c5c1['getRevision'](_0x2d6027):_0x2d6027,_0x12620c=_0x57bef2['id'],_0x33fabe=_0xb64869?_0xb64869['id']:null;if(!_0x39f483&&this['diff']&&this['diff']['newRevisionId']===_0x12620c&&this['diff']['oldRevisionId']===_0x33fabe)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x12620c,_0x33fabe);const _0x33286f=this['_getRevisionsRange'](_0x57bef2,_0xb64869,!0x0)['map'](_0xc11962=>this['loadRevisionData'](_0xc11962));return _0x33286f['push'](new Promise(_0x4c8127=>{setTimeout(_0x4c8127,0x14);})),Promise['all'](_0x33286f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3a2344=this['_getDiff'](_0x12620c,_0x33fabe);for(const _0x1e1ffc of _0x3a2344['changes'])this['_changeIdToChange']['set'](_0x1e1ffc['id'],_0x1e1ffc);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2c4163=>{for(const _0x36648f of this['editor']['model']['document']['getRootNames']())_0x2c4163['detachRoot'](_0x36648f);for(const _0x108f32 of Object['keys'](_0x3a2344['model'])){const _0x44b269=_0x2c4163['addRoot'](_0x108f32);for(const _0xfe99af of Object['keys'](_0x3a2344['attributes'][_0x108f32]))_0x2c4163['setAttribute'](_0xfe99af,_0x3a2344['attributes'][_0x108f32][_0xfe99af],_0x44b269);_0x2c4163['insert'](_0x3a2344['model'][_0x108f32],_0x44b269,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3a2344['changes'])),this['isReady']=!0x0;})['catch'](_0x3747cf=>{console['error'](_0x3747cf),this['_cleanUp'](),_0x22b3d6&&(this['diff']=_0x22b3d6),this['isReady']=!0x0;});}['addRevisionData'](_0x69c8fa,_0x3d0013){const _0x909743=this['repository']['createRevision'](_0x69c8fa);return _0x909743['on']('_update',(_0x2e0717,_0x4e45f9,_0x383f18)=>_0x3d0013(_0x4e45f9,_0x383f18,_0x909743)),this['repository']['addRevision'](_0x909743),_0x909743;}['loadRevisionData'](_0x345d89){if(!_0x345d89||_0x345d89['diffData'])return Promise['resolve']();{const _0x48ea33=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x48ea33,'revisionId':_0x345d89['id']})['then'](_0x1f4440=>{_0x345d89['_update']({'diffData':_0x1f4440['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},_0x3ad8ad=>{for(const _0x5e8113 of this['editor']['model']['document']['getRootNames']())_0x3ad8ad['detachRoot'](_0x5e8113);});}['_sortAndFilterDiffChanges'](_0x4a5262){const _0xab554c=[],_0x300933=new Map();for(const _0x179c04 of this['editor']['model']['document']['getRootNames']()){const _0x22ebd7=this['editor']['editing']['view']['getDomRoot'](_0x179c04);if(!_0x22ebd7)continue;const _0x42f428=_0x22ebd7['getClientRects']()['item'](0x0);_0x42f428&&(_0xab554c['push'](_0x179c04),_0x300933['set'](_0x179c04,_0x42f428));}return _0xab554c['sort']((_0x494bac,_0x53856c)=>{const _0x94d9cf=_0x300933['get'](_0x494bac),_0x90a9c1=_0x300933['get'](_0x53856c);return _0x94d9cf['y']-_0x90a9c1['y']||_0x94d9cf['x']-_0x90a9c1['x'];}),(_0x4a5262=_0x4a5262['filter'](_0x28baff=>_0xab554c['includes'](_0x28baff['rootName'])))['sort']((_0x456dab,_0x401be4)=>_0xab554c['indexOf'](_0x456dab['rootName'])-_0xab554c['indexOf'](_0x401be4['rootName'])),_0x4a5262;}['_makeTape'](_0x295612){const _0x352d22=Array['from'](_0x295612['markers'])['filter'](([_0x26bd94,_0xb6d847])=>_0x26bd94['startsWith']('revision:')&&!_0xb6d847['isCollapsed']),_0x57fbfe=Array['from'](this['editor']['model']['createRangeIn'](_0x295612)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x352d22['length'])for(const _0xc8204e of _0x57fbfe){const [_0x4daa12,_0x58d343]=_0x352d22[0x0],[,_0x125bb9,_0x1c9d53]=_0x4daa12['split'](':');if(_0x58d343['end']['isEqual'](_0xc8204e['nextPosition'])&&_0x352d22['shift'](),(_0xc8204e['previousPosition']['isEqual'](_0x58d343['start'])||_0xc8204e['previousPosition']['isAfter'](_0x58d343['start']))&&('insertion'==_0x125bb9?_0xc8204e['isAdded']={'userId':_0x1c9d53}:'deletion'==_0x125bb9&&(_0xc8204e['isRemoved']={'userId':_0x1c9d53})),0x0==_0x352d22['length'])break;}return _0x57fbfe;}['_refreshStartEndIndex'](_0x52ec6d){const _0x490bd4=new Map();for(let _0x11bf68=0x0;_0x11bf68<_0x52ec6d['length'];_0x11bf68++)'text'===_0x52ec6d[_0x11bf68]['type']?(_0x52ec6d[_0x11bf68]['item']['startIndex']=_0x11bf68,_0x52ec6d[_0x11bf68]['item']['endIndex']=_0x11bf68):('elementStart'===_0x52ec6d[_0x11bf68]['type']?_0x52ec6d[_0x11bf68]['item']['startIndex']=_0x11bf68:'elementEnd'===_0x52ec6d[_0x11bf68]['type']&&(_0x52ec6d[_0x11bf68]['item']['endIndex']=_0x11bf68),_0x490bd4['set'](_0x52ec6d[_0x11bf68]['id'],_0x11bf68));for(const _0x1b5f36 of _0x490bd4['values']())'elementStart'===_0x52ec6d[_0x1b5f36]['type']?_0x52ec6d[_0x1b5f36]['item']['endIndex']=_0x490bd4['get'](_0x52ec6d[_0x1b5f36]['pairId']):'elementEnd'===_0x52ec6d[_0x1b5f36]['type']&&(_0x52ec6d[_0x1b5f36]['item']['startIndex']=_0x490bd4['get'](_0x52ec6d[_0x1b5f36]['pairId']));}['_processTape'](_0x5a35dc){for(let _0x714834=0x0;_0x714834<_0x5a35dc['length'];_0x714834++){if('elementStart'===_0x5a35dc[_0x714834]['type'])_0x5a35dc[_0x714834]['item']['startIndex']=_0x714834;else{if('elementEnd'===_0x5a35dc[_0x714834]['type']){_0x5a35dc[_0x714834]['item']['endIndex']=_0x714834;const _0x5ec52=_0x5a35dc[_0x714834]['item']['startIndex'];_0x5a35dc[_0x5ec52]['pairId']=_0x5a35dc[_0x714834]['id'],_0x5a35dc[_0x714834]['pairId']=_0x5a35dc[_0x5ec52]['id'];}else _0x5a35dc[_0x714834]['item']['startIndex']=_0x714834,_0x5a35dc[_0x714834]['item']['endIndex']=_0x714834,_0x5a35dc[_0x714834]['pairId']=null;}_0x5a35dc[_0x714834]['markersStart']||(_0x5a35dc[_0x714834]['markersStart']=[],_0x5a35dc[_0x714834]['markersEnd']=[]);}}['_markInsertions'](_0x5d1343,_0x46d363){const _0x346ee3=_0x5d1343['filter'](_0x31e2b3=>!_0x31e2b3['isAdded']);for(let _0x56822c=0x0;_0x56822c<_0x46d363['length'];_0x56822c++)_0x46d363[_0x56822c]['isAdded']&&(_0x346ee3[_0x56822c]['isAdded']=_0x46d363[_0x56822c]['isAdded']);}['_makeModelFromViewString'](_0x23a292){const _0x1fe723=JSON['parse'](_0x23a292),_0x3e8794=this['editor']['editing']['view']['document'],_0x38aefe=new _0x49605f(_0x3e8794,_0x1fe723['map'](_0x5dfda7=>this['_getViewObj'](_0x5dfda7)));return this['editor']['data']['toModel'](_0x38aefe);}['_getViewObj'](_0x5e4bf4){const _0x5257e8=this['editor']['editing']['view']['document'];if('string'==typeof _0x5e4bf4)return new _0x36a978(_0x5257e8,_0x5e4bf4);{const _0x40a005=_0x5e4bf4['children']['map'](_0x3f5b40=>this['_getViewObj'](_0x3f5b40));return new(Z[_0x5e4bf4['type']]||_0x15326a)(_0x5257e8,_0x5e4bf4['name'],_0x5e4bf4['attributes'],_0x40a005);}}['_getDiff'](_0x41a0e0,_0x251051=null){const _0x33119b=this['repository']['getRevision'](_0x41a0e0),_0x4fd4c9=_0x251051?this['repository']['getRevision'](_0x251051):null,_0x470568=this['_getRevisionsRange'](_0x33119b,_0x4fd4c9),_0x37bdbc=_0x470568[_0x470568['length']-0x1],_0x5f459f=new Map(),_0x2f0c95={'model':{},'attributes':{},'changes':[]},_0x26664a=new Set(),_0x4c2a80=new Map();for(let _0x427d1b=_0x470568['length']-0x1;_0x427d1b>=0x0;_0x427d1b--){const _0x84453=_0x470568[_0x427d1b];for(const _0x23500f of Object['keys'](_0x84453['diffData']))if(_0x84453['diffData'][_0x23500f]['attachChange']){const _0x20f78c=_0x84453['diffData'][_0x23500f]['attachChange'];_0x20f78c['isAttached']?(_0x26664a['add'](_0x23500f),_0x4c2a80['has'](_0x23500f)&&_0x4c2a80['get'](_0x23500f)['userId']==_0x20f78c['userId']?_0x4c2a80['delete'](_0x23500f):_0x4c2a80['set'](_0x23500f,_0x20f78c)):_0x4c2a80['has'](_0x23500f)?(_0x26664a['delete'](_0x23500f),_0x4c2a80['delete'](_0x23500f)):(_0x26664a['add'](_0x23500f),_0x4c2a80['set'](_0x23500f,_0x20f78c));}else _0x26664a['add'](_0x23500f);}for(const _0x1e5680 of _0x26664a){const _0x3232fc=_0x4c2a80['has'](_0x1e5680)&&!_0x4c2a80['get'](_0x1e5680)['isAttached'];let _0x2ebc57=_0x3232fc?_0x470568['length']-0x1:0x0;const _0x257f71=_0x3232fc?-0x1:0x1;for(;_0x470568[_0x2ebc57];){const _0x2a110f=_0x470568[_0x2ebc57];if(_0x2a110f['diffData'][_0x1e5680]){const _0x3f3291=_0x3232fc?_0x2a110f['diffData'][_0x1e5680]['attributesBefore']:_0x2a110f['diffData'][_0x1e5680]['attributesAfter'];_0x2f0c95['attributes'][_0x1e5680]=_0x3f3291?_0xdba081(_0x3f3291):{};break;}_0x2ebc57+=_0x257f71;}}for(const _0x15c149 of _0x470568){_0x15c149['model']={};for(const _0x292bc0 of _0x15c149['authors'])_0x5f459f['set'](_0x292bc0['id'],_0x292bc0);for(const _0x3651a2 of _0x26664a){const _0x1e812a=_0x15c149['diffData'][_0x3651a2]?_0x15c149['diffData'][_0x3651a2]['insertions']:'[]',_0x2712c4=_0x15c149['diffData'][_0x3651a2]?_0x15c149['diffData'][_0x3651a2]['deletions']:'[]';_0x15c149['model'][_0x3651a2]={'insertions':this['_makeModelFromViewString'](_0x1e812a),'deletions':this['_makeModelFromViewString'](_0x2712c4)};}}for(const _0x4a45c4 of _0x26664a){let _0x3ede21=null,_0x4c80dd=0x0;const _0x5804ae=new Map(Array['from'](_0x33119b['model'][_0x4a45c4]['insertions']['markers'])['filter'](([_0x8c7073])=>!_0x8c7073['startsWith']('revision:')));let _0x4a2919=0x0;for(const _0x5f25b9 of _0x470568){const _0x3b8497=this['_makeTape'](_0x5f25b9['model'][_0x4a45c4]['insertions']);_0x5f25b9==_0x33119b?(_0x3ede21=_0x3b8497,_0x4c80dd=_0x3ede21['length'],_0x3ede21['forEach'](_0x568eb0=>{_0x568eb0['id']=_0x4a2919++;}),this['_processTape'](_0x3ede21)):this['_markInsertions'](_0x3ede21,_0x3b8497);const _0x304206=_0x3ede21['filter'](_0x49a9a3=>!_0x49a9a3['isAdded'])['map'](_0x55e4df=>_0x55e4df['id']);let _0xc74af=0x0;const _0x5c8bd2=this['_makeTape'](_0x5f25b9['model'][_0x4a45c4]['deletions']);_0x5c8bd2['forEach'](_0x26b4fd=>{_0x26b4fd['isRemoved']?_0x26b4fd['id']=_0x4c80dd++:_0x26b4fd['id']=_0x304206[_0xc74af++];}),this['_processTape'](_0x5c8bd2),this['_setDistance'](_0x3ede21,'isAdded'),this['_setDistance'](_0x5c8bd2,'isRemoved'),_0x5f25b9==_0x33119b&&this['_markMarkers'](_0x3ede21,_0x5804ae),_0x3ede21=this['_joinTapes'](_0x3ede21,_0x5c8bd2),this['_refreshStartEndIndex'](_0x3ede21),this['_setDistance'](_0x3ede21,'isRemoved');}_0x3ede21=_0x3ede21['filter'](_0x124ba7=>!(_0x124ba7['isAdded']&&_0x124ba7['isRemoved']));const _0x379305=new Map(_0x37bdbc['model'][_0x4a45c4]['deletions']['markers']),_0x129da4=new Set(_0x5804ae['keys']());for(const _0x273494 of _0x379305['keys']())_0x129da4['delete'](_0x273494);this['_markSuggestions'](_0x3ede21,_0x129da4),this['_fixObsoleteTags'](_0x3ede21),_0x3ede21=this['_removeMissingPairs'](_0x3ede21),_0x3ede21=this['_markMismatchedRemovedTags'](_0x3ede21),_0x3ede21=this['_removeUnsupportedChanges'](_0x3ede21);const {root:_0x4947aa,changes:_0xb5fbe0}=this['_makeModelFromTape'](_0x3ede21,_0x5f459f,_0x4a45c4);_0x2f0c95['model'][_0x4a45c4]=_0x4947aa;const _0x74eae0=_0x4c2a80['get'](_0x4a45c4);if(_0x74eae0){const _0x4508e4=_0x5f459f['get'](_0x74eae0['userId']),_0xfefba2=new r({'author':_0x4508e4,'type':_0x74eae0['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4a45c4});_0xb5fbe0['unshift'](_0xfefba2),_0x2f0c95['attributes'][_0x4a45c4]['revisionHistoryAttachChange']=_0xfefba2['id'];}_0x2f0c95['changes']=_0x2f0c95['changes']['concat'](_0xb5fbe0);}return _0x2f0c95;}['_markMarkers'](_0xa6ad20,_0x1555ff){for(let _0xda7d7b=0x0;_0xda7d7b<_0xa6ad20['length'];_0xda7d7b++)for(const [_0xc61ef1,_0x5dfe84]of _0x1555ff)_0x5dfe84['start']['isEqual'](_0xa6ad20[_0xda7d7b]['previousPosition'])&&_0xa6ad20[_0xda7d7b]['markersStart']['push'](_0xc61ef1),_0x5dfe84['end']['isEqual'](_0xa6ad20[_0xda7d7b]['nextPosition'])&&_0xa6ad20[_0xda7d7b]['markersEnd']['push'](_0xc61ef1);}['_joinTapes'](_0x1c443c,_0xd79074){let _0x35a449=[],_0x142b3f=0x0,_0x2e6313=0x0;for(;_0x142b3f<_0x1c443c['length']||_0x2e6313<_0xd79074['length'];){const _0x22d6e4=_0x1c443c[_0x142b3f]||{},_0x3a3e0c=_0xd79074[_0x2e6313]||{};if(_0x22d6e4['id']==_0x3a3e0c['id'])_0x142b3f++,_0x2e6313++,_0x35a449['push'](_0x22d6e4);else{if(_0x3a3e0c['isRemoved']&&_0x22d6e4['isAdded']){const {commonTape:_0x27023e,iEnd:_0x326cce,jEnd:_0x402fce}=this['_threeWayMerge'](_0x1c443c,_0x142b3f,_0xd79074,_0x2e6313);_0x35a449=_0x35a449['concat'](_0x27023e),_0x142b3f=_0x326cce,_0x2e6313=_0x402fce;}else _0x3a3e0c['isRemoved']?(_0x2e6313++,_0x35a449['push'](_0x3a3e0c)):(_0x142b3f++,_0x35a449['push'](_0x22d6e4));}}return _0x35a449;}['_markSuggestions'](_0x4246c4,_0x5d5384){const _0x255bd7=[];for(let _0x1a257d=0x0;_0x1a257d<_0x4246c4['length'];_0x1a257d++){for(let _0x5ca97e=0x0;_0x5ca97e<_0x4246c4[_0x1a257d]['markersStart']['length'];_0x5ca97e++){const _0x5e91ee=_0x4246c4[_0x1a257d]['markersStart'][_0x5ca97e];if(!_0x5d5384['has'](_0x5e91ee))continue;const {group:_0x5163c9,type:_0x40ae73,authorId:_0x567848}=_0xa45514(_0x5e91ee);'revision-suggestion'!=_0x5163c9||'insertion'!=_0x40ae73&&'deletion'!=_0x40ae73||(_0x255bd7['unshift']({'type':_0x40ae73,'name':_0x5e91ee,'userId':_0x567848}),_0x4246c4[_0x1a257d]['markersStart']['splice'](_0x5ca97e,0x1),_0x5ca97e--);}_0x59a126(_0x4246c4[_0x1a257d]);for(let _0x562bd8=0x0;_0x562bd8<_0x4246c4[_0x1a257d]['markersEnd']['length'];_0x562bd8++){const _0x25f551=_0x4246c4[_0x1a257d]['markersEnd'][_0x562bd8];if(!_0x5d5384['has'](_0x25f551))continue;const {group:_0x40395f,type:_0x1690f6}=_0xa45514(_0x25f551);if('revision-suggestion'!=_0x40395f||'insertion'!=_0x1690f6&&'deletion'!=_0x1690f6)continue;_0x4246c4[_0x1a257d]['markersEnd']['splice'](_0x562bd8,0x1),_0x562bd8--;const _0x8f2339=_0x255bd7['findIndex'](_0x198a8f=>_0x198a8f['name']==_0x25f551);_0x8f2339>-0x1&&_0x255bd7['splice'](_0x8f2339,0x1);}}function _0xa45514(_0x36d381){const _0xf3abab=_0x36d381['split'](':');return{'group':_0xf3abab[0x0],'type':_0xf3abab[0x1],'subType':_0xf3abab['length']>=0x5?_0xf3abab[0x2]:null,'id':_0xf3abab['length']<0x5?_0xf3abab[0x2]:_0xf3abab[0x3],'authorId':_0xf3abab['length']<0x5?_0xf3abab[0x3]:_0xf3abab[0x4],'markerCount':0x6==_0xf3abab['length']?_0xf3abab[0x5]:null};}function _0x59a126(_0x1fdd04){for(let _0x2e849f=0x0;_0x2e849f<_0x255bd7['length'];_0x2e849f++){if(_0x1fdd04['isAdded']&&'insertion'==_0x255bd7[_0x2e849f]['type'])return _0x1fdd04['isAddSuggestion']=_0x255bd7[_0x2e849f],void delete _0x1fdd04['isAdded'];if(!_0x1fdd04['isAdded']&&!_0x1fdd04['isRemoved']&&'deletion'==_0x255bd7[_0x2e849f]['type'])return void(_0x1fdd04['isRemoveSuggestion']=_0x255bd7[_0x2e849f]);}}}['_setDistance'](_0x5a43f6,_0x6e8124){let _0x45dea7=0x0,_0x26ed0d=!0x1;const _0x4b9787=new Map();for(const _0x6047d4 of _0x5a43f6)_0x6047d4[_0x6e8124]?_0x26ed0d&&(_0x45dea7++,_0x26ed0d=!0x1):(_0x45dea7++,_0x26ed0d=!0x0),_0x4b9787['set'](_0x6047d4['id'],_0x45dea7);for(let _0x5a7845=0x0;_0x5a7845<_0x5a43f6['length'];_0x5a7845++){if('isRemoved'==_0x6e8124&&_0x5a43f6[_0x5a7845]['isAdded']||'isAdded'==_0x6e8124&&_0x5a43f6[_0x5a7845]['isRemoved'])continue;if('text'==_0x5a43f6[_0x5a7845]['type']){_0x5a43f6[_0x5a7845]['distance']=0x0;continue;}const _0x502488=_0x4b9787['get'](_0x5a43f6[_0x5a7845]['pairId']),_0x104f67=_0x4b9787['get'](_0x5a43f6[_0x5a7845]['id']);_0x5a43f6[_0x5a7845]['distance']=_0x502488-_0x104f67;}}['_getRevisionsRange'](_0x3f300c,_0x368cde,_0x58c13e=!0x1){const _0xa7c1b2=[];let _0x5d6dfc=this['repository']['getIndex'](_0x3f300c),_0x3b3036=this['repository']['getIndex'](_0x368cde);for(-0x1==_0x3b3036&&(_0x3b3036=this['repository']['_revisions']['length'],_0x58c13e=!0x1);_0x5d6dfc<_0x3b3036;)_0xa7c1b2['push'](this['repository']['getRevision'](_0x5d6dfc)),_0x5d6dfc++;return _0x58c13e&&_0xa7c1b2['push'](this['repository']['getRevision'](_0x5d6dfc)),_0xa7c1b2;}['_threeWayMerge'](_0x4e1e5d,_0x55021f,_0x406579,_0x3845d5){const _0x3c2822=this['editor']['model']['schema'];let _0x48f34a=_0x55021f;for(;_0x4e1e5d[_0x48f34a]&&_0x4e1e5d[_0x48f34a]['isAdded'];)_0x48f34a++;let _0x2c9bb7=_0x3845d5;for(;_0x406579[_0x2c9bb7]&&_0x406579[_0x2c9bb7]['isRemoved'];)_0x2c9bb7++;_0x5556c4(_0x4e1e5d,_0x55021f,_0x48f34a),_0x5556c4(_0x406579,_0x3845d5,_0x2c9bb7);const _0x2653db=_0x406579['slice'](_0x3845d5,_0x2c9bb7)['concat'](_0x4e1e5d['slice'](_0x55021f,_0x48f34a));return _0x2653db['sort']((_0x4688db,_0x1863b9)=>_0x4688db['side']!=_0x1863b9['side']?_0x4688db['side']-_0x1863b9['side']:_0x4688db['level']!=_0x1863b9['level']?_0x4688db['level']-_0x1863b9['level']:_0x4688db['distance']!=_0x1863b9['distance']?_0x1863b9['distance']-_0x4688db['distance']:!!_0x4688db['isAdded']!=!!_0x1863b9['isAdded']?-0x1==_0x4688db['side']||0x0==_0x4688db['side']?_0x4688db['isAdded']?-0x1:0x1:_0x4688db['isAdded']?0x1:-0x1:_0x4688db['index']-_0x1863b9['index']),{'commonTape':_0x2653db,'iEnd':_0x48f34a,'jEnd':_0x2c9bb7};function _0x5556c4(_0x50054f,_0x5a4d25,_0x181f31){let _0x4f3e37=-0x1,_0x195b52=Number['POSITIVE_INFINITY'],_0x578d8c=!0x0;for(let _0x430b1c=_0x5a4d25;_0x430b1c<_0x181f31;_0x430b1c++)if(_0x3c2822['isInline'](_0x50054f[_0x430b1c]['item'])||(_0x578d8c=!0x1),_0x50054f[_0x430b1c]['item']['startIndex']<_0x5a4d25&&(_0x4f3e37=_0x430b1c),_0x50054f[_0x430b1c]['item']['endIndex']>=_0x181f31){_0x195b52=_0x430b1c;break;}_0x578d8c&&(_0x4f3e37=_0x181f31-0x1);for(let _0x453079=_0x5a4d25;_0x453079<_0x181f31;_0x453079++)_0x50054f[_0x453079]['side']=_0x453079<=_0x4f3e37?-0x1:_0x453079<_0x195b52?0x0:0x1,_0x50054f[_0x453079]['index']=_0x453079;let _0x607105=0x0;for(let _0x235c46=_0x5a4d25;_0x235c46<=_0x4f3e37;_0x235c46++)0x0==_0x50054f[_0x235c46]['distance']?_0x50054f[_0x235c46]['level']=_0x607105:(_0x607105++,_0x50054f[_0x235c46]['level']=_0x607105,_0x607105++);for(let _0x366027=_0x5a4d25;_0x366027<_0x181f31;_0x366027++)0x0==_0x50054f[_0x366027]['side']&&(_0x50054f[_0x366027]['level']=_0x607105);_0x607105=0x0;for(let _0x231766=_0x181f31-0x1;_0x231766>=_0x195b52;_0x231766--)0x0==_0x50054f[_0x231766]['distance']?_0x50054f[_0x231766]['level']=_0x607105:(_0x607105--,_0x50054f[_0x231766]['level']=_0x607105,_0x607105--);}}['_fixObsoleteTags'](_0x5c71b5){const _0x3d1890=new Map(),_0x286077=this['editor']['model']['schema'];for(let _0x16ff44=0x1;_0x16ff44<_0x5c71b5['length'];_0x16ff44++){let _0x1ceb4e,_0x100cc7,_0x9025cd;const _0x57f987=_0x5c71b5[_0x16ff44],_0x2bd573=_0x5c71b5[_0x16ff44-0x1];if('text'==_0x57f987['type'])continue;if(_0x57f987['type']!=_0x2bd573['type'])continue;if(!_0x286077['isBlock'](_0x2bd573['item'])||_0x286077['isLimit'](_0x2bd573['item']))continue;if(!_0x286077['isBlock'](_0x57f987['item'])||_0x286077['isLimit'](_0x57f987['item']))continue;if((_0x5c71b5[_0x16ff44]['isAdded']||_0x5c71b5[_0x16ff44]['isAddSuggestion'])&&_0x5c71b5[_0x16ff44-0x1]['isRemoved'])_0x1ceb4e=_0x5c71b5[_0x16ff44],_0x100cc7=_0x5c71b5[_0x16ff44-0x1],_0x9025cd=_0x16ff44-0x1;else{if(!_0x5c71b5[_0x16ff44]['isRemoved']||!_0x5c71b5[_0x16ff44-0x1]['isAdded']&&!_0x5c71b5[_0x16ff44-0x1]['isAddSuggestion'])continue;_0x1ceb4e=_0x5c71b5[_0x16ff44-0x1],_0x100cc7=_0x5c71b5[_0x16ff44],_0x9025cd=_0x16ff44;}const _0x28b688=_0x1ceb4e['level']==_0x100cc7['level'],_0x14c117=Math['abs'](_0x1ceb4e['level'])<Math['abs'](_0x100cc7['level'])&&0x0==_0x100cc7['distance'];(_0x28b688||_0x14c117)&&(_0x3d1890['set'](_0x100cc7['id'],_0x1ceb4e['id']),_0x5c71b5['splice'](_0x9025cd,0x1),_0x16ff44--,_0x1ceb4e['isAdded']=!0x1);}for(let _0x5fbc37=0x0;_0x5fbc37<_0x5c71b5['length'];_0x5fbc37++)_0x3d1890['has'](_0x5c71b5[_0x5fbc37]['pairId'])&&(_0x5c71b5[_0x5fbc37]['pairId']=_0x3d1890['get'](_0x5c71b5[_0x5fbc37]['pairId']));}['_removeMissingPairs'](_0x45d091){const _0x2f343a=new Set(_0x45d091['map'](_0x5f21a2=>_0x5f21a2['id']));for(let _0xc408d0=0x0;_0xc408d0<_0x45d091['length'];_0xc408d0++)_0x2f343a['has'](_0x45d091[_0xc408d0]['pairId'])||0x0==_0x45d091[_0xc408d0]['distance']||(_0x45d091[_0xc408d0]['isIncorrect']=!0x0);return _0x45d091['filter'](_0x52a72a=>!_0x52a72a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x45d400){const _0x14e831=new Set();for(let _0x507fcf=0x0;_0x507fcf<_0x45d400['length'];_0x507fcf++){if(_0x14e831['has'](_0x45d400[_0x507fcf]['id'])&&_0x45d400[_0x507fcf]['isRemoved']&&(_0x45d400[_0x507fcf]['isIncorrect']=!0x0),_0x45d400[_0x507fcf]['isIncorrect'])continue;if(0x0==_0x45d400[_0x507fcf]['distance'])continue;if('elementStart'!=_0x45d400[_0x507fcf]['type'])continue;if(null==_0x45d400[_0x507fcf]['pairId'])continue;let _0x54f756=_0x507fcf+0x1,_0x24b9b8=0x0;for(;_0x45d400[_0x54f756]['id']!=_0x45d400[_0x507fcf]['pairId'];)'elementStart'==_0x45d400[_0x54f756]['type']?_0x24b9b8++:'elementEnd'==_0x45d400[_0x54f756]['type']&&_0x24b9b8--,_0x54f756++;if(0x0!=_0x24b9b8){if(_0x45d400[_0x507fcf]['isRemoved'])_0x45d400[_0x507fcf]['isIncorrect']=!0x0;else{for(;_0x54f756!=_0x507fcf;)_0x45d400[_0x54f756]['isRemoved']&&0x0!=_0x45d400[_0x54f756]['distance']&&(_0x45d400[_0x54f756]['isIncorrect']=!0x0,_0x14e831['add'](_0x45d400[_0x54f756]['pairId'])),_0x54f756--;}}}return _0x45d400['filter'](_0x4885fd=>!_0x4885fd['isIncorrect']);}['_removeUnsupportedChanges'](_0x2b1460){const _0x5d4d18=this['editor']['model']['schema'];for(let _0x5e3bca=0x0;_0x5e3bca<_0x2b1460['length'];_0x5e3bca++){if(!(_0x2b1460[_0x5e3bca]['isAdded']||_0x2b1460[_0x5e3bca]['isAddSuggestion']||_0x2b1460[_0x5e3bca]['isRemoved']||_0x2b1460[_0x5e3bca]['isRemoveSuggestion']))continue;if(0x0==_0x2b1460[_0x5e3bca]['distance'])continue;const _0x873de2=_0x2b1460[_0x5e3bca]['item'];_0x5d4d18['isBlock'](_0x873de2)||_0x5d4d18['isLimit'](_0x873de2)||(_0x2b1460[_0x5e3bca]['isAdded']&&delete _0x2b1460[_0x5e3bca]['isAdded'],_0x2b1460[_0x5e3bca]['isAddSuggestion']&&delete _0x2b1460[_0x5e3bca]['isAddSuggestion'],_0x2b1460[_0x5e3bca]['isRemoveSuggestion']&&delete _0x2b1460[_0x5e3bca]['isRemoveSuggestion'],_0x2b1460[_0x5e3bca]['isRemoved']&&(_0x2b1460[_0x5e3bca]['isIncorrect']=!0x0));}return _0x2b1460['filter'](_0x2a49c4=>!_0x2a49c4['isIncorrect']);}['_makeModelFromTape'](_0x38cbea,_0x131345,_0x4d9182){const _0x4c8bc3=new wt(),_0x7266c5=[],_0x3f3469=new Map(),_0x5cbce4=this['editor']['model'],_0x4a5fb4=_0x5cbce4['schema'],_0x49310c=[_0x4c8bc3],_0x37d018={},_0x3dbad9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1e67d3=null;const _0x1e6cfb=[0x0];for(let _0x46a187=0x0;_0x46a187<_0x38cbea['length'];_0x46a187++)if('elementStart'===_0x38cbea[_0x46a187]['type']){_0x38cbea[_0x46a187]['previousPosition']=_0x5cbce4['createPositionFromPath'](_0x4c8bc3,_0x1e6cfb);const _0x4d422e=new ft(_0x38cbea[_0x46a187]['item']['name'],_0x38cbea[_0x46a187]['item']['getAttributes']());_0x49310c[0x0]['_appendChild'](_0x4d422e),_0x1e6cfb['push'](0x0),_0x49310c['unshift'](_0x4d422e),_0x38cbea[_0x46a187]['nextPosition']=_0x5cbce4['createPositionFromPath'](_0x4c8bc3,_0x1e6cfb);}else'elementEnd'===_0x38cbea[_0x46a187]['type']?(_0x49310c['shift'](),_0x38cbea[_0x46a187]['previousPosition']=_0x5cbce4['createPositionFromPath'](_0x4c8bc3,_0x1e6cfb),_0x1e6cfb['pop'](),_0x1e6cfb[_0x1e6cfb['length']-0x1]++,_0x38cbea[_0x46a187]['nextPosition']=_0x5cbce4['createPositionFromPath'](_0x4c8bc3,_0x1e6cfb)):(_0x38cbea[_0x46a187]['previousPosition']=_0x5cbce4['createPositionFromPath'](_0x4c8bc3,_0x1e6cfb),_0x1e67d3?_0x1e67d3['_data']+=_0x38cbea[_0x46a187]['item']['data']:_0x1e67d3=new _t(_0x38cbea[_0x46a187]['item']['data'],_0x38cbea[_0x46a187]['item']['getAttributes']()),_0x38cbea[_0x46a187+0x1]&&'text'===_0x38cbea[_0x46a187+0x1]['type']&&_0x25f072(_0x1e67d3,_0x38cbea[_0x46a187+0x1]['item'])||(_0x49310c[0x0]['_appendChild'](_0x1e67d3),_0x1e67d3=null),_0x1e6cfb[_0x1e6cfb['length']-0x1]+=_0x38cbea[_0x46a187]['item']['offsetSize'],_0x38cbea[_0x46a187]['nextPosition']=_0x5cbce4['createPositionFromPath'](_0x4c8bc3,_0x1e6cfb));for(let _0x42d0d5=0x0;_0x42d0d5<_0x38cbea['length'];_0x42d0d5++){const _0x1c4e37=_0x38cbea[_0x42d0d5]['previousPosition'],_0x23bfa3=_0x38cbea[_0x42d0d5]['nextPosition'];for(const _0x10882c of _0x38cbea[_0x42d0d5]['markersStart'])_0x3f3469['set'](_0x10882c,{'start':_0x1c4e37,'end':null});_0x3fc89e('isRemoveSuggestion',_0x42d0d5,_0x1c4e37,_0x23bfa3),_0x3fc89e('isAddSuggestion',_0x42d0d5,_0x1c4e37,_0x23bfa3),_0x3fc89e('isRemoved',_0x42d0d5,_0x1c4e37,_0x23bfa3),_0x3fc89e('isAdded',_0x42d0d5,_0x1c4e37,_0x23bfa3);for(const _0x844b96 of _0x38cbea[_0x42d0d5]['markersEnd']){_0x3f3469['get'](_0x844b96)['end']=_0x23bfa3;}}for(const [_0x552b8b,_0x5bcb39]of _0x3f3469){const _0x2b1a95=this['editor']['model']['createRange'](_0x5bcb39['start'],_0x5bcb39['end']);_0x4c8bc3['markers']['set'](_0x552b8b,_0x2b1a95);}return _0x7266c5['sort']((_0x28c42f,_0x1ac657)=>{const _0x76ccd1=_0x4c8bc3['markers']['get']('revision:'+_0x28c42f['id']),_0x28e1ef=_0x4c8bc3['markers']['get']('revision:'+_0x1ac657['id']);return _0x76ccd1['start']['isBefore'](_0x28e1ef['start'])?-0x1:_0x76ccd1['start']['isAfter'](_0x28e1ef['start'])?0x1:_0x76ccd1['end']['isBefore'](_0x28e1ef['end'])?-0x1:_0x76ccd1['end']['isAfter'](_0x28e1ef['end'])?0x1:'add'===_0x28c42f['type']?-0x1:0x1;}),{'root':_0x4c8bc3,'changes':_0x7266c5};function _0x3fc89e(_0x5387a9,_0x2022e7,_0x1af000,_0x47a138){const _0x1db32a=!!_0x38cbea[_0x2022e7][_0x5387a9],_0x7357ab=_0x1db32a?_0x38cbea[_0x2022e7][_0x5387a9]['userId']:null,_0x31e0a4=_0x2022e7===_0x38cbea['length']-0x1,_0x5c114b=_0x3dbad9[_0x5387a9][0x0],_0x308f16=_0x4a5fb4['isObject'](_0x38cbea[_0x2022e7]['item']);!_0x37d018[_0x5387a9]&&_0x1db32a?_0x37d018[_0x5387a9]={'start':_0x1af000,'tapeItem':_0x38cbea[_0x2022e7],'userId':_0x7357ab,'type':_0x5387a9}:_0x37d018[_0x5387a9]&&!_0x1db32a?(_0x37d018[_0x5387a9]['end']=_0x1af000,_0x1d8973(_0x37d018[_0x5387a9]),_0x37d018[_0x5387a9]=null):_0x37d018[_0x5387a9]&&_0x1db32a&&_0x37d018[_0x5387a9]['userId']!==_0x7357ab&&(_0x37d018[_0x5387a9]['end']=_0x1af000,_0x5c114b&&_0x5c114b['userId']===_0x37d018[_0x5387a9]['userId']||_0x1d8973(_0x37d018[_0x5387a9]),_0x37d018[_0x5387a9]={'start':_0x1af000,'tapeItem':_0x38cbea[_0x2022e7],'userId':_0x7357ab,'type':_0x5387a9}),_0x37d018[_0x5387a9]&&_0x308f16&&('elementStart'!==_0x38cbea[_0x2022e7]['type']||_0x5c114b&&_0x5c114b['userId']===_0x7357ab||_0x3dbad9[_0x5387a9]['unshift']({'userId':_0x7357ab,'object':_0x38cbea[_0x2022e7]['item'],'change':_0x37d018[_0x5387a9]}),'elementEnd'===_0x38cbea[_0x2022e7]['type']&&_0x5c114b&&_0x5c114b['object']===_0x38cbea[_0x2022e7]['item']&&(_0x3dbad9[_0x5387a9]['shift'](),_0x37d018[_0x5387a9]=_0x5c114b['change'])),_0x37d018[_0x5387a9]&&_0x31e0a4&&(_0x37d018[_0x5387a9]['end']=_0x47a138,_0x1d8973(_0x37d018[_0x5387a9]),_0x37d018[_0x5387a9]=null);}function _0x1d8973({start:_0x117ff5,end:_0x3df71d,tapeItem:_0x14bf94,userId:_0x3c65f3,type:_0x4e2c0f}){const _0x5b07c6=_0x14bf94['item'],_0x268a7a=_0x5cbce4['schema']['isBlock'](_0x5b07c6)&&!_0x5cbce4['schema']['isLimit'](_0x5b07c6),_0x46ff3e=_0x117ff5['nodeAfter']==_0x3df71d['parent']&&_0x3df71d['isAtStart'];if(_0x268a7a&&_0x46ff3e)return;const _0xbdc7ac=_0x5cbce4['createRange'](_0x117ff5,_0x3df71d),_0x52b5f9=_0x131345['get'](_0x3c65f3),_0x4e5e20=new r({'author':_0x52b5f9,'type':'isAdded'==_0x4e2c0f||'isAddSuggestion'==_0x4e2c0f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4e2c0f||'isRemoveSuggestion'==_0x4e2c0f},'createdAt':new Date(),'rootName':_0x4d9182});_0x7266c5['push'](_0x4e5e20),_0x4c8bc3['markers']['set']('revision:'+_0x4e5e20['id'],_0xbdc7ac);}function _0x25f072(_0x1584fd,_0x8599fb){const _0x281584=_0x1584fd['getAttributes'](),_0x5250bf=_0x8599fb['getAttributes']();for(const _0x59f73a of _0x281584){if(_0x59f73a[0x1]!==_0x8599fb['getAttribute'](_0x59f73a[0x0]))return!0x1;_0x5250bf['next']();}return _0x5250bf['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4a2ed4=>{const _0x275682=_0x4a2ed4['markerName']['split'](':')[0x1],_0x460cea=this['_getChangeFromId'](_0x275682);if(!_0x460cea)return null;const _0x50499b='add'==_0x460cea['type']?'insertion':'deletion',_0x23bb2f=['ck-suggestion-marker','ck-suggestion-marker-'+_0x50499b];return _0x460cea['data']['isSuggestion']&&_0x23bb2f['push']('ck-suggestion-marker-'+_0x50499b+'-new'),this['activeChange']==_0x460cea&&_0x23bb2f['push']('ck-suggestion-marker--active'),{'classes':_0x23bb2f,'attributes':{'data-change-id':_0x275682}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2c2c9e=>{_0x2c2c9e['on']('element:pre',(_0x485f1e,_0x401002,_0x5c6c0b)=>{const _0x4bc6fd=_0x401002['viewItem']['getChild'](0x0);if(!_0x4bc6fd||!_0x4bc6fd['is']('element','code'))return;if(!_0x5c6c0b['consumable']['consume'](_0x4bc6fd,{'attributes':['vid_start','vid_end']}))return;const _0x4e7ce9=_0x401002['modelRange']['start']['nodeAfter'];_0x5c6c0b['writer']['setAttribute']('vid_start',_0x4bc6fd['getAttribute']('vid_start'),_0x4e7ce9),_0x5c6c0b['writer']['setAttribute']('vid_end',_0x4bc6fd['getAttribute']('vid_end'),_0x4e7ce9);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x394e43=>{_0x394e43['on']('element',(_0x451d06,_0x583d6d,_0x2b5778)=>{if(!_0x2b5778['consumable']['consume'](_0x583d6d['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x583d6d['modelRange']['isCollapsed'])return;const _0x5767cb=_0x583d6d['modelRange']['start']['nodeAfter'];_0x5767cb['hasAttribute']('vid_start')||_0x5767cb['hasAttribute']('vid')||(_0x2b5778['writer']['setAttribute']('vid_start',_0x583d6d['viewItem']['getAttribute']('vid_start'),_0x5767cb),_0x2b5778['writer']['setAttribute']('vid_end',_0x583d6d['viewItem']['getAttribute']('vid_end'),_0x5767cb));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x12f703=>_0x12f703['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x198315,[,_0x2279cf])=>{['vid_start','vid_end','vid']['includes'](_0x2279cf)&&(_0x198315['return']=!0x0,_0x198315['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c9cfb=>{_0x1c9cfb['on']('attribute:vid',(_0x459f9f,_0x1d33e4,_0x2f40f2)=>{if('\x20'!=_0x1d33e4['item']['data']||_0x1d33e4['item']['parent']['maxOffset']>0x1)return;if(!_0x2f40f2['consumable']['consume'](_0x1d33e4['item'],_0x459f9f['name']))return;const _0x5f2cd8=_0x2f40f2['writer'],_0x47bc1f=_0x2f40f2['mapper']['toViewRange'](_0x1d33e4['range']);_0x5f2cd8['wrap'](_0x47bc1f,_0x5f2cd8['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x57c358){const _0x179185=_0x57c358['plugins']['get']('RevisionViewer');return(_0xd5d6d3,_0x4ea3ad,_0x2c1d7d)=>{const _0x2fafc9=_0x4ea3ad['markerName']['split'](':')[0x1],_0x3798c8=_0x179185['_getChangeFromId'](_0x2fafc9);if(!_0x3798c8)return null;const _0x31b6f6='add'==_0x3798c8['type']?'split':'merge';if(!_0x2c1d7d['consumable']['test'](_0x4ea3ad['markerRange'],_0xd5d6d3['name']))return;const _0x41cf55=_0x4ea3ad['markerRange']['getWalker'](),_0x3097dc=_0x4ea3ad['markerRange']['start'],_0x5166bb=_0x57c358['model']['schema'];let _0x4543de=null,_0x2763f8=null,_0xf17c8e=!0x1,_0x4bdad5=!0x1;for(const _0x34ad1b of _0x41cf55){const _0x97023d=_0x34ad1b['item'];_0xf17c8e=_0xf17c8e||_0x5166bb['isContent'](_0x97023d);const _0x180679=_0x2c1d7d['mapper']['toViewElement'](_0x97023d);if(_0x180679&&_0x180679['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x34ad1b['type']&&(_0x5166bb['isBlock'](_0x97023d)&&!_0x5166bb['isLimit'](_0x97023d)&&(_0x97023d['nextSibling']||_0x3097dc['isAtEnd']?_0x4543de&&_0x4543de['parent']==_0x97023d||(_0x4543de=_0x97023d,_0xa2b575(_0x34ad1b['previousPosition']),_0x4bdad5=!0x0):_0x2763f8=_0x2763f8||_0x34ad1b['previousPosition']));}function _0xa2b575(_0x403a0c){const _0x488393=_0x2c1d7d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31b6f6}),_0x4d918b=_0x2c1d7d['mapper']['toViewPosition'](_0x403a0c);_0x3798c8['data']['isSuggestion']&&_0x2c1d7d['writer']['addClass']('ck-suggestion-marker-'+_0x31b6f6+'-new',_0x488393),_0x179185['activeChange']==_0x3798c8&&_0x2c1d7d['writer']['addClass']('ck-suggestion-marker--active',_0x488393),_0x2c1d7d['writer']['insert'](_0x4d918b,_0x488393),_0x2c1d7d['mapper']['bindElementToMarker'](_0x488393,_0x4ea3ad['markerName']);}_0xf17c8e||_0x4bdad5||!_0x2763f8||_0xa2b575(_0x2763f8);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5ecd9c,_0x356051,_0x28f34d)=>{const _0x12ce87=_0x28f34d['mapper']['markerNameToElements'](_0x356051['markerName']);if(_0x12ce87){for(const _0x2fb9e3 of _0x12ce87)(_0x2fb9e3['hasClass']('ck-suggestion-marker-split')||_0x2fb9e3['hasClass']('ck-suggestion-marker-merge'))&&(_0x28f34d['mapper']['unbindElementFromMarkerName'](_0x2fb9e3,_0x356051['markerName']),_0x28f34d['writer']['remove'](_0x2fb9e3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1e03e7,_0x3789d8,_0x32ebbc)=>{const _0x5057c0=_0x3789d8['markerName']['split'](':')[0x1],_0x356354=this['_getChangeFromId'](_0x5057c0);if(!_0x356354)return null;const _0x4c5280='add'==_0x356354['type']?'split':'merge';if(_0x32ebbc['consumable']['test'](_0x3789d8['markerRange'],_0x1e03e7['name']))for(const _0x476247 of _0x3789d8['markerRange']['getItems']()){if(!_0x476247['is']('element','softBreak'))continue;const _0x190962=_0x32ebbc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c5280}),_0x4534fb=_0x32ebbc['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x476247));_0x356354['data']['isSuggestion']&&_0x32ebbc['writer']['addClass']('ck-suggestion-marker-'+_0x4c5280+'-new',_0x190962),this['activeChange']==_0x356354&&_0x32ebbc['writer']['addClass']('ck-suggestion-marker--active',_0x190962),_0x32ebbc['writer']['insert'](_0x4534fb,_0x190962),_0x32ebbc['mapper']['bindElementToMarker'](_0x190962,_0x3789d8['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1322a8=>{for(const _0x51d492 of this['editor']['model']['document']['getRootNames']()){const _0x4f91f0=this['editor']['model']['document']['getRoot'](_0x51d492),_0x4fd54c=this['editor']['editing']['view']['document']['getRoot'](_0x51d492);if(_0x4fd54c){const _0x230c69=_0x4f91f0['getAttribute']('revisionHistoryAttachChange');if(_0x1322a8['removeAttribute']('data-change-id',_0x4fd54c),_0x1322a8['removeClass']('ck-revision-history-root-add',_0x4fd54c),_0x1322a8['removeClass']('ck-revision-history-root-remove',_0x4fd54c),_0x1322a8['removeClass']('ck-revision-history-root--active',_0x4fd54c),_0x230c69){const _0x2ec9eb=this['_getChangeFromId'](_0x230c69);if(!_0x2ec9eb)return null;_0x1322a8['setAttribute']('data-change-id',_0x230c69,_0x4fd54c),_0x1322a8['addClass']('ck-revision-history-root-'+_0x2ec9eb['type'],_0x4fd54c),this['activeChange']==_0x2ec9eb&&_0x1322a8['addClass']('ck-revision-history-root--active',_0x4fd54c);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x27cbe8=>'revision-comment:'+_0x27cbe8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x911b3c=>'revision-suggestion:'+_0x911b3c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x12be22=>({'name':'suggestion:'+_0x12be22,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x369a5d=>{const _0x5749ea=_0x369a5d['markerName']['split'](':')[0x1];return'insertion'!=_0x5749ea&&'deletion'!=_0x5749ea?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5749ea]};}}),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',(_0x1a026b,_0x36220e,_0x120eb4)=>{const _0xc0e992=_0x120eb4['mapper']['markerNameToElements'](_0x36220e['markerName']);if(_0xc0e992){for(const _0x572ba2 of _0xc0e992)_0x572ba2['is']('uiElement')&&(_0x120eb4['mapper']['unbindElementFromMarkerName'](_0x572ba2,_0x36220e['markerName']),_0x120eb4['writer']['remove'](_0x572ba2));}},{'priority':'high'});}['_getChangeFromId'](_0x3cf8bb){return this['_changeIdToChange']['get'](_0x3cf8bb);}['_getViewForChange'](_0x53b310){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x53b310),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x59d1cc,_0x43aff1,_0x2bc0ec,_0x4bfe69)=>{_0x4bfe69&&this['_balloon']['remove'](_0x4bfe69),_0x2bc0ec&&(this['_balloon']['add']({'view':_0x2bc0ec,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1d3341=this['editor']['editing'],_0x14ec79=this['_getChangeFromId'](_0x2bc0ec['changeId']);let _0x42568c;if(_0x14ec79['data']['isOnRoot']){const _0x37c7cf=_0x1d3341['view']['getDomRoot'](_0x14ec79['rootName']);_0x42568c=Array['from'](_0x37c7cf['getClientRects']());}else{const _0x41bded=this['editor']['model']['markers']['get']('revision:'+_0x2bc0ec['changeId']);_0x42568c=Array['from'](_0x1d3341['mapper']['markerNameToElements'](_0x41bded['name']))['map'](_0x48cf52=>_0x1d3341['view']['domConverter']['mapViewToDom'](_0x48cf52))['map'](_0x32bc6d=>Array['from'](_0x32bc6d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x42568c[0x0];return _0x42568c['find'](_0xd4062b=>_0xd4062b['top']-0x3<=this['_activeViewTarget']['y']&&_0xd4062b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xd4062b['left']-0x3<=this['_activeViewTarget']['x']&&_0xd4062b['right']+0x3>=this['_activeViewTarget']['x'])||_0x42568c[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x31aaa0,_0x4c6a2d,_0x37507f,_0x1a354c)=>{this['activeView']=_0x37507f?this['_getViewForChange'](_0x37507f):null,this['editor']['model']['change'](()=>{const _0x339209=this['editor']['editing'];_0x1a354c&&(_0x1a354c['data']['isOnRoot']?_0x339209['view']['change'](_0xf92c6c=>{_0xf92c6c['removeClass']('ck-revision-history-root--active',_0x339209['view']['document']['getRoot'](_0x1a354c['rootName']));}):_0x339209['reconvertMarker']('revision:'+_0x1a354c['id'])),_0x37507f&&(_0x37507f['data']['isOnRoot']?_0x339209['view']['change'](_0x266504=>{_0x266504['addClass']('ck-revision-history-root--active',_0x339209['view']['document']['getRoot'](_0x37507f['rootName']));}):_0x339209['reconvertMarker']('revision:'+_0x37507f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x353d43,_0xe85de9)=>{if(this['activeChange'])return;const _0x5728cf=this['_findChangeIdFromDomTarget'](_0xe85de9['target']),_0x2d4723=this['_changeIdToChange']['get'](_0x5728cf);_0x2d4723?(this['_activeViewTarget']={'x':_0xe85de9['domEvent']['x'],'y':_0xe85de9['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2d4723)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4c46b3,_0x3d6a1e)=>{const _0x5a7c98=this['_findChangeIdFromDomTarget'](_0x3d6a1e['target']),_0x5008a9=this['_changeIdToChange']['get'](_0x5a7c98);_0x5008a9?(this['_activeViewTarget']={'x':_0x3d6a1e['domEvent']['x'],'y':_0x3d6a1e['domEvent']['y']},_0x5008a9===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5008a9):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5301f1){do{const _0x39e21f=_0x5301f1['getAttribute']('data-change-id');if(_0x39e21f)return _0x39e21f;_0x5301f1=_0x5301f1['parent'];}while(_0x5301f1);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1a606f=>{for(const _0x359868 of this['editor']['model']['markers'])_0x1a606f['removeMarker'](_0x359868);});}}function tt(_0x49f244,_0x559db8){return(_0x101982,_0x2a9d4c,_0xaca9dd)=>{if(!_0xaca9dd['consumable']['test'](_0x2a9d4c['markerRange'],_0x101982['name']))return;const _0x1837fa=_0x2a9d4c['markerRange']['getWalker'](),_0x557f6f=_0x2a9d4c['markerRange']['start'],_0x1c70e6=_0x49f244['model']['schema'];let _0x4d5f45=null,_0x4b28fe=null,_0x420c29=!0x1,_0x70fca=!0x1;for(const _0x1908e0 of _0x1837fa){const _0x201a9c=_0x1908e0['item'];_0x420c29=_0x420c29||_0x1c70e6['isContent'](_0x201a9c);const _0x1e6a87=_0xaca9dd['mapper']['toViewElement'](_0x201a9c);if(_0x1e6a87&&_0x1e6a87['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1908e0['type']&&(_0x1c70e6['isBlock'](_0x201a9c)&&!_0x1c70e6['isLimit'](_0x201a9c)&&(_0x201a9c['nextSibling']||_0x557f6f['isAtEnd']?_0x4d5f45&&_0x4d5f45['parent']==_0x201a9c||(_0x4d5f45=_0x201a9c,_0x3ea82f(_0x1908e0['previousPosition']),_0x70fca=!0x0):_0x4b28fe=_0x4b28fe||_0x1908e0['previousPosition']));}function _0x3ea82f(_0x19dce9){const _0x4f1b24=_0xaca9dd['mapper']['toViewPosition'](_0x19dce9),_0x387dc9=_0xaca9dd['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x559db8});_0xaca9dd['writer']['insert'](_0x4f1b24,_0x387dc9),_0xaca9dd['mapper']['bindElementToMarker'](_0x387dc9,_0x2a9d4c['markerName']);}_0x420c29||_0x70fca||!_0x4b28fe||_0x3ea82f(_0x4b28fe);};}class yt extends _0x5205b2{constructor(_0x7651cd){super(_0x7651cd);const _0x4eb8cf=_0x7651cd['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4eb8cf,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4eb8cf,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4237f4=this['editor'],_0x4dff17=_0x4237f4['plugins']['get'](d),_0x2ac885=_0x4dff17['isReady']?_0x4dff17['diff']['newRevisionId']:null;_0x4237f4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2ac885);}['refresh'](){const {isReady:_0x59d52d,isEnabled:_0x26fd43,repository:_0x3f17d5,diff:_0x5018db}=this['editor']['plugins']['get'](d),_0x29f995=_0x5018db&&_0x3f17d5['getLaterVisibleRevision'](_0x5018db['newRevisionId']);this['isEnabled']=_0x59d52d&&_0x26fd43&&Boolean(_0x29f995);}}class bt extends _0x5205b2{['_step'];constructor(_0x4b1254,{direction:_0x115e96}){super(_0x4b1254);const _0x2f4d6c=_0x4b1254['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x115e96?0x1:-0x1,this['listenTo'](_0x2f4d6c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2f4d6c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2f4d6c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x39644d=this['editor'],_0x17c441=_0x39644d['plugins']['get'](d),{isNavigationMode:_0x10649d,currentChangeNumber:_0x5e911e}=_0x17c441;let _0x1aadb3;if(_0x17c441['activeChange']=_0x10649d?_0x17c441['diff']['changes']['get'](_0x5e911e+this['_step']):_0x17c441['diff']['changes']['first'],_0x17c441['activeChange']['data']['isOnRoot'])_0x1aadb3=_0x39644d['editing']['view']['getDomRoot'](_0x17c441['activeChange']['rootName']);else{const _0x2998ce=_0x39644d['model']['markers']['get']('revision:'+_0x17c441['activeChange']['id']);_0x1aadb3=_0x24c5c4(_0x39644d['editing'],_0x2998ce);}_0x40d3b7({'target':_0x1aadb3,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x1057c3,currentChangeNumber:_0x59dd2b,numberOfChanges:_0x3c8c7a,isReady:_0x50e7e5,isEnabled:_0x12d393}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x12d393&&_0x50e7e5&&_0x3c8c7a)&&(!_0x1057c3||(0x1===this['_step']?_0x59dd2b<_0x3c8c7a-0x1:_0x59dd2b>0x0));}}class di extends _0x19e8cf{constructor(_0x47e0b2){super(_0x47e0b2);const _0x4e3185=this['bindTemplate'],_0x30cdb0=new _0x36e8a7(_0x47e0b2),_0x137378=new _0x36e8a7(_0x47e0b2);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',(_0x8162f6,_0x514c61)=>_0x8162f6&&_0x514c61>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4cf440,_0x531575,_0x420b9e,_0x1a4df5)=>{if(!_0x4cf440)return R(_0x47e0b2,'Loading...');if(!_0x420b9e)return R(_0x47e0b2,'No\x20changes');const _0x3726bd=R(_0x47e0b2,'NUMBER_OF_CHANGES',_0x420b9e);return _0x1a4df5?R(_0x47e0b2,'X_OF_Y_CHANGES',[_0x531575+0x1,_0x420b9e]):_0x3726bd;}),_0x30cdb0['set']({'label':R(_0x47e0b2,'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'}),_0x137378['set']({'label':R(_0x47e0b2,'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'}),_0x30cdb0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x137378['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x30cdb0['on']('execute',()=>this['fire']('execute','backward')),_0x137378['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',_0x4e3185['if']('_isStatusLabelVisible','ck-hidden',_0x5c6411=>!_0x5c6411)]},'children':[{'text':_0x4e3185['to']('isNavigationMode',_0x3ec3c2=>_0x3ec3c2?R(_0x47e0b2,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x47e0b2,'Total')+':\x20')}]},{'text':_0x4e3185['to']('_statusText')}]},new _0x53264a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x30cdb0,_0x137378]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x407311{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3f53ed=this['editor']['editing']['view'];_0x3f53ed['change'](_0x58bb30=>{for(const _0x54b62c of _0x3f53ed['document']['roots'])_0x58bb30['addClass'](ce,_0x54b62c);});}['hide'](){const _0x46be6a=this['editor']['editing']['view'];_0x46be6a['change'](_0x2d5e15=>{for(const _0x4bfbd9 of _0x46be6a['document']['roots'])_0x2d5e15['removeClass'](ce,_0x4bfbd9);});}}class m extends _0x407311{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x59db87=this['editor'],_0x1536db=_0x59db87['plugins']['get'](d),_0x350ee0=_0x59db87['plugins']['get'](ae);_0x59db87['ui']['componentFactory']['add']('exitToEditing',_0x73a227=>{const _0x44b5b3=new _0x36e8a7(_0x73a227);return _0x44b5b3['set']({'label':R(_0x73a227,'Back\x20to\x20editing'),'icon':_0x5b30c8['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x44b5b3,'execute',()=>{_0x59db87['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x44b5b3;}),_0x59db87['ui']['componentFactory']['add']('restoreRevision',_0x254c91=>{const _0x47993c=new _0x36e8a7(_0x254c91);return _0x47993c['set']({'label':R(_0x254c91,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x47993c['bind']('isEnabled')['to'](_0x59db87['commands']['get']('restoreRevision')),this['listenTo'](_0x47993c,'execute',()=>_0x59db87['execute']('restoreRevision')),_0x47993c;}),_0x59db87['ui']['componentFactory']['add']('changesNavigation',_0x1497ed=>{const _0x382ae4=new di(_0x1497ed),_0x3b56b4=_0x59db87['commands']['get']('showPreviousChange'),_0x193d48=_0x59db87['commands']['get']('showNextChange');return _0x382ae4['bind']('isBackwardNavigationEnabled')['to'](_0x3b56b4,'isEnabled'),_0x382ae4['bind']('isForwardNavigationEnabled')['to'](_0x193d48,'isEnabled'),_0x382ae4['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1536db),this['listenTo'](_0x382ae4,'execute',(_0x4807db,_0x36b3d1)=>{_0x59db87['execute']('forward'===_0x36b3d1?'showNextChange':'showPreviousChange');}),_0x382ae4;}),_0x350ee0['show'](),_0x1536db['on']('change:isReady',(_0x444709,_0x1f3ee5,_0x5160cf)=>{_0x5160cf?_0x350ee0['hide']():_0x350ee0['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x338f8d,_0x1274ee){super(_0x338f8d,_0x1274ee);const _0x49fa26=this['bindTemplate'];this['set']({'label':R(_0x338f8d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x338f8d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x49fa26['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 _0x51e4a1=this['fieldView']['element'];this['_tooltipString']=_0x51e4a1['scrollWidth']>_0x51e4a1['clientWidth']&&_0x51e4a1['value']||'';}}class ti extends _0x19e8cf{constructor(_0x3f1b42,_0x5a041e,_0x47062f){super(_0x3f1b42);const _0x2e52b2=new _0x3e63b5();_0x2e52b2['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 _0xd9e90d=['ck','ck-revision-history-sidebar__revision-author'];_0x47062f&&_0xd9e90d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x154b22=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3f1b42,_0x47062f?'Revision\x20creator':'Revision\x20author')},'children':[_0x2e52b2,_0x5a041e['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xd9e90d},'children':_0x154b22});}}function ni(_0x3485ff,_0x4eebfe){const _0x52131a=_0x3485ff['bindTemplate'],_0xbd7c03=_0x3485ff['locale'],_0x35e1f0=_0x3509e4(_0xbd7c03);_0x35e1f0['panelPosition']='sw';const _0x1682b9=function(_0x4e4ec7,_0x508e50){const _0x3abe77=function(_0x25754f,_0x2e7084){const _0x128be2=_0x25754f['locale'],_0x2f1971={'Compare\x20against\x20selected':R(_0x128be2,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x128be2,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x128be2,'Restore\x20this\x20revision')};return _0x2e7084['map'](_0x217fc6=>{const _0x397bd6=_0x2f1971[_0x217fc6['name']];return _0x397bd6&&_0x397bd6!==_0x217fc6['name']&&(_0x217fc6['name']=_0x397bd6),_0x217fc6;});}(_0x4e4ec7,_0x508e50),_0x1eb7ce=new _0x515089();for(const _0x2d8978 of _0x3abe77){const _0x2bf80f={'type':'button','model':new to({'label':_0x2d8978['name'],'class':_0x2d8978['class'],'withText':!0x0,'role':'menuitem','_action':_0x2d8978['action']})};_0x2bf80f['model']['bind']('isEnabled')['to'](_0x4e4ec7,'isActionsDropdownOpen',_0x5010c7=>'function'!=typeof _0x2d8978['isEnabled']||(!_0x5010c7||_0x2d8978['isEnabled'](_0x4e4ec7))),_0x1eb7ce['add'](_0x2bf80f);}return _0x1eb7ce;}(_0x3485ff,_0x4eebfe);return _0x3485ff['bind']('isActionsDropdownOpen')['to'](_0x35e1f0,'isOpen'),_0x35e1f0['buttonView']['set']({'label':R(_0xbd7c03,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5b30c8['threeVerticalDots']}),_0x35e1f0['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x52131a['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x52131a['to'](_0x590e27=>_0x590e27['stopPropagation']())}}),_0x35e1f0['on']('execute',_0x2b6560=>{_0x3485ff['isReady']&&'function'==typeof _0x2b6560['source']['_action']&&_0x2b6560['source']['_action'](_0x3485ff);}),_0x861ad1(_0x35e1f0,_0x1682b9,{'role':'menu'}),_0x35e1f0['listenTo'](_0x3485ff,'change:isActionsDropdownOpen',(_0x3024e4,_0x4f1c73,_0x45a109)=>{if(_0x45a109)for(const _0x23d0d9 of _0x35e1f0['listView']['items']){const _0x5ea6b3=_0x23d0d9['children']['first'],_0xa7c206=_0x4eebfe['find'](_0x40d6c1=>_0x40d6c1['action']===_0x5ea6b3['_action'])['isVisible'];_0x23d0d9['isVisible']=void 0x0===_0xa7c206||_0xa7c206(_0x3485ff);}}),_0x35e1f0;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x473037(_0x19e8cf){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x265ee2,_0x39c978,_0x456866,_0x48514d){super(_0x265ee2);const _0x4ffb3e=this['bindTemplate'],_0x88ee60=function(_0x35837d,_0x5ea5f0){const _0x1945a1=Array['from'](_0x5ea5f0['authors'])['filter'](_0x215184=>_0x215184!=_0x5ea5f0['creator']);return _0x5ea5f0['creator']&&_0x1945a1['unshift'](_0x5ea5f0['creator']),_0x1945a1['map'](_0x58ac1b=>new ti(_0x35837d,_0x58ac1b,_0x58ac1b==_0x5ea5f0['creator']));}(_0x265ee2,_0x39c978);this['id']=_0x39c978['id'],this['_revision']=_0x39c978,this['_requireRevisionName']=_0x48514d,this['bind']('name','createdAt')['to'](_0x39c978),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2ff1b3=>{return _0x157859=_0x265ee2['uiLanguage'],(_0x23fa34=_0x2ff1b3)['toLocaleDateString'](_0x157859,{'month':'long','day':'numeric'})+',\x20'+_0x23fa34['toLocaleTimeString'](_0x157859,{'hour':'numeric','minute':'numeric'});var _0x157859,_0x23fa34;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x265ee2,_0x29f839),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x356488=>_0x356488||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xcdc9c6,_0x1dc609)=>_0xcdc9c6&&_0x1dc609),this['revisionActionsView']=_0x456866&&_0x456866['length']?ni(this,_0x456866):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4ffb3e['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4ffb3e['if']('isEnabled','ck-disabled',_0x2d71c2=>!_0x2d71c2),_0x4ffb3e['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4ffb3e['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4ffb3e['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':_0x4ffb3e['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':_0x88ee60}]},this['revisionActionsView']],'on':{'click':_0x4ffb3e['to'](_0x47095e=>{_0x47095e['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5e8ba4=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5e8ba4,'change',()=>{this['_requireRevisionName']&&!_0x5e8ba4['value']||this['fire']('setName',{'id':this['id'],'name':_0x5e8ba4['value']}),_0x5e8ba4['value']||(_0x5e8ba4['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(_0xeef225,_0x4ff0b3){const _0x5cf1b1=_0x417bee['fromJSDate'](_0xeef225)['setLocale'](_0x4ff0b3),_0x1cb6de=_0x417bee['local'](),_0x29cb32=_0x1cb6de['minus']({'days':0x1})['startOf']('day');let _0x588a40,_0x549736;return _0x5cf1b1['hasSame'](_0x1cb6de,'day')?(_0x588a40=_0x5cf1b1['startOf']('day')['toJSDate'](),_0x549736=_0x5cf1b1['toRelativeCalendar']()):_0x5cf1b1['hasSame'](_0x29cb32,'day')?(_0x588a40=_0x29cb32['toJSDate'](),_0x549736=_0x5cf1b1['toRelativeCalendar']()):_0x5cf1b1['hasSame'](_0x1cb6de,'week')?(_0x588a40=_0x5cf1b1['startOf']('week')['toJSDate'](),_0x549736=_0x5cf1b1['weekdayLong']||''):_0x5cf1b1['hasSame'](_0x1cb6de,'year')?(_0x588a40=_0x5cf1b1['startOf']('month')['toJSDate'](),_0x549736=_0x5cf1b1['monthLong']||''):(_0x588a40=_0x5cf1b1['startOf']('year')['toJSDate'](),_0x549736=String(_0x5cf1b1['year'])),{'startDate':_0x588a40,'localizedPeriodName':_0x549736};}class vi extends _0x19e8cf{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x384fc4,_0x2056b5,_0x4c3871,_0x10da6e){super(_0x384fc4);const _0x12911e=mi(_0x2056b5,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x2056b5,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4c3871,this['_requireRevisionName']=_0x10da6e,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':_0x12911e}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x526274){const _0x2df6c9=new ai(this['locale'],_0x526274,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2df6c9);}['removeRevision'](_0x17bfa1){const _0x2df551=this['revisionViews']['find'](_0x1dc4a1=>_0x1dc4a1['id']===_0x17bfa1['id']);this['revisionViews']['remove'](_0x2df551);}}class as extends _0x19e8cf{constructor(_0x37de30){super(_0x37de30);const _0x1976a2=new _0x3e63b5();_0x1976a2['content']=_0x5b30c8['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1976a2,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x37de30,'Revision\x20history')]}]});}}class li extends _0x19e8cf{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4687cc,_0x33ec5c,_0xe69162,_0x46867c){super(_0x4687cc);const _0x36e9a8=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x33ec5c,this['_revisionActions']=_0xe69162,this['_requireRevisionName']=_0x46867c,this['on']('select',(_0x5e8935,_0x2bec04)=>{this['fire']('revisionSelected',_0x2bec04);}),this['on']('setName',(_0x2dbc1,_0x1405ca)=>{this['fire']('revisionSetName',_0x1405ca);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4687cc),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x36e9a8['if']('isEnabled','ck-disabled',_0x335d5b=>!_0x335d5b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2a0536 of this['_revisions'])this['_addRevision'](_0x2a0536);this['_revisions']['on']('add',(_0x225044,_0x3540b9)=>{this['_addRevision'](_0x3540b9);}),this['_revisions']['on']('remove',(_0x201eb9,_0x6847b0)=>{this['_removeRevision'](_0x6847b0);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x125b72=>_0x125b72['revisionViews']['map'](_0x5ecabd=>_0x5ecabd))['flat']();}['selectRevision'](_0x378276){for(const _0xb7d0a8 of this['revisionViews'])_0x378276&&_0x378276['id']===_0xb7d0a8['id']?_0xb7d0a8['select']():_0xb7d0a8['deselect']();}['highlightRevisions'](_0x58fb65){for(const _0x38c3a1 of this['revisionViews'])_0x58fb65['some'](({id:_0x2b7277})=>_0x2b7277===_0x38c3a1['id'])?_0x38c3a1['highlight']():_0x38c3a1['unhighlight']();}['_addRevision'](_0x2e474c){const _0xeeebf3=mi(_0x2e474c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x36c929=this['timePeriodViews']['get'](0x0);_0x36c929&&_0x36c929['startDate']['getTime']()===_0xeeebf3['getTime']()||(_0x36c929=new vi(this['locale'],_0xeeebf3,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x36c929)),_0x36c929['addRevision'](_0x2e474c);}['_removeRevision'](_0x3b0afc){const _0x4848c7=mi(_0x3b0afc['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4848c7)['removeRevision'](_0x3b0afc);}['_getTimePeriodViewByStartDate'](_0xb4bee){return this['timePeriodViews']['find'](_0x13fee7=>_0x13fee7['startDate']['getTime']()===_0xb4bee['getTime']());}}class g extends _0x407311{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x4854ea,uid as _0x2e1580,Collection as _0x431dca,logWarning as _0x2d3c2f,FocusTracker as _0x4174b2,KeystrokeHandler as _0x3fca35,scrollViewportToShowTarget as _0x203262,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x875336}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xc730b6,set as _0x23be20,unset as _0x5eb009,isEqual as _0x3ac5c2}from'lodash-es';import{Plugin as _0x28e165,PendingActions as _0x2e9993,icons as _0x22cef4,Command as _0x3e232a,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3c6642,getMarkerDomElement as _0x4c9762,ConfirmMixin as ti,sanitizeEditorConfig as _0x16fc5f}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3f8608,ViewText as _0x444cdc,ViewElement as _0x413445,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x509f44,ViewAttributeElement as _0x2af67f,ViewEmptyElement as _0x3172e5,ViewRawElement as _0x409a2d,ViewUIElement as _0x51e198,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5ec9ce,submitHandler as _0x3b7c97,LabeledFieldView as _0xce7eed,createLabeledInputText as _0x103ec4,createDropdown as _0x11dfdd,ListView as _0x55746c,ListItemView as _0x22def1,ButtonView as te,MenuBarMenuView as _0x1c53c1,MenuBarMenuListView as _0x5ea68e,MenuBarMenuListItemView as _0x136567,MenuBarMenuListItemButtonView as _0x476170,ContextualBalloon as _0x4b1f2e,ToolbarSeparatorView as _0x500304,IconView as _0x3afdff,addListToDropdown as to,ViewModel as _0xbc0d01,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 _0x2e64a2}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x4854ea(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x45b89d){super(),this['id']=_0x45b89d['id']||_0x2e1580(),this['creator']=_0x45b89d['creator']||null,this['authors']=_0x45b89d['authors']||[],this['diffData']=_0x45b89d['diffData']||null,this['toVersion']=_0x45b89d['toVersion']||0x0,this['fromVersion']=_0x45b89d['fromVersion']||0x0,this['set']('name',_0x45b89d['name']||''),this['set']('createdAt',_0x45b89d['createdAt']||new Date()),this['set']('attributes',_0x45b89d['attributes']||{});}['setName'](_0x442c51){this['_update']({'name':_0x442c51});}['setAttribute'](_0x274429,_0x60e5ff){const _0x29a440=_0xc730b6(this['attributes']);_0x23be20(_0x29a440,_0x274429,_0x60e5ff),this['_update']({'attributes':_0x29a440});}['removeAttribute'](_0x5b276f){const _0x258459=_0xc730b6(this['attributes']);_0x5eb009(_0x258459,_0x5b276f),this['_update']({'attributes':_0x258459});}['_update'](_0x3d245e,_0x156744=!0x1){let _0x22aca0=!0x1;const _0x1a1afe={'id':this['id']},_0x2599bd=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5bf4a3 of _0x2599bd){const _0xe7799f=_0x3d245e[_0x5bf4a3];void 0x0!==_0xe7799f&&_0xe7799f!==this[_0x5bf4a3]&&(this[_0x5bf4a3]=_0xe7799f,_0x1a1afe[_0x5bf4a3]=_0xe7799f,_0x22aca0=!0x0);}_0x22aca0&&(_0x1a1afe['authors']&&(_0x1a1afe['authorsIds']=_0x1a1afe['authors']['map'](_0x10dbe6=>_0x10dbe6['id']),delete _0x1a1afe['authors']),this['fire']('_update',_0x1a1afe,_0x156744));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x50e122=>_0x50e122['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x28e165{['_revisions'];static get['requires'](){return[_0x3c6642];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4ba666){super(_0x4ba666),this['_revisions']=new _0x431dca();}['afterInit'](){!async function(_0x62520f){const _0x1ff6b6=_0x37eab9([0x33,0x7a,0x74,0x76,0x59,0x72,0x64,0x6f,0x34,0x42,0x79,0x4b,0x53,0x4c,0x6e,0x68,0x56,0x66,0x62,0x6b,0x38,0x71,0x32,0x57,0x58,0x50,0x75,0x54,0x30,0x5a,0x48,0x65,0x4e,0x4d,0x61,0x4a,0x39,0x69,0x6d,0x46,0x4f,0x6a,0x47,0x6c,0x44,0x55,0x35,0x43,0x31,0x49,0x78,0x70,0x63,0x73,0x77,0x67,0x45,0x36,0x51,0x41,0x37,0x52]),_0x2706a6=0xeb829,_0x2047ee=0x3ed194e2,_0x412c81=0x3ed6c8e2^_0x2047ee,_0x5d7883=window[_0x37eab9([0x44,0x61,0x74,0x65])][_0x37eab9([0x6e,0x6f,0x77])](),_0x3f6893=_0x62520f[_0x37eab9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2ff6aa=new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x217206=>{_0x3f6893[_0x37eab9([0x6f,0x6e,0x63,0x65])](_0x37eab9([0x72,0x65,0x61,0x64,0x79]),_0x217206);}),_0x4bdfa8={[_0x37eab9([0x6b,0x74,0x79])]:_0x37eab9([0x45,0x43]),[_0x37eab9([0x75,0x73,0x65])]:_0x37eab9([0x73,0x69,0x67]),[_0x37eab9([0x63,0x72,0x76])]:_0x37eab9([0x50,0x2d,0x32,0x35,0x36]),[_0x37eab9([0x78])]:_0x37eab9([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]),[_0x37eab9([0x79])]:_0x37eab9([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]),[_0x37eab9([0x61,0x6c,0x67])]:_0x37eab9([0x45,0x53,0x32,0x35,0x36])},_0x29d5f0=_0x3f6893[_0x37eab9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x37eab9([0x67,0x65,0x74])](_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5bcbcf(){let _0x34d488,_0x3b086d=null,_0x42c9f5=null;try{if(_0x29d5f0==_0x37eab9([0x47,0x50,0x4c]))return _0x37eab9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x34d488=_0x5c2e9b(),!_0x34d488)return _0x37eab9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x34d488[_0x37eab9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x42c9f5=_0x65f393(_0x34d488[_0x37eab9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x34d488[_0x37eab9([0x6a,0x74,0x69])])),await _0x3600b7()?_0x40f4fb()?_0x127f80()?_0x37eab9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2caa4b()?(_0x34d488[_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37eab9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b086d=_0x2cd84e(_0x37eab9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x34d488[_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37eab9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3b086d=_0x2cd84e(_0x37eab9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x34d488[_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x37eab9([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3b086d=_0x2cd84e(_0x37eab9([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2125fd()):_0x37eab9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x37eab9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x37eab9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5dc2b2){return _0x37eab9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x127f80(){const _0x58437c=[_0x37eab9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x37eab9([0x74,0x72,0x69,0x61,0x6c])][_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34d488[_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5d7883/0x3e8:0xe10*_0x412c81;return _0x34d488[_0x37eab9([0x65,0x78,0x70])]<_0x58437c;}function _0x40f4fb(){const _0x287858=_0x34d488[_0x37eab9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x287858)return!0x1;if(_0x287858[_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37eab9([0x2a])))return!0x0;if(_0x287858[_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37eab9([0x52,0x48])))return!0x0;if(_0x287858[_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37eab9([0x52,0x52,0x48]))){if(_0x20c83f())return!0x0;if(_0x364bb0()||_0x16c8d4())return!0x0;}return!0x1;}function _0x2caa4b(){const _0x14a832=_0x34d488[_0x37eab9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x14a832||0x0==_0x14a832[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x28724c}=new URL(window[_0x37eab9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x14a832[_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x28724c))return!0x0;const _0x4f68d6=_0x28724c[_0x37eab9([0x73,0x70,0x6c,0x69,0x74])](_0x37eab9([0x2e]));return _0x14a832[_0x37eab9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x396994=>_0x396994[_0x37eab9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x37eab9([0x2a])))[_0x37eab9([0x6d,0x61,0x70])](_0xad9435=>_0xad9435[_0x37eab9([0x73,0x70,0x6c,0x69,0x74])](_0x37eab9([0x2e])))[_0x37eab9([0x73,0x6f,0x6d,0x65])](_0x347cba=>_0x4f68d6[_0x37eab9([0x65,0x76,0x65,0x72,0x79])]((_0x452861,_0x226503)=>_0x347cba[_0x226503]===_0x452861||_0x347cba[_0x226503]===_0x37eab9([0x2a])));}function _0x2125fd(){return _0x3b086d&&_0x42c9f5?new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9c2d70,_0x26d68)=>{_0x3b086d[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x9c2d70,_0x26d68),_0x42c9f5[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x7fa5ca=>{_0x7fa5ca!=_0x37eab9([0x56,0x61,0x6c,0x69,0x64])&&_0x9c2d70(_0x7fa5ca);},_0x26d68);}):_0x3b086d||_0x42c9f5||_0x37eab9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x65f393(_0xe91e7,_0x598061){return new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x596045=>{if(_0x183bd6())return _0x596045(_0x37eab9([0x56,0x61,0x6c,0x69,0x64]));_0x7f1b4c(),_0x3f6893[_0x37eab9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x37eab9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48b8cc=!0x1;const _0x2933f0=_0x2e1580();function _0xf9c2ad(_0x40a5df){return!!_0x40a5df&&(typeof _0x40a5df===_0x37eab9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40a5df===_0x37eab9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40a5df[_0x37eab9([0x74,0x68,0x65,0x6e])]===_0x37eab9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40a5df[_0x37eab9([0x63,0x61,0x74,0x63,0x68])]===_0x37eab9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x168633(_0x5bac68){_0x567853(_0x5bac68)[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x5524d5=>{if(!_0x5524d5||_0x5524d5[_0x37eab9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x37eab9([0x6f,0x6b]))return _0x37eab9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x544934(_0x297de5(_0x2933f0+_0x598061))!=_0x5524d5[_0x37eab9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x37eab9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x37eab9([0x56,0x61,0x6c,0x69,0x64]);})[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x4edcb8=>(_0x5b1da6(),_0x4edcb8),()=>{const _0x172b34=_0xd850a();return null==_0x172b34?(_0x5b1da6(),_0x37eab9([0x56,0x61,0x6c,0x69,0x64])):_0x37eab9(_0x5d7883-_0x172b34>(0x1add10e2^_0x2047ee)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x596045)[_0x37eab9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x596045(_0x37eab9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x196b44=0x3ee77a62^_0x2047ee;function _0x5b1da6(){const _0x40e5c7=_0x37eab9([0x6c,0x6c,0x63,0x74,0x2d])+_0x544934(_0x297de5(_0xe91e7)),_0x503b6d=_0x21212f(_0x544934(window[_0x37eab9([0x4d,0x61,0x74,0x68])][_0x37eab9([0x63,0x65,0x69,0x6c])](_0x5d7883/_0x196b44)));window[_0x37eab9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37eab9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x40e5c7,_0x503b6d);}function _0xd850a(){const _0x41f7fd=_0x37eab9([0x6c,0x6c,0x63,0x74,0x2d])+_0x544934(_0x297de5(_0xe91e7)),_0x1b55c9=window[_0x37eab9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x37eab9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41f7fd);return _0x1b55c9?window[_0x37eab9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21212f(_0x1b55c9),0x10)*_0x196b44:null;}function _0x567853(_0x4b38de){return new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ac418,_0x10b326)=>{_0x4b38de[_0x37eab9([0x74,0x68,0x65,0x6e])](_0x4ac418,_0x10b326),window[_0x37eab9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10b326,0x3ed04022^_0x2047ee);});}}_0x3f6893[_0x37eab9([0x6f,0x6e])](_0x37eab9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x46089a,_0x20e2d7)=>{if(_0x20e2d7[0x0]!=_0xe91e7)return _0x596045(_0x37eab9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20e2d7[0x1]={..._0x20e2d7[0x1],[_0x37eab9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2933f0};},{[_0x37eab9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37eab9([0x68,0x69,0x67,0x68])}),_0x3f6893[_0x37eab9([0x6f,0x6e])](_0x37eab9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4bd126=>{_0xf9c2ad(_0x4bd126[_0x37eab9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48b8cc=!0x0,_0x168633(_0x4bd126[_0x37eab9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x37eab9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x37eab9([0x6c,0x6f,0x77])}),_0x2ff6aa[_0x37eab9([0x74,0x68,0x65,0x6e])](()=>{_0x48b8cc||_0x596045(_0x37eab9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x183bd6(){return _0x3f6893[_0x37eab9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37eab9([0x76,0x69,0x65,0x77])][_0x37eab9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x37eab9([0x61,0x75,0x74,0x6f]);}function _0x7f1b4c(){_0x3f6893[_0x37eab9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x37eab9([0x76,0x69,0x65,0x77])][_0x37eab9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x37eab9([0x61,0x75,0x74,0x6f]);}}function _0x2cd84e(_0x2baacd){const _0x245ef9=[new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f134b=>setTimeout(_0x1f134b,0x3ed8aa2e^_0x2047ee)),_0x2ff6aa[_0x37eab9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5786eb=>{const _0x1ca8f3=0x3ed194e5^_0x2047ee,_0x12fd1e=_0x62520f[_0x37eab9([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4e9318(){_0x12fd1e[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1ca8f3&&_0x5786eb();}_0x4e9318(),_0x12fd1e[_0x37eab9([0x6f,0x6e])](_0x37eab9([0x61,0x64,0x64]),_0x4e9318);})),new window[(_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246893=>{function _0x13cb67(){for(const _0xb1c22b in window)if(window[_0x37eab9([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x37eab9([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xb1c22b))&&window[_0xb1c22b]==_0x2706a6)return _0x246893();_0x3f6893[_0x37eab9([0x73,0x74,0x61,0x74,0x65])]!=_0x37eab9([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x37eab9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13cb67,0x3ed1876a^_0x2047ee);}_0x23cef7(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x13cb67();})];return window[_0x37eab9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x37eab9([0x72,0x61,0x63,0x65])](_0x245ef9)[_0x37eab9([0x74,0x68,0x65,0x6e])](()=>_0x2baacd);}async function _0x313350(){if(await _0x2ff6aa,_0x23cef7(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x137bee=_0x62520f[_0x37eab9([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3eaea4=_0x62520f[_0x37eab9([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])](_0x137bee[_0x37eab9([0x69,0x64])]),_0x5b0439=_0x349566(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5b0439[_0x37eab9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x137bee['id'],_0x3eaea4?_0x3eaea4['id']:null,!0x0),_0x5b0439[_0x37eab9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37eab9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5b0439[_0x37eab9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5b0439[_0x37eab9([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x18adce,void(_0x5b0439[_0x37eab9([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x18adce);}if(_0x23cef7(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x12522c=_0x349566(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x12522c[_0x37eab9([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x37eab9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x12522c[_0x37eab9([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x12522c[_0x37eab9([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x18adce,_0x12522c[_0x37eab9([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x18adce;}_0x3f6893[_0x37eab9([0x6d,0x6f,0x64,0x65,0x6c])][_0x37eab9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18adce,_0x3f6893[_0x37eab9([0x6d,0x6f,0x64,0x65,0x6c])][_0x37eab9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18adce,_0x3f6893[_0x37eab9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x37eab9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20c83f(){return _0x23cef7(_0x37eab9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x349566(_0x37eab9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x37eab9([0x73,0x74,0x61,0x74,0x65])]==_0x37eab9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x364bb0(){return _0x23cef7(_0x37eab9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x16c8d4(){return _0x23cef7(_0x37eab9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x176bd6(_0x2670b4){const _0x348b53=_0x1e7aa9();_0x3f6893[_0x348b53]=_0x37eab9([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])+_0x2670b4,_0x2670b4[_0x37eab9([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x37eab9([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1e7aa9()]=_0x2706a6),_0x2670b4!=_0x37eab9([0x56,0x61,0x6c,0x69,0x64])&&_0x313350();}function _0x1e7aa9(){const _0x492973=window[_0x37eab9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x37eab9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x37eab9([0x6e,0x6f,0x77])]())[_0x37eab9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x37eab9([0x2e]),'');let _0x8e3fe8=_0x37eab9([0x7a]);for(let _0x1e7b3e=0x0;_0x1e7b3e<_0x492973[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e7b3e+=0x2){let _0x2a799a=window[_0x37eab9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x492973[_0x37eab9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e7b3e,_0x1e7b3e+0x2));_0x2a799a>=_0x1ff6b6[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2a799a-=_0x1ff6b6[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8e3fe8+=_0x1ff6b6[_0x2a799a];}return _0x8e3fe8;}function _0x5c2e9b(){const _0x73239d=_0x29d5f0[_0x37eab9([0x73,0x70,0x6c,0x69,0x74])](_0x37eab9([0x2e]));if(0x3!=_0x73239d[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x960d9e(_0x73239d[0x1]);function _0x960d9e(_0x457aba){const _0x52ea7c=_0x552c29(_0x457aba);return _0x52ea7c&&_0x2d43bb()?_0x52ea7c:null;function _0x2d43bb(){const _0x34b7a6=_0x52ea7c[_0x37eab9([0x6a,0x74,0x69])],_0x479d2c=window[_0x37eab9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34b7a6[_0x37eab9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34b7a6[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x17d2e3={..._0x52ea7c,[_0x37eab9([0x6a,0x74,0x69])]:_0x34b7a6[_0x37eab9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34b7a6[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x17d2e3[_0x37eab9([0x76,0x63])],_0x297de5(_0x17d2e3)==_0x479d2c;}}}async function _0x3600b7(){let _0x1a1db7=!0x0;try{const _0x45155e=_0x29d5f0[_0x37eab9([0x73,0x70,0x6c,0x69,0x74])](_0x37eab9([0x2e])),[_0x1f7bee,_0x27c49d,_0x36fb6e]=_0x45155e;return _0x4f6a32(_0x1f7bee),await _0x2e5c7a(_0x1f7bee,_0x27c49d,_0x36fb6e),_0x1a1db7;}catch(_0x4c4b14){return!0x1;}function _0x4f6a32(_0x53fca9){const _0x4723f1=_0x552c29(_0x53fca9);_0x4723f1&&_0x4723f1[_0x37eab9([0x61,0x6c,0x67])]==_0x37eab9([0x45,0x53,0x32,0x35,0x36])||(_0x1a1db7=!0x1);}async function _0x2e5c7a(_0x3ad670,_0x4fd51e,_0x186bf3){const _0x1e2794=window[_0x37eab9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x37eab9([0x66,0x72,0x6f,0x6d])](_0x47ff4a(_0x186bf3),_0x53e1bc=>_0x53e1bc[_0x37eab9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9620ad=new window[(_0x37eab9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x37eab9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ad670+_0x37eab9([0x2e])+_0x4fd51e),_0x351eff=window[_0x37eab9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x37eab9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x351eff)return;const _0xa1ccc0=await _0x351eff[_0x37eab9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x37eab9([0x6a,0x77,0x6b]),_0x4bdfa8,{[_0x37eab9([0x6e,0x61,0x6d,0x65])]:_0x37eab9([0x45,0x43,0x44,0x53,0x41]),[_0x37eab9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x37eab9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x37eab9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x351eff[_0x37eab9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x37eab9([0x6e,0x61,0x6d,0x65])]:_0x37eab9([0x45,0x43,0x44,0x53,0x41]),[_0x37eab9([0x68,0x61,0x73,0x68])]:{[_0x37eab9([0x6e,0x61,0x6d,0x65])]:_0x37eab9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xa1ccc0,_0x1e2794,_0x9620ad)||(_0x1a1db7=!0x1);}}function _0x552c29(_0x1d5386){return _0x1d5386[_0x37eab9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x37eab9([0x65,0x79]))?JSON[_0x37eab9([0x70,0x61,0x72,0x73,0x65])](_0x47ff4a(_0x1d5386)):null;}function _0x47ff4a(_0x24727a){return window[_0x37eab9([0x61,0x74,0x6f,0x62])](_0x24727a[_0x37eab9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x37eab9([0x2b]))[_0x37eab9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x37eab9([0x2f])));}function _0x297de5(_0x4e5001){let _0x3356f4=0x1505;function _0x2ea86f(_0x5f1569){for(let _0x1613b9=0x0;_0x1613b9<_0x5f1569[_0x37eab9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1613b9++){const _0x5c1308=_0x5f1569[_0x37eab9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1613b9);_0x3356f4=(_0x3356f4<<0x5)+_0x3356f4+_0x5c1308,_0x3356f4&=_0x3356f4;}}function _0x254f53(_0x38c999){Array[_0x37eab9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x38c999)?_0x38c999[_0x37eab9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x254f53):_0x38c999&&typeof _0x38c999==_0x37eab9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x37eab9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x38c999)[_0x37eab9([0x73,0x6f,0x72,0x74])]()[_0x37eab9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x552037,_0x470691])=>{_0x2ea86f(_0x552037),_0x254f53(_0x470691);}):_0x2ea86f(window[_0x37eab9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x38c999));}return _0x254f53(_0x4e5001),_0x3356f4>>>0x0;}function _0x544934(_0x5baf71){return _0x5baf71[_0x37eab9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x37eab9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x37eab9([0x30]));}function _0x21212f(_0x366373){return _0x366373[_0x37eab9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x37eab9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x37eab9([0x6a,0x6f,0x69,0x6e])]('');}function _0x23cef7(_0x154f00){return _0x3f6893[_0x37eab9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37eab9([0x68,0x61,0x73])](_0x154f00);}function _0x349566(_0x5221bc){return _0x3f6893[_0x37eab9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x37eab9([0x67,0x65,0x74])](_0x5221bc);}function _0x18adce(){}function _0x37eab9(_0x1341e6){return _0x1341e6['map'](_0x379283=>String['fromCharCode'](_0x379283))['join']('');}_0x176bd6(await _0x5bcbcf());}(this);}['createRevision'](_0xaaea57){const _0x3a916c=this['editor']['plugins']['get']('Users');return new a({'id':_0xaaea57['id'],'name':_0xaaea57['name'],'creator':_0xaaea57['creatorId']?_0x3a916c['getUser'](_0xaaea57['creatorId']):null,'diffData':_0xaaea57['diffData']||_0xaaea57['data'],'authors':_0xaaea57['authorsIds']['map'](_0xbe8b73=>_0x3a916c['getUser'](_0xbe8b73)),'createdAt':new Date(_0xaaea57['createdAt']),'attributes':_0xaaea57['attributes'],'fromVersion':_0xaaea57['fromVersion'],'toVersion':_0xaaea57['toVersion']});}['addRevision'](_0x5895cc,_0x24792f=0x0){this['_revisions']['add'](_0x5895cc,_0x24792f);}['getRevision'](_0x5208aa){return this['_revisions']['get'](_0x5208aa);}['getRevisions'](_0x34a9f7={'toJSON':!0x1}){const _0x45a433=Array['from'](this['_revisions']);return _0x45a433['reverse'](),_0x34a9f7['toJSON']?_0x45a433['map'](_0x4ef4a5=>_0x4ef4a5['toJSON']()):_0x45a433;}['getIndex'](_0x166f60){return this['_revisions']['getIndex'](_0x166f60);}['getEarlierVisibleRevision'](_0xb3a247){const [,_0x4f492a]=this['getRevisionsIterator'](_0xb3a247,{'direction':'earlier'});return _0x4f492a;}['getLaterVisibleRevision'](_0x1e3969){const [,_0x5e9522]=this['getRevisionsIterator'](_0x1e3969,{'direction':'later'});return _0x5e9522;}['getRevisionsInDiff'](_0x4718c4){const _0x2cb41b=[];for(const _0x47b35d of this['getRevisionsIterator'](_0x4718c4['newRevisionId']))if(_0x2cb41b['push'](_0x47b35d),_0x47b35d['id']===_0x4718c4['oldRevisionId'])break;return _0x2cb41b;}*['getRevisionsIterator'](_0x551788,{direction:_0x3f3897='earlier',filter:_0xf45f0b=()=>!0x0}={}){const _0x25bb1e='earlier'===_0x3f3897?0x1:-0x1;let _0x5b0924=this['_revisions']['get'](_0x551788),_0x5d0477=this['getIndex'](_0x5b0924);for(yield _0x5b0924;_0x5b0924;){if(_0x5d0477+=_0x25bb1e,_0x5b0924=this['getRevision'](_0x5d0477),!_0x5b0924)return;_0xf45f0b(_0x5b0924)&&(yield _0x5b0924);}}}function R(_0x548389,_0x4c4a4f,_0x19b7f4){const t=_0x548389['t'];switch(_0x4c4a4f){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'},_0x19b7f4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x19b7f4);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':_0x509f44,'a':_0x2af67f,'e':_0x3172e5,'r':_0x409a2d,'u':_0x51e198};class l extends _0x28e165{['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[_0x3c6642,j,_0x2e9993];}constructor(_0x59cedf){super(_0x59cedf),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 _0x22dddb=_0x2e1580();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x22dddb},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 _0x480dfd=this['repository']['getRevision'](0x0),_0x90a705=_0x480dfd&&null===_0x480dfd['creator']?_0x480dfd:null;if(this['_continueCurrentRevision']=!!_0x90a705&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x317bd4=this['_source']['getCurrentRevisionId'](),_0x31ac02=this['repository']['getRevision'](_0x317bd4);if(_0x31ac02)this['_startingVersion']=_0x31ac02['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1eda70=this['_source']['history']['_operations']['find'](_0x29b6b8=>!_0x29b6b8['_isInit']),_0x46de33=_0x1eda70?_0x1eda70['baseVersion']:this['_source']['history']['version'];_0x480dfd?(_0x480dfd['toVersion']<_0x46de33&&_0x480dfd['_update']({'toVersion':_0x46de33}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x90a705['id'],this['_startingVersion']=_0x90a705['fromVersion']):(this['_startingVersion']=_0x480dfd['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x46de33,this['_continueCurrentRevision']=!0x1);}}else _0x90a705&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x90a705['toVersion'],this['editor']['model']['document']['history']['version']),_0x90a705['fromVersion']===_0x90a705['toVersion']?(0x0!==_0x90a705['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x90a705['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x90a705['id'],this['_startingVersion']=_0x90a705['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',_0x214633=>!_0x214633),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x457fe3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x156804;for(const _0x4afb48 in _0x457fe3){const _0x14a5d1=_0x4afb48,_0x2f0951=_0x457fe3[_0x14a5d1];if('revisionHistoryLicenseKeyValid'==_0x2f0951||'revisionHistoryLicenseKeyInvalid'==_0x2f0951||'revisionHistoryLicenseKeyExpired'==_0x2f0951||'revisionHistoryLicenseKeyDomainLimit'==_0x2f0951||'revisionHistoryLicenseKeyNotAllowed'==_0x2f0951||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2f0951||'revisionHistoryLicenseKeyTrialLimit'==_0x2f0951||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2f0951||'revisionHistoryLicenseKeyUsageLimit'==_0x2f0951){delete _0x457fe3[_0x14a5d1],_0x156804=_0x2f0951,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x156804&&_0x457fe3['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x156804&&_0x457fe3['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x156804&&_0x457fe3['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x156804&&_0x457fe3['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x156804&&_0x457fe3['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x156804&&_0x457fe3['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x156804&&_0x457fe3['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x156804&&_0x457fe3['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x61f3b=this['repository']['getRevision'](0x0),_0xa73f23=await this['getRevisionDocumentData'](_0x61f3b),_0x26264f=await this['getRevisionRootsAttributes'](_0x61f3b);this['_replaceEditorDataWithRevisionData'](_0xa73f23,_0x26264f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x51995f){this['_source']=_0x51995f;}async['update'](){const _0x3c26eb=await this['_source']['getLatestVersion']();if(_0x3c26eb>this['currentRevision']['toVersion']){await this['_loadState']();const _0x36571e=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3c26eb});_0x36571e['authors']=_0x36571e['authorsIds']['map'](_0x15fd7e=>this['editor']['plugins']['get']('Users')['getUser'](_0x15fd7e)),this['currentRevision']['_update'](_0x36571e);}}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'](_0x265650={},_0x1a7fc7=null){const _0x20477b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1a7fc7>this['currentRevision']['toVersion']&&(_0x1a7fc7=null),null===_0x1a7fc7&&(_0x1a7fc7=await this['_source']['getLatestVersion']());const _0x1967bf=this['_getFromVersion'](_0x1a7fc7),_0x43c256=this['buildRevisionData']({'from':_0x1967bf,'to':_0x1a7fc7});if(this['currentRevision']['toVersion']<_0x1a7fc7){const _0x249f59=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1a7fc7,'to':_0x1a7fc7});_0x249f59['authors']=[],_0x249f59['authorsIds']=[],_0x249f59['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x249f59,!0x0),delete _0x249f59['authors'],_0x20477b['push'](_0x249f59);}_0x265650['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x265650['name']=_0x265650['name']||null,_0x265650['id']=_0x265650['id']||_0x2e1580(),_0x265650={..._0x265650,..._0x43c256};const _0x592af3=this['addRevisionData'](_0x265650);_0x20477b['push'](_0x265650);const _0x20819d=this['repository']['getIndex'](_0x592af3);if(0x0!==_0x20819d){const _0x430504=this['repository']['getRevision'](_0x20819d-0x1);if(_0x430504['fromVersion']!==_0x1a7fc7){const _0x3ab935=this['_revisionDataBuilder']['getData'](_0x1a7fc7,_0x430504['toVersion']),_0x2f62ac={'id':_0x430504['id'],'diffData':_0x3ab935['diffData'],'authorsIds':_0x3ab935['authorsIds'],'authors':_0x3ab935['authorsIds']['map'](_0x1482c4=>this['editor']['plugins']['get']('Users')['getUser'](_0x1482c4)),'fromVersion':_0x1a7fc7};_0x430504===this['currentRevision']&&(_0x2f62ac['createdAt']=new Date(_0x265650['createdAt']['getTime']()+0xa)),_0x430504['_update'](_0x2f62ac,!0x0),delete _0x2f62ac['authors'],_0x20477b['push'](_0x2f62ac);}}if(this['adapter']){for(const _0x2ad41a of _0x20477b)this['_bufferUpdate'](_0x2ad41a['id'],_0x2ad41a,!0x0);this['sendBufferedUpdates']();}return _0x592af3;}['addRevisionData'](_0x54fae7){const _0x229882=this['repository']['createRevision'](_0x54fae7);return this['adapter']&&_0x229882['on']('_update',(_0x5c9169,_0x2cdbc0,_0x125d7c)=>{_0x125d7c||(this['_bufferUpdate'](_0x2cdbc0['id'],_0x2cdbc0,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x229882,this['_findInsertionIndex'](_0x229882)),_0x229882;}async['getRevisionDocumentData'](_0x546d41){await this['_loadRevisionData'](_0x546d41);const _0xd4d7b4={};for(const _0x44176d in _0x546d41['diffData']){if(_0x546d41['diffData'][_0x44176d]['attachChange']&&!_0x546d41['diffData'][_0x44176d]['attachChange']['isAttached'])continue;const _0xd147f4=this['_removeRevisionMarkers'](JSON['parse'](_0x546d41['diffData'][_0x44176d]['insertions'])),_0x437ca8=this['editor']['editing']['view']['document'],_0x2d750b=new _0x3f8608(_0x437ca8,_0xd147f4['map'](_0x2fa868=>V(_0x2fa868,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xd4d7b4[_0x44176d]=this['editor']['data']['processor']['toData'](_0x2d750b),this['editor']['data']['processor']['useFillerType']('default');}return _0xd4d7b4;}async['getRevisionRootsAttributes'](_0x1165e3){await this['_loadRevisionData'](_0x1165e3);const _0x3298b4={};for(const _0x5bb31e in _0x1165e3['diffData'])_0x1165e3['diffData'][_0x5bb31e]['attachChange']&&!_0x1165e3['diffData'][_0x5bb31e]['attachChange']['isAttached']||(_0x3298b4[_0x5bb31e]=_0x1165e3['diffData'][_0x5bb31e]['attributesAfter']||{});return _0x3298b4;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5544ac=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x11b9f9=0x0;_0x11b9f9<_0x5544ac['length'];_0x11b9f9++){const _0x1967be=_0x5544ac[_0x11b9f9];let _0x15ec94=!0x1;for(const _0x3dfeeb of Object['keys'](_0x1967be))void 0x0===_0x1967be[_0x3dfeeb]?delete _0x1967be[_0x3dfeeb]:'id'!==_0x3dfeeb&&(_0x15ec94=!0x0);_0x15ec94||(_0x5544ac[_0x11b9f9]=null);}if(_0x5544ac=_0x5544ac['filter'](_0x31d2d1=>null!==_0x31d2d1),!_0x5544ac['length'])return;for(let _0x3ce09c=0x0;_0x3ce09c<_0x5544ac['length'];_0x3ce09c++){const _0x3a1d0d=_0x5544ac[_0x3ce09c];void 0x0!==_0x3a1d0d['fromVersion']&&void 0x0===_0x3a1d0d['toVersion']&&(_0x3a1d0d['toVersion']=this['repository']['getRevision'](_0x3a1d0d['id'])['toVersion']),void 0x0!==_0x3a1d0d['toVersion']&&void 0x0===_0x3a1d0d['fromVersion']&&(_0x3a1d0d['fromVersion']=this['repository']['getRevision'](_0x3a1d0d['id'])['fromVersion']);}const _0x430144=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5544ac,_0x430144)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x569a01=>{if(_0x569a01){for(const _0x11dd12 of _0x569a01)this['setRevisionData']({'id':_0x11dd12['id'],'createdAt':_0x11dd12['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x48df48,_0x1435b3){let _0x51e86e=this['editor']['config']['get']('initialData'),_0x189128=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x51e86e){_0x51e86e={};for(const _0x48fff0 of this['editor']['model']['document']['getRootNames']())_0x51e86e[_0x48fff0]='';}if('string'==typeof _0x51e86e&&(_0x51e86e={'main':_0x51e86e}),void 0x0===_0x189128){_0x189128={};for(const _0x226ce8 of this['editor']['model']['document']['getRootNames']())_0x189128[_0x226ce8]={};}let _0x1dcdd8=!0x1;const _0x29d6ab=Object['keys'](_0x51e86e),_0x57cb14=Object['keys'](_0x48df48);for(const _0x190f3a of _0x29d6ab){if(_0x51e86e[_0x190f3a]!==_0x48df48[_0x190f3a]&&''!==_0x51e86e[_0x190f3a]['trim']()){_0x1dcdd8=!0x0;break;}if(!_0x3ac5c2(_0x189128[_0x190f3a],_0x1435b3[_0x190f3a])&&Object['keys'](_0x189128[_0x190f3a])['length']>0x0){_0x1dcdd8=!0x0;break;}}_0x1dcdd8||(_0x1dcdd8=_0x57cb14['some'](_0xec6ded=>!this['editor']['model']['document']['getRoot'](_0xec6ded))),_0x1dcdd8&&_0x2d3c2f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x51e86e,'editorRootsAttributes':_0x189128,'revisionData':_0x48df48,'revisionRootsAttributes':_0x1435b3}),this['editor']['config']['set']('initialData',_0x48df48),this['editor']['config']['set']('rootsAttributes',_0x1435b3);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3c13e2=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3c13e2['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5bc5a7){const _0x15a4c0=this['repository']['getRevisions']();_0x15a4c0['reverse']();let _0x242873=0x0;for(;_0x242873<_0x15a4c0['length'];){const _0x31f4b1=_0x15a4c0[_0x242873];if(_0x31f4b1===this['currentRevision']){_0x242873++;continue;}if(_0x31f4b1['id']===this['_initialRevisionId'])break;const _0x46029f=_0x5bc5a7['toVersion']-_0x31f4b1['toVersion']||_0x5bc5a7['fromVersion']-_0x31f4b1['fromVersion'];if(_0x46029f>0x0)break;if(_0x46029f<0x0)_0x242873++;else{if(!_0x5bc5a7['creator']&&_0x31f4b1['creator'])break;if(_0x31f4b1['creator']||!_0x5bc5a7['creator']){if(_0x5bc5a7['createdAt']>_0x31f4b1['createdAt'])break;_0x242873++;}else _0x242873++;}}return _0x242873;}['setRevisionData'](_0x46335c){const _0x8b67ae=this['repository']['getRevision'](_0x46335c['id']);if(_0x46335c['createdAt']&&(_0x46335c['createdAt']=new Date(_0x46335c['createdAt'])),_0x46335c['authorsIds']){const _0x3f3baa=this['editor']['plugins']['get']('Users');_0x46335c['authors']=_0x46335c['authorsIds']['map'](_0x108873=>_0x3f3baa['getUser'](_0x108873));}_0x8b67ae['_update'](_0x46335c,!0x0);}['buildRevisionData']({revision:_0x2a1da8=null,from:_0xb692eb=null,to:_0x2ee3b9=null}){_0xb692eb=null!==_0xb692eb?_0xb692eb:_0x2a1da8['fromVersion'],_0x2ee3b9=null!==_0x2ee3b9?_0x2ee3b9:_0x2a1da8['toVersion'];const _0x4ff245=this['_revisionDataBuilder']['getData'](_0xb692eb,_0x2ee3b9),_0x5e5927={'diffData':_0x4ff245['diffData'],'authorsIds':_0x4ff245['authorsIds'],'fromVersion':_0xb692eb,'toVersion':_0x2ee3b9};if(!_0x2a1da8||_0x2ee3b9!==_0x2a1da8['toVersion']){const _0x5d8433=_0x2ee3b9-0x1,_0x309a0d=this['_source']['history']['getOperation'](_0x5d8433);_0x5e5927['createdAt']=_0x309a0d&&_0x309a0d['createdAt']||new Date();}if(this['_loadedStateData']&&_0xb692eb===this['_loadedStateData']['fromVersion']){for(const _0x3051d2 of this['_loadedStateData']['authors'])_0x5e5927['authorsIds']['includes'](_0x3051d2['id'])||_0x5e5927['authorsIds']['push'](_0x3051d2['id']);}return _0x5e5927;}['_loadRevisionData'](_0x598e42){if(!_0x598e42||_0x598e42['diffData'])return Promise['resolve']();{const _0x2fe563=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2fe563,'revisionId':_0x598e42['id']})['then'](_0x73a557=>{_0x598e42['diffData']=_0x73a557['diffData'];});}}['_bufferUpdate'](_0x4f39ce,_0x4527fc,_0x304f67){if(this['_bufferedUpdates']['has'](_0x4f39ce)){const _0x574c93=this['_bufferedUpdates']['get'](_0x4f39ce);_0x4527fc=_0x304f67?{..._0x574c93,..._0x4527fc}:{..._0x4527fc,..._0x574c93};}this['_bufferedUpdates']['set'](_0x4f39ce,_0x4527fc);}['_getFromVersion'](_0x4be892){const _0x39d975=this['repository']['getRevisions']();_0x39d975['reverse'](),_0x39d975['shift']();const _0x4a39e4=_0x39d975['find'](_0x4efa20=>_0x4efa20['toVersion']<=_0x4be892)['toVersion'];return _0x4a39e4<this['_startingVersion']?this['_startingVersion']:_0x4a39e4;}['_createInitialRevision'](_0x1c3ee5){const _0x1125fb=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1125fb)this['_initialRevisionId']=_0x1125fb['id'];else{const _0x34629f=!this['editor']['model']['document']['roots']['find'](_0x7b7bff=>this['editor']['model']['hasContent'](_0x7b7bff)),_0x3b3fbb=this['editor']['plugins']['get']('Users')['me']['id'],_0x221efb=R(this['editor']['locale'],_0x34629f?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1c3ee5,'to':_0x1c3ee5,'id':this['_initialRevisionId'],'name':_0x221efb,'creatorId':_0x3b3fbb});}}['_createCurrentRevision'](_0x50c8b8){const _0x1f8886=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1f8886),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x50c8b8,'to':_0x50c8b8,'id':_0x1f8886,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3d99dd,from:_0x34c1d8,to:_0x501538,creatorId:_0x3f7eab,id:_0x4ce324}){const _0x1a62a3=this['buildRevisionData']({'from':_0x34c1d8,'to':_0x501538});_0x1a62a3['name']=_0x3d99dd,_0x1a62a3['creatorId']=_0x3f7eab,_0x1a62a3['id']=_0x4ce324;const _0x190e6b=this['addRevisionData'](_0x1a62a3);return this['adapter']&&this['_bufferUpdate'](_0x1a62a3['id'],_0x1a62a3,!0x0),_0x190e6b;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4e9a42){return(_0x4e9a42=_0x4e9a42['filter'](_0x322039=>!_0x322039['name']||'revision-start'!==_0x322039['name']&&'revision-end'!==_0x322039['name']))['forEach'](_0x11b95c=>{'string'!=typeof _0x11b95c&&(_0x11b95c['children']=this['_removeRevisionMarkers'](_0x11b95c['children']),_0x11b95c['attributes']=_0x11b95c['attributes']['filter'](_0x38e41c=>!_0x38e41c[0x0]['startsWith']('data-revision-')));}),_0x4e9a42;}}function V(_0x3acb67,_0x2f40e9){const _0x778449=_0x2f40e9['editing']['view']['document'];if('string'==typeof _0x3acb67)return new _0x444cdc(_0x778449,_0x3acb67);{const _0x3fcc51=_0x3acb67['children']['map'](_0x514f99=>V(_0x514f99,_0x2f40e9));return new(C[_0x3acb67['type']]||_0x413445)(_0x778449,_0x3acb67['name'],_0x3acb67['attributes'],_0x3fcc51);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x2590e9){this['editor']=_0x2590e9,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'](_0x79a5bd){this['source']=_0x79a5bd;const _0x52856b=new Map(),_0x592eff=new Map(),_0x25b0ee=this['editor']['model']['document']['roots']['map'](_0x3d217d=>_0x3d217d['rootName']);for(const _0x3dcd99 of _0x25b0ee){const _0x992b37=this['editor']['model']['document']['getRoot'](_0x3dcd99),_0x51c4cb=F(_0x992b37);_0x52856b['set'](_0x3dcd99,_0x51c4cb),_0x592eff['set'](_0x3dcd99,Object['fromEntries'](_0x992b37['getAttributes']()));}const _0x2ff177=Array['from'](this['editor']['model']['markers'])['map'](_0x13ead8=>[_0x13ead8['name'],_0x13ead8['getRange']()]),_0xe0dce6=this['source']['version'];this['_saveMetaData'](_0xe0dce6,_0x52856b,_0x2ff177,_0x592eff),this['_startingRevisionId']=this['_revisionId'];const _0x1181d6=new Map(),_0x36d22c=new Map();for(const _0x5cb18e of _0x25b0ee){const _0x40b3f0=B(_0x5cb18e);_0x1181d6['set'](_0x5cb18e,_0x40b3f0),_0x36d22c['set'](_0x5cb18e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1181d6,[],_0x36d22c);}['getData'](_0x1fc500,_0x55c621){if(this['_lastFrom']===_0x1fc500&&this['_lastTo']<=_0x55c621)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x55c621,!0x0);else{if(!this['_savedMetaData']['has'](_0x1fc500)){const _0x45e325=this['_getPreviousFrom'](_0x1fc500);this['_calculateMetaData'](_0x45e325,_0x1fc500,!0x1);}this['_calculateMetaData'](_0x1fc500,_0x55c621,!0x0);}return this['_lastFrom']=_0x1fc500,this['_lastTo']=_0x55c621,this['_getState']();}['loadState'](_0x3802f2){this['_reset'](),this['_lastFrom']=_0x3802f2['fromVersion'],this['_lastTo']=_0x3802f2['toVersion'];for(const _0x3787d8 in _0x3802f2['diffData']){const _0x5e6ddb=_0x3802f2['diffData'][_0x3787d8]['attachChange'],_0x7e67e=_0xc730b6(_0x3802f2['diffData'][_0x3787d8]['attributesBefore'])||{},_0x207a9d=this['_makeModelFromViewString'](_0x3802f2['diffData'][_0x3787d8]['deletions']);_0x207a9d['rootName']=_0x3787d8,_0x207a9d['_isAttached']=!_0x5e6ddb||!_0x5e6ddb['isAttached'],_0x207a9d['isAttached']=()=>_0x207a9d['_isAttached'],this['_baseRoots']['set'](_0x3787d8,_0x207a9d),this['_baseRootsAttributes']['set'](_0x3787d8,_0x7e67e),_0x5e6ddb&&this['_touchedRoots']['set'](_0x3787d8,_0x5e6ddb);const _0x516b23=this['_makeIdsRoot'](_0x207a9d);this['_baseIdsRoots']['set'](_0x3787d8,_0x516b23);for(const [_0x3c51a5,_0x430faf]of _0x207a9d['markers']){if(!_0x3c51a5['startsWith']('revision:'))continue;const _0x470a63=_0x3c51a5['split'](':')[0x2];for(const _0x495833 of _0x430faf['getWalker']({'singleCharacters':!0x0})){const _0x806ff8=this['_getVidAttributeName'](_0x495833),_0x134d5f='elementEnd'==_0x495833['type']?_0x495833['previousPosition']['path']['slice'](0x0,-0x1):_0x495833['previousPosition']['path'],_0x52fd00=_0x516b23['getNodeByPath'](_0x134d5f)['getAttribute'](_0x806ff8);this['_touched']['set'](_0x52fd00,{'userId':_0x470a63});}}}this['_startingRevisionId']=this['_revisionId'];const _0x241396=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3ee500=>!this['_touched']['has'](_0x3ee500));let _0x41df28=0x0;const _0x4c4a3a=new Map();for(const _0x3b8c0b in _0x3802f2['diffData']){const _0x1df0c1=_0x3802f2['diffData'][_0x3b8c0b]['attachChange'],_0x47212b=_0xc730b6(_0x3802f2['diffData'][_0x3b8c0b]['attributesAfter'])||{},_0x4993b7=this['_makeModelFromViewString'](_0x3802f2['diffData'][_0x3b8c0b]['insertions']);_0x4993b7['rootName']=_0x3b8c0b,_0x4993b7['_isAttached']=!_0x1df0c1||_0x1df0c1['isAttached'],_0x4993b7['isAttached']=()=>_0x4993b7['_isAttached'],this['_diffRoots']['set'](_0x3b8c0b,_0x4993b7),this['_diffRootsAttributes']['set'](_0x3b8c0b,_0x47212b);const _0x51a6c5=this['_makeIdsRoot'](_0x4993b7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3b8c0b,_0x51a6c5),_0x4c4a3a['set'](_0x3b8c0b,_0x4993b7['isAttached']()?_0x47212b:{});for(const [_0x3ab170,_0x4c9f5f]of _0x4993b7['markers']){if(!_0x3ab170['startsWith']('revision:'))continue;const _0x492630=_0x3ab170['split'](':')[0x2];for(const _0x15793d of _0x4c9f5f['getWalker']({'singleCharacters':!0x0})){const _0x1f9f2f=this['_getVidAttributeName'](_0x15793d),_0x550b00=this['_revisionId']++,_0x1c7b28='elementEnd'==_0x15793d['type']?_0x15793d['previousPosition']['path']['slice'](0x0,-0x1):_0x15793d['previousPosition']['path'];_0x51a6c5['getNodeByPath'](_0x1c7b28)['_setAttribute'](_0x1f9f2f,_0x550b00),this['_touched']['set'](_0x550b00,{'userId':_0x492630});}}for(const _0x4d797c of this['editor']['model']['createRangeIn'](_0x4993b7)['getWalker']({'singleCharacters':!0x0})){const _0x1d91a4=this['_getVidAttributeName'](_0x4d797c),_0xa8e0c1='elementEnd'==_0x4d797c['type']?_0x4d797c['previousPosition']['path']['slice'](0x0,-0x1):_0x4d797c['previousPosition']['path'],_0x1d7714=_0x51a6c5['getNodeByPath'](_0xa8e0c1);_0x1d7714['getAttribute'](_0x1d91a4)>0x0||_0x1d7714['_setAttribute'](_0x1d91a4,_0x241396[_0x41df28++]);}for(const [_0x24a309,_0x595a89]of _0x4993b7['markers'])_0x24a309['startsWith']('revision:')||this['_markers']['set'](_0x24a309,_0x595a89);}const _0x97a006=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x97a006),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x97a006,0x1));const _0x33b2f5=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x33b2f5),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x33b2f5,0x1));const _0xf43d18=Array['from'](this['_diffRoots'])['map'](([_0x3db44a,_0x248875])=>[_0x3db44a,F(_0x248875)]);this['_saveMetaData'](this['_lastTo'],_0xf43d18,this['_markers'],_0x4c4a3a);}['_makeModelFromViewString'](_0x586ae0){const _0x5e353b=JSON['parse'](_0x586ae0),_0x48f291=this['editor']['editing']['view']['document'],_0x398b20=new _0x3f8608(_0x48f291,_0x5e353b['map'](_0x5a898c=>V(_0x5a898c,this['editor'])));return this['editor']['data']['toModel'](_0x398b20);}['_saveMetaData'](_0x2ab028,_0x2b3284,_0x40d262,_0x46c398){const _0x7e7685=new Map(_0x2b3284),_0x223ec1=new Map(_0xc730b6(_0x46c398)),_0x4440d9=new Map();for(const [_0x558829,_0x1aab6c]of _0x40d262)_0x4440d9['set'](_0x558829,{'start':_0x1aab6c['start']['clone'](),'end':_0x1aab6c['end']['clone'](),'rootName':_0x1aab6c['root']['rootName']});this['_savedMetaData']['set'](_0x2ab028,{'roots':_0x7e7685,'markers':_0x4440d9,'rootsAttributes':_0x223ec1});}['_removeMetaData'](_0x30197d){this['_savedMetaData']['delete'](_0x30197d);}['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'](_0x50d35e,_0x15a632=null){let _0x56d837=null;_0x50d35e['is']('documentFragment')||(_0x56d837=new ft(_0x50d35e['name'],{'vid_start':null===_0x15a632?this['_revisionId']++:_0x15a632++}));const _0x433838=[];for(const _0x4d78d1 of _0x50d35e['getChildren']())if(_0x4d78d1['is']('element')){_0x433838['push'](this['_makeIdsRoot'](_0x4d78d1,_0x15a632));const _0xc04c49=_0x433838[_0x433838['length']-0x1];null!==_0x15a632&&(_0x15a632=_0xc04c49['is']('element','$text')?_0xc04c49['getAttribute']('vid')+0x1:_0xc04c49['getAttribute']('vid_end')+0x1);}else{for(let _0x14ad69=0x0;_0x14ad69<_0x4d78d1['offsetSize'];_0x14ad69++)_0x433838['push'](new ft('$text',{'vid':null===_0x15a632?this['_revisionId']++:_0x15a632++}));}if(_0x50d35e['is']('documentFragment')){const _0x44a445=B(_0x50d35e['rootName']);return _0x44a445['_insertChild'](0x0,_0x433838),_0x44a445;}return _0x56d837['_setAttribute']('vid_end',null===_0x15a632?this['_revisionId']++:_0x15a632++),_0x56d837['_insertChild'](0x0,_0x433838),_0x56d837;}['_calculateMetaData'](_0x20771f,_0x235887,_0x1929a2){this['_reset']();const {roots:_0x5a55b0,markers:_0x2848f8,rootsAttributes:_0x57b410}=this['_savedMetaData']['get'](_0x20771f);this['_baseRoots']=new Map(_0x5a55b0),this['_baseRootsAttributes']=new Map(_0xc730b6(_0x57b410));for(const [_0xc6cc01,_0x1ccc20]of this['_baseRoots'])if('$graveyard'!==_0xc6cc01&&(this['_diffRoots']['set'](_0xc6cc01,F(_0x1ccc20)),this['_diffRootsAttributes']=new Map(_0xc730b6(_0x57b410)),_0x1929a2)){const _0x3df0ab=this['_revisionId'];this['_idsRoots']['set'](_0xc6cc01,this['_makeIdsRoot'](_0x1ccc20)),this['_baseIdsRoots']['set'](_0xc6cc01,this['_makeIdsRoot'](_0x1ccc20,_0x3df0ab));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1929a2&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x330674,_0x127533]of _0x2848f8){const _0x5da79d=this['_baseRoots']['get'](_0x127533['rootName']),_0x2ca3f1=this['_diffRoots']['get'](_0x127533['rootName']),_0x5dd3f6=new vt(this['_fixPosition'](_0x127533['start'],_0x5da79d),this['_fixPosition'](_0x127533['end'],_0x5da79d)),_0x1cb4a4=this['_fixRange'](_0x5dd3f6,_0x2ca3f1);_0x5da79d['markers']['set'](_0x330674,_0x5dd3f6),this['_markers']['set'](_0x330674,_0x1cb4a4);}this['_applyOperations'](_0x20771f,_0x235887,_0x1929a2);}['_applyOperations'](_0x58d1c1,_0x3051d1,_0x344417){for(const _0x23816d of this['source']['getOperations'](_0x58d1c1,_0x3051d1))this['_handleOperation'](_0x23816d,_0x344417);for(const _0x469130 of this['_diffRoots']['values']())_0x469130['markers']['clear']();for(const [_0x222d41,_0x37c21b]of this['_markers']){this['_diffRoots']['get'](_0x37c21b['root']['rootName'])['markers']['set'](_0x222d41,_0x37c21b['clone']());}const _0x573b31=new Map(),_0xbbc890=new Map();for(const [_0x32f235,_0x5d91b2]of this['_diffRoots'])_0x573b31['set'](_0x32f235,F(_0x5d91b2)),_0xbbc890['set'](_0x32f235,this['_diffRootsAttributes']['get'](_0x32f235));this['_saveMetaData'](_0x3051d1,_0x573b31,this['_markers'],_0xbbc890);}['_getPreviousFrom'](_0xcfc64b){const _0x2d8bbf=Array['from'](this['_savedMetaData']['keys']());_0x2d8bbf['sort']((_0x4986b5,_0x173abf)=>_0x4986b5-_0x173abf),_0x2d8bbf['reverse']();for(const _0x18dfa9 of _0x2d8bbf)if(_0x18dfa9<_0xcfc64b)return _0x18dfa9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x68713f,_0xf9ed24){const _0x3c976b=Array['from'](_0xf9ed24['markers'])['map'](([_0x26c5d4,_0x5415bc])=>[_0x26c5d4,this['_fixRange'](_0x5415bc,_0x68713f)]);_0x68713f['markers']=new Map(_0x3c976b);}['_transformMarkers'](_0x2badcc){for(const _0x538586 of this['_markers']['values']()){const _0x2dee87=_0x538586['getTransformedByOperation'](_0x2badcc),_0x7dfd17=vt['_createFromRanges'](_0x2dee87);_0x538586['start']=_0x7dfd17['start'],_0x538586['end']=_0x7dfd17['end'];}}['_handleOperation'](_0x1496d9,_0x2bcccf){if('addRoot'!=_0x1496d9['type']&&'detachRoot'!=_0x1496d9['type']){if('insert'==_0x1496d9['type']){const _0x15e8c9=_0x1496d9['position']['root']['rootName'];this['_diffRoots']['has'](_0x15e8c9)||(this['_diffRoots']['set'](_0x15e8c9,B(_0x15e8c9,!0x0)),this['_diffRootsAttributes']['set'](_0x15e8c9,{}),_0x2bcccf&&this['_idsRoots']['set'](_0x15e8c9,B(_0x15e8c9,!0x0)));}else{if('addRootAttribute'==_0x1496d9['type']||'removeRootAttribute'==_0x1496d9['type']||'changeRootAttribute'==_0x1496d9['type'])return void this['_handleRootAttributeOperation'](_0x1496d9);'marker'==_0x1496d9['type']&&this['_handleMarkerOperation'](_0x1496d9);}if('marker'!==_0x1496d9['type']){const _0x2ff6b0=this['_cloneOperation'](_0x1496d9,this['_diffRoots']);_0x2ff6b0['_execute'](),this['_transformMarkers'](_0x2ff6b0);}if(_0x2bcccf)switch(_0x1496d9['type']){case'insert':this['_handleInsertOperation'](_0x1496d9);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1496d9);break;case'merge':this['_handleMergeOperation'](_0x1496d9);break;case'split':this['_handleSplitOperation'](_0x1496d9);}}else this['_handleRootOperation'](_0x1496d9,_0x2bcccf);}['_cloneOperation'](_0x29fba3,_0x1c5808){const _0x4e7b22=_0x29fba3['clone']();return _0x4e7b22['_authorId']=_0x29fba3['_authorId'],this['_fixOperation'](_0x4e7b22,_0x1c5808),_0x4e7b22;}['_getBaseVids'](_0x5a6219){return _0x5a6219['map'](_0x478d19=>{const _0x2b671e=this['_getVidAttributeName'](_0x478d19);return Number(_0x478d19['item']['getAttribute'](_0x2b671e));});}['_generateTape'](_0x587d30,_0xd7a100){if(_0x587d30['is']('element','$text'))_0xd7a100['push']({'item':_0x587d30,'type':'text'});else{_0x587d30['is']('element')&&_0xd7a100['push']({'item':_0x587d30,'type':'elementStart'});for(const _0xf76e40 of _0x587d30['getChildren']())this['_generateTape'](_0xf76e40,_0xd7a100);_0x587d30['is']('element')&&_0xd7a100['push']({'item':_0x587d30,'type':'elementEnd'});}return _0xd7a100;}['_getState'](){const _0x2b1c1e=new Map(this['_touched']),_0x1881bb=new Map(_0x2b1c1e),_0x2a2bd5=new Map(),_0x3cdf69={'insertions':{},'deletions':{}},_0x27d8a8={'insertions':{},'deletions':{}},_0x41c2cf=new Map(),_0x419569=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x419569['delete']('$graveyard');for(const _0x37a5da of _0x419569){const _0xf3c89d=this['_diffRoots']['get'](_0x37a5da)||B(_0x37a5da,!0x1),_0xade9af=this['_baseRoots']['get'](_0x37a5da)||B(_0x37a5da,!0x1);_0xf3c89d['isAttached']()||_0xade9af['isAttached']()?(_0x3cdf69['insertions'][_0x37a5da]=F(_0xf3c89d),_0x3cdf69['deletions'][_0x37a5da]=F(_0xade9af),this['_copyMarkers'](_0x3cdf69['deletions'][_0x37a5da],_0xade9af),this['_copyMarkers'](_0x3cdf69['insertions'][_0x37a5da],_0xf3c89d),_0x27d8a8['insertions'][_0x37a5da]=this['_generateTape'](this['_idsRoots']['get'](_0x37a5da),[]),_0x27d8a8['deletions'][_0x37a5da]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x37a5da)||B(_0x37a5da,!0x1),[])):_0x419569['delete'](_0x37a5da);}for(const _0x557e0a of _0x419569){const _0x13f118=_0x27d8a8['insertions'][_0x557e0a];for(const _0x4b7c02 of _0x13f118){const _0x3e65ff=this['_getVidAttributeName'](_0x4b7c02),_0xd8f12c=_0x4b7c02['item']['getAttribute'](_0x3e65ff);_0x1881bb['delete'](_0xd8f12c),_0xd8f12c>=this['_startingRevisionId']&&_0x2a2bd5['set'](_0xd8f12c,_0x2b1c1e['get'](_0xd8f12c));}}for(const _0x56cb60 of _0x419569){const _0xa30cf5=_0x27d8a8['insertions'][_0x56cb60],_0x4cae32=this['_getBaseVids'](_0x27d8a8['deletions'][_0x56cb60]);let _0x17a882=0x0;for(const _0x45271d of _0xa30cf5){const _0x5b7e39=this['_getVidAttributeName'](_0x45271d),_0x1d3019=_0x45271d['item']['getAttribute'](_0x5b7e39);if(!_0x2a2bd5['has'](_0x1d3019)&&!_0x41c2cf['has'](_0x1d3019)){if(_0x1881bb['has'](_0x1d3019))_0x17a882++;else{if(_0x1d3019!=_0x4cae32[_0x17a882]){const _0x57d1a6=_0x2b1c1e['get'](_0x1d3019)||_0x2b1c1e['get'](_0x4cae32[_0x17a882]);for(;_0x1d3019!=_0x4cae32[_0x17a882];)_0x1881bb['has'](_0x4cae32[_0x17a882])||(_0x41c2cf['set'](_0x4cae32[_0x17a882],_0x57d1a6),_0x2b1c1e['set'](_0x4cae32[_0x17a882],_0x57d1a6)),_0x17a882++;}_0x17a882++;}}}}for(const _0xb341cf of _0x419569){const _0x1eec7c=_0x27d8a8['insertions'][_0xb341cf];for(const _0x1ad5c7 of _0x1eec7c){const _0x37f23f=this['_getVidAttributeName'](_0x1ad5c7),_0x1151aa=_0x1ad5c7['item']['getAttribute'](_0x37f23f);if(_0x41c2cf['has'](_0x1151aa)){const _0x30f071=_0x41c2cf['get'](_0x1151aa);_0x1881bb['has'](_0x1151aa)||_0x1881bb['set'](_0x1151aa,{..._0x30f071}),_0x2a2bd5['set'](_0x1151aa,{..._0x30f071});}}}for(const _0x4f0e7a of _0x1881bb['keys']())_0x4f0e7a>=this['_startingRevisionId']&&_0x1881bb['delete'](_0x4f0e7a);const _0x120ebf=new Map();for(const _0x40ea19 of _0x419569){let _0x15fff3=_0x27d8a8['insertions'][_0x40ea19];for(const _0x2ab6ca of _0x15fff3)if(_0x2ab6ca['item']['is']('element','tableCell')){const _0x5b5d24=this['_getVidAttributeName'](_0x2ab6ca),_0x533ad1=_0x2ab6ca['item']['getAttribute'](_0x5b5d24);if(_0x2a2bd5['has'](_0x533ad1)){const _0x58eb02=_0x2ab6ca['item']['parent']['parent']['getAttribute']('vid_start'),_0x210531=_0x120ebf['get'](_0x58eb02)||new Set();_0x210531['add'](_0x2a2bd5['get'](_0x533ad1)['userId']),_0x120ebf['set'](_0x58eb02,_0x210531);}}_0x15fff3=_0x27d8a8['deletions'][_0x40ea19];for(const _0x5602a9 of _0x15fff3)if(_0x5602a9['item']['is']('element','tableCell')){const _0x254b6f=this['_getVidAttributeName'](_0x5602a9),_0x4d65e3=_0x5602a9['item']['getAttribute'](_0x254b6f);if(_0x1881bb['has'](_0x4d65e3)){const _0x39918a=_0x5602a9['item']['parent']['parent']['getAttribute']('vid_start'),_0x44501f=_0x120ebf['get'](_0x39918a)||new Set();_0x44501f['add'](_0x1881bb['get'](_0x4d65e3)['userId']),_0x120ebf['set'](_0x39918a,_0x44501f);}}for(const _0x48b2ed of _0x120ebf['keys']())(_0x2a2bd5['has'](_0x48b2ed)||_0x1881bb['has'](_0x48b2ed))&&_0x120ebf['delete'](_0x48b2ed);}for(const _0x15ce42 of _0x419569){const _0x18951d=_0x27d8a8['insertions'][_0x15ce42];let _0x1d406b=null,_0x23005f=null;for(const _0x561d79 of _0x18951d){const _0x4a687c=this['_getVidAttributeName'](_0x561d79),_0x2fa269=_0x561d79['item']['getAttribute'](_0x4a687c),_0x310de=_0x120ebf['get'](_0x2fa269);_0x310de&&'elementStart'==_0x561d79['type']&&(_0x1d406b=Array['from'](_0x310de)[0x0],_0x23005f=_0x561d79['item']['getAttribute']('vid_end')),_0x1d406b&&(_0x1881bb['set'](_0x2fa269,{'userId':_0x1d406b}),_0x2a2bd5['set'](_0x2fa269,{'userId':_0x1d406b})),_0x2fa269==_0x23005f&&(_0x1d406b=null,_0x23005f=null);}}const _0x2dc498={},_0xfccaac=new Set();for(const _0xa61815 of _0x419569){const _0x404b38=_0x3cdf69['deletions'][_0xa61815],_0x1a86c7=_0x3cdf69['insertions'][_0xa61815];for(const {userId:_0x4902da}of this['_touchedMarkers']['values']())null!==_0x4902da&&_0xfccaac['add'](_0x4902da);for(const {userId:_0x3231dd}of this['_touchedRoots']['values']())null!==_0x3231dd&&_0xfccaac['add'](_0x3231dd);this['_markChanges'](_0x1a86c7,_0x27d8a8['insertions'][_0xa61815],_0x2a2bd5,'insertion',_0xfccaac),this['_markChanges'](_0x404b38,_0x27d8a8['deletions'][_0xa61815],_0x1881bb,'deletion',_0xfccaac),_0x2dc498[_0xa61815]={'insertions':this['_prepareViewToSave'](_0x1a86c7),'deletions':this['_prepareViewToSave'](_0x404b38),'attachChange':this['_touchedRoots']['get'](_0xa61815)||null,'attributesBefore':_0xc730b6(this['_baseRootsAttributes']['get'](_0xa61815))||{},'attributesAfter':_0xc730b6(this['_diffRootsAttributes']['get'](_0xa61815))};}return{'diffData':_0x2dc498,'authorsIds':Array['from'](_0xfccaac)};}['_processRootBeforeSave'](_0x224aef){for(const [,_0x17b651]of _0x224aef['markers']){const _0x10bae2=_0x17b651['start']['getAncestors']()['filter'](_0x4fb3d1=>'tableCell'==_0x4fb3d1['name']);for(const _0x3241ed of _0x10bae2)0x1==_0x3241ed['childCount']&&_0x3241ed['getChild'](0x0)['is']('element','paragraph')&&_0x3241ed['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3db0b5){this['_processRootBeforeSave'](_0x3db0b5);const _0x9eaf44=this['editor']['data']['toView'](_0x3db0b5,{}),_0x43fbe7=Array['from'](_0x9eaf44['getChildren']())['map'](_0x227317=>this['_getViewJson'](_0x227317));return JSON['stringify'](_0x43fbe7);}['_getViewJson'](_0x3cf9e5){if(_0x3cf9e5['is']('$text'))return _0x3cf9e5['data'];{const _0x40775c=_0x3cf9e5;return{'type':Object['keys'](C)['find'](_0x14bbde=>_0x3cf9e5 instanceof C[_0x14bbde]),'name':_0x40775c['name'],'attributes':Array['from'](_0x40775c['getAttributes']()),'children':Array['from'](_0x40775c['getChildren']())['map'](_0x453335=>this['_getViewJson'](_0x453335))};}}['_markChanges'](_0xe111b9,_0x5cc636,_0x5513ed,_0x50fe98,_0x1aa705){let _0x49522a=null,_0xc9199c=null,_0x41dd4e=0x0;const _0x58617d=this['editor']['model'];for(let _0x5df2ea=0x0;_0x5df2ea<_0x5cc636['length'];_0x5df2ea++){const _0x491954=this['_getVidAttributeName'](_0x5cc636[_0x5df2ea]),_0x331793=_0x5cc636[_0x5df2ea]['item']['getAttribute'](_0x491954),_0x13cf9b=_0x5513ed['get'](_0x331793),_0x2179f1=_0x5df2ea==_0x5cc636['length']-0x1;(!_0x49522a&&_0x13cf9b&&(_0x49522a=_0x13cf9b,_0xc9199c=_0x5cc636[_0x5df2ea]),_0x49522a&&(!_0x13cf9b||_0x13cf9b['userId']!=_0x49522a['userId']))&&(_0x2b6657(_0x13cf9b,J(_0xc9199c,_0xe111b9,_0x58617d),J(_0x5cc636[_0x5df2ea],_0xe111b9,_0x58617d)),_0x49522a=_0x13cf9b||null,_0xc9199c=_0x13cf9b?_0x5cc636[_0x5df2ea]:null),_0x49522a&&_0x2179f1&&_0x2b6657(_0x13cf9b,J(_0xc9199c,_0xe111b9,_0x58617d),q(_0x5cc636[_0x5df2ea],_0xe111b9,_0x58617d));}function _0x2b6657(_0x8910ae,_0x55afe6,_0x3b7a4b){const _0x2021ab=_0x49522a['userId'],_0x2b3b53='revision:'+_0x50fe98+':'+_0x2021ab+':'+_0x41dd4e++,_0x563fce=_0x58617d['createRange'](_0x55afe6,_0x3b7a4b);_0xe111b9['markers']['set'](_0x2b3b53,_0x563fce),null!==_0x2021ab&&_0x1aa705['add'](_0x2021ab);}}['_getVidAttributeName'](_0x2f450b){switch(_0x2f450b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x52eb76,_0x5d9185){_0x52eb76['baseVersion']=null;for(const _0x19e70f in _0x52eb76){const _0x1ea5f3=_0x52eb76[_0x19e70f];if(_0x1ea5f3 instanceof gt){const _0x13a3ed=_0x5d9185['get'](_0x1ea5f3['root']['rootName']);_0x52eb76[_0x19e70f]=this['_fixPosition'](_0x1ea5f3,_0x13a3ed);}if(_0x1ea5f3 instanceof vt){const _0x2a1a66=_0x5d9185['get'](_0x1ea5f3['root']['rootName']);_0x52eb76[_0x19e70f]=this['_fixRange'](_0x1ea5f3,_0x2a1a66);}'root'===_0x19e70f&&(_0x52eb76['root']=_0x5d9185['get'](_0x52eb76['root']['rootName']));}}['_fixRange'](_0x8df0f5,_0x1e9e3d){return this['editor']['model']['createRange'](this['_fixPosition'](_0x8df0f5['start'],_0x1e9e3d),this['_fixPosition'](_0x8df0f5['end'],_0x1e9e3d));}['_fixPosition'](_0x553b69,_0x3a4a14){return this['editor']['model']['createPositionFromPath'](_0x3a4a14,_0x553b69['path'],_0x553b69['stickiness']);}['_handleInsertOperation'](_0x45360d){const _0x595ed6=this['_idsRoots']['get'](_0x45360d['position']['root']['rootName']),_0x314e8d=this['_fixPosition'](_0x45360d['position'],_0x595ed6),_0x14982c=null===_0x45360d['_authorId']?null:_0x45360d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47f757=_0x314e8d['parent'],_0x55967d=this['_revisionId'],_0x22ef44=[];for(const _0x18eca4 of _0x45360d['nodes'])if(_0x18eca4['is']('element'))_0x22ef44['push'](this['_makeIdsRoot'](_0x18eca4));else{for(let _0x4b2662=0x0;_0x4b2662<_0x18eca4['offsetSize'];_0x4b2662++)_0x22ef44['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x476881=this['_revisionId'];for(let _0x5dd743=_0x55967d;_0x5dd743<_0x476881;_0x5dd743++)this['_touched']['set'](_0x5dd743,{'userId':_0x14982c});_0x47f757['_insertChild'](_0x314e8d['offset'],_0x22ef44);}['_handleMoveOperation'](_0x15a523){(_0x15a523=this['_cloneOperation'](_0x15a523,this['_idsRoots']))['_execute']();const _0x507f19=null===_0x15a523['_authorId']?null:_0x15a523['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x60442c=_0x15a523['getMovedRangeStart'](),_0x11a0de=_0x60442c['parent'],_0x517fee=_0x60442c['offset'];!function _0x1c4a09(_0x56a061,_0x51dba9,_0x279337,_0x9a0e63){for(let _0x3ed0ff=_0x279337;_0x3ed0ff<_0x9a0e63;_0x3ed0ff++){const _0x43a1a4=_0x51dba9['getChild'](_0x3ed0ff);_0x43a1a4['is']('element','$text')?_0x56a061['set'](_0x43a1a4['getAttribute']('vid'),{'userId':_0x507f19}):(_0x56a061['set'](_0x43a1a4['getAttribute']('vid_start'),{'userId':_0x507f19}),_0x1c4a09(_0x56a061,_0x43a1a4,0x0,_0x43a1a4['childCount']),_0x56a061['set'](_0x43a1a4['getAttribute']('vid_end'),{'userId':_0x507f19}));}}(this['_touched'],_0x11a0de,_0x517fee,_0x517fee+_0x15a523['howMany']);}['_handleMergeOperation'](_0x3e9990){const _0x4877d6=null===(_0x3e9990=this['_cloneOperation'](_0x3e9990,this['_idsRoots']))['_authorId']?null:_0x3e9990['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xc3ab94=_0x3e9990['targetPosition']['parent'],_0x3dab40=_0x3e9990['sourcePosition']['parent'],_0x58ed01=_0xc3ab94['getAttribute']('vid_end'),_0x53b7d3=_0x3dab40['getAttribute']('vid_start');_0xc3ab94['_setAttribute']('vid_end',_0x3dab40['getAttribute']('vid_end')),_0x3dab40['_setAttribute']('vid_end',_0x58ed01),this['_touched']['set'](_0x53b7d3,{'userId':_0x4877d6}),this['_touched']['set'](_0x58ed01,{'userId':_0x4877d6}),_0x3e9990['_execute']();}['_handleSplitOperation'](_0x2aae4d){const _0xe6845c=null===(_0x2aae4d=this['_cloneOperation'](_0x2aae4d,this['_idsRoots']))['_authorId']?null:_0x2aae4d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x347dca=_0x2aae4d['graveyardPosition'],_0x433771=_0x2aae4d['splitPosition']['parent'];_0x2aae4d['_execute']();const _0x23462e=_0x433771['getAttribute']('vid_end'),_0x340821=_0x2aae4d['insertionPosition']['nodeAfter'];if(_0x347dca){const _0x41171e=_0x340821['getAttribute']('vid_end'),_0x57783f=_0x433771['getAttribute']('vid_end');_0x433771['_setAttribute']('vid_end',_0x41171e),_0x340821['_setAttribute']('vid_end',_0x57783f),this['_touched']['set'](_0x433771['getAttribute']('vid_end'),{'userId':_0xe6845c}),this['_touched']['set'](_0x340821['getAttribute']('vid_start'),{'userId':_0xe6845c});}else{const _0x5d9a68=this['_revisionId']++,_0xb83a19=this['_revisionId']++;_0x433771['_setAttribute']('vid_end',_0x5d9a68),_0x340821['_setAttribute']('vid_start',_0xb83a19),_0x340821['_setAttribute']('vid_end',_0x23462e),this['_touched']['set'](_0x5d9a68,{'userId':_0xe6845c}),this['_touched']['set'](_0xb83a19,{'userId':_0xe6845c});}}['_handleMarkerOperation'](_0x10a08c){if(!_0x10a08c['affectsData'])return;const _0x3aa370=(_0x10a08c=this['_cloneOperation'](_0x10a08c,this['_diffRoots']))['oldRange']?_0x10a08c['oldRange']['root']:null,_0x3fde16=_0x10a08c['newRange']?_0x10a08c['newRange']['root']:null;_0x3aa370&&this['_markers']['delete'](_0x10a08c['name']),_0x3fde16&&this['_markers']['set'](_0x10a08c['name'],_0x10a08c['newRange']['clone']());const _0x377a2e=null===_0x10a08c['_authorId']?null:_0x10a08c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1694ce=_0x10a08c['name'];if(!this['_touchedMarkers']['has'](_0x1694ce))return void this['_touchedMarkers']['set'](_0x1694ce,{'range':_0x10a08c['oldRange'],'userId':_0x377a2e});const _0x52b213=this['_touchedMarkers']['get'](_0x1694ce),_0x54edbe=_0x52b213['range'],_0x295a2f=_0x10a08c['newRange'];null==_0x54edbe&&null==_0x295a2f||_0x54edbe&&_0x295a2f&&_0x54edbe['isEqual'](_0x295a2f)?this['_touchedMarkers']['delete'](_0x10a08c['name']):_0x52b213['userId']=_0x377a2e;}['_handleRootOperation'](_0xba7601,_0x5efaec){this['_diffRoots']['has'](_0xba7601['rootName'])?this['_diffRoots']['get'](_0xba7601['rootName'])['_isAttached']=_0xba7601['isAdd']:(this['_diffRoots']['set'](_0xba7601['rootName'],B(_0xba7601['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xba7601['rootName'],{}),_0x5efaec&&this['_idsRoots']['set'](_0xba7601['rootName'],B(_0xba7601['rootName'],!0x0)));const _0x96403f=null===_0xba7601['_authorId']?null:_0xba7601['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d192d=this['_touchedRoots']['get'](_0xba7601['rootName']);_0x1d192d&&_0x1d192d['userId']===_0x96403f?this['_touchedRoots']['delete'](_0xba7601['rootName']):this['_touchedRoots']['set'](_0xba7601['rootName'],{'userId':_0x96403f,'isAttached':_0xba7601['isAdd']});}['_handleRootAttributeOperation'](_0x176d59){const _0x39b766=this['_diffRootsAttributes']['get'](_0x176d59['root']['rootName']);null===_0x176d59['newValue']?delete _0x39b766[_0x176d59['key']]:_0x39b766[_0x176d59['key']]=_0x176d59['newValue'];}}function F(_0x2627b3){const _0x1576bc=B(_0x2627b3['rootName'],_0x2627b3['isAttached']());for(const _0x57308a of _0x2627b3['getChildren']()){const _0x1690dc=_0x57308a['_clone'](!0x0);_0x1576bc['_appendChild'](_0x1690dc);}return _0x1576bc;}function B(_0x5f5dc7,_0x13456d=!0x0){const _0x2101d5=new mt();return _0x2101d5['rootName']=_0x5f5dc7,_0x2101d5['_isAttached']=_0x13456d,_0x2101d5['isAttached']=()=>_0x2101d5['_isAttached'],_0x2101d5;}function J(_0x3c4686,_0x3b8b41,_0x3d525f){const _0x4ea8b6='elementEnd'==_0x3c4686['type']?_0x3d525f['createPositionAt'](_0x3c4686['item'],'end'):_0x3d525f['createPositionBefore'](_0x3c4686['item']);return _0x3d525f['createPositionFromPath'](_0x3b8b41,_0x4ea8b6['path'],_0x4ea8b6['stickiness']);}function q(_0x186017,_0x5dbe4f,_0x5eee52){const _0x1b362f='elementStart'==_0x186017['type']?_0x5eee52['createPositionAt'](_0x186017['item'],0x0):_0x5eee52['createPositionAfter'](_0x186017['item']);return _0x5eee52['createPositionFromPath'](_0x5dbe4f,_0x1b362f['path'],_0x1b362f['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x250220,_0x85bf82){super(_0x250220),this['focusTracker']=new _0x4174b2(),this['keystrokes']=new _0x3fca35(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x85bf82),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5ec9ce(this);}['render'](){super['render'](),_0x3b7c97({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3673df=_0x3cc31b=>_0x3cc31b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3673df),this['keystrokes']['set']('arrowleft',_0x3673df),this['keystrokes']['set']('arrowup',_0x3673df),this['keystrokes']['set']('arrowdown',_0x3673df);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x590343){this['revisionNameInputView']['fieldView']['element']['value']=_0x590343['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xaf0870){const _0x3935bb=new _0xce7eed(this['locale'],_0x103ec4),_0x3bcdb4=_0x3935bb['fieldView'];_0x3bcdb4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2609b1=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0xaf0870&&(_0x2609b1+='\x20('+R(this['locale'],'optional')+')'),(_0x3935bb['label']=_0x2609b1,_0x3bcdb4['on']('input',()=>{this['revisionNameInputValue']=_0x3bcdb4['element']['value']['trim']();}),_0x3935bb);}}class u extends _0x28e165{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0xdc388=this['editor'],_0x506100=_0xdc388['plugins']['get']('RevisionTracker');_0xdc388['ui']['componentFactory']['add']('revisionHistory',_0x3972a3=>{const _0x545bba=_0x11dfdd(_0x3972a3),_0x425c80=_0x545bba['panelView']['children'],_0x3e2176=new _0x55746c(_0x3972a3),_0x23e1c7=new _0x22def1(_0x3972a3),_0x3258fb=new te(_0x3972a3),_0x590318=new _0x22def1(_0x3972a3),_0x168acf=new te(_0x3972a3);return _0x545bba['bind']('isEnabled')['to'](_0x506100,'isReady',_0x506100,'isEnabled',_0xdc388,'isReadOnly',(_0x1878ee,_0x30c7a1,_0x2c99cc)=>_0x1878ee&&_0x30c7a1&&!_0x2c99cc),_0x545bba['buttonView']['set']({'icon':_0x22cef4['history'],'label':R(_0x3972a3,'Revision\x20history'),'tooltip':!0x0}),_0x3258fb['set']({'label':R(_0x3972a3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3258fb['bind']('isEnabled')['to'](_0x506100,'isReady',_0x506100,'isEnabled',_0xdc388,'isReadOnly',(_0x32ead1,_0x248f71,_0x2665c3)=>_0x32ead1&&_0x248f71&&!_0x2665c3),_0x3258fb['on']('execute',()=>this['_showDialog']()),_0x168acf['set']({'label':R(_0x3972a3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x168acf['bind']('isEnabled')['to'](_0x506100,'isReady',_0xdc388,'isReadOnly',(_0x1139fd,_0x22b42d)=>_0x1139fd&&!_0x22b42d),_0x168acf['on']('execute',()=>{_0xdc388['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x545bba['isOpen']=!0x1,_0xdc388['editing']['view']['focus']();}),_0x23e1c7['children']['add'](_0x3258fb),_0x590318['children']['add'](_0x168acf),_0x3e2176['role']='menu',_0x3e2176['items']['addMany']([_0x23e1c7,_0x590318]),_0x425c80['add'](_0x3e2176),_0x545bba;}),_0xdc388['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xe45c5c=this['editor'],_0x202c23=_0xe45c5c['locale'],_0x5259ca=new _0x1c53c1(_0x202c23),_0x407813=new _0x5ea68e(_0x202c23);_0x5259ca['buttonView']['set']({'icon':_0x22cef4['history'],'label':R(_0x202c23,'Revision\x20history')});const _0x358f06=new _0x136567(_0x202c23,_0x5259ca),_0x209730=new _0x476170(_0x202c23);_0x209730['set']({'label':R(_0x202c23,'Save\x20current\x20revision')}),_0x209730['delegate']('execute')['to'](_0x5259ca),_0x209730['on']('execute',()=>{this['_showDialog']();}),_0x358f06['children']['add'](_0x209730),_0x407813['items']['add'](_0x358f06);const _0x17a132=new _0x136567(_0x202c23,_0x5259ca),_0x4dc0ee=new _0x476170(_0x202c23);return _0x4dc0ee['set']({'label':R(_0x202c23,'Open\x20revision\x20history')}),_0x4dc0ee['delegate']('execute')['to'](_0x5259ca),_0x4dc0ee['on']('execute',()=>{_0xe45c5c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x17a132['children']['add'](_0x4dc0ee),_0x407813['items']['add'](_0x17a132),_0x5259ca['panelView']['children']['add'](_0x407813),_0x5259ca;}['_showDialog'](){const _0x15da4a=this['editor'],_0x206fd9=_0x15da4a['locale'],_0x4f15c4=_0x15da4a['plugins']['get']('Dialog'),_0x66ca65=_0x15da4a['plugins']['get']('RevisionTracker');function _0x2ccffd(_0x628054){_0x15da4a['config']['get']('revisionHistory.requireRevisionName')&&''===_0x628054['revisionName']?_0x628054['revisionNameInputView']['errorText']=R(_0x206fd9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x15da4a['plugins']['get'](l)['saveRevision']({'name':_0x628054['revisionName']}),_0x4f15c4['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2ccffd(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4f15c4['show']({'id':'revisionSave','title':R(_0x206fd9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x15da4a['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4f15c4['hide']()},{'label':R(_0x15da4a['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x40a5d4){_0x40a5d4['bind']('isEnabled')['to'](_0x66ca65,'isReady',_0x66ca65,'isEnabled',_0x15da4a,'isReadOnly',(_0x5974bc,_0x44130f,_0x129473)=>_0x5974bc&&_0x44130f&&!_0x129473);},'onExecute':()=>_0x2ccffd(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x557594=this['editor'],_0x4bc019=_0x557594['locale'];this['_saveRevisionFormView']=new hs(_0x4bc019,_0x557594['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x24a9f5,_0x182cdb){super(_0x24a9f5),this['_model']=_0x182cdb,this['changeId']=_0x182cdb['id'];const _0x544c72=this['bindTemplate'],_0x294835=R(_0x24a9f5,_0x182cdb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x182cdb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x182cdb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x544c72['to']('type',_0x3b3695=>'ck-revision-change__'+_0x3b3695)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x294835}]},{'text':'\x20'+_0x182cdb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4854ea(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x426c9f){super(),this['id']=_0x426c9f['id']||_0x2e1580(),this['author']=_0x426c9f['author'],this['type']=_0x426c9f['type'],this['data']=_0x426c9f['data']||{},this['rootName']=_0x426c9f['rootName'],this['set']('createdAt',_0x426c9f['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(_0x524485,_0x5993f7){this['newRevisionId']=_0x524485,this['oldRevisionId']=_0x5993f7,this['changes']=new _0x431dca();}['_setChanges'](_0x4d6fdd){for(const _0x223dde of _0x4d6fdd)this['changes']['add'](_0x223dde);}}const Z={'c':_0x509f44,'a':_0x2af67f,'e':_0x3172e5,'r':_0x409a2d,'u':_0x51e198};class d extends _0x28e165{['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[_0x3c6642,_0x4b1f2e,j];}constructor(_0x14d080){super(_0x14d080),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',(_0x1c9011,_0x2ec237,_0x4c2b61)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x55415d=>{for(const _0x213f8a of this['editor']['editing']['view']['document']['roots'])_0x4c2b61?_0x55415d['removeClass']('ck-editor__editable__overlay',_0x213f8a):_0x55415d['addClass']('ck-editor__editable__overlay',_0x213f8a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4d5975=>null!==_0x4d5975),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x18093f,_0x6f1798,_0x408f0a)=>_0x18093f&&_0x408f0a?_0x6f1798['changes']['getIndex'](_0x408f0a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xc1451,_0x6887db)=>_0xc1451?_0x6887db['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4b1f2e);}['init'](){const _0x5a1683=this['editor'],_0xed3c4=new yt(_0x5a1683,{'direction':'backward'}),_0x2d66b1=new yt(_0x5a1683,{'direction':'forward'});(_0x5a1683['commands']['add']('showPreviousChange',_0xed3c4),_0x5a1683['commands']['add']('showNextChange',_0x2d66b1),_0x5a1683['commands']['add']('restoreRevision',new _t(_0x5a1683)),this['on']('change:numberOfChanges',()=>{_0xed3c4['refresh'](),_0x2d66b1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5a1683['enableReadOnlyMode']('revision-viewer'),_0x5a1683['plugins']['has']('WidgetToolbarRepository'))&&_0x5a1683['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5794f4){await this['loadRevisionData'](_0x5794f4);const _0x258d0d={};for(const _0x52763d in _0x5794f4['diffData']){if(_0x5794f4['diffData'][_0x52763d]['attachChange']&&!_0x5794f4['diffData'][_0x52763d]['attachChange']['isAttached'])continue;const _0x4066ee=this['_removeRevisionMarkers'](JSON['parse'](_0x5794f4['diffData'][_0x52763d]['insertions'])),_0x1102df=this['editor']['editing']['view']['document'],_0x3e3758=new _0x3f8608(_0x1102df,_0x4066ee['map'](_0x1b73dc=>this['_getViewObj'](_0x1b73dc)));this['editor']['data']['processor']['useFillerType']('marked'),_0x258d0d[_0x52763d]=this['editor']['data']['processor']['toData'](_0x3e3758),this['editor']['data']['processor']['useFillerType']('default');}return _0x258d0d;}async['getRevisionRootsAttributes'](_0x58bed7){await this['loadRevisionData'](_0x58bed7);const _0x4f4f9f={};for(const _0x23f2dc in _0x58bed7['diffData'])_0x58bed7['diffData'][_0x23f2dc]['attachChange']&&!_0x58bed7['diffData'][_0x23f2dc]['attachChange']['isAttached']||(_0x4f4f9f[_0x23f2dc]=_0x58bed7['diffData'][_0x23f2dc]['attributesAfter']||{});return _0x4f4f9f;}['_removeRevisionMarkers'](_0x54c688){return(_0x54c688=_0x54c688['filter'](_0x222e8d=>!_0x222e8d['name']||'revision-start'!==_0x222e8d['name']&&'revision-end'!==_0x222e8d['name']))['forEach'](_0x470aae=>{'string'!=typeof _0x470aae&&(_0x470aae['children']=this['_removeRevisionMarkers'](_0x470aae['children']),_0x470aae['attributes']=_0x470aae['attributes']['filter'](_0x35dc9d=>!_0x35dc9d[0x0]['startsWith']('data-revision-')));}),_0x54c688;}async['compare'](_0x582323,_0x53673c,_0x343a6f=!0x1){if(!this['isEnabled'])return;const _0x4662c4=this['diff'],_0x3f03e8=this['repository'],_0x32615f='string'==typeof _0x582323?_0x3f03e8['getRevision'](_0x582323):_0x582323,_0x34301f='string'==typeof _0x53673c?_0x3f03e8['getRevision'](_0x53673c):_0x53673c,_0x44bdd7=_0x32615f['id'],_0x3a2fd5=_0x34301f?_0x34301f['id']:null;if(!_0x343a6f&&this['diff']&&this['diff']['newRevisionId']===_0x44bdd7&&this['diff']['oldRevisionId']===_0x3a2fd5)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x44bdd7,_0x3a2fd5);const _0x908d38=this['_getRevisionsRange'](_0x32615f,_0x34301f,!0x0)['map'](_0xc249d0=>this['loadRevisionData'](_0xc249d0));return _0x908d38['push'](new Promise(_0x3ee30e=>{setTimeout(_0x3ee30e,0x14);})),Promise['all'](_0x908d38)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3f1726=this['_getDiff'](_0x44bdd7,_0x3a2fd5);for(const _0x575c2d of _0x3f1726['changes'])this['_changeIdToChange']['set'](_0x575c2d['id'],_0x575c2d);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x306f78=>{for(const _0x438d71 of this['editor']['model']['document']['getRootNames']())_0x306f78['detachRoot'](_0x438d71);for(const _0x14cb7c of Object['keys'](_0x3f1726['model'])){const _0x215178=_0x306f78['addRoot'](_0x14cb7c);for(const _0x4da5e4 of Object['keys'](_0x3f1726['attributes'][_0x14cb7c]))_0x306f78['setAttribute'](_0x4da5e4,_0x3f1726['attributes'][_0x14cb7c][_0x4da5e4],_0x215178);_0x306f78['insert'](_0x3f1726['model'][_0x14cb7c],_0x215178,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3f1726['changes'])),this['isReady']=!0x0;})['catch'](_0x3ec62f=>{console['error'](_0x3ec62f),this['_cleanUp'](),_0x4662c4&&(this['diff']=_0x4662c4),this['isReady']=!0x0;});}['addRevisionData'](_0x33ff40,_0x3ec298){const _0xdef859=this['repository']['createRevision'](_0x33ff40);return _0xdef859['on']('_update',(_0x58ce3e,_0x4e5332,_0x33adcc)=>_0x3ec298(_0x4e5332,_0x33adcc,_0xdef859)),this['repository']['addRevision'](_0xdef859),_0xdef859;}['loadRevisionData'](_0x56158f){if(!_0x56158f||_0x56158f['diffData'])return Promise['resolve']();{const _0x48c8a6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x48c8a6,'revisionId':_0x56158f['id']})['then'](_0x1fcb89=>{_0x56158f['_update']({'diffData':_0x1fcb89['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},_0xe135f1=>{for(const _0x45b109 of this['editor']['model']['document']['getRootNames']())_0xe135f1['detachRoot'](_0x45b109);});}['_sortAndFilterDiffChanges'](_0x13c290){const _0x107856=[],_0x22ef8c=new Map();for(const _0x3da5b0 of this['editor']['model']['document']['getRootNames']()){const _0x5627cf=this['editor']['editing']['view']['getDomRoot'](_0x3da5b0);if(!_0x5627cf)continue;const _0x520f2c=_0x5627cf['getClientRects']()['item'](0x0);_0x520f2c&&(_0x107856['push'](_0x3da5b0),_0x22ef8c['set'](_0x3da5b0,_0x520f2c));}return _0x107856['sort']((_0x17b5f9,_0x35ef36)=>{const _0x2e6c4b=_0x22ef8c['get'](_0x17b5f9),_0x90d61=_0x22ef8c['get'](_0x35ef36);return _0x2e6c4b['y']-_0x90d61['y']||_0x2e6c4b['x']-_0x90d61['x'];}),(_0x13c290=_0x13c290['filter'](_0x30818=>_0x107856['includes'](_0x30818['rootName'])))['sort']((_0x3095aa,_0x2856a1)=>_0x107856['indexOf'](_0x3095aa['rootName'])-_0x107856['indexOf'](_0x2856a1['rootName'])),_0x13c290;}['_makeTape'](_0x314f32){const _0x19e170=Array['from'](_0x314f32['markers'])['filter'](([_0x3b571e,_0x597e51])=>_0x3b571e['startsWith']('revision:')&&!_0x597e51['isCollapsed']),_0x2b2611=Array['from'](this['editor']['model']['createRangeIn'](_0x314f32)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x19e170['length'])for(const _0x5754fa of _0x2b2611){const [_0x250987,_0x2565ae]=_0x19e170[0x0],[,_0x5b8271,_0x324311]=_0x250987['split'](':');if(_0x2565ae['end']['isEqual'](_0x5754fa['nextPosition'])&&_0x19e170['shift'](),(_0x5754fa['previousPosition']['isEqual'](_0x2565ae['start'])||_0x5754fa['previousPosition']['isAfter'](_0x2565ae['start']))&&('insertion'==_0x5b8271?_0x5754fa['isAdded']={'userId':_0x324311}:'deletion'==_0x5b8271&&(_0x5754fa['isRemoved']={'userId':_0x324311})),0x0==_0x19e170['length'])break;}return _0x2b2611;}['_refreshStartEndIndex'](_0x47dac0){const _0x5ab04d=new Map();for(let _0x23aefa=0x0;_0x23aefa<_0x47dac0['length'];_0x23aefa++)'text'===_0x47dac0[_0x23aefa]['type']?(_0x47dac0[_0x23aefa]['item']['startIndex']=_0x23aefa,_0x47dac0[_0x23aefa]['item']['endIndex']=_0x23aefa):('elementStart'===_0x47dac0[_0x23aefa]['type']?_0x47dac0[_0x23aefa]['item']['startIndex']=_0x23aefa:'elementEnd'===_0x47dac0[_0x23aefa]['type']&&(_0x47dac0[_0x23aefa]['item']['endIndex']=_0x23aefa),_0x5ab04d['set'](_0x47dac0[_0x23aefa]['id'],_0x23aefa));for(const _0xe33ce1 of _0x5ab04d['values']())'elementStart'===_0x47dac0[_0xe33ce1]['type']?_0x47dac0[_0xe33ce1]['item']['endIndex']=_0x5ab04d['get'](_0x47dac0[_0xe33ce1]['pairId']):'elementEnd'===_0x47dac0[_0xe33ce1]['type']&&(_0x47dac0[_0xe33ce1]['item']['startIndex']=_0x5ab04d['get'](_0x47dac0[_0xe33ce1]['pairId']));}['_processTape'](_0x1ff51f){for(let _0x25c65d=0x0;_0x25c65d<_0x1ff51f['length'];_0x25c65d++){if('elementStart'===_0x1ff51f[_0x25c65d]['type'])_0x1ff51f[_0x25c65d]['item']['startIndex']=_0x25c65d;else{if('elementEnd'===_0x1ff51f[_0x25c65d]['type']){_0x1ff51f[_0x25c65d]['item']['endIndex']=_0x25c65d;const _0x208a9e=_0x1ff51f[_0x25c65d]['item']['startIndex'];_0x1ff51f[_0x208a9e]['pairId']=_0x1ff51f[_0x25c65d]['id'],_0x1ff51f[_0x25c65d]['pairId']=_0x1ff51f[_0x208a9e]['id'];}else _0x1ff51f[_0x25c65d]['item']['startIndex']=_0x25c65d,_0x1ff51f[_0x25c65d]['item']['endIndex']=_0x25c65d,_0x1ff51f[_0x25c65d]['pairId']=null;}_0x1ff51f[_0x25c65d]['markersStart']||(_0x1ff51f[_0x25c65d]['markersStart']=[],_0x1ff51f[_0x25c65d]['markersEnd']=[]);}}['_markInsertions'](_0x19969e,_0x493ce7){const _0xa8b4d1=_0x19969e['filter'](_0x1cb56b=>!_0x1cb56b['isAdded']);for(let _0x249f01=0x0;_0x249f01<_0x493ce7['length'];_0x249f01++)_0x493ce7[_0x249f01]['isAdded']&&(_0xa8b4d1[_0x249f01]['isAdded']=_0x493ce7[_0x249f01]['isAdded']);}['_makeModelFromViewString'](_0x462d6d){const _0x14d5a0=JSON['parse'](_0x462d6d),_0x124f5f=this['editor']['editing']['view']['document'],_0x5c8cf4=new _0x3f8608(_0x124f5f,_0x14d5a0['map'](_0x2e4e4d=>this['_getViewObj'](_0x2e4e4d)));return this['editor']['data']['toModel'](_0x5c8cf4);}['_getViewObj'](_0x3f1d7d){const _0x1b4fe5=this['editor']['editing']['view']['document'];if('string'==typeof _0x3f1d7d)return new _0x444cdc(_0x1b4fe5,_0x3f1d7d);{const _0x7accf5=_0x3f1d7d['children']['map'](_0x54d17a=>this['_getViewObj'](_0x54d17a));return new(Z[_0x3f1d7d['type']]||_0x413445)(_0x1b4fe5,_0x3f1d7d['name'],_0x3f1d7d['attributes'],_0x7accf5);}}['_getDiff'](_0x430a5c,_0x55e9d5=null){const _0x53ea2c=this['repository']['getRevision'](_0x430a5c),_0x3863c6=_0x55e9d5?this['repository']['getRevision'](_0x55e9d5):null,_0x1b09a2=this['_getRevisionsRange'](_0x53ea2c,_0x3863c6),_0x51e697=_0x1b09a2[_0x1b09a2['length']-0x1],_0x451adf=new Map(),_0x4c9962={'model':{},'attributes':{},'changes':[]},_0x919535=new Set(),_0x51646a=new Map();for(let _0x4ff0b9=_0x1b09a2['length']-0x1;_0x4ff0b9>=0x0;_0x4ff0b9--){const _0x3ced0b=_0x1b09a2[_0x4ff0b9];for(const _0x2cb57f of Object['keys'](_0x3ced0b['diffData']))if(_0x3ced0b['diffData'][_0x2cb57f]['attachChange']){const _0x23701c=_0x3ced0b['diffData'][_0x2cb57f]['attachChange'];_0x23701c['isAttached']?(_0x919535['add'](_0x2cb57f),_0x51646a['has'](_0x2cb57f)&&_0x51646a['get'](_0x2cb57f)['userId']==_0x23701c['userId']?_0x51646a['delete'](_0x2cb57f):_0x51646a['set'](_0x2cb57f,_0x23701c)):_0x51646a['has'](_0x2cb57f)?(_0x919535['delete'](_0x2cb57f),_0x51646a['delete'](_0x2cb57f)):(_0x919535['add'](_0x2cb57f),_0x51646a['set'](_0x2cb57f,_0x23701c));}else _0x919535['add'](_0x2cb57f);}for(const _0x5d866a of _0x919535){const _0x1ac00e=_0x51646a['has'](_0x5d866a)&&!_0x51646a['get'](_0x5d866a)['isAttached'];let _0x45f0a3=_0x1ac00e?_0x1b09a2['length']-0x1:0x0;const _0x30c4e7=_0x1ac00e?-0x1:0x1;for(;_0x1b09a2[_0x45f0a3];){const _0xec00a=_0x1b09a2[_0x45f0a3];if(_0xec00a['diffData'][_0x5d866a]){const _0x1b79ad=_0x1ac00e?_0xec00a['diffData'][_0x5d866a]['attributesBefore']:_0xec00a['diffData'][_0x5d866a]['attributesAfter'];_0x4c9962['attributes'][_0x5d866a]=_0x1b79ad?_0xc730b6(_0x1b79ad):{};break;}_0x45f0a3+=_0x30c4e7;}}for(const _0x2b6d4d of _0x1b09a2){_0x2b6d4d['model']={};for(const _0x37954c of _0x2b6d4d['authors'])_0x451adf['set'](_0x37954c['id'],_0x37954c);for(const _0x4ec08a of _0x919535){const _0x2fa918=_0x2b6d4d['diffData'][_0x4ec08a]?_0x2b6d4d['diffData'][_0x4ec08a]['insertions']:'[]',_0x4a0870=_0x2b6d4d['diffData'][_0x4ec08a]?_0x2b6d4d['diffData'][_0x4ec08a]['deletions']:'[]';_0x2b6d4d['model'][_0x4ec08a]={'insertions':this['_makeModelFromViewString'](_0x2fa918),'deletions':this['_makeModelFromViewString'](_0x4a0870)};}}for(const _0x5b1421 of _0x919535){let _0xa1e600=null,_0xb77856=0x0;const _0x47c586=new Map(Array['from'](_0x53ea2c['model'][_0x5b1421]['insertions']['markers'])['filter'](([_0x4437f6])=>!_0x4437f6['startsWith']('revision:')));let _0x38d88a=0x0;for(const _0x164079 of _0x1b09a2){const _0xd1d57a=this['_makeTape'](_0x164079['model'][_0x5b1421]['insertions']);_0x164079==_0x53ea2c?(_0xa1e600=_0xd1d57a,_0xb77856=_0xa1e600['length'],_0xa1e600['forEach'](_0x4df2c0=>{_0x4df2c0['id']=_0x38d88a++;}),this['_processTape'](_0xa1e600)):this['_markInsertions'](_0xa1e600,_0xd1d57a);const _0x237e56=_0xa1e600['filter'](_0x36e7aa=>!_0x36e7aa['isAdded'])['map'](_0x2064b8=>_0x2064b8['id']);let _0x261885=0x0;const _0x200e54=this['_makeTape'](_0x164079['model'][_0x5b1421]['deletions']);_0x200e54['forEach'](_0x1750c6=>{_0x1750c6['isRemoved']?_0x1750c6['id']=_0xb77856++:_0x1750c6['id']=_0x237e56[_0x261885++];}),this['_processTape'](_0x200e54),this['_setDistance'](_0xa1e600,'isAdded'),this['_setDistance'](_0x200e54,'isRemoved'),_0x164079==_0x53ea2c&&this['_markMarkers'](_0xa1e600,_0x47c586),_0xa1e600=this['_joinTapes'](_0xa1e600,_0x200e54),this['_refreshStartEndIndex'](_0xa1e600),this['_setDistance'](_0xa1e600,'isRemoved');}_0xa1e600=_0xa1e600['filter'](_0x506de1=>!(_0x506de1['isAdded']&&_0x506de1['isRemoved']));const _0x50c9f4=new Map(_0x51e697['model'][_0x5b1421]['deletions']['markers']),_0xe2b2ce=new Set(_0x47c586['keys']());for(const _0x49a3f of _0x50c9f4['keys']())_0xe2b2ce['delete'](_0x49a3f);this['_markSuggestions'](_0xa1e600,_0xe2b2ce),this['_fixObsoleteTags'](_0xa1e600),_0xa1e600=this['_removeMissingPairs'](_0xa1e600),_0xa1e600=this['_markMismatchedRemovedTags'](_0xa1e600),_0xa1e600=this['_removeUnsupportedChanges'](_0xa1e600);const {root:_0x480e8e,changes:_0x450b53}=this['_makeModelFromTape'](_0xa1e600,_0x451adf,_0x5b1421);_0x4c9962['model'][_0x5b1421]=_0x480e8e;const _0x253b77=_0x51646a['get'](_0x5b1421);if(_0x253b77){const _0x3dd765=_0x451adf['get'](_0x253b77['userId']),_0x11f3fe=new r({'author':_0x3dd765,'type':_0x253b77['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5b1421});_0x450b53['unshift'](_0x11f3fe),_0x4c9962['attributes'][_0x5b1421]['revisionHistoryAttachChange']=_0x11f3fe['id'];}_0x4c9962['changes']=_0x4c9962['changes']['concat'](_0x450b53);}return _0x4c9962;}['_markMarkers'](_0x3f6a76,_0x4e6ea1){for(let _0x3f45a1=0x0;_0x3f45a1<_0x3f6a76['length'];_0x3f45a1++)for(const [_0x368bf4,_0x45e7d0]of _0x4e6ea1)_0x45e7d0['start']['isEqual'](_0x3f6a76[_0x3f45a1]['previousPosition'])&&_0x3f6a76[_0x3f45a1]['markersStart']['push'](_0x368bf4),_0x45e7d0['end']['isEqual'](_0x3f6a76[_0x3f45a1]['nextPosition'])&&_0x3f6a76[_0x3f45a1]['markersEnd']['push'](_0x368bf4);}['_joinTapes'](_0x77dfbe,_0x1a7cc7){let _0x2b33b5=[],_0x305dcf=0x0,_0x50adba=0x0;for(;_0x305dcf<_0x77dfbe['length']||_0x50adba<_0x1a7cc7['length'];){const _0x50344d=_0x77dfbe[_0x305dcf]||{},_0x3e3c38=_0x1a7cc7[_0x50adba]||{};if(_0x50344d['id']==_0x3e3c38['id'])_0x305dcf++,_0x50adba++,_0x2b33b5['push'](_0x50344d);else{if(_0x3e3c38['isRemoved']&&_0x50344d['isAdded']){const {commonTape:_0x4a67d7,iEnd:_0x12ab15,jEnd:_0x59a7f0}=this['_threeWayMerge'](_0x77dfbe,_0x305dcf,_0x1a7cc7,_0x50adba);_0x2b33b5=_0x2b33b5['concat'](_0x4a67d7),_0x305dcf=_0x12ab15,_0x50adba=_0x59a7f0;}else _0x3e3c38['isRemoved']?(_0x50adba++,_0x2b33b5['push'](_0x3e3c38)):(_0x305dcf++,_0x2b33b5['push'](_0x50344d));}}return _0x2b33b5;}['_markSuggestions'](_0x3bf352,_0xe52d7b){const _0x1998ef=[];for(let _0x2648e7=0x0;_0x2648e7<_0x3bf352['length'];_0x2648e7++){for(let _0x16fc50=0x0;_0x16fc50<_0x3bf352[_0x2648e7]['markersStart']['length'];_0x16fc50++){const _0x585004=_0x3bf352[_0x2648e7]['markersStart'][_0x16fc50];if(!_0xe52d7b['has'](_0x585004))continue;const {group:_0x524f08,type:_0x4ba34a,authorId:_0x43d1b7}=_0x191faf(_0x585004);'revision-suggestion'!=_0x524f08||'insertion'!=_0x4ba34a&&'deletion'!=_0x4ba34a||(_0x1998ef['unshift']({'type':_0x4ba34a,'name':_0x585004,'userId':_0x43d1b7}),_0x3bf352[_0x2648e7]['markersStart']['splice'](_0x16fc50,0x1),_0x16fc50--);}_0x3a304e(_0x3bf352[_0x2648e7]);for(let _0x5e8425=0x0;_0x5e8425<_0x3bf352[_0x2648e7]['markersEnd']['length'];_0x5e8425++){const _0x22e30b=_0x3bf352[_0x2648e7]['markersEnd'][_0x5e8425];if(!_0xe52d7b['has'](_0x22e30b))continue;const {group:_0x53a68f,type:_0x239723}=_0x191faf(_0x22e30b);if('revision-suggestion'!=_0x53a68f||'insertion'!=_0x239723&&'deletion'!=_0x239723)continue;_0x3bf352[_0x2648e7]['markersEnd']['splice'](_0x5e8425,0x1),_0x5e8425--;const _0x4b1264=_0x1998ef['findIndex'](_0x362449=>_0x362449['name']==_0x22e30b);_0x4b1264>-0x1&&_0x1998ef['splice'](_0x4b1264,0x1);}}function _0x191faf(_0x10a75d){const _0x2855bb=_0x10a75d['split'](':');return{'group':_0x2855bb[0x0],'type':_0x2855bb[0x1],'subType':_0x2855bb['length']>=0x5?_0x2855bb[0x2]:null,'id':_0x2855bb['length']<0x5?_0x2855bb[0x2]:_0x2855bb[0x3],'authorId':_0x2855bb['length']<0x5?_0x2855bb[0x3]:_0x2855bb[0x4],'markerCount':0x6==_0x2855bb['length']?_0x2855bb[0x5]:null};}function _0x3a304e(_0x103624){for(let _0x54577f=0x0;_0x54577f<_0x1998ef['length'];_0x54577f++){if(_0x103624['isAdded']&&'insertion'==_0x1998ef[_0x54577f]['type'])return _0x103624['isAddSuggestion']=_0x1998ef[_0x54577f],void delete _0x103624['isAdded'];if(!_0x103624['isAdded']&&!_0x103624['isRemoved']&&'deletion'==_0x1998ef[_0x54577f]['type'])return void(_0x103624['isRemoveSuggestion']=_0x1998ef[_0x54577f]);}}}['_setDistance'](_0x524973,_0x339a84){let _0x42aee3=0x0,_0x33c86d=!0x1;const _0x2605ce=new Map();for(const _0x5c39a0 of _0x524973)_0x5c39a0[_0x339a84]?_0x33c86d&&(_0x42aee3++,_0x33c86d=!0x1):(_0x42aee3++,_0x33c86d=!0x0),_0x2605ce['set'](_0x5c39a0['id'],_0x42aee3);for(let _0x54e115=0x0;_0x54e115<_0x524973['length'];_0x54e115++){if('isRemoved'==_0x339a84&&_0x524973[_0x54e115]['isAdded']||'isAdded'==_0x339a84&&_0x524973[_0x54e115]['isRemoved'])continue;if('text'==_0x524973[_0x54e115]['type']){_0x524973[_0x54e115]['distance']=0x0;continue;}const _0x3d38ff=_0x2605ce['get'](_0x524973[_0x54e115]['pairId']),_0x19a9b3=_0x2605ce['get'](_0x524973[_0x54e115]['id']);_0x524973[_0x54e115]['distance']=_0x3d38ff-_0x19a9b3;}}['_getRevisionsRange'](_0x284dfd,_0x4705ac,_0x230222=!0x1){const _0x12bb27=[];let _0x300d8b=this['repository']['getIndex'](_0x284dfd),_0x486779=this['repository']['getIndex'](_0x4705ac);for(-0x1==_0x486779&&(_0x486779=this['repository']['_revisions']['length'],_0x230222=!0x1);_0x300d8b<_0x486779;)_0x12bb27['push'](this['repository']['getRevision'](_0x300d8b)),_0x300d8b++;return _0x230222&&_0x12bb27['push'](this['repository']['getRevision'](_0x300d8b)),_0x12bb27;}['_threeWayMerge'](_0x10178f,_0x1afb4d,_0xd03c1,_0x4c22af){const _0x317305=this['editor']['model']['schema'];let _0x2b003e=_0x1afb4d;for(;_0x10178f[_0x2b003e]&&_0x10178f[_0x2b003e]['isAdded'];)_0x2b003e++;let _0xb105e9=_0x4c22af;for(;_0xd03c1[_0xb105e9]&&_0xd03c1[_0xb105e9]['isRemoved'];)_0xb105e9++;_0x2ce3f7(_0x10178f,_0x1afb4d,_0x2b003e),_0x2ce3f7(_0xd03c1,_0x4c22af,_0xb105e9);const _0x32e60f=_0xd03c1['slice'](_0x4c22af,_0xb105e9)['concat'](_0x10178f['slice'](_0x1afb4d,_0x2b003e));return _0x32e60f['sort']((_0x304658,_0x1c5dde)=>_0x304658['side']!=_0x1c5dde['side']?_0x304658['side']-_0x1c5dde['side']:_0x304658['level']!=_0x1c5dde['level']?_0x304658['level']-_0x1c5dde['level']:_0x304658['distance']!=_0x1c5dde['distance']?_0x1c5dde['distance']-_0x304658['distance']:!!_0x304658['isAdded']!=!!_0x1c5dde['isAdded']?-0x1==_0x304658['side']||0x0==_0x304658['side']?_0x304658['isAdded']?-0x1:0x1:_0x304658['isAdded']?0x1:-0x1:_0x304658['index']-_0x1c5dde['index']),{'commonTape':_0x32e60f,'iEnd':_0x2b003e,'jEnd':_0xb105e9};function _0x2ce3f7(_0x4e7853,_0x50233d,_0x4f3c1b){let _0x18bea1=-0x1,_0x27351d=Number['POSITIVE_INFINITY'],_0x456c0b=!0x0;for(let _0x994fc3=_0x50233d;_0x994fc3<_0x4f3c1b;_0x994fc3++)if(_0x317305['isInline'](_0x4e7853[_0x994fc3]['item'])||(_0x456c0b=!0x1),_0x4e7853[_0x994fc3]['item']['startIndex']<_0x50233d&&(_0x18bea1=_0x994fc3),_0x4e7853[_0x994fc3]['item']['endIndex']>=_0x4f3c1b){_0x27351d=_0x994fc3;break;}_0x456c0b&&(_0x18bea1=_0x4f3c1b-0x1);for(let _0x2266f0=_0x50233d;_0x2266f0<_0x4f3c1b;_0x2266f0++)_0x4e7853[_0x2266f0]['side']=_0x2266f0<=_0x18bea1?-0x1:_0x2266f0<_0x27351d?0x0:0x1,_0x4e7853[_0x2266f0]['index']=_0x2266f0;let _0x5530f4=0x0;for(let _0x5ba8d8=_0x50233d;_0x5ba8d8<=_0x18bea1;_0x5ba8d8++)0x0==_0x4e7853[_0x5ba8d8]['distance']?_0x4e7853[_0x5ba8d8]['level']=_0x5530f4:(_0x5530f4++,_0x4e7853[_0x5ba8d8]['level']=_0x5530f4,_0x5530f4++);for(let _0xdf7126=_0x50233d;_0xdf7126<_0x4f3c1b;_0xdf7126++)0x0==_0x4e7853[_0xdf7126]['side']&&(_0x4e7853[_0xdf7126]['level']=_0x5530f4);_0x5530f4=0x0;for(let _0x25066c=_0x4f3c1b-0x1;_0x25066c>=_0x27351d;_0x25066c--)0x0==_0x4e7853[_0x25066c]['distance']?_0x4e7853[_0x25066c]['level']=_0x5530f4:(_0x5530f4--,_0x4e7853[_0x25066c]['level']=_0x5530f4,_0x5530f4--);}}['_fixObsoleteTags'](_0x44bbad){const _0x2a4cc3=new Map(),_0x3fd9d2=this['editor']['model']['schema'];for(let _0x56a1d9=0x1;_0x56a1d9<_0x44bbad['length'];_0x56a1d9++){let _0xc50ee2,_0x81ad04,_0x40663a;const _0x10a239=_0x44bbad[_0x56a1d9],_0x3679e3=_0x44bbad[_0x56a1d9-0x1];if('text'==_0x10a239['type'])continue;if(_0x10a239['type']!=_0x3679e3['type'])continue;if(!_0x3fd9d2['isBlock'](_0x3679e3['item'])||_0x3fd9d2['isLimit'](_0x3679e3['item']))continue;if(!_0x3fd9d2['isBlock'](_0x10a239['item'])||_0x3fd9d2['isLimit'](_0x10a239['item']))continue;if((_0x44bbad[_0x56a1d9]['isAdded']||_0x44bbad[_0x56a1d9]['isAddSuggestion'])&&_0x44bbad[_0x56a1d9-0x1]['isRemoved'])_0xc50ee2=_0x44bbad[_0x56a1d9],_0x81ad04=_0x44bbad[_0x56a1d9-0x1],_0x40663a=_0x56a1d9-0x1;else{if(!_0x44bbad[_0x56a1d9]['isRemoved']||!_0x44bbad[_0x56a1d9-0x1]['isAdded']&&!_0x44bbad[_0x56a1d9-0x1]['isAddSuggestion'])continue;_0xc50ee2=_0x44bbad[_0x56a1d9-0x1],_0x81ad04=_0x44bbad[_0x56a1d9],_0x40663a=_0x56a1d9;}const _0x8dd335=_0xc50ee2['level']==_0x81ad04['level'],_0x18bdbe=Math['abs'](_0xc50ee2['level'])<Math['abs'](_0x81ad04['level'])&&0x0==_0x81ad04['distance'];(_0x8dd335||_0x18bdbe)&&(_0x2a4cc3['set'](_0x81ad04['id'],_0xc50ee2['id']),_0x44bbad['splice'](_0x40663a,0x1),_0x56a1d9--,_0xc50ee2['isAdded']=!0x1);}for(let _0x4e2027=0x0;_0x4e2027<_0x44bbad['length'];_0x4e2027++)_0x2a4cc3['has'](_0x44bbad[_0x4e2027]['pairId'])&&(_0x44bbad[_0x4e2027]['pairId']=_0x2a4cc3['get'](_0x44bbad[_0x4e2027]['pairId']));}['_removeMissingPairs'](_0x4c8942){const _0x4ad5d9=new Set(_0x4c8942['map'](_0x46066b=>_0x46066b['id']));for(let _0x13e948=0x0;_0x13e948<_0x4c8942['length'];_0x13e948++)_0x4ad5d9['has'](_0x4c8942[_0x13e948]['pairId'])||0x0==_0x4c8942[_0x13e948]['distance']||(_0x4c8942[_0x13e948]['isIncorrect']=!0x0);return _0x4c8942['filter'](_0x152824=>!_0x152824['isIncorrect']);}['_markMismatchedRemovedTags'](_0x31add0){const _0x32ad61=new Set();for(let _0x38fa44=0x0;_0x38fa44<_0x31add0['length'];_0x38fa44++){if(_0x32ad61['has'](_0x31add0[_0x38fa44]['id'])&&_0x31add0[_0x38fa44]['isRemoved']&&(_0x31add0[_0x38fa44]['isIncorrect']=!0x0),_0x31add0[_0x38fa44]['isIncorrect'])continue;if(0x0==_0x31add0[_0x38fa44]['distance'])continue;if('elementStart'!=_0x31add0[_0x38fa44]['type'])continue;if(null==_0x31add0[_0x38fa44]['pairId'])continue;let _0x170ada=_0x38fa44+0x1,_0x142327=0x0;for(;_0x31add0[_0x170ada]['id']!=_0x31add0[_0x38fa44]['pairId'];)'elementStart'==_0x31add0[_0x170ada]['type']?_0x142327++:'elementEnd'==_0x31add0[_0x170ada]['type']&&_0x142327--,_0x170ada++;if(0x0!=_0x142327){if(_0x31add0[_0x38fa44]['isRemoved'])_0x31add0[_0x38fa44]['isIncorrect']=!0x0;else{for(;_0x170ada!=_0x38fa44;)_0x31add0[_0x170ada]['isRemoved']&&0x0!=_0x31add0[_0x170ada]['distance']&&(_0x31add0[_0x170ada]['isIncorrect']=!0x0,_0x32ad61['add'](_0x31add0[_0x170ada]['pairId'])),_0x170ada--;}}}return _0x31add0['filter'](_0x13bafe=>!_0x13bafe['isIncorrect']);}['_removeUnsupportedChanges'](_0x421a32){const _0x2647c4=this['editor']['model']['schema'];for(let _0x28eec6=0x0;_0x28eec6<_0x421a32['length'];_0x28eec6++){if(!(_0x421a32[_0x28eec6]['isAdded']||_0x421a32[_0x28eec6]['isAddSuggestion']||_0x421a32[_0x28eec6]['isRemoved']||_0x421a32[_0x28eec6]['isRemoveSuggestion']))continue;if(0x0==_0x421a32[_0x28eec6]['distance'])continue;const _0x4f0d9f=_0x421a32[_0x28eec6]['item'];_0x2647c4['isBlock'](_0x4f0d9f)||_0x2647c4['isLimit'](_0x4f0d9f)||(_0x421a32[_0x28eec6]['isAdded']&&delete _0x421a32[_0x28eec6]['isAdded'],_0x421a32[_0x28eec6]['isAddSuggestion']&&delete _0x421a32[_0x28eec6]['isAddSuggestion'],_0x421a32[_0x28eec6]['isRemoveSuggestion']&&delete _0x421a32[_0x28eec6]['isRemoveSuggestion'],_0x421a32[_0x28eec6]['isRemoved']&&(_0x421a32[_0x28eec6]['isIncorrect']=!0x0));}return _0x421a32['filter'](_0x1c6de6=>!_0x1c6de6['isIncorrect']);}['_makeModelFromTape'](_0x43e66d,_0x4d3af7,_0xe986f9){const _0x108a08=new mt(),_0x4558af=[],_0x1ef49f=new Map(),_0x3e4e89=this['editor']['model'],_0x57f750=_0x3e4e89['schema'],_0x14cb49=[_0x108a08],_0x4efc20={},_0x4c5ea7={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xb288ed=null;const _0x2aedb6=[0x0];for(let _0xfcf3be=0x0;_0xfcf3be<_0x43e66d['length'];_0xfcf3be++)if('elementStart'===_0x43e66d[_0xfcf3be]['type']){_0x43e66d[_0xfcf3be]['previousPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6);const _0x4a7d31=new ft(_0x43e66d[_0xfcf3be]['item']['name'],_0x43e66d[_0xfcf3be]['item']['getAttributes']());_0x14cb49[0x0]['_appendChild'](_0x4a7d31),_0x2aedb6['push'](0x0),_0x14cb49['unshift'](_0x4a7d31),_0x43e66d[_0xfcf3be]['nextPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6);}else'elementEnd'===_0x43e66d[_0xfcf3be]['type']?(_0x14cb49['shift'](),_0x43e66d[_0xfcf3be]['previousPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6),_0x2aedb6['pop'](),_0x2aedb6[_0x2aedb6['length']-0x1]++,_0x43e66d[_0xfcf3be]['nextPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6)):(_0x43e66d[_0xfcf3be]['previousPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6),_0xb288ed?_0xb288ed['_data']+=_0x43e66d[_0xfcf3be]['item']['data']:_0xb288ed=new wt(_0x43e66d[_0xfcf3be]['item']['data'],_0x43e66d[_0xfcf3be]['item']['getAttributes']()),_0x43e66d[_0xfcf3be+0x1]&&'text'===_0x43e66d[_0xfcf3be+0x1]['type']&&_0x302e05(_0xb288ed,_0x43e66d[_0xfcf3be+0x1]['item'])||(_0x14cb49[0x0]['_appendChild'](_0xb288ed),_0xb288ed=null),_0x2aedb6[_0x2aedb6['length']-0x1]+=_0x43e66d[_0xfcf3be]['item']['offsetSize'],_0x43e66d[_0xfcf3be]['nextPosition']=_0x3e4e89['createPositionFromPath'](_0x108a08,_0x2aedb6));for(let _0x32ba0d=0x0;_0x32ba0d<_0x43e66d['length'];_0x32ba0d++){const _0xdbbbe1=_0x43e66d[_0x32ba0d]['previousPosition'],_0x5bd6f6=_0x43e66d[_0x32ba0d]['nextPosition'];for(const _0x232d9c of _0x43e66d[_0x32ba0d]['markersStart'])_0x1ef49f['set'](_0x232d9c,{'start':_0xdbbbe1,'end':null});_0xe17d89('isRemoveSuggestion',_0x32ba0d,_0xdbbbe1,_0x5bd6f6),_0xe17d89('isAddSuggestion',_0x32ba0d,_0xdbbbe1,_0x5bd6f6),_0xe17d89('isRemoved',_0x32ba0d,_0xdbbbe1,_0x5bd6f6),_0xe17d89('isAdded',_0x32ba0d,_0xdbbbe1,_0x5bd6f6);for(const _0x4c6537 of _0x43e66d[_0x32ba0d]['markersEnd']){_0x1ef49f['get'](_0x4c6537)['end']=_0x5bd6f6;}}for(const [_0x2516bf,_0x29b371]of _0x1ef49f){const _0x1490c1=this['editor']['model']['createRange'](_0x29b371['start'],_0x29b371['end']);_0x108a08['markers']['set'](_0x2516bf,_0x1490c1);}return _0x4558af['sort']((_0x1e94da,_0x568425)=>{const _0x421327=_0x108a08['markers']['get']('revision:'+_0x1e94da['id']),_0x58bbff=_0x108a08['markers']['get']('revision:'+_0x568425['id']);return _0x421327['start']['isBefore'](_0x58bbff['start'])?-0x1:_0x421327['start']['isAfter'](_0x58bbff['start'])?0x1:_0x421327['end']['isBefore'](_0x58bbff['end'])?-0x1:_0x421327['end']['isAfter'](_0x58bbff['end'])?0x1:'add'===_0x1e94da['type']?-0x1:0x1;}),{'root':_0x108a08,'changes':_0x4558af};function _0xe17d89(_0xa0a690,_0x21d200,_0x329a26,_0x4ad42f){const _0x2f0a02=!!_0x43e66d[_0x21d200][_0xa0a690],_0x1f3785=_0x2f0a02?_0x43e66d[_0x21d200][_0xa0a690]['userId']:null,_0x49cdcb=_0x21d200===_0x43e66d['length']-0x1,_0x14f543=_0x4c5ea7[_0xa0a690][0x0],_0x5009ec=_0x57f750['isObject'](_0x43e66d[_0x21d200]['item']);!_0x4efc20[_0xa0a690]&&_0x2f0a02?_0x4efc20[_0xa0a690]={'start':_0x329a26,'tapeItem':_0x43e66d[_0x21d200],'userId':_0x1f3785,'type':_0xa0a690}:_0x4efc20[_0xa0a690]&&!_0x2f0a02?(_0x4efc20[_0xa0a690]['end']=_0x329a26,_0x504e13(_0x4efc20[_0xa0a690]),_0x4efc20[_0xa0a690]=null):_0x4efc20[_0xa0a690]&&_0x2f0a02&&_0x4efc20[_0xa0a690]['userId']!==_0x1f3785&&(_0x4efc20[_0xa0a690]['end']=_0x329a26,_0x14f543&&_0x14f543['userId']===_0x4efc20[_0xa0a690]['userId']||_0x504e13(_0x4efc20[_0xa0a690]),_0x4efc20[_0xa0a690]={'start':_0x329a26,'tapeItem':_0x43e66d[_0x21d200],'userId':_0x1f3785,'type':_0xa0a690}),_0x4efc20[_0xa0a690]&&_0x5009ec&&('elementStart'!==_0x43e66d[_0x21d200]['type']||_0x14f543&&_0x14f543['userId']===_0x1f3785||_0x4c5ea7[_0xa0a690]['unshift']({'userId':_0x1f3785,'object':_0x43e66d[_0x21d200]['item'],'change':_0x4efc20[_0xa0a690]}),'elementEnd'===_0x43e66d[_0x21d200]['type']&&_0x14f543&&_0x14f543['object']===_0x43e66d[_0x21d200]['item']&&(_0x4c5ea7[_0xa0a690]['shift'](),_0x4efc20[_0xa0a690]=_0x14f543['change'])),_0x4efc20[_0xa0a690]&&_0x49cdcb&&(_0x4efc20[_0xa0a690]['end']=_0x4ad42f,_0x504e13(_0x4efc20[_0xa0a690]),_0x4efc20[_0xa0a690]=null);}function _0x504e13({start:_0x2a9912,end:_0x43635d,tapeItem:_0x6e3ffc,userId:_0x18ded4,type:_0x25946f}){const _0xccd84a=_0x6e3ffc['item'],_0x845f6d=_0x3e4e89['schema']['isBlock'](_0xccd84a)&&!_0x3e4e89['schema']['isLimit'](_0xccd84a),_0xb63056=_0x2a9912['nodeAfter']==_0x43635d['parent']&&_0x43635d['isAtStart'];if(_0x845f6d&&_0xb63056)return;const _0x204528=_0x3e4e89['createRange'](_0x2a9912,_0x43635d),_0x4c17cb=_0x4d3af7['get'](_0x18ded4),_0x332c01=new r({'author':_0x4c17cb,'type':'isAdded'==_0x25946f||'isAddSuggestion'==_0x25946f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x25946f||'isRemoveSuggestion'==_0x25946f},'createdAt':new Date(),'rootName':_0xe986f9});_0x4558af['push'](_0x332c01),_0x108a08['markers']['set']('revision:'+_0x332c01['id'],_0x204528);}function _0x302e05(_0x4ff0cb,_0x38a1ac){const _0x3d7b57=_0x4ff0cb['getAttributes'](),_0x25cbdc=_0x38a1ac['getAttributes']();for(const _0x11a74e of _0x3d7b57){if(_0x11a74e[0x1]!==_0x38a1ac['getAttribute'](_0x11a74e[0x0]))return!0x1;_0x25cbdc['next']();}return _0x25cbdc['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x227f61=>{const _0x486100=_0x227f61['markerName']['split'](':')[0x1],_0x352b26=this['_getChangeFromId'](_0x486100);if(!_0x352b26)return null;const _0x1a3158='add'==_0x352b26['type']?'insertion':'deletion',_0x45974b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1a3158];return _0x352b26['data']['isSuggestion']&&_0x45974b['push']('ck-suggestion-marker-'+_0x1a3158+'-new'),this['activeChange']==_0x352b26&&_0x45974b['push']('ck-suggestion-marker--active'),{'classes':_0x45974b,'attributes':{'data-change-id':_0x486100}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x475fb5=>{_0x475fb5['on']('element:pre',(_0x577650,_0x28b648,_0xd934c2)=>{const _0x1986cf=_0x28b648['viewItem']['getChild'](0x0);if(!_0x1986cf||!_0x1986cf['is']('element','code'))return;if(!_0xd934c2['consumable']['consume'](_0x1986cf,{'attributes':['vid_start','vid_end']}))return;const _0x4dc45c=_0x28b648['modelRange']['start']['nodeAfter'];_0xd934c2['writer']['setAttribute']('vid_start',_0x1986cf['getAttribute']('vid_start'),_0x4dc45c),_0xd934c2['writer']['setAttribute']('vid_end',_0x1986cf['getAttribute']('vid_end'),_0x4dc45c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5f474d=>{_0x5f474d['on']('element',(_0x304c53,_0x516cd9,_0x1da379)=>{if(!_0x1da379['consumable']['consume'](_0x516cd9['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x516cd9['modelRange']['isCollapsed'])return;const _0x55daf4=_0x516cd9['modelRange']['start']['nodeAfter'];_0x55daf4['hasAttribute']('vid_start')||_0x55daf4['hasAttribute']('vid')||(_0x1da379['writer']['setAttribute']('vid_start',_0x516cd9['viewItem']['getAttribute']('vid_start'),_0x55daf4),_0x1da379['writer']['setAttribute']('vid_end',_0x516cd9['viewItem']['getAttribute']('vid_end'),_0x55daf4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x375076=>_0x375076['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x154326,[,_0x4b0c6f])=>{['vid_start','vid_end','vid']['includes'](_0x4b0c6f)&&(_0x154326['return']=!0x0,_0x154326['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5175d5=>{_0x5175d5['on']('attribute:vid',(_0x37e396,_0x36491e,_0x3e9e8f)=>{if('\x20'!=_0x36491e['item']['data']||_0x36491e['item']['parent']['maxOffset']>0x1)return;if(!_0x3e9e8f['consumable']['consume'](_0x36491e['item'],_0x37e396['name']))return;const _0x3cb3d1=_0x3e9e8f['writer'],_0x2de415=_0x3e9e8f['mapper']['toViewRange'](_0x36491e['range']);_0x3cb3d1['wrap'](_0x2de415,_0x3cb3d1['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5b6622){const _0x6e7f6d=_0x5b6622['plugins']['get']('RevisionViewer');return(_0x296fea,_0x4cdbd3,_0x305a04)=>{const _0x4cbbe4=_0x4cdbd3['markerName']['split'](':')[0x1],_0x2b2b45=_0x6e7f6d['_getChangeFromId'](_0x4cbbe4);if(!_0x2b2b45)return null;const _0x1d0599='add'==_0x2b2b45['type']?'split':'merge';if(!_0x305a04['consumable']['test'](_0x4cdbd3['markerRange'],_0x296fea['name']))return;const _0x3cec5d=_0x4cdbd3['markerRange']['getWalker'](),_0x5dccc6=_0x4cdbd3['markerRange']['start'],_0x15a2b9=_0x5b6622['model']['schema'];let _0x1bc3e4=null,_0x162c57=null,_0x4bc6ba=!0x1,_0x3bbdcd=!0x1;for(const _0x46e21c of _0x3cec5d){const _0x468cf2=_0x46e21c['item'];_0x4bc6ba=_0x4bc6ba||_0x15a2b9['isContent'](_0x468cf2);const _0x3fb04b=_0x305a04['mapper']['toViewElement'](_0x468cf2);if(_0x3fb04b&&_0x3fb04b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x46e21c['type']&&(_0x15a2b9['isBlock'](_0x468cf2)&&!_0x15a2b9['isLimit'](_0x468cf2)&&(_0x468cf2['nextSibling']||_0x5dccc6['isAtEnd']?_0x1bc3e4&&_0x1bc3e4['parent']==_0x468cf2||(_0x1bc3e4=_0x468cf2,_0x1bb2a9(_0x46e21c['previousPosition']),_0x3bbdcd=!0x0):_0x162c57=_0x162c57||_0x46e21c['previousPosition']));}function _0x1bb2a9(_0x5e9834){const _0x25d011=_0x305a04['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1d0599}),_0x4b18b3=_0x305a04['mapper']['toViewPosition'](_0x5e9834);_0x2b2b45['data']['isSuggestion']&&_0x305a04['writer']['addClass']('ck-suggestion-marker-'+_0x1d0599+'-new',_0x25d011),_0x6e7f6d['activeChange']==_0x2b2b45&&_0x305a04['writer']['addClass']('ck-suggestion-marker--active',_0x25d011),_0x305a04['writer']['insert'](_0x4b18b3,_0x25d011),_0x305a04['mapper']['bindElementToMarker'](_0x25d011,_0x4cdbd3['markerName']);}_0x4bc6ba||_0x3bbdcd||!_0x162c57||_0x1bb2a9(_0x162c57);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1231e4,_0x8df413,_0x155249)=>{const _0x56f856=_0x155249['mapper']['markerNameToElements'](_0x8df413['markerName']);if(_0x56f856){for(const _0x29b381 of _0x56f856)(_0x29b381['hasClass']('ck-suggestion-marker-split')||_0x29b381['hasClass']('ck-suggestion-marker-merge'))&&(_0x155249['mapper']['unbindElementFromMarkerName'](_0x29b381,_0x8df413['markerName']),_0x155249['writer']['remove'](_0x29b381));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xb03fe0,_0x42bd36,_0x29bffe)=>{const _0x4a1681=_0x42bd36['markerName']['split'](':')[0x1],_0x171c42=this['_getChangeFromId'](_0x4a1681);if(!_0x171c42)return null;const _0x593692='add'==_0x171c42['type']?'split':'merge';if(_0x29bffe['consumable']['test'](_0x42bd36['markerRange'],_0xb03fe0['name']))for(const _0x21d1b3 of _0x42bd36['markerRange']['getItems']()){if(!_0x21d1b3['is']('element','softBreak'))continue;const _0xbabd4c=_0x29bffe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x593692}),_0xd1c490=_0x29bffe['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x21d1b3));_0x171c42['data']['isSuggestion']&&_0x29bffe['writer']['addClass']('ck-suggestion-marker-'+_0x593692+'-new',_0xbabd4c),this['activeChange']==_0x171c42&&_0x29bffe['writer']['addClass']('ck-suggestion-marker--active',_0xbabd4c),_0x29bffe['writer']['insert'](_0xd1c490,_0xbabd4c),_0x29bffe['mapper']['bindElementToMarker'](_0xbabd4c,_0x42bd36['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x35fc97=>{for(const _0x365b66 of this['editor']['model']['document']['getRootNames']()){const _0x5a459d=this['editor']['model']['document']['getRoot'](_0x365b66),_0x58b9a2=this['editor']['editing']['view']['document']['getRoot'](_0x365b66);if(_0x58b9a2){const _0x241fd1=_0x5a459d['getAttribute']('revisionHistoryAttachChange');if(_0x35fc97['removeAttribute']('data-change-id',_0x58b9a2),_0x35fc97['removeClass']('ck-revision-history-root-add',_0x58b9a2),_0x35fc97['removeClass']('ck-revision-history-root-remove',_0x58b9a2),_0x35fc97['removeClass']('ck-revision-history-root--active',_0x58b9a2),_0x241fd1){const _0x3fc174=this['_getChangeFromId'](_0x241fd1);if(!_0x3fc174)return null;_0x35fc97['setAttribute']('data-change-id',_0x241fd1,_0x58b9a2),_0x35fc97['addClass']('ck-revision-history-root-'+_0x3fc174['type'],_0x58b9a2),this['activeChange']==_0x3fc174&&_0x35fc97['addClass']('ck-revision-history-root--active',_0x58b9a2);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2791c8=>'revision-comment:'+_0x2791c8,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2e9fec=>'revision-suggestion:'+_0x2e9fec,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2dd9f2=>({'name':'suggestion:'+_0x2dd9f2,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1ca997=>{const _0x3ed743=_0x1ca997['markerName']['split'](':')[0x1];return'insertion'!=_0x3ed743&&'deletion'!=_0x3ed743?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3ed743]};}}),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',(_0x8b3384,_0x3eea26,_0x4ca578)=>{const _0x795aaf=_0x4ca578['mapper']['markerNameToElements'](_0x3eea26['markerName']);if(_0x795aaf){for(const _0x17df2f of _0x795aaf)_0x17df2f['is']('uiElement')&&(_0x4ca578['mapper']['unbindElementFromMarkerName'](_0x17df2f,_0x3eea26['markerName']),_0x4ca578['writer']['remove'](_0x17df2f));}},{'priority':'high'});}['_getChangeFromId'](_0x4efb04){return this['_changeIdToChange']['get'](_0x4efb04);}['_getViewForChange'](_0x3ed2ff){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x3ed2ff),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x150db7,_0xc4316f,_0x1e6a08,_0x130c2d)=>{_0x130c2d&&this['_balloon']['remove'](_0x130c2d),_0x1e6a08&&(this['_balloon']['add']({'view':_0x1e6a08,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1fe178=this['editor']['editing'],_0x4cb9ec=this['_getChangeFromId'](_0x1e6a08['changeId']);let _0x5c42b7;if(_0x4cb9ec['data']['isOnRoot']){const _0xffa171=_0x1fe178['view']['getDomRoot'](_0x4cb9ec['rootName']);_0x5c42b7=Array['from'](_0xffa171['getClientRects']());}else{const _0x49aa9d=this['editor']['model']['markers']['get']('revision:'+_0x1e6a08['changeId']);_0x5c42b7=Array['from'](_0x1fe178['mapper']['markerNameToElements'](_0x49aa9d['name']))['map'](_0x3fe038=>_0x1fe178['view']['domConverter']['mapViewToDom'](_0x3fe038))['map'](_0x406be2=>Array['from'](_0x406be2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5c42b7[0x0];return _0x5c42b7['find'](_0xc6a189=>_0xc6a189['top']-0x3<=this['_activeViewTarget']['y']&&_0xc6a189['bottom']+0x3>=this['_activeViewTarget']['y']&&_0xc6a189['left']-0x3<=this['_activeViewTarget']['x']&&_0xc6a189['right']+0x3>=this['_activeViewTarget']['x'])||_0x5c42b7[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x134873,_0x529424,_0x552373,_0x5435c6)=>{this['activeView']=_0x552373?this['_getViewForChange'](_0x552373):null,this['editor']['model']['change'](()=>{const _0x53b95a=this['editor']['editing'];_0x5435c6&&(_0x5435c6['data']['isOnRoot']?_0x53b95a['view']['change'](_0x2aabed=>{_0x2aabed['removeClass']('ck-revision-history-root--active',_0x53b95a['view']['document']['getRoot'](_0x5435c6['rootName']));}):_0x53b95a['reconvertMarker']('revision:'+_0x5435c6['id'])),_0x552373&&(_0x552373['data']['isOnRoot']?_0x53b95a['view']['change'](_0x3599ef=>{_0x3599ef['addClass']('ck-revision-history-root--active',_0x53b95a['view']['document']['getRoot'](_0x552373['rootName']));}):_0x53b95a['reconvertMarker']('revision:'+_0x552373['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x34f690,_0x512df5)=>{if(this['activeChange'])return;const _0x2056cc=this['_findChangeIdFromDomTarget'](_0x512df5['target']),_0x1def36=this['_changeIdToChange']['get'](_0x2056cc);_0x1def36?(this['_activeViewTarget']={'x':_0x512df5['domEvent']['x'],'y':_0x512df5['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x1def36)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x579ebc,_0x4eb2f2)=>{const _0x129469=this['_findChangeIdFromDomTarget'](_0x4eb2f2['target']),_0x42a5da=this['_changeIdToChange']['get'](_0x129469);_0x42a5da?(this['_activeViewTarget']={'x':_0x4eb2f2['domEvent']['x'],'y':_0x4eb2f2['domEvent']['y']},_0x42a5da===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x42a5da):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x42ee1b){do{const _0x464176=_0x42ee1b['getAttribute']('data-change-id');if(_0x464176)return _0x464176;_0x42ee1b=_0x42ee1b['parent'];}while(_0x42ee1b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xad2919=>{for(const _0x593a26 of this['editor']['model']['markers'])_0xad2919['removeMarker'](_0x593a26);});}}function tt(_0x5498b8,_0x27af68){return(_0x555634,_0x1e4342,_0xd4f2bf)=>{if(!_0xd4f2bf['consumable']['test'](_0x1e4342['markerRange'],_0x555634['name']))return;const _0x335fdf=_0x1e4342['markerRange']['getWalker'](),_0x4203da=_0x1e4342['markerRange']['start'],_0x11a891=_0x5498b8['model']['schema'];let _0x561f16=null,_0xdd7e1f=null,_0x45b3de=!0x1,_0x5ca52e=!0x1;for(const _0x2f26c6 of _0x335fdf){const _0x4f2563=_0x2f26c6['item'];_0x45b3de=_0x45b3de||_0x11a891['isContent'](_0x4f2563);const _0x29ee34=_0xd4f2bf['mapper']['toViewElement'](_0x4f2563);if(_0x29ee34&&_0x29ee34['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2f26c6['type']&&(_0x11a891['isBlock'](_0x4f2563)&&!_0x11a891['isLimit'](_0x4f2563)&&(_0x4f2563['nextSibling']||_0x4203da['isAtEnd']?_0x561f16&&_0x561f16['parent']==_0x4f2563||(_0x561f16=_0x4f2563,_0x112f88(_0x2f26c6['previousPosition']),_0x5ca52e=!0x0):_0xdd7e1f=_0xdd7e1f||_0x2f26c6['previousPosition']));}function _0x112f88(_0x4cd323){const _0x55d16f=_0xd4f2bf['mapper']['toViewPosition'](_0x4cd323),_0x1fe846=_0xd4f2bf['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x27af68});_0xd4f2bf['writer']['insert'](_0x55d16f,_0x1fe846),_0xd4f2bf['mapper']['bindElementToMarker'](_0x1fe846,_0x1e4342['markerName']);}_0x45b3de||_0x5ca52e||!_0xdd7e1f||_0x112f88(_0xdd7e1f);};}class _t extends _0x3e232a{constructor(_0x5b4fd3){super(_0x5b4fd3);const _0x3ed3a6=_0x5b4fd3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x3ed3a6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3ed3a6,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x336294=this['editor'],_0x2e8a43=_0x336294['plugins']['get'](d),_0x30a4ce=_0x2e8a43['isReady']?_0x2e8a43['diff']['newRevisionId']:null;_0x336294['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x30a4ce);}['refresh'](){const {isReady:_0x3f2984,isEnabled:_0x3b060f,repository:_0x3db591,diff:_0x14070a}=this['editor']['plugins']['get'](d),_0x4dab98=_0x14070a&&_0x3db591['getLaterVisibleRevision'](_0x14070a['newRevisionId']);this['isEnabled']=_0x3f2984&&_0x3b060f&&Boolean(_0x4dab98);}}class yt extends _0x3e232a{['_step'];constructor(_0x4b531e,{direction:_0x3e70b7}){super(_0x4b531e);const _0x4b01d8=_0x4b531e['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3e70b7?0x1:-0x1,this['listenTo'](_0x4b01d8,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b01d8,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4b01d8,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x7c5bdc=this['editor'],_0x2dcf1f=_0x7c5bdc['plugins']['get'](d),{isNavigationMode:_0x2426eb,currentChangeNumber:_0x46a9cb}=_0x2dcf1f;let _0xfb4b9e;if(_0x2dcf1f['activeChange']=_0x2426eb?_0x2dcf1f['diff']['changes']['get'](_0x46a9cb+this['_step']):_0x2dcf1f['diff']['changes']['first'],_0x2dcf1f['activeChange']['data']['isOnRoot'])_0xfb4b9e=_0x7c5bdc['editing']['view']['getDomRoot'](_0x2dcf1f['activeChange']['rootName']);else{const _0xaab034=_0x7c5bdc['model']['markers']['get']('revision:'+_0x2dcf1f['activeChange']['id']);_0xfb4b9e=_0x4c9762(_0x7c5bdc['editing'],_0xaab034);}_0x203262({'target':_0xfb4b9e,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2218d8,currentChangeNumber:_0x54f811,numberOfChanges:_0x48f646,isReady:_0x5ea593,isEnabled:_0x183791}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x183791&&_0x5ea593&&_0x48f646)&&(!_0x2218d8||(0x1===this['_step']?_0x54f811<_0x48f646-0x1:_0x54f811>0x0));}}class li extends ts{constructor(_0x2b1878){super(_0x2b1878);const _0x2e064a=this['bindTemplate'],_0x58ce95=new te(_0x2b1878),_0x13c28a=new te(_0x2b1878);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',(_0x5d563a,_0xf1dd45)=>_0x5d563a&&_0xf1dd45>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x24c069,_0x3d837c,_0x5941bc,_0x4552d1)=>{if(!_0x24c069)return R(_0x2b1878,'Loading...');if(!_0x5941bc)return R(_0x2b1878,'No\x20changes');const _0x20985d=R(_0x2b1878,'NUMBER_OF_CHANGES',_0x5941bc);return _0x4552d1?R(_0x2b1878,'X_OF_Y_CHANGES',[_0x3d837c+0x1,_0x5941bc]):_0x20985d;}),_0x58ce95['set']({'label':R(_0x2b1878,'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'}),_0x13c28a['set']({'label':R(_0x2b1878,'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'}),_0x58ce95['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x13c28a['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x58ce95['on']('execute',()=>this['fire']('execute','backward')),_0x13c28a['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',_0x2e064a['if']('_isStatusLabelVisible','ck-hidden',_0x35bb40=>!_0x35bb40)]},'children':[{'text':_0x2e064a['to']('isNavigationMode',_0x374454=>_0x374454?R(_0x2b1878,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x2b1878,'Total')+':\x20')}]},{'text':_0x2e064a['to']('_statusText')}]},new _0x500304(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x58ce95,_0x13c28a]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x28e165{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3e9024=this['editor']['editing']['view'];_0x3e9024['change'](_0x48e659=>{for(const _0x1d5592 of _0x3e9024['document']['roots'])_0x48e659['addClass'](le,_0x1d5592);});}['hide'](){const _0x17d6cb=this['editor']['editing']['view'];_0x17d6cb['change'](_0x37a6a5=>{for(const _0x1c981b of _0x17d6cb['document']['roots'])_0x37a6a5['removeClass'](le,_0x1c981b);});}}class m extends _0x28e165{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x44ce52=this['editor'],_0x32e0fc=_0x44ce52['plugins']['get'](d),_0x257e0d=_0x44ce52['plugins']['get'](ge);_0x44ce52['ui']['componentFactory']['add']('exitToEditing',_0x1a1916=>{const _0x4e065e=new te(_0x1a1916);return _0x4e065e['set']({'label':R(_0x1a1916,'Back\x20to\x20editing'),'icon':_0x22cef4['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4e065e,'execute',()=>{_0x44ce52['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4e065e;}),_0x44ce52['ui']['componentFactory']['add']('restoreRevision',_0x334e99=>{const _0x3c8914=new te(_0x334e99);return _0x3c8914['set']({'label':R(_0x334e99,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3c8914['bind']('isEnabled')['to'](_0x44ce52['commands']['get']('restoreRevision')),this['listenTo'](_0x3c8914,'execute',()=>_0x44ce52['execute']('restoreRevision')),_0x3c8914;}),_0x44ce52['ui']['componentFactory']['add']('changesNavigation',_0x1be48a=>{const _0x25775e=new li(_0x1be48a),_0x366640=_0x44ce52['commands']['get']('showPreviousChange'),_0x2969c2=_0x44ce52['commands']['get']('showNextChange');return _0x25775e['bind']('isBackwardNavigationEnabled')['to'](_0x366640,'isEnabled'),_0x25775e['bind']('isForwardNavigationEnabled')['to'](_0x2969c2,'isEnabled'),_0x25775e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x32e0fc),this['listenTo'](_0x25775e,'execute',(_0x194d30,_0x53ac6f)=>{_0x44ce52['execute']('forward'===_0x53ac6f?'showNextChange':'showPreviousChange');}),_0x25775e;}),_0x257e0d['show'](),_0x32e0fc['on']('change:isReady',(_0x218ac6,_0x23705c,_0x3fe6bf)=>{_0x3fe6bf?_0x257e0d['hide']():_0x257e0d['show']();});}}class pt extends _0xce7eed{['_resizeObserver']=null;constructor(_0x20ec3d,_0x2a184e){super(_0x20ec3d,_0x2a184e);const _0x96b0d6=this['bindTemplate'];this['set']({'label':R(_0x20ec3d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x20ec3d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x96b0d6['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x578561=this['fieldView']['element'];this['_tooltipString']=_0x578561['scrollWidth']>_0x578561['clientWidth']&&_0x578561['value']||'';}}class ri extends ts{constructor(_0x29f855,_0x57b14a,_0x577a57){super(_0x29f855);const _0x1ca6aa=new _0x3afdff();_0x1ca6aa['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 _0x2ef1ef=['ck','ck-revision-history-sidebar__revision-author'];_0x577a57&&_0x2ef1ef['push']('ck-revision-history-sidebar__revision-author_creator');const _0x437eb3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x29f855,_0x577a57?'Revision\x20creator':'Revision\x20author')},'children':[_0x1ca6aa,_0x57b14a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2ef1ef},'children':_0x437eb3});}}function oi(_0x562980,_0x391f84){const _0x534fdd=_0x562980['bindTemplate'],_0x3c58db=_0x562980['locale'],_0x11e6a2=_0x11dfdd(_0x3c58db);_0x11e6a2['panelPosition']='sw';const _0xf3e365=function(_0x53ce73,_0x27cf93){const _0x59f51a=function(_0x36ff34,_0x15f0fa){const _0x1a7328=_0x36ff34['locale'],_0x324848={'Compare\x20against\x20selected':R(_0x1a7328,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x1a7328,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x1a7328,'Restore\x20this\x20revision')};return _0x15f0fa['map'](_0x2b471b=>{const _0x210dd7=_0x324848[_0x2b471b['name']];return _0x210dd7&&_0x210dd7!==_0x2b471b['name']&&(_0x2b471b['name']=_0x210dd7),_0x2b471b;});}(_0x53ce73,_0x27cf93),_0x467c2c=new _0x431dca();for(const _0x4d0c2d of _0x59f51a){const _0x565a22={'type':'button','model':new _0xbc0d01({'label':_0x4d0c2d['name'],'class':_0x4d0c2d['class'],'withText':!0x0,'role':'menuitem','_action':_0x4d0c2d['action']})};_0x565a22['model']['bind']('isEnabled')['to'](_0x53ce73,'isActionsDropdownOpen',_0x54fee9=>'function'!=typeof _0x4d0c2d['isEnabled']||(!_0x54fee9||_0x4d0c2d['isEnabled'](_0x53ce73))),_0x467c2c['add'](_0x565a22);}return _0x467c2c;}(_0x562980,_0x391f84);return _0x562980['bind']('isActionsDropdownOpen')['to'](_0x11e6a2,'isOpen'),_0x11e6a2['buttonView']['set']({'label':R(_0x3c58db,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x22cef4['threeVerticalDots']}),_0x11e6a2['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x534fdd['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x534fdd['to'](_0x4098f0=>_0x4098f0['stopPropagation']())}}),_0x11e6a2['on']('execute',_0x35ce1b=>{_0x562980['isReady']&&'function'==typeof _0x35ce1b['source']['_action']&&_0x35ce1b['source']['_action'](_0x562980);}),to(_0x11e6a2,_0xf3e365,{'role':'menu'}),_0x11e6a2['listenTo'](_0x562980,'change:isActionsDropdownOpen',(_0x260ca5,_0x2eb4ad,_0x807862)=>{if(_0x807862)for(const _0x1eee96 of _0x11e6a2['listView']['items']){const _0x37a9a5=_0x1eee96['children']['first'],_0x4b71e9=_0x391f84['find'](_0x1309cb=>_0x1309cb['action']===_0x37a9a5['_action'])['isVisible'];_0x1eee96['isVisible']=void 0x0===_0x4b71e9||_0x4b71e9(_0x562980);}}),_0x11e6a2;}class hi extends/* #__PURE__ -- @preserve */
26
+ ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xe213c6,_0x1dfba2,_0x45b8b9,_0x33d11a){super(_0xe213c6);const _0x413aa2=this['bindTemplate'],_0x254302=function(_0x5d8041,_0x2b4899){const _0x297bc8=Array['from'](_0x2b4899['authors'])['filter'](_0x504979=>_0x504979!=_0x2b4899['creator']);return _0x2b4899['creator']&&_0x297bc8['unshift'](_0x2b4899['creator']),_0x297bc8['map'](_0x10657f=>new ri(_0x5d8041,_0x10657f,_0x10657f==_0x2b4899['creator']));}(_0xe213c6,_0x1dfba2);this['id']=_0x1dfba2['id'],this['_revision']=_0x1dfba2,this['_requireRevisionName']=_0x33d11a,this['bind']('name','createdAt')['to'](_0x1dfba2),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1b2e24=>{return _0x4ca39a=_0xe213c6['uiLanguage'],(_0xdc3a75=_0x1b2e24)['toLocaleDateString'](_0x4ca39a,{'month':'long','day':'numeric'})+',\x20'+_0xdc3a75['toLocaleTimeString'](_0x4ca39a,{'hour':'numeric','minute':'numeric'});var _0x4ca39a,_0xdc3a75;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0xe213c6,_0x103ec4),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x296cf0=>_0x296cf0||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4f7eef,_0x362f12)=>_0x4f7eef&&_0x362f12),this['revisionActionsView']=_0x45b8b9&&_0x45b8b9['length']?oi(this,_0x45b8b9):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x413aa2['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x413aa2['if']('isEnabled','ck-disabled',_0x332eef=>!_0x332eef),_0x413aa2['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x413aa2['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x413aa2['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':_0x413aa2['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':_0x254302}]},this['revisionActionsView']],'on':{'click':_0x413aa2['to'](_0xc2d7e3=>{_0xc2d7e3['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xd8dfc9=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xd8dfc9,'change',()=>{this['_requireRevisionName']&&!_0xd8dfc9['value']||this['fire']('setName',{'id':this['id'],'name':_0xd8dfc9['value']}),_0xd8dfc9['value']||(_0xd8dfc9['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ci(_0x4bdab6,_0x1d68da){const _0x145547=_0x2e64a2['fromJSDate'](_0x4bdab6)['setLocale'](_0x1d68da),_0x2e0ec2=_0x2e64a2['local'](),_0x282437=_0x2e0ec2['minus']({'days':0x1})['startOf']('day');let _0x6b68de,_0x2c4de9;return _0x145547['hasSame'](_0x2e0ec2,'day')?(_0x6b68de=_0x145547['startOf']('day')['toJSDate'](),_0x2c4de9=_0x145547['toRelativeCalendar']()):_0x145547['hasSame'](_0x282437,'day')?(_0x6b68de=_0x282437['toJSDate'](),_0x2c4de9=_0x145547['toRelativeCalendar']()):_0x145547['hasSame'](_0x2e0ec2,'week')?(_0x6b68de=_0x145547['startOf']('week')['toJSDate'](),_0x2c4de9=_0x145547['weekdayLong']||''):_0x145547['hasSame'](_0x2e0ec2,'year')?(_0x6b68de=_0x145547['startOf']('month')['toJSDate'](),_0x2c4de9=_0x145547['monthLong']||''):(_0x6b68de=_0x145547['startOf']('year')['toJSDate'](),_0x2c4de9=String(_0x145547['year'])),{'startDate':_0x6b68de,'localizedPeriodName':_0x2c4de9};}class ai extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x40f719,_0x25ff94,_0x29aa9c,_0x5a3eba){super(_0x40f719);const _0x23deb3=ci(_0x25ff94,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x25ff94,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x29aa9c,this['_requireRevisionName']=_0x5a3eba,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':_0x23deb3}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x54d3f8){const _0x5f32f8=new hi(this['locale'],_0x54d3f8,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5f32f8);}['removeRevision'](_0x2bedad){const _0x36fa72=this['revisionViews']['find'](_0x3bb2f1=>_0x3bb2f1['id']===_0x2bedad['id']);this['revisionViews']['remove'](_0x36fa72);}}class as extends ts{constructor(_0x13b9ee){super(_0x13b9ee);const _0x2b7e5e=new _0x3afdff();_0x2b7e5e['content']=_0x22cef4['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2b7e5e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x13b9ee,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x17b898,_0x2394bd,_0x3de9d4,_0x5c717a){super(_0x17b898);const _0x59d0f3=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2394bd,this['_revisionActions']=_0x3de9d4,this['_requireRevisionName']=_0x5c717a,this['on']('select',(_0x47a399,_0x18916c)=>{this['fire']('revisionSelected',_0x18916c);}),this['on']('setName',(_0x362222,_0x25a675)=>{this['fire']('revisionSetName',_0x25a675);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x17b898),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x59d0f3['if']('isEnabled','ck-disabled',_0x264a53=>!_0x264a53)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xdc6af0 of this['_revisions'])this['_addRevision'](_0xdc6af0);this['_revisions']['on']('add',(_0x10f49e,_0x523c68)=>{this['_addRevision'](_0x523c68);}),this['_revisions']['on']('remove',(_0xa78a5f,_0xf94e6a)=>{this['_removeRevision'](_0xf94e6a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1fde90=>_0x1fde90['revisionViews']['map'](_0x19251c=>_0x19251c))['flat']();}['selectRevision'](_0x369118){for(const _0x5eb48c of this['revisionViews'])_0x369118&&_0x369118['id']===_0x5eb48c['id']?_0x5eb48c['select']():_0x5eb48c['deselect']();}['highlightRevisions'](_0x27279d){for(const _0x57367c of this['revisionViews'])_0x27279d['some'](({id:_0x257ff1})=>_0x257ff1===_0x57367c['id'])?_0x57367c['highlight']():_0x57367c['unhighlight']();}['_addRevision'](_0x2c8762){const _0xb35374=ci(_0x2c8762['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x1e6361=this['timePeriodViews']['get'](0x0);_0x1e6361&&_0x1e6361['startDate']['getTime']()===_0xb35374['getTime']()||(_0x1e6361=new ai(this['locale'],_0xb35374,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x1e6361)),_0x1e6361['addRevision'](_0x2c8762);}['_removeRevision'](_0x8574cd){const _0x4770f9=ci(_0x8574cd['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4770f9)['removeRevision'](_0x8574cd);}['_getTimePeriodViewByStartDate'](_0x574eaf){return this['timePeriodViews']['find'](_0xc54486=>_0xc54486['startDate']['getTime']()===_0x574eaf['getTime']());}}class g extends _0x28e165{['_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(_0x16d344){super(_0x16d344),this['_revisionViewer']=_0x16d344['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x45439b=this['_revisionsRepository']['_revisions'],_0x1299b3=this['_createRevisionActions'](),_0x7f6b25=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x45439b,_0x1299b3,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',(_0x48d4c0,_0x5cfd47)=>{_0x5cfd47['revisionViews']['on']('add',(_0x4fd67f,_0x4dc936)=>{_0x4dc936['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)),_0x7f6b25['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1a021b=this['_revisionsRepository']['getRevision'](0x0);if(_0x1a021b){const _0x9f109f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1a021b['id']);this['_revisionViewer']['compare'](_0x1a021b,_0x9f109f);}}['_handleRevisionSelected'](_0x3257fb,_0x1c124b){const _0x220f02=this['_revisionsRepository']['getRevision'](_0x1c124b['id']),_0x92637e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x220f02['id']);this['_revisionViewer']['compare'](_0x220f02,_0x92637e);}['_handleRevisionSetName'](_0x5cf6d2,_0x413b8d){this['_revisionsRepository']['getRevision'](_0x413b8d['id'])['setName'](_0x413b8d['name']);}['_handleDiffChange'](_0x4659dd,_0x2a83a8,_0x17b8f9){const _0xfbc37d=this['_revisionsRepository']['getRevisionsInDiff'](_0x17b8f9);_0xfbc37d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xfbc37d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xfbc37d[0x0]));}['_createRevisionActions'](){const _0x2a1641=this['editor'],_0x4d0e24=g['availableRevisionActions'],_0x254705=_0x2a1641['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x254705['length'])return _0x254705['map'](_0x487ec3=>{const _0x36b2af='string'==typeof _0x487ec3?Object['assign']({},_0x4d0e24[_0x487ec3]):_0x487ec3;return _0x36b2af['action']=_0x36b2af['action']['bind'](this,_0x2a1641),_0x36b2af['isVisible']&&(_0x36b2af['isVisible']=_0x36b2af['isVisible']['bind'](this,_0x2a1641)),_0x36b2af;});}}function Rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4dd9e6},_0x320a51)=>{const _0x374447=_0x4dd9e6['get'](d),_0x2b745b=_0x374447['repository'];let _0xcd422b=_0x374447['diff']['newRevisionId'],_0x414d07=_0x320a51['id'];_0x2b745b['getIndex'](_0xcd422b)>_0x2b745b['getIndex'](_0x414d07)&&([_0xcd422b,_0x414d07]=[_0x414d07,_0xcd422b]),_0x374447['compare'](_0xcd422b,_0x414d07);},'isVisible':({plugins:_0xf88be9},_0x5a82f4)=>{const _0x31bf4c=_0xf88be9['get'](d);return!(_0x31bf4c['repository']['getRevisionsInDiff'](_0x31bf4c['diff'])['length']>0x2)&&!_0x5a82f4['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2b3ef2,{id:_0x120ef7})=>{_0x2b3ef2['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x120ef7);},'isVisible':({plugins:_0x11c91e},_0x221caf)=>!!_0x11c91e['get'](d)['repository']['getLaterVisibleRevision'](_0x221caf['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x16fa78},{id:_0x46efd5,revisionNameView:_0xa159e5})=>{const _0x3aba74=_0x16fa78['get'](d),_0x22cfcf=_0x3aba74['repository']['getEarlierVisibleRevision'](_0x46efd5);_0x3aba74['compare'](_0x46efd5,_0x22cfcf),_0xa159e5['focus'](),_0xa159e5['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x32ad44,_0x4baef1){super(_0x32ad44),this['_view']=_0x4baef1,this['_toolbarConfig']=ht(_0x32ad44['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x339234){const _0x287eb4=this['editor'],_0x2a8f16=this['view'],_0x319bbc=_0x287eb4['editing']['view'],_0x5d892c=_0x2a8f16['editable'],_0x18ec7c=_0x319bbc['document']['getRoot']();_0x5d892c['name']=_0x18ec7c['rootName'],_0x2a8f16['render']();const _0x596ff=_0x5d892c['element'];this['setEditableElement'](_0x5d892c['name'],_0x596ff),_0x2a8f16['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x319bbc['attachDomRoot'](_0x596ff),this['_elementReplacer']['replace'](_0x339234,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x509530=this['view'],_0x5f07f6=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5f07f6['detachDomRoot'](_0x509530['editable']['name']),_0x509530['destroy']();}['_initToolbar'](){const _0x1be79a=this['view'];_0x1be79a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1be79a['stickyPanel']['limiterElement']=_0x1be79a['element'],_0x1be79a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2e9520})=>_0x2e9520),_0x1be79a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1be79a['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0xdd2b4c,_0x45256c,_0x5d80ae={}){super(_0xdd2b4c),this['stickyPanel']=new lt(_0xdd2b4c),this['toolbar']=new nt(_0xdd2b4c,{'shouldGroupWhenFull':_0x5d80ae['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0xdd2b4c,_0x45256c);}['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(_0x20a2ff,_0x46f75c){super(_0x46f75c),this['sourceElement']=_0x20a2ff,this['model']['document']['createRoot']();const _0xf745d6=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0xf745d6);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3d74b1,_0x19391a){const _0x2802ab=new this(_0x3d74b1,_0x19391a);return await _0x2802ab['initPlugins'](),await _0x2802ab['ui']['init'](_0x3d74b1),await _0x2802ab['data']['init'](_0x2802ab['config']['get']('initialData')||''),_0x2802ab['fire']('ready'),_0x2802ab;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x407311{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c1206){function _0x5cf6c6(_0xd4342d){return _0xd4342d['map'](_0x4ae490=>String['fromCharCode'](_0x4ae490))['join']('');}super(_0x2c1206),this['result']='end',_0x2c1206[_0x5cf6c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5cf6c6([0x76,0x69,0x65,0x77])][_0x5cf6c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5cf6c6([0x61,0x75,0x74,0x6f]),_0x2c1206[_0x5cf6c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5cf6c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5cf6c6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5cf6c6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5cf6c6([0x6f,0x6b])});}}class H extends _0x407311{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x4cef61){if(super(_0x4cef61),!this['editor']['config']['get']('revisionHistory'))throw new _0x3e3d00('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2fc2fc=>this['_showRevisionViewer']({..._0x2fc2fc,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x255b9e=>this['_closeRevisionViewer'](_0x255b9e)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x11066d=>this['_restoreRevision'](_0x11066d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xea7c8d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xea7c8d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x96f016){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x96f016);}['getRevision'](_0x336224){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x336224);}['getRevisions'](_0x39fccd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x39fccd||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1dc97c=this['editor'],_0x326707=_0x108145(_0x1dc97c,p),_0x51a79f=_0x1dc97c['plugins']['get']('RevisionTracker'),_0x328ad9=_0x1dc97c['plugins']['get']('Users')['users'];return _0x326707['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x326707['lazyRoots'],(_0x326707['plugins']['push'](k,d,m,class extends _0x407311{static get['requires'](){return[d,'Users'];}['init'](){const _0x4ca2f7=this['editor']['plugins']['get']('Users');for(const _0x242c7e of _0x328ad9)_0x242c7e['isAnonymous']||_0x4ca2f7['getUser'](_0x242c7e['id'])||_0x4ca2f7['addUser'](_0x242c7e);const _0xe3852=_0x51a79f['repository']['getRevisions']();let _0x177ab0=null;const _0x19e7b6=this['editor']['plugins']['get']('RevisionViewer');_0x19e7b6['adapter']=_0x51a79f['adapter'],_0x19e7b6['bind']('isEnabled')['to'](_0x51a79f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1dc97c,'isReadOnly',_0x781542=>!_0x781542);for(const _0x156d2a of _0xe3852){const _0x5e713e=null===_0x156d2a['creator'];if(_0x5e713e&&_0x156d2a['toVersion']===_0x156d2a['fromVersion'])continue;const _0x1e4efd=_0x156d2a['toJSON']();_0x19e7b6['addRevisionData'](_0x1e4efd,(_0x59fe06,_0x35916b,_0x3893c9)=>{if(_0x5e713e){if(_0x177ab0)_0x177ab0['_update'](_0x59fe06,_0x35916b);else{if(!_0x35916b){const _0x1e3860=_0x3893c9['toJSON']();_0x1e3860['id']=_0x3dbcc6(),_0x51a79f['saveRevision'](_0x1e3860,_0x3893c9['toVersion'])['then'](_0x47e472=>{_0x177ab0=_0x47e472;});}}}else _0x156d2a['_update'](_0x59fe06,_0x35916b);});}}},g),_0x326707);}['_enhanceShowRevisionViewerCallback'](){const _0x479809=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x505b9e=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x14a503=this['editor']['plugins']['get']('Autosave');await _0x14a503['save']();}else await _0x505b9e['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x44be01=this['editor']['plugins']['get']('Dialog');_0x44be01['isOpen']&&_0x44be01['hide']();}const _0x2a64fd=this['_getRevisionViewerEditorConfig']();return _0x479809(_0x2a64fd)['then'](_0xe185a6=>{return(this['_viewerEditor']=_0xe185a6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xe185a6;})['catch'](_0x1ad773=>(console['error'](_0x1ad773),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xca719e=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'](),_0xca719e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3c695a=this['editor']['plugins']['get']('Annotations');_0x3c695a['refreshVisibility'](),_0x3c695a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x54c0e5){const _0x2b8ba4=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4148c9=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x62988e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x62988e,_0x54c0e5)['then'](_0x387eca=>(_0x4148c9['style']['display']='block',_0x2b8ba4['style']['display']='none',_0x387eca));}['_closeRevisionViewer'](_0x1d9a17){const _0x2b116b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2b116b['style']['display']='',_0x1d9a17['destroy']();}async['_restoreRevision'](_0x460e61){const _0x3db2bb=this['editor'],_0x3c42fe=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x174cdb=_0x3db2bb['plugins']['get']('RevisionTracker'),_0x13f78d=_0x3c42fe['repository']['getRevision'](_0x460e61);let _0x3207dc,_0x1b2cb3,_0x2a2bea;try{_0x3207dc=await _0x3c42fe['getRevisionData'](_0x13f78d),_0x1b2cb3=await _0x3c42fe['getRevisionRootsAttributes'](_0x13f78d);}catch(_0x188419){return void console['error'](_0x188419);}_0x3db2bb['model']['change'](_0x271461=>{for(const _0x3f8e4b of Array['from'](_0x3db2bb['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x271461['removeMarker'](_0x3f8e4b);}),_0x3c42fe['isReady']=!0x1,_0x3db2bb['model']['enqueueChange'](_0x2003f9=>{_0x2003f9['setSelection'](null),_0x2003f9['removeSelectionAttribute'](_0x3db2bb['model']['document']['selection']['getAttributeKeys']());const _0x5832a2=Object['keys'](_0x3207dc);for(const _0x436ed4 of _0x3db2bb['model']['document']['roots'])'$graveyard'!=_0x436ed4['rootName']&&_0x436ed4['isAttached']()&&!_0x5832a2['includes'](_0x436ed4['rootName'])&&_0x2003f9['detachRoot'](_0x436ed4);for(const _0x586162 of _0x5832a2){let _0x401206=_0x3db2bb['model']['document']['getRoot'](_0x586162);_0x401206&&_0x401206['isAttached']()||(_0x401206=_0x2003f9['addRoot'](_0x586162));const _0x7ff582=_0x1b2cb3[_0x586162],_0x22a457=Object['keys'](_0x7ff582),_0x1d5512=_0x3207dc[_0x586162];for(const _0x216062 of _0x401206['getAttributeKeys']())_0x22a457['includes'](_0x216062)||_0x2003f9['removeAttribute'](_0x216062,_0x401206);for(const _0x5b7c2b of _0x22a457)_0x2003f9['setAttribute'](_0x5b7c2b,_0x1b2cb3[_0x586162][_0x5b7c2b],_0x401206);_0x2003f9['remove'](_0x2003f9['createRangeIn'](_0x401206)),_0x2003f9['insert'](_0x3db2bb['data']['parse'](_0x1d5512,_0x401206),_0x401206,0x0);}});const _0x45879c=R(_0x3db2bb['locale'],'Restored');if(_0x13f78d['name'])_0x2a2bea=-0x1==_0x13f78d['name']['indexOf'](_0x45879c)?_0x45879c+':\x20'+_0x13f78d['name']:_0x13f78d['name'];else _0x2a2bea=_0x45879c+':\x20'+(_0x13f78d['createdAt']['toLocaleDateString'](_0x3db2bb['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x13f78d['createdAt']['toLocaleTimeString'](_0x3db2bb['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x174cdb['saveRevision']({'name':_0x2a2bea}),_0x3c42fe['isReady']=!0x0,_0x3db2bb['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
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x24f2de){super(_0x24f2de),this['_revisionViewer']=_0x24f2de['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4d41a7=this['_revisionsRepository']['_revisions'],_0x97983a=this['_createRevisionActions'](),_0x3f60e0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x4d41a7,_0x97983a,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',(_0x4b7dda,_0x30c490)=>{_0x30c490['revisionViews']['on']('add',(_0x4d94b3,_0x22cfc9)=>{_0x22cfc9['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)),_0x3f60e0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x162246=this['_revisionsRepository']['getRevision'](0x0);if(_0x162246){const _0x45be5d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x162246['id']);this['_revisionViewer']['compare'](_0x162246,_0x45be5d);}}['_handleRevisionSelected'](_0x2db091,_0x15926e){const _0x4ba827=this['_revisionsRepository']['getRevision'](_0x15926e['id']),_0x23f823=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4ba827['id']);this['_revisionViewer']['compare'](_0x4ba827,_0x23f823);}['_handleRevisionSetName'](_0x270ec5,_0x32dc4c){this['_revisionsRepository']['getRevision'](_0x32dc4c['id'])['setName'](_0x32dc4c['name']);}['_handleDiffChange'](_0x531167,_0x59c2b7,_0x32c8a9){const _0x45b430=this['_revisionsRepository']['getRevisionsInDiff'](_0x32c8a9);_0x45b430['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x45b430),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x45b430[0x0]));}['_createRevisionActions'](){const _0xc307ff=this['editor'],_0x24af3c=g['availableRevisionActions'],_0x4e69a5=_0xc307ff['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x4e69a5['length'])return _0x4e69a5['map'](_0x493198=>{const _0x5f4d74='string'==typeof _0x493198?Object['assign']({},_0x24af3c[_0x493198]):_0x493198;return _0x5f4d74['action']=_0x5f4d74['action']['bind'](this,_0xc307ff),_0x5f4d74['isVisible']&&(_0x5f4d74['isVisible']=_0x5f4d74['isVisible']['bind'](this,_0xc307ff)),_0x5f4d74;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3e8ea9},_0x49ded4)=>{const _0x1442ea=_0x3e8ea9['get'](d),_0x5547de=_0x1442ea['repository'];let _0x244b2c=_0x1442ea['diff']['newRevisionId'],_0x35f317=_0x49ded4['id'];_0x5547de['getIndex'](_0x244b2c)>_0x5547de['getIndex'](_0x35f317)&&([_0x244b2c,_0x35f317]=[_0x35f317,_0x244b2c]),_0x1442ea['compare'](_0x244b2c,_0x35f317);},'isVisible':({plugins:_0x137a13},_0xe5617b)=>{const _0xef663b=_0x137a13['get'](d);return!(_0xef663b['repository']['getRevisionsInDiff'](_0xef663b['diff'])['length']>0x2)&&!_0xe5617b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x19bec4,{id:_0x2c8598})=>{_0x19bec4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2c8598);},'isVisible':({plugins:_0x35b8f2},_0x33960a)=>!!_0x35b8f2['get'](d)['repository']['getLaterVisibleRevision'](_0x33960a['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xb75b20},{id:_0x13295f,revisionNameView:_0x561624})=>{const _0x4905db=_0xb75b20['get'](d),_0x205c03=_0x4905db['repository']['getEarlierVisibleRevision'](_0x13295f);_0x4905db['compare'](_0x13295f,_0x205c03),_0x561624['focus'](),_0x561624['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x29c5f9,_0x4b3bfe){super(_0x29c5f9),this['_view']=_0x4b3bfe,this['_toolbarConfig']=ht(_0x29c5f9['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x33bdb3){const _0x10eaf9=this['editor'],_0x325008=this['view'],_0x2f3d5d=_0x10eaf9['editing']['view'],_0x560348=_0x325008['editable'],_0x2c541d=_0x2f3d5d['document']['getRoot']();_0x560348['name']=_0x2c541d['rootName'],_0x325008['render']();const _0x41f578=_0x560348['element'];this['setEditableElement'](_0x560348['name'],_0x41f578),_0x325008['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2f3d5d['attachDomRoot'](_0x41f578),this['_elementReplacer']['replace'](_0x33bdb3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x15c991=this['view'],_0x2ead0c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2ead0c['detachDomRoot'](_0x15c991['editable']['name']),_0x15c991['destroy']();}['_initToolbar'](){const _0x9fa8f0=this['view'];_0x9fa8f0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x9fa8f0['stickyPanel']['limiterElement']=_0x9fa8f0['element'],_0x9fa8f0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x431237})=>_0x431237),_0x9fa8f0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x9fa8f0['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x23058c,_0x30d169,_0x3b1180={}){super(_0x23058c),this['stickyPanel']=new lt(_0x23058c),this['toolbar']=new nt(_0x23058c,{'shouldGroupWhenFull':_0x3b1180['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x23058c,_0x30d169);}['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(_0x1b4b60,_0x34cf5e){super(_0x34cf5e),this['sourceElement']=_0x1b4b60,this['model']['document']['createRoot']();const _0x556a2f=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x556a2f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x536162,_0x5678d9){const _0x456ee6=new this(_0x536162,_0x5678d9);return await _0x456ee6['initPlugins'](),await _0x456ee6['ui']['init'](_0x536162),await _0x456ee6['data']['init'](_0x456ee6['config']['get']('initialData')||''),_0x456ee6['fire']('ready'),_0x456ee6;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x28e165{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x598185){function _0x285f37(_0x408506){return _0x408506['map'](_0xac6d87=>String['fromCharCode'](_0xac6d87))['join']('');}super(_0x598185),this['result']='end',_0x598185[_0x285f37([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x285f37([0x76,0x69,0x65,0x77])][_0x285f37([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x285f37([0x61,0x75,0x74,0x6f]),_0x598185[_0x285f37([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x285f37([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x285f37([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x285f37([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x285f37([0x6f,0x6b])});}}class H extends _0x28e165{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x471adb){if(super(_0x471adb),!this['editor']['config']['get']('revisionHistory'))throw new _0x875336('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x2ca791=>this['_showRevisionViewer']({..._0x2ca791,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4745ee=>this['_closeRevisionViewer'](_0x4745ee)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x37beef=>this['_restoreRevision'](_0x37beef)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x15b768){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x15b768;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3ea50a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3ea50a);}['getRevision'](_0x1d6f48){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1d6f48);}['getRevisions'](_0x505360){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x505360||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1c8571=this['editor'],_0x480c8e=_0x16fc5f(_0x1c8571,p),_0x554095=_0x1c8571['plugins']['get']('RevisionTracker'),_0x22592f=_0x1c8571['plugins']['get']('Users')['users'];return _0x480c8e['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x480c8e['lazyRoots'],(_0x480c8e['plugins']['push'](k,d,m,class extends _0x28e165{static get['requires'](){return[d,'Users'];}['init'](){const _0x19a127=this['editor']['plugins']['get']('Users');for(const _0x1f35b5 of _0x22592f)_0x1f35b5['isAnonymous']||_0x19a127['getUser'](_0x1f35b5['id'])||_0x19a127['addUser'](_0x1f35b5);const _0x56e06b=_0x554095['repository']['getRevisions']();let _0x4a38df=null;const _0x22ffac=this['editor']['plugins']['get']('RevisionViewer');_0x22ffac['adapter']=_0x554095['adapter'],_0x22ffac['bind']('isEnabled')['to'](_0x554095),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1c8571,'isReadOnly',_0x3db838=>!_0x3db838);for(const _0xc85be5 of _0x56e06b){const _0x23b96d=null===_0xc85be5['creator'];if(_0x23b96d&&_0xc85be5['toVersion']===_0xc85be5['fromVersion'])continue;const _0x51b85c=_0xc85be5['toJSON']();_0x22ffac['addRevisionData'](_0x51b85c,(_0x408ab5,_0x5331fe,_0x37ebb6)=>{if(_0x23b96d){if(_0x4a38df)_0x4a38df['_update'](_0x408ab5,_0x5331fe);else{if(!_0x5331fe){const _0xde2a03=_0x37ebb6['toJSON']();_0xde2a03['id']=_0x2e1580(),_0x554095['saveRevision'](_0xde2a03,_0x37ebb6['toVersion'])['then'](_0x2d63ac=>{_0x4a38df=_0x2d63ac;});}}}else _0xc85be5['_update'](_0x408ab5,_0x5331fe);});}}},g),_0x480c8e);}['_enhanceShowRevisionViewerCallback'](){const _0x29027d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x25fc98=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4b9c83=this['editor']['plugins']['get']('Autosave');await _0x4b9c83['save']();}else await _0x25fc98['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x354384=this['editor']['plugins']['get']('Dialog');_0x354384['isOpen']&&_0x354384['hide']();}const _0x32a2fd=this['_getRevisionViewerEditorConfig']();return _0x29027d(_0x32a2fd)['then'](_0x419a94=>{return(this['_viewerEditor']=_0x419a94,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x419a94;})['catch'](_0x9b6a3f=>(console['error'](_0x9b6a3f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5bd1d6=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'](),_0x5bd1d6(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x16525b=this['editor']['plugins']['get']('Annotations');_0x16525b['refreshVisibility'](),_0x16525b['refreshPositioning']();}})));}['_showRevisionViewer'](_0xf2527d){const _0x1e4b81=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x12050e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x386a9c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x386a9c,_0xf2527d)['then'](_0x11815b=>(_0x12050e['style']['display']='block',_0x1e4b81['style']['display']='none',_0x11815b));}['_closeRevisionViewer'](_0x5e534e){const _0x1d2421=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x1d2421['style']['display']='',_0x5e534e['destroy']();}async['_restoreRevision'](_0x2a223a){const _0x1f0bbf=this['editor'],_0x1440c5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x220303=_0x1f0bbf['plugins']['get']('RevisionTracker'),_0x4c4ae0=_0x1440c5['repository']['getRevision'](_0x2a223a);let _0x50bd81,_0x5dab58,_0x221fc2;try{_0x50bd81=await _0x1440c5['getRevisionData'](_0x4c4ae0),_0x5dab58=await _0x1440c5['getRevisionRootsAttributes'](_0x4c4ae0);}catch(_0x5edc2b){return void console['error'](_0x5edc2b);}_0x1f0bbf['model']['change'](_0x41918b=>{for(const _0x2b85e7 of Array['from'](_0x1f0bbf['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x41918b['removeMarker'](_0x2b85e7);}),_0x1440c5['isReady']=!0x1,_0x1f0bbf['model']['enqueueChange'](_0x101241=>{_0x101241['setSelection'](null),_0x101241['removeSelectionAttribute'](_0x1f0bbf['model']['document']['selection']['getAttributeKeys']());const _0x38a0e5=Object['keys'](_0x50bd81);for(const _0x224c1a of _0x1f0bbf['model']['document']['roots'])'$graveyard'!=_0x224c1a['rootName']&&_0x224c1a['isAttached']()&&!_0x38a0e5['includes'](_0x224c1a['rootName'])&&_0x101241['detachRoot'](_0x224c1a);for(const _0x369e7f of _0x38a0e5){let _0x34b33b=_0x1f0bbf['model']['document']['getRoot'](_0x369e7f);_0x34b33b&&_0x34b33b['isAttached']()||(_0x34b33b=_0x101241['addRoot'](_0x369e7f));const _0x1c2b36=_0x5dab58[_0x369e7f],_0x2f7826=Object['keys'](_0x1c2b36),_0x30cad2=_0x50bd81[_0x369e7f];for(const _0x1a8ea2 of _0x34b33b['getAttributeKeys']())_0x2f7826['includes'](_0x1a8ea2)||_0x101241['removeAttribute'](_0x1a8ea2,_0x34b33b);for(const _0x34fb1c of _0x2f7826)_0x101241['setAttribute'](_0x34fb1c,_0x5dab58[_0x369e7f][_0x34fb1c],_0x34b33b);_0x101241['remove'](_0x101241['createRangeIn'](_0x34b33b)),_0x101241['insert'](_0x1f0bbf['data']['parse'](_0x30cad2,_0x34b33b),_0x34b33b,0x0);}});const _0x1e9c09=R(_0x1f0bbf['locale'],'Restored');if(_0x4c4ae0['name'])_0x221fc2=-0x1==_0x4c4ae0['name']['indexOf'](_0x1e9c09)?_0x1e9c09+':\x20'+_0x4c4ae0['name']:_0x4c4ae0['name'];else _0x221fc2=_0x1e9c09+':\x20'+(_0x4c4ae0['createdAt']['toLocaleDateString'](_0x1f0bbf['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4c4ae0['createdAt']['toLocaleTimeString'](_0x1f0bbf['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x220303['saveRevision']({'name':_0x221fc2}),_0x1440c5['isReady']=!0x0,_0x1f0bbf['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};