@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250221.0 → 0.0.0-nightly-next-20250222.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 +11 -11
  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 _0x57183e,uid as _0xc88e79,Collection as _0x316ce2,logWarning as _0x5de4e6,FocusTracker as _0x1e6b74,KeystrokeHandler as _0x51ec3d,scrollViewportToShowTarget as _0x4616bc,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x973de2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5b09a8,set as _0x2e7a0f,unset as _0x354115,isEqual as _0x217dfd}from'es-toolkit/compat';import{Plugin as _0x15a41a,PendingActions as _0x1fe681,Command as _0x36aae4,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x14ccaa,getMarkerDomElement as _0x173f60,ConfirmMixin as _0x58a203,sanitizeEditorConfig as _0x56d1fd}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x50994c,Element as ut,Range as ft,ViewUIElement as _0x16c039,ViewRawElement as _0x3219e8,ViewEmptyElement as _0x4e1795,ViewAttributeElement as _0x2cc6e8,ViewContainerElement as _0x204c83,Position as vt,ViewText as _0x4c49e5,ViewElement as _0x3ab808,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0xe4f57,IconChevronUp as _0x378756,IconChevronDown as _0x4593b4,IconUndo as _0x48d0e1,IconUser as _0x112fe5,IconThreeVerticalDots as _0x208eb8}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x18cf46,injectCssTransitionDisabler as ts,submitHandler as _0x413970,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x2cc8a3,ListView as _0x5055c7,ListItemView as te,ButtonView as _0x38e8b4,MenuBarMenuView as _0xed1a66,MenuBarMenuListView as _0x13f158,MenuBarMenuListItemView as _0x1f8008,MenuBarMenuListItemButtonView as _0x59f95c,ContextualBalloon as _0x236cd8,ToolbarSeparatorView as _0xdaec5e,IconView as _0x298fb4,addListToDropdown as _0x40b77b,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x537d06}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x57183e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xb9880d){super(),this['id']=_0xb9880d['id']||_0xc88e79(),this['creator']=_0xb9880d['creator']||null,this['authors']=_0xb9880d['authors']||[],this['diffData']=_0xb9880d['diffData']||null,this['toVersion']=_0xb9880d['toVersion']||0x0,this['fromVersion']=_0xb9880d['fromVersion']||0x0,this['set']('name',_0xb9880d['name']||''),this['set']('createdAt',_0xb9880d['createdAt']||new Date()),this['set']('attributes',_0xb9880d['attributes']||{});}['setName'](_0x18bb7f){this['_update']({'name':_0x18bb7f});}['setAttribute'](_0x4f377e,_0x40fe61){const _0x3d3200=_0x5b09a8(this['attributes']);_0x2e7a0f(_0x3d3200,_0x4f377e,_0x40fe61),this['_update']({'attributes':_0x3d3200});}['removeAttribute'](_0x312863){const _0x344c47=_0x5b09a8(this['attributes']);_0x354115(_0x344c47,_0x312863),this['_update']({'attributes':_0x344c47});}['_update'](_0x2e62dc,_0x55fe18=!0x1){let _0x3fd363=!0x1;const _0x20ad32={'id':this['id']},_0x3f5107=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x31582b of _0x3f5107){const _0x269ca0=_0x2e62dc[_0x31582b];void 0x0!==_0x269ca0&&_0x269ca0!==this[_0x31582b]&&(this[_0x31582b]=_0x269ca0,_0x20ad32[_0x31582b]=_0x269ca0,_0x3fd363=!0x0);}_0x3fd363&&(_0x20ad32['authors']&&(_0x20ad32['authorsIds']=_0x20ad32['authors']['map'](_0x1a60f5=>_0x1a60f5['id']),delete _0x20ad32['authors']),this['fire']('_update',_0x20ad32,_0x55fe18));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xcf7dc=>_0xcf7dc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x15a41a{['_revisions'];static get['requires'](){return[_0x14ccaa];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xeba369){super(_0xeba369),this['_revisions']=new _0x316ce2();}['afterInit'](){!async function(_0x181881){const _0x25ecb8=_0x2107f3([0x66,0x4e,0x53,0x74,0x49,0x4d,0x52,0x50,0x75,0x7a,0x77,0x46,0x32,0x6c,0x68,0x6e,0x79,0x4b,0x62,0x37,0x39,0x54,0x59,0x69,0x78,0x55,0x30,0x36,0x51,0x61,0x5a,0x64,0x71,0x76,0x33,0x58,0x72,0x47,0x56,0x44,0x34,0x42,0x45,0x70,0x4a,0x31,0x6f,0x67,0x65,0x43,0x57,0x4f,0x41,0x6b,0x38,0x48,0x35,0x6a,0x4c,0x63,0x73,0x6d]),_0x4d66c4=0xeb829,_0x76400=0x4050e032,_0xd9fe9a=0x40578012^_0x76400,_0x4966ec=window[_0x2107f3([0x44,0x61,0x74,0x65])][_0x2107f3([0x6e,0x6f,0x77])](),_0x78faa6=_0x181881[_0x2107f3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x49da79=new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x13165b=>{_0x78faa6[_0x2107f3([0x6f,0x6e,0x63,0x65])](_0x2107f3([0x72,0x65,0x61,0x64,0x79]),_0x13165b);}),_0x107db5={[_0x2107f3([0x6b,0x74,0x79])]:_0x2107f3([0x45,0x43]),[_0x2107f3([0x75,0x73,0x65])]:_0x2107f3([0x73,0x69,0x67]),[_0x2107f3([0x63,0x72,0x76])]:_0x2107f3([0x50,0x2d,0x32,0x35,0x36]),[_0x2107f3([0x78])]:_0x2107f3([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]),[_0x2107f3([0x79])]:_0x2107f3([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]),[_0x2107f3([0x61,0x6c,0x67])]:_0x2107f3([0x45,0x53,0x32,0x35,0x36])},_0x4c92cc=_0x78faa6[_0x2107f3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2107f3([0x67,0x65,0x74])](_0x2107f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2f75c3(){let _0x1d5f59,_0x2fd1df=null,_0x5e1452=null;try{if(_0x4c92cc==_0x2107f3([0x47,0x50,0x4c]))return _0x2107f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d5f59=_0x2eb2f8(),!_0x1d5f59)return _0x2107f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d5f59[_0x2107f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e1452=_0x35737d(_0x1d5f59[_0x2107f3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d5f59[_0x2107f3([0x6a,0x74,0x69])])),await _0x308084()?_0x3c886f()?_0x360d75()?_0x2107f3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x272fd8()?(_0x1d5f59[_0x2107f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2107f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2fd1df=_0x247a55(_0x2107f3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1d5f59[_0x2107f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2107f3([0x74,0x72,0x69,0x61,0x6c])&&(_0x2fd1df=_0x247a55(_0x2107f3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x735ad()):_0x2107f3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2107f3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2107f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x21c472){return _0x2107f3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x360d75(){const _0x190f46=[_0x2107f3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2107f3([0x74,0x72,0x69,0x61,0x6c])][_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d5f59[_0x2107f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4966ec/0x3e8:0xe10*_0xd9fe9a;return _0x1d5f59[_0x2107f3([0x65,0x78,0x70])]<_0x190f46;}function _0x3c886f(){const _0x3b1660=_0x1d5f59[_0x2107f3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3b1660)return!0x1;if(_0x3b1660[_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2107f3([0x2a])))return!0x0;if(_0x3b1660[_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2107f3([0x52,0x48])))return!0x0;if(_0x3b1660[_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2107f3([0x52,0x52,0x48]))){if(_0x1e80a5())return!0x0;if(_0x169f34()||_0x3420dc())return!0x0;}return!0x1;}function _0x272fd8(){const _0x44e41b=_0x1d5f59[_0x2107f3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x44e41b||0x0==_0x44e41b[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x49ea34}=new URL(window[_0x2107f3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x44e41b[_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49ea34))return!0x0;const _0xee73fb=_0x49ea34[_0x2107f3([0x73,0x70,0x6c,0x69,0x74])](_0x2107f3([0x2e]));return _0x44e41b[_0x2107f3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24376a=>_0x24376a[_0x2107f3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2107f3([0x2a])))[_0x2107f3([0x6d,0x61,0x70])](_0x10e53d=>_0x10e53d[_0x2107f3([0x73,0x70,0x6c,0x69,0x74])](_0x2107f3([0x2e])))[_0x2107f3([0x73,0x6f,0x6d,0x65])](_0x1c0800=>_0xee73fb[_0x2107f3([0x65,0x76,0x65,0x72,0x79])]((_0x1331a6,_0x5c4b76)=>_0x1c0800[_0x5c4b76]===_0x1331a6||_0x1c0800[_0x5c4b76]===_0x2107f3([0x2a])));}function _0x735ad(){return _0x2fd1df&&_0x5e1452?new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cff1c,_0x5e3e2b)=>{_0x2fd1df[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x3cff1c,_0x5e3e2b),_0x5e1452[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x36a663=>{_0x36a663!=_0x2107f3([0x56,0x61,0x6c,0x69,0x64])&&_0x3cff1c(_0x36a663);},_0x5e3e2b);}):_0x2fd1df||_0x5e1452||_0x2107f3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x35737d(_0x34bb1b,_0x506d42){return new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f9749=>{if(_0x537c14())return _0x4f9749(_0x2107f3([0x56,0x61,0x6c,0x69,0x64]));_0x4fc2f7(),_0x78faa6[_0x2107f3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2107f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f1687=!0x1;const _0x12088c=_0xc88e79();function _0x5fad78(_0x168b51){return!!_0x168b51&&(typeof _0x168b51===_0x2107f3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x168b51===_0x2107f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x168b51[_0x2107f3([0x74,0x68,0x65,0x6e])]===_0x2107f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x168b51[_0x2107f3([0x63,0x61,0x74,0x63,0x68])]===_0x2107f3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x35cd23(_0x556339){_0x77e595(_0x556339)[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x2796b4=>{if(!_0x2796b4||_0x2796b4[_0x2107f3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2107f3([0x6f,0x6b]))return _0x2107f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x187a71(_0x2e813c(_0x12088c+_0x506d42))!=_0x2796b4[_0x2107f3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2107f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2107f3([0x56,0x61,0x6c,0x69,0x64]);})[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x5c6f7f=>(_0x4e4670(),_0x5c6f7f),()=>{const _0x322604=_0x51cc74();return null==_0x322604?(_0x4e4670(),_0x2107f3([0x56,0x61,0x6c,0x69,0x64])):_0x2107f3(_0x4966ec-_0x322604>(0x645c6432^_0x76400)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x4f9749)[_0x2107f3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4f9749(_0x2107f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x31322b=0x40660eb2^_0x76400;function _0x4e4670(){const _0x114c87=_0x2107f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x187a71(_0x2e813c(_0x34bb1b)),_0x9e5b3b=_0x174b68(_0x187a71(window[_0x2107f3([0x4d,0x61,0x74,0x68])][_0x2107f3([0x63,0x65,0x69,0x6c])](_0x4966ec/_0x31322b)));window[_0x2107f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2107f3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x114c87,_0x9e5b3b);}function _0x51cc74(){const _0x13c59e=_0x2107f3([0x6c,0x6c,0x63,0x74,0x2d])+_0x187a71(_0x2e813c(_0x34bb1b)),_0x2c8a97=window[_0x2107f3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2107f3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13c59e);return _0x2c8a97?window[_0x2107f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x174b68(_0x2c8a97),0x10)*_0x31322b:null;}function _0x77e595(_0x7ef26c){return new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x319e37,_0x193169)=>{_0x7ef26c[_0x2107f3([0x74,0x68,0x65,0x6e])](_0x319e37,_0x193169),window[_0x2107f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x193169,0x405134f2^_0x76400);});}}_0x78faa6[_0x2107f3([0x6f,0x6e])](_0x2107f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x428b31,_0x26fec5)=>{if(_0x26fec5[0x0]!=_0x34bb1b)return _0x4f9749(_0x2107f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x26fec5[0x1]={..._0x26fec5[0x1],[_0x2107f3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x12088c};},{[_0x2107f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2107f3([0x68,0x69,0x67,0x68])}),_0x78faa6[_0x2107f3([0x6f,0x6e])](_0x2107f3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d1b4f=>{_0x5fad78(_0x1d1b4f[_0x2107f3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f1687=!0x0,_0x35cd23(_0x1d1b4f[_0x2107f3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2107f3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2107f3([0x6c,0x6f,0x77])}),_0x49da79[_0x2107f3([0x74,0x68,0x65,0x6e])](()=>{_0x3f1687||_0x4f9749(_0x2107f3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x537c14(){return _0x78faa6[_0x2107f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2107f3([0x76,0x69,0x65,0x77])][_0x2107f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2107f3([0x61,0x75,0x74,0x6f]);}function _0x4fc2f7(){_0x78faa6[_0x2107f3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2107f3([0x76,0x69,0x65,0x77])][_0x2107f3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2107f3([0x61,0x75,0x74,0x6f]);}}function _0x247a55(_0x1e68ff){const _0xbe0ab9=[new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df30c=>setTimeout(_0x3df30c,0x4059defe^_0x76400)),_0x49da79[_0x2107f3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bd970=>{const _0x3d7356=0x4050e035^_0x76400,_0x115aa3=_0x181881[_0x2107f3([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x12e9fc(){_0x115aa3[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3d7356&&_0x1bd970();}_0x12e9fc(),_0x115aa3[_0x2107f3([0x6f,0x6e])](_0x2107f3([0x61,0x64,0x64]),_0x12e9fc);})),new window[(_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x525cb3=>{function _0x589937(){for(const _0x345a30 in window)if(window[_0x2107f3([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2107f3([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x345a30))&&window[_0x345a30]==_0x4d66c4)return _0x525cb3();_0x78faa6[_0x2107f3([0x73,0x74,0x61,0x74,0x65])]!=_0x2107f3([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2107f3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x589937,0x4050f3ba^_0x76400);}_0x5bfd2d(_0x2107f3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x589937();})];return window[_0x2107f3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2107f3([0x72,0x61,0x63,0x65])](_0xbe0ab9)[_0x2107f3([0x74,0x68,0x65,0x6e])](()=>_0x1e68ff);}async function _0x28e65d(){if(await _0x49da79,_0x5bfd2d(_0x2107f3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x45b744=_0x181881[_0x2107f3([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3d40d2=_0x181881[_0x2107f3([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])](_0x45b744[_0x2107f3([0x69,0x64])]),_0x3dd7ad=_0x3e9238(_0x2107f3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3dd7ad[_0x2107f3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x45b744['id'],_0x3d40d2?_0x3d40d2['id']:null,!0x0),_0x3dd7ad[_0x2107f3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2107f3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3dd7ad[_0x2107f3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3dd7ad[_0x2107f3([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2a04c7,void(_0x3dd7ad[_0x2107f3([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2a04c7);}if(_0x5bfd2d(_0x2107f3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x41de93=_0x3e9238(_0x2107f3([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x41de93[_0x2107f3([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2107f3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x41de93[_0x2107f3([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x41de93[_0x2107f3([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2a04c7,_0x41de93[_0x2107f3([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2a04c7;}_0x78faa6[_0x2107f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2107f3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a04c7,_0x78faa6[_0x2107f3([0x6d,0x6f,0x64,0x65,0x6c])][_0x2107f3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a04c7,_0x78faa6[_0x2107f3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2107f3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e80a5(){return _0x5bfd2d(_0x2107f3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3e9238(_0x2107f3([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2107f3([0x73,0x74,0x61,0x74,0x65])]==_0x2107f3([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x169f34(){return _0x5bfd2d(_0x2107f3([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 _0x3420dc(){return _0x5bfd2d(_0x2107f3([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x296f09(_0x539d52){const _0x3a5b54=_0x243f57();_0x78faa6[_0x3a5b54]=_0x2107f3([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])+_0x539d52,_0x539d52[_0x2107f3([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2107f3([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x243f57()]=_0x4d66c4),_0x539d52!=_0x2107f3([0x56,0x61,0x6c,0x69,0x64])&&_0x28e65d();}function _0x243f57(){const _0x2b29b8=window[_0x2107f3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2107f3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2107f3([0x6e,0x6f,0x77])]())[_0x2107f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2107f3([0x2e]),'');let _0x5568d6=_0x2107f3([0x66]);for(let _0x124338=0x0;_0x124338<_0x2b29b8[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x124338+=0x2){let _0x281b50=window[_0x2107f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b29b8[_0x2107f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x124338,_0x124338+0x2));_0x281b50>=_0x25ecb8[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x281b50-=_0x25ecb8[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5568d6+=_0x25ecb8[_0x281b50];}return _0x5568d6;}function _0x2eb2f8(){const _0x86c5cc=_0x4c92cc[_0x2107f3([0x73,0x70,0x6c,0x69,0x74])](_0x2107f3([0x2e]));if(0x3!=_0x86c5cc[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5dd9b5(_0x86c5cc[0x1]);function _0x5dd9b5(_0x5e7bd5){const _0x3a7443=_0x3de8a9(_0x5e7bd5);return _0x3a7443&&_0x4c8009()?_0x3a7443:null;function _0x4c8009(){const _0x24044f=_0x3a7443[_0x2107f3([0x6a,0x74,0x69])],_0x4590eb=window[_0x2107f3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24044f[_0x2107f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24044f[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a3fe8={..._0x3a7443,[_0x2107f3([0x6a,0x74,0x69])]:_0x24044f[_0x2107f3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24044f[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a3fe8[_0x2107f3([0x76,0x63])],_0x2e813c(_0x4a3fe8)==_0x4590eb;}}}async function _0x308084(){let _0x5663ae=!0x0;try{const _0x20e7d4=_0x4c92cc[_0x2107f3([0x73,0x70,0x6c,0x69,0x74])](_0x2107f3([0x2e])),[_0x3174d5,_0x75fa92,_0x53df75]=_0x20e7d4;return _0x44d918(_0x3174d5),await _0x192afe(_0x3174d5,_0x75fa92,_0x53df75),_0x5663ae;}catch(_0x4cf4ce){return!0x1;}function _0x44d918(_0x1cc55a){const _0x174a3a=_0x3de8a9(_0x1cc55a);_0x174a3a&&_0x174a3a[_0x2107f3([0x61,0x6c,0x67])]==_0x2107f3([0x45,0x53,0x32,0x35,0x36])||(_0x5663ae=!0x1);}async function _0x192afe(_0x15adc0,_0xfbfaa8,_0x2a7361){const _0x40c53b=window[_0x2107f3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2107f3([0x66,0x72,0x6f,0x6d])](_0x79cdea(_0x2a7361),_0x8c1adb=>_0x8c1adb[_0x2107f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23e742=new window[(_0x2107f3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2107f3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x15adc0+_0x2107f3([0x2e])+_0xfbfaa8),_0x57a5ca=window[_0x2107f3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2107f3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x57a5ca)return;const _0xe654c6=await _0x57a5ca[_0x2107f3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2107f3([0x6a,0x77,0x6b]),_0x107db5,{[_0x2107f3([0x6e,0x61,0x6d,0x65])]:_0x2107f3([0x45,0x43,0x44,0x53,0x41]),[_0x2107f3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2107f3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2107f3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x57a5ca[_0x2107f3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2107f3([0x6e,0x61,0x6d,0x65])]:_0x2107f3([0x45,0x43,0x44,0x53,0x41]),[_0x2107f3([0x68,0x61,0x73,0x68])]:{[_0x2107f3([0x6e,0x61,0x6d,0x65])]:_0x2107f3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xe654c6,_0x40c53b,_0x23e742)||(_0x5663ae=!0x1);}}function _0x3de8a9(_0x3b0914){return _0x3b0914[_0x2107f3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2107f3([0x65,0x79]))?JSON[_0x2107f3([0x70,0x61,0x72,0x73,0x65])](_0x79cdea(_0x3b0914)):null;}function _0x79cdea(_0x400bda){return window[_0x2107f3([0x61,0x74,0x6f,0x62])](_0x400bda[_0x2107f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2107f3([0x2b]))[_0x2107f3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2107f3([0x2f])));}function _0x2e813c(_0x445467){let _0x312c1b=0x1505;function _0x5ca4a5(_0x10bfd1){for(let _0x563eb3=0x0;_0x563eb3<_0x10bfd1[_0x2107f3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x563eb3++){const _0x52be63=_0x10bfd1[_0x2107f3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x563eb3);_0x312c1b=(_0x312c1b<<0x5)+_0x312c1b+_0x52be63,_0x312c1b&=_0x312c1b;}}function _0x5c0d0a(_0x401725){Array[_0x2107f3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x401725)?_0x401725[_0x2107f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c0d0a):_0x401725&&typeof _0x401725==_0x2107f3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2107f3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x401725)[_0x2107f3([0x73,0x6f,0x72,0x74])]()[_0x2107f3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5158d6,_0x54126f])=>{_0x5ca4a5(_0x5158d6),_0x5c0d0a(_0x54126f);}):_0x5ca4a5(window[_0x2107f3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x401725));}return _0x5c0d0a(_0x445467),_0x312c1b>>>0x0;}function _0x187a71(_0x4f307e){return _0x4f307e[_0x2107f3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2107f3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2107f3([0x30]));}function _0x174b68(_0x1be251){return _0x1be251[_0x2107f3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2107f3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2107f3([0x6a,0x6f,0x69,0x6e])]('');}function _0x5bfd2d(_0x42e160){return _0x78faa6[_0x2107f3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2107f3([0x68,0x61,0x73])](_0x42e160);}function _0x3e9238(_0x59fea2){return _0x78faa6[_0x2107f3([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2107f3([0x67,0x65,0x74])](_0x59fea2);}function _0x2a04c7(){}function _0x2107f3(_0x1e166a){return _0x1e166a['map'](_0x7f9a6b=>String['fromCharCode'](_0x7f9a6b))['join']('');}_0x296f09(await _0x2f75c3());}(this);}['createRevision'](_0x1df03d){const _0x333c2f=this['editor']['plugins']['get']('Users');return new h({'id':_0x1df03d['id'],'name':_0x1df03d['name'],'creator':_0x1df03d['creatorId']?_0x333c2f['getUser'](_0x1df03d['creatorId']):null,'diffData':_0x1df03d['diffData']||_0x1df03d['data'],'authors':_0x1df03d['authorsIds']['map'](_0x567684=>_0x333c2f['getUser'](_0x567684)),'createdAt':new Date(_0x1df03d['createdAt']),'attributes':_0x1df03d['attributes'],'fromVersion':_0x1df03d['fromVersion'],'toVersion':_0x1df03d['toVersion']});}['addRevision'](_0x22f8e5,_0x22f4f0=0x0){this['_revisions']['add'](_0x22f8e5,_0x22f4f0);}['getRevision'](_0x3e8ae0){return this['_revisions']['get'](_0x3e8ae0);}['getRevisions'](_0x590535={'toJSON':!0x1}){const _0x655b86=Array['from'](this['_revisions']);return _0x655b86['reverse'](),_0x590535['toJSON']?_0x655b86['map'](_0x527ba1=>_0x527ba1['toJSON']()):_0x655b86;}['getIndex'](_0x44d2d9){return this['_revisions']['getIndex'](_0x44d2d9);}['getEarlierVisibleRevision'](_0x455ef6){const [,_0x278e72]=this['getRevisionsIterator'](_0x455ef6,{'direction':'earlier'});return _0x278e72;}['getLaterVisibleRevision'](_0x4d5f50){const [,_0x28dd74]=this['getRevisionsIterator'](_0x4d5f50,{'direction':'later'});return _0x28dd74;}['getRevisionsInDiff'](_0x36cb1b){const _0x14ab2c=[];for(const _0x261092 of this['getRevisionsIterator'](_0x36cb1b['newRevisionId']))if(_0x14ab2c['push'](_0x261092),_0x261092['id']===_0x36cb1b['oldRevisionId'])break;return _0x14ab2c;}*['getRevisionsIterator'](_0x42c1a1,{direction:_0x210a92='earlier',filter:_0x5a0dc2=()=>!0x0}={}){const _0x571f2a='earlier'===_0x210a92?0x1:-0x1;let _0x439477=this['_revisions']['get'](_0x42c1a1),_0x3a7add=this['getIndex'](_0x439477);for(yield _0x439477;_0x439477;){if(_0x3a7add+=_0x571f2a,_0x439477=this['getRevision'](_0x3a7add),!_0x439477)return;_0x5a0dc2(_0x439477)&&(yield _0x439477);}}}function m(_0x4e5296,_0x36d5a2,_0xa694f){const t=_0x4e5296['t'];switch(_0x36d5a2){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'},_0xa694f);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xa694f);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 E={'c':_0x204c83,'a':_0x2cc6e8,'e':_0x4e1795,'r':_0x3219e8,'u':_0x16c039};class u extends _0x15a41a{['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[_0x14ccaa,j,_0x1fe681];}constructor(_0x12375b){super(_0x12375b),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x4cd6d5=_0xc88e79();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4cd6d5},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 _0x3ea217=this['repository']['getRevision'](0x0),_0x209a11=_0x3ea217&&null===_0x3ea217['creator']?_0x3ea217:null;if(this['_continueCurrentRevision']=!!_0x209a11&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x315a7f=this['_source']['getCurrentRevisionId'](),_0x5d06b3=this['repository']['getRevision'](_0x315a7f);if(_0x5d06b3)this['_startingVersion']=_0x5d06b3['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x57de30=this['_source']['history']['_operations']['find'](_0x5227b1=>!_0x5227b1['_isInit']),_0x10544e=_0x57de30?_0x57de30['baseVersion']:this['_source']['history']['version'];_0x3ea217?(_0x3ea217['toVersion']<_0x10544e&&_0x3ea217['_update']({'toVersion':_0x10544e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x209a11['id'],this['_startingVersion']=_0x209a11['fromVersion']):(this['_startingVersion']=_0x3ea217['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x10544e,this['_continueCurrentRevision']=!0x1);}}else _0x209a11&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x209a11['toVersion'],this['editor']['model']['document']['history']['version']),_0x209a11['fromVersion']===_0x209a11['toVersion']?(0x0!==_0x209a11['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x209a11['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x209a11['id'],this['_startingVersion']=_0x209a11['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',_0x252575=>!_0x252575),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x51c799=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x835eb9;for(const _0x365d80 in _0x51c799){const _0x13f563=_0x365d80,_0x2fc88a=_0x51c799[_0x13f563];if('revisionHistoryLicenseKeyValid'==_0x2fc88a||'revisionHistoryLicenseKeyInvalid'==_0x2fc88a||'revisionHistoryLicenseKeyExpired'==_0x2fc88a||'revisionHistoryLicenseKeyDomainLimit'==_0x2fc88a||'revisionHistoryLicenseKeyNotAllowed'==_0x2fc88a||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2fc88a||'revisionHistoryLicenseKeyTrialLimit'==_0x2fc88a||'revisionHistoryLicenseKeyUsageLimit'==_0x2fc88a){delete _0x51c799[_0x13f563],_0x835eb9=_0x2fc88a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x835eb9&&_0x51c799['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x835eb9&&_0x51c799['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x835eb9&&_0x51c799['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x835eb9&&_0x51c799['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x835eb9&&_0x51c799['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x835eb9&&_0x51c799['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x835eb9&&_0x51c799['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2823bf=this['repository']['getRevision'](0x0),_0x52a5d7=await this['getRevisionDocumentData'](_0x2823bf),_0x2e9bd6=await this['getRevisionRootsAttributes'](_0x2823bf);this['_replaceEditorDataWithRevisionData'](_0x52a5d7,_0x2e9bd6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3279a6){this['_source']=_0x3279a6;}async['update'](){const _0x13659b=await this['_source']['getLatestVersion']();if(_0x13659b>this['currentRevision']['toVersion']){await this['_loadState']();const _0x3d36bf=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x13659b});_0x3d36bf['authors']=_0x3d36bf['authorsIds']['map'](_0x557956=>this['editor']['plugins']['get']('Users')['getUser'](_0x557956)),this['currentRevision']['_update'](_0x3d36bf);}}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'](_0x28892c={},_0x2a82d0=null){const _0x2d08d6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2a82d0>this['currentRevision']['toVersion']&&(_0x2a82d0=null),null===_0x2a82d0&&(_0x2a82d0=await this['_source']['getLatestVersion']());const _0x1ec18d=this['_getFromVersion'](_0x2a82d0),_0x49ab96=this['buildRevisionData']({'from':_0x1ec18d,'to':_0x2a82d0});if(this['currentRevision']['toVersion']<_0x2a82d0){const _0xe1d666=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2a82d0,'to':_0x2a82d0});_0xe1d666['authors']=[],_0xe1d666['authorsIds']=[],_0xe1d666['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xe1d666,!0x0),delete _0xe1d666['authors'],_0x2d08d6['push'](_0xe1d666);}_0x28892c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x28892c['name']=_0x28892c['name']||null,_0x28892c['id']=_0x28892c['id']||_0xc88e79(),_0x28892c={..._0x28892c,..._0x49ab96};const _0xf1890d=this['addRevisionData'](_0x28892c);_0x2d08d6['push'](_0x28892c);const _0x586143=this['repository']['getIndex'](_0xf1890d);if(0x0!==_0x586143){const _0x12c226=this['repository']['getRevision'](_0x586143-0x1);if(_0x12c226['fromVersion']!==_0x2a82d0){const _0x459756=this['_revisionDataBuilder']['getData'](_0x2a82d0,_0x12c226['toVersion']),_0x41c6e7={'id':_0x12c226['id'],'diffData':_0x459756['diffData'],'authorsIds':_0x459756['authorsIds'],'authors':_0x459756['authorsIds']['map'](_0x3b3e9c=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b3e9c)),'fromVersion':_0x2a82d0};_0x12c226===this['currentRevision']&&(_0x41c6e7['createdAt']=new Date(_0x28892c['createdAt']['getTime']()+0xa)),_0x12c226['_update'](_0x41c6e7,!0x0),delete _0x41c6e7['authors'],_0x2d08d6['push'](_0x41c6e7);}}if(this['adapter']){for(const _0x2dc8ef of _0x2d08d6)this['_bufferUpdate'](_0x2dc8ef['id'],_0x2dc8ef,!0x0);this['sendBufferedUpdates']();}return _0xf1890d;}['addRevisionData'](_0x286ef5){const _0x37fd43=this['repository']['createRevision'](_0x286ef5);return this['adapter']&&_0x37fd43['on']('_update',(_0x437e6f,_0xac18e4,_0x3bc1b9)=>{_0x3bc1b9||(this['_bufferUpdate'](_0xac18e4['id'],_0xac18e4,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x37fd43,this['_findInsertionIndex'](_0x37fd43)),_0x37fd43;}async['getRevisionDocumentData'](_0x135909){await this['_loadRevisionData'](_0x135909);const _0x3f54e7={};for(const _0x284b21 in _0x135909['diffData']){if(_0x135909['diffData'][_0x284b21]['attachChange']&&!_0x135909['diffData'][_0x284b21]['attachChange']['isAttached'])continue;const _0x852ac6=this['_removeRevisionMarkers'](JSON['parse'](_0x135909['diffData'][_0x284b21]['insertions'])),_0x24ecea=this['editor']['editing']['view']['document'],_0x232130=new _0x50994c(_0x24ecea,_0x852ac6['map'](_0x3747d8=>P(_0x3747d8,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3f54e7[_0x284b21]=this['editor']['data']['processor']['toData'](_0x232130),this['editor']['data']['processor']['useFillerType']('default');}return _0x3f54e7;}async['getRevisionRootsAttributes'](_0x55521c){await this['_loadRevisionData'](_0x55521c);const _0x1f307a={};for(const _0x442f5c in _0x55521c['diffData'])_0x55521c['diffData'][_0x442f5c]['attachChange']&&!_0x55521c['diffData'][_0x442f5c]['attachChange']['isAttached']||(_0x1f307a[_0x442f5c]=_0x55521c['diffData'][_0x442f5c]['attributesAfter']||{});return _0x1f307a;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x4ba1e9=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x359dfd=0x0;_0x359dfd<_0x4ba1e9['length'];_0x359dfd++){const _0x59d3d1=_0x4ba1e9[_0x359dfd];let _0x3f1916=!0x1;for(const _0x3422d3 of Object['keys'](_0x59d3d1))void 0x0===_0x59d3d1[_0x3422d3]?delete _0x59d3d1[_0x3422d3]:'id'!==_0x3422d3&&(_0x3f1916=!0x0);_0x3f1916||(_0x4ba1e9[_0x359dfd]=null);}if(_0x4ba1e9=_0x4ba1e9['filter'](_0x45fdce=>null!==_0x45fdce),!_0x4ba1e9['length'])return;for(let _0x1fe850=0x0;_0x1fe850<_0x4ba1e9['length'];_0x1fe850++){const _0x1dcebf=_0x4ba1e9[_0x1fe850];void 0x0!==_0x1dcebf['fromVersion']&&void 0x0===_0x1dcebf['toVersion']&&(_0x1dcebf['toVersion']=this['repository']['getRevision'](_0x1dcebf['id'])['toVersion']),void 0x0!==_0x1dcebf['toVersion']&&void 0x0===_0x1dcebf['fromVersion']&&(_0x1dcebf['fromVersion']=this['repository']['getRevision'](_0x1dcebf['id'])['fromVersion']);}const _0x46246c=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x4ba1e9,_0x46246c)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1bdbb6=>{if(_0x1bdbb6){for(const _0x516d85 of _0x1bdbb6)this['setRevisionData']({'id':_0x516d85['id'],'createdAt':_0x516d85['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xf5237f,_0x2999ec){let _0xb2e9d5=this['editor']['config']['get']('initialData'),_0x1a502b=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xb2e9d5){_0xb2e9d5={};for(const _0x56114a of this['editor']['model']['document']['getRootNames']())_0xb2e9d5[_0x56114a]='';}if('string'==typeof _0xb2e9d5&&(_0xb2e9d5={'main':_0xb2e9d5}),void 0x0===_0x1a502b){_0x1a502b={};for(const _0x9ab7e0 of this['editor']['model']['document']['getRootNames']())_0x1a502b[_0x9ab7e0]={};}let _0x2202a2=!0x1;const _0x4ffb78=Object['keys'](_0xb2e9d5),_0x46a637=Object['keys'](_0xf5237f);for(const _0x44f74a of _0x4ffb78){if(_0xb2e9d5[_0x44f74a]!==_0xf5237f[_0x44f74a]&&''!==_0xb2e9d5[_0x44f74a]['trim']()){_0x2202a2=!0x0;break;}if(!_0x217dfd(_0x1a502b[_0x44f74a],_0x2999ec[_0x44f74a])&&Object['keys'](_0x1a502b[_0x44f74a])['length']>0x0){_0x2202a2=!0x0;break;}}_0x2202a2||(_0x2202a2=_0x46a637['some'](_0x328b3f=>!this['editor']['model']['document']['getRoot'](_0x328b3f))),_0x2202a2&&_0x5de4e6('editor-initial-data-replaced-with-revision-data',{'editorData':_0xb2e9d5,'editorRootsAttributes':_0x1a502b,'revisionData':_0xf5237f,'revisionRootsAttributes':_0x2999ec}),this['editor']['config']['set']('initialData',_0xf5237f),this['editor']['config']['set']('rootsAttributes',_0x2999ec);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x36e5f1=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x36e5f1['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x3bb573){const _0x337967=this['repository']['getRevisions']();_0x337967['reverse']();let _0xe71601=0x0;for(;_0xe71601<_0x337967['length'];){const _0x4fce98=_0x337967[_0xe71601];if(_0x4fce98===this['currentRevision']){_0xe71601++;continue;}if(_0x4fce98['id']===this['_initialRevisionId'])break;const _0x491a3c=_0x3bb573['toVersion']-_0x4fce98['toVersion']||_0x3bb573['fromVersion']-_0x4fce98['fromVersion'];if(_0x491a3c>0x0)break;if(_0x491a3c<0x0)_0xe71601++;else{if(!_0x3bb573['creator']&&_0x4fce98['creator'])break;if(_0x4fce98['creator']||!_0x3bb573['creator']){if(_0x3bb573['createdAt']>_0x4fce98['createdAt'])break;_0xe71601++;}else _0xe71601++;}}return _0xe71601;}['setRevisionData'](_0x231273){const _0x1786b0=this['repository']['getRevision'](_0x231273['id']);if(_0x231273['createdAt']&&(_0x231273['createdAt']=new Date(_0x231273['createdAt'])),_0x231273['authorsIds']){const _0x1d6e4f=this['editor']['plugins']['get']('Users');_0x231273['authors']=_0x231273['authorsIds']['map'](_0x597140=>_0x1d6e4f['getUser'](_0x597140));}_0x1786b0['_update'](_0x231273,!0x0);}['buildRevisionData']({revision:_0x2eecf6=null,from:_0x19696f=null,to:_0x42d11c=null}){_0x19696f=null!==_0x19696f?_0x19696f:_0x2eecf6['fromVersion'],_0x42d11c=null!==_0x42d11c?_0x42d11c:_0x2eecf6['toVersion'];const _0x387fbc=this['_revisionDataBuilder']['getData'](_0x19696f,_0x42d11c),_0x4b92ec={'diffData':_0x387fbc['diffData'],'authorsIds':_0x387fbc['authorsIds'],'fromVersion':_0x19696f,'toVersion':_0x42d11c};if(!_0x2eecf6||_0x42d11c!==_0x2eecf6['toVersion']){const _0x2f309c=_0x42d11c-0x1,_0x3c487f=this['_source']['history']['getOperation'](_0x2f309c);_0x4b92ec['createdAt']=_0x3c487f&&_0x3c487f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x19696f===this['_loadedStateData']['fromVersion']){for(const _0x2a805f of this['_loadedStateData']['authors'])_0x4b92ec['authorsIds']['includes'](_0x2a805f['id'])||_0x4b92ec['authorsIds']['push'](_0x2a805f['id']);}return _0x4b92ec;}['_loadRevisionData'](_0x2b3df7){if(!_0x2b3df7||_0x2b3df7['diffData'])return Promise['resolve']();{const _0x35c176=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x35c176,'revisionId':_0x2b3df7['id']})['then'](_0x5797b2=>{_0x2b3df7['diffData']=_0x5797b2['diffData'];});}}['_bufferUpdate'](_0x5124ac,_0xdd4e51,_0x1acfed){if(this['_bufferedUpdates']['has'](_0x5124ac)){const _0x414ed8=this['_bufferedUpdates']['get'](_0x5124ac);_0xdd4e51=_0x1acfed?{..._0x414ed8,..._0xdd4e51}:{..._0xdd4e51,..._0x414ed8};}this['_bufferedUpdates']['set'](_0x5124ac,_0xdd4e51);}['_getFromVersion'](_0x2ad8ce){const _0x163aa9=this['repository']['getRevisions']();_0x163aa9['reverse'](),_0x163aa9['shift']();const _0x5f0a9a=_0x163aa9['find'](_0x18c59b=>_0x18c59b['toVersion']<=_0x2ad8ce)['toVersion'];return _0x5f0a9a<this['_startingVersion']?this['_startingVersion']:_0x5f0a9a;}['_createInitialRevision'](_0x3d6880){const _0x275646=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x275646)this['_initialRevisionId']=_0x275646['id'];else{const _0x567bcb=!this['editor']['model']['document']['roots']['find'](_0x21f420=>this['editor']['model']['hasContent'](_0x21f420)),_0x5aa75f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f6916=m(this['editor']['locale'],_0x567bcb?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3d6880,'to':_0x3d6880,'id':this['_initialRevisionId'],'name':_0x2f6916,'creatorId':_0x5aa75f});}}['_createCurrentRevision'](_0x1cacd2){const _0x2eb5c6=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2eb5c6),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x1cacd2,'to':_0x1cacd2,'id':_0x2eb5c6,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4a9b82,from:_0x5114ea,to:_0x4a505b,creatorId:_0x577df4,id:_0x431490}){const _0x4e8c1f=this['buildRevisionData']({'from':_0x5114ea,'to':_0x4a505b});_0x4e8c1f['name']=_0x4a9b82,_0x4e8c1f['creatorId']=_0x577df4,_0x4e8c1f['id']=_0x431490;const _0x3ce656=this['addRevisionData'](_0x4e8c1f);return this['adapter']&&this['_bufferUpdate'](_0x4e8c1f['id'],_0x4e8c1f,!0x0),_0x3ce656;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2d0c42){return(_0x2d0c42=_0x2d0c42['filter'](_0x3227b4=>!_0x3227b4['name']||'revision-start'!==_0x3227b4['name']&&'revision-end'!==_0x3227b4['name']))['forEach'](_0x3ff14f=>{'string'!=typeof _0x3ff14f&&(_0x3ff14f['children']=this['_removeRevisionMarkers'](_0x3ff14f['children']),_0x3ff14f['attributes']=_0x3ff14f['attributes']['filter'](_0x595339=>!_0x595339[0x0]['startsWith']('data-revision-')));}),_0x2d0c42;}}function P(_0x1ec663,_0x572a25){const _0x150929=_0x572a25['editing']['view']['document'];if('string'==typeof _0x1ec663)return new _0x4c49e5(_0x150929,_0x1ec663);{const _0xb2465d=_0x1ec663['children']['map'](_0x2bf11d=>P(_0x2bf11d,_0x572a25));return new(E[_0x1ec663['type']]||_0x3ab808)(_0x150929,_0x1ec663['name'],_0x1ec663['attributes'],_0xb2465d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5776b8){this['editor']=_0x5776b8,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'](_0x5a84d1){this['source']=_0x5a84d1;const _0x31e36b=new Map(),_0x436402=new Map(),_0x150fed=this['editor']['model']['document']['roots']['map'](_0x3287fc=>_0x3287fc['rootName']);for(const _0x2a6aad of _0x150fed){const _0x3c8ddc=this['editor']['model']['document']['getRoot'](_0x2a6aad),_0x578cc9=T(_0x3c8ddc);_0x31e36b['set'](_0x2a6aad,_0x578cc9),_0x436402['set'](_0x2a6aad,Object['fromEntries'](_0x3c8ddc['getAttributes']()));}const _0x6bf6bb=Array['from'](this['editor']['model']['markers'])['map'](_0x590f3d=>[_0x590f3d['name'],_0x590f3d['getRange']()]),_0x235042=this['source']['version'];this['_saveMetaData'](_0x235042,_0x31e36b,_0x6bf6bb,_0x436402),this['_startingRevisionId']=this['_revisionId'];const _0x415357=new Map(),_0x5ee07f=new Map();for(const _0x15a069 of _0x150fed){const _0x1461ac=F(_0x15a069);_0x415357['set'](_0x15a069,_0x1461ac),_0x5ee07f['set'](_0x15a069,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x415357,[],_0x5ee07f);}['getData'](_0x1cb8de,_0xcb04b0){if(this['_lastFrom']===_0x1cb8de&&this['_lastTo']<=_0xcb04b0)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xcb04b0,!0x0);else{if(!this['_savedMetaData']['has'](_0x1cb8de)){const _0x34f398=this['_getPreviousFrom'](_0x1cb8de);this['_calculateMetaData'](_0x34f398,_0x1cb8de,!0x1);}this['_calculateMetaData'](_0x1cb8de,_0xcb04b0,!0x0);}return this['_lastFrom']=_0x1cb8de,this['_lastTo']=_0xcb04b0,this['_getState']();}['loadState'](_0x55d798){this['_reset'](),this['_lastFrom']=_0x55d798['fromVersion'],this['_lastTo']=_0x55d798['toVersion'];for(const _0x4f5677 in _0x55d798['diffData']){const _0x511004=_0x55d798['diffData'][_0x4f5677]['attachChange'],_0x5970c5=_0x5b09a8(_0x55d798['diffData'][_0x4f5677]['attributesBefore'])||{},_0x108547=this['_makeModelFromViewString'](_0x55d798['diffData'][_0x4f5677]['deletions']);_0x108547['rootName']=_0x4f5677,_0x108547['_isAttached']=!_0x511004||!_0x511004['isAttached'],_0x108547['isAttached']=()=>_0x108547['_isAttached'],this['_baseRoots']['set'](_0x4f5677,_0x108547),this['_baseRootsAttributes']['set'](_0x4f5677,_0x5970c5),_0x511004&&this['_touchedRoots']['set'](_0x4f5677,_0x511004);const _0x4dd051=this['_makeIdsRoot'](_0x108547);this['_baseIdsRoots']['set'](_0x4f5677,_0x4dd051);for(const [_0x10797d,_0x131fa1]of _0x108547['markers']){if(!_0x10797d['startsWith']('revision:'))continue;const _0x2c5d08=_0x10797d['split'](':')[0x2];for(const _0x243aca of _0x131fa1['getWalker']({'singleCharacters':!0x0})){const _0x55ef6c=this['_getVidAttributeName'](_0x243aca),_0x4c879b='elementEnd'==_0x243aca['type']?_0x243aca['previousPosition']['path']['slice'](0x0,-0x1):_0x243aca['previousPosition']['path'],_0x96c4c9=_0x4dd051['getNodeByPath'](_0x4c879b)['getAttribute'](_0x55ef6c);this['_touched']['set'](_0x96c4c9,{'userId':_0x2c5d08});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3a9212=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x21962d=>!this['_touched']['has'](_0x21962d));let _0x3d2e91=0x0;const _0x2f8c49=new Map();for(const _0x5039fa in _0x55d798['diffData']){const _0x46b7d2=_0x55d798['diffData'][_0x5039fa]['attachChange'],_0x5066c1=_0x5b09a8(_0x55d798['diffData'][_0x5039fa]['attributesAfter'])||{},_0x105a48=this['_makeModelFromViewString'](_0x55d798['diffData'][_0x5039fa]['insertions']);_0x105a48['rootName']=_0x5039fa,_0x105a48['_isAttached']=!_0x46b7d2||_0x46b7d2['isAttached'],_0x105a48['isAttached']=()=>_0x105a48['_isAttached'],this['_diffRoots']['set'](_0x5039fa,_0x105a48),this['_diffRootsAttributes']['set'](_0x5039fa,_0x5066c1);const _0x125125=this['_makeIdsRoot'](_0x105a48,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5039fa,_0x125125),_0x2f8c49['set'](_0x5039fa,_0x105a48['isAttached']()?_0x5066c1:{});for(const [_0x4e4f94,_0x2da4d8]of _0x105a48['markers']){if(!_0x4e4f94['startsWith']('revision:'))continue;const _0x5dbcff=_0x4e4f94['split'](':')[0x2];for(const _0x149f9d of _0x2da4d8['getWalker']({'singleCharacters':!0x0})){const _0x8dc316=this['_getVidAttributeName'](_0x149f9d),_0x5d18cd=this['_revisionId']++,_0x3d6abb='elementEnd'==_0x149f9d['type']?_0x149f9d['previousPosition']['path']['slice'](0x0,-0x1):_0x149f9d['previousPosition']['path'];_0x125125['getNodeByPath'](_0x3d6abb)['_setAttribute'](_0x8dc316,_0x5d18cd),this['_touched']['set'](_0x5d18cd,{'userId':_0x5dbcff});}}for(const _0x1192cd of this['editor']['model']['createRangeIn'](_0x105a48)['getWalker']({'singleCharacters':!0x0})){const _0x48bc76=this['_getVidAttributeName'](_0x1192cd),_0x578c37='elementEnd'==_0x1192cd['type']?_0x1192cd['previousPosition']['path']['slice'](0x0,-0x1):_0x1192cd['previousPosition']['path'],_0x2f9bf0=_0x125125['getNodeByPath'](_0x578c37);_0x2f9bf0['getAttribute'](_0x48bc76)>0x0||_0x2f9bf0['_setAttribute'](_0x48bc76,_0x3a9212[_0x3d2e91++]);}for(const [_0x1f59c2,_0x7bd26]of _0x105a48['markers'])_0x1f59c2['startsWith']('revision:')||this['_markers']['set'](_0x1f59c2,_0x7bd26);}const _0x323382=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x323382),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x323382,0x1));const _0x1ccbd3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x1ccbd3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ccbd3,0x1));const _0x4a982d=Array['from'](this['_diffRoots'])['map'](([_0x15c0e4,_0x2ca400])=>[_0x15c0e4,T(_0x2ca400)]);this['_saveMetaData'](this['_lastTo'],_0x4a982d,this['_markers'],_0x2f8c49);}['_makeModelFromViewString'](_0x30d1ce){const _0x4377ad=JSON['parse'](_0x30d1ce),_0x16cfe1=this['editor']['editing']['view']['document'],_0x4a15a0=new _0x50994c(_0x16cfe1,_0x4377ad['map'](_0x58acc2=>P(_0x58acc2,this['editor'])));return this['editor']['data']['toModel'](_0x4a15a0);}['_saveMetaData'](_0x164dfd,_0x1241af,_0x5d7ae5,_0x5212a4){const _0x27d10c=new Map(_0x1241af),_0x4f3dc6=new Map(_0x5b09a8(_0x5212a4)),_0x3eb3c6=new Map();for(const [_0x4099e7,_0x2a206d]of _0x5d7ae5)_0x3eb3c6['set'](_0x4099e7,{'start':_0x2a206d['start']['clone'](),'end':_0x2a206d['end']['clone'](),'rootName':_0x2a206d['root']['rootName']});this['_savedMetaData']['set'](_0x164dfd,{'roots':_0x27d10c,'markers':_0x3eb3c6,'rootsAttributes':_0x4f3dc6});}['_removeMetaData'](_0x398738){this['_savedMetaData']['delete'](_0x398738);}['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'](_0x56183b,_0x367218=null){let _0x424023=null;_0x56183b['is']('documentFragment')||(_0x424023=new ut(_0x56183b['name'],{'vid_start':null===_0x367218?this['_revisionId']++:_0x367218++}));const _0x3a8cfb=[];for(const _0x15148a of _0x56183b['getChildren']())if(_0x15148a['is']('element')){_0x3a8cfb['push'](this['_makeIdsRoot'](_0x15148a,_0x367218));const _0x238de6=_0x3a8cfb[_0x3a8cfb['length']-0x1];null!==_0x367218&&(_0x367218=_0x238de6['is']('element','$text')?_0x238de6['getAttribute']('vid')+0x1:_0x238de6['getAttribute']('vid_end')+0x1);}else{for(let _0x4d1540=0x0;_0x4d1540<_0x15148a['offsetSize'];_0x4d1540++)_0x3a8cfb['push'](new ut('$text',{'vid':null===_0x367218?this['_revisionId']++:_0x367218++}));}if(_0x56183b['is']('documentFragment')){const _0x2aa660=F(_0x56183b['rootName']);return _0x2aa660['_insertChild'](0x0,_0x3a8cfb),_0x2aa660;}return _0x424023['_setAttribute']('vid_end',null===_0x367218?this['_revisionId']++:_0x367218++),_0x424023['_insertChild'](0x0,_0x3a8cfb),_0x424023;}['_calculateMetaData'](_0x4bbbbb,_0x2cc7db,_0x125abd){this['_reset']();const {roots:_0x3e8f3c,markers:_0x1d586e,rootsAttributes:_0x2a2561}=this['_savedMetaData']['get'](_0x4bbbbb);this['_baseRoots']=new Map(_0x3e8f3c),this['_baseRootsAttributes']=new Map(_0x5b09a8(_0x2a2561));for(const [_0x4e8a26,_0x2bbecd]of this['_baseRoots'])if('$graveyard'!==_0x4e8a26&&(this['_diffRoots']['set'](_0x4e8a26,T(_0x2bbecd)),this['_diffRootsAttributes']=new Map(_0x5b09a8(_0x2a2561)),_0x125abd)){const _0x4abb25=this['_revisionId'];this['_idsRoots']['set'](_0x4e8a26,this['_makeIdsRoot'](_0x2bbecd)),this['_baseIdsRoots']['set'](_0x4e8a26,this['_makeIdsRoot'](_0x2bbecd,_0x4abb25));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x125abd&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4c6277,_0x774e14]of _0x1d586e){const _0x332e38=this['_baseRoots']['get'](_0x774e14['rootName']),_0x207987=this['_diffRoots']['get'](_0x774e14['rootName']),_0x25fba9=new ft(this['_fixPosition'](_0x774e14['start'],_0x332e38),this['_fixPosition'](_0x774e14['end'],_0x332e38)),_0x4017b8=this['_fixRange'](_0x25fba9,_0x207987);_0x332e38['markers']['set'](_0x4c6277,_0x25fba9),this['_markers']['set'](_0x4c6277,_0x4017b8);}this['_applyOperations'](_0x4bbbbb,_0x2cc7db,_0x125abd);}['_applyOperations'](_0x35c398,_0x1e3b78,_0x530f54){for(const _0x477d46 of this['source']['getOperations'](_0x35c398,_0x1e3b78))this['_handleOperation'](_0x477d46,_0x530f54);for(const _0x1a605a of this['_diffRoots']['values']())_0x1a605a['markers']['clear']();for(const [_0x531ffc,_0x440d3a]of this['_markers']){this['_diffRoots']['get'](_0x440d3a['root']['rootName'])['markers']['set'](_0x531ffc,_0x440d3a['clone']());}const _0x1d9cca=new Map(),_0x3285ab=new Map();for(const [_0x8fc73f,_0x129e7a]of this['_diffRoots'])_0x1d9cca['set'](_0x8fc73f,T(_0x129e7a)),_0x3285ab['set'](_0x8fc73f,this['_diffRootsAttributes']['get'](_0x8fc73f));this['_saveMetaData'](_0x1e3b78,_0x1d9cca,this['_markers'],_0x3285ab);}['_getPreviousFrom'](_0xf392dc){const _0x323995=Array['from'](this['_savedMetaData']['keys']());_0x323995['sort']((_0x36613d,_0x2bce69)=>_0x36613d-_0x2bce69),_0x323995['reverse']();for(const _0x4f06e9 of _0x323995)if(_0x4f06e9<_0xf392dc)return _0x4f06e9;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2e581c,_0x189c09){const _0x26fe68=Array['from'](_0x189c09['markers'])['map'](([_0x4d3f70,_0x3423ef])=>[_0x4d3f70,this['_fixRange'](_0x3423ef,_0x2e581c)]);_0x2e581c['markers']=new Map(_0x26fe68);}['_transformMarkers'](_0x5a8ae3){for(const _0x59cdfd of this['_markers']['values']()){const _0x1f2d01=_0x59cdfd['getTransformedByOperation'](_0x5a8ae3),_0x109dbe=ft['_createFromRanges'](_0x1f2d01);_0x59cdfd['start']=_0x109dbe['start'],_0x59cdfd['end']=_0x109dbe['end'];}}['_handleOperation'](_0x4df417,_0x90a267){if('addRoot'!=_0x4df417['type']&&'detachRoot'!=_0x4df417['type']){if('insert'==_0x4df417['type']){const _0x49a118=_0x4df417['position']['root']['rootName'];this['_diffRoots']['has'](_0x49a118)||(this['_diffRoots']['set'](_0x49a118,F(_0x49a118,!0x0)),this['_diffRootsAttributes']['set'](_0x49a118,{}),_0x90a267&&this['_idsRoots']['set'](_0x49a118,F(_0x49a118,!0x0)));}else{if('addRootAttribute'==_0x4df417['type']||'removeRootAttribute'==_0x4df417['type']||'changeRootAttribute'==_0x4df417['type'])return void this['_handleRootAttributeOperation'](_0x4df417);'marker'==_0x4df417['type']&&this['_handleMarkerOperation'](_0x4df417);}if('marker'!==_0x4df417['type']){const _0x4fc165=this['_cloneOperation'](_0x4df417,this['_diffRoots']);_0x4fc165['_execute'](),this['_transformMarkers'](_0x4fc165);}if(_0x90a267)switch(_0x4df417['type']){case'insert':this['_handleInsertOperation'](_0x4df417);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4df417);break;case'merge':this['_handleMergeOperation'](_0x4df417);break;case'split':this['_handleSplitOperation'](_0x4df417);}}else this['_handleRootOperation'](_0x4df417,_0x90a267);}['_cloneOperation'](_0x1275a9,_0x3fef5d){const _0x2fce05=_0x1275a9['clone']();return _0x2fce05['_authorId']=_0x1275a9['_authorId'],this['_fixOperation'](_0x2fce05,_0x3fef5d),_0x2fce05;}['_getBaseVids'](_0x45244c){return _0x45244c['map'](_0x2a64de=>{const _0x588f6e=this['_getVidAttributeName'](_0x2a64de);return Number(_0x2a64de['item']['getAttribute'](_0x588f6e));});}['_generateTape'](_0x22bfd2,_0x5b73d8){if(_0x22bfd2['is']('element','$text'))_0x5b73d8['push']({'item':_0x22bfd2,'type':'text'});else{_0x22bfd2['is']('element')&&_0x5b73d8['push']({'item':_0x22bfd2,'type':'elementStart'});for(const _0x441f7c of _0x22bfd2['getChildren']())this['_generateTape'](_0x441f7c,_0x5b73d8);_0x22bfd2['is']('element')&&_0x5b73d8['push']({'item':_0x22bfd2,'type':'elementEnd'});}return _0x5b73d8;}['_getState'](){const _0x2c5d5f=new Map(this['_touched']),_0x325c61=new Map(_0x2c5d5f),_0xa03176=new Map(),_0x286c1d={'insertions':{},'deletions':{}},_0x2f28f9={'insertions':{},'deletions':{}},_0x25b920=new Map(),_0x325a93=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x325a93['delete']('$graveyard');for(const _0xabefeb of _0x325a93){const _0x15805e=this['_diffRoots']['get'](_0xabefeb)||F(_0xabefeb,!0x1),_0x224e6e=this['_baseRoots']['get'](_0xabefeb)||F(_0xabefeb,!0x1);_0x15805e['isAttached']()||_0x224e6e['isAttached']()?(_0x286c1d['insertions'][_0xabefeb]=T(_0x15805e),_0x286c1d['deletions'][_0xabefeb]=T(_0x224e6e),this['_copyMarkers'](_0x286c1d['deletions'][_0xabefeb],_0x224e6e),this['_copyMarkers'](_0x286c1d['insertions'][_0xabefeb],_0x15805e),_0x2f28f9['insertions'][_0xabefeb]=this['_generateTape'](this['_idsRoots']['get'](_0xabefeb),[]),_0x2f28f9['deletions'][_0xabefeb]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xabefeb)||F(_0xabefeb,!0x1),[])):_0x325a93['delete'](_0xabefeb);}for(const _0x5210f0 of _0x325a93){const _0x3376ea=_0x2f28f9['insertions'][_0x5210f0];for(const _0x53d2d5 of _0x3376ea){const _0x504e3e=this['_getVidAttributeName'](_0x53d2d5),_0x3684b4=_0x53d2d5['item']['getAttribute'](_0x504e3e);_0x325c61['delete'](_0x3684b4),_0x3684b4>=this['_startingRevisionId']&&_0xa03176['set'](_0x3684b4,_0x2c5d5f['get'](_0x3684b4));}}for(const _0x3b786e of _0x325a93){const _0x501810=_0x2f28f9['insertions'][_0x3b786e],_0x258744=this['_getBaseVids'](_0x2f28f9['deletions'][_0x3b786e]);let _0x1b2710=0x0;for(const _0xac94e6 of _0x501810){const _0x4d9633=this['_getVidAttributeName'](_0xac94e6),_0x329bf3=_0xac94e6['item']['getAttribute'](_0x4d9633);if(!_0xa03176['has'](_0x329bf3)&&!_0x25b920['has'](_0x329bf3)){if(_0x325c61['has'](_0x329bf3))_0x1b2710++;else{if(_0x329bf3!=_0x258744[_0x1b2710]){const _0xa3256c=_0x2c5d5f['get'](_0x329bf3)||_0x2c5d5f['get'](_0x258744[_0x1b2710]);for(;_0x329bf3!=_0x258744[_0x1b2710];)_0x325c61['has'](_0x258744[_0x1b2710])||(_0x25b920['set'](_0x258744[_0x1b2710],_0xa3256c),_0x2c5d5f['set'](_0x258744[_0x1b2710],_0xa3256c)),_0x1b2710++;}_0x1b2710++;}}}}for(const _0x869a2f of _0x325a93){const _0x3deb5f=_0x2f28f9['insertions'][_0x869a2f];for(const _0x197cf4 of _0x3deb5f){const _0x5870a4=this['_getVidAttributeName'](_0x197cf4),_0xb53b72=_0x197cf4['item']['getAttribute'](_0x5870a4);if(_0x25b920['has'](_0xb53b72)){const _0x168096=_0x25b920['get'](_0xb53b72);_0x325c61['has'](_0xb53b72)||_0x325c61['set'](_0xb53b72,{..._0x168096}),_0xa03176['set'](_0xb53b72,{..._0x168096});}}}for(const _0x47418d of _0x325c61['keys']())_0x47418d>=this['_startingRevisionId']&&_0x325c61['delete'](_0x47418d);const _0x11af97=new Map();for(const _0xefe847 of _0x325a93){let _0x592299=_0x2f28f9['insertions'][_0xefe847];for(const _0x3fb4b5 of _0x592299)if(_0x3fb4b5['item']['is']('element','tableCell')){const _0x843ee7=this['_getVidAttributeName'](_0x3fb4b5),_0xed8993=_0x3fb4b5['item']['getAttribute'](_0x843ee7);if(_0xa03176['has'](_0xed8993)){const _0x120ba8=_0x3fb4b5['item']['parent']['parent']['getAttribute']('vid_start'),_0x320078=_0x11af97['get'](_0x120ba8)||new Set();_0x320078['add'](_0xa03176['get'](_0xed8993)['userId']),_0x11af97['set'](_0x120ba8,_0x320078);}}_0x592299=_0x2f28f9['deletions'][_0xefe847];for(const _0x5bf1e2 of _0x592299)if(_0x5bf1e2['item']['is']('element','tableCell')){const _0x28f144=this['_getVidAttributeName'](_0x5bf1e2),_0x2d154c=_0x5bf1e2['item']['getAttribute'](_0x28f144);if(_0x325c61['has'](_0x2d154c)){const _0x54fe6a=_0x5bf1e2['item']['parent']['parent']['getAttribute']('vid_start'),_0x384af5=_0x11af97['get'](_0x54fe6a)||new Set();_0x384af5['add'](_0x325c61['get'](_0x2d154c)['userId']),_0x11af97['set'](_0x54fe6a,_0x384af5);}}for(const _0x5107d5 of _0x11af97['keys']())(_0xa03176['has'](_0x5107d5)||_0x325c61['has'](_0x5107d5))&&_0x11af97['delete'](_0x5107d5);}for(const _0x41f609 of _0x325a93){const _0x2b4bbf=_0x2f28f9['insertions'][_0x41f609];let _0x24e705=null,_0x573425=null;for(const _0x31f10b of _0x2b4bbf){const _0x28eb19=this['_getVidAttributeName'](_0x31f10b),_0x9aa57f=_0x31f10b['item']['getAttribute'](_0x28eb19),_0x4bed4d=_0x11af97['get'](_0x9aa57f);_0x4bed4d&&'elementStart'==_0x31f10b['type']&&(_0x24e705=Array['from'](_0x4bed4d)[0x0],_0x573425=_0x31f10b['item']['getAttribute']('vid_end')),_0x24e705&&(_0x325c61['set'](_0x9aa57f,{'userId':_0x24e705}),_0xa03176['set'](_0x9aa57f,{'userId':_0x24e705})),_0x9aa57f==_0x573425&&(_0x24e705=null,_0x573425=null);}}const _0x13cdea={},_0x226087=new Set();for(const _0x3e2885 of _0x325a93){const _0x441e5a=_0x286c1d['deletions'][_0x3e2885],_0x2b8c41=_0x286c1d['insertions'][_0x3e2885];for(const {userId:_0x517014}of this['_touchedMarkers']['values']())null!==_0x517014&&_0x226087['add'](_0x517014);for(const {userId:_0x139ae1}of this['_touchedRoots']['values']())null!==_0x139ae1&&_0x226087['add'](_0x139ae1);this['_markChanges'](_0x2b8c41,_0x2f28f9['insertions'][_0x3e2885],_0xa03176,'insertion',_0x226087),this['_markChanges'](_0x441e5a,_0x2f28f9['deletions'][_0x3e2885],_0x325c61,'deletion',_0x226087),_0x13cdea[_0x3e2885]={'insertions':this['_prepareViewToSave'](_0x2b8c41),'deletions':this['_prepareViewToSave'](_0x441e5a),'attachChange':this['_touchedRoots']['get'](_0x3e2885)||null,'attributesBefore':_0x5b09a8(this['_baseRootsAttributes']['get'](_0x3e2885))||{},'attributesAfter':_0x5b09a8(this['_diffRootsAttributes']['get'](_0x3e2885))};}return{'diffData':_0x13cdea,'authorsIds':Array['from'](_0x226087)};}['_processRootBeforeSave'](_0x115135){for(const [,_0x3248ec]of _0x115135['markers']){const _0x4804ef=_0x3248ec['start']['getAncestors']()['filter'](_0x28dbe1=>'tableCell'==_0x28dbe1['name']);for(const _0x4d5b92 of _0x4804ef)0x1==_0x4d5b92['childCount']&&_0x4d5b92['getChild'](0x0)['is']('element','paragraph')&&_0x4d5b92['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x505285){this['_processRootBeforeSave'](_0x505285);const _0x484778=this['editor']['data']['toView'](_0x505285,{}),_0x7c64c6=Array['from'](_0x484778['getChildren']())['map'](_0x1a7a3d=>this['_getViewJson'](_0x1a7a3d));return JSON['stringify'](_0x7c64c6);}['_getViewJson'](_0x446b82){if(_0x446b82['is']('$text'))return _0x446b82['data'];{const _0x2bef27=_0x446b82;return{'type':Object['keys'](E)['find'](_0x584636=>_0x446b82 instanceof E[_0x584636]),'name':_0x2bef27['name'],'attributes':Array['from'](_0x2bef27['getAttributes']()),'children':Array['from'](_0x2bef27['getChildren']())['map'](_0x2f5fe7=>this['_getViewJson'](_0x2f5fe7))};}}['_markChanges'](_0xd3e26f,_0x5655bb,_0xb4222f,_0x26296a,_0x51a0f9){let _0x144dd6=null,_0x415188=null,_0x1b45af=0x0;const _0x48f7cf=this['editor']['model'];for(let _0x400aa8=0x0;_0x400aa8<_0x5655bb['length'];_0x400aa8++){const _0x5d6a55=this['_getVidAttributeName'](_0x5655bb[_0x400aa8]),_0x3cafb4=_0x5655bb[_0x400aa8]['item']['getAttribute'](_0x5d6a55),_0x567857=_0xb4222f['get'](_0x3cafb4),_0x5416af=_0x400aa8==_0x5655bb['length']-0x1;(!_0x144dd6&&_0x567857&&(_0x144dd6=_0x567857,_0x415188=_0x5655bb[_0x400aa8]),_0x144dd6&&(!_0x567857||_0x567857['userId']!=_0x144dd6['userId']))&&(_0x1f2664(_0x567857,B(_0x415188,_0xd3e26f,_0x48f7cf),B(_0x5655bb[_0x400aa8],_0xd3e26f,_0x48f7cf)),_0x144dd6=_0x567857||null,_0x415188=_0x567857?_0x5655bb[_0x400aa8]:null),_0x144dd6&&_0x5416af&&_0x1f2664(_0x567857,B(_0x415188,_0xd3e26f,_0x48f7cf),J(_0x5655bb[_0x400aa8],_0xd3e26f,_0x48f7cf));}function _0x1f2664(_0x43fb83,_0x5932ea,_0x4d9c49){const _0x4212cd=_0x144dd6['userId'],_0x5d2c01='revision:'+_0x26296a+':'+_0x4212cd+':'+_0x1b45af++,_0x406277=_0x48f7cf['createRange'](_0x5932ea,_0x4d9c49);_0xd3e26f['markers']['set'](_0x5d2c01,_0x406277),null!==_0x4212cd&&_0x51a0f9['add'](_0x4212cd);}}['_getVidAttributeName'](_0x6cb1f8){switch(_0x6cb1f8['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1f73b2,_0x275203){_0x1f73b2['baseVersion']=null;for(const _0x3c2dfc in _0x1f73b2){const _0x218bfe=_0x1f73b2[_0x3c2dfc];if(_0x218bfe instanceof vt){const _0x29a5ff=_0x275203['get'](_0x218bfe['root']['rootName']);_0x1f73b2[_0x3c2dfc]=this['_fixPosition'](_0x218bfe,_0x29a5ff);}if(_0x218bfe instanceof ft){const _0x5bca19=_0x275203['get'](_0x218bfe['root']['rootName']);_0x1f73b2[_0x3c2dfc]=this['_fixRange'](_0x218bfe,_0x5bca19);}'root'===_0x3c2dfc&&(_0x1f73b2['root']=_0x275203['get'](_0x1f73b2['root']['rootName']));}}['_fixRange'](_0x391112,_0x1c87b2){return this['editor']['model']['createRange'](this['_fixPosition'](_0x391112['start'],_0x1c87b2),this['_fixPosition'](_0x391112['end'],_0x1c87b2));}['_fixPosition'](_0xe3f0c2,_0x4d596e){return this['editor']['model']['createPositionFromPath'](_0x4d596e,_0xe3f0c2['path'],_0xe3f0c2['stickiness']);}['_handleInsertOperation'](_0x209975){const _0x2f9796=this['_idsRoots']['get'](_0x209975['position']['root']['rootName']),_0x1beb86=this['_fixPosition'](_0x209975['position'],_0x2f9796),_0x228884=null===_0x209975['_authorId']?null:_0x209975['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x15a818=_0x1beb86['parent'],_0x49027c=this['_revisionId'],_0x517463=[];for(const _0x39bf6b of _0x209975['nodes'])if(_0x39bf6b['is']('element'))_0x517463['push'](this['_makeIdsRoot'](_0x39bf6b));else{for(let _0x10d47e=0x0;_0x10d47e<_0x39bf6b['offsetSize'];_0x10d47e++)_0x517463['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x5047e1=this['_revisionId'];for(let _0x324cdb=_0x49027c;_0x324cdb<_0x5047e1;_0x324cdb++)this['_touched']['set'](_0x324cdb,{'userId':_0x228884});_0x15a818['_insertChild'](_0x1beb86['offset'],_0x517463);}['_handleMoveOperation'](_0x52ce83){(_0x52ce83=this['_cloneOperation'](_0x52ce83,this['_idsRoots']))['_execute']();const _0x399f62=null===_0x52ce83['_authorId']?null:_0x52ce83['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x360e6d=_0x52ce83['getMovedRangeStart'](),_0x42a98b=_0x360e6d['parent'],_0x11ba05=_0x360e6d['offset'];!function _0x473845(_0x59fcc6,_0x22d1c1,_0x4009e0,_0x3ec735){for(let _0x1d5ed8=_0x4009e0;_0x1d5ed8<_0x3ec735;_0x1d5ed8++){const _0x45af5a=_0x22d1c1['getChild'](_0x1d5ed8);_0x45af5a['is']('element','$text')?_0x59fcc6['set'](_0x45af5a['getAttribute']('vid'),{'userId':_0x399f62}):(_0x59fcc6['set'](_0x45af5a['getAttribute']('vid_start'),{'userId':_0x399f62}),_0x473845(_0x59fcc6,_0x45af5a,0x0,_0x45af5a['childCount']),_0x59fcc6['set'](_0x45af5a['getAttribute']('vid_end'),{'userId':_0x399f62}));}}(this['_touched'],_0x42a98b,_0x11ba05,_0x11ba05+_0x52ce83['howMany']);}['_handleMergeOperation'](_0x3c0b97){const _0x5f2d7f=null===(_0x3c0b97=this['_cloneOperation'](_0x3c0b97,this['_idsRoots']))['_authorId']?null:_0x3c0b97['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54de97=_0x3c0b97['targetPosition']['parent'],_0x379203=_0x3c0b97['sourcePosition']['parent'],_0x4be76b=_0x54de97['getAttribute']('vid_end'),_0x58749b=_0x379203['getAttribute']('vid_start');_0x54de97['_setAttribute']('vid_end',_0x379203['getAttribute']('vid_end')),_0x379203['_setAttribute']('vid_end',_0x4be76b),this['_touched']['set'](_0x58749b,{'userId':_0x5f2d7f}),this['_touched']['set'](_0x4be76b,{'userId':_0x5f2d7f}),_0x3c0b97['_execute']();}['_handleSplitOperation'](_0x4f8808){const _0x446b7a=null===(_0x4f8808=this['_cloneOperation'](_0x4f8808,this['_idsRoots']))['_authorId']?null:_0x4f8808['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d3602=_0x4f8808['graveyardPosition'],_0x2eee3f=_0x4f8808['splitPosition']['parent'];_0x4f8808['_execute']();const _0x3833ab=_0x2eee3f['getAttribute']('vid_end'),_0x5e6ebf=_0x4f8808['insertionPosition']['nodeAfter'];if(_0x4d3602){const _0x8b760c=_0x5e6ebf['getAttribute']('vid_end'),_0x3722c7=_0x2eee3f['getAttribute']('vid_end');_0x2eee3f['_setAttribute']('vid_end',_0x8b760c),_0x5e6ebf['_setAttribute']('vid_end',_0x3722c7),this['_touched']['set'](_0x2eee3f['getAttribute']('vid_end'),{'userId':_0x446b7a}),this['_touched']['set'](_0x5e6ebf['getAttribute']('vid_start'),{'userId':_0x446b7a});}else{const _0x376fa5=this['_revisionId']++,_0x40071b=this['_revisionId']++;_0x2eee3f['_setAttribute']('vid_end',_0x376fa5),_0x5e6ebf['_setAttribute']('vid_start',_0x40071b),_0x5e6ebf['_setAttribute']('vid_end',_0x3833ab),this['_touched']['set'](_0x376fa5,{'userId':_0x446b7a}),this['_touched']['set'](_0x40071b,{'userId':_0x446b7a});}}['_handleMarkerOperation'](_0x25f7d9){if(!_0x25f7d9['affectsData'])return;const _0x2a33d1=(_0x25f7d9=this['_cloneOperation'](_0x25f7d9,this['_diffRoots']))['oldRange']?_0x25f7d9['oldRange']['root']:null,_0x161abc=_0x25f7d9['newRange']?_0x25f7d9['newRange']['root']:null;_0x2a33d1&&this['_markers']['delete'](_0x25f7d9['name']),_0x161abc&&this['_markers']['set'](_0x25f7d9['name'],_0x25f7d9['newRange']['clone']());const _0x438044=null===_0x25f7d9['_authorId']?null:_0x25f7d9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x265c63=_0x25f7d9['name'];if(!this['_touchedMarkers']['has'](_0x265c63))return void this['_touchedMarkers']['set'](_0x265c63,{'range':_0x25f7d9['oldRange'],'userId':_0x438044});const _0x291184=this['_touchedMarkers']['get'](_0x265c63),_0x2e4148=_0x291184['range'],_0x579b59=_0x25f7d9['newRange'];null==_0x2e4148&&null==_0x579b59||_0x2e4148&&_0x579b59&&_0x2e4148['isEqual'](_0x579b59)?this['_touchedMarkers']['delete'](_0x25f7d9['name']):_0x291184['userId']=_0x438044;}['_handleRootOperation'](_0x5c273a,_0x2faa22){this['_diffRoots']['has'](_0x5c273a['rootName'])?this['_diffRoots']['get'](_0x5c273a['rootName'])['_isAttached']=_0x5c273a['isAdd']:(this['_diffRoots']['set'](_0x5c273a['rootName'],F(_0x5c273a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5c273a['rootName'],{}),_0x2faa22&&this['_idsRoots']['set'](_0x5c273a['rootName'],F(_0x5c273a['rootName'],!0x0)));const _0x43f45c=null===_0x5c273a['_authorId']?null:_0x5c273a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x22cab6=this['_touchedRoots']['get'](_0x5c273a['rootName']);_0x22cab6&&_0x22cab6['userId']===_0x43f45c?this['_touchedRoots']['delete'](_0x5c273a['rootName']):this['_touchedRoots']['set'](_0x5c273a['rootName'],{'userId':_0x43f45c,'isAttached':_0x5c273a['isAdd']});}['_handleRootAttributeOperation'](_0x1240bf){const _0x203cb6=this['_diffRootsAttributes']['get'](_0x1240bf['root']['rootName']);null===_0x1240bf['newValue']?delete _0x203cb6[_0x1240bf['key']]:_0x203cb6[_0x1240bf['key']]=_0x1240bf['newValue'];}}function T(_0x718d7c){const _0x57d8f5=F(_0x718d7c['rootName'],_0x718d7c['isAttached']());for(const _0x1bf393 of _0x718d7c['getChildren']()){const _0x3822bd=_0x1bf393['_clone'](!0x0);_0x57d8f5['_appendChild'](_0x3822bd);}return _0x57d8f5;}function F(_0xfa5a8a,_0x120e2a=!0x0){const _0x16ca66=new gt();return _0x16ca66['rootName']=_0xfa5a8a,_0x16ca66['_isAttached']=_0x120e2a,_0x16ca66['isAttached']=()=>_0x16ca66['_isAttached'],_0x16ca66;}function B(_0x53d466,_0x509ab1,_0x256e13){const _0x3cdd85='elementEnd'==_0x53d466['type']?_0x256e13['createPositionAt'](_0x53d466['item'],'end'):_0x256e13['createPositionBefore'](_0x53d466['item']);return _0x256e13['createPositionFromPath'](_0x509ab1,_0x3cdd85['path'],_0x3cdd85['stickiness']);}function J(_0x2a4658,_0x26440b,_0x2ae3b2){const _0x120efa='elementStart'==_0x2a4658['type']?_0x2ae3b2['createPositionAt'](_0x2a4658['item'],0x0):_0x2ae3b2['createPositionAfter'](_0x2a4658['item']);return _0x2ae3b2['createPositionFromPath'](_0x26440b,_0x120efa['path'],_0x120efa['stickiness']);}class hs extends _0x18cf46{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x30f37c,_0x1c34dd){super(_0x30f37c),this['focusTracker']=new _0x1e6b74(),this['keystrokes']=new _0x51ec3d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1c34dd),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'](),_0x413970({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5699df=_0x510185=>_0x510185['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5699df),this['keystrokes']['set']('arrowleft',_0x5699df),this['keystrokes']['set']('arrowup',_0x5699df),this['keystrokes']['set']('arrowdown',_0x5699df);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x10a529){this['revisionNameInputView']['fieldView']['element']['value']=_0x10a529['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x58bfde){const _0x33f0e2=new at(this['locale'],ti),_0x3b2cf7=_0x33f0e2['fieldView'];_0x3b2cf7['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1c915c=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x58bfde&&(_0x1c915c+='\x20('+m(this['locale'],'optional')+')'),(_0x33f0e2['label']=_0x1c915c,_0x3b2cf7['on']('input',()=>{this['revisionNameInputValue']=_0x3b2cf7['element']['value']['trim']();}),_0x33f0e2);}}class f extends _0x15a41a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x4832b2=this['editor'],_0x2e58c0=_0x4832b2['plugins']['get']('RevisionTracker');_0x4832b2['ui']['componentFactory']['add']('revisionHistory',_0xe3dfa0=>{const _0x6275cf=_0x2cc8a3(_0xe3dfa0),_0x9c3864=_0x6275cf['panelView']['children'],_0x464313=new _0x5055c7(_0xe3dfa0),_0x33d5d2=new te(_0xe3dfa0),_0x4086dd=new _0x38e8b4(_0xe3dfa0),_0x4d6f7b=new te(_0xe3dfa0),_0x2c6780=new _0x38e8b4(_0xe3dfa0);return _0x6275cf['bind']('isEnabled')['to'](_0x2e58c0,'isReady',_0x2e58c0,'isEnabled',_0x4832b2,'isReadOnly',(_0x2b97b1,_0xb69007,_0x24e9f4)=>_0x2b97b1&&_0xb69007&&!_0x24e9f4),_0x6275cf['buttonView']['set']({'icon':_0xe4f57,'label':m(_0xe3dfa0,'Revision\x20history'),'tooltip':!0x0}),_0x4086dd['set']({'label':m(_0xe3dfa0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4086dd['bind']('isEnabled')['to'](_0x2e58c0,'isReady',_0x2e58c0,'isEnabled',_0x4832b2,'isReadOnly',(_0x5b69fc,_0x1f9308,_0x87fdbf)=>_0x5b69fc&&_0x1f9308&&!_0x87fdbf),_0x4086dd['on']('execute',()=>this['_showDialog']()),_0x2c6780['set']({'label':m(_0xe3dfa0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2c6780['bind']('isEnabled')['to'](_0x2e58c0,'isReady',_0x4832b2,'isReadOnly',(_0x3ff540,_0x99655f)=>_0x3ff540&&!_0x99655f),_0x2c6780['on']('execute',()=>{_0x4832b2['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x6275cf['isOpen']=!0x1,_0x4832b2['editing']['view']['focus']();}),_0x33d5d2['children']['add'](_0x4086dd),_0x4d6f7b['children']['add'](_0x2c6780),_0x464313['role']='menu',_0x464313['items']['addMany']([_0x33d5d2,_0x4d6f7b]),_0x9c3864['add'](_0x464313),_0x6275cf;}),_0x4832b2['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3eb207=this['editor'],_0x3cc061=_0x3eb207['locale'],_0x480b38=new _0xed1a66(_0x3cc061),_0x1af5a2=new _0x13f158(_0x3cc061);_0x480b38['buttonView']['set']({'icon':_0xe4f57,'label':m(_0x3cc061,'Revision\x20history')});const _0x4d97c9=new _0x1f8008(_0x3cc061,_0x480b38),_0xb7e82c=new _0x59f95c(_0x3cc061);_0xb7e82c['set']({'label':m(_0x3cc061,'Save\x20current\x20revision')}),_0xb7e82c['delegate']('execute')['to'](_0x480b38),_0xb7e82c['on']('execute',()=>{this['_showDialog']();}),_0x4d97c9['children']['add'](_0xb7e82c),_0x1af5a2['items']['add'](_0x4d97c9);const _0x51da58=new _0x1f8008(_0x3cc061,_0x480b38),_0x18b395=new _0x59f95c(_0x3cc061);return _0x18b395['set']({'label':m(_0x3cc061,'Open\x20revision\x20history')}),_0x18b395['delegate']('execute')['to'](_0x480b38),_0x18b395['on']('execute',()=>{_0x3eb207['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x51da58['children']['add'](_0x18b395),_0x1af5a2['items']['add'](_0x51da58),_0x480b38['panelView']['children']['add'](_0x1af5a2),_0x480b38;}['_showDialog'](){const _0x2163a5=this['editor'],_0x1613a9=_0x2163a5['locale'],_0x1fb2d3=_0x2163a5['plugins']['get']('Dialog'),_0x17cca6=_0x2163a5['plugins']['get']('RevisionTracker');function _0xfe23c8(_0x10d379){_0x2163a5['config']['get']('revisionHistory.requireRevisionName')&&''===_0x10d379['revisionName']?_0x10d379['revisionNameInputView']['errorText']=m(_0x1613a9,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2163a5['plugins']['get'](u)['saveRevision']({'name':_0x10d379['revisionName']}),_0x1fb2d3['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xfe23c8(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1fb2d3['show']({'id':'revisionSave','title':m(_0x1613a9,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2163a5['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1fb2d3['hide']()},{'label':m(_0x2163a5['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x560a68){_0x560a68['bind']('isEnabled')['to'](_0x17cca6,'isReady',_0x17cca6,'isEnabled',_0x2163a5,'isReadOnly',(_0x1d64a1,_0x52d24b,_0x2fb55c)=>_0x1d64a1&&_0x52d24b&&!_0x2fb55c);},'onExecute':()=>_0xfe23c8(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3a6162=this['editor'],_0x5e697a=_0x3a6162['locale'];this['_saveRevisionFormView']=new hs(_0x5e697a,_0x3a6162['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x18cf46{['changeId'];['_model'];constructor(_0x19a627,_0x2ceb2b){super(_0x19a627),this['_model']=_0x2ceb2b,this['changeId']=_0x2ceb2b['id'];const _0x54c431=this['bindTemplate'],_0xccaca8=m(_0x19a627,_0x2ceb2b['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2ceb2b['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2ceb2b['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x54c431['to']('type',_0x18f6db=>'ck-revision-change__'+_0x18f6db)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xccaca8}]},{'text':'\x20'+_0x2ceb2b['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x57183e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x56b1d9){super(),this['id']=_0x56b1d9['id']||_0xc88e79(),this['author']=_0x56b1d9['author'],this['type']=_0x56b1d9['type'],this['data']=_0x56b1d9['data']||{},this['rootName']=_0x56b1d9['rootName'],this['set']('createdAt',_0x56b1d9['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x580d1b,_0x5bba0f){this['newRevisionId']=_0x580d1b,this['oldRevisionId']=_0x5bba0f,this['changes']=new _0x316ce2();}['_setChanges'](_0x3c9fd4){for(const _0x45f545 of _0x3c9fd4)this['changes']['add'](_0x45f545);}}const Y={'c':_0x204c83,'a':_0x2cc6e8,'e':_0x4e1795,'r':_0x3219e8,'u':_0x16c039};class d extends _0x15a41a{['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[_0x14ccaa,_0x236cd8,j];}constructor(_0x5a14f4){super(_0x5a14f4),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',(_0x5cb955,_0x427175,_0x30b265)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xb64667=>{for(const _0x9a3312 of this['editor']['editing']['view']['document']['roots'])_0x30b265?_0xb64667['removeClass']('ck-editor__editable__overlay',_0x9a3312):_0xb64667['addClass']('ck-editor__editable__overlay',_0x9a3312);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2769b5=>null!==_0x2769b5),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x400c6f,_0x3fbef5,_0x42b7a9)=>_0x400c6f&&_0x42b7a9?_0x3fbef5['changes']['getIndex'](_0x42b7a9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x459845,_0x43db71)=>_0x459845?_0x43db71['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x236cd8);}['init'](){const _0x15903c=this['editor'],_0x563568=new yt(_0x15903c,{'direction':'backward'}),_0x518449=new yt(_0x15903c,{'direction':'forward'});(_0x15903c['commands']['add']('showPreviousChange',_0x563568),_0x15903c['commands']['add']('showNextChange',_0x518449),_0x15903c['commands']['add']('restoreRevision',new _t(_0x15903c)),this['on']('change:numberOfChanges',()=>{_0x563568['refresh'](),_0x518449['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x15903c['enableReadOnlyMode']('revision-viewer'),_0x15903c['plugins']['has']('WidgetToolbarRepository'))&&_0x15903c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x414c63){await this['loadRevisionData'](_0x414c63);const _0x38ff8f={};for(const _0x2f4fb9 in _0x414c63['diffData']){if(_0x414c63['diffData'][_0x2f4fb9]['attachChange']&&!_0x414c63['diffData'][_0x2f4fb9]['attachChange']['isAttached'])continue;const _0x17dbb4=this['_removeRevisionMarkers'](JSON['parse'](_0x414c63['diffData'][_0x2f4fb9]['insertions'])),_0x1b4035=this['editor']['editing']['view']['document'],_0x408a85=new _0x50994c(_0x1b4035,_0x17dbb4['map'](_0x262770=>this['_getViewObj'](_0x262770)));this['editor']['data']['processor']['useFillerType']('marked'),_0x38ff8f[_0x2f4fb9]=this['editor']['data']['processor']['toData'](_0x408a85),this['editor']['data']['processor']['useFillerType']('default');}return _0x38ff8f;}async['getRevisionRootsAttributes'](_0x71877c){await this['loadRevisionData'](_0x71877c);const _0x566364={};for(const _0x18ef6d in _0x71877c['diffData'])_0x71877c['diffData'][_0x18ef6d]['attachChange']&&!_0x71877c['diffData'][_0x18ef6d]['attachChange']['isAttached']||(_0x566364[_0x18ef6d]=_0x71877c['diffData'][_0x18ef6d]['attributesAfter']||{});return _0x566364;}['_removeRevisionMarkers'](_0x55931d){return(_0x55931d=_0x55931d['filter'](_0x456e8f=>!_0x456e8f['name']||'revision-start'!==_0x456e8f['name']&&'revision-end'!==_0x456e8f['name']))['forEach'](_0x5cc025=>{'string'!=typeof _0x5cc025&&(_0x5cc025['children']=this['_removeRevisionMarkers'](_0x5cc025['children']),_0x5cc025['attributes']=_0x5cc025['attributes']['filter'](_0x4382ef=>!_0x4382ef[0x0]['startsWith']('data-revision-')));}),_0x55931d;}async['compare'](_0x574198,_0xc801d0,_0x1cdbd0=!0x1){if(!this['isEnabled'])return;const _0x1fae94=this['diff'],_0xc91960=this['repository'],_0x4c5035='string'==typeof _0x574198?_0xc91960['getRevision'](_0x574198):_0x574198,_0x18e5e6='string'==typeof _0xc801d0?_0xc91960['getRevision'](_0xc801d0):_0xc801d0,_0x1ec59c=_0x4c5035['id'],_0x1a63b8=_0x18e5e6?_0x18e5e6['id']:null;if(!_0x1cdbd0&&this['diff']&&this['diff']['newRevisionId']===_0x1ec59c&&this['diff']['oldRevisionId']===_0x1a63b8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1ec59c,_0x1a63b8);const _0xd78774=this['_getRevisionsRange'](_0x4c5035,_0x18e5e6,!0x0)['map'](_0x1e53d4=>this['loadRevisionData'](_0x1e53d4));return _0xd78774['push'](new Promise(_0x2b687d=>{setTimeout(_0x2b687d,0x14);})),Promise['all'](_0xd78774)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x137378=this['_getDiff'](_0x1ec59c,_0x1a63b8);for(const _0x171a02 of _0x137378['changes'])this['_changeIdToChange']['set'](_0x171a02['id'],_0x171a02);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x46d3e5=>{for(const _0x2587d5 of this['editor']['model']['document']['getRootNames']())_0x46d3e5['detachRoot'](_0x2587d5);for(const _0x496aa3 of Object['keys'](_0x137378['model'])){const _0x885a7c=_0x46d3e5['addRoot'](_0x496aa3);for(const _0x197add of Object['keys'](_0x137378['attributes'][_0x496aa3]))_0x46d3e5['setAttribute'](_0x197add,_0x137378['attributes'][_0x496aa3][_0x197add],_0x885a7c);_0x46d3e5['insert'](_0x137378['model'][_0x496aa3],_0x885a7c,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x137378['changes'])),this['isReady']=!0x0;})['catch'](_0x509e1c=>{console['error'](_0x509e1c),this['_cleanUp'](),_0x1fae94&&(this['diff']=_0x1fae94),this['isReady']=!0x0;});}['addRevisionData'](_0x55e4cc,_0x391de2){const _0x43725f=this['repository']['createRevision'](_0x55e4cc);return _0x43725f['on']('_update',(_0x22bd60,_0x186d9d,_0x2d3083)=>_0x391de2(_0x186d9d,_0x2d3083,_0x43725f)),this['repository']['addRevision'](_0x43725f),_0x43725f;}['loadRevisionData'](_0x8ef0c6){if(!_0x8ef0c6||_0x8ef0c6['diffData'])return Promise['resolve']();{const _0x13ed29=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x13ed29,'revisionId':_0x8ef0c6['id']})['then'](_0x582db6=>{_0x8ef0c6['_update']({'diffData':_0x582db6['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},_0x26543b=>{for(const _0xeb0c0a of this['editor']['model']['document']['getRootNames']())_0x26543b['detachRoot'](_0xeb0c0a);});}['_sortAndFilterDiffChanges'](_0xe1409b){const _0x466c40=[],_0x1481c6=new Map();for(const _0x34b449 of this['editor']['model']['document']['getRootNames']()){const _0x1eb45b=this['editor']['editing']['view']['getDomRoot'](_0x34b449);if(!_0x1eb45b)continue;const _0x4184b0=_0x1eb45b['getClientRects']()['item'](0x0);_0x4184b0&&(_0x466c40['push'](_0x34b449),_0x1481c6['set'](_0x34b449,_0x4184b0));}return _0x466c40['sort']((_0x1fe1f6,_0xf3f305)=>{const _0x28bb68=_0x1481c6['get'](_0x1fe1f6),_0x1ece95=_0x1481c6['get'](_0xf3f305);return _0x28bb68['y']-_0x1ece95['y']||_0x28bb68['x']-_0x1ece95['x'];}),(_0xe1409b=_0xe1409b['filter'](_0xafc3be=>_0x466c40['includes'](_0xafc3be['rootName'])))['sort']((_0x98a2cd,_0x5e1d62)=>_0x466c40['indexOf'](_0x98a2cd['rootName'])-_0x466c40['indexOf'](_0x5e1d62['rootName'])),_0xe1409b;}['_makeTape'](_0x4a153c){const _0x74b2ad=Array['from'](_0x4a153c['markers'])['filter'](([_0x4833e3,_0x4a7f6f])=>_0x4833e3['startsWith']('revision:')&&!_0x4a7f6f['isCollapsed']),_0x2fa621=Array['from'](this['editor']['model']['createRangeIn'](_0x4a153c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x74b2ad['length'])for(const _0x40ab4f of _0x2fa621){const [_0x5963ab,_0x3f2558]=_0x74b2ad[0x0],[,_0x18df59,_0x221465]=_0x5963ab['split'](':');if(_0x3f2558['end']['isEqual'](_0x40ab4f['nextPosition'])&&_0x74b2ad['shift'](),(_0x40ab4f['previousPosition']['isEqual'](_0x3f2558['start'])||_0x40ab4f['previousPosition']['isAfter'](_0x3f2558['start']))&&('insertion'==_0x18df59?_0x40ab4f['isAdded']={'userId':_0x221465}:'deletion'==_0x18df59&&(_0x40ab4f['isRemoved']={'userId':_0x221465})),0x0==_0x74b2ad['length'])break;}return _0x2fa621;}['_refreshStartEndIndex'](_0x2e290c){const _0x3b44a3=new Map();for(let _0x28d577=0x0;_0x28d577<_0x2e290c['length'];_0x28d577++)'text'===_0x2e290c[_0x28d577]['type']?(_0x2e290c[_0x28d577]['item']['startIndex']=_0x28d577,_0x2e290c[_0x28d577]['item']['endIndex']=_0x28d577):('elementStart'===_0x2e290c[_0x28d577]['type']?_0x2e290c[_0x28d577]['item']['startIndex']=_0x28d577:'elementEnd'===_0x2e290c[_0x28d577]['type']&&(_0x2e290c[_0x28d577]['item']['endIndex']=_0x28d577),_0x3b44a3['set'](_0x2e290c[_0x28d577]['id'],_0x28d577));for(const _0x65e35d of _0x3b44a3['values']())'elementStart'===_0x2e290c[_0x65e35d]['type']?_0x2e290c[_0x65e35d]['item']['endIndex']=_0x3b44a3['get'](_0x2e290c[_0x65e35d]['pairId']):'elementEnd'===_0x2e290c[_0x65e35d]['type']&&(_0x2e290c[_0x65e35d]['item']['startIndex']=_0x3b44a3['get'](_0x2e290c[_0x65e35d]['pairId']));}['_processTape'](_0x123b27){for(let _0x4245ad=0x0;_0x4245ad<_0x123b27['length'];_0x4245ad++){if('elementStart'===_0x123b27[_0x4245ad]['type'])_0x123b27[_0x4245ad]['item']['startIndex']=_0x4245ad;else{if('elementEnd'===_0x123b27[_0x4245ad]['type']){_0x123b27[_0x4245ad]['item']['endIndex']=_0x4245ad;const _0x399598=_0x123b27[_0x4245ad]['item']['startIndex'];_0x123b27[_0x399598]['pairId']=_0x123b27[_0x4245ad]['id'],_0x123b27[_0x4245ad]['pairId']=_0x123b27[_0x399598]['id'];}else _0x123b27[_0x4245ad]['item']['startIndex']=_0x4245ad,_0x123b27[_0x4245ad]['item']['endIndex']=_0x4245ad,_0x123b27[_0x4245ad]['pairId']=null;}_0x123b27[_0x4245ad]['markersStart']||(_0x123b27[_0x4245ad]['markersStart']=[],_0x123b27[_0x4245ad]['markersEnd']=[]);}}['_markInsertions'](_0x551c97,_0x231fe9){const _0xae05f3=_0x551c97['filter'](_0xd592e=>!_0xd592e['isAdded']);for(let _0x1451e0=0x0;_0x1451e0<_0x231fe9['length'];_0x1451e0++)_0x231fe9[_0x1451e0]['isAdded']&&(_0xae05f3[_0x1451e0]['isAdded']=_0x231fe9[_0x1451e0]['isAdded']);}['_makeModelFromViewString'](_0x3b306d){const _0x3b598a=JSON['parse'](_0x3b306d),_0x1f1cfe=this['editor']['editing']['view']['document'],_0x32a971=new _0x50994c(_0x1f1cfe,_0x3b598a['map'](_0x4bd80a=>this['_getViewObj'](_0x4bd80a)));return this['editor']['data']['toModel'](_0x32a971);}['_getViewObj'](_0xd76f38){const _0x5bd9a8=this['editor']['editing']['view']['document'];if('string'==typeof _0xd76f38)return new _0x4c49e5(_0x5bd9a8,_0xd76f38);{const _0x262ce4=_0xd76f38['children']['map'](_0x4647f4=>this['_getViewObj'](_0x4647f4));return new(Y[_0xd76f38['type']]||_0x3ab808)(_0x5bd9a8,_0xd76f38['name'],_0xd76f38['attributes'],_0x262ce4);}}['_getDiff'](_0xdaaf9d,_0x5d01e5=null){const _0x49991a=this['repository']['getRevision'](_0xdaaf9d),_0x184f4b=_0x5d01e5?this['repository']['getRevision'](_0x5d01e5):null,_0xf898ae=this['_getRevisionsRange'](_0x49991a,_0x184f4b),_0x20401c=_0xf898ae[_0xf898ae['length']-0x1],_0x3c8bee=new Map(),_0x32113f={'model':{},'attributes':{},'changes':[]},_0x329e2c=new Set(),_0x3d31b4=new Map();for(let _0x6a4e98=_0xf898ae['length']-0x1;_0x6a4e98>=0x0;_0x6a4e98--){const _0x686f2e=_0xf898ae[_0x6a4e98];for(const _0x782132 of Object['keys'](_0x686f2e['diffData']))if(_0x686f2e['diffData'][_0x782132]['attachChange']){const _0x54ca55=_0x686f2e['diffData'][_0x782132]['attachChange'];_0x54ca55['isAttached']?(_0x329e2c['add'](_0x782132),_0x3d31b4['has'](_0x782132)&&_0x3d31b4['get'](_0x782132)['userId']==_0x54ca55['userId']?_0x3d31b4['delete'](_0x782132):_0x3d31b4['set'](_0x782132,_0x54ca55)):_0x3d31b4['has'](_0x782132)?(_0x329e2c['delete'](_0x782132),_0x3d31b4['delete'](_0x782132)):(_0x329e2c['add'](_0x782132),_0x3d31b4['set'](_0x782132,_0x54ca55));}else _0x329e2c['add'](_0x782132);}for(const _0x1d475c of _0x329e2c){const _0x4e4c0a=_0x3d31b4['has'](_0x1d475c)&&!_0x3d31b4['get'](_0x1d475c)['isAttached'];let _0x3e3e12=_0x4e4c0a?_0xf898ae['length']-0x1:0x0;const _0x440090=_0x4e4c0a?-0x1:0x1;for(;_0xf898ae[_0x3e3e12];){const _0x281649=_0xf898ae[_0x3e3e12];if(_0x281649['diffData'][_0x1d475c]){const _0x23e049=_0x4e4c0a?_0x281649['diffData'][_0x1d475c]['attributesBefore']:_0x281649['diffData'][_0x1d475c]['attributesAfter'];_0x32113f['attributes'][_0x1d475c]=_0x23e049?_0x5b09a8(_0x23e049):{};break;}_0x3e3e12+=_0x440090;}}for(const _0x51a8b9 of _0xf898ae){_0x51a8b9['model']={};for(const _0x219d7e of _0x51a8b9['authors'])_0x3c8bee['set'](_0x219d7e['id'],_0x219d7e);for(const _0x5cb781 of _0x329e2c){const _0x37374=_0x51a8b9['diffData'][_0x5cb781]?_0x51a8b9['diffData'][_0x5cb781]['insertions']:'[]',_0x5512ad=_0x51a8b9['diffData'][_0x5cb781]?_0x51a8b9['diffData'][_0x5cb781]['deletions']:'[]';_0x51a8b9['model'][_0x5cb781]={'insertions':this['_makeModelFromViewString'](_0x37374),'deletions':this['_makeModelFromViewString'](_0x5512ad)};}}for(const _0x50a5cd of _0x329e2c){let _0xf07419=null,_0x49744d=0x0;const _0x1dc1b5=new Map(Array['from'](_0x49991a['model'][_0x50a5cd]['insertions']['markers'])['filter'](([_0x54c5b0])=>!_0x54c5b0['startsWith']('revision:')));let _0x41df2e=0x0;for(const _0x5a1ae5 of _0xf898ae){const _0x5b7742=this['_makeTape'](_0x5a1ae5['model'][_0x50a5cd]['insertions']);_0x5a1ae5==_0x49991a?(_0xf07419=_0x5b7742,_0x49744d=_0xf07419['length'],_0xf07419['forEach'](_0x2072f9=>{_0x2072f9['id']=_0x41df2e++;}),this['_processTape'](_0xf07419)):this['_markInsertions'](_0xf07419,_0x5b7742);const _0x977506=_0xf07419['filter'](_0x36bfb2=>!_0x36bfb2['isAdded'])['map'](_0x634f35=>_0x634f35['id']);let _0x1afc2d=0x0;const _0x2fe4fc=this['_makeTape'](_0x5a1ae5['model'][_0x50a5cd]['deletions']);_0x2fe4fc['forEach'](_0x15e1de=>{_0x15e1de['isRemoved']?_0x15e1de['id']=_0x49744d++:_0x15e1de['id']=_0x977506[_0x1afc2d++];}),this['_processTape'](_0x2fe4fc),this['_setDistance'](_0xf07419,'isAdded'),this['_setDistance'](_0x2fe4fc,'isRemoved'),_0x5a1ae5==_0x49991a&&this['_markMarkers'](_0xf07419,_0x1dc1b5),_0xf07419=this['_joinTapes'](_0xf07419,_0x2fe4fc),this['_refreshStartEndIndex'](_0xf07419),this['_setDistance'](_0xf07419,'isRemoved');}_0xf07419=_0xf07419['filter'](_0x5df18a=>!(_0x5df18a['isAdded']&&_0x5df18a['isRemoved']));const _0x3c5e74=new Map(_0x20401c['model'][_0x50a5cd]['deletions']['markers']),_0x317dc7=new Set(_0x1dc1b5['keys']());for(const _0xbda610 of _0x3c5e74['keys']())_0x317dc7['delete'](_0xbda610);this['_markSuggestions'](_0xf07419,_0x317dc7),this['_fixObsoleteTags'](_0xf07419),_0xf07419=this['_removeMissingPairs'](_0xf07419),_0xf07419=this['_markMismatchedRemovedTags'](_0xf07419),_0xf07419=this['_removeUnsupportedChanges'](_0xf07419);const {root:_0x2d26d8,changes:_0x4e95fc}=this['_makeModelFromTape'](_0xf07419,_0x3c8bee,_0x50a5cd);_0x32113f['model'][_0x50a5cd]=_0x2d26d8;const _0x267fbf=_0x3d31b4['get'](_0x50a5cd);if(_0x267fbf){const _0x5c2fd7=_0x3c8bee['get'](_0x267fbf['userId']),_0x2aaece=new r({'author':_0x5c2fd7,'type':_0x267fbf['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x50a5cd});_0x4e95fc['unshift'](_0x2aaece),_0x32113f['attributes'][_0x50a5cd]['revisionHistoryAttachChange']=_0x2aaece['id'];}_0x32113f['changes']=_0x32113f['changes']['concat'](_0x4e95fc);}return _0x32113f;}['_markMarkers'](_0x184416,_0x3dc1b2){for(let _0x4e6cbe=0x0;_0x4e6cbe<_0x184416['length'];_0x4e6cbe++)for(const [_0x47b2d8,_0x50765e]of _0x3dc1b2)_0x50765e['start']['isEqual'](_0x184416[_0x4e6cbe]['previousPosition'])&&_0x184416[_0x4e6cbe]['markersStart']['push'](_0x47b2d8),_0x50765e['end']['isEqual'](_0x184416[_0x4e6cbe]['nextPosition'])&&_0x184416[_0x4e6cbe]['markersEnd']['push'](_0x47b2d8);}['_joinTapes'](_0x553461,_0x25d602){let _0x143374=[],_0x25e865=0x0,_0x368295=0x0;for(;_0x25e865<_0x553461['length']||_0x368295<_0x25d602['length'];){const _0x332364=_0x553461[_0x25e865]||{},_0x1c7e27=_0x25d602[_0x368295]||{};if(_0x332364['id']==_0x1c7e27['id'])_0x25e865++,_0x368295++,_0x143374['push'](_0x332364);else{if(_0x1c7e27['isRemoved']&&_0x332364['isAdded']){const {commonTape:_0x4ebafd,iEnd:_0x493fb3,jEnd:_0x277c94}=this['_threeWayMerge'](_0x553461,_0x25e865,_0x25d602,_0x368295);_0x143374=_0x143374['concat'](_0x4ebafd),_0x25e865=_0x493fb3,_0x368295=_0x277c94;}else _0x1c7e27['isRemoved']?(_0x368295++,_0x143374['push'](_0x1c7e27)):(_0x25e865++,_0x143374['push'](_0x332364));}}return _0x143374;}['_markSuggestions'](_0x1d2f1b,_0x1eee79){const _0x299e44=[];for(let _0x3cbafc=0x0;_0x3cbafc<_0x1d2f1b['length'];_0x3cbafc++){for(let _0x320e37=0x0;_0x320e37<_0x1d2f1b[_0x3cbafc]['markersStart']['length'];_0x320e37++){const _0x1f7371=_0x1d2f1b[_0x3cbafc]['markersStart'][_0x320e37];if(!_0x1eee79['has'](_0x1f7371))continue;const {group:_0x576345,type:_0x4b4e82,authorId:_0x4f50c9}=_0x261962(_0x1f7371);'revision-suggestion'!=_0x576345||'insertion'!=_0x4b4e82&&'deletion'!=_0x4b4e82||(_0x299e44['unshift']({'type':_0x4b4e82,'name':_0x1f7371,'userId':_0x4f50c9}),_0x1d2f1b[_0x3cbafc]['markersStart']['splice'](_0x320e37,0x1),_0x320e37--);}_0x4d8e9a(_0x1d2f1b[_0x3cbafc]);for(let _0x7918a0=0x0;_0x7918a0<_0x1d2f1b[_0x3cbafc]['markersEnd']['length'];_0x7918a0++){const _0x72837c=_0x1d2f1b[_0x3cbafc]['markersEnd'][_0x7918a0];if(!_0x1eee79['has'](_0x72837c))continue;const {group:_0x5efd1f,type:_0x3e63a3}=_0x261962(_0x72837c);if('revision-suggestion'!=_0x5efd1f||'insertion'!=_0x3e63a3&&'deletion'!=_0x3e63a3)continue;_0x1d2f1b[_0x3cbafc]['markersEnd']['splice'](_0x7918a0,0x1),_0x7918a0--;const _0x5bba53=_0x299e44['findIndex'](_0x18e473=>_0x18e473['name']==_0x72837c);_0x5bba53>-0x1&&_0x299e44['splice'](_0x5bba53,0x1);}}function _0x261962(_0x2f88e9){const _0x2fbad3=_0x2f88e9['split'](':');return{'group':_0x2fbad3[0x0],'type':_0x2fbad3[0x1],'subType':_0x2fbad3['length']>=0x5?_0x2fbad3[0x2]:null,'id':_0x2fbad3['length']<0x5?_0x2fbad3[0x2]:_0x2fbad3[0x3],'authorId':_0x2fbad3['length']<0x5?_0x2fbad3[0x3]:_0x2fbad3[0x4],'markerCount':0x6==_0x2fbad3['length']?_0x2fbad3[0x5]:null};}function _0x4d8e9a(_0x19b989){for(let _0x29f3a8=0x0;_0x29f3a8<_0x299e44['length'];_0x29f3a8++){if(_0x19b989['isAdded']&&'insertion'==_0x299e44[_0x29f3a8]['type'])return _0x19b989['isAddSuggestion']=_0x299e44[_0x29f3a8],void delete _0x19b989['isAdded'];if(!_0x19b989['isAdded']&&!_0x19b989['isRemoved']&&'deletion'==_0x299e44[_0x29f3a8]['type'])return void(_0x19b989['isRemoveSuggestion']=_0x299e44[_0x29f3a8]);}}}['_setDistance'](_0x175a41,_0x103faf){let _0x163ac0=0x0,_0x57ccfb=!0x1;const _0x34be55=new Map();for(const _0x246d0c of _0x175a41)_0x246d0c[_0x103faf]?_0x57ccfb&&(_0x163ac0++,_0x57ccfb=!0x1):(_0x163ac0++,_0x57ccfb=!0x0),_0x34be55['set'](_0x246d0c['id'],_0x163ac0);for(let _0x14fa96=0x0;_0x14fa96<_0x175a41['length'];_0x14fa96++){if('isRemoved'==_0x103faf&&_0x175a41[_0x14fa96]['isAdded']||'isAdded'==_0x103faf&&_0x175a41[_0x14fa96]['isRemoved'])continue;if('text'==_0x175a41[_0x14fa96]['type']){_0x175a41[_0x14fa96]['distance']=0x0;continue;}const _0x27e7ed=_0x34be55['get'](_0x175a41[_0x14fa96]['pairId']),_0x4165e8=_0x34be55['get'](_0x175a41[_0x14fa96]['id']);_0x175a41[_0x14fa96]['distance']=_0x27e7ed-_0x4165e8;}}['_getRevisionsRange'](_0x5b3fbd,_0x15b1b7,_0x353c22=!0x1){const _0x3da583=[];let _0x135530=this['repository']['getIndex'](_0x5b3fbd),_0x4c2d99=this['repository']['getIndex'](_0x15b1b7);for(-0x1==_0x4c2d99&&(_0x4c2d99=this['repository']['_revisions']['length'],_0x353c22=!0x1);_0x135530<_0x4c2d99;)_0x3da583['push'](this['repository']['getRevision'](_0x135530)),_0x135530++;return _0x353c22&&_0x3da583['push'](this['repository']['getRevision'](_0x135530)),_0x3da583;}['_threeWayMerge'](_0x40e0e5,_0x5b88e6,_0x2d22b0,_0x24fb35){const _0x33e9e1=this['editor']['model']['schema'];let _0xb6a513=_0x5b88e6;for(;_0x40e0e5[_0xb6a513]&&_0x40e0e5[_0xb6a513]['isAdded'];)_0xb6a513++;let _0x4bd3df=_0x24fb35;for(;_0x2d22b0[_0x4bd3df]&&_0x2d22b0[_0x4bd3df]['isRemoved'];)_0x4bd3df++;_0x508a26(_0x40e0e5,_0x5b88e6,_0xb6a513),_0x508a26(_0x2d22b0,_0x24fb35,_0x4bd3df);const _0x45b3d5=_0x2d22b0['slice'](_0x24fb35,_0x4bd3df)['concat'](_0x40e0e5['slice'](_0x5b88e6,_0xb6a513));return _0x45b3d5['sort']((_0x1ab5b4,_0xa74d79)=>_0x1ab5b4['side']!=_0xa74d79['side']?_0x1ab5b4['side']-_0xa74d79['side']:_0x1ab5b4['level']!=_0xa74d79['level']?_0x1ab5b4['level']-_0xa74d79['level']:_0x1ab5b4['distance']!=_0xa74d79['distance']?_0xa74d79['distance']-_0x1ab5b4['distance']:!!_0x1ab5b4['isAdded']!=!!_0xa74d79['isAdded']?-0x1==_0x1ab5b4['side']||0x0==_0x1ab5b4['side']?_0x1ab5b4['isAdded']?-0x1:0x1:_0x1ab5b4['isAdded']?0x1:-0x1:_0x1ab5b4['index']-_0xa74d79['index']),{'commonTape':_0x45b3d5,'iEnd':_0xb6a513,'jEnd':_0x4bd3df};function _0x508a26(_0x584c33,_0x505ff7,_0x4cb3a9){let _0x273e64=-0x1,_0x3726c3=Number['POSITIVE_INFINITY'],_0x3de484=!0x0;for(let _0x244cc1=_0x505ff7;_0x244cc1<_0x4cb3a9;_0x244cc1++)if(_0x33e9e1['isInline'](_0x584c33[_0x244cc1]['item'])||(_0x3de484=!0x1),_0x584c33[_0x244cc1]['item']['startIndex']<_0x505ff7&&(_0x273e64=_0x244cc1),_0x584c33[_0x244cc1]['item']['endIndex']>=_0x4cb3a9){_0x3726c3=_0x244cc1;break;}_0x3de484&&(_0x273e64=_0x4cb3a9-0x1);for(let _0x24dbd2=_0x505ff7;_0x24dbd2<_0x4cb3a9;_0x24dbd2++)_0x584c33[_0x24dbd2]['side']=_0x24dbd2<=_0x273e64?-0x1:_0x24dbd2<_0x3726c3?0x0:0x1,_0x584c33[_0x24dbd2]['index']=_0x24dbd2;let _0x540fb7=0x0;for(let _0x561ad2=_0x505ff7;_0x561ad2<=_0x273e64;_0x561ad2++)0x0==_0x584c33[_0x561ad2]['distance']?_0x584c33[_0x561ad2]['level']=_0x540fb7:(_0x540fb7++,_0x584c33[_0x561ad2]['level']=_0x540fb7,_0x540fb7++);for(let _0x1f5ad7=_0x505ff7;_0x1f5ad7<_0x4cb3a9;_0x1f5ad7++)0x0==_0x584c33[_0x1f5ad7]['side']&&(_0x584c33[_0x1f5ad7]['level']=_0x540fb7);_0x540fb7=0x0;for(let _0x16438d=_0x4cb3a9-0x1;_0x16438d>=_0x3726c3;_0x16438d--)0x0==_0x584c33[_0x16438d]['distance']?_0x584c33[_0x16438d]['level']=_0x540fb7:(_0x540fb7--,_0x584c33[_0x16438d]['level']=_0x540fb7,_0x540fb7--);}}['_fixObsoleteTags'](_0x3b942f){const _0x25d9b4=new Map(),_0x495753=this['editor']['model']['schema'];for(let _0x4ae438=0x1;_0x4ae438<_0x3b942f['length'];_0x4ae438++){let _0x3af8df,_0x5670f8,_0x449c84;const _0x5d137f=_0x3b942f[_0x4ae438],_0x481fd2=_0x3b942f[_0x4ae438-0x1];if('text'==_0x5d137f['type'])continue;if(_0x5d137f['type']!=_0x481fd2['type'])continue;if(!_0x495753['isBlock'](_0x481fd2['item'])||_0x495753['isLimit'](_0x481fd2['item']))continue;if(!_0x495753['isBlock'](_0x5d137f['item'])||_0x495753['isLimit'](_0x5d137f['item']))continue;if((_0x3b942f[_0x4ae438]['isAdded']||_0x3b942f[_0x4ae438]['isAddSuggestion'])&&_0x3b942f[_0x4ae438-0x1]['isRemoved'])_0x3af8df=_0x3b942f[_0x4ae438],_0x5670f8=_0x3b942f[_0x4ae438-0x1],_0x449c84=_0x4ae438-0x1;else{if(!_0x3b942f[_0x4ae438]['isRemoved']||!_0x3b942f[_0x4ae438-0x1]['isAdded']&&!_0x3b942f[_0x4ae438-0x1]['isAddSuggestion'])continue;_0x3af8df=_0x3b942f[_0x4ae438-0x1],_0x5670f8=_0x3b942f[_0x4ae438],_0x449c84=_0x4ae438;}const _0x3d2454=_0x3af8df['level']==_0x5670f8['level'],_0x995c8e=Math['abs'](_0x3af8df['level'])<Math['abs'](_0x5670f8['level'])&&0x0==_0x5670f8['distance'];(_0x3d2454||_0x995c8e)&&(_0x25d9b4['set'](_0x5670f8['id'],_0x3af8df['id']),_0x3b942f['splice'](_0x449c84,0x1),_0x4ae438--,_0x3af8df['isAdded']=!0x1);}for(let _0xfdaa15=0x0;_0xfdaa15<_0x3b942f['length'];_0xfdaa15++)_0x25d9b4['has'](_0x3b942f[_0xfdaa15]['pairId'])&&(_0x3b942f[_0xfdaa15]['pairId']=_0x25d9b4['get'](_0x3b942f[_0xfdaa15]['pairId']));}['_removeMissingPairs'](_0x319596){const _0x236cc8=new Set(_0x319596['map'](_0x548626=>_0x548626['id']));for(let _0x584847=0x0;_0x584847<_0x319596['length'];_0x584847++)_0x236cc8['has'](_0x319596[_0x584847]['pairId'])||0x0==_0x319596[_0x584847]['distance']||(_0x319596[_0x584847]['isIncorrect']=!0x0);return _0x319596['filter'](_0x293848=>!_0x293848['isIncorrect']);}['_markMismatchedRemovedTags'](_0x40967e){const _0x274d37=new Set();for(let _0x80a27c=0x0;_0x80a27c<_0x40967e['length'];_0x80a27c++){if(_0x274d37['has'](_0x40967e[_0x80a27c]['id'])&&_0x40967e[_0x80a27c]['isRemoved']&&(_0x40967e[_0x80a27c]['isIncorrect']=!0x0),_0x40967e[_0x80a27c]['isIncorrect'])continue;if(0x0==_0x40967e[_0x80a27c]['distance'])continue;if('elementStart'!=_0x40967e[_0x80a27c]['type'])continue;if(null==_0x40967e[_0x80a27c]['pairId'])continue;let _0xc52e29=_0x80a27c+0x1,_0x24594d=0x0;for(;_0x40967e[_0xc52e29]['id']!=_0x40967e[_0x80a27c]['pairId'];)'elementStart'==_0x40967e[_0xc52e29]['type']?_0x24594d++:'elementEnd'==_0x40967e[_0xc52e29]['type']&&_0x24594d--,_0xc52e29++;if(0x0!=_0x24594d){if(_0x40967e[_0x80a27c]['isRemoved'])_0x40967e[_0x80a27c]['isIncorrect']=!0x0;else{for(;_0xc52e29!=_0x80a27c;)_0x40967e[_0xc52e29]['isRemoved']&&0x0!=_0x40967e[_0xc52e29]['distance']&&(_0x40967e[_0xc52e29]['isIncorrect']=!0x0,_0x274d37['add'](_0x40967e[_0xc52e29]['pairId'])),_0xc52e29--;}}}return _0x40967e['filter'](_0x22e472=>!_0x22e472['isIncorrect']);}['_removeUnsupportedChanges'](_0x1c221f){const _0x11ab1e=this['editor']['model']['schema'];for(let _0x7bbf04=0x0;_0x7bbf04<_0x1c221f['length'];_0x7bbf04++){if(!(_0x1c221f[_0x7bbf04]['isAdded']||_0x1c221f[_0x7bbf04]['isAddSuggestion']||_0x1c221f[_0x7bbf04]['isRemoved']||_0x1c221f[_0x7bbf04]['isRemoveSuggestion']))continue;if(0x0==_0x1c221f[_0x7bbf04]['distance'])continue;const _0x4b2a8a=_0x1c221f[_0x7bbf04]['item'];_0x11ab1e['isBlock'](_0x4b2a8a)||_0x11ab1e['isLimit'](_0x4b2a8a)||(_0x1c221f[_0x7bbf04]['isAdded']&&delete _0x1c221f[_0x7bbf04]['isAdded'],_0x1c221f[_0x7bbf04]['isAddSuggestion']&&delete _0x1c221f[_0x7bbf04]['isAddSuggestion'],_0x1c221f[_0x7bbf04]['isRemoveSuggestion']&&delete _0x1c221f[_0x7bbf04]['isRemoveSuggestion'],_0x1c221f[_0x7bbf04]['isRemoved']&&(_0x1c221f[_0x7bbf04]['isIncorrect']=!0x0));}return _0x1c221f['filter'](_0x23e062=>!_0x23e062['isIncorrect']);}['_makeModelFromTape'](_0x5aad5a,_0x2e1c1d,_0x41fbd2){const _0x4163bb=new gt(),_0x35b673=[],_0x410205=new Map(),_0x5dbe16=this['editor']['model'],_0x5f3afe=_0x5dbe16['schema'],_0x5dea98=[_0x4163bb],_0x4db4b1={},_0x2a44bb={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5ccb88=null;const _0x37aec7=[0x0];for(let _0x17b008=0x0;_0x17b008<_0x5aad5a['length'];_0x17b008++)if('elementStart'===_0x5aad5a[_0x17b008]['type']){_0x5aad5a[_0x17b008]['previousPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7);const _0x4f86df=new ut(_0x5aad5a[_0x17b008]['item']['name'],_0x5aad5a[_0x17b008]['item']['getAttributes']());_0x5dea98[0x0]['_appendChild'](_0x4f86df),_0x37aec7['push'](0x0),_0x5dea98['unshift'](_0x4f86df),_0x5aad5a[_0x17b008]['nextPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7);}else'elementEnd'===_0x5aad5a[_0x17b008]['type']?(_0x5dea98['shift'](),_0x5aad5a[_0x17b008]['previousPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7),_0x37aec7['pop'](),_0x37aec7[_0x37aec7['length']-0x1]++,_0x5aad5a[_0x17b008]['nextPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7)):(_0x5aad5a[_0x17b008]['previousPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7),_0x5ccb88?_0x5ccb88['_data']+=_0x5aad5a[_0x17b008]['item']['data']:_0x5ccb88=new wt(_0x5aad5a[_0x17b008]['item']['data'],_0x5aad5a[_0x17b008]['item']['getAttributes']()),_0x5aad5a[_0x17b008+0x1]&&'text'===_0x5aad5a[_0x17b008+0x1]['type']&&_0x34c056(_0x5ccb88,_0x5aad5a[_0x17b008+0x1]['item'])||(_0x5dea98[0x0]['_appendChild'](_0x5ccb88),_0x5ccb88=null),_0x37aec7[_0x37aec7['length']-0x1]+=_0x5aad5a[_0x17b008]['item']['offsetSize'],_0x5aad5a[_0x17b008]['nextPosition']=_0x5dbe16['createPositionFromPath'](_0x4163bb,_0x37aec7));for(let _0x13ad2e=0x0;_0x13ad2e<_0x5aad5a['length'];_0x13ad2e++){const _0x21d158=_0x5aad5a[_0x13ad2e]['previousPosition'],_0x438b98=_0x5aad5a[_0x13ad2e]['nextPosition'];for(const _0x284503 of _0x5aad5a[_0x13ad2e]['markersStart'])_0x410205['set'](_0x284503,{'start':_0x21d158,'end':null});_0x57a78f('isRemoveSuggestion',_0x13ad2e,_0x21d158,_0x438b98),_0x57a78f('isAddSuggestion',_0x13ad2e,_0x21d158,_0x438b98),_0x57a78f('isRemoved',_0x13ad2e,_0x21d158,_0x438b98),_0x57a78f('isAdded',_0x13ad2e,_0x21d158,_0x438b98);for(const _0x332ea2 of _0x5aad5a[_0x13ad2e]['markersEnd']){_0x410205['get'](_0x332ea2)['end']=_0x438b98;}}for(const [_0x5acc79,_0x576901]of _0x410205){const _0xcfb0f0=this['editor']['model']['createRange'](_0x576901['start'],_0x576901['end']);_0x4163bb['markers']['set'](_0x5acc79,_0xcfb0f0);}return _0x35b673['sort']((_0x2d25e1,_0x3ab507)=>{const _0xd58703=_0x4163bb['markers']['get']('revision:'+_0x2d25e1['id']),_0x16f9fb=_0x4163bb['markers']['get']('revision:'+_0x3ab507['id']);return _0xd58703['start']['isBefore'](_0x16f9fb['start'])?-0x1:_0xd58703['start']['isAfter'](_0x16f9fb['start'])?0x1:_0xd58703['end']['isBefore'](_0x16f9fb['end'])?-0x1:_0xd58703['end']['isAfter'](_0x16f9fb['end'])?0x1:'add'===_0x2d25e1['type']?-0x1:0x1;}),{'root':_0x4163bb,'changes':_0x35b673};function _0x57a78f(_0x4c8304,_0x3088d6,_0x407d01,_0x548ed5){const _0x3f3cea=!!_0x5aad5a[_0x3088d6][_0x4c8304],_0x53177b=_0x3f3cea?_0x5aad5a[_0x3088d6][_0x4c8304]['userId']:null,_0x4469ff=_0x3088d6===_0x5aad5a['length']-0x1,_0x5c2d50=_0x2a44bb[_0x4c8304][0x0],_0x535bc1=_0x5f3afe['isObject'](_0x5aad5a[_0x3088d6]['item']);!_0x4db4b1[_0x4c8304]&&_0x3f3cea?_0x4db4b1[_0x4c8304]={'start':_0x407d01,'tapeItem':_0x5aad5a[_0x3088d6],'userId':_0x53177b,'type':_0x4c8304}:_0x4db4b1[_0x4c8304]&&!_0x3f3cea?(_0x4db4b1[_0x4c8304]['end']=_0x407d01,_0x192c81(_0x4db4b1[_0x4c8304]),_0x4db4b1[_0x4c8304]=null):_0x4db4b1[_0x4c8304]&&_0x3f3cea&&_0x4db4b1[_0x4c8304]['userId']!==_0x53177b&&(_0x4db4b1[_0x4c8304]['end']=_0x407d01,_0x5c2d50&&_0x5c2d50['userId']===_0x4db4b1[_0x4c8304]['userId']||_0x192c81(_0x4db4b1[_0x4c8304]),_0x4db4b1[_0x4c8304]={'start':_0x407d01,'tapeItem':_0x5aad5a[_0x3088d6],'userId':_0x53177b,'type':_0x4c8304}),_0x4db4b1[_0x4c8304]&&_0x535bc1&&('elementStart'!==_0x5aad5a[_0x3088d6]['type']||_0x5c2d50&&_0x5c2d50['userId']===_0x53177b||_0x2a44bb[_0x4c8304]['unshift']({'userId':_0x53177b,'object':_0x5aad5a[_0x3088d6]['item'],'change':_0x4db4b1[_0x4c8304]}),'elementEnd'===_0x5aad5a[_0x3088d6]['type']&&_0x5c2d50&&_0x5c2d50['object']===_0x5aad5a[_0x3088d6]['item']&&(_0x2a44bb[_0x4c8304]['shift'](),_0x4db4b1[_0x4c8304]=_0x5c2d50['change'])),_0x4db4b1[_0x4c8304]&&_0x4469ff&&(_0x4db4b1[_0x4c8304]['end']=_0x548ed5,_0x192c81(_0x4db4b1[_0x4c8304]),_0x4db4b1[_0x4c8304]=null);}function _0x192c81({start:_0x421a88,end:_0x44e282,tapeItem:_0x536aaf,userId:_0x5e392d,type:_0x4b3c21}){const _0xa54d73=_0x536aaf['item'],_0xe269fd=_0x5dbe16['schema']['isBlock'](_0xa54d73)&&!_0x5dbe16['schema']['isLimit'](_0xa54d73),_0x4711cb=_0x421a88['nodeAfter']==_0x44e282['parent']&&_0x44e282['isAtStart'];if(_0xe269fd&&_0x4711cb)return;const _0x141999=_0x5dbe16['createRange'](_0x421a88,_0x44e282),_0x28bfd0=_0x2e1c1d['get'](_0x5e392d),_0x1bcf86=new r({'author':_0x28bfd0,'type':'isAdded'==_0x4b3c21||'isAddSuggestion'==_0x4b3c21?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x4b3c21||'isRemoveSuggestion'==_0x4b3c21},'createdAt':new Date(),'rootName':_0x41fbd2});_0x35b673['push'](_0x1bcf86),_0x4163bb['markers']['set']('revision:'+_0x1bcf86['id'],_0x141999);}function _0x34c056(_0x2e7b72,_0x547c7f){const _0x2c8a73=_0x2e7b72['getAttributes'](),_0x72905b=_0x547c7f['getAttributes']();for(const _0x8a41dc of _0x2c8a73){if(_0x8a41dc[0x1]!==_0x547c7f['getAttribute'](_0x8a41dc[0x0]))return!0x1;_0x72905b['next']();}return _0x72905b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x465b79=>{const _0x16463b=_0x465b79['markerName']['split'](':')[0x1],_0xf78ea7=this['_getChangeFromId'](_0x16463b);if(!_0xf78ea7)return null;const _0x4bb92d='add'==_0xf78ea7['type']?'insertion':'deletion',_0x4c4d8c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4bb92d];return _0xf78ea7['data']['isSuggestion']&&_0x4c4d8c['push']('ck-suggestion-marker-'+_0x4bb92d+'-new'),this['activeChange']==_0xf78ea7&&_0x4c4d8c['push']('ck-suggestion-marker--active'),{'classes':_0x4c4d8c,'attributes':{'data-change-id':_0x16463b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5f75db=>{_0x5f75db['on']('element:pre',(_0x374cdd,_0x56cfc0,_0x4e94f5)=>{const _0x50b423=_0x56cfc0['viewItem']['getChild'](0x0);if(!_0x50b423||!_0x50b423['is']('element','code'))return;if(!_0x4e94f5['consumable']['consume'](_0x50b423,{'attributes':['vid_start','vid_end']}))return;const _0x1abe8f=_0x56cfc0['modelRange']['start']['nodeAfter'];_0x4e94f5['writer']['setAttribute']('vid_start',_0x50b423['getAttribute']('vid_start'),_0x1abe8f),_0x4e94f5['writer']['setAttribute']('vid_end',_0x50b423['getAttribute']('vid_end'),_0x1abe8f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x24e1f0=>{_0x24e1f0['on']('element',(_0x1a5397,_0x734d10,_0x2e2299)=>{if(!_0x2e2299['consumable']['consume'](_0x734d10['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x734d10['modelRange']['isCollapsed'])return;const _0x35b3a9=_0x734d10['modelRange']['start']['nodeAfter'];_0x35b3a9['hasAttribute']('vid_start')||_0x35b3a9['hasAttribute']('vid')||(_0x2e2299['writer']['setAttribute']('vid_start',_0x734d10['viewItem']['getAttribute']('vid_start'),_0x35b3a9),_0x2e2299['writer']['setAttribute']('vid_end',_0x734d10['viewItem']['getAttribute']('vid_end'),_0x35b3a9));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x9a00ae=>_0x9a00ae['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x4d473a,[,_0x2723b9])=>{['vid_start','vid_end','vid']['includes'](_0x2723b9)&&(_0x4d473a['return']=!0x0,_0x4d473a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xe07954=>{_0xe07954['on']('attribute:vid',(_0x857702,_0x12a8cc,_0x559ad9)=>{if('\x20'!=_0x12a8cc['item']['data']||_0x12a8cc['item']['parent']['maxOffset']>0x1)return;if(!_0x559ad9['consumable']['consume'](_0x12a8cc['item'],_0x857702['name']))return;const _0xfdffdf=_0x559ad9['writer'],_0x2aff90=_0x559ad9['mapper']['toViewRange'](_0x12a8cc['range']);_0xfdffdf['wrap'](_0x2aff90,_0xfdffdf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x261e75){const _0x7dfef5=_0x261e75['plugins']['get']('RevisionViewer');return(_0x535c56,_0x546b4f,_0xc032dd)=>{const _0x90b6d5=_0x546b4f['markerName']['split'](':')[0x1],_0x54eb85=_0x7dfef5['_getChangeFromId'](_0x90b6d5);if(!_0x54eb85)return null;const _0x5e6ce0='add'==_0x54eb85['type']?'split':'merge';if(!_0xc032dd['consumable']['test'](_0x546b4f['markerRange'],_0x535c56['name']))return;const _0x5350bb=_0x546b4f['markerRange']['getWalker'](),_0x336443=_0x546b4f['markerRange']['start'],_0x45699e=_0x261e75['model']['schema'];let _0x4554d0=null,_0x335d36=null,_0x5757cb=!0x1,_0x5b7b03=!0x1;for(const _0x8ca724 of _0x5350bb){const _0x59f4e0=_0x8ca724['item'];_0x5757cb=_0x5757cb||_0x45699e['isContent'](_0x59f4e0);const _0x1330b2=_0xc032dd['mapper']['toViewElement'](_0x59f4e0);if(_0x1330b2&&_0x1330b2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x8ca724['type']&&(_0x45699e['isBlock'](_0x59f4e0)&&!_0x45699e['isLimit'](_0x59f4e0)&&(_0x59f4e0['nextSibling']||_0x336443['isAtEnd']?_0x4554d0&&_0x4554d0['parent']==_0x59f4e0||(_0x4554d0=_0x59f4e0,_0x198fd4(_0x8ca724['previousPosition']),_0x5b7b03=!0x0):_0x335d36=_0x335d36||_0x8ca724['previousPosition']));}function _0x198fd4(_0x4c396f){const _0x1a6c0d=_0xc032dd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e6ce0}),_0x2ae574=_0xc032dd['mapper']['toViewPosition'](_0x4c396f);_0x54eb85['data']['isSuggestion']&&_0xc032dd['writer']['addClass']('ck-suggestion-marker-'+_0x5e6ce0+'-new',_0x1a6c0d),_0x7dfef5['activeChange']==_0x54eb85&&_0xc032dd['writer']['addClass']('ck-suggestion-marker--active',_0x1a6c0d),_0xc032dd['writer']['insert'](_0x2ae574,_0x1a6c0d),_0xc032dd['mapper']['bindElementToMarker'](_0x1a6c0d,_0x546b4f['markerName']);}_0x5757cb||_0x5b7b03||!_0x335d36||_0x198fd4(_0x335d36);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x13f401,_0x26db63,_0x5e7b4b)=>{const _0x26e9a5=_0x5e7b4b['mapper']['markerNameToElements'](_0x26db63['markerName']);if(_0x26e9a5){for(const _0x8fecb5 of _0x26e9a5)(_0x8fecb5['hasClass']('ck-suggestion-marker-split')||_0x8fecb5['hasClass']('ck-suggestion-marker-merge'))&&(_0x5e7b4b['mapper']['unbindElementFromMarkerName'](_0x8fecb5,_0x26db63['markerName']),_0x5e7b4b['writer']['remove'](_0x8fecb5));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x44ab63,_0x4ca1eb,_0x258af3)=>{const _0x4f6513=_0x4ca1eb['markerName']['split'](':')[0x1],_0x3ed54e=this['_getChangeFromId'](_0x4f6513);if(!_0x3ed54e)return null;const _0x5b69e5='add'==_0x3ed54e['type']?'split':'merge';if(_0x258af3['consumable']['test'](_0x4ca1eb['markerRange'],_0x44ab63['name']))for(const _0x432fb1 of _0x4ca1eb['markerRange']['getItems']()){if(!_0x432fb1['is']('element','softBreak'))continue;const _0x141e77=_0x258af3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b69e5}),_0x4b4c97=_0x258af3['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x432fb1));_0x3ed54e['data']['isSuggestion']&&_0x258af3['writer']['addClass']('ck-suggestion-marker-'+_0x5b69e5+'-new',_0x141e77),this['activeChange']==_0x3ed54e&&_0x258af3['writer']['addClass']('ck-suggestion-marker--active',_0x141e77),_0x258af3['writer']['insert'](_0x4b4c97,_0x141e77),_0x258af3['mapper']['bindElementToMarker'](_0x141e77,_0x4ca1eb['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x888248=>{for(const _0x526911 of this['editor']['model']['document']['getRootNames']()){const _0x1508e3=this['editor']['model']['document']['getRoot'](_0x526911),_0x87ade0=this['editor']['editing']['view']['document']['getRoot'](_0x526911);if(_0x87ade0){const _0x5c0064=_0x1508e3['getAttribute']('revisionHistoryAttachChange');if(_0x888248['removeAttribute']('data-change-id',_0x87ade0),_0x888248['removeClass']('ck-revision-history-root-add',_0x87ade0),_0x888248['removeClass']('ck-revision-history-root-remove',_0x87ade0),_0x888248['removeClass']('ck-revision-history-root--active',_0x87ade0),_0x5c0064){const _0x389b5d=this['_getChangeFromId'](_0x5c0064);if(!_0x389b5d)return null;_0x888248['setAttribute']('data-change-id',_0x5c0064,_0x87ade0),_0x888248['addClass']('ck-revision-history-root-'+_0x389b5d['type'],_0x87ade0),this['activeChange']==_0x389b5d&&_0x888248['addClass']('ck-revision-history-root--active',_0x87ade0);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x27dac9=>'revision-comment:'+_0x27dac9,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xfe9736=>'revision-suggestion:'+_0xfe9736,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3abd14=>({'name':'suggestion:'+_0x3abd14,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x48cba0=>{const _0x3323a0=_0x48cba0['markerName']['split'](':')[0x1];return'insertion'!=_0x3323a0&&'deletion'!=_0x3323a0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3323a0]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x44aa5d,_0x3d2206,_0x422e89)=>{const _0x33eb32=_0x422e89['mapper']['markerNameToElements'](_0x3d2206['markerName']);if(_0x33eb32){for(const _0x16f4fd of _0x33eb32)_0x16f4fd['is']('uiElement')&&(_0x422e89['mapper']['unbindElementFromMarkerName'](_0x16f4fd,_0x3d2206['markerName']),_0x422e89['writer']['remove'](_0x16f4fd));}},{'priority':'high'});}['_getChangeFromId'](_0x125bcb){return this['_changeIdToChange']['get'](_0x125bcb);}['_getViewForChange'](_0x49c663){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x49c663),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x9e1392,_0x35a77,_0x2902da,_0x463aae)=>{_0x463aae&&this['_balloon']['remove'](_0x463aae),_0x2902da&&(this['_balloon']['add']({'view':_0x2902da,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x214448=this['editor']['editing'],_0x17047b=this['_getChangeFromId'](_0x2902da['changeId']);let _0xf2672f;if(_0x17047b['data']['isOnRoot']){const _0xfda0bc=_0x214448['view']['getDomRoot'](_0x17047b['rootName']);_0xf2672f=Array['from'](_0xfda0bc['getClientRects']());}else{const _0x3f1621=this['editor']['model']['markers']['get']('revision:'+_0x2902da['changeId']);_0xf2672f=Array['from'](_0x214448['mapper']['markerNameToElements'](_0x3f1621['name']))['map'](_0x42b4a0=>_0x214448['view']['domConverter']['mapViewToDom'](_0x42b4a0))['map'](_0xaadea2=>Array['from'](_0xaadea2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xf2672f[0x0];return _0xf2672f['find'](_0x4d3f52=>_0x4d3f52['top']-0x3<=this['_activeViewTarget']['y']&&_0x4d3f52['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4d3f52['left']-0x3<=this['_activeViewTarget']['x']&&_0x4d3f52['right']+0x3>=this['_activeViewTarget']['x'])||_0xf2672f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x58167f,_0x103356,_0x458dfa,_0x1cce7c)=>{this['activeView']=_0x458dfa?this['_getViewForChange'](_0x458dfa):null,this['editor']['model']['change'](()=>{const _0x20d8af=this['editor']['editing'];_0x1cce7c&&(_0x1cce7c['data']['isOnRoot']?_0x20d8af['view']['change'](_0x48145e=>{_0x48145e['removeClass']('ck-revision-history-root--active',_0x20d8af['view']['document']['getRoot'](_0x1cce7c['rootName']));}):_0x20d8af['reconvertMarker']('revision:'+_0x1cce7c['id'])),_0x458dfa&&(_0x458dfa['data']['isOnRoot']?_0x20d8af['view']['change'](_0x1a32d6=>{_0x1a32d6['addClass']('ck-revision-history-root--active',_0x20d8af['view']['document']['getRoot'](_0x458dfa['rootName']));}):_0x20d8af['reconvertMarker']('revision:'+_0x458dfa['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x16231b,_0x3a01f1)=>{if(this['activeChange'])return;const _0x4754e8=this['_findChangeIdFromDomTarget'](_0x3a01f1['target']),_0x129ca7=this['_changeIdToChange']['get'](_0x4754e8);_0x129ca7?(this['_activeViewTarget']={'x':_0x3a01f1['domEvent']['x'],'y':_0x3a01f1['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x129ca7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x211594,_0x30f4b8)=>{const _0x3d72fa=this['_findChangeIdFromDomTarget'](_0x30f4b8['target']),_0x240162=this['_changeIdToChange']['get'](_0x3d72fa);_0x240162?(this['_activeViewTarget']={'x':_0x30f4b8['domEvent']['x'],'y':_0x30f4b8['domEvent']['y']},_0x240162===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x240162):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x52aa5d){do{const _0x3731b9=_0x52aa5d['getAttribute']('data-change-id');if(_0x3731b9)return _0x3731b9;_0x52aa5d=_0x52aa5d['parent'];}while(_0x52aa5d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5dbc48=>{for(const _0x5e44e8 of this['editor']['model']['markers'])_0x5dbc48['removeMarker'](_0x5e44e8);});}}function Z(_0x82d5f,_0x290b8b){return(_0x5adb0b,_0x3acdaf,_0x4e6338)=>{if(!_0x4e6338['consumable']['test'](_0x3acdaf['markerRange'],_0x5adb0b['name']))return;const _0x23588e=_0x3acdaf['markerRange']['getWalker'](),_0x536062=_0x3acdaf['markerRange']['start'],_0x3b7872=_0x82d5f['model']['schema'];let _0x1ce922=null,_0x5515b1=null,_0x2fe262=!0x1,_0x433e16=!0x1;for(const _0x17045c of _0x23588e){const _0x231510=_0x17045c['item'];_0x2fe262=_0x2fe262||_0x3b7872['isContent'](_0x231510);const _0x54a8e8=_0x4e6338['mapper']['toViewElement'](_0x231510);if(_0x54a8e8&&_0x54a8e8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17045c['type']&&(_0x3b7872['isBlock'](_0x231510)&&!_0x3b7872['isLimit'](_0x231510)&&(_0x231510['nextSibling']||_0x536062['isAtEnd']?_0x1ce922&&_0x1ce922['parent']==_0x231510||(_0x1ce922=_0x231510,_0x4c623d(_0x17045c['previousPosition']),_0x433e16=!0x0):_0x5515b1=_0x5515b1||_0x17045c['previousPosition']));}function _0x4c623d(_0x12bc92){const _0x398b2a=_0x4e6338['mapper']['toViewPosition'](_0x12bc92),_0x5d2c75=_0x4e6338['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x290b8b});_0x4e6338['writer']['insert'](_0x398b2a,_0x5d2c75),_0x4e6338['mapper']['bindElementToMarker'](_0x5d2c75,_0x3acdaf['markerName']);}_0x2fe262||_0x433e16||!_0x5515b1||_0x4c623d(_0x5515b1);};}class _t extends _0x36aae4{constructor(_0x1a79d8){super(_0x1a79d8);const _0x28769f=_0x1a79d8['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x28769f,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x28769f,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3bb93f=this['editor'],_0x5d4f63=_0x3bb93f['plugins']['get'](d),_0x28a5ca=_0x5d4f63['isReady']?_0x5d4f63['diff']['newRevisionId']:null;_0x3bb93f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x28a5ca);}['refresh'](){const {isReady:_0x109742,isEnabled:_0x163e37,repository:_0x12c6d3,diff:_0x265a1a}=this['editor']['plugins']['get'](d),_0x46a20c=_0x265a1a&&_0x12c6d3['getLaterVisibleRevision'](_0x265a1a['newRevisionId']);this['isEnabled']=_0x109742&&_0x163e37&&Boolean(_0x46a20c);}}class yt extends _0x36aae4{['_step'];constructor(_0x596097,{direction:_0x3d8a8e}){super(_0x596097);const _0x57a30c=_0x596097['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3d8a8e?0x1:-0x1,this['listenTo'](_0x57a30c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x57a30c,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x57a30c,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2fbe91=this['editor'],_0x50599c=_0x2fbe91['plugins']['get'](d),{isNavigationMode:_0x3a11e9,currentChangeNumber:_0x146544}=_0x50599c;let _0x3bd224;if(_0x50599c['activeChange']=_0x3a11e9?_0x50599c['diff']['changes']['get'](_0x146544+this['_step']):_0x50599c['diff']['changes']['first'],_0x50599c['activeChange']['data']['isOnRoot'])_0x3bd224=_0x2fbe91['editing']['view']['getDomRoot'](_0x50599c['activeChange']['rootName']);else{const _0x311c92=_0x2fbe91['model']['markers']['get']('revision:'+_0x50599c['activeChange']['id']);_0x3bd224=_0x173f60(_0x2fbe91['editing'],_0x311c92);}_0x4616bc({'target':_0x3bd224,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4e84d0,currentChangeNumber:_0x24f3a9,numberOfChanges:_0x31df5d,isReady:_0x2a9456,isEnabled:_0x32917f}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x32917f&&_0x2a9456&&_0x31df5d)&&(!_0x4e84d0||(0x1===this['_step']?_0x24f3a9<_0x31df5d-0x1:_0x24f3a9>0x0));}}class _i extends _0x18cf46{constructor(_0x35984d){super(_0x35984d);const _0x55486f=this['bindTemplate'],_0x473717=new _0x38e8b4(_0x35984d),_0x1b8c7c=new _0x38e8b4(_0x35984d);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',(_0x35858b,_0x20c2dc)=>_0x35858b&&_0x20c2dc>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x41a1d7,_0x527464,_0x349eb8,_0x1fdeb2)=>{if(!_0x41a1d7)return m(_0x35984d,'Loading...');if(!_0x349eb8)return m(_0x35984d,'No\x20changes');const _0x21ff6b=m(_0x35984d,'NUMBER_OF_CHANGES',_0x349eb8);return _0x1fdeb2?m(_0x35984d,'X_OF_Y_CHANGES',[_0x527464+0x1,_0x349eb8]):_0x21ff6b;}),_0x473717['set']({'label':m(_0x35984d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x378756}),_0x1b8c7c['set']({'label':m(_0x35984d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4593b4}),_0x473717['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1b8c7c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x473717['on']('execute',()=>this['fire']('execute','backward')),_0x1b8c7c['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',_0x55486f['if']('_isStatusLabelVisible','ck-hidden',_0x1048a4=>!_0x1048a4)]},'children':[{'text':_0x55486f['to']('isNavigationMode',_0x574297=>_0x574297?m(_0x35984d,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x35984d,'Total')+':\x20')}]},{'text':_0x55486f['to']('_statusText')}]},new _0xdaec5e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x473717,_0x1b8c7c]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x15a41a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x47eca1=this['editor']['editing']['view'];_0x47eca1['change'](_0xd0c828=>{for(const _0x133259 of _0x47eca1['document']['roots'])_0xd0c828['addClass'](ce,_0x133259);});}['hide'](){const _0x144d35=this['editor']['editing']['view'];_0x144d35['change'](_0x4feb92=>{for(const _0x218aff of _0x144d35['document']['roots'])_0x4feb92['removeClass'](ce,_0x218aff);});}}class w extends _0x15a41a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x2efadf=this['editor'],_0x3f2c68=_0x2efadf['plugins']['get'](d),_0x1acba7=_0x2efadf['plugins']['get'](le);_0x2efadf['ui']['componentFactory']['add']('exitToEditing',_0x916b45=>{const _0x63d42f=new _0x38e8b4(_0x916b45);return _0x63d42f['set']({'label':m(_0x916b45,'Back\x20to\x20editing'),'icon':_0x48d0e1,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x63d42f,'execute',()=>{_0x2efadf['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x63d42f;}),_0x2efadf['ui']['componentFactory']['add']('restoreRevision',_0x234c5f=>{const _0xf7fdd1=new _0x38e8b4(_0x234c5f);return _0xf7fdd1['set']({'label':m(_0x234c5f,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xf7fdd1['bind']('isEnabled')['to'](_0x2efadf['commands']['get']('restoreRevision')),this['listenTo'](_0xf7fdd1,'execute',()=>_0x2efadf['execute']('restoreRevision')),_0xf7fdd1;}),_0x2efadf['ui']['componentFactory']['add']('changesNavigation',_0x2a0e6e=>{const _0x4682fd=new _i(_0x2a0e6e),_0xdc5bc4=_0x2efadf['commands']['get']('showPreviousChange'),_0x34a549=_0x2efadf['commands']['get']('showNextChange');return _0x4682fd['bind']('isBackwardNavigationEnabled')['to'](_0xdc5bc4,'isEnabled'),_0x4682fd['bind']('isForwardNavigationEnabled')['to'](_0x34a549,'isEnabled'),_0x4682fd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3f2c68),this['listenTo'](_0x4682fd,'execute',(_0x1d8142,_0xfac168)=>{_0x2efadf['execute']('forward'===_0xfac168?'showNextChange':'showPreviousChange');}),_0x4682fd;}),_0x1acba7['show'](),_0x3f2c68['on']('change:isReady',(_0x4f33be,_0xf95e1a,_0x3e3fc5)=>{_0x3e3fc5?_0x1acba7['hide']():_0x1acba7['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x4257cf,_0x28133e){super(_0x4257cf,_0x28133e);const _0x120a21=this['bindTemplate'];this['set']({'label':m(_0x4257cf,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x4257cf,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x120a21['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 _0x506cc5=this['fieldView']['element'];this['_tooltipString']=_0x506cc5['scrollWidth']>_0x506cc5['clientWidth']&&_0x506cc5['value']||'';}}class oi extends _0x18cf46{constructor(_0x3f2a6f,_0x160651,_0x1213c5){super(_0x3f2a6f);const _0x16cf8b=new _0x298fb4();_0x16cf8b['set']({'content':_0x112fe5,'viewBox':'0\x200\x2011\x2010'});const _0x4e62ea=['ck','ck-revision-history-sidebar__revision-author'];_0x1213c5&&_0x4e62ea['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4e5b8b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x3f2a6f,_0x1213c5?'Revision\x20creator':'Revision\x20author')},'children':[_0x16cf8b,_0x160651['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x4e62ea},'children':_0x4e5b8b});}}function ni(_0x3a7981,_0x1bf12a){const _0x4b6e75=_0x3a7981['bindTemplate'],_0x5443f5=_0x3a7981['locale'],_0x1cb7b5=_0x2cc8a3(_0x5443f5);_0x1cb7b5['panelPosition']='sw';const _0x351c50=function(_0x18509d,_0x1d71ec){const _0x2c1693=function(_0x5654f6,_0x3353c0){const _0x2ce424=_0x5654f6['locale'],_0x3c2153={'Compare\x20against\x20selected':m(_0x2ce424,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x2ce424,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x2ce424,'Restore\x20this\x20revision')};return _0x3353c0['map'](_0x8b1a2=>{const _0x56ba6d=_0x3c2153[_0x8b1a2['name']];return _0x56ba6d&&_0x56ba6d!==_0x8b1a2['name']&&(_0x8b1a2['name']=_0x56ba6d),_0x8b1a2;});}(_0x18509d,_0x1d71ec),_0x49ea3e=new _0x316ce2();for(const _0x5b1be5 of _0x2c1693){const _0x4e5422={'type':'button','model':new to({'label':_0x5b1be5['name'],'class':_0x5b1be5['class'],'withText':!0x0,'role':'menuitem','_action':_0x5b1be5['action']})};_0x4e5422['model']['bind']('isEnabled')['to'](_0x18509d,'isActionsDropdownOpen',_0x46df34=>'function'!=typeof _0x5b1be5['isEnabled']||(!_0x46df34||_0x5b1be5['isEnabled'](_0x18509d))),_0x49ea3e['add'](_0x4e5422);}return _0x49ea3e;}(_0x3a7981,_0x1bf12a);return _0x3a7981['bind']('isActionsDropdownOpen')['to'](_0x1cb7b5,'isOpen'),_0x1cb7b5['buttonView']['set']({'label':m(_0x5443f5,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x208eb8}),_0x1cb7b5['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4b6e75['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4b6e75['to'](_0x34c4c0=>_0x34c4c0['stopPropagation']())}}),_0x1cb7b5['on']('execute',_0x4bd93a=>{_0x3a7981['isReady']&&'function'==typeof _0x4bd93a['source']['_action']&&_0x4bd93a['source']['_action'](_0x3a7981);}),_0x40b77b(_0x1cb7b5,_0x351c50,{'role':'menu'}),_0x1cb7b5['listenTo'](_0x3a7981,'change:isActionsDropdownOpen',(_0x251664,_0x7e35fe,_0x5ef9e6)=>{if(_0x5ef9e6)for(const _0x114da1 of _0x1cb7b5['listView']['items']){const _0x1d60ee=_0x114da1['children']['first'],_0x12a388=_0x1bf12a['find'](_0x29d5d8=>_0x29d5d8['action']===_0x1d60ee['_action'])['isVisible'];_0x114da1['isVisible']=void 0x0===_0x12a388||_0x12a388(_0x3a7981);}}),_0x1cb7b5;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x58a203(_0x18cf46){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2cbe1a,_0x1528ed,_0x330f97,_0x3f8a93){super(_0x2cbe1a);const _0x101a50=this['bindTemplate'],_0x109881=function(_0x3e4435,_0x5bba7d){const _0x27bb8c=Array['from'](_0x5bba7d['authors'])['filter'](_0x16a406=>_0x16a406!=_0x5bba7d['creator']);return _0x5bba7d['creator']&&_0x27bb8c['unshift'](_0x5bba7d['creator']),_0x27bb8c['map'](_0x45ecac=>new oi(_0x3e4435,_0x45ecac,_0x45ecac==_0x5bba7d['creator']));}(_0x2cbe1a,_0x1528ed);this['id']=_0x1528ed['id'],this['_revision']=_0x1528ed,this['_requireRevisionName']=_0x3f8a93,this['bind']('name','createdAt')['to'](_0x1528ed),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x158a0e=>{return _0x138a94=_0x2cbe1a['uiLanguage'],(_0x3372f9=_0x158a0e)['toLocaleDateString'](_0x138a94,{'month':'long','day':'numeric'})+',\x20'+_0x3372f9['toLocaleTimeString'](_0x138a94,{'hour':'numeric','minute':'numeric'});var _0x138a94,_0x3372f9;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x2cbe1a,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x7d4177=>_0x7d4177||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4bfb75,_0x47f62c)=>_0x4bfb75&&_0x47f62c),this['revisionActionsView']=_0x330f97&&_0x330f97['length']?ni(this,_0x330f97):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x101a50['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x101a50['if']('isEnabled','ck-disabled',_0xa8ead1=>!_0xa8ead1),_0x101a50['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x101a50['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x101a50['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':_0x101a50['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':_0x109881}]},this['revisionActionsView']],'on':{'click':_0x101a50['to'](_0x14523f=>{_0x14523f['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4a55ea=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4a55ea,'change',()=>{this['_requireRevisionName']&&!_0x4a55ea['value']||this['fire']('setName',{'id':this['id'],'name':_0x4a55ea['value']}),_0x4a55ea['value']||(_0x4a55ea['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x5e6ccc,_0x38147d){const _0x19e0fe=_0x537d06['fromJSDate'](_0x5e6ccc)['setLocale'](_0x38147d),_0x1cc0ed=_0x537d06['local'](),_0x53a4f0=_0x1cc0ed['minus']({'days':0x1})['startOf']('day');let _0x589dab,_0x3fd453;return _0x19e0fe['hasSame'](_0x1cc0ed,'day')?(_0x589dab=_0x19e0fe['startOf']('day')['toJSDate'](),_0x3fd453=_0x19e0fe['toRelativeCalendar']()):_0x19e0fe['hasSame'](_0x53a4f0,'day')?(_0x589dab=_0x53a4f0['toJSDate'](),_0x3fd453=_0x19e0fe['toRelativeCalendar']()):_0x19e0fe['hasSame'](_0x1cc0ed,'week')?(_0x589dab=_0x19e0fe['startOf']('week')['toJSDate'](),_0x3fd453=_0x19e0fe['weekdayLong']||''):_0x19e0fe['hasSame'](_0x1cc0ed,'year')?(_0x589dab=_0x19e0fe['startOf']('month')['toJSDate'](),_0x3fd453=_0x19e0fe['monthLong']||''):(_0x589dab=_0x19e0fe['startOf']('year')['toJSDate'](),_0x3fd453=String(_0x19e0fe['year'])),{'startDate':_0x589dab,'localizedPeriodName':_0x3fd453};}class mi extends _0x18cf46{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3f50ba,_0x1a1111,_0x11baeb,_0x5a40b1){super(_0x3f50ba);const _0xfc4ed0=vi(_0x1a1111,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1a1111,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x11baeb,this['_requireRevisionName']=_0x5a40b1,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':_0xfc4ed0}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x27392a){const _0x521648=new ai(this['locale'],_0x27392a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x521648);}['removeRevision'](_0x5e6d97){const _0x179407=this['revisionViews']['find'](_0x4b2690=>_0x4b2690['id']===_0x5e6d97['id']);this['revisionViews']['remove'](_0x179407);}}class is extends _0x18cf46{constructor(_0x47684b){super(_0x47684b);const _0x4dc77c=new _0x298fb4();_0x4dc77c['content']=_0xe4f57,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4dc77c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x47684b,'Revision\x20history')]}]});}}class di extends _0x18cf46{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x25ca71,_0x576263,_0x1af5b9,_0x143338){super(_0x25ca71);const _0x3cb768=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x576263,this['_revisionActions']=_0x1af5b9,this['_requireRevisionName']=_0x143338,this['on']('select',(_0xbaaaba,_0x40ed9f)=>{this['fire']('revisionSelected',_0x40ed9f);}),this['on']('setName',(_0x399026,_0xedbb3e)=>{this['fire']('revisionSetName',_0xedbb3e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new is(_0x25ca71),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3cb768['if']('isEnabled','ck-disabled',_0x3b8078=>!_0x3b8078)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0xaab39e of this['_revisions'])this['_addRevision'](_0xaab39e);this['_revisions']['on']('add',(_0x4cf218,_0x22eee4)=>{this['_addRevision'](_0x22eee4);}),this['_revisions']['on']('remove',(_0x3cfdc1,_0x365596)=>{this['_removeRevision'](_0x365596);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3c22f2=>_0x3c22f2['revisionViews']['map'](_0x2822a6=>_0x2822a6))['flat']();}['selectRevision'](_0x512091){for(const _0x540a2b of this['revisionViews'])_0x512091&&_0x512091['id']===_0x540a2b['id']?_0x540a2b['select']():_0x540a2b['deselect']();}['highlightRevisions'](_0x5e39ce){for(const _0x33bd94 of this['revisionViews'])_0x5e39ce['some'](({id:_0x35f45a})=>_0x35f45a===_0x33bd94['id'])?_0x33bd94['highlight']():_0x33bd94['unhighlight']();}['_addRevision'](_0x534026){const _0x40ad7c=vi(_0x534026['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x2ccc66=this['timePeriodViews']['get'](0x0);_0x2ccc66&&_0x2ccc66['startDate']['getTime']()===_0x40ad7c['getTime']()||(_0x2ccc66=new mi(this['locale'],_0x40ad7c,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x2ccc66)),_0x2ccc66['addRevision'](_0x534026);}['_removeRevision'](_0x76a3ab){const _0x4c4d4d=vi(_0x76a3ab['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x4c4d4d)['removeRevision'](_0x76a3ab);}['_getTimePeriodViewByStartDate'](_0xe876dd){return this['timePeriodViews']['find'](_0x131665=>_0x131665['startDate']['getTime']()===_0xe876dd['getTime']());}}class g extends _0x15a41a{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x418ed6,uid as _0x3845a3,Collection as _0x564a8e,logWarning as _0x2253fc,FocusTracker as _0x3258fa,KeystrokeHandler as _0x11d7cc,scrollViewportToShowTarget as _0x12b6a1,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x36ac11}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5189cc,set as _0x1cac00,unset as _0xed7e27,isEqual as _0x5e3b52}from'es-toolkit/compat';import{Plugin as _0x3b516d,PendingActions as _0x243f62,Command as _0x17e1ed,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xbb2f2a,getMarkerDomElement as _0x52f2ad,ConfirmMixin as _0x406abf,sanitizeEditorConfig as _0x1fc807}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x7e311e,Element as ut,Range as ft,ViewUIElement as _0x336c2e,ViewRawElement as _0x240c22,ViewEmptyElement as _0x2215d9,ViewAttributeElement as _0x541300,ViewContainerElement as _0x31bf21,Position as vt,ViewText as _0xdcc05a,ViewElement as _0x42db45,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x23d429,IconChevronUp as _0x1d3576,IconChevronDown as _0x2bbc5b,IconUndo as _0x5c37a4,IconUser as _0x73fe84,IconThreeVerticalDots as _0x53b20c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x366255,injectCssTransitionDisabler as ts,submitHandler as _0xd80631,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x54cd08,ListView as _0x2952ac,ListItemView as te,ButtonView as _0x5c816d,MenuBarMenuView as _0x2ea996,MenuBarMenuListView as _0x2412a7,MenuBarMenuListItemView as _0x18c3ab,MenuBarMenuListItemButtonView as _0x3fe93b,ContextualBalloon as _0x5204d8,ToolbarSeparatorView as _0x20ddf4,IconView as _0x2014e5,addListToDropdown as _0x855b21,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x13dab4}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x418ed6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2fb474){super(),this['id']=_0x2fb474['id']||_0x3845a3(),this['creator']=_0x2fb474['creator']||null,this['authors']=_0x2fb474['authors']||[],this['diffData']=_0x2fb474['diffData']||null,this['toVersion']=_0x2fb474['toVersion']||0x0,this['fromVersion']=_0x2fb474['fromVersion']||0x0,this['set']('name',_0x2fb474['name']||''),this['set']('createdAt',_0x2fb474['createdAt']||new Date()),this['set']('attributes',_0x2fb474['attributes']||{});}['setName'](_0x765534){this['_update']({'name':_0x765534});}['setAttribute'](_0x5bce67,_0x5d6539){const _0x71cd63=_0x5189cc(this['attributes']);_0x1cac00(_0x71cd63,_0x5bce67,_0x5d6539),this['_update']({'attributes':_0x71cd63});}['removeAttribute'](_0xdc462e){const _0xacedcf=_0x5189cc(this['attributes']);_0xed7e27(_0xacedcf,_0xdc462e),this['_update']({'attributes':_0xacedcf});}['_update'](_0x2c6f7c,_0x3c4b73=!0x1){let _0x226a8f=!0x1;const _0x221314={'id':this['id']},_0x4ec03c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x321f58 of _0x4ec03c){const _0x26f570=_0x2c6f7c[_0x321f58];void 0x0!==_0x26f570&&_0x26f570!==this[_0x321f58]&&(this[_0x321f58]=_0x26f570,_0x221314[_0x321f58]=_0x26f570,_0x226a8f=!0x0);}_0x226a8f&&(_0x221314['authors']&&(_0x221314['authorsIds']=_0x221314['authors']['map'](_0x5c1039=>_0x5c1039['id']),delete _0x221314['authors']),this['fire']('_update',_0x221314,_0x3c4b73));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x226b28=>_0x226b28['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3b516d{['_revisions'];static get['requires'](){return[_0xbb2f2a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x180249){super(_0x180249),this['_revisions']=new _0x564a8e();}['afterInit'](){!async function(_0x1c00ca){const _0x4473e4=_0x299a92([0x51,0x32,0x4f,0x49,0x53,0x45,0x56,0x57,0x31,0x34,0x76,0x4b,0x39,0x5a,0x58,0x54,0x62,0x68,0x63,0x36,0x43,0x69,0x55,0x46,0x77,0x7a,0x4a,0x65,0x61,0x4e,0x38,0x70,0x72,0x78,0x73,0x48,0x67,0x4d,0x71,0x64,0x66,0x4c,0x79,0x74,0x30,0x37,0x59,0x6e,0x41,0x44,0x47,0x6b,0x52,0x6c,0x75,0x6f,0x6d,0x33,0x42,0x50,0x35,0x6a]),_0x1a35f3=0xeb829,_0x1bc9f1=0x332712b8,_0x98d5f9=0x33207280^_0x1bc9f1,_0x3a07c1=window[_0x299a92([0x44,0x61,0x74,0x65])][_0x299a92([0x6e,0x6f,0x77])](),_0x2b06f2=_0x1c00ca[_0x299a92([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2de357=new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14c878=>{_0x2b06f2[_0x299a92([0x6f,0x6e,0x63,0x65])](_0x299a92([0x72,0x65,0x61,0x64,0x79]),_0x14c878);}),_0x4d7f7e={[_0x299a92([0x6b,0x74,0x79])]:_0x299a92([0x45,0x43]),[_0x299a92([0x75,0x73,0x65])]:_0x299a92([0x73,0x69,0x67]),[_0x299a92([0x63,0x72,0x76])]:_0x299a92([0x50,0x2d,0x32,0x35,0x36]),[_0x299a92([0x78])]:_0x299a92([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]),[_0x299a92([0x79])]:_0x299a92([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]),[_0x299a92([0x61,0x6c,0x67])]:_0x299a92([0x45,0x53,0x32,0x35,0x36])},_0x423a3c=_0x2b06f2[_0x299a92([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x299a92([0x67,0x65,0x74])](_0x299a92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7434a6(){let _0x11b82b,_0x344897=null,_0x3d64e0=null;try{if(_0x423a3c==_0x299a92([0x47,0x50,0x4c]))return _0x299a92([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11b82b=_0x579800(),!_0x11b82b)return _0x299a92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11b82b[_0x299a92([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d64e0=_0x25dd7a(_0x11b82b[_0x299a92([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11b82b[_0x299a92([0x6a,0x74,0x69])])),await _0x4550a3()?_0x1da1b1()?_0x105509()?_0x299a92([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1119f3()?(_0x11b82b[_0x299a92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x299a92([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x344897=_0x765d77(_0x299a92([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11b82b[_0x299a92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x299a92([0x74,0x72,0x69,0x61,0x6c])&&(_0x344897=_0x765d77(_0x299a92([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d99d5()):_0x299a92([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x299a92([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x299a92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46ba94){return _0x299a92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x105509(){const _0x1641b0=[_0x299a92([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x299a92([0x74,0x72,0x69,0x61,0x6c])][_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11b82b[_0x299a92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a07c1/0x3e8:0xe10*_0x98d5f9;return _0x11b82b[_0x299a92([0x65,0x78,0x70])]<_0x1641b0;}function _0x1da1b1(){const _0x5a1244=_0x11b82b[_0x299a92([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5a1244)return!0x1;if(_0x5a1244[_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299a92([0x2a])))return!0x0;if(_0x5a1244[_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299a92([0x52,0x48])))return!0x0;if(_0x5a1244[_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299a92([0x52,0x52,0x48]))){if(_0x91efee())return!0x0;if(_0x248c00()||_0x483654())return!0x0;}return!0x1;}function _0x1119f3(){const _0x3cd0e4=_0x11b82b[_0x299a92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3cd0e4||0x0==_0x3cd0e4[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a4421}=new URL(window[_0x299a92([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3cd0e4[_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a4421))return!0x0;const _0x7f98cc=_0x4a4421[_0x299a92([0x73,0x70,0x6c,0x69,0x74])](_0x299a92([0x2e]));return _0x3cd0e4[_0x299a92([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bfbb9=>_0x2bfbb9[_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299a92([0x2a])))[_0x299a92([0x6d,0x61,0x70])](_0x2a04d1=>_0x2a04d1[_0x299a92([0x73,0x70,0x6c,0x69,0x74])](_0x299a92([0x2e])))[_0x299a92([0x73,0x6f,0x6d,0x65])](_0x52f2dc=>_0x7f98cc[_0x299a92([0x65,0x76,0x65,0x72,0x79])]((_0x26fd16,_0x12e622)=>_0x52f2dc[_0x12e622]===_0x26fd16||_0x52f2dc[_0x12e622]===_0x299a92([0x2a])));}function _0x2d99d5(){return _0x344897&&_0x3d64e0?new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6af7f8,_0x349680)=>{_0x344897[_0x299a92([0x74,0x68,0x65,0x6e])](_0x6af7f8,_0x349680),_0x3d64e0[_0x299a92([0x74,0x68,0x65,0x6e])](_0x59760d=>{_0x59760d!=_0x299a92([0x56,0x61,0x6c,0x69,0x64])&&_0x6af7f8(_0x59760d);},_0x349680);}):_0x344897||_0x3d64e0||_0x299a92([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25dd7a(_0x42c36b,_0x3456ad){return new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d4c20=>{if(_0x1192b3())return _0x3d4c20(_0x299a92([0x56,0x61,0x6c,0x69,0x64]));_0x4f6ca0(),_0x2b06f2[_0x299a92([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x299a92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e6db0=!0x1;const _0x29e91f=_0x3845a3();function _0x6c76a6(_0x4b299c){return!!_0x4b299c&&(typeof _0x4b299c===_0x299a92([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b299c===_0x299a92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b299c[_0x299a92([0x74,0x68,0x65,0x6e])]===_0x299a92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b299c[_0x299a92([0x63,0x61,0x74,0x63,0x68])]===_0x299a92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44295c(_0xabaa6a){_0x514c77(_0xabaa6a)[_0x299a92([0x74,0x68,0x65,0x6e])](_0x34aff0=>{if(!_0x34aff0||_0x34aff0[_0x299a92([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x299a92([0x6f,0x6b]))return _0x299a92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5258a6(_0x169a6a(_0x29e91f+_0x3456ad))!=_0x34aff0[_0x299a92([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x299a92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x299a92([0x56,0x61,0x6c,0x69,0x64]);})[_0x299a92([0x74,0x68,0x65,0x6e])](_0x531b9a=>(_0xbebeb7(),_0x531b9a),()=>{const _0xe2458c=_0x342adb();return null==_0xe2458c?(_0xbebeb7(),_0x299a92([0x56,0x61,0x6c,0x69,0x64])):_0x299a92(_0x3a07c1-_0xe2458c>(0x172b96b8^_0x1bc9f1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x299a92([0x74,0x68,0x65,0x6e])](_0x3d4c20)[_0x299a92([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d4c20(_0x299a92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cef71=0x3311fc38^_0x1bc9f1;function _0xbebeb7(){const _0x32ea23=_0x299a92([0x6c,0x6c,0x63,0x74,0x2d])+_0x5258a6(_0x169a6a(_0x42c36b)),_0x2af941=_0x4dbf12(_0x5258a6(window[_0x299a92([0x4d,0x61,0x74,0x68])][_0x299a92([0x63,0x65,0x69,0x6c])](_0x3a07c1/_0x2cef71)));window[_0x299a92([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x299a92([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32ea23,_0x2af941);}function _0x342adb(){const _0x42189b=_0x299a92([0x6c,0x6c,0x63,0x74,0x2d])+_0x5258a6(_0x169a6a(_0x42c36b)),_0xe84fb5=window[_0x299a92([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x299a92([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42189b);return _0xe84fb5?window[_0x299a92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dbf12(_0xe84fb5),0x10)*_0x2cef71:null;}function _0x514c77(_0x45ff1a){return new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c2150,_0x155868)=>{_0x45ff1a[_0x299a92([0x74,0x68,0x65,0x6e])](_0x4c2150,_0x155868),window[_0x299a92([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x155868,0x3326c678^_0x1bc9f1);});}}_0x2b06f2[_0x299a92([0x6f,0x6e])](_0x299a92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3bb18b,_0x4b8371)=>{if(_0x4b8371[0x0]!=_0x42c36b)return _0x3d4c20(_0x299a92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b8371[0x1]={..._0x4b8371[0x1],[_0x299a92([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29e91f};},{[_0x299a92([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x299a92([0x68,0x69,0x67,0x68])}),_0x2b06f2[_0x299a92([0x6f,0x6e])](_0x299a92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd4f83c=>{_0x6c76a6(_0xd4f83c[_0x299a92([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e6db0=!0x0,_0x44295c(_0xd4f83c[_0x299a92([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x299a92([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x299a92([0x6c,0x6f,0x77])}),_0x2de357[_0x299a92([0x74,0x68,0x65,0x6e])](()=>{_0x3e6db0||_0x3d4c20(_0x299a92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1192b3(){return _0x2b06f2[_0x299a92([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x299a92([0x76,0x69,0x65,0x77])][_0x299a92([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x299a92([0x61,0x75,0x74,0x6f]);}function _0x4f6ca0(){_0x2b06f2[_0x299a92([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x299a92([0x76,0x69,0x65,0x77])][_0x299a92([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x299a92([0x61,0x75,0x74,0x6f]);}}function _0x765d77(_0x56c4d3){const _0x2429fa=[new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7fa4cd=>setTimeout(_0x7fa4cd,0x332e2c74^_0x1bc9f1)),_0x2de357[_0x299a92([0x74,0x68,0x65,0x6e])](()=>new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe39c11=>{const _0x262fec=0x332712bf^_0x1bc9f1,_0x1b8668=_0x1c00ca[_0x299a92([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x137cd4(){_0x1b8668[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x262fec&&_0xe39c11();}_0x137cd4(),_0x1b8668[_0x299a92([0x6f,0x6e])](_0x299a92([0x61,0x64,0x64]),_0x137cd4);})),new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261451=>{function _0x2250e8(){for(const _0x2b55d6 in window)if(window[_0x299a92([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x299a92([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2b55d6))&&window[_0x2b55d6]==_0x1a35f3)return _0x261451();_0x2b06f2[_0x299a92([0x73,0x74,0x61,0x74,0x65])]!=_0x299a92([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x299a92([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2250e8,0x33270130^_0x1bc9f1);}_0x4a56c7(_0x299a92([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2250e8();})];return window[_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x299a92([0x72,0x61,0x63,0x65])](_0x2429fa)[_0x299a92([0x74,0x68,0x65,0x6e])](()=>_0x56c4d3);}async function _0x565a6d(){if(await _0x2de357,_0x4a56c7(_0x299a92([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1328a0=_0x1c00ca[_0x299a92([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x55717b=_0x1c00ca[_0x299a92([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])](_0x1328a0[_0x299a92([0x69,0x64])]),_0x18b365=_0x46e926(_0x299a92([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x18b365[_0x299a92([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1328a0['id'],_0x55717b?_0x55717b['id']:null,!0x0),_0x18b365[_0x299a92([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x299a92([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x18b365[_0x299a92([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x18b365[_0x299a92([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5d29c1,void(_0x18b365[_0x299a92([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5d29c1);}if(_0x4a56c7(_0x299a92([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5403f7=_0x46e926(_0x299a92([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5403f7[_0x299a92([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x299a92([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5403f7[_0x299a92([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5403f7[_0x299a92([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5d29c1,_0x5403f7[_0x299a92([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5d29c1;}_0x2b06f2[_0x299a92([0x6d,0x6f,0x64,0x65,0x6c])][_0x299a92([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d29c1,_0x2b06f2[_0x299a92([0x6d,0x6f,0x64,0x65,0x6c])][_0x299a92([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d29c1,_0x2b06f2[_0x299a92([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x299a92([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x91efee(){return _0x4a56c7(_0x299a92([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x46e926(_0x299a92([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x299a92([0x73,0x74,0x61,0x74,0x65])]==_0x299a92([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x248c00(){return _0x4a56c7(_0x299a92([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 _0x483654(){return _0x4a56c7(_0x299a92([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f13c3(_0x493d33){const _0x4ab54f=_0x1db5e2();_0x2b06f2[_0x4ab54f]=_0x299a92([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])+_0x493d33,_0x493d33[_0x299a92([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x299a92([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1db5e2()]=_0x1a35f3),_0x493d33!=_0x299a92([0x56,0x61,0x6c,0x69,0x64])&&_0x565a6d();}function _0x1db5e2(){const _0x4b48d1=window[_0x299a92([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x299a92([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x299a92([0x6e,0x6f,0x77])]())[_0x299a92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x299a92([0x2e]),'');let _0x42165a=_0x299a92([0x51]);for(let _0x28aa49=0x0;_0x28aa49<_0x4b48d1[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28aa49+=0x2){let _0x5d3c44=window[_0x299a92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b48d1[_0x299a92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28aa49,_0x28aa49+0x2));_0x5d3c44>=_0x4473e4[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d3c44-=_0x4473e4[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42165a+=_0x4473e4[_0x5d3c44];}return _0x42165a;}function _0x579800(){const _0x2ca018=_0x423a3c[_0x299a92([0x73,0x70,0x6c,0x69,0x74])](_0x299a92([0x2e]));if(0x3!=_0x2ca018[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e641c(_0x2ca018[0x1]);function _0x2e641c(_0x331bbe){const _0x13b081=_0x2b9234(_0x331bbe);return _0x13b081&&_0x525a4e()?_0x13b081:null;function _0x525a4e(){const _0x4bd1a5=_0x13b081[_0x299a92([0x6a,0x74,0x69])],_0xc7731a=window[_0x299a92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bd1a5[_0x299a92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bd1a5[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49771f={..._0x13b081,[_0x299a92([0x6a,0x74,0x69])]:_0x4bd1a5[_0x299a92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4bd1a5[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49771f[_0x299a92([0x76,0x63])],_0x169a6a(_0x49771f)==_0xc7731a;}}}async function _0x4550a3(){let _0x11026c=!0x0;try{const _0xcb4053=_0x423a3c[_0x299a92([0x73,0x70,0x6c,0x69,0x74])](_0x299a92([0x2e])),[_0x419be6,_0x5a2b6d,_0x253c7e]=_0xcb4053;return _0x19cb59(_0x419be6),await _0x66c084(_0x419be6,_0x5a2b6d,_0x253c7e),_0x11026c;}catch(_0x5a5020){return!0x1;}function _0x19cb59(_0xf8a727){const _0x53c7d0=_0x2b9234(_0xf8a727);_0x53c7d0&&_0x53c7d0[_0x299a92([0x61,0x6c,0x67])]==_0x299a92([0x45,0x53,0x32,0x35,0x36])||(_0x11026c=!0x1);}async function _0x66c084(_0x17ea77,_0x184fff,_0x5aefe2){const _0x2368c4=window[_0x299a92([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x299a92([0x66,0x72,0x6f,0x6d])](_0x4539c7(_0x5aefe2),_0xab2af8=>_0xab2af8[_0x299a92([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f3ea6=new window[(_0x299a92([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x299a92([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17ea77+_0x299a92([0x2e])+_0x184fff),_0x4a0ff7=window[_0x299a92([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x299a92([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a0ff7)return;const _0x1e0a01=await _0x4a0ff7[_0x299a92([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x299a92([0x6a,0x77,0x6b]),_0x4d7f7e,{[_0x299a92([0x6e,0x61,0x6d,0x65])]:_0x299a92([0x45,0x43,0x44,0x53,0x41]),[_0x299a92([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x299a92([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x299a92([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a0ff7[_0x299a92([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x299a92([0x6e,0x61,0x6d,0x65])]:_0x299a92([0x45,0x43,0x44,0x53,0x41]),[_0x299a92([0x68,0x61,0x73,0x68])]:{[_0x299a92([0x6e,0x61,0x6d,0x65])]:_0x299a92([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e0a01,_0x2368c4,_0x2f3ea6)||(_0x11026c=!0x1);}}function _0x2b9234(_0x50336f){return _0x50336f[_0x299a92([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x299a92([0x65,0x79]))?JSON[_0x299a92([0x70,0x61,0x72,0x73,0x65])](_0x4539c7(_0x50336f)):null;}function _0x4539c7(_0x674478){return window[_0x299a92([0x61,0x74,0x6f,0x62])](_0x674478[_0x299a92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x299a92([0x2b]))[_0x299a92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x299a92([0x2f])));}function _0x169a6a(_0xaef4fb){let _0x39e56e=0x1505;function _0xfc7933(_0x4fcb1a){for(let _0xc9462=0x0;_0xc9462<_0x4fcb1a[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc9462++){const _0x1349ec=_0x4fcb1a[_0x299a92([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc9462);_0x39e56e=(_0x39e56e<<0x5)+_0x39e56e+_0x1349ec,_0x39e56e&=_0x39e56e;}}function _0x18dcf0(_0x323dac){Array[_0x299a92([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x323dac)?_0x323dac[_0x299a92([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18dcf0):_0x323dac&&typeof _0x323dac==_0x299a92([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x299a92([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x323dac)[_0x299a92([0x73,0x6f,0x72,0x74])]()[_0x299a92([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3cd08d,_0x27fe51])=>{_0xfc7933(_0x3cd08d),_0x18dcf0(_0x27fe51);}):_0xfc7933(window[_0x299a92([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x323dac));}return _0x18dcf0(_0xaef4fb),_0x39e56e>>>0x0;}function _0x5258a6(_0xed7550){return _0xed7550[_0x299a92([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x299a92([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x299a92([0x30]));}function _0x4dbf12(_0x463551){return _0x463551[_0x299a92([0x73,0x70,0x6c,0x69,0x74])]('')[_0x299a92([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x299a92([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a56c7(_0x2b0c62){return _0x2b06f2[_0x299a92([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x299a92([0x68,0x61,0x73])](_0x2b0c62);}function _0x46e926(_0x3290e){return _0x2b06f2[_0x299a92([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x299a92([0x67,0x65,0x74])](_0x3290e);}function _0x5d29c1(){}function _0x299a92(_0x49f93c){return _0x49f93c['map'](_0x372a54=>String['fromCharCode'](_0x372a54))['join']('');}_0x4f13c3(await _0x7434a6());}(this);}['createRevision'](_0x106fd1){const _0x38e0d0=this['editor']['plugins']['get']('Users');return new h({'id':_0x106fd1['id'],'name':_0x106fd1['name'],'creator':_0x106fd1['creatorId']?_0x38e0d0['getUser'](_0x106fd1['creatorId']):null,'diffData':_0x106fd1['diffData']||_0x106fd1['data'],'authors':_0x106fd1['authorsIds']['map'](_0x3bc2c1=>_0x38e0d0['getUser'](_0x3bc2c1)),'createdAt':new Date(_0x106fd1['createdAt']),'attributes':_0x106fd1['attributes'],'fromVersion':_0x106fd1['fromVersion'],'toVersion':_0x106fd1['toVersion']});}['addRevision'](_0x51c396,_0x106b5a=0x0){this['_revisions']['add'](_0x51c396,_0x106b5a);}['getRevision'](_0x5efdd9){return this['_revisions']['get'](_0x5efdd9);}['getRevisions'](_0x2b0aa6={'toJSON':!0x1}){const _0xfc0259=Array['from'](this['_revisions']);return _0xfc0259['reverse'](),_0x2b0aa6['toJSON']?_0xfc0259['map'](_0x2b6439=>_0x2b6439['toJSON']()):_0xfc0259;}['getIndex'](_0x2b453e){return this['_revisions']['getIndex'](_0x2b453e);}['getEarlierVisibleRevision'](_0x29715a){const [,_0x546ae6]=this['getRevisionsIterator'](_0x29715a,{'direction':'earlier'});return _0x546ae6;}['getLaterVisibleRevision'](_0x1ff131){const [,_0x296c60]=this['getRevisionsIterator'](_0x1ff131,{'direction':'later'});return _0x296c60;}['getRevisionsInDiff'](_0x56cf57){const _0x469b75=[];for(const _0xe0984 of this['getRevisionsIterator'](_0x56cf57['newRevisionId']))if(_0x469b75['push'](_0xe0984),_0xe0984['id']===_0x56cf57['oldRevisionId'])break;return _0x469b75;}*['getRevisionsIterator'](_0x3a66ff,{direction:_0x583a33='earlier',filter:_0x37883b=()=>!0x0}={}){const _0x10beab='earlier'===_0x583a33?0x1:-0x1;let _0x4c9ed6=this['_revisions']['get'](_0x3a66ff),_0x3a362f=this['getIndex'](_0x4c9ed6);for(yield _0x4c9ed6;_0x4c9ed6;){if(_0x3a362f+=_0x10beab,_0x4c9ed6=this['getRevision'](_0x3a362f),!_0x4c9ed6)return;_0x37883b(_0x4c9ed6)&&(yield _0x4c9ed6);}}}function m(_0x5b6f5a,_0x2f5ad2,_0x2ee486){const t=_0x5b6f5a['t'];switch(_0x2f5ad2){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'},_0x2ee486);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2ee486);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 E={'c':_0x31bf21,'a':_0x541300,'e':_0x2215d9,'r':_0x240c22,'u':_0x336c2e};class u extends _0x3b516d{['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[_0xbb2f2a,j,_0x243f62];}constructor(_0x4c674a){super(_0x4c674a),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3983c9=_0x3845a3();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3983c9},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 _0x1b8f2f=this['repository']['getRevision'](0x0),_0x5b61e9=_0x1b8f2f&&null===_0x1b8f2f['creator']?_0x1b8f2f:null;if(this['_continueCurrentRevision']=!!_0x5b61e9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x22455c=this['_source']['getCurrentRevisionId'](),_0x19122d=this['repository']['getRevision'](_0x22455c);if(_0x19122d)this['_startingVersion']=_0x19122d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4169e5=this['_source']['history']['_operations']['find'](_0x1a4946=>!_0x1a4946['_isInit']),_0x19d1ae=_0x4169e5?_0x4169e5['baseVersion']:this['_source']['history']['version'];_0x1b8f2f?(_0x1b8f2f['toVersion']<_0x19d1ae&&_0x1b8f2f['_update']({'toVersion':_0x19d1ae}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5b61e9['id'],this['_startingVersion']=_0x5b61e9['fromVersion']):(this['_startingVersion']=_0x1b8f2f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x19d1ae,this['_continueCurrentRevision']=!0x1);}}else _0x5b61e9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5b61e9['toVersion'],this['editor']['model']['document']['history']['version']),_0x5b61e9['fromVersion']===_0x5b61e9['toVersion']?(0x0!==_0x5b61e9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b61e9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b61e9['id'],this['_startingVersion']=_0x5b61e9['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',_0x887e6b=>!_0x887e6b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ad8a9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1617c4;for(const _0x2861b0 in _0x5ad8a9){const _0x36ff6e=_0x2861b0,_0x1ccc8=_0x5ad8a9[_0x36ff6e];if('revisionHistoryLicenseKeyValid'==_0x1ccc8||'revisionHistoryLicenseKeyInvalid'==_0x1ccc8||'revisionHistoryLicenseKeyExpired'==_0x1ccc8||'revisionHistoryLicenseKeyDomainLimit'==_0x1ccc8||'revisionHistoryLicenseKeyNotAllowed'==_0x1ccc8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1ccc8||'revisionHistoryLicenseKeyTrialLimit'==_0x1ccc8||'revisionHistoryLicenseKeyUsageLimit'==_0x1ccc8){delete _0x5ad8a9[_0x36ff6e],_0x1617c4=_0x1ccc8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x475458=this['repository']['getRevision'](0x0),_0x26c052=await this['getRevisionDocumentData'](_0x475458),_0x3d78b7=await this['getRevisionRootsAttributes'](_0x475458);this['_replaceEditorDataWithRevisionData'](_0x26c052,_0x3d78b7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2d8b78){this['_source']=_0x2d8b78;}async['update'](){const _0x2d38b8=await this['_source']['getLatestVersion']();if(_0x2d38b8>this['currentRevision']['toVersion']){await this['_loadState']();const _0x501325=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2d38b8});_0x501325['authors']=_0x501325['authorsIds']['map'](_0x2cfbd3=>this['editor']['plugins']['get']('Users')['getUser'](_0x2cfbd3)),this['currentRevision']['_update'](_0x501325);}}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'](_0x487ee7={},_0x168ee2=null){const _0xb341f7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x168ee2>this['currentRevision']['toVersion']&&(_0x168ee2=null),null===_0x168ee2&&(_0x168ee2=await this['_source']['getLatestVersion']());const _0x10c379=this['_getFromVersion'](_0x168ee2),_0xb8f3a9=this['buildRevisionData']({'from':_0x10c379,'to':_0x168ee2});if(this['currentRevision']['toVersion']<_0x168ee2){const _0x403b68=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x168ee2,'to':_0x168ee2});_0x403b68['authors']=[],_0x403b68['authorsIds']=[],_0x403b68['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x403b68,!0x0),delete _0x403b68['authors'],_0xb341f7['push'](_0x403b68);}_0x487ee7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x487ee7['name']=_0x487ee7['name']||null,_0x487ee7['id']=_0x487ee7['id']||_0x3845a3(),_0x487ee7={..._0x487ee7,..._0xb8f3a9};const _0x393e18=this['addRevisionData'](_0x487ee7);_0xb341f7['push'](_0x487ee7);const _0xdf27ec=this['repository']['getIndex'](_0x393e18);if(0x0!==_0xdf27ec){const _0x633c50=this['repository']['getRevision'](_0xdf27ec-0x1);if(_0x633c50['fromVersion']!==_0x168ee2){const _0x356c83=this['_revisionDataBuilder']['getData'](_0x168ee2,_0x633c50['toVersion']),_0x5e9646={'id':_0x633c50['id'],'diffData':_0x356c83['diffData'],'authorsIds':_0x356c83['authorsIds'],'authors':_0x356c83['authorsIds']['map'](_0x435291=>this['editor']['plugins']['get']('Users')['getUser'](_0x435291)),'fromVersion':_0x168ee2};_0x633c50===this['currentRevision']&&(_0x5e9646['createdAt']=new Date(_0x487ee7['createdAt']['getTime']()+0xa)),_0x633c50['_update'](_0x5e9646,!0x0),delete _0x5e9646['authors'],_0xb341f7['push'](_0x5e9646);}}if(this['adapter']){for(const _0x4d573d of _0xb341f7)this['_bufferUpdate'](_0x4d573d['id'],_0x4d573d,!0x0);this['sendBufferedUpdates']();}return _0x393e18;}['addRevisionData'](_0x55ccbd){const _0x11f50d=this['repository']['createRevision'](_0x55ccbd);return this['adapter']&&_0x11f50d['on']('_update',(_0x2d6ca8,_0x5394c6,_0x256586)=>{_0x256586||(this['_bufferUpdate'](_0x5394c6['id'],_0x5394c6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x11f50d,this['_findInsertionIndex'](_0x11f50d)),_0x11f50d;}async['getRevisionDocumentData'](_0x3fdbbd){await this['_loadRevisionData'](_0x3fdbbd);const _0x31d5ea={};for(const _0x539b93 in _0x3fdbbd['diffData']){if(_0x3fdbbd['diffData'][_0x539b93]['attachChange']&&!_0x3fdbbd['diffData'][_0x539b93]['attachChange']['isAttached'])continue;const _0x2dfe5d=this['_removeRevisionMarkers'](JSON['parse'](_0x3fdbbd['diffData'][_0x539b93]['insertions'])),_0x48d401=this['editor']['editing']['view']['document'],_0x388d4c=new _0x7e311e(_0x48d401,_0x2dfe5d['map'](_0x5ac96e=>P(_0x5ac96e,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x31d5ea[_0x539b93]=this['editor']['data']['processor']['toData'](_0x388d4c),this['editor']['data']['processor']['useFillerType']('default');}return _0x31d5ea;}async['getRevisionRootsAttributes'](_0x44ede4){await this['_loadRevisionData'](_0x44ede4);const _0x263abe={};for(const _0x46c931 in _0x44ede4['diffData'])_0x44ede4['diffData'][_0x46c931]['attachChange']&&!_0x44ede4['diffData'][_0x46c931]['attachChange']['isAttached']||(_0x263abe[_0x46c931]=_0x44ede4['diffData'][_0x46c931]['attributesAfter']||{});return _0x263abe;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x55e882=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3f9656=0x0;_0x3f9656<_0x55e882['length'];_0x3f9656++){const _0x36d82d=_0x55e882[_0x3f9656];let _0x3776da=!0x1;for(const _0x9d8139 of Object['keys'](_0x36d82d))void 0x0===_0x36d82d[_0x9d8139]?delete _0x36d82d[_0x9d8139]:'id'!==_0x9d8139&&(_0x3776da=!0x0);_0x3776da||(_0x55e882[_0x3f9656]=null);}if(_0x55e882=_0x55e882['filter'](_0x698e45=>null!==_0x698e45),!_0x55e882['length'])return;for(let _0x158d26=0x0;_0x158d26<_0x55e882['length'];_0x158d26++){const _0x474d99=_0x55e882[_0x158d26];void 0x0!==_0x474d99['fromVersion']&&void 0x0===_0x474d99['toVersion']&&(_0x474d99['toVersion']=this['repository']['getRevision'](_0x474d99['id'])['toVersion']),void 0x0!==_0x474d99['toVersion']&&void 0x0===_0x474d99['fromVersion']&&(_0x474d99['fromVersion']=this['repository']['getRevision'](_0x474d99['id'])['fromVersion']);}const _0x5b7b9e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x55e882,_0x5b7b9e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x593894=>{if(_0x593894){for(const _0x3429bf of _0x593894)this['setRevisionData']({'id':_0x3429bf['id'],'createdAt':_0x3429bf['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x245c16,_0x3585da){let _0x345e78=this['editor']['config']['get']('initialData'),_0x3b1120=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x345e78){_0x345e78={};for(const _0x4941e5 of this['editor']['model']['document']['getRootNames']())_0x345e78[_0x4941e5]='';}if('string'==typeof _0x345e78&&(_0x345e78={'main':_0x345e78}),void 0x0===_0x3b1120){_0x3b1120={};for(const _0x355236 of this['editor']['model']['document']['getRootNames']())_0x3b1120[_0x355236]={};}let _0x4577e0=!0x1;const _0x33fc7c=Object['keys'](_0x345e78),_0x4bf4b6=Object['keys'](_0x245c16);for(const _0x92e548 of _0x33fc7c){if(_0x345e78[_0x92e548]!==_0x245c16[_0x92e548]&&''!==_0x345e78[_0x92e548]['trim']()){_0x4577e0=!0x0;break;}if(!_0x5e3b52(_0x3b1120[_0x92e548],_0x3585da[_0x92e548])&&Object['keys'](_0x3b1120[_0x92e548])['length']>0x0){_0x4577e0=!0x0;break;}}_0x4577e0||(_0x4577e0=_0x4bf4b6['some'](_0x3d525e=>!this['editor']['model']['document']['getRoot'](_0x3d525e))),_0x4577e0&&_0x2253fc('editor-initial-data-replaced-with-revision-data',{'editorData':_0x345e78,'editorRootsAttributes':_0x3b1120,'revisionData':_0x245c16,'revisionRootsAttributes':_0x3585da}),this['editor']['config']['set']('initialData',_0x245c16),this['editor']['config']['set']('rootsAttributes',_0x3585da);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3731c9=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3731c9['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4e1a16){const _0x6b2b82=this['repository']['getRevisions']();_0x6b2b82['reverse']();let _0x3119f5=0x0;for(;_0x3119f5<_0x6b2b82['length'];){const _0xa9cad2=_0x6b2b82[_0x3119f5];if(_0xa9cad2===this['currentRevision']){_0x3119f5++;continue;}if(_0xa9cad2['id']===this['_initialRevisionId'])break;const _0x3a94e3=_0x4e1a16['toVersion']-_0xa9cad2['toVersion']||_0x4e1a16['fromVersion']-_0xa9cad2['fromVersion'];if(_0x3a94e3>0x0)break;if(_0x3a94e3<0x0)_0x3119f5++;else{if(!_0x4e1a16['creator']&&_0xa9cad2['creator'])break;if(_0xa9cad2['creator']||!_0x4e1a16['creator']){if(_0x4e1a16['createdAt']>_0xa9cad2['createdAt'])break;_0x3119f5++;}else _0x3119f5++;}}return _0x3119f5;}['setRevisionData'](_0x41f2af){const _0x4e6b39=this['repository']['getRevision'](_0x41f2af['id']);if(_0x41f2af['createdAt']&&(_0x41f2af['createdAt']=new Date(_0x41f2af['createdAt'])),_0x41f2af['authorsIds']){const _0x4f38b6=this['editor']['plugins']['get']('Users');_0x41f2af['authors']=_0x41f2af['authorsIds']['map'](_0x2ee359=>_0x4f38b6['getUser'](_0x2ee359));}_0x4e6b39['_update'](_0x41f2af,!0x0);}['buildRevisionData']({revision:_0x5c44c5=null,from:_0x4061f3=null,to:_0x44b1ef=null}){_0x4061f3=null!==_0x4061f3?_0x4061f3:_0x5c44c5['fromVersion'],_0x44b1ef=null!==_0x44b1ef?_0x44b1ef:_0x5c44c5['toVersion'];const _0x59bca2=this['_revisionDataBuilder']['getData'](_0x4061f3,_0x44b1ef),_0x1e7f4d={'diffData':_0x59bca2['diffData'],'authorsIds':_0x59bca2['authorsIds'],'fromVersion':_0x4061f3,'toVersion':_0x44b1ef};if(!_0x5c44c5||_0x44b1ef!==_0x5c44c5['toVersion']){const _0x21d81c=_0x44b1ef-0x1,_0x48b408=this['_source']['history']['getOperation'](_0x21d81c);_0x1e7f4d['createdAt']=_0x48b408&&_0x48b408['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4061f3===this['_loadedStateData']['fromVersion']){for(const _0x183463 of this['_loadedStateData']['authors'])_0x1e7f4d['authorsIds']['includes'](_0x183463['id'])||_0x1e7f4d['authorsIds']['push'](_0x183463['id']);}return _0x1e7f4d;}['_loadRevisionData'](_0x297f20){if(!_0x297f20||_0x297f20['diffData'])return Promise['resolve']();{const _0x173d63=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x173d63,'revisionId':_0x297f20['id']})['then'](_0x35960f=>{_0x297f20['diffData']=_0x35960f['diffData'];});}}['_bufferUpdate'](_0x4501ef,_0x2ff7cc,_0x49e6fb){if(this['_bufferedUpdates']['has'](_0x4501ef)){const _0x44cd6c=this['_bufferedUpdates']['get'](_0x4501ef);_0x2ff7cc=_0x49e6fb?{..._0x44cd6c,..._0x2ff7cc}:{..._0x2ff7cc,..._0x44cd6c};}this['_bufferedUpdates']['set'](_0x4501ef,_0x2ff7cc);}['_getFromVersion'](_0x1d79ce){const _0x1e011d=this['repository']['getRevisions']();_0x1e011d['reverse'](),_0x1e011d['shift']();const _0x429178=_0x1e011d['find'](_0x1cc751=>_0x1cc751['toVersion']<=_0x1d79ce)['toVersion'];return _0x429178<this['_startingVersion']?this['_startingVersion']:_0x429178;}['_createInitialRevision'](_0x5075cd){const _0x3b4f11=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3b4f11)this['_initialRevisionId']=_0x3b4f11['id'];else{const _0xd799c1=!this['editor']['model']['document']['roots']['find'](_0x2024c2=>this['editor']['model']['hasContent'](_0x2024c2)),_0x2b5b3e=this['editor']['plugins']['get']('Users')['me']['id'],_0xd4a5c5=m(this['editor']['locale'],_0xd799c1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5075cd,'to':_0x5075cd,'id':this['_initialRevisionId'],'name':_0xd4a5c5,'creatorId':_0x2b5b3e});}}['_createCurrentRevision'](_0x4db257){const _0x4823ac=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4823ac),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4db257,'to':_0x4db257,'id':_0x4823ac,'name':'','creatorId':null}));}['_makeRevision']({name:_0x390099,from:_0x5e27c6,to:_0x5ab312,creatorId:_0x2d71f2,id:_0x21ac88}){const _0x50594b=this['buildRevisionData']({'from':_0x5e27c6,'to':_0x5ab312});_0x50594b['name']=_0x390099,_0x50594b['creatorId']=_0x2d71f2,_0x50594b['id']=_0x21ac88;const _0x249ba0=this['addRevisionData'](_0x50594b);return this['adapter']&&this['_bufferUpdate'](_0x50594b['id'],_0x50594b,!0x0),_0x249ba0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x10a566){return(_0x10a566=_0x10a566['filter'](_0x124f41=>!_0x124f41['name']||'revision-start'!==_0x124f41['name']&&'revision-end'!==_0x124f41['name']))['forEach'](_0x949382=>{'string'!=typeof _0x949382&&(_0x949382['children']=this['_removeRevisionMarkers'](_0x949382['children']),_0x949382['attributes']=_0x949382['attributes']['filter'](_0x193f93=>!_0x193f93[0x0]['startsWith']('data-revision-')));}),_0x10a566;}}function P(_0x184151,_0x1de041){const _0x3bef69=_0x1de041['editing']['view']['document'];if('string'==typeof _0x184151)return new _0xdcc05a(_0x3bef69,_0x184151);{const _0x577749=_0x184151['children']['map'](_0x2caef4=>P(_0x2caef4,_0x1de041));return new(E[_0x184151['type']]||_0x42db45)(_0x3bef69,_0x184151['name'],_0x184151['attributes'],_0x577749);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xea1572){this['editor']=_0xea1572,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'](_0x4be8b5){this['source']=_0x4be8b5;const _0x2e2112=new Map(),_0x9c2ff5=new Map(),_0x24b8a3=this['editor']['model']['document']['roots']['map'](_0x16a03b=>_0x16a03b['rootName']);for(const _0x3d9a99 of _0x24b8a3){const _0x5794d5=this['editor']['model']['document']['getRoot'](_0x3d9a99),_0x367d25=T(_0x5794d5);_0x2e2112['set'](_0x3d9a99,_0x367d25),_0x9c2ff5['set'](_0x3d9a99,Object['fromEntries'](_0x5794d5['getAttributes']()));}const _0x189d1a=Array['from'](this['editor']['model']['markers'])['map'](_0x4c4cc3=>[_0x4c4cc3['name'],_0x4c4cc3['getRange']()]),_0x56f5fd=this['source']['version'];this['_saveMetaData'](_0x56f5fd,_0x2e2112,_0x189d1a,_0x9c2ff5),this['_startingRevisionId']=this['_revisionId'];const _0x4317ff=new Map(),_0x377324=new Map();for(const _0x304e2a of _0x24b8a3){const _0x1853a4=F(_0x304e2a);_0x4317ff['set'](_0x304e2a,_0x1853a4),_0x377324['set'](_0x304e2a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4317ff,[],_0x377324);}['getData'](_0x80d49f,_0x3133c9){if(this['_lastFrom']===_0x80d49f&&this['_lastTo']<=_0x3133c9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3133c9,!0x0);else{if(!this['_savedMetaData']['has'](_0x80d49f)){const _0x28bb65=this['_getPreviousFrom'](_0x80d49f);this['_calculateMetaData'](_0x28bb65,_0x80d49f,!0x1);}this['_calculateMetaData'](_0x80d49f,_0x3133c9,!0x0);}return this['_lastFrom']=_0x80d49f,this['_lastTo']=_0x3133c9,this['_getState']();}['loadState'](_0x1124bf){this['_reset'](),this['_lastFrom']=_0x1124bf['fromVersion'],this['_lastTo']=_0x1124bf['toVersion'];for(const _0x2f2900 in _0x1124bf['diffData']){const _0x1d049b=_0x1124bf['diffData'][_0x2f2900]['attachChange'],_0x3a7a4f=_0x5189cc(_0x1124bf['diffData'][_0x2f2900]['attributesBefore'])||{},_0x1eb222=this['_makeModelFromViewString'](_0x1124bf['diffData'][_0x2f2900]['deletions']);_0x1eb222['rootName']=_0x2f2900,_0x1eb222['_isAttached']=!_0x1d049b||!_0x1d049b['isAttached'],_0x1eb222['isAttached']=()=>_0x1eb222['_isAttached'],this['_baseRoots']['set'](_0x2f2900,_0x1eb222),this['_baseRootsAttributes']['set'](_0x2f2900,_0x3a7a4f),_0x1d049b&&this['_touchedRoots']['set'](_0x2f2900,_0x1d049b);const _0x494082=this['_makeIdsRoot'](_0x1eb222);this['_baseIdsRoots']['set'](_0x2f2900,_0x494082);for(const [_0xf3e45f,_0x5761be]of _0x1eb222['markers']){if(!_0xf3e45f['startsWith']('revision:'))continue;const _0x325109=_0xf3e45f['split'](':')[0x2];for(const _0x87e0ae of _0x5761be['getWalker']({'singleCharacters':!0x0})){const _0x48b42e=this['_getVidAttributeName'](_0x87e0ae),_0x3ae428='elementEnd'==_0x87e0ae['type']?_0x87e0ae['previousPosition']['path']['slice'](0x0,-0x1):_0x87e0ae['previousPosition']['path'],_0x549a70=_0x494082['getNodeByPath'](_0x3ae428)['getAttribute'](_0x48b42e);this['_touched']['set'](_0x549a70,{'userId':_0x325109});}}}this['_startingRevisionId']=this['_revisionId'];const _0x110552=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x325213=>!this['_touched']['has'](_0x325213));let _0x10e03a=0x0;const _0x1c8d08=new Map();for(const _0x20a911 in _0x1124bf['diffData']){const _0x3e56a2=_0x1124bf['diffData'][_0x20a911]['attachChange'],_0x1ba9e8=_0x5189cc(_0x1124bf['diffData'][_0x20a911]['attributesAfter'])||{},_0x329451=this['_makeModelFromViewString'](_0x1124bf['diffData'][_0x20a911]['insertions']);_0x329451['rootName']=_0x20a911,_0x329451['_isAttached']=!_0x3e56a2||_0x3e56a2['isAttached'],_0x329451['isAttached']=()=>_0x329451['_isAttached'],this['_diffRoots']['set'](_0x20a911,_0x329451),this['_diffRootsAttributes']['set'](_0x20a911,_0x1ba9e8);const _0x2e11db=this['_makeIdsRoot'](_0x329451,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x20a911,_0x2e11db),_0x1c8d08['set'](_0x20a911,_0x329451['isAttached']()?_0x1ba9e8:{});for(const [_0x50bddb,_0x34adcb]of _0x329451['markers']){if(!_0x50bddb['startsWith']('revision:'))continue;const _0x304d25=_0x50bddb['split'](':')[0x2];for(const _0x1a12bd of _0x34adcb['getWalker']({'singleCharacters':!0x0})){const _0x4f4fd0=this['_getVidAttributeName'](_0x1a12bd),_0x5e1d33=this['_revisionId']++,_0x159c3e='elementEnd'==_0x1a12bd['type']?_0x1a12bd['previousPosition']['path']['slice'](0x0,-0x1):_0x1a12bd['previousPosition']['path'];_0x2e11db['getNodeByPath'](_0x159c3e)['_setAttribute'](_0x4f4fd0,_0x5e1d33),this['_touched']['set'](_0x5e1d33,{'userId':_0x304d25});}}for(const _0x2d264c of this['editor']['model']['createRangeIn'](_0x329451)['getWalker']({'singleCharacters':!0x0})){const _0x55aed5=this['_getVidAttributeName'](_0x2d264c),_0x4d3ff9='elementEnd'==_0x2d264c['type']?_0x2d264c['previousPosition']['path']['slice'](0x0,-0x1):_0x2d264c['previousPosition']['path'],_0x3286d2=_0x2e11db['getNodeByPath'](_0x4d3ff9);_0x3286d2['getAttribute'](_0x55aed5)>0x0||_0x3286d2['_setAttribute'](_0x55aed5,_0x110552[_0x10e03a++]);}for(const [_0x23da5c,_0x4ee80f]of _0x329451['markers'])_0x23da5c['startsWith']('revision:')||this['_markers']['set'](_0x23da5c,_0x4ee80f);}const _0x2428e8=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2428e8),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2428e8,0x1));const _0x188541=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x188541),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x188541,0x1));const _0x58be19=Array['from'](this['_diffRoots'])['map'](([_0x17853f,_0x2f8203])=>[_0x17853f,T(_0x2f8203)]);this['_saveMetaData'](this['_lastTo'],_0x58be19,this['_markers'],_0x1c8d08);}['_makeModelFromViewString'](_0x346a20){const _0x386111=JSON['parse'](_0x346a20),_0xe8c9f8=this['editor']['editing']['view']['document'],_0x44aa5b=new _0x7e311e(_0xe8c9f8,_0x386111['map'](_0x2403ea=>P(_0x2403ea,this['editor'])));return this['editor']['data']['toModel'](_0x44aa5b);}['_saveMetaData'](_0x347be0,_0x2c2189,_0x3fb411,_0x877b2c){const _0xed9f00=new Map(_0x2c2189),_0x526184=new Map(_0x5189cc(_0x877b2c)),_0x6f134f=new Map();for(const [_0x1ee444,_0x4242cb]of _0x3fb411)_0x6f134f['set'](_0x1ee444,{'start':_0x4242cb['start']['clone'](),'end':_0x4242cb['end']['clone'](),'rootName':_0x4242cb['root']['rootName']});this['_savedMetaData']['set'](_0x347be0,{'roots':_0xed9f00,'markers':_0x6f134f,'rootsAttributes':_0x526184});}['_removeMetaData'](_0x4c86a9){this['_savedMetaData']['delete'](_0x4c86a9);}['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'](_0x35bf38,_0x2e6426=null){let _0x3ecf30=null;_0x35bf38['is']('documentFragment')||(_0x3ecf30=new ut(_0x35bf38['name'],{'vid_start':null===_0x2e6426?this['_revisionId']++:_0x2e6426++}));const _0x37fa3b=[];for(const _0x4cea9d of _0x35bf38['getChildren']())if(_0x4cea9d['is']('element')){_0x37fa3b['push'](this['_makeIdsRoot'](_0x4cea9d,_0x2e6426));const _0x2d0845=_0x37fa3b[_0x37fa3b['length']-0x1];null!==_0x2e6426&&(_0x2e6426=_0x2d0845['is']('element','$text')?_0x2d0845['getAttribute']('vid')+0x1:_0x2d0845['getAttribute']('vid_end')+0x1);}else{for(let _0x4148fb=0x0;_0x4148fb<_0x4cea9d['offsetSize'];_0x4148fb++)_0x37fa3b['push'](new ut('$text',{'vid':null===_0x2e6426?this['_revisionId']++:_0x2e6426++}));}if(_0x35bf38['is']('documentFragment')){const _0x3af425=F(_0x35bf38['rootName']);return _0x3af425['_insertChild'](0x0,_0x37fa3b),_0x3af425;}return _0x3ecf30['_setAttribute']('vid_end',null===_0x2e6426?this['_revisionId']++:_0x2e6426++),_0x3ecf30['_insertChild'](0x0,_0x37fa3b),_0x3ecf30;}['_calculateMetaData'](_0xa5077b,_0x2cd82e,_0x7ea1b){this['_reset']();const {roots:_0x565338,markers:_0x1db151,rootsAttributes:_0xacdff5}=this['_savedMetaData']['get'](_0xa5077b);this['_baseRoots']=new Map(_0x565338),this['_baseRootsAttributes']=new Map(_0x5189cc(_0xacdff5));for(const [_0x20a032,_0x171238]of this['_baseRoots'])if('$graveyard'!==_0x20a032&&(this['_diffRoots']['set'](_0x20a032,T(_0x171238)),this['_diffRootsAttributes']=new Map(_0x5189cc(_0xacdff5)),_0x7ea1b)){const _0x523e1b=this['_revisionId'];this['_idsRoots']['set'](_0x20a032,this['_makeIdsRoot'](_0x171238)),this['_baseIdsRoots']['set'](_0x20a032,this['_makeIdsRoot'](_0x171238,_0x523e1b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x7ea1b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x228ad9,_0x29864c]of _0x1db151){const _0x20c2d8=this['_baseRoots']['get'](_0x29864c['rootName']),_0x3d614f=this['_diffRoots']['get'](_0x29864c['rootName']),_0x55630a=new ft(this['_fixPosition'](_0x29864c['start'],_0x20c2d8),this['_fixPosition'](_0x29864c['end'],_0x20c2d8)),_0x37a906=this['_fixRange'](_0x55630a,_0x3d614f);_0x20c2d8['markers']['set'](_0x228ad9,_0x55630a),this['_markers']['set'](_0x228ad9,_0x37a906);}this['_applyOperations'](_0xa5077b,_0x2cd82e,_0x7ea1b);}['_applyOperations'](_0x5f5ba0,_0x2718fa,_0x51ee6b){for(const _0x23ed79 of this['source']['getOperations'](_0x5f5ba0,_0x2718fa))this['_handleOperation'](_0x23ed79,_0x51ee6b);for(const _0x583e19 of this['_diffRoots']['values']())_0x583e19['markers']['clear']();for(const [_0x313d05,_0x381835]of this['_markers']){this['_diffRoots']['get'](_0x381835['root']['rootName'])['markers']['set'](_0x313d05,_0x381835['clone']());}const _0x5af5be=new Map(),_0x1a4fe9=new Map();for(const [_0x49854a,_0x2f84f3]of this['_diffRoots'])_0x5af5be['set'](_0x49854a,T(_0x2f84f3)),_0x1a4fe9['set'](_0x49854a,this['_diffRootsAttributes']['get'](_0x49854a));this['_saveMetaData'](_0x2718fa,_0x5af5be,this['_markers'],_0x1a4fe9);}['_getPreviousFrom'](_0x2585ec){const _0xbcdd9a=Array['from'](this['_savedMetaData']['keys']());_0xbcdd9a['sort']((_0x4bda59,_0x448333)=>_0x4bda59-_0x448333),_0xbcdd9a['reverse']();for(const _0x47e7d8 of _0xbcdd9a)if(_0x47e7d8<_0x2585ec)return _0x47e7d8;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3b6152,_0x355629){const _0x5b39a7=Array['from'](_0x355629['markers'])['map'](([_0x8cbbf3,_0x2df53f])=>[_0x8cbbf3,this['_fixRange'](_0x2df53f,_0x3b6152)]);_0x3b6152['markers']=new Map(_0x5b39a7);}['_transformMarkers'](_0x45de69){for(const _0x2613e0 of this['_markers']['values']()){const _0x325d9e=_0x2613e0['getTransformedByOperation'](_0x45de69),_0x3f9643=ft['_createFromRanges'](_0x325d9e);_0x2613e0['start']=_0x3f9643['start'],_0x2613e0['end']=_0x3f9643['end'];}}['_handleOperation'](_0x50013e,_0x1e3210){if('addRoot'!=_0x50013e['type']&&'detachRoot'!=_0x50013e['type']){if('insert'==_0x50013e['type']){const _0x4ad8f8=_0x50013e['position']['root']['rootName'];this['_diffRoots']['has'](_0x4ad8f8)||(this['_diffRoots']['set'](_0x4ad8f8,F(_0x4ad8f8,!0x0)),this['_diffRootsAttributes']['set'](_0x4ad8f8,{}),_0x1e3210&&this['_idsRoots']['set'](_0x4ad8f8,F(_0x4ad8f8,!0x0)));}else{if('addRootAttribute'==_0x50013e['type']||'removeRootAttribute'==_0x50013e['type']||'changeRootAttribute'==_0x50013e['type'])return void this['_handleRootAttributeOperation'](_0x50013e);'marker'==_0x50013e['type']&&this['_handleMarkerOperation'](_0x50013e);}if('marker'!==_0x50013e['type']){const _0x59530b=this['_cloneOperation'](_0x50013e,this['_diffRoots']);_0x59530b['_execute'](),this['_transformMarkers'](_0x59530b);}if(_0x1e3210)switch(_0x50013e['type']){case'insert':this['_handleInsertOperation'](_0x50013e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50013e);break;case'merge':this['_handleMergeOperation'](_0x50013e);break;case'split':this['_handleSplitOperation'](_0x50013e);}}else this['_handleRootOperation'](_0x50013e,_0x1e3210);}['_cloneOperation'](_0x1083f9,_0x374d3c){const _0x54f2e9=_0x1083f9['clone']();return _0x54f2e9['_authorId']=_0x1083f9['_authorId'],this['_fixOperation'](_0x54f2e9,_0x374d3c),_0x54f2e9;}['_getBaseVids'](_0xdf5128){return _0xdf5128['map'](_0x1f22d6=>{const _0x4e5e1c=this['_getVidAttributeName'](_0x1f22d6);return Number(_0x1f22d6['item']['getAttribute'](_0x4e5e1c));});}['_generateTape'](_0x46fcee,_0x1188c9){if(_0x46fcee['is']('element','$text'))_0x1188c9['push']({'item':_0x46fcee,'type':'text'});else{_0x46fcee['is']('element')&&_0x1188c9['push']({'item':_0x46fcee,'type':'elementStart'});for(const _0x4670c0 of _0x46fcee['getChildren']())this['_generateTape'](_0x4670c0,_0x1188c9);_0x46fcee['is']('element')&&_0x1188c9['push']({'item':_0x46fcee,'type':'elementEnd'});}return _0x1188c9;}['_getState'](){const _0x558ada=new Map(this['_touched']),_0x7fe8b8=new Map(_0x558ada),_0x23bffd=new Map(),_0x2e42bc={'insertions':{},'deletions':{}},_0x5213c5={'insertions':{},'deletions':{}},_0x10885f=new Map(),_0xe992d0=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xe992d0['delete']('$graveyard');for(const _0x109205 of _0xe992d0){const _0x5555fa=this['_diffRoots']['get'](_0x109205)||F(_0x109205,!0x1),_0xc5b9e4=this['_baseRoots']['get'](_0x109205)||F(_0x109205,!0x1);_0x5555fa['isAttached']()||_0xc5b9e4['isAttached']()?(_0x2e42bc['insertions'][_0x109205]=T(_0x5555fa),_0x2e42bc['deletions'][_0x109205]=T(_0xc5b9e4),this['_copyMarkers'](_0x2e42bc['deletions'][_0x109205],_0xc5b9e4),this['_copyMarkers'](_0x2e42bc['insertions'][_0x109205],_0x5555fa),_0x5213c5['insertions'][_0x109205]=this['_generateTape'](this['_idsRoots']['get'](_0x109205),[]),_0x5213c5['deletions'][_0x109205]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x109205)||F(_0x109205,!0x1),[])):_0xe992d0['delete'](_0x109205);}for(const _0x998b9c of _0xe992d0){const _0x5865ef=_0x5213c5['insertions'][_0x998b9c];for(const _0x5c268b of _0x5865ef){const _0x349939=this['_getVidAttributeName'](_0x5c268b),_0x3d2eed=_0x5c268b['item']['getAttribute'](_0x349939);_0x7fe8b8['delete'](_0x3d2eed),_0x3d2eed>=this['_startingRevisionId']&&_0x23bffd['set'](_0x3d2eed,_0x558ada['get'](_0x3d2eed));}}for(const _0x140b0c of _0xe992d0){const _0x46e9ca=_0x5213c5['insertions'][_0x140b0c],_0x297ea4=this['_getBaseVids'](_0x5213c5['deletions'][_0x140b0c]);let _0x339c84=0x0;for(const _0xed237d of _0x46e9ca){const _0x1cfb69=this['_getVidAttributeName'](_0xed237d),_0x175f3c=_0xed237d['item']['getAttribute'](_0x1cfb69);if(!_0x23bffd['has'](_0x175f3c)&&!_0x10885f['has'](_0x175f3c)){if(_0x7fe8b8['has'](_0x175f3c))_0x339c84++;else{if(_0x175f3c!=_0x297ea4[_0x339c84]){const _0x19007d=_0x558ada['get'](_0x175f3c)||_0x558ada['get'](_0x297ea4[_0x339c84]);for(;_0x175f3c!=_0x297ea4[_0x339c84];)_0x7fe8b8['has'](_0x297ea4[_0x339c84])||(_0x10885f['set'](_0x297ea4[_0x339c84],_0x19007d),_0x558ada['set'](_0x297ea4[_0x339c84],_0x19007d)),_0x339c84++;}_0x339c84++;}}}}for(const _0x2fd611 of _0xe992d0){const _0x186dda=_0x5213c5['insertions'][_0x2fd611];for(const _0x68816e of _0x186dda){const _0x5edb62=this['_getVidAttributeName'](_0x68816e),_0x297d87=_0x68816e['item']['getAttribute'](_0x5edb62);if(_0x10885f['has'](_0x297d87)){const _0x1f597e=_0x10885f['get'](_0x297d87);_0x7fe8b8['has'](_0x297d87)||_0x7fe8b8['set'](_0x297d87,{..._0x1f597e}),_0x23bffd['set'](_0x297d87,{..._0x1f597e});}}}for(const _0x3c31df of _0x7fe8b8['keys']())_0x3c31df>=this['_startingRevisionId']&&_0x7fe8b8['delete'](_0x3c31df);const _0xa6729b=new Map();for(const _0x3c2e77 of _0xe992d0){let _0x1720e0=_0x5213c5['insertions'][_0x3c2e77];for(const _0x26291a of _0x1720e0)if(_0x26291a['item']['is']('element','tableCell')){const _0x3d18b4=this['_getVidAttributeName'](_0x26291a),_0xde5ff9=_0x26291a['item']['getAttribute'](_0x3d18b4);if(_0x23bffd['has'](_0xde5ff9)){const _0x2cc4af=_0x26291a['item']['parent']['parent']['getAttribute']('vid_start'),_0x395b32=_0xa6729b['get'](_0x2cc4af)||new Set();_0x395b32['add'](_0x23bffd['get'](_0xde5ff9)['userId']),_0xa6729b['set'](_0x2cc4af,_0x395b32);}}_0x1720e0=_0x5213c5['deletions'][_0x3c2e77];for(const _0x192b15 of _0x1720e0)if(_0x192b15['item']['is']('element','tableCell')){const _0x153270=this['_getVidAttributeName'](_0x192b15),_0x194a44=_0x192b15['item']['getAttribute'](_0x153270);if(_0x7fe8b8['has'](_0x194a44)){const _0x2112e9=_0x192b15['item']['parent']['parent']['getAttribute']('vid_start'),_0x251d25=_0xa6729b['get'](_0x2112e9)||new Set();_0x251d25['add'](_0x7fe8b8['get'](_0x194a44)['userId']),_0xa6729b['set'](_0x2112e9,_0x251d25);}}for(const _0x4a8944 of _0xa6729b['keys']())(_0x23bffd['has'](_0x4a8944)||_0x7fe8b8['has'](_0x4a8944))&&_0xa6729b['delete'](_0x4a8944);}for(const _0x18e62c of _0xe992d0){const _0x1bb79c=_0x5213c5['insertions'][_0x18e62c];let _0x44af92=null,_0x322c71=null;for(const _0x589655 of _0x1bb79c){const _0x481707=this['_getVidAttributeName'](_0x589655),_0x4c57c8=_0x589655['item']['getAttribute'](_0x481707),_0x71948b=_0xa6729b['get'](_0x4c57c8);_0x71948b&&'elementStart'==_0x589655['type']&&(_0x44af92=Array['from'](_0x71948b)[0x0],_0x322c71=_0x589655['item']['getAttribute']('vid_end')),_0x44af92&&(_0x7fe8b8['set'](_0x4c57c8,{'userId':_0x44af92}),_0x23bffd['set'](_0x4c57c8,{'userId':_0x44af92})),_0x4c57c8==_0x322c71&&(_0x44af92=null,_0x322c71=null);}}const _0x4b8d61={},_0x2c9710=new Set();for(const _0x1b1dad of _0xe992d0){const _0x2f3369=_0x2e42bc['deletions'][_0x1b1dad],_0x416128=_0x2e42bc['insertions'][_0x1b1dad];for(const {userId:_0x236e87}of this['_touchedMarkers']['values']())null!==_0x236e87&&_0x2c9710['add'](_0x236e87);for(const {userId:_0x21df9b}of this['_touchedRoots']['values']())null!==_0x21df9b&&_0x2c9710['add'](_0x21df9b);this['_markChanges'](_0x416128,_0x5213c5['insertions'][_0x1b1dad],_0x23bffd,'insertion',_0x2c9710),this['_markChanges'](_0x2f3369,_0x5213c5['deletions'][_0x1b1dad],_0x7fe8b8,'deletion',_0x2c9710),_0x4b8d61[_0x1b1dad]={'insertions':this['_prepareViewToSave'](_0x416128),'deletions':this['_prepareViewToSave'](_0x2f3369),'attachChange':this['_touchedRoots']['get'](_0x1b1dad)||null,'attributesBefore':_0x5189cc(this['_baseRootsAttributes']['get'](_0x1b1dad))||{},'attributesAfter':_0x5189cc(this['_diffRootsAttributes']['get'](_0x1b1dad))};}return{'diffData':_0x4b8d61,'authorsIds':Array['from'](_0x2c9710)};}['_processRootBeforeSave'](_0x3e1340){for(const [,_0x388b27]of _0x3e1340['markers']){const _0xce0a6a=_0x388b27['start']['getAncestors']()['filter'](_0x5a1968=>'tableCell'==_0x5a1968['name']);for(const _0x371115 of _0xce0a6a)0x1==_0x371115['childCount']&&_0x371115['getChild'](0x0)['is']('element','paragraph')&&_0x371115['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x192674){this['_processRootBeforeSave'](_0x192674);const _0x84178f=this['editor']['data']['toView'](_0x192674,{}),_0x4482c6=Array['from'](_0x84178f['getChildren']())['map'](_0x546593=>this['_getViewJson'](_0x546593));return JSON['stringify'](_0x4482c6);}['_getViewJson'](_0x35deb2){if(_0x35deb2['is']('$text'))return _0x35deb2['data'];{const _0x446b05=_0x35deb2;return{'type':Object['keys'](E)['find'](_0x3152e6=>_0x35deb2 instanceof E[_0x3152e6]),'name':_0x446b05['name'],'attributes':Array['from'](_0x446b05['getAttributes']()),'children':Array['from'](_0x446b05['getChildren']())['map'](_0x11f4d3=>this['_getViewJson'](_0x11f4d3))};}}['_markChanges'](_0x337a67,_0x1fab93,_0x537b74,_0x39e72e,_0x4c96cb){let _0x36365c=null,_0x21acb2=null,_0x2af28e=0x0;const _0x155284=this['editor']['model'];for(let _0x1fd4ca=0x0;_0x1fd4ca<_0x1fab93['length'];_0x1fd4ca++){const _0x3bb858=this['_getVidAttributeName'](_0x1fab93[_0x1fd4ca]),_0x128677=_0x1fab93[_0x1fd4ca]['item']['getAttribute'](_0x3bb858),_0x3b2b6e=_0x537b74['get'](_0x128677),_0x24bda6=_0x1fd4ca==_0x1fab93['length']-0x1;(!_0x36365c&&_0x3b2b6e&&(_0x36365c=_0x3b2b6e,_0x21acb2=_0x1fab93[_0x1fd4ca]),_0x36365c&&(!_0x3b2b6e||_0x3b2b6e['userId']!=_0x36365c['userId']))&&(_0x203926(_0x3b2b6e,B(_0x21acb2,_0x337a67,_0x155284),B(_0x1fab93[_0x1fd4ca],_0x337a67,_0x155284)),_0x36365c=_0x3b2b6e||null,_0x21acb2=_0x3b2b6e?_0x1fab93[_0x1fd4ca]:null),_0x36365c&&_0x24bda6&&_0x203926(_0x3b2b6e,B(_0x21acb2,_0x337a67,_0x155284),J(_0x1fab93[_0x1fd4ca],_0x337a67,_0x155284));}function _0x203926(_0x7f7dd6,_0x4fdd9e,_0x5a857a){const _0xe7c569=_0x36365c['userId'],_0x449cc7='revision:'+_0x39e72e+':'+_0xe7c569+':'+_0x2af28e++,_0x25f40c=_0x155284['createRange'](_0x4fdd9e,_0x5a857a);_0x337a67['markers']['set'](_0x449cc7,_0x25f40c),null!==_0xe7c569&&_0x4c96cb['add'](_0xe7c569);}}['_getVidAttributeName'](_0x24faae){switch(_0x24faae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x33fd01,_0x4a1374){_0x33fd01['baseVersion']=null;for(const _0x3c65d1 in _0x33fd01){const _0x40369a=_0x33fd01[_0x3c65d1];if(_0x40369a instanceof vt){const _0x59ea76=_0x4a1374['get'](_0x40369a['root']['rootName']);_0x33fd01[_0x3c65d1]=this['_fixPosition'](_0x40369a,_0x59ea76);}if(_0x40369a instanceof ft){const _0x12ece0=_0x4a1374['get'](_0x40369a['root']['rootName']);_0x33fd01[_0x3c65d1]=this['_fixRange'](_0x40369a,_0x12ece0);}'root'===_0x3c65d1&&(_0x33fd01['root']=_0x4a1374['get'](_0x33fd01['root']['rootName']));}}['_fixRange'](_0x3e5d9a,_0x30fdee){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3e5d9a['start'],_0x30fdee),this['_fixPosition'](_0x3e5d9a['end'],_0x30fdee));}['_fixPosition'](_0x423930,_0x248ac4){return this['editor']['model']['createPositionFromPath'](_0x248ac4,_0x423930['path'],_0x423930['stickiness']);}['_handleInsertOperation'](_0x22c540){const _0x139b07=this['_idsRoots']['get'](_0x22c540['position']['root']['rootName']),_0x47d839=this['_fixPosition'](_0x22c540['position'],_0x139b07),_0x378e04=null===_0x22c540['_authorId']?null:_0x22c540['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5adb7c=_0x47d839['parent'],_0x5e2ad3=this['_revisionId'],_0x4d9c08=[];for(const _0x336d16 of _0x22c540['nodes'])if(_0x336d16['is']('element'))_0x4d9c08['push'](this['_makeIdsRoot'](_0x336d16));else{for(let _0x33c832=0x0;_0x33c832<_0x336d16['offsetSize'];_0x33c832++)_0x4d9c08['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x518e16=this['_revisionId'];for(let _0x5f00ac=_0x5e2ad3;_0x5f00ac<_0x518e16;_0x5f00ac++)this['_touched']['set'](_0x5f00ac,{'userId':_0x378e04});_0x5adb7c['_insertChild'](_0x47d839['offset'],_0x4d9c08);}['_handleMoveOperation'](_0x2c06c0){(_0x2c06c0=this['_cloneOperation'](_0x2c06c0,this['_idsRoots']))['_execute']();const _0x49f6ce=null===_0x2c06c0['_authorId']?null:_0x2c06c0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x467d09=_0x2c06c0['getMovedRangeStart'](),_0x31db75=_0x467d09['parent'],_0x58a51d=_0x467d09['offset'];!function _0x577ee6(_0x11756b,_0xd4a6d3,_0x523db1,_0x24a989){for(let _0xfc48a9=_0x523db1;_0xfc48a9<_0x24a989;_0xfc48a9++){const _0xff1c03=_0xd4a6d3['getChild'](_0xfc48a9);_0xff1c03['is']('element','$text')?_0x11756b['set'](_0xff1c03['getAttribute']('vid'),{'userId':_0x49f6ce}):(_0x11756b['set'](_0xff1c03['getAttribute']('vid_start'),{'userId':_0x49f6ce}),_0x577ee6(_0x11756b,_0xff1c03,0x0,_0xff1c03['childCount']),_0x11756b['set'](_0xff1c03['getAttribute']('vid_end'),{'userId':_0x49f6ce}));}}(this['_touched'],_0x31db75,_0x58a51d,_0x58a51d+_0x2c06c0['howMany']);}['_handleMergeOperation'](_0x31941e){const _0x1ac2e3=null===(_0x31941e=this['_cloneOperation'](_0x31941e,this['_idsRoots']))['_authorId']?null:_0x31941e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44a199=_0x31941e['targetPosition']['parent'],_0x34736b=_0x31941e['sourcePosition']['parent'],_0x2b949e=_0x44a199['getAttribute']('vid_end'),_0x42e0d0=_0x34736b['getAttribute']('vid_start');_0x44a199['_setAttribute']('vid_end',_0x34736b['getAttribute']('vid_end')),_0x34736b['_setAttribute']('vid_end',_0x2b949e),this['_touched']['set'](_0x42e0d0,{'userId':_0x1ac2e3}),this['_touched']['set'](_0x2b949e,{'userId':_0x1ac2e3}),_0x31941e['_execute']();}['_handleSplitOperation'](_0x3c7323){const _0xc8ca1a=null===(_0x3c7323=this['_cloneOperation'](_0x3c7323,this['_idsRoots']))['_authorId']?null:_0x3c7323['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4283a3=_0x3c7323['graveyardPosition'],_0x224da9=_0x3c7323['splitPosition']['parent'];_0x3c7323['_execute']();const _0x5c0876=_0x224da9['getAttribute']('vid_end'),_0x58279e=_0x3c7323['insertionPosition']['nodeAfter'];if(_0x4283a3){const _0x121eaa=_0x58279e['getAttribute']('vid_end'),_0xd682bc=_0x224da9['getAttribute']('vid_end');_0x224da9['_setAttribute']('vid_end',_0x121eaa),_0x58279e['_setAttribute']('vid_end',_0xd682bc),this['_touched']['set'](_0x224da9['getAttribute']('vid_end'),{'userId':_0xc8ca1a}),this['_touched']['set'](_0x58279e['getAttribute']('vid_start'),{'userId':_0xc8ca1a});}else{const _0x637ece=this['_revisionId']++,_0x2ed373=this['_revisionId']++;_0x224da9['_setAttribute']('vid_end',_0x637ece),_0x58279e['_setAttribute']('vid_start',_0x2ed373),_0x58279e['_setAttribute']('vid_end',_0x5c0876),this['_touched']['set'](_0x637ece,{'userId':_0xc8ca1a}),this['_touched']['set'](_0x2ed373,{'userId':_0xc8ca1a});}}['_handleMarkerOperation'](_0x1eaa71){if(!_0x1eaa71['affectsData'])return;const _0xbe87eb=(_0x1eaa71=this['_cloneOperation'](_0x1eaa71,this['_diffRoots']))['oldRange']?_0x1eaa71['oldRange']['root']:null,_0x56253f=_0x1eaa71['newRange']?_0x1eaa71['newRange']['root']:null;_0xbe87eb&&this['_markers']['delete'](_0x1eaa71['name']),_0x56253f&&this['_markers']['set'](_0x1eaa71['name'],_0x1eaa71['newRange']['clone']());const _0x215f9e=null===_0x1eaa71['_authorId']?null:_0x1eaa71['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfc80fe=_0x1eaa71['name'];if(!this['_touchedMarkers']['has'](_0xfc80fe))return void this['_touchedMarkers']['set'](_0xfc80fe,{'range':_0x1eaa71['oldRange'],'userId':_0x215f9e});const _0x1cd4d6=this['_touchedMarkers']['get'](_0xfc80fe),_0x3ae52b=_0x1cd4d6['range'],_0x5cdfbd=_0x1eaa71['newRange'];null==_0x3ae52b&&null==_0x5cdfbd||_0x3ae52b&&_0x5cdfbd&&_0x3ae52b['isEqual'](_0x5cdfbd)?this['_touchedMarkers']['delete'](_0x1eaa71['name']):_0x1cd4d6['userId']=_0x215f9e;}['_handleRootOperation'](_0x3817b1,_0x5f054a){this['_diffRoots']['has'](_0x3817b1['rootName'])?this['_diffRoots']['get'](_0x3817b1['rootName'])['_isAttached']=_0x3817b1['isAdd']:(this['_diffRoots']['set'](_0x3817b1['rootName'],F(_0x3817b1['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3817b1['rootName'],{}),_0x5f054a&&this['_idsRoots']['set'](_0x3817b1['rootName'],F(_0x3817b1['rootName'],!0x0)));const _0x2093ad=null===_0x3817b1['_authorId']?null:_0x3817b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x177ae6=this['_touchedRoots']['get'](_0x3817b1['rootName']);_0x177ae6&&_0x177ae6['userId']===_0x2093ad?this['_touchedRoots']['delete'](_0x3817b1['rootName']):this['_touchedRoots']['set'](_0x3817b1['rootName'],{'userId':_0x2093ad,'isAttached':_0x3817b1['isAdd']});}['_handleRootAttributeOperation'](_0x52a475){const _0x11405f=this['_diffRootsAttributes']['get'](_0x52a475['root']['rootName']);null===_0x52a475['newValue']?delete _0x11405f[_0x52a475['key']]:_0x11405f[_0x52a475['key']]=_0x52a475['newValue'];}}function T(_0x4bf55e){const _0x43c0c2=F(_0x4bf55e['rootName'],_0x4bf55e['isAttached']());for(const _0x355f07 of _0x4bf55e['getChildren']()){const _0x3ac154=_0x355f07['_clone'](!0x0);_0x43c0c2['_appendChild'](_0x3ac154);}return _0x43c0c2;}function F(_0x559ea9,_0xea25b7=!0x0){const _0x4a377e=new gt();return _0x4a377e['rootName']=_0x559ea9,_0x4a377e['_isAttached']=_0xea25b7,_0x4a377e['isAttached']=()=>_0x4a377e['_isAttached'],_0x4a377e;}function B(_0x476c0a,_0x2f9f78,_0x17aab2){const _0x50f39c='elementEnd'==_0x476c0a['type']?_0x17aab2['createPositionAt'](_0x476c0a['item'],'end'):_0x17aab2['createPositionBefore'](_0x476c0a['item']);return _0x17aab2['createPositionFromPath'](_0x2f9f78,_0x50f39c['path'],_0x50f39c['stickiness']);}function J(_0x47a505,_0x673461,_0x3aff0c){const _0x29c54b='elementStart'==_0x47a505['type']?_0x3aff0c['createPositionAt'](_0x47a505['item'],0x0):_0x3aff0c['createPositionAfter'](_0x47a505['item']);return _0x3aff0c['createPositionFromPath'](_0x673461,_0x29c54b['path'],_0x29c54b['stickiness']);}class os extends _0x366255{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x28f855,_0x3e3217){super(_0x28f855),this['focusTracker']=new _0x3258fa(),this['keystrokes']=new _0x11d7cc(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3e3217),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'](),_0xd80631({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xb627e6=_0x1100e4=>_0x1100e4['stopPropagation']();this['keystrokes']['set']('arrowright',_0xb627e6),this['keystrokes']['set']('arrowleft',_0xb627e6),this['keystrokes']['set']('arrowup',_0xb627e6),this['keystrokes']['set']('arrowdown',_0xb627e6);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4476e1){this['revisionNameInputView']['fieldView']['element']['value']=_0x4476e1['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x564d76){const _0x6e188b=new at(this['locale'],ti),_0x3506c4=_0x6e188b['fieldView'];_0x3506c4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xd49617=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x564d76&&(_0xd49617+='\x20('+m(this['locale'],'optional')+')'),(_0x6e188b['label']=_0xd49617,_0x3506c4['on']('input',()=>{this['revisionNameInputValue']=_0x3506c4['element']['value']['trim']();}),_0x6e188b);}}class f extends _0x3b516d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3e6880=this['editor'],_0x5d768a=_0x3e6880['plugins']['get']('RevisionTracker');_0x3e6880['ui']['componentFactory']['add']('revisionHistory',_0x21baef=>{const _0x127c95=_0x54cd08(_0x21baef),_0x40a9d8=_0x127c95['panelView']['children'],_0x376b64=new _0x2952ac(_0x21baef),_0x213fac=new te(_0x21baef),_0x2845ec=new _0x5c816d(_0x21baef),_0x5c5a44=new te(_0x21baef),_0xfeac39=new _0x5c816d(_0x21baef);return _0x127c95['bind']('isEnabled')['to'](_0x5d768a,'isReady',_0x5d768a,'isEnabled',_0x3e6880,'isReadOnly',(_0x12bc92,_0x3e8e00,_0x1b6f24)=>_0x12bc92&&_0x3e8e00&&!_0x1b6f24),_0x127c95['buttonView']['set']({'icon':_0x23d429,'label':m(_0x21baef,'Revision\x20history'),'tooltip':!0x0}),_0x2845ec['set']({'label':m(_0x21baef,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2845ec['bind']('isEnabled')['to'](_0x5d768a,'isReady',_0x5d768a,'isEnabled',_0x3e6880,'isReadOnly',(_0x8382a9,_0xb9e198,_0x2e6eb4)=>_0x8382a9&&_0xb9e198&&!_0x2e6eb4),_0x2845ec['on']('execute',()=>this['_showDialog']()),_0xfeac39['set']({'label':m(_0x21baef,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xfeac39['bind']('isEnabled')['to'](_0x5d768a,'isReady',_0x3e6880,'isReadOnly',(_0x20d4d5,_0x3e7012)=>_0x20d4d5&&!_0x3e7012),_0xfeac39['on']('execute',()=>{_0x3e6880['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x127c95['isOpen']=!0x1,_0x3e6880['editing']['view']['focus']();}),_0x213fac['children']['add'](_0x2845ec),_0x5c5a44['children']['add'](_0xfeac39),_0x376b64['role']='menu',_0x376b64['items']['addMany']([_0x213fac,_0x5c5a44]),_0x40a9d8['add'](_0x376b64),_0x127c95;}),_0x3e6880['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4ce89f=this['editor'],_0x17b571=_0x4ce89f['locale'],_0x4654f0=new _0x2ea996(_0x17b571),_0x4bad13=new _0x2412a7(_0x17b571);_0x4654f0['buttonView']['set']({'icon':_0x23d429,'label':m(_0x17b571,'Revision\x20history')});const _0x181dec=new _0x18c3ab(_0x17b571,_0x4654f0),_0xcf1dd7=new _0x3fe93b(_0x17b571);_0xcf1dd7['set']({'label':m(_0x17b571,'Save\x20current\x20revision')}),_0xcf1dd7['delegate']('execute')['to'](_0x4654f0),_0xcf1dd7['on']('execute',()=>{this['_showDialog']();}),_0x181dec['children']['add'](_0xcf1dd7),_0x4bad13['items']['add'](_0x181dec);const _0x3d39a7=new _0x18c3ab(_0x17b571,_0x4654f0),_0x3d0736=new _0x3fe93b(_0x17b571);return _0x3d0736['set']({'label':m(_0x17b571,'Open\x20revision\x20history')}),_0x3d0736['delegate']('execute')['to'](_0x4654f0),_0x3d0736['on']('execute',()=>{_0x4ce89f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3d39a7['children']['add'](_0x3d0736),_0x4bad13['items']['add'](_0x3d39a7),_0x4654f0['panelView']['children']['add'](_0x4bad13),_0x4654f0;}['_showDialog'](){const _0x2fcad2=this['editor'],_0x33865f=_0x2fcad2['locale'],_0x6336de=_0x2fcad2['plugins']['get']('Dialog'),_0x4d7f23=_0x2fcad2['plugins']['get']('RevisionTracker');function _0x2dbabf(_0x3050d6){_0x2fcad2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3050d6['revisionName']?_0x3050d6['revisionNameInputView']['errorText']=m(_0x33865f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2fcad2['plugins']['get'](u)['saveRevision']({'name':_0x3050d6['revisionName']}),_0x6336de['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2dbabf(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x6336de['show']({'id':'revisionSave','title':m(_0x33865f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2fcad2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x6336de['hide']()},{'label':m(_0x2fcad2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2a4d6e){_0x2a4d6e['bind']('isEnabled')['to'](_0x4d7f23,'isReady',_0x4d7f23,'isEnabled',_0x2fcad2,'isReadOnly',(_0x22526d,_0x5454b3,_0x2a8b18)=>_0x22526d&&_0x5454b3&&!_0x2a8b18);},'onExecute':()=>_0x2dbabf(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xec89b9=this['editor'],_0x15fb5c=_0xec89b9['locale'];this['_saveRevisionFormView']=new os(_0x15fb5c,_0xec89b9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x366255{['changeId'];['_model'];constructor(_0x78d099,_0x5b5213){super(_0x78d099),this['_model']=_0x5b5213,this['changeId']=_0x5b5213['id'];const _0x767701=this['bindTemplate'],_0x333a41=m(_0x78d099,_0x5b5213['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5b5213['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5b5213['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x767701['to']('type',_0x4099d0=>'ck-revision-change__'+_0x4099d0)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x333a41}]},{'text':'\x20'+_0x5b5213['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x418ed6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1ec7f7){super(),this['id']=_0x1ec7f7['id']||_0x3845a3(),this['author']=_0x1ec7f7['author'],this['type']=_0x1ec7f7['type'],this['data']=_0x1ec7f7['data']||{},this['rootName']=_0x1ec7f7['rootName'],this['set']('createdAt',_0x1ec7f7['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x573df7,_0x49a54c){this['newRevisionId']=_0x573df7,this['oldRevisionId']=_0x49a54c,this['changes']=new _0x564a8e();}['_setChanges'](_0x1ab562){for(const _0x476705 of _0x1ab562)this['changes']['add'](_0x476705);}}const Y={'c':_0x31bf21,'a':_0x541300,'e':_0x2215d9,'r':_0x240c22,'u':_0x336c2e};class d extends _0x3b516d{['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[_0xbb2f2a,_0x5204d8,j];}constructor(_0x165b9a){super(_0x165b9a),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',(_0x31b2f0,_0x4c432f,_0x4c6c82)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5ade63=>{for(const _0x155426 of this['editor']['editing']['view']['document']['roots'])_0x4c6c82?_0x5ade63['removeClass']('ck-editor__editable__overlay',_0x155426):_0x5ade63['addClass']('ck-editor__editable__overlay',_0x155426);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x31aeb9=>null!==_0x31aeb9),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4edd3c,_0x3b35f3,_0x1c833e)=>_0x4edd3c&&_0x1c833e?_0x3b35f3['changes']['getIndex'](_0x1c833e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x256aa3,_0x2ea0c4)=>_0x256aa3?_0x2ea0c4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5204d8);}['init'](){const _0x2dbcdc=this['editor'],_0x9d9997=new yt(_0x2dbcdc,{'direction':'backward'}),_0x2fd6e6=new yt(_0x2dbcdc,{'direction':'forward'});(_0x2dbcdc['commands']['add']('showPreviousChange',_0x9d9997),_0x2dbcdc['commands']['add']('showNextChange',_0x2fd6e6),_0x2dbcdc['commands']['add']('restoreRevision',new _t(_0x2dbcdc)),this['on']('change:numberOfChanges',()=>{_0x9d9997['refresh'](),_0x2fd6e6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2dbcdc['enableReadOnlyMode']('revision-viewer'),_0x2dbcdc['plugins']['has']('WidgetToolbarRepository'))&&_0x2dbcdc['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x50a7fe){await this['loadRevisionData'](_0x50a7fe);const _0x487149={};for(const _0x5b85ac in _0x50a7fe['diffData']){if(_0x50a7fe['diffData'][_0x5b85ac]['attachChange']&&!_0x50a7fe['diffData'][_0x5b85ac]['attachChange']['isAttached'])continue;const _0x1fff80=this['_removeRevisionMarkers'](JSON['parse'](_0x50a7fe['diffData'][_0x5b85ac]['insertions'])),_0x3f8579=this['editor']['editing']['view']['document'],_0x5def6c=new _0x7e311e(_0x3f8579,_0x1fff80['map'](_0xdf0bb5=>this['_getViewObj'](_0xdf0bb5)));this['editor']['data']['processor']['useFillerType']('marked'),_0x487149[_0x5b85ac]=this['editor']['data']['processor']['toData'](_0x5def6c),this['editor']['data']['processor']['useFillerType']('default');}return _0x487149;}async['getRevisionRootsAttributes'](_0x97f8ab){await this['loadRevisionData'](_0x97f8ab);const _0x14e83a={};for(const _0x4e0add in _0x97f8ab['diffData'])_0x97f8ab['diffData'][_0x4e0add]['attachChange']&&!_0x97f8ab['diffData'][_0x4e0add]['attachChange']['isAttached']||(_0x14e83a[_0x4e0add]=_0x97f8ab['diffData'][_0x4e0add]['attributesAfter']||{});return _0x14e83a;}['_removeRevisionMarkers'](_0x578703){return(_0x578703=_0x578703['filter'](_0x2e89a4=>!_0x2e89a4['name']||'revision-start'!==_0x2e89a4['name']&&'revision-end'!==_0x2e89a4['name']))['forEach'](_0x571ce3=>{'string'!=typeof _0x571ce3&&(_0x571ce3['children']=this['_removeRevisionMarkers'](_0x571ce3['children']),_0x571ce3['attributes']=_0x571ce3['attributes']['filter'](_0x54a793=>!_0x54a793[0x0]['startsWith']('data-revision-')));}),_0x578703;}async['compare'](_0x384551,_0xa952c1,_0x51a299=!0x1){if(!this['isEnabled'])return;const _0x3389db=this['diff'],_0x34e200=this['repository'],_0x120812='string'==typeof _0x384551?_0x34e200['getRevision'](_0x384551):_0x384551,_0x15542b='string'==typeof _0xa952c1?_0x34e200['getRevision'](_0xa952c1):_0xa952c1,_0x537e4f=_0x120812['id'],_0x38c72b=_0x15542b?_0x15542b['id']:null;if(!_0x51a299&&this['diff']&&this['diff']['newRevisionId']===_0x537e4f&&this['diff']['oldRevisionId']===_0x38c72b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x537e4f,_0x38c72b);const _0x4edec4=this['_getRevisionsRange'](_0x120812,_0x15542b,!0x0)['map'](_0x233dd9=>this['loadRevisionData'](_0x233dd9));return _0x4edec4['push'](new Promise(_0x545e95=>{setTimeout(_0x545e95,0x14);})),Promise['all'](_0x4edec4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x534738=this['_getDiff'](_0x537e4f,_0x38c72b);for(const _0x335b30 of _0x534738['changes'])this['_changeIdToChange']['set'](_0x335b30['id'],_0x335b30);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5dfd56=>{for(const _0x59149a of this['editor']['model']['document']['getRootNames']())_0x5dfd56['detachRoot'](_0x59149a);for(const _0x355b6f of Object['keys'](_0x534738['model'])){const _0x107468=_0x5dfd56['addRoot'](_0x355b6f);for(const _0x4d0032 of Object['keys'](_0x534738['attributes'][_0x355b6f]))_0x5dfd56['setAttribute'](_0x4d0032,_0x534738['attributes'][_0x355b6f][_0x4d0032],_0x107468);_0x5dfd56['insert'](_0x534738['model'][_0x355b6f],_0x107468,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x534738['changes'])),this['isReady']=!0x0;})['catch'](_0x36bb63=>{console['error'](_0x36bb63),this['_cleanUp'](),_0x3389db&&(this['diff']=_0x3389db),this['isReady']=!0x0;});}['addRevisionData'](_0x19b73e,_0x325a14){const _0x15059f=this['repository']['createRevision'](_0x19b73e);return _0x15059f['on']('_update',(_0x43e1be,_0x2c6c77,_0x4b469a)=>_0x325a14(_0x2c6c77,_0x4b469a,_0x15059f)),this['repository']['addRevision'](_0x15059f),_0x15059f;}['loadRevisionData'](_0x3c0eb6){if(!_0x3c0eb6||_0x3c0eb6['diffData'])return Promise['resolve']();{const _0x232c1e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x232c1e,'revisionId':_0x3c0eb6['id']})['then'](_0x176c94=>{_0x3c0eb6['_update']({'diffData':_0x176c94['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},_0x29d56c=>{for(const _0x26fdf2 of this['editor']['model']['document']['getRootNames']())_0x29d56c['detachRoot'](_0x26fdf2);});}['_sortAndFilterDiffChanges'](_0x474afd){const _0x5125c8=[],_0x4f618c=new Map();for(const _0x4aad33 of this['editor']['model']['document']['getRootNames']()){const _0x1a7e05=this['editor']['editing']['view']['getDomRoot'](_0x4aad33);if(!_0x1a7e05)continue;const _0x4b0697=_0x1a7e05['getClientRects']()['item'](0x0);_0x4b0697&&(_0x5125c8['push'](_0x4aad33),_0x4f618c['set'](_0x4aad33,_0x4b0697));}return _0x5125c8['sort']((_0x286432,_0x4b29c8)=>{const _0x5ba5f3=_0x4f618c['get'](_0x286432),_0x57b218=_0x4f618c['get'](_0x4b29c8);return _0x5ba5f3['y']-_0x57b218['y']||_0x5ba5f3['x']-_0x57b218['x'];}),(_0x474afd=_0x474afd['filter'](_0x57c741=>_0x5125c8['includes'](_0x57c741['rootName'])))['sort']((_0x1828f7,_0x59ded0)=>_0x5125c8['indexOf'](_0x1828f7['rootName'])-_0x5125c8['indexOf'](_0x59ded0['rootName'])),_0x474afd;}['_makeTape'](_0x298fcc){const _0x5d1e73=Array['from'](_0x298fcc['markers'])['filter'](([_0x59a5d1,_0x560298])=>_0x59a5d1['startsWith']('revision:')&&!_0x560298['isCollapsed']),_0x1b3261=Array['from'](this['editor']['model']['createRangeIn'](_0x298fcc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5d1e73['length'])for(const _0x196116 of _0x1b3261){const [_0x2125a1,_0x11972f]=_0x5d1e73[0x0],[,_0x2b0071,_0x4f00c8]=_0x2125a1['split'](':');if(_0x11972f['end']['isEqual'](_0x196116['nextPosition'])&&_0x5d1e73['shift'](),(_0x196116['previousPosition']['isEqual'](_0x11972f['start'])||_0x196116['previousPosition']['isAfter'](_0x11972f['start']))&&('insertion'==_0x2b0071?_0x196116['isAdded']={'userId':_0x4f00c8}:'deletion'==_0x2b0071&&(_0x196116['isRemoved']={'userId':_0x4f00c8})),0x0==_0x5d1e73['length'])break;}return _0x1b3261;}['_refreshStartEndIndex'](_0x4c70b4){const _0x19652e=new Map();for(let _0x13ebb8=0x0;_0x13ebb8<_0x4c70b4['length'];_0x13ebb8++)'text'===_0x4c70b4[_0x13ebb8]['type']?(_0x4c70b4[_0x13ebb8]['item']['startIndex']=_0x13ebb8,_0x4c70b4[_0x13ebb8]['item']['endIndex']=_0x13ebb8):('elementStart'===_0x4c70b4[_0x13ebb8]['type']?_0x4c70b4[_0x13ebb8]['item']['startIndex']=_0x13ebb8:'elementEnd'===_0x4c70b4[_0x13ebb8]['type']&&(_0x4c70b4[_0x13ebb8]['item']['endIndex']=_0x13ebb8),_0x19652e['set'](_0x4c70b4[_0x13ebb8]['id'],_0x13ebb8));for(const _0x5b8dff of _0x19652e['values']())'elementStart'===_0x4c70b4[_0x5b8dff]['type']?_0x4c70b4[_0x5b8dff]['item']['endIndex']=_0x19652e['get'](_0x4c70b4[_0x5b8dff]['pairId']):'elementEnd'===_0x4c70b4[_0x5b8dff]['type']&&(_0x4c70b4[_0x5b8dff]['item']['startIndex']=_0x19652e['get'](_0x4c70b4[_0x5b8dff]['pairId']));}['_processTape'](_0x41b17c){for(let _0x441e7b=0x0;_0x441e7b<_0x41b17c['length'];_0x441e7b++){if('elementStart'===_0x41b17c[_0x441e7b]['type'])_0x41b17c[_0x441e7b]['item']['startIndex']=_0x441e7b;else{if('elementEnd'===_0x41b17c[_0x441e7b]['type']){_0x41b17c[_0x441e7b]['item']['endIndex']=_0x441e7b;const _0x53b918=_0x41b17c[_0x441e7b]['item']['startIndex'];_0x41b17c[_0x53b918]['pairId']=_0x41b17c[_0x441e7b]['id'],_0x41b17c[_0x441e7b]['pairId']=_0x41b17c[_0x53b918]['id'];}else _0x41b17c[_0x441e7b]['item']['startIndex']=_0x441e7b,_0x41b17c[_0x441e7b]['item']['endIndex']=_0x441e7b,_0x41b17c[_0x441e7b]['pairId']=null;}_0x41b17c[_0x441e7b]['markersStart']||(_0x41b17c[_0x441e7b]['markersStart']=[],_0x41b17c[_0x441e7b]['markersEnd']=[]);}}['_markInsertions'](_0x5a8d3f,_0x27201b){const _0x3f61f7=_0x5a8d3f['filter'](_0x28ba59=>!_0x28ba59['isAdded']);for(let _0x400b4c=0x0;_0x400b4c<_0x27201b['length'];_0x400b4c++)_0x27201b[_0x400b4c]['isAdded']&&(_0x3f61f7[_0x400b4c]['isAdded']=_0x27201b[_0x400b4c]['isAdded']);}['_makeModelFromViewString'](_0x1b8f9c){const _0x1430b3=JSON['parse'](_0x1b8f9c),_0x1a1b23=this['editor']['editing']['view']['document'],_0x56badf=new _0x7e311e(_0x1a1b23,_0x1430b3['map'](_0x3fc0a7=>this['_getViewObj'](_0x3fc0a7)));return this['editor']['data']['toModel'](_0x56badf);}['_getViewObj'](_0x495989){const _0x26de5e=this['editor']['editing']['view']['document'];if('string'==typeof _0x495989)return new _0xdcc05a(_0x26de5e,_0x495989);{const _0x52b9ce=_0x495989['children']['map'](_0x2afbdc=>this['_getViewObj'](_0x2afbdc));return new(Y[_0x495989['type']]||_0x42db45)(_0x26de5e,_0x495989['name'],_0x495989['attributes'],_0x52b9ce);}}['_getDiff'](_0x113ed5,_0x11150b=null){const _0x1480f9=this['repository']['getRevision'](_0x113ed5),_0x51a5e4=_0x11150b?this['repository']['getRevision'](_0x11150b):null,_0x213a98=this['_getRevisionsRange'](_0x1480f9,_0x51a5e4),_0x1d9847=_0x213a98[_0x213a98['length']-0x1],_0x26898c=new Map(),_0x3b72e3={'model':{},'attributes':{},'changes':[]},_0x45244c=new Set(),_0x2b89f0=new Map();for(let _0x4ebb97=_0x213a98['length']-0x1;_0x4ebb97>=0x0;_0x4ebb97--){const _0x532538=_0x213a98[_0x4ebb97];for(const _0x7815b3 of Object['keys'](_0x532538['diffData']))if(_0x532538['diffData'][_0x7815b3]['attachChange']){const _0x3a5f7e=_0x532538['diffData'][_0x7815b3]['attachChange'];_0x3a5f7e['isAttached']?(_0x45244c['add'](_0x7815b3),_0x2b89f0['has'](_0x7815b3)&&_0x2b89f0['get'](_0x7815b3)['userId']==_0x3a5f7e['userId']?_0x2b89f0['delete'](_0x7815b3):_0x2b89f0['set'](_0x7815b3,_0x3a5f7e)):_0x2b89f0['has'](_0x7815b3)?(_0x45244c['delete'](_0x7815b3),_0x2b89f0['delete'](_0x7815b3)):(_0x45244c['add'](_0x7815b3),_0x2b89f0['set'](_0x7815b3,_0x3a5f7e));}else _0x45244c['add'](_0x7815b3);}for(const _0x127be1 of _0x45244c){const _0x17a1d9=_0x2b89f0['has'](_0x127be1)&&!_0x2b89f0['get'](_0x127be1)['isAttached'];let _0x355c82=_0x17a1d9?_0x213a98['length']-0x1:0x0;const _0x41aace=_0x17a1d9?-0x1:0x1;for(;_0x213a98[_0x355c82];){const _0x2f9250=_0x213a98[_0x355c82];if(_0x2f9250['diffData'][_0x127be1]){const _0x1280e1=_0x17a1d9?_0x2f9250['diffData'][_0x127be1]['attributesBefore']:_0x2f9250['diffData'][_0x127be1]['attributesAfter'];_0x3b72e3['attributes'][_0x127be1]=_0x1280e1?_0x5189cc(_0x1280e1):{};break;}_0x355c82+=_0x41aace;}}for(const _0x1bd1f7 of _0x213a98){_0x1bd1f7['model']={};for(const _0x5ee56f of _0x1bd1f7['authors'])_0x26898c['set'](_0x5ee56f['id'],_0x5ee56f);for(const _0x3aaef6 of _0x45244c){const _0x14f6d8=_0x1bd1f7['diffData'][_0x3aaef6]?_0x1bd1f7['diffData'][_0x3aaef6]['insertions']:'[]',_0x327ce9=_0x1bd1f7['diffData'][_0x3aaef6]?_0x1bd1f7['diffData'][_0x3aaef6]['deletions']:'[]';_0x1bd1f7['model'][_0x3aaef6]={'insertions':this['_makeModelFromViewString'](_0x14f6d8),'deletions':this['_makeModelFromViewString'](_0x327ce9)};}}for(const _0x54a584 of _0x45244c){let _0x5abc85=null,_0x3a6261=0x0;const _0x35b41f=new Map(Array['from'](_0x1480f9['model'][_0x54a584]['insertions']['markers'])['filter'](([_0x802a02])=>!_0x802a02['startsWith']('revision:')));let _0x14aef4=0x0;for(const _0x5980fa of _0x213a98){const _0x44f3c2=this['_makeTape'](_0x5980fa['model'][_0x54a584]['insertions']);_0x5980fa==_0x1480f9?(_0x5abc85=_0x44f3c2,_0x3a6261=_0x5abc85['length'],_0x5abc85['forEach'](_0x2d390e=>{_0x2d390e['id']=_0x14aef4++;}),this['_processTape'](_0x5abc85)):this['_markInsertions'](_0x5abc85,_0x44f3c2);const _0x8862b1=_0x5abc85['filter'](_0x1b30a6=>!_0x1b30a6['isAdded'])['map'](_0x332d44=>_0x332d44['id']);let _0x2b0274=0x0;const _0x9336c0=this['_makeTape'](_0x5980fa['model'][_0x54a584]['deletions']);_0x9336c0['forEach'](_0x110313=>{_0x110313['isRemoved']?_0x110313['id']=_0x3a6261++:_0x110313['id']=_0x8862b1[_0x2b0274++];}),this['_processTape'](_0x9336c0),this['_setDistance'](_0x5abc85,'isAdded'),this['_setDistance'](_0x9336c0,'isRemoved'),_0x5980fa==_0x1480f9&&this['_markMarkers'](_0x5abc85,_0x35b41f),_0x5abc85=this['_joinTapes'](_0x5abc85,_0x9336c0),this['_refreshStartEndIndex'](_0x5abc85),this['_setDistance'](_0x5abc85,'isRemoved');}_0x5abc85=_0x5abc85['filter'](_0x4a67f6=>!(_0x4a67f6['isAdded']&&_0x4a67f6['isRemoved']));const _0x15355a=new Map(_0x1d9847['model'][_0x54a584]['deletions']['markers']),_0x18825e=new Set(_0x35b41f['keys']());for(const _0x381138 of _0x15355a['keys']())_0x18825e['delete'](_0x381138);this['_markSuggestions'](_0x5abc85,_0x18825e),this['_fixObsoleteTags'](_0x5abc85),_0x5abc85=this['_removeMissingPairs'](_0x5abc85),_0x5abc85=this['_markMismatchedRemovedTags'](_0x5abc85),_0x5abc85=this['_removeUnsupportedChanges'](_0x5abc85);const {root:_0x176d15,changes:_0x264e53}=this['_makeModelFromTape'](_0x5abc85,_0x26898c,_0x54a584);_0x3b72e3['model'][_0x54a584]=_0x176d15;const _0x18d1ad=_0x2b89f0['get'](_0x54a584);if(_0x18d1ad){const _0x3b7f6f=_0x26898c['get'](_0x18d1ad['userId']),_0x56ca5a=new r({'author':_0x3b7f6f,'type':_0x18d1ad['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x54a584});_0x264e53['unshift'](_0x56ca5a),_0x3b72e3['attributes'][_0x54a584]['revisionHistoryAttachChange']=_0x56ca5a['id'];}_0x3b72e3['changes']=_0x3b72e3['changes']['concat'](_0x264e53);}return _0x3b72e3;}['_markMarkers'](_0x374c27,_0x4a18e5){for(let _0x5529ed=0x0;_0x5529ed<_0x374c27['length'];_0x5529ed++)for(const [_0x5664c7,_0x4a52e5]of _0x4a18e5)_0x4a52e5['start']['isEqual'](_0x374c27[_0x5529ed]['previousPosition'])&&_0x374c27[_0x5529ed]['markersStart']['push'](_0x5664c7),_0x4a52e5['end']['isEqual'](_0x374c27[_0x5529ed]['nextPosition'])&&_0x374c27[_0x5529ed]['markersEnd']['push'](_0x5664c7);}['_joinTapes'](_0x2fb380,_0x588eef){let _0x4a55ef=[],_0x4ef902=0x0,_0x1e4145=0x0;for(;_0x4ef902<_0x2fb380['length']||_0x1e4145<_0x588eef['length'];){const _0x3316bc=_0x2fb380[_0x4ef902]||{},_0x464373=_0x588eef[_0x1e4145]||{};if(_0x3316bc['id']==_0x464373['id'])_0x4ef902++,_0x1e4145++,_0x4a55ef['push'](_0x3316bc);else{if(_0x464373['isRemoved']&&_0x3316bc['isAdded']){const {commonTape:_0x593b5c,iEnd:_0x36ec83,jEnd:_0x3491ce}=this['_threeWayMerge'](_0x2fb380,_0x4ef902,_0x588eef,_0x1e4145);_0x4a55ef=_0x4a55ef['concat'](_0x593b5c),_0x4ef902=_0x36ec83,_0x1e4145=_0x3491ce;}else _0x464373['isRemoved']?(_0x1e4145++,_0x4a55ef['push'](_0x464373)):(_0x4ef902++,_0x4a55ef['push'](_0x3316bc));}}return _0x4a55ef;}['_markSuggestions'](_0x40a53d,_0x3e6184){const _0x5991dd=[];for(let _0x52356d=0x0;_0x52356d<_0x40a53d['length'];_0x52356d++){for(let _0x1999db=0x0;_0x1999db<_0x40a53d[_0x52356d]['markersStart']['length'];_0x1999db++){const _0x190e3b=_0x40a53d[_0x52356d]['markersStart'][_0x1999db];if(!_0x3e6184['has'](_0x190e3b))continue;const {group:_0x41e646,type:_0x1d0e6a,authorId:_0x5e4e44}=_0x5eaeae(_0x190e3b);'revision-suggestion'!=_0x41e646||'insertion'!=_0x1d0e6a&&'deletion'!=_0x1d0e6a||(_0x5991dd['unshift']({'type':_0x1d0e6a,'name':_0x190e3b,'userId':_0x5e4e44}),_0x40a53d[_0x52356d]['markersStart']['splice'](_0x1999db,0x1),_0x1999db--);}_0x150130(_0x40a53d[_0x52356d]);for(let _0x5a6f86=0x0;_0x5a6f86<_0x40a53d[_0x52356d]['markersEnd']['length'];_0x5a6f86++){const _0x300855=_0x40a53d[_0x52356d]['markersEnd'][_0x5a6f86];if(!_0x3e6184['has'](_0x300855))continue;const {group:_0x423356,type:_0x2a8c67}=_0x5eaeae(_0x300855);if('revision-suggestion'!=_0x423356||'insertion'!=_0x2a8c67&&'deletion'!=_0x2a8c67)continue;_0x40a53d[_0x52356d]['markersEnd']['splice'](_0x5a6f86,0x1),_0x5a6f86--;const _0x873e3a=_0x5991dd['findIndex'](_0x1b2d69=>_0x1b2d69['name']==_0x300855);_0x873e3a>-0x1&&_0x5991dd['splice'](_0x873e3a,0x1);}}function _0x5eaeae(_0xb8238){const _0x2b9f47=_0xb8238['split'](':');return{'group':_0x2b9f47[0x0],'type':_0x2b9f47[0x1],'subType':_0x2b9f47['length']>=0x5?_0x2b9f47[0x2]:null,'id':_0x2b9f47['length']<0x5?_0x2b9f47[0x2]:_0x2b9f47[0x3],'authorId':_0x2b9f47['length']<0x5?_0x2b9f47[0x3]:_0x2b9f47[0x4],'markerCount':0x6==_0x2b9f47['length']?_0x2b9f47[0x5]:null};}function _0x150130(_0x200cb3){for(let _0x32921f=0x0;_0x32921f<_0x5991dd['length'];_0x32921f++){if(_0x200cb3['isAdded']&&'insertion'==_0x5991dd[_0x32921f]['type'])return _0x200cb3['isAddSuggestion']=_0x5991dd[_0x32921f],void delete _0x200cb3['isAdded'];if(!_0x200cb3['isAdded']&&!_0x200cb3['isRemoved']&&'deletion'==_0x5991dd[_0x32921f]['type'])return void(_0x200cb3['isRemoveSuggestion']=_0x5991dd[_0x32921f]);}}}['_setDistance'](_0x191b17,_0x467372){let _0x173a42=0x0,_0x473c53=!0x1;const _0x30273f=new Map();for(const _0x4aa0f0 of _0x191b17)_0x4aa0f0[_0x467372]?_0x473c53&&(_0x173a42++,_0x473c53=!0x1):(_0x173a42++,_0x473c53=!0x0),_0x30273f['set'](_0x4aa0f0['id'],_0x173a42);for(let _0x312535=0x0;_0x312535<_0x191b17['length'];_0x312535++){if('isRemoved'==_0x467372&&_0x191b17[_0x312535]['isAdded']||'isAdded'==_0x467372&&_0x191b17[_0x312535]['isRemoved'])continue;if('text'==_0x191b17[_0x312535]['type']){_0x191b17[_0x312535]['distance']=0x0;continue;}const _0x271b97=_0x30273f['get'](_0x191b17[_0x312535]['pairId']),_0x1fe899=_0x30273f['get'](_0x191b17[_0x312535]['id']);_0x191b17[_0x312535]['distance']=_0x271b97-_0x1fe899;}}['_getRevisionsRange'](_0x2770f0,_0x3ab31f,_0x2885e9=!0x1){const _0x5cf631=[];let _0x4ab77c=this['repository']['getIndex'](_0x2770f0),_0x3fb294=this['repository']['getIndex'](_0x3ab31f);for(-0x1==_0x3fb294&&(_0x3fb294=this['repository']['_revisions']['length'],_0x2885e9=!0x1);_0x4ab77c<_0x3fb294;)_0x5cf631['push'](this['repository']['getRevision'](_0x4ab77c)),_0x4ab77c++;return _0x2885e9&&_0x5cf631['push'](this['repository']['getRevision'](_0x4ab77c)),_0x5cf631;}['_threeWayMerge'](_0x56113f,_0x35f43c,_0x18153c,_0x2d4b30){const _0x291f06=this['editor']['model']['schema'];let _0x79887f=_0x35f43c;for(;_0x56113f[_0x79887f]&&_0x56113f[_0x79887f]['isAdded'];)_0x79887f++;let _0x52883e=_0x2d4b30;for(;_0x18153c[_0x52883e]&&_0x18153c[_0x52883e]['isRemoved'];)_0x52883e++;_0x331bd1(_0x56113f,_0x35f43c,_0x79887f),_0x331bd1(_0x18153c,_0x2d4b30,_0x52883e);const _0x46e0da=_0x18153c['slice'](_0x2d4b30,_0x52883e)['concat'](_0x56113f['slice'](_0x35f43c,_0x79887f));return _0x46e0da['sort']((_0x3f2f67,_0x44de61)=>_0x3f2f67['side']!=_0x44de61['side']?_0x3f2f67['side']-_0x44de61['side']:_0x3f2f67['level']!=_0x44de61['level']?_0x3f2f67['level']-_0x44de61['level']:_0x3f2f67['distance']!=_0x44de61['distance']?_0x44de61['distance']-_0x3f2f67['distance']:!!_0x3f2f67['isAdded']!=!!_0x44de61['isAdded']?-0x1==_0x3f2f67['side']||0x0==_0x3f2f67['side']?_0x3f2f67['isAdded']?-0x1:0x1:_0x3f2f67['isAdded']?0x1:-0x1:_0x3f2f67['index']-_0x44de61['index']),{'commonTape':_0x46e0da,'iEnd':_0x79887f,'jEnd':_0x52883e};function _0x331bd1(_0x3f6f02,_0x104e92,_0x12ecb3){let _0xbcffe4=-0x1,_0x10971e=Number['POSITIVE_INFINITY'],_0x45cf2d=!0x0;for(let _0x3e4ecc=_0x104e92;_0x3e4ecc<_0x12ecb3;_0x3e4ecc++)if(_0x291f06['isInline'](_0x3f6f02[_0x3e4ecc]['item'])||(_0x45cf2d=!0x1),_0x3f6f02[_0x3e4ecc]['item']['startIndex']<_0x104e92&&(_0xbcffe4=_0x3e4ecc),_0x3f6f02[_0x3e4ecc]['item']['endIndex']>=_0x12ecb3){_0x10971e=_0x3e4ecc;break;}_0x45cf2d&&(_0xbcffe4=_0x12ecb3-0x1);for(let _0x11424e=_0x104e92;_0x11424e<_0x12ecb3;_0x11424e++)_0x3f6f02[_0x11424e]['side']=_0x11424e<=_0xbcffe4?-0x1:_0x11424e<_0x10971e?0x0:0x1,_0x3f6f02[_0x11424e]['index']=_0x11424e;let _0x4a3b1b=0x0;for(let _0x409ae2=_0x104e92;_0x409ae2<=_0xbcffe4;_0x409ae2++)0x0==_0x3f6f02[_0x409ae2]['distance']?_0x3f6f02[_0x409ae2]['level']=_0x4a3b1b:(_0x4a3b1b++,_0x3f6f02[_0x409ae2]['level']=_0x4a3b1b,_0x4a3b1b++);for(let _0x46726c=_0x104e92;_0x46726c<_0x12ecb3;_0x46726c++)0x0==_0x3f6f02[_0x46726c]['side']&&(_0x3f6f02[_0x46726c]['level']=_0x4a3b1b);_0x4a3b1b=0x0;for(let _0xf0c0bf=_0x12ecb3-0x1;_0xf0c0bf>=_0x10971e;_0xf0c0bf--)0x0==_0x3f6f02[_0xf0c0bf]['distance']?_0x3f6f02[_0xf0c0bf]['level']=_0x4a3b1b:(_0x4a3b1b--,_0x3f6f02[_0xf0c0bf]['level']=_0x4a3b1b,_0x4a3b1b--);}}['_fixObsoleteTags'](_0x3b4ded){const _0x39ccc6=new Map(),_0x48b2c9=this['editor']['model']['schema'];for(let _0x2737b5=0x1;_0x2737b5<_0x3b4ded['length'];_0x2737b5++){let _0x37a0fe,_0x6055b6,_0x28ebb2;const _0x2685cb=_0x3b4ded[_0x2737b5],_0x35fe3d=_0x3b4ded[_0x2737b5-0x1];if('text'==_0x2685cb['type'])continue;if(_0x2685cb['type']!=_0x35fe3d['type'])continue;if(!_0x48b2c9['isBlock'](_0x35fe3d['item'])||_0x48b2c9['isLimit'](_0x35fe3d['item']))continue;if(!_0x48b2c9['isBlock'](_0x2685cb['item'])||_0x48b2c9['isLimit'](_0x2685cb['item']))continue;if((_0x3b4ded[_0x2737b5]['isAdded']||_0x3b4ded[_0x2737b5]['isAddSuggestion'])&&_0x3b4ded[_0x2737b5-0x1]['isRemoved'])_0x37a0fe=_0x3b4ded[_0x2737b5],_0x6055b6=_0x3b4ded[_0x2737b5-0x1],_0x28ebb2=_0x2737b5-0x1;else{if(!_0x3b4ded[_0x2737b5]['isRemoved']||!_0x3b4ded[_0x2737b5-0x1]['isAdded']&&!_0x3b4ded[_0x2737b5-0x1]['isAddSuggestion'])continue;_0x37a0fe=_0x3b4ded[_0x2737b5-0x1],_0x6055b6=_0x3b4ded[_0x2737b5],_0x28ebb2=_0x2737b5;}const _0x3f104b=_0x37a0fe['level']==_0x6055b6['level'],_0xcc647e=Math['abs'](_0x37a0fe['level'])<Math['abs'](_0x6055b6['level'])&&0x0==_0x6055b6['distance'];(_0x3f104b||_0xcc647e)&&(_0x39ccc6['set'](_0x6055b6['id'],_0x37a0fe['id']),_0x3b4ded['splice'](_0x28ebb2,0x1),_0x2737b5--,_0x37a0fe['isAdded']=!0x1);}for(let _0xcfe98d=0x0;_0xcfe98d<_0x3b4ded['length'];_0xcfe98d++)_0x39ccc6['has'](_0x3b4ded[_0xcfe98d]['pairId'])&&(_0x3b4ded[_0xcfe98d]['pairId']=_0x39ccc6['get'](_0x3b4ded[_0xcfe98d]['pairId']));}['_removeMissingPairs'](_0x16910b){const _0x53e76e=new Set(_0x16910b['map'](_0x218b33=>_0x218b33['id']));for(let _0x200ee3=0x0;_0x200ee3<_0x16910b['length'];_0x200ee3++)_0x53e76e['has'](_0x16910b[_0x200ee3]['pairId'])||0x0==_0x16910b[_0x200ee3]['distance']||(_0x16910b[_0x200ee3]['isIncorrect']=!0x0);return _0x16910b['filter'](_0x1d6d28=>!_0x1d6d28['isIncorrect']);}['_markMismatchedRemovedTags'](_0x398e26){const _0x3852dd=new Set();for(let _0x7a4212=0x0;_0x7a4212<_0x398e26['length'];_0x7a4212++){if(_0x3852dd['has'](_0x398e26[_0x7a4212]['id'])&&_0x398e26[_0x7a4212]['isRemoved']&&(_0x398e26[_0x7a4212]['isIncorrect']=!0x0),_0x398e26[_0x7a4212]['isIncorrect'])continue;if(0x0==_0x398e26[_0x7a4212]['distance'])continue;if('elementStart'!=_0x398e26[_0x7a4212]['type'])continue;if(null==_0x398e26[_0x7a4212]['pairId'])continue;let _0x452950=_0x7a4212+0x1,_0x1674f9=0x0;for(;_0x398e26[_0x452950]['id']!=_0x398e26[_0x7a4212]['pairId'];)'elementStart'==_0x398e26[_0x452950]['type']?_0x1674f9++:'elementEnd'==_0x398e26[_0x452950]['type']&&_0x1674f9--,_0x452950++;if(0x0!=_0x1674f9){if(_0x398e26[_0x7a4212]['isRemoved'])_0x398e26[_0x7a4212]['isIncorrect']=!0x0;else{for(;_0x452950!=_0x7a4212;)_0x398e26[_0x452950]['isRemoved']&&0x0!=_0x398e26[_0x452950]['distance']&&(_0x398e26[_0x452950]['isIncorrect']=!0x0,_0x3852dd['add'](_0x398e26[_0x452950]['pairId'])),_0x452950--;}}}return _0x398e26['filter'](_0x2b25b0=>!_0x2b25b0['isIncorrect']);}['_removeUnsupportedChanges'](_0x7561e){const _0x5da598=this['editor']['model']['schema'];for(let _0x28ff4f=0x0;_0x28ff4f<_0x7561e['length'];_0x28ff4f++){if(!(_0x7561e[_0x28ff4f]['isAdded']||_0x7561e[_0x28ff4f]['isAddSuggestion']||_0x7561e[_0x28ff4f]['isRemoved']||_0x7561e[_0x28ff4f]['isRemoveSuggestion']))continue;if(0x0==_0x7561e[_0x28ff4f]['distance'])continue;const _0x18aaa4=_0x7561e[_0x28ff4f]['item'];_0x5da598['isBlock'](_0x18aaa4)||_0x5da598['isLimit'](_0x18aaa4)||(_0x7561e[_0x28ff4f]['isAdded']&&delete _0x7561e[_0x28ff4f]['isAdded'],_0x7561e[_0x28ff4f]['isAddSuggestion']&&delete _0x7561e[_0x28ff4f]['isAddSuggestion'],_0x7561e[_0x28ff4f]['isRemoveSuggestion']&&delete _0x7561e[_0x28ff4f]['isRemoveSuggestion'],_0x7561e[_0x28ff4f]['isRemoved']&&(_0x7561e[_0x28ff4f]['isIncorrect']=!0x0));}return _0x7561e['filter'](_0x3239bc=>!_0x3239bc['isIncorrect']);}['_makeModelFromTape'](_0x3dccbf,_0x468014,_0x57804e){const _0x9242ad=new gt(),_0x2168f3=[],_0x86f1a1=new Map(),_0x4e300a=this['editor']['model'],_0x5bca41=_0x4e300a['schema'],_0x21f375=[_0x9242ad],_0xa726c2={},_0x1c601a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1cb188=null;const _0x50aa86=[0x0];for(let _0x36bb52=0x0;_0x36bb52<_0x3dccbf['length'];_0x36bb52++)if('elementStart'===_0x3dccbf[_0x36bb52]['type']){_0x3dccbf[_0x36bb52]['previousPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86);const _0x3c11a2=new ut(_0x3dccbf[_0x36bb52]['item']['name'],_0x3dccbf[_0x36bb52]['item']['getAttributes']());_0x21f375[0x0]['_appendChild'](_0x3c11a2),_0x50aa86['push'](0x0),_0x21f375['unshift'](_0x3c11a2),_0x3dccbf[_0x36bb52]['nextPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86);}else'elementEnd'===_0x3dccbf[_0x36bb52]['type']?(_0x21f375['shift'](),_0x3dccbf[_0x36bb52]['previousPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86),_0x50aa86['pop'](),_0x50aa86[_0x50aa86['length']-0x1]++,_0x3dccbf[_0x36bb52]['nextPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86)):(_0x3dccbf[_0x36bb52]['previousPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86),_0x1cb188?_0x1cb188['_data']+=_0x3dccbf[_0x36bb52]['item']['data']:_0x1cb188=new wt(_0x3dccbf[_0x36bb52]['item']['data'],_0x3dccbf[_0x36bb52]['item']['getAttributes']()),_0x3dccbf[_0x36bb52+0x1]&&'text'===_0x3dccbf[_0x36bb52+0x1]['type']&&_0x49351b(_0x1cb188,_0x3dccbf[_0x36bb52+0x1]['item'])||(_0x21f375[0x0]['_appendChild'](_0x1cb188),_0x1cb188=null),_0x50aa86[_0x50aa86['length']-0x1]+=_0x3dccbf[_0x36bb52]['item']['offsetSize'],_0x3dccbf[_0x36bb52]['nextPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86));for(let _0x5274c8=0x0;_0x5274c8<_0x3dccbf['length'];_0x5274c8++){const _0x48092e=_0x3dccbf[_0x5274c8]['previousPosition'],_0x3c312d=_0x3dccbf[_0x5274c8]['nextPosition'];for(const _0x48bd0d of _0x3dccbf[_0x5274c8]['markersStart'])_0x86f1a1['set'](_0x48bd0d,{'start':_0x48092e,'end':null});_0x1bcfd4('isRemoveSuggestion',_0x5274c8,_0x48092e,_0x3c312d),_0x1bcfd4('isAddSuggestion',_0x5274c8,_0x48092e,_0x3c312d),_0x1bcfd4('isRemoved',_0x5274c8,_0x48092e,_0x3c312d),_0x1bcfd4('isAdded',_0x5274c8,_0x48092e,_0x3c312d);for(const _0x304d79 of _0x3dccbf[_0x5274c8]['markersEnd']){_0x86f1a1['get'](_0x304d79)['end']=_0x3c312d;}}for(const [_0x2e0b7e,_0x583a59]of _0x86f1a1){const _0x1122ca=this['editor']['model']['createRange'](_0x583a59['start'],_0x583a59['end']);_0x9242ad['markers']['set'](_0x2e0b7e,_0x1122ca);}return _0x2168f3['sort']((_0x14b65a,_0x47466e)=>{const _0x41744e=_0x9242ad['markers']['get']('revision:'+_0x14b65a['id']),_0x325592=_0x9242ad['markers']['get']('revision:'+_0x47466e['id']);return _0x41744e['start']['isBefore'](_0x325592['start'])?-0x1:_0x41744e['start']['isAfter'](_0x325592['start'])?0x1:_0x41744e['end']['isBefore'](_0x325592['end'])?-0x1:_0x41744e['end']['isAfter'](_0x325592['end'])?0x1:'add'===_0x14b65a['type']?-0x1:0x1;}),{'root':_0x9242ad,'changes':_0x2168f3};function _0x1bcfd4(_0x2c4101,_0x4a4612,_0x2f8e53,_0x1be45f){const _0x21ec26=!!_0x3dccbf[_0x4a4612][_0x2c4101],_0x32bc54=_0x21ec26?_0x3dccbf[_0x4a4612][_0x2c4101]['userId']:null,_0x5970fe=_0x4a4612===_0x3dccbf['length']-0x1,_0x41efbd=_0x1c601a[_0x2c4101][0x0],_0x4bb739=_0x5bca41['isObject'](_0x3dccbf[_0x4a4612]['item']);!_0xa726c2[_0x2c4101]&&_0x21ec26?_0xa726c2[_0x2c4101]={'start':_0x2f8e53,'tapeItem':_0x3dccbf[_0x4a4612],'userId':_0x32bc54,'type':_0x2c4101}:_0xa726c2[_0x2c4101]&&!_0x21ec26?(_0xa726c2[_0x2c4101]['end']=_0x2f8e53,_0x157983(_0xa726c2[_0x2c4101]),_0xa726c2[_0x2c4101]=null):_0xa726c2[_0x2c4101]&&_0x21ec26&&_0xa726c2[_0x2c4101]['userId']!==_0x32bc54&&(_0xa726c2[_0x2c4101]['end']=_0x2f8e53,_0x41efbd&&_0x41efbd['userId']===_0xa726c2[_0x2c4101]['userId']||_0x157983(_0xa726c2[_0x2c4101]),_0xa726c2[_0x2c4101]={'start':_0x2f8e53,'tapeItem':_0x3dccbf[_0x4a4612],'userId':_0x32bc54,'type':_0x2c4101}),_0xa726c2[_0x2c4101]&&_0x4bb739&&('elementStart'!==_0x3dccbf[_0x4a4612]['type']||_0x41efbd&&_0x41efbd['userId']===_0x32bc54||_0x1c601a[_0x2c4101]['unshift']({'userId':_0x32bc54,'object':_0x3dccbf[_0x4a4612]['item'],'change':_0xa726c2[_0x2c4101]}),'elementEnd'===_0x3dccbf[_0x4a4612]['type']&&_0x41efbd&&_0x41efbd['object']===_0x3dccbf[_0x4a4612]['item']&&(_0x1c601a[_0x2c4101]['shift'](),_0xa726c2[_0x2c4101]=_0x41efbd['change'])),_0xa726c2[_0x2c4101]&&_0x5970fe&&(_0xa726c2[_0x2c4101]['end']=_0x1be45f,_0x157983(_0xa726c2[_0x2c4101]),_0xa726c2[_0x2c4101]=null);}function _0x157983({start:_0x19b36c,end:_0x4c8217,tapeItem:_0xbc9f3,userId:_0x5cb8bd,type:_0x3d6786}){const _0x6da308=_0xbc9f3['item'],_0x8cd3db=_0x4e300a['schema']['isBlock'](_0x6da308)&&!_0x4e300a['schema']['isLimit'](_0x6da308),_0x5c5aee=_0x19b36c['nodeAfter']==_0x4c8217['parent']&&_0x4c8217['isAtStart'];if(_0x8cd3db&&_0x5c5aee)return;const _0x25acf4=_0x4e300a['createRange'](_0x19b36c,_0x4c8217),_0x54c08b=_0x468014['get'](_0x5cb8bd),_0x701ced=new r({'author':_0x54c08b,'type':'isAdded'==_0x3d6786||'isAddSuggestion'==_0x3d6786?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3d6786||'isRemoveSuggestion'==_0x3d6786},'createdAt':new Date(),'rootName':_0x57804e});_0x2168f3['push'](_0x701ced),_0x9242ad['markers']['set']('revision:'+_0x701ced['id'],_0x25acf4);}function _0x49351b(_0x3b7975,_0xba7f2e){const _0x413146=_0x3b7975['getAttributes'](),_0x156097=_0xba7f2e['getAttributes']();for(const _0x2f8197 of _0x413146){if(_0x2f8197[0x1]!==_0xba7f2e['getAttribute'](_0x2f8197[0x0]))return!0x1;_0x156097['next']();}return _0x156097['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3f4aea=>{const _0x439d0c=_0x3f4aea['markerName']['split'](':')[0x1],_0x5ce74b=this['_getChangeFromId'](_0x439d0c);if(!_0x5ce74b)return null;const _0x5f1769='add'==_0x5ce74b['type']?'insertion':'deletion',_0x529cf4=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5f1769];return _0x5ce74b['data']['isSuggestion']&&_0x529cf4['push']('ck-suggestion-marker-'+_0x5f1769+'-new'),this['activeChange']==_0x5ce74b&&_0x529cf4['push']('ck-suggestion-marker--active'),{'classes':_0x529cf4,'attributes':{'data-change-id':_0x439d0c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x259622=>{_0x259622['on']('element:pre',(_0xa323a7,_0xc6963,_0x1dc74d)=>{const _0x1dbe5b=_0xc6963['viewItem']['getChild'](0x0);if(!_0x1dbe5b||!_0x1dbe5b['is']('element','code'))return;if(!_0x1dc74d['consumable']['consume'](_0x1dbe5b,{'attributes':['vid_start','vid_end']}))return;const _0x2cf4c6=_0xc6963['modelRange']['start']['nodeAfter'];_0x1dc74d['writer']['setAttribute']('vid_start',_0x1dbe5b['getAttribute']('vid_start'),_0x2cf4c6),_0x1dc74d['writer']['setAttribute']('vid_end',_0x1dbe5b['getAttribute']('vid_end'),_0x2cf4c6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x21f5d7=>{_0x21f5d7['on']('element',(_0x21adb4,_0x357bb7,_0x1edefd)=>{if(!_0x1edefd['consumable']['consume'](_0x357bb7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x357bb7['modelRange']['isCollapsed'])return;const _0x4b4217=_0x357bb7['modelRange']['start']['nodeAfter'];_0x4b4217['hasAttribute']('vid_start')||_0x4b4217['hasAttribute']('vid')||(_0x1edefd['writer']['setAttribute']('vid_start',_0x357bb7['viewItem']['getAttribute']('vid_start'),_0x4b4217),_0x1edefd['writer']['setAttribute']('vid_end',_0x357bb7['viewItem']['getAttribute']('vid_end'),_0x4b4217));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5029f5=>_0x5029f5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2093fb,[,_0x55a56b])=>{['vid_start','vid_end','vid']['includes'](_0x55a56b)&&(_0x2093fb['return']=!0x0,_0x2093fb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x8deed7=>{_0x8deed7['on']('attribute:vid',(_0x327193,_0x2698de,_0x5cf35d)=>{if('\x20'!=_0x2698de['item']['data']||_0x2698de['item']['parent']['maxOffset']>0x1)return;if(!_0x5cf35d['consumable']['consume'](_0x2698de['item'],_0x327193['name']))return;const _0x4dad0f=_0x5cf35d['writer'],_0x3aecca=_0x5cf35d['mapper']['toViewRange'](_0x2698de['range']);_0x4dad0f['wrap'](_0x3aecca,_0x4dad0f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x134740){const _0x1c122c=_0x134740['plugins']['get']('RevisionViewer');return(_0x160869,_0x10b6eb,_0x552867)=>{const _0x7d00ec=_0x10b6eb['markerName']['split'](':')[0x1],_0x38fcd9=_0x1c122c['_getChangeFromId'](_0x7d00ec);if(!_0x38fcd9)return null;const _0x3854c1='add'==_0x38fcd9['type']?'split':'merge';if(!_0x552867['consumable']['test'](_0x10b6eb['markerRange'],_0x160869['name']))return;const _0xc877e7=_0x10b6eb['markerRange']['getWalker'](),_0x4e021f=_0x10b6eb['markerRange']['start'],_0xe182d2=_0x134740['model']['schema'];let _0x50fa97=null,_0x3d3bbc=null,_0x11092b=!0x1,_0x2ee522=!0x1;for(const _0x4f7d1c of _0xc877e7){const _0x5f49cc=_0x4f7d1c['item'];_0x11092b=_0x11092b||_0xe182d2['isContent'](_0x5f49cc);const _0x4dc3e3=_0x552867['mapper']['toViewElement'](_0x5f49cc);if(_0x4dc3e3&&_0x4dc3e3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f7d1c['type']&&(_0xe182d2['isBlock'](_0x5f49cc)&&!_0xe182d2['isLimit'](_0x5f49cc)&&(_0x5f49cc['nextSibling']||_0x4e021f['isAtEnd']?_0x50fa97&&_0x50fa97['parent']==_0x5f49cc||(_0x50fa97=_0x5f49cc,_0x4af04e(_0x4f7d1c['previousPosition']),_0x2ee522=!0x0):_0x3d3bbc=_0x3d3bbc||_0x4f7d1c['previousPosition']));}function _0x4af04e(_0x5c8ec6){const _0x7d5ff=_0x552867['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3854c1}),_0x563165=_0x552867['mapper']['toViewPosition'](_0x5c8ec6);_0x38fcd9['data']['isSuggestion']&&_0x552867['writer']['addClass']('ck-suggestion-marker-'+_0x3854c1+'-new',_0x7d5ff),_0x1c122c['activeChange']==_0x38fcd9&&_0x552867['writer']['addClass']('ck-suggestion-marker--active',_0x7d5ff),_0x552867['writer']['insert'](_0x563165,_0x7d5ff),_0x552867['mapper']['bindElementToMarker'](_0x7d5ff,_0x10b6eb['markerName']);}_0x11092b||_0x2ee522||!_0x3d3bbc||_0x4af04e(_0x3d3bbc);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2839ec,_0x28be03,_0x40ba68)=>{const _0x49d440=_0x40ba68['mapper']['markerNameToElements'](_0x28be03['markerName']);if(_0x49d440){for(const _0x59f54f of _0x49d440)(_0x59f54f['hasClass']('ck-suggestion-marker-split')||_0x59f54f['hasClass']('ck-suggestion-marker-merge'))&&(_0x40ba68['mapper']['unbindElementFromMarkerName'](_0x59f54f,_0x28be03['markerName']),_0x40ba68['writer']['remove'](_0x59f54f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x36d0cc,_0xd8ab85,_0x303830)=>{const _0x234371=_0xd8ab85['markerName']['split'](':')[0x1],_0x253774=this['_getChangeFromId'](_0x234371);if(!_0x253774)return null;const _0xd45c6e='add'==_0x253774['type']?'split':'merge';if(_0x303830['consumable']['test'](_0xd8ab85['markerRange'],_0x36d0cc['name']))for(const _0x240432 of _0xd8ab85['markerRange']['getItems']()){if(!_0x240432['is']('element','softBreak'))continue;const _0xd0f896=_0x303830['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd45c6e}),_0x2e58a8=_0x303830['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x240432));_0x253774['data']['isSuggestion']&&_0x303830['writer']['addClass']('ck-suggestion-marker-'+_0xd45c6e+'-new',_0xd0f896),this['activeChange']==_0x253774&&_0x303830['writer']['addClass']('ck-suggestion-marker--active',_0xd0f896),_0x303830['writer']['insert'](_0x2e58a8,_0xd0f896),_0x303830['mapper']['bindElementToMarker'](_0xd0f896,_0xd8ab85['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1dace5=>{for(const _0x3d3026 of this['editor']['model']['document']['getRootNames']()){const _0x4fbd53=this['editor']['model']['document']['getRoot'](_0x3d3026),_0x26ce1d=this['editor']['editing']['view']['document']['getRoot'](_0x3d3026);if(_0x26ce1d){const _0x29ad98=_0x4fbd53['getAttribute']('revisionHistoryAttachChange');if(_0x1dace5['removeAttribute']('data-change-id',_0x26ce1d),_0x1dace5['removeClass']('ck-revision-history-root-add',_0x26ce1d),_0x1dace5['removeClass']('ck-revision-history-root-remove',_0x26ce1d),_0x1dace5['removeClass']('ck-revision-history-root--active',_0x26ce1d),_0x29ad98){const _0x123142=this['_getChangeFromId'](_0x29ad98);if(!_0x123142)return null;_0x1dace5['setAttribute']('data-change-id',_0x29ad98,_0x26ce1d),_0x1dace5['addClass']('ck-revision-history-root-'+_0x123142['type'],_0x26ce1d),this['activeChange']==_0x123142&&_0x1dace5['addClass']('ck-revision-history-root--active',_0x26ce1d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2f1cb2=>'revision-comment:'+_0x2f1cb2,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x40bd17=>'revision-suggestion:'+_0x40bd17,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xcf3986=>({'name':'suggestion:'+_0xcf3986,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x31df23=>{const _0x405661=_0x31df23['markerName']['split'](':')[0x1];return'insertion'!=_0x405661&&'deletion'!=_0x405661?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x405661]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xbc3190,_0x4082f5,_0x267f13)=>{const _0x3257a9=_0x267f13['mapper']['markerNameToElements'](_0x4082f5['markerName']);if(_0x3257a9){for(const _0x26728b of _0x3257a9)_0x26728b['is']('uiElement')&&(_0x267f13['mapper']['unbindElementFromMarkerName'](_0x26728b,_0x4082f5['markerName']),_0x267f13['writer']['remove'](_0x26728b));}},{'priority':'high'});}['_getChangeFromId'](_0x8021b7){return this['_changeIdToChange']['get'](_0x8021b7);}['_getViewForChange'](_0x23be27){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x23be27),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5022eb,_0x3c0255,_0x2d0df0,_0x5467a5)=>{_0x5467a5&&this['_balloon']['remove'](_0x5467a5),_0x2d0df0&&(this['_balloon']['add']({'view':_0x2d0df0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x40bb40=this['editor']['editing'],_0x214abc=this['_getChangeFromId'](_0x2d0df0['changeId']);let _0x36e887;if(_0x214abc['data']['isOnRoot']){const _0x27561a=_0x40bb40['view']['getDomRoot'](_0x214abc['rootName']);_0x36e887=Array['from'](_0x27561a['getClientRects']());}else{const _0x19a9dd=this['editor']['model']['markers']['get']('revision:'+_0x2d0df0['changeId']);_0x36e887=Array['from'](_0x40bb40['mapper']['markerNameToElements'](_0x19a9dd['name']))['map'](_0x4410c1=>_0x40bb40['view']['domConverter']['mapViewToDom'](_0x4410c1))['map'](_0x1c0143=>Array['from'](_0x1c0143['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x36e887[0x0];return _0x36e887['find'](_0x381778=>_0x381778['top']-0x3<=this['_activeViewTarget']['y']&&_0x381778['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x381778['left']-0x3<=this['_activeViewTarget']['x']&&_0x381778['right']+0x3>=this['_activeViewTarget']['x'])||_0x36e887[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x234f51,_0x22c700,_0x5a7b91,_0xd12f50)=>{this['activeView']=_0x5a7b91?this['_getViewForChange'](_0x5a7b91):null,this['editor']['model']['change'](()=>{const _0x406106=this['editor']['editing'];_0xd12f50&&(_0xd12f50['data']['isOnRoot']?_0x406106['view']['change'](_0x1a526e=>{_0x1a526e['removeClass']('ck-revision-history-root--active',_0x406106['view']['document']['getRoot'](_0xd12f50['rootName']));}):_0x406106['reconvertMarker']('revision:'+_0xd12f50['id'])),_0x5a7b91&&(_0x5a7b91['data']['isOnRoot']?_0x406106['view']['change'](_0x83876a=>{_0x83876a['addClass']('ck-revision-history-root--active',_0x406106['view']['document']['getRoot'](_0x5a7b91['rootName']));}):_0x406106['reconvertMarker']('revision:'+_0x5a7b91['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1199aa,_0x203b8e)=>{if(this['activeChange'])return;const _0x477a8d=this['_findChangeIdFromDomTarget'](_0x203b8e['target']),_0x547b87=this['_changeIdToChange']['get'](_0x477a8d);_0x547b87?(this['_activeViewTarget']={'x':_0x203b8e['domEvent']['x'],'y':_0x203b8e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x547b87)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1f6aa5,_0x26381b)=>{const _0x439995=this['_findChangeIdFromDomTarget'](_0x26381b['target']),_0x4f2840=this['_changeIdToChange']['get'](_0x439995);_0x4f2840?(this['_activeViewTarget']={'x':_0x26381b['domEvent']['x'],'y':_0x26381b['domEvent']['y']},_0x4f2840===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4f2840):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1107b8){do{const _0x5ba2fc=_0x1107b8['getAttribute']('data-change-id');if(_0x5ba2fc)return _0x5ba2fc;_0x1107b8=_0x1107b8['parent'];}while(_0x1107b8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x14cc55=>{for(const _0x1c35c1 of this['editor']['model']['markers'])_0x14cc55['removeMarker'](_0x1c35c1);});}}function Z(_0x5b94fe,_0x2d6be1){return(_0x52f89a,_0x44e08a,_0x4eb8dd)=>{if(!_0x4eb8dd['consumable']['test'](_0x44e08a['markerRange'],_0x52f89a['name']))return;const _0x5bb527=_0x44e08a['markerRange']['getWalker'](),_0x11991e=_0x44e08a['markerRange']['start'],_0x5eecfd=_0x5b94fe['model']['schema'];let _0x50f196=null,_0x5e97b4=null,_0x367f6b=!0x1,_0x2bb6b2=!0x1;for(const _0x4a17aa of _0x5bb527){const _0xe05f75=_0x4a17aa['item'];_0x367f6b=_0x367f6b||_0x5eecfd['isContent'](_0xe05f75);const _0xf44f59=_0x4eb8dd['mapper']['toViewElement'](_0xe05f75);if(_0xf44f59&&_0xf44f59['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a17aa['type']&&(_0x5eecfd['isBlock'](_0xe05f75)&&!_0x5eecfd['isLimit'](_0xe05f75)&&(_0xe05f75['nextSibling']||_0x11991e['isAtEnd']?_0x50f196&&_0x50f196['parent']==_0xe05f75||(_0x50f196=_0xe05f75,_0x533fa9(_0x4a17aa['previousPosition']),_0x2bb6b2=!0x0):_0x5e97b4=_0x5e97b4||_0x4a17aa['previousPosition']));}function _0x533fa9(_0x27f8e6){const _0x5bc5b2=_0x4eb8dd['mapper']['toViewPosition'](_0x27f8e6),_0x2e9f55=_0x4eb8dd['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2d6be1});_0x4eb8dd['writer']['insert'](_0x5bc5b2,_0x2e9f55),_0x4eb8dd['mapper']['bindElementToMarker'](_0x2e9f55,_0x44e08a['markerName']);}_0x367f6b||_0x2bb6b2||!_0x5e97b4||_0x533fa9(_0x5e97b4);};}class _t extends _0x17e1ed{constructor(_0x2b951a){super(_0x2b951a);const _0x110c91=_0x2b951a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x110c91,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x110c91,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4a1e84=this['editor'],_0x464a47=_0x4a1e84['plugins']['get'](d),_0x3ab855=_0x464a47['isReady']?_0x464a47['diff']['newRevisionId']:null;_0x4a1e84['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ab855);}['refresh'](){const {isReady:_0x3f39d6,isEnabled:_0x2ed56e,repository:_0x420aec,diff:_0xf8def}=this['editor']['plugins']['get'](d),_0x8226bc=_0xf8def&&_0x420aec['getLaterVisibleRevision'](_0xf8def['newRevisionId']);this['isEnabled']=_0x3f39d6&&_0x2ed56e&&Boolean(_0x8226bc);}}class yt extends _0x17e1ed{['_step'];constructor(_0x42e8c9,{direction:_0x6835ec}){super(_0x42e8c9);const _0x231f57=_0x42e8c9['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x6835ec?0x1:-0x1,this['listenTo'](_0x231f57,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x231f57,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x231f57,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x146b26=this['editor'],_0x469c80=_0x146b26['plugins']['get'](d),{isNavigationMode:_0x2bb053,currentChangeNumber:_0x1f6ee9}=_0x469c80;let _0x2862ff;if(_0x469c80['activeChange']=_0x2bb053?_0x469c80['diff']['changes']['get'](_0x1f6ee9+this['_step']):_0x469c80['diff']['changes']['first'],_0x469c80['activeChange']['data']['isOnRoot'])_0x2862ff=_0x146b26['editing']['view']['getDomRoot'](_0x469c80['activeChange']['rootName']);else{const _0x3af138=_0x146b26['model']['markers']['get']('revision:'+_0x469c80['activeChange']['id']);_0x2862ff=_0x52f2ad(_0x146b26['editing'],_0x3af138);}_0x12b6a1({'target':_0x2862ff,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x22f013,currentChangeNumber:_0x11c5a6,numberOfChanges:_0x2e2e8e,isReady:_0x1e9281,isEnabled:_0x53dbb9}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x53dbb9&&_0x1e9281&&_0x2e2e8e)&&(!_0x22f013||(0x1===this['_step']?_0x11c5a6<_0x2e2e8e-0x1:_0x11c5a6>0x0));}}class li extends _0x366255{constructor(_0xea7712){super(_0xea7712);const _0x108d2f=this['bindTemplate'],_0x454611=new _0x5c816d(_0xea7712),_0x3fc9eb=new _0x5c816d(_0xea7712);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',(_0xd0ca5d,_0x9e660d)=>_0xd0ca5d&&_0x9e660d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4844b8,_0x3b3b59,_0x41cb23,_0xcb51dd)=>{if(!_0x4844b8)return m(_0xea7712,'Loading...');if(!_0x41cb23)return m(_0xea7712,'No\x20changes');const _0xd591e6=m(_0xea7712,'NUMBER_OF_CHANGES',_0x41cb23);return _0xcb51dd?m(_0xea7712,'X_OF_Y_CHANGES',[_0x3b3b59+0x1,_0x41cb23]):_0xd591e6;}),_0x454611['set']({'label':m(_0xea7712,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1d3576}),_0x3fc9eb['set']({'label':m(_0xea7712,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2bbc5b}),_0x454611['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3fc9eb['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x454611['on']('execute',()=>this['fire']('execute','backward')),_0x3fc9eb['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',_0x108d2f['if']('_isStatusLabelVisible','ck-hidden',_0x167ae5=>!_0x167ae5)]},'children':[{'text':_0x108d2f['to']('isNavigationMode',_0x128347=>_0x128347?m(_0xea7712,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xea7712,'Total')+':\x20')}]},{'text':_0x108d2f['to']('_statusText')}]},new _0x20ddf4(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x454611,_0x3fc9eb]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3b516d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x221a04=this['editor']['editing']['view'];_0x221a04['change'](_0x4c9ccf=>{for(const _0x2e5fbe of _0x221a04['document']['roots'])_0x4c9ccf['addClass'](ce,_0x2e5fbe);});}['hide'](){const _0x53dabb=this['editor']['editing']['view'];_0x53dabb['change'](_0x99c318=>{for(const _0xcbffe0 of _0x53dabb['document']['roots'])_0x99c318['removeClass'](ce,_0xcbffe0);});}}class w extends _0x3b516d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x1b6c0f=this['editor'],_0x1a63e0=_0x1b6c0f['plugins']['get'](d),_0x2a0ef2=_0x1b6c0f['plugins']['get'](le);_0x1b6c0f['ui']['componentFactory']['add']('exitToEditing',_0x502c50=>{const _0x4babb4=new _0x5c816d(_0x502c50);return _0x4babb4['set']({'label':m(_0x502c50,'Back\x20to\x20editing'),'icon':_0x5c37a4,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4babb4,'execute',()=>{_0x1b6c0f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4babb4;}),_0x1b6c0f['ui']['componentFactory']['add']('restoreRevision',_0x169e47=>{const _0x37ca05=new _0x5c816d(_0x169e47);return _0x37ca05['set']({'label':m(_0x169e47,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x37ca05['bind']('isEnabled')['to'](_0x1b6c0f['commands']['get']('restoreRevision')),this['listenTo'](_0x37ca05,'execute',()=>_0x1b6c0f['execute']('restoreRevision')),_0x37ca05;}),_0x1b6c0f['ui']['componentFactory']['add']('changesNavigation',_0x5df9a1=>{const _0x5ab0ee=new li(_0x5df9a1),_0x5053da=_0x1b6c0f['commands']['get']('showPreviousChange'),_0x53f1fd=_0x1b6c0f['commands']['get']('showNextChange');return _0x5ab0ee['bind']('isBackwardNavigationEnabled')['to'](_0x5053da,'isEnabled'),_0x5ab0ee['bind']('isForwardNavigationEnabled')['to'](_0x53f1fd,'isEnabled'),_0x5ab0ee['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1a63e0),this['listenTo'](_0x5ab0ee,'execute',(_0x996836,_0x3461d4)=>{_0x1b6c0f['execute']('forward'===_0x3461d4?'showNextChange':'showPreviousChange');}),_0x5ab0ee;}),_0x2a0ef2['show'](),_0x1a63e0['on']('change:isReady',(_0x54e95e,_0x3a73ad,_0x423ec6)=>{_0x423ec6?_0x2a0ef2['hide']():_0x2a0ef2['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x425f84,_0x57a6a7){super(_0x425f84,_0x57a6a7);const _0x550bc1=this['bindTemplate'];this['set']({'label':m(_0x425f84,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x425f84,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x550bc1['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 _0x132cb3=this['fieldView']['element'];this['_tooltipString']=_0x132cb3['scrollWidth']>_0x132cb3['clientWidth']&&_0x132cb3['value']||'';}}class oi extends _0x366255{constructor(_0x36b635,_0x31689c,_0x5327fc){super(_0x36b635);const _0x12e210=new _0x2014e5();_0x12e210['set']({'content':_0x73fe84,'viewBox':'0\x200\x2011\x2010'});const _0x5cb05a=['ck','ck-revision-history-sidebar__revision-author'];_0x5327fc&&_0x5cb05a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x406bb8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x36b635,_0x5327fc?'Revision\x20creator':'Revision\x20author')},'children':[_0x12e210,_0x31689c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5cb05a},'children':_0x406bb8});}}function ni(_0xcd15f6,_0x5116b0){const _0x2f3a40=_0xcd15f6['bindTemplate'],_0x2c17a1=_0xcd15f6['locale'],_0x11d2d5=_0x54cd08(_0x2c17a1);_0x11d2d5['panelPosition']='sw';const _0x1d22d7=function(_0x1f69f1,_0x31f686){const _0xf14894=function(_0x1dbaf6,_0x501ac1){const _0x599351=_0x1dbaf6['locale'],_0x19b1a8={'Compare\x20against\x20selected':m(_0x599351,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x599351,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x599351,'Restore\x20this\x20revision')};return _0x501ac1['map'](_0x47a30e=>{const _0x11b36d=_0x19b1a8[_0x47a30e['name']];return _0x11b36d&&_0x11b36d!==_0x47a30e['name']&&(_0x47a30e['name']=_0x11b36d),_0x47a30e;});}(_0x1f69f1,_0x31f686),_0x3fa16d=new _0x564a8e();for(const _0x1969b8 of _0xf14894){const _0x56c759={'type':'button','model':new to({'label':_0x1969b8['name'],'class':_0x1969b8['class'],'withText':!0x0,'role':'menuitem','_action':_0x1969b8['action']})};_0x56c759['model']['bind']('isEnabled')['to'](_0x1f69f1,'isActionsDropdownOpen',_0x468af=>'function'!=typeof _0x1969b8['isEnabled']||(!_0x468af||_0x1969b8['isEnabled'](_0x1f69f1))),_0x3fa16d['add'](_0x56c759);}return _0x3fa16d;}(_0xcd15f6,_0x5116b0);return _0xcd15f6['bind']('isActionsDropdownOpen')['to'](_0x11d2d5,'isOpen'),_0x11d2d5['buttonView']['set']({'label':m(_0x2c17a1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x53b20c}),_0x11d2d5['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2f3a40['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2f3a40['to'](_0x5a91f2=>_0x5a91f2['stopPropagation']())}}),_0x11d2d5['on']('execute',_0x576be0=>{_0xcd15f6['isReady']&&'function'==typeof _0x576be0['source']['_action']&&_0x576be0['source']['_action'](_0xcd15f6);}),_0x855b21(_0x11d2d5,_0x1d22d7,{'role':'menu'}),_0x11d2d5['listenTo'](_0xcd15f6,'change:isActionsDropdownOpen',(_0x3c4214,_0x26d474,_0x198694)=>{if(_0x198694)for(const _0x4aa935 of _0x11d2d5['listView']['items']){const _0x105d12=_0x4aa935['children']['first'],_0x367aa3=_0x5116b0['find'](_0x1d9201=>_0x1d9201['action']===_0x105d12['_action'])['isVisible'];_0x4aa935['isVisible']=void 0x0===_0x367aa3||_0x367aa3(_0xcd15f6);}}),_0x11d2d5;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x406abf(_0x366255){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3f4683,_0x3a546a,_0x526c3f,_0x3e8a63){super(_0x3f4683);const _0x1b1486=this['bindTemplate'],_0x2dd409=function(_0x2cf391,_0x20e75d){const _0x4f7dc9=Array['from'](_0x20e75d['authors'])['filter'](_0x21ed94=>_0x21ed94!=_0x20e75d['creator']);return _0x20e75d['creator']&&_0x4f7dc9['unshift'](_0x20e75d['creator']),_0x4f7dc9['map'](_0x2efd04=>new oi(_0x2cf391,_0x2efd04,_0x2efd04==_0x20e75d['creator']));}(_0x3f4683,_0x3a546a);this['id']=_0x3a546a['id'],this['_revision']=_0x3a546a,this['_requireRevisionName']=_0x3e8a63,this['bind']('name','createdAt')['to'](_0x3a546a),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x398a43=>{return _0x2fb10a=_0x3f4683['uiLanguage'],(_0x48a5a4=_0x398a43)['toLocaleDateString'](_0x2fb10a,{'month':'long','day':'numeric'})+',\x20'+_0x48a5a4['toLocaleTimeString'](_0x2fb10a,{'hour':'numeric','minute':'numeric'});var _0x2fb10a,_0x48a5a4;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x3f4683,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x233b11=>_0x233b11||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x26ee6a,_0x5c1c3e)=>_0x26ee6a&&_0x5c1c3e),this['revisionActionsView']=_0x526c3f&&_0x526c3f['length']?ni(this,_0x526c3f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1b1486['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1b1486['if']('isEnabled','ck-disabled',_0x1bfb5b=>!_0x1bfb5b),_0x1b1486['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1b1486['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1b1486['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':_0x1b1486['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':_0x2dd409}]},this['revisionActionsView']],'on':{'click':_0x1b1486['to'](_0x25987c=>{_0x25987c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4c5825=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4c5825,'change',()=>{this['_requireRevisionName']&&!_0x4c5825['value']||this['fire']('setName',{'id':this['id'],'name':_0x4c5825['value']}),_0x4c5825['value']||(_0x4c5825['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(_0x2f2dca,_0x4cf6a9){const _0x5eb1f8=_0x13dab4['fromJSDate'](_0x2f2dca)['setLocale'](_0x4cf6a9),_0x5f46b3=_0x13dab4['local'](),_0x17d2c9=_0x5f46b3['minus']({'days':0x1})['startOf']('day');let _0x4784f0,_0x5d046b;return _0x5eb1f8['hasSame'](_0x5f46b3,'day')?(_0x4784f0=_0x5eb1f8['startOf']('day')['toJSDate'](),_0x5d046b=_0x5eb1f8['toRelativeCalendar']()):_0x5eb1f8['hasSame'](_0x17d2c9,'day')?(_0x4784f0=_0x17d2c9['toJSDate'](),_0x5d046b=_0x5eb1f8['toRelativeCalendar']()):_0x5eb1f8['hasSame'](_0x5f46b3,'week')?(_0x4784f0=_0x5eb1f8['startOf']('week')['toJSDate'](),_0x5d046b=_0x5eb1f8['weekdayLong']||''):_0x5eb1f8['hasSame'](_0x5f46b3,'year')?(_0x4784f0=_0x5eb1f8['startOf']('month')['toJSDate'](),_0x5d046b=_0x5eb1f8['monthLong']||''):(_0x4784f0=_0x5eb1f8['startOf']('year')['toJSDate'](),_0x5d046b=String(_0x5eb1f8['year'])),{'startDate':_0x4784f0,'localizedPeriodName':_0x5d046b};}class _i extends _0x366255{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3333aa,_0x45e96a,_0x2dc758,_0x418134){super(_0x3333aa);const _0x2bc321=mi(_0x45e96a,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x45e96a,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2dc758,this['_requireRevisionName']=_0x418134,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':_0x2bc321}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xbce2c9){const _0x154768=new ai(this['locale'],_0xbce2c9,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x154768);}['removeRevision'](_0x31dc8a){const _0x218e91=this['revisionViews']['find'](_0xeff411=>_0xeff411['id']===_0x31dc8a['id']);this['revisionViews']['remove'](_0x218e91);}}class as extends _0x366255{constructor(_0x5bcd7b){super(_0x5bcd7b);const _0x3d7676=new _0x2014e5();_0x3d7676['content']=_0x23d429,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3d7676,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5bcd7b,'Revision\x20history')]}]});}}class vi extends _0x366255{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4374d3,_0x1cb406,_0x457b2e,_0x1e0bbb){super(_0x4374d3);const _0x130f83=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1cb406,this['_revisionActions']=_0x457b2e,this['_requireRevisionName']=_0x1e0bbb,this['on']('select',(_0x1e8845,_0x14e368)=>{this['fire']('revisionSelected',_0x14e368);}),this['on']('setName',(_0x571e51,_0x25f552)=>{this['fire']('revisionSetName',_0x25f552);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4374d3),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x130f83['if']('isEnabled','ck-disabled',_0x544956=>!_0x544956)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1b5ebb of this['_revisions'])this['_addRevision'](_0x1b5ebb);this['_revisions']['on']('add',(_0x32875f,_0x34cbf4)=>{this['_addRevision'](_0x34cbf4);}),this['_revisions']['on']('remove',(_0x3065b1,_0x2fac58)=>{this['_removeRevision'](_0x2fac58);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x546444=>_0x546444['revisionViews']['map'](_0x57d0c4=>_0x57d0c4))['flat']();}['selectRevision'](_0x426369){for(const _0x16a272 of this['revisionViews'])_0x426369&&_0x426369['id']===_0x16a272['id']?_0x16a272['select']():_0x16a272['deselect']();}['highlightRevisions'](_0x109a4e){for(const _0x696011 of this['revisionViews'])_0x109a4e['some'](({id:_0x989ac9})=>_0x989ac9===_0x696011['id'])?_0x696011['highlight']():_0x696011['unhighlight']();}['_addRevision'](_0xf6465b){const _0x49b089=mi(_0xf6465b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xd71f59=this['timePeriodViews']['get'](0x0);_0xd71f59&&_0xd71f59['startDate']['getTime']()===_0x49b089['getTime']()||(_0xd71f59=new _i(this['locale'],_0x49b089,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xd71f59)),_0xd71f59['addRevision'](_0xf6465b);}['_removeRevision'](_0x17c202){const _0x7c96e1=mi(_0x17c202['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x7c96e1)['removeRevision'](_0x17c202);}['_getTimePeriodViewByStartDate'](_0xbc6290){return this['timePeriodViews']['find'](_0x1d4438=>_0x1d4438['startDate']['getTime']()===_0xbc6290['getTime']());}}class g extends _0x3b516d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x580d20){super(_0x580d20),this['_revisionViewer']=_0x580d20['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x2eb254=this['_revisionsRepository']['_revisions'],_0x4242ce=this['_createRevisionActions'](),_0x465ebd=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x2eb254,_0x4242ce,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',(_0x4e37c9,_0x533e42)=>{_0x533e42['revisionViews']['on']('add',(_0x29fda1,_0x533880)=>{_0x533880['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)),_0x465ebd['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4dc721=this['_revisionsRepository']['getRevision'](0x0);if(_0x4dc721){const _0x164746=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4dc721['id']);this['_revisionViewer']['compare'](_0x4dc721,_0x164746);}}['_handleRevisionSelected'](_0x345e3e,_0x4aeac5){const _0x2590dc=this['_revisionsRepository']['getRevision'](_0x4aeac5['id']),_0x4e57f9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2590dc['id']);this['_revisionViewer']['compare'](_0x2590dc,_0x4e57f9);}['_handleRevisionSetName'](_0x553aa8,_0x135186){this['_revisionsRepository']['getRevision'](_0x135186['id'])['setName'](_0x135186['name']);}['_handleDiffChange'](_0x1f7d7b,_0xa346a1,_0x2f2478){const _0x3abe3e=this['_revisionsRepository']['getRevisionsInDiff'](_0x2f2478);_0x3abe3e['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3abe3e),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3abe3e[0x0]));}['_createRevisionActions'](){const _0x2f27cf=this['editor'],_0x3cea64=g['availableRevisionActions'],_0x2dcfcc=_0x2f27cf['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2dcfcc['length'])return _0x2dcfcc['map'](_0x3d9d0e=>{const _0x4a1969='string'==typeof _0x3d9d0e?Object['assign']({},_0x3cea64[_0x3d9d0e]):_0x3d9d0e;return _0x4a1969['action']=_0x4a1969['action']['bind'](this,_0x2f27cf),_0x4a1969['isVisible']&&(_0x4a1969['isVisible']=_0x4a1969['isVisible']['bind'](this,_0x2f27cf)),_0x4a1969;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4c7d96},_0x2f46e9)=>{const _0x5c9b14=_0x4c7d96['get'](d),_0x399216=_0x5c9b14['repository'];let _0x3fa52b=_0x5c9b14['diff']['newRevisionId'],_0x176031=_0x2f46e9['id'];_0x399216['getIndex'](_0x3fa52b)>_0x399216['getIndex'](_0x176031)&&([_0x3fa52b,_0x176031]=[_0x176031,_0x3fa52b]),_0x5c9b14['compare'](_0x3fa52b,_0x176031);},'isVisible':({plugins:_0x15cfd4},_0x4f4686)=>{const _0x1caa47=_0x15cfd4['get'](d);return!(_0x1caa47['repository']['getRevisionsInDiff'](_0x1caa47['diff'])['length']>0x2)&&!_0x4f4686['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x9bcf14,{id:_0x3a54e0})=>{_0x9bcf14['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3a54e0);},'isVisible':({plugins:_0x24ed78},_0x21513d)=>!!_0x24ed78['get'](d)['repository']['getLaterVisibleRevision'](_0x21513d['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x51ec21},{id:_0x2f7834,revisionNameView:_0x2cd22d})=>{const _0x1cea29=_0x51ec21['get'](d),_0x36c3dc=_0x1cea29['repository']['getEarlierVisibleRevision'](_0x2f7834);_0x1cea29['compare'](_0x2f7834,_0x36c3dc),_0x2cd22d['focus'](),_0x2cd22d['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x542ae8,_0x10d541){super(_0x542ae8),this['_view']=_0x10d541,this['_toolbarConfig']=ot(_0x542ae8['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2dffb0){const _0x39678b=this['editor'],_0x26bc0a=this['view'],_0x5608e6=_0x39678b['editing']['view'],_0x5c827a=_0x26bc0a['editable'],_0x1be20b=_0x5608e6['document']['getRoot']();_0x5c827a['name']=_0x1be20b['rootName'],_0x26bc0a['render']();const _0x5f3518=_0x5c827a['element'];this['setEditableElement'](_0x5c827a['name'],_0x5f3518),_0x26bc0a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5608e6['attachDomRoot'](_0x5f3518),this['_elementReplacer']['replace'](_0x2dffb0,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x115b52=this['view'],_0x4dbf0e=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4dbf0e['detachDomRoot'](_0x115b52['editable']['name']),_0x115b52['destroy']();}['_initToolbar'](){const _0x463c20=this['view'];_0x463c20['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x463c20['stickyPanel']['limiterElement']=_0x463c20['element'],_0x463c20['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x56078c})=>_0x56078c),_0x463c20['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x463c20['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3460a2,_0x531ac7,_0x2b5eb1={}){super(_0x3460a2),this['stickyPanel']=new lt(_0x3460a2),this['toolbar']=new nt(_0x3460a2,{'shouldGroupWhenFull':_0x2b5eb1['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x3460a2,_0x531ac7);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5d9360,_0x3d0d67){super(_0x3d0d67),this['sourceElement']=_0x5d9360,this['model']['document']['createRoot']();const _0x2c7749=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2c7749);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1a792e,_0x155cdd){const _0x499d1b=new this(_0x1a792e,_0x155cdd);return await _0x499d1b['initPlugins'](),await _0x499d1b['ui']['init'](_0x1a792e),await _0x499d1b['data']['init'](_0x499d1b['config']['get']('initialData')||''),_0x499d1b['fire']('ready'),_0x499d1b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x15a41a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1786ec){function _0x47e9a3(_0x122e95){return _0x122e95['map'](_0x5783f4=>String['fromCharCode'](_0x5783f4))['join']('');}super(_0x1786ec),this['result']='end',_0x1786ec[_0x47e9a3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x47e9a3([0x76,0x69,0x65,0x77])][_0x47e9a3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x47e9a3([0x61,0x75,0x74,0x6f]),_0x1786ec[_0x47e9a3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x47e9a3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x47e9a3([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x47e9a3([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x47e9a3([0x6f,0x6b])});}}class k extends _0x15a41a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4ddb72){if(super(_0x4ddb72),!this['editor']['config']['get']('revisionHistory'))throw new _0x973de2('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4006de=>this['_showRevisionViewer']({..._0x4006de,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x198f70=>this['_closeRevisionViewer'](_0x198f70)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x9a5261=>this['_restoreRevision'](_0x9a5261)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x28492a){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x28492a;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5d0814){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5d0814);}['getRevision'](_0x3598bc){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3598bc);}['getRevisions'](_0x241473){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x241473||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x9f57c8=this['editor'],_0x2cc2ef=_0x56d1fd(_0x9f57c8,p),_0x1e149d=_0x9f57c8['plugins']['get']('RevisionTracker'),_0xd25521=_0x9f57c8['plugins']['get']('Users')['users'];return _0x2cc2ef['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2cc2ef['lazyRoots'],(_0x2cc2ef['plugins']['push'](Rt,d,w,class extends _0x15a41a{static get['requires'](){return[d,'Users'];}['init'](){const _0x2fd79a=this['editor']['plugins']['get']('Users');for(const _0x4246e6 of _0xd25521)_0x4246e6['isAnonymous']||_0x2fd79a['getUser'](_0x4246e6['id'])||_0x2fd79a['addUser'](_0x4246e6);const _0x5b21d3=_0x1e149d['repository']['getRevisions']();let _0x509030=null;const _0x1b1ce6=this['editor']['plugins']['get']('RevisionViewer');_0x1b1ce6['adapter']=_0x1e149d['adapter'],_0x1b1ce6['bind']('isEnabled')['to'](_0x1e149d),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x9f57c8,'isReadOnly',_0x55acf6=>!_0x55acf6);for(const _0x4f750f of _0x5b21d3){const _0x4ad76a=null===_0x4f750f['creator'];if(_0x4ad76a&&_0x4f750f['toVersion']===_0x4f750f['fromVersion'])continue;const _0x1db56f=_0x4f750f['toJSON']();_0x1b1ce6['addRevisionData'](_0x1db56f,(_0x519375,_0x2cb044,_0x3f6681)=>{if(_0x4ad76a){if(_0x509030)_0x509030['_update'](_0x519375,_0x2cb044);else{if(!_0x2cb044){const _0x2bdad7=_0x3f6681['toJSON']();_0x2bdad7['id']=_0xc88e79(),_0x1e149d['saveRevision'](_0x2bdad7,_0x3f6681['toVersion'])['then'](_0x36eca4=>{_0x509030=_0x36eca4;});}}}else _0x4f750f['_update'](_0x519375,_0x2cb044);});}}},g),_0x2cc2ef);}['_enhanceShowRevisionViewerCallback'](){const _0x4373df=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x481998=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0xd79061=this['editor']['plugins']['get']('Autosave');await _0xd79061['save']();}else await _0x481998['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x336b49=this['editor']['plugins']['get']('Dialog');_0x336b49['isOpen']&&_0x336b49['hide']();}const _0x4b12ea=this['_getRevisionViewerEditorConfig']();return _0x4373df(_0x4b12ea)['then'](_0x2ac331=>{return(this['_viewerEditor']=_0x2ac331,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2ac331;})['catch'](_0x2f2b02=>(console['error'](_0x2f2b02),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x52c714=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'](),_0x52c714(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xfbbb02=this['editor']['plugins']['get']('Annotations');_0xfbbb02['refreshVisibility'](),_0xfbbb02['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3c9532){const _0x225409=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x321de7=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x452343=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x452343,_0x3c9532)['then'](_0x126662=>(_0x321de7['style']['display']='block',_0x225409['style']['display']='none',_0x126662));}['_closeRevisionViewer'](_0xa9e918){const _0x3cd7d2=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3cd7d2['style']['display']='',_0xa9e918['destroy']();}async['_restoreRevision'](_0x180d40){const _0x1915af=this['editor'],_0x30d806=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x54a1ff=_0x1915af['plugins']['get']('RevisionTracker'),_0x41601b=_0x30d806['repository']['getRevision'](_0x180d40);let _0x5ab1e9,_0x15b896,_0x458290;try{_0x5ab1e9=await _0x30d806['getRevisionData'](_0x41601b),_0x15b896=await _0x30d806['getRevisionRootsAttributes'](_0x41601b);}catch(_0x562f07){return void console['error'](_0x562f07);}_0x1915af['model']['change'](_0x42eeb7=>{for(const _0x24479f of Array['from'](_0x1915af['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x42eeb7['removeMarker'](_0x24479f);}),_0x30d806['isReady']=!0x1,_0x1915af['model']['enqueueChange'](_0x59f6e6=>{_0x59f6e6['setSelection'](null),_0x59f6e6['removeSelectionAttribute'](_0x1915af['model']['document']['selection']['getAttributeKeys']());const _0x1e08cb=Object['keys'](_0x5ab1e9);for(const _0x375413 of _0x1915af['model']['document']['roots'])'$graveyard'!=_0x375413['rootName']&&_0x375413['isAttached']()&&!_0x1e08cb['includes'](_0x375413['rootName'])&&_0x59f6e6['detachRoot'](_0x375413);for(const _0x53bd25 of _0x1e08cb){let _0x3992e6=_0x1915af['model']['document']['getRoot'](_0x53bd25);_0x3992e6&&_0x3992e6['isAttached']()||(_0x3992e6=_0x59f6e6['addRoot'](_0x53bd25));const _0x38709a=_0x15b896[_0x53bd25],_0x5cbe1d=Object['keys'](_0x38709a),_0x137673=_0x5ab1e9[_0x53bd25];for(const _0x42e18e of _0x3992e6['getAttributeKeys']())_0x5cbe1d['includes'](_0x42e18e)||_0x59f6e6['removeAttribute'](_0x42e18e,_0x3992e6);for(const _0x45083f of _0x5cbe1d)_0x59f6e6['setAttribute'](_0x45083f,_0x15b896[_0x53bd25][_0x45083f],_0x3992e6);_0x59f6e6['remove'](_0x59f6e6['createRangeIn'](_0x3992e6)),_0x59f6e6['insert'](_0x1915af['data']['parse'](_0x137673,_0x3992e6),_0x3992e6,0x0);}});const _0x4fb294=m(_0x1915af['locale'],'Restored');if(_0x41601b['name'])_0x458290=-0x1==_0x41601b['name']['indexOf'](_0x4fb294)?_0x4fb294+':\x20'+_0x41601b['name']:_0x41601b['name'];else _0x458290=_0x4fb294+':\x20'+(_0x41601b['createdAt']['toLocaleDateString'](_0x1915af['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x41601b['createdAt']['toLocaleTimeString'](_0x1915af['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x54a1ff['saveRevision']({'name':_0x458290}),_0x30d806['isReady']=!0x0,_0x1915af['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w 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(_0x1c5e0c){super(_0x1c5e0c),this['_revisionViewer']=_0x1c5e0c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x59a40a=this['_revisionsRepository']['_revisions'],_0x5473a6=this['_createRevisionActions'](),_0x3e293b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x59a40a,_0x5473a6,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',(_0x18c429,_0x30503d)=>{_0x30503d['revisionViews']['on']('add',(_0x282983,_0x51780a)=>{_0x51780a['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)),_0x3e293b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x500f1b=this['_revisionsRepository']['getRevision'](0x0);if(_0x500f1b){const _0x3bb4be=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x500f1b['id']);this['_revisionViewer']['compare'](_0x500f1b,_0x3bb4be);}}['_handleRevisionSelected'](_0x356e22,_0x56ecbf){const _0x2000e6=this['_revisionsRepository']['getRevision'](_0x56ecbf['id']),_0x3b1f9b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2000e6['id']);this['_revisionViewer']['compare'](_0x2000e6,_0x3b1f9b);}['_handleRevisionSetName'](_0x5a8130,_0x4c198c){this['_revisionsRepository']['getRevision'](_0x4c198c['id'])['setName'](_0x4c198c['name']);}['_handleDiffChange'](_0x36fa86,_0x2fd383,_0x7ac458){const _0x417543=this['_revisionsRepository']['getRevisionsInDiff'](_0x7ac458);_0x417543['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x417543),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x417543[0x0]));}['_createRevisionActions'](){const _0x44a4da=this['editor'],_0x5ccd7d=g['availableRevisionActions'],_0x2954f6=_0x44a4da['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2954f6['length'])return _0x2954f6['map'](_0x5d7e41=>{const _0x4b9214='string'==typeof _0x5d7e41?Object['assign']({},_0x5ccd7d[_0x5d7e41]):_0x5d7e41;return _0x4b9214['action']=_0x4b9214['action']['bind'](this,_0x44a4da),_0x4b9214['isVisible']&&(_0x4b9214['isVisible']=_0x4b9214['isVisible']['bind'](this,_0x44a4da)),_0x4b9214;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x20d66a},_0xb82233)=>{const _0x44f0e2=_0x20d66a['get'](d),_0x4cd4d3=_0x44f0e2['repository'];let _0x174888=_0x44f0e2['diff']['newRevisionId'],_0x49cb68=_0xb82233['id'];_0x4cd4d3['getIndex'](_0x174888)>_0x4cd4d3['getIndex'](_0x49cb68)&&([_0x174888,_0x49cb68]=[_0x49cb68,_0x174888]),_0x44f0e2['compare'](_0x174888,_0x49cb68);},'isVisible':({plugins:_0x2be1a0},_0x3f671a)=>{const _0x65b0a7=_0x2be1a0['get'](d);return!(_0x65b0a7['repository']['getRevisionsInDiff'](_0x65b0a7['diff'])['length']>0x2)&&!_0x3f671a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x11f07a,{id:_0x10a289})=>{_0x11f07a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x10a289);},'isVisible':({plugins:_0x2c1792},_0x56aa5e)=>!!_0x2c1792['get'](d)['repository']['getLaterVisibleRevision'](_0x56aa5e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1ea4dd},{id:_0x2dd1d7,revisionNameView:_0x53b671})=>{const _0x817581=_0x1ea4dd['get'](d),_0x4b471c=_0x817581['repository']['getEarlierVisibleRevision'](_0x2dd1d7);_0x817581['compare'](_0x2dd1d7,_0x4b471c),_0x53b671['focus'](),_0x53b671['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5969b8,_0x362274){super(_0x5969b8),this['_view']=_0x362274,this['_toolbarConfig']=ot(_0x5969b8['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x484765){const _0x235e2c=this['editor'],_0x1e5e58=this['view'],_0x4e57c4=_0x235e2c['editing']['view'],_0x5ef5fd=_0x1e5e58['editable'],_0x38a600=_0x4e57c4['document']['getRoot']();_0x5ef5fd['name']=_0x38a600['rootName'],_0x1e5e58['render']();const _0x38488d=_0x5ef5fd['element'];this['setEditableElement'](_0x5ef5fd['name'],_0x38488d),_0x1e5e58['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4e57c4['attachDomRoot'](_0x38488d),this['_elementReplacer']['replace'](_0x484765,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3c1355=this['view'],_0x27018a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x27018a['detachDomRoot'](_0x3c1355['editable']['name']),_0x3c1355['destroy']();}['_initToolbar'](){const _0x15874a=this['view'];_0x15874a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x15874a['stickyPanel']['limiterElement']=_0x15874a['element'],_0x15874a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1481fe})=>_0x1481fe),_0x15874a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x15874a['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x41f9e8,_0x4f184d,_0x5336ef={}){super(_0x41f9e8),this['stickyPanel']=new lt(_0x41f9e8),this['toolbar']=new nt(_0x41f9e8,{'shouldGroupWhenFull':_0x5336ef['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x41f9e8,_0x4f184d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xeada27,_0x3bbcbb){super(_0x3bbcbb),this['sourceElement']=_0xeada27,this['model']['document']['createRoot']();const _0x3246a8=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3246a8);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1c7162,_0x524cc9){const _0x2c4505=new this(_0x1c7162,_0x524cc9);return await _0x2c4505['initPlugins'](),await _0x2c4505['ui']['init'](_0x1c7162),await _0x2c4505['data']['init'](_0x2c4505['config']['get']('initialData')||''),_0x2c4505['fire']('ready'),_0x2c4505;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3b516d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x148a7c){function _0x1114ed(_0x3412a9){return _0x3412a9['map'](_0x3bc74b=>String['fromCharCode'](_0x3bc74b))['join']('');}super(_0x148a7c),this['result']='end',_0x148a7c[_0x1114ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1114ed([0x76,0x69,0x65,0x77])][_0x1114ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1114ed([0x61,0x75,0x74,0x6f]),_0x148a7c[_0x1114ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1114ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1114ed([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1114ed([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1114ed([0x6f,0x6b])});}}class k extends _0x3b516d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4862ae){if(super(_0x4862ae),!this['editor']['config']['get']('revisionHistory'))throw new _0x36ac11('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x142f5e=>this['_showRevisionViewer']({..._0x142f5e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4386d4=>this['_closeRevisionViewer'](_0x4386d4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xe8be46=>this['_restoreRevision'](_0xe8be46)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x389a97){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x389a97;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3d4ae6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3d4ae6);}['getRevision'](_0x571f57){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x571f57);}['getRevisions'](_0x7c57b2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x7c57b2||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1623da=this['editor'],_0x564590=_0x1fc807(_0x1623da,p),_0x2b8bea=_0x1623da['plugins']['get']('RevisionTracker'),_0x58095b=_0x1623da['plugins']['get']('Users')['users'];return _0x564590['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x564590['lazyRoots'],(_0x564590['plugins']['push'](Rt,d,w,class extends _0x3b516d{static get['requires'](){return[d,'Users'];}['init'](){const _0xe71e22=this['editor']['plugins']['get']('Users');for(const _0x2b1822 of _0x58095b)_0x2b1822['isAnonymous']||_0xe71e22['getUser'](_0x2b1822['id'])||_0xe71e22['addUser'](_0x2b1822);const _0x1099cb=_0x2b8bea['repository']['getRevisions']();let _0x5dc1c5=null;const _0x4f641b=this['editor']['plugins']['get']('RevisionViewer');_0x4f641b['adapter']=_0x2b8bea['adapter'],_0x4f641b['bind']('isEnabled')['to'](_0x2b8bea),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1623da,'isReadOnly',_0x372b70=>!_0x372b70);for(const _0x11e3d7 of _0x1099cb){const _0x39b78b=null===_0x11e3d7['creator'];if(_0x39b78b&&_0x11e3d7['toVersion']===_0x11e3d7['fromVersion'])continue;const _0x22160d=_0x11e3d7['toJSON']();_0x4f641b['addRevisionData'](_0x22160d,(_0x10e96b,_0x14802b,_0x41942a)=>{if(_0x39b78b){if(_0x5dc1c5)_0x5dc1c5['_update'](_0x10e96b,_0x14802b);else{if(!_0x14802b){const _0x59a454=_0x41942a['toJSON']();_0x59a454['id']=_0x3845a3(),_0x2b8bea['saveRevision'](_0x59a454,_0x41942a['toVersion'])['then'](_0x31afbe=>{_0x5dc1c5=_0x31afbe;});}}}else _0x11e3d7['_update'](_0x10e96b,_0x14802b);});}}},g),_0x564590);}['_enhanceShowRevisionViewerCallback'](){const _0x5e5b3c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1cab44=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4032b2=this['editor']['plugins']['get']('Autosave');await _0x4032b2['save']();}else await _0x1cab44['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x40a446=this['editor']['plugins']['get']('Dialog');_0x40a446['isOpen']&&_0x40a446['hide']();}const _0x4e7c61=this['_getRevisionViewerEditorConfig']();return _0x5e5b3c(_0x4e7c61)['then'](_0x2049f6=>{return(this['_viewerEditor']=_0x2049f6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2049f6;})['catch'](_0x126499=>(console['error'](_0x126499),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2cb430=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'](),_0x2cb430(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x35d938=this['editor']['plugins']['get']('Annotations');_0x35d938['refreshVisibility'](),_0x35d938['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3df561){const _0x2b544d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5de28c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x33a922=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x33a922,_0x3df561)['then'](_0x532c73=>(_0x5de28c['style']['display']='block',_0x2b544d['style']['display']='none',_0x532c73));}['_closeRevisionViewer'](_0x15ce8f){const _0x293ca8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x293ca8['style']['display']='',_0x15ce8f['destroy']();}async['_restoreRevision'](_0x598450){const _0x29b80d=this['editor'],_0x454c0c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2dfbf7=_0x29b80d['plugins']['get']('RevisionTracker'),_0x45db13=_0x454c0c['repository']['getRevision'](_0x598450);let _0x4a9aad,_0x4b9071,_0x328231;try{_0x4a9aad=await _0x454c0c['getRevisionData'](_0x45db13),_0x4b9071=await _0x454c0c['getRevisionRootsAttributes'](_0x45db13);}catch(_0xb4d824){return void console['error'](_0xb4d824);}_0x29b80d['model']['change'](_0x2107a8=>{for(const _0x3ace18 of Array['from'](_0x29b80d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2107a8['removeMarker'](_0x3ace18);}),_0x454c0c['isReady']=!0x1,_0x29b80d['model']['enqueueChange'](_0x3d8322=>{_0x3d8322['setSelection'](null),_0x3d8322['removeSelectionAttribute'](_0x29b80d['model']['document']['selection']['getAttributeKeys']());const _0x1e71b6=Object['keys'](_0x4a9aad);for(const _0x4018d4 of _0x29b80d['model']['document']['roots'])'$graveyard'!=_0x4018d4['rootName']&&_0x4018d4['isAttached']()&&!_0x1e71b6['includes'](_0x4018d4['rootName'])&&_0x3d8322['detachRoot'](_0x4018d4);for(const _0x5197ca of _0x1e71b6){let _0x3e262a=_0x29b80d['model']['document']['getRoot'](_0x5197ca);_0x3e262a&&_0x3e262a['isAttached']()||(_0x3e262a=_0x3d8322['addRoot'](_0x5197ca));const _0x4bc10a=_0x4b9071[_0x5197ca],_0xb5756c=Object['keys'](_0x4bc10a),_0x13a4a2=_0x4a9aad[_0x5197ca];for(const _0x3f8147 of _0x3e262a['getAttributeKeys']())_0xb5756c['includes'](_0x3f8147)||_0x3d8322['removeAttribute'](_0x3f8147,_0x3e262a);for(const _0x20d662 of _0xb5756c)_0x3d8322['setAttribute'](_0x20d662,_0x4b9071[_0x5197ca][_0x20d662],_0x3e262a);_0x3d8322['remove'](_0x3d8322['createRangeIn'](_0x3e262a)),_0x3d8322['insert'](_0x29b80d['data']['parse'](_0x13a4a2,_0x3e262a),_0x3e262a,0x0);}});const _0xa6f644=m(_0x29b80d['locale'],'Restored');if(_0x45db13['name'])_0x328231=-0x1==_0x45db13['name']['indexOf'](_0xa6f644)?_0xa6f644+':\x20'+_0x45db13['name']:_0x45db13['name'];else _0x328231=_0xa6f644+':\x20'+(_0x45db13['createdAt']['toLocaleDateString'](_0x29b80d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x45db13['createdAt']['toLocaleTimeString'](_0x29b80d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2dfbf7['saveRevision']({'name':_0x328231}),_0x454c0c['isReady']=!0x0,_0x29b80d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};