@ckeditor/ckeditor5-comments 34.1.0 → 35.1.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 (74) hide show
  1. package/build/comments.js +1 -1
  2. package/build/translations/ar.js +1 -0
  3. package/build/translations/bg.js +1 -0
  4. package/build/translations/bn.js +1 -0
  5. package/build/translations/ca.js +1 -0
  6. package/build/translations/es.js +1 -1
  7. package/build/translations/fi.js +1 -0
  8. package/build/translations/fr.js +1 -1
  9. package/build/translations/he.js +1 -0
  10. package/build/translations/it.js +1 -1
  11. package/build/translations/ja.js +1 -1
  12. package/build/translations/lt.js +1 -0
  13. package/build/translations/ms.js +1 -0
  14. package/build/translations/pt-br.js +1 -1
  15. package/build/translations/pt.js +1 -0
  16. package/build/translations/sr.js +1 -1
  17. package/build/translations/sv.js +1 -0
  18. package/build/translations/th.js +1 -0
  19. package/build/translations/vi.js +1 -0
  20. package/lang/translations/ar.po +71 -0
  21. package/lang/translations/bg.po +67 -0
  22. package/lang/translations/bn.po +67 -0
  23. package/lang/translations/ca.po +67 -0
  24. package/lang/translations/es.po +2 -1
  25. package/lang/translations/fi.po +67 -0
  26. package/lang/translations/fr.po +2 -1
  27. package/lang/translations/he.po +69 -0
  28. package/lang/translations/it.po +2 -1
  29. package/lang/translations/ja.po +3 -3
  30. package/lang/translations/lt.po +69 -0
  31. package/lang/translations/ms.po +66 -0
  32. package/lang/translations/pt-br.po +2 -1
  33. package/lang/translations/pt.po +68 -0
  34. package/lang/translations/sr.po +3 -3
  35. package/lang/translations/sv.po +67 -0
  36. package/lang/translations/th.po +66 -0
  37. package/lang/translations/vi.po +66 -0
  38. package/package.json +3 -3
  39. package/src/annotations/annotation.js +1 -1
  40. package/src/annotations/annotationcollection.js +1 -1
  41. package/src/annotations/annotations.js +1 -1
  42. package/src/annotations/annotationsuis.js +1 -1
  43. package/src/annotations/editorannotations.js +1 -1
  44. package/src/annotations/inlineannotations.js +1 -1
  45. package/src/annotations/narrowsidebar.js +1 -1
  46. package/src/annotations/sidebar.js +1 -1
  47. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  48. package/src/annotations/view/annotationview.js +1 -1
  49. package/src/annotations/view/sidebaritemview.js +1 -1
  50. package/src/annotations/view/sidebarview.js +1 -1
  51. package/src/annotations/widesidebar.js +1 -1
  52. package/src/comments/addcommentthreadcommand.js +1 -1
  53. package/src/comments/commentsediting.js +1 -1
  54. package/src/comments/commentsrepository.js +1 -1
  55. package/src/comments/commentsui.js +1 -1
  56. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  57. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  58. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  59. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  60. package/src/comments/ui/commentthreadcontroller.js +1 -1
  61. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  62. package/src/comments/ui/view/basecommentview.js +1 -1
  63. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  64. package/src/comments/ui/view/commentcontentview.js +1 -1
  65. package/src/comments/ui/view/commentinputview.js +1 -1
  66. package/src/comments/ui/view/commentslistview.js +1 -1
  67. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  68. package/src/comments/ui/view/commentthreadview.js +1 -1
  69. package/src/comments/ui/view/commentview.js +1 -1
  70. package/src/comments.js +1 -1
  71. package/src/commentsonly.js +1 -1
  72. package/src/utils/common-translations.js +1 -1
  73. package/src/utils/createmutationobserver.js +1 -1
  74. package/theme/annotation-inline.css +0 -21
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1421=['listenTo','refresh','innerView','function','addSourceCollector','init','directChange','hasDomSelection','set','editorannotations-invalid-source-callback','editing','change:isFocused','remove','fire','refreshSelectedViews','getRanges','getByInnerView','collection','editor','push','model','uiUpdate','isCollapsed','_editorAnnotationsData','getOrderedSelectedAnnotations','containsRange','change:range','element','has','isReadOnly','EditorAnnotations','sort','get','add','map','annotation','range','from','plugins','_dataCollectors','isEqual','view','focusTracker','keys','selection','update','document'];(function(_0x4611c2,_0x1421b9){const _0x4d260c=function(_0xa9efca){while(--_0xa9efca){_0x4611c2['push'](_0x4611c2['shift']());}};_0x4d260c(++_0x1421b9);}(_0x1421,0x18a));const _0x4d26=function(_0x4611c2,_0x1421b9){_0x4611c2=_0x4611c2-0x0;let _0x4d260c=_0x1421[_0x4611c2];return _0x4d260c;};import{Plugin as _0x15a8a8}from'ckeditor5/src/core';import{CKEditorError as _0x9d48fc}from'ckeditor5/src/utils';import{debounce as _0x59adbf}from'lodash-es';import _0x3e3dc4 from'./annotations';export default class V extends _0x15a8a8{static get['requires'](){return[_0x3e3dc4];}static get['pluginName'](){return _0x4d26('0xc');}constructor(_0x38441b){super(_0x38441b),this[_0x4d26('0x15')]=new Set();}[_0x4d26('0x22')](){const _0x15f3c4=this[_0x4d26('0x0')],_0x426a5f=_0x15f3c4[_0x4d26('0x14')][_0x4d26('0xe')](_0x3e3dc4),_0x18cb3c=_0x15f3c4[_0x4d26('0x2')][_0x4d26('0x1c')][_0x4d26('0x1a')],_0xa20e82=_0x59adbf(()=>this[_0x4d26('0x2b')](),0xa);_0x18cb3c['on'](_0x4d26('0x8'),(_0x5d82b0,_0x43d9da)=>{_0x43d9da[_0x4d26('0x23')]&&(_0xa20e82['cancel'](),this['refreshSelectedViews']());}),this[_0x4d26('0x1d')](_0x15f3c4[_0x4d26('0x27')]['view']['document'],_0x4d26('0x28'),(_0x1c4368,_0x5b7dc6,_0x2b00b3)=>{_0x2b00b3&&_0xa20e82();}),this[_0x4d26('0x1d')](_0x15f3c4['ui'][_0x4d26('0x18')],_0x4d26('0x28'),(_0x31a3d6,_0x5e1555,_0x2909aa)=>{_0x2909aa||_0x15f3c4[_0x4d26('0xb')]||this['fire']('blur',{'isAnnotationTracked':_0xdd742e=>this[_0x4d26('0x5')][_0x4d26('0xa')](_0xdd742e['innerView'])});}),this[_0x4d26('0x1d')](this[_0x4d26('0x0')]['ui'],_0x4d26('0x1b'),()=>this['fire'](_0x4d26('0x3')));const _0x17aefd=new Set();this[_0x4d26('0x1d')](_0x426a5f[_0x4d26('0x2e')],'add',(_0x5e2160,_0x257c2c)=>{for(const _0x5c78f2 of this['_editorAnnotationsData'][_0x4d26('0x19')]())if(_0x5c78f2===_0x257c2c[_0x4d26('0x1f')]){_0x15f3c4['ui'][_0x4d26('0x18')][_0x4d26('0xf')](_0x257c2c[_0x4d26('0x17')][_0x4d26('0x9')]),_0x17aefd['add'](_0x257c2c[_0x4d26('0x17')]);break;}}),this[_0x4d26('0x1d')](_0x426a5f[_0x4d26('0x2e')],_0x4d26('0x29'),(_0x821fb8,_0x57d102)=>{_0x17aefd[_0x4d26('0xa')](_0x57d102[_0x4d26('0x17')])&&(_0x15f3c4['ui'][_0x4d26('0x18')][_0x4d26('0x29')](_0x57d102[_0x4d26('0x17')][_0x4d26('0x9')]),_0x17aefd['delete'](_0x57d102[_0x4d26('0x17')]));});}[_0x4d26('0x24')](){return this[_0x4d26('0x0')]['editing'][_0x4d26('0x17')][_0x4d26('0x24')];}[_0x4d26('0x21')](_0x283e65){if(_0x4d26('0x20')!=typeof _0x283e65)throw new _0x9d48fc(_0x4d26('0x26'));this[_0x4d26('0x15')][_0x4d26('0xf')](_0x283e65);}[_0x4d26('0x2b')](){this[_0x4d26('0x2a')](_0x4d26('0x1e'));}[_0x4d26('0x6')]({activeAnnotation:_0x453af7,annotations:_0x2f2035}){const _0x1b6ebb=[],_0x351aab=this[_0x4d26('0x0')][_0x4d26('0x2')][_0x4d26('0x1c')]['selection'],_0x21c9e8=Array[_0x4d26('0x13')](_0x351aab[_0x4d26('0x2c')]());for(const [_0x125a7f,_0x4c7b4b]of this[_0x4d26('0x5')]){const _0x4bd058=_0x1f9e1a(_0x4c7b4b),_0x2b2922=_0x2f2035[_0x4d26('0x2d')](_0x125a7f);_0x4bd058&&_0x2b2922&&_0x1b6ebb[_0x4d26('0x1')]({'annotation':_0x2b2922,'range':_0x4bd058});}function _0x1f9e1a(_0x4a0849){for(const _0x3e9234 of _0x4a0849)for(const _0x202c79 of _0x21c9e8)if(_0x3e9234[_0x4d26('0x7')](_0x202c79,!_0x351aab[_0x4d26('0x4')]))return _0x3e9234;return null;}return _0x1b6ebb[_0x4d26('0xd')]((_0x1d610c,_0x14b525)=>{const _0x403e90=_0x1d610c[_0x4d26('0x12')],_0x214ed9=_0x14b525[_0x4d26('0x12')];if(!_0x403e90[_0x4d26('0x16')](_0x214ed9)){if(_0x403e90['containsRange'](_0x214ed9,!0x0))return 0x1;if(_0x214ed9['containsRange'](_0x403e90,!0x0))return-0x1;}return _0x1d610c[_0x4d26('0x11')]==_0x453af7?-0x1:_0x14b525[_0x4d26('0x11')]==_0x453af7?0x1:0x0;})[_0x4d26('0x10')](_0x236e80=>_0x236e80[_0x4d26('0x11')]);}get[_0x4d26('0x5')](){const _0x3c8f5b=new Map();for(const _0x46f1d3 of Array[_0x4d26('0x13')](this['_dataCollectors']))for(const [_0x1a230f,_0x108079]of _0x46f1d3())_0x3c8f5b[_0x4d26('0x25')](_0x1a230f,_0x108079);return _0x3c8f5b;}}
23
+ const _0x4b98=['range','delete','model','from','document','plugins','editing','hasDomSelection','_editorAnnotationsData','has','selection','refreshSelectedViews','editorannotations-invalid-source-callback','element','change:range','push','sort','addSourceCollector','focusTracker','isCollapsed','remove','add','change:isFocused','innerView','function','getRanges','listenTo','getByInnerView','uiUpdate','isReadOnly','map','_dataCollectors','init','keys','annotation','containsRange','editor','collection','view','EditorAnnotations','getOrderedSelectedAnnotations'];(function(_0xf2ae57,_0x4b98fc){const _0x2b3e79=function(_0x29d8c2){while(--_0x29d8c2){_0xf2ae57['push'](_0xf2ae57['shift']());}};_0x2b3e79(++_0x4b98fc);}(_0x4b98,0xa3));const _0x2b3e=function(_0xf2ae57,_0x4b98fc){_0xf2ae57=_0xf2ae57-0x0;let _0x2b3e79=_0x4b98[_0xf2ae57];return _0x2b3e79;};import{Plugin as _0x504ca4}from'ckeditor5/src/core';import{CKEditorError as _0x28a666}from'ckeditor5/src/utils';import{debounce as _0x4357a1}from'lodash-es';import _0x1dc09f from'./annotations';export default class k extends _0x504ca4{static get['requires'](){return[_0x1dc09f];}static get['pluginName'](){return _0x2b3e('0x28');}constructor(_0x3136bc){super(_0x3136bc),this[_0x2b3e('0x20')]=new Set();}[_0x2b3e('0x21')](){const _0x5a4d58=this[_0x2b3e('0x25')],_0x548143=_0x5a4d58[_0x2b3e('0x6')]['get'](_0x1dc09f),_0x11d012=_0x5a4d58[_0x2b3e('0x3')][_0x2b3e('0x5')][_0x2b3e('0xb')],_0x50e5f9=_0x4357a1(()=>this[_0x2b3e('0xc')](),0xa);_0x11d012['on'](_0x2b3e('0xf'),(_0xf5cc62,_0x569866)=>{_0x569866['directChange']&&(_0x50e5f9['cancel'](),this[_0x2b3e('0xc')]());}),this[_0x2b3e('0x1b')](_0x5a4d58['editing']['view'][_0x2b3e('0x5')],_0x2b3e('0x17'),(_0x2094d7,_0x3ab158,_0x48d7fb)=>{_0x48d7fb&&_0x50e5f9();}),this[_0x2b3e('0x1b')](_0x5a4d58['ui']['focusTracker'],_0x2b3e('0x17'),(_0x4cb111,_0x413c16,_0x37df9b)=>{_0x37df9b||_0x5a4d58[_0x2b3e('0x1e')]||this['fire']('blur',{'isAnnotationTracked':_0x474baa=>this[_0x2b3e('0x9')][_0x2b3e('0xa')](_0x474baa['innerView'])});}),this[_0x2b3e('0x1b')](this[_0x2b3e('0x25')]['ui'],'update',()=>this['fire'](_0x2b3e('0x1d')));const _0x5089d5=new Set();this[_0x2b3e('0x1b')](_0x548143['collection'],_0x2b3e('0x16'),(_0x76bf7b,_0x5341b5)=>{for(const _0x4d3758 of this['_editorAnnotationsData'][_0x2b3e('0x22')]())if(_0x4d3758===_0x5341b5[_0x2b3e('0x18')]){_0x5a4d58['ui']['focusTracker']['add'](_0x5341b5[_0x2b3e('0x27')][_0x2b3e('0xe')]),_0x5089d5['add'](_0x5341b5[_0x2b3e('0x27')]);break;}}),this[_0x2b3e('0x1b')](_0x548143[_0x2b3e('0x26')],_0x2b3e('0x15'),(_0x229ad1,_0x44d8b2)=>{_0x5089d5[_0x2b3e('0xa')](_0x44d8b2['view'])&&(_0x5a4d58['ui'][_0x2b3e('0x13')][_0x2b3e('0x15')](_0x44d8b2[_0x2b3e('0x27')]['element']),_0x5089d5[_0x2b3e('0x2')](_0x44d8b2[_0x2b3e('0x27')]));});}[_0x2b3e('0x8')](){return this[_0x2b3e('0x25')][_0x2b3e('0x7')]['view']['hasDomSelection'];}[_0x2b3e('0x12')](_0x332e5e){if(_0x2b3e('0x19')!=typeof _0x332e5e)throw new _0x28a666(_0x2b3e('0xd'));this[_0x2b3e('0x20')][_0x2b3e('0x16')](_0x332e5e);}[_0x2b3e('0xc')](){this['fire']('refresh');}[_0x2b3e('0x0')]({activeAnnotation:_0x134365,annotations:_0x9179a2}){const _0xe23ed8=[],_0x15c1d2=this['editor']['model']['document'][_0x2b3e('0xb')],_0x5ab805=Array[_0x2b3e('0x4')](_0x15c1d2[_0x2b3e('0x1a')]());for(const [_0x209f0a,_0x4461b1]of this[_0x2b3e('0x9')]){const _0x34a25b=_0x5e98fd(_0x4461b1),_0x3f5e3e=_0x9179a2[_0x2b3e('0x1c')](_0x209f0a);_0x34a25b&&_0x3f5e3e&&_0xe23ed8[_0x2b3e('0x10')]({'annotation':_0x3f5e3e,'range':_0x34a25b});}function _0x5e98fd(_0x19a459){for(const _0x2ea2f6 of _0x19a459)for(const _0x3eacfd of _0x5ab805)if(_0x2ea2f6[_0x2b3e('0x24')](_0x3eacfd,!_0x15c1d2[_0x2b3e('0x14')]))return _0x2ea2f6;return null;}return _0xe23ed8[_0x2b3e('0x11')]((_0x4fe400,_0x2b7497)=>{const _0x15084f=_0x4fe400[_0x2b3e('0x1')],_0x2dcd2d=_0x2b7497['range'];if(!_0x15084f['isEqual'](_0x2dcd2d)){if(_0x15084f[_0x2b3e('0x24')](_0x2dcd2d,!0x0))return 0x1;if(_0x2dcd2d[_0x2b3e('0x24')](_0x15084f,!0x0))return-0x1;}return _0x4fe400[_0x2b3e('0x23')]==_0x134365?-0x1:_0x2b7497[_0x2b3e('0x23')]==_0x134365?0x1:0x0;})[_0x2b3e('0x1f')](_0x454ed4=>_0x454ed4[_0x2b3e('0x23')]);}get['_editorAnnotationsData'](){const _0x2be4d6=new Map();for(const _0x25fb8c of Array[_0x2b3e('0x4')](this[_0x2b3e('0x20')]))for(const [_0x2f1a1a,_0x324465]of _0x25fb8c())_0x2be4d6['set'](_0x2f1a1a,_0x324465);return _0x2be4d6;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3396=['attach','_balloon','getByView','isFocused','isAttached','delete','mousedown','has','listenTo','showStack','Esc','init','editor','visibleView','get','includes','change:visibleView','refresh','context','inlineannotations-not-allowed-with-context','_addAnnotationToBalloon','afterInit','requires','hasActive','addObserver','target','plugins','_annotations','stopListening','document','update','remove','focus','_addedAnnotations','getSelection','inlineannotations-attach-already-attached','targetRect','keystrokes','set','detach','setActiveAnnotation','editing','activeAnnotation','focusTracker','isActive','bind','updatePosition','destroy','selection','getRangeAt','view','hasView','register','pluginName','_removeAnnotationFromBalloon','blur','_selectedAnnotations','_manuallyClosed','switchTo','InlineAnnotations','add','_setSelectedAnnotations'];(function(_0x378820,_0x3396a9){const _0x1aa174=function(_0x132818){while(--_0x132818){_0x378820['push'](_0x378820['shift']());}};_0x1aa174(++_0x3396a9);}(_0x3396,0x14d));const _0x1aa1=function(_0x378820,_0x3396a9){_0x378820=_0x378820-0x0;let _0x1aa174=_0x3396[_0x378820];return _0x1aa174;};import{Plugin as _0x50ef1d}from'ckeditor5/src/core';import _0x3ddb93 from'./annotationsuis';import _0x27b9c8 from'./editorannotations';import{ContextualBalloon as _0x313f07}from'ckeditor5/src/ui';import{MouseObserver as _0x1b0bf3}from'ckeditor5/src/engine';import{CKEditorError as _0x359701}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x50ef1d{static get[_0x1aa1('0x3d')](){return[_0x27b9c8,_0x313f07,_0x3ddb93];}static get[_0x1aa1('0x1e')](){return _0x1aa1('0x24');}constructor(_0x4a052f){super(_0x4a052f),_0x4a052f[_0x1aa1('0x12')][_0x1aa1('0x1b')][_0x1aa1('0x1')](_0x1b0bf3),this[_0x1aa1('0x2b')]=!0x1,this[_0x1aa1('0xf')](_0x1aa1('0x13'),null),this[_0x1aa1('0x4')]=null,this[_0x1aa1('0x22')]=new Set(),this[_0x1aa1('0x28')]=_0x4a052f[_0x1aa1('0x3')][_0x1aa1('0x35')](_0x313f07),this[_0x1aa1('0xa')]=new Set(),this[_0x1aa1('0x21')]=[];}[_0x1aa1('0x32')](){const _0x42a92c=this['editor'][_0x1aa1('0x3')][_0x1aa1('0x35')](_0x3ddb93);_0x42a92c[_0x1aa1('0x39')]===this[_0x1aa1('0x33')]&&(_0x42a92c[_0x1aa1('0x1d')]('inline',this),this[_0x1aa1('0x33')][_0x1aa1('0xe')]['set'](_0x1aa1('0x31'),(_0x371adb,_0x11c624)=>{const _0x3d25d0=this['_balloon'];if(this[_0x1aa1('0x2b')]&&_0x3d25d0[_0x1aa1('0x34')]){const _0x44e13b=this[_0x1aa1('0x4')][_0x1aa1('0x29')](_0x3d25d0[_0x1aa1('0x34')]);this[_0x1aa1('0x22')]['add'](_0x44e13b),this[_0x1aa1('0x1f')](_0x44e13b),_0x11c624();}}));}[_0x1aa1('0x3c')](){const _0x3aa2b6=this[_0x1aa1('0x33')][_0x1aa1('0x3')][_0x1aa1('0x35')](_0x3ddb93);_0x3aa2b6[_0x1aa1('0x39')]===this[_0x1aa1('0x33')]&&(_0x3aa2b6[_0x1aa1('0x0')]()||_0x3aa2b6[_0x1aa1('0x23')]('inline'));}[_0x1aa1('0x11')](_0x19a911){_0x19a911!==this[_0x1aa1('0x13')]&&(this[_0x1aa1('0x13')]&&(this[_0x1aa1('0x13')]['isActive']=!0x1),_0x19a911&&this[_0x1aa1('0x33')]['ui'][_0x1aa1('0x14')][_0x1aa1('0x2a')]&&(this[_0x1aa1('0x3b')](_0x19a911,!0x0),_0x19a911[_0x1aa1('0x15')]=!0x0),_0x19a911||this[_0x1aa1('0x26')]([]),this['activeAnnotation']=_0x19a911);}[_0x1aa1('0x27')](_0x523145){this[_0x1aa1('0x4')]=_0x523145;const _0x1e733d=this[_0x1aa1('0x33')][_0x1aa1('0x3')][_0x1aa1('0x35')](_0x3ddb93),_0x16a6b0=this[_0x1aa1('0x28')];if(this['isAttached'])throw new _0x359701(_0x1aa1('0xc'),this);if(_0x1e733d[_0x1aa1('0x39')]!==this[_0x1aa1('0x33')])throw new _0x359701(_0x1aa1('0x3a'),this);const _0xa2e466=this['editor']['plugins'][_0x1aa1('0x35')]('EditorAnnotations');this[_0x1aa1('0x2f')](_0xa2e466,_0x1aa1('0x38'),function(){const _0x330cbf=_0xa2e466['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x1aa1('0x4')]});this[_0x1aa1('0x26')](_0x330cbf),this['setActiveAnnotation'](_0x330cbf[0x0]||null);}[_0x1aa1('0x16')](this)),this['listenTo'](_0xa2e466,_0x1aa1('0x20'),(_0x14da7d,{isAnnotationTracked:_0xcde918})=>{this[_0x1aa1('0x13')]&&_0xcde918(this[_0x1aa1('0x13')])&&(this[_0x1aa1('0x26')]([]),this['setActiveAnnotation'](null));}),this[_0x1aa1('0x2f')](this[_0x1aa1('0x33')]['ui'][_0x1aa1('0x14')],'change:isFocused',(_0x363942,_0x7168de,_0x58f2d8)=>{_0x58f2d8||this[_0x1aa1('0x11')](null);}),this[_0x1aa1('0x2f')](_0x523145,'remove',(_0x47506c,_0x9cc996)=>{this[_0x1aa1('0x1f')](_0x9cc996),_0x9cc996===this[_0x1aa1('0x13')]&&this[_0x1aa1('0x11')](null);}),this[_0x1aa1('0x2f')](_0x16a6b0,_0x1aa1('0x37'),(_0x1bfeaf,_0x16eced,_0x544133,_0x4e3939)=>{if(_0x4e3939&&this['stopListening'](_0x4e3939),!_0x544133||!_0x523145['getByView'](_0x544133))return;const _0x506383=_0x523145[_0x1aa1('0x29')](_0x544133);this[_0x1aa1('0x2f')](_0x544133,'change:height',()=>{_0x16a6b0[_0x1aa1('0x17')]();}),this['listenTo'](_0x544133,'Esc',()=>{this[_0x1aa1('0x22')][_0x1aa1('0x25')](_0x506383),this[_0x1aa1('0x1f')](_0x506383),this[_0x1aa1('0x33')][_0x1aa1('0x12')]['view'][_0x1aa1('0x9')]();}),this['activeAnnotation']!==_0x506383&&this['setActiveAnnotation'](_0x506383);}),this[_0x1aa1('0x2f')](this[_0x1aa1('0x33')]['ui'],_0x1aa1('0x7'),()=>{_0x16a6b0[_0x1aa1('0x34')]&&(_0x523145['getByView'](_0x16a6b0[_0x1aa1('0x34')])&&_0x16a6b0[_0x1aa1('0x17')]());}),this['listenTo'](this[_0x1aa1('0x33')][_0x1aa1('0x12')][_0x1aa1('0x1b')][_0x1aa1('0x6')],_0x1aa1('0x2d'),()=>{this[_0x1aa1('0x22')]['clear']();}),this[_0x1aa1('0x33')][_0x1aa1('0x12')][_0x1aa1('0x1b')]['document'][_0x1aa1('0x19')]['editableElement']&&this[_0x1aa1('0x33')][_0x1aa1('0x12')][_0x1aa1('0x1b')][_0x1aa1('0x9')](),this[_0x1aa1('0x2b')]=!0x0;}[_0x1aa1('0x10')](){if(!this['isAttached'])throw new _0x359701('inlineannotations-detach-not-attached',this);this['setActiveAnnotation'](null);for(const _0x365e6b of this[_0x1aa1('0xa')])this[_0x1aa1('0x1f')](_0x365e6b);this[_0x1aa1('0x5')](),this[_0x1aa1('0x2b')]=!0x1;}[_0x1aa1('0x18')](){this['isAttached']&&this[_0x1aa1('0x10')]();}[_0x1aa1('0x26')](_0x2b0f3c){const _0x2ccfc6=this[_0x1aa1('0x21')];for(const _0x887737 of _0x2ccfc6)_0x2b0f3c[_0x1aa1('0x36')](_0x887737)||this['_manuallyClosed'][_0x1aa1('0x2c')](_0x887737);for(const _0xc1ef31 of this[_0x1aa1('0x4')])_0x2b0f3c[_0x1aa1('0x36')](_0xc1ef31)||this['_removeAnnotationFromBalloon'](_0xc1ef31);if(this[_0x1aa1('0x33')]['ui'][_0x1aa1('0x14')][_0x1aa1('0x2a')])for(const _0xa395cb of _0x2b0f3c)this[_0x1aa1('0x3b')](_0xa395cb);this[_0x1aa1('0x21')]=_0x2b0f3c;}['_addAnnotationToBalloon'](_0x4de5c5,_0x454de9){this[_0x1aa1('0x22')][_0x1aa1('0x2e')](_0x4de5c5)||(this[_0x1aa1('0xa')][_0x1aa1('0x2e')](_0x4de5c5)||this[_0x1aa1('0x28')][_0x1aa1('0x1c')](_0x4de5c5[_0x1aa1('0x1b')])||(this[_0x1aa1('0xa')][_0x1aa1('0x25')](_0x4de5c5),this[_0x1aa1('0x28')][_0x1aa1('0x25')]({'stackId':_0x4de5c5[_0x1aa1('0x1b')]['id'],'view':_0x4de5c5['view'],'position':{'target':()=>_0x4de5c5[_0x1aa1('0x2')]||_0x4de5c5[_0x1aa1('0xd')]||document[_0x1aa1('0xb')]()[_0x1aa1('0x1a')](0x0)}})),_0x454de9&&this[_0x1aa1('0x28')][_0x1aa1('0x30')](_0x4de5c5[_0x1aa1('0x1b')]['id']));}[_0x1aa1('0x1f')](_0x20a9ee){this[_0x1aa1('0xa')]['has'](_0x20a9ee)&&this['_balloon'][_0x1aa1('0x1c')](_0x20a9ee['view'])&&(this[_0x1aa1('0xa')][_0x1aa1('0x2c')](_0x20a9ee),this['_balloon'][_0x1aa1('0x8')](_0x20a9ee[_0x1aa1('0x1b')]));}}
23
+ const _0x4486=['switchTo','_removeAnnotationFromBalloon','editing','addObserver','delete','annotations','inlineannotations-attach-already-attached','view','focus','isFocused','getRangeAt','listenTo','stopListening','get','focusTracker','set','context','document','blur','_addedAnnotations','isActive','editor','_setSelectedAnnotations','selection','init','visibleView','plugins','getSelection','attach','change:height','getByView','EditorAnnotations','has','requires','hasActive','_selectedAnnotations','hasView','targetRect','includes','destroy','detach','remove','_manuallyClosed','pluginName','bind','add','_addAnnotationToBalloon','afterInit','_balloon','inlineannotations-detach-not-attached','setActiveAnnotation','isAttached','update','refresh','activeAnnotation','change:visibleView','change:isFocused','Esc','register','updatePosition','editableElement','inline'];(function(_0x31e4ea,_0x4486c1){const _0x2b9714=function(_0x2cf135){while(--_0x2cf135){_0x31e4ea['push'](_0x31e4ea['shift']());}};_0x2b9714(++_0x4486c1);}(_0x4486,0x135));const _0x2b97=function(_0x31e4ea,_0x4486c1){_0x31e4ea=_0x31e4ea-0x0;let _0x2b9714=_0x4486[_0x31e4ea];return _0x2b9714;};import{Plugin as _0x1d8821}from'ckeditor5/src/core';import _0x116dd7 from'./annotationsuis';import _0x4573bf from'./editorannotations';import{ContextualBalloon as _0x348557}from'ckeditor5/src/ui';import{MouseObserver as _0x11caaa}from'ckeditor5/src/engine';import{CKEditorError as _0x19e256}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class a extends _0x1d8821{static get[_0x2b97('0x22')](){return[_0x4573bf,_0x348557,_0x116dd7];}static get[_0x2b97('0x2c')](){return'InlineAnnotations';}constructor(_0x34d9e6){super(_0x34d9e6),_0x34d9e6['editing'][_0x2b97('0x8')][_0x2b97('0x4')](_0x11caaa),this[_0x2b97('0x34')]=!0x1,this[_0x2b97('0x10')](_0x2b97('0x37'),null),this[_0x2b97('0x6')]=null,this[_0x2b97('0x2b')]=new Set(),this[_0x2b97('0x31')]=_0x34d9e6['plugins'][_0x2b97('0xe')](_0x348557),this[_0x2b97('0x14')]=new Set(),this[_0x2b97('0x24')]=[];}[_0x2b97('0x19')](){const _0x48151d=this[_0x2b97('0x16')]['plugins'][_0x2b97('0xe')](_0x116dd7);_0x48151d[_0x2b97('0x11')]===this[_0x2b97('0x16')]&&(_0x48151d[_0x2b97('0x3b')](_0x2b97('0x0'),this),this[_0x2b97('0x16')]['keystrokes'][_0x2b97('0x10')](_0x2b97('0x3a'),(_0x45bde7,_0x40094c)=>{const _0x274291=this[_0x2b97('0x31')];if(this[_0x2b97('0x34')]&&_0x274291[_0x2b97('0x1a')]){const _0x266c4b=this[_0x2b97('0x6')][_0x2b97('0x1f')](_0x274291[_0x2b97('0x1a')]);this[_0x2b97('0x2b')][_0x2b97('0x2e')](_0x266c4b),this[_0x2b97('0x2')](_0x266c4b),_0x40094c();}}));}[_0x2b97('0x30')](){const _0x18a16a=this[_0x2b97('0x16')][_0x2b97('0x1b')][_0x2b97('0xe')](_0x116dd7);_0x18a16a[_0x2b97('0x11')]===this['editor']&&(_0x18a16a[_0x2b97('0x23')]()||_0x18a16a[_0x2b97('0x1')](_0x2b97('0x0')));}[_0x2b97('0x33')](_0x3ce7df){_0x3ce7df!==this[_0x2b97('0x37')]&&(this[_0x2b97('0x37')]&&(this[_0x2b97('0x37')][_0x2b97('0x15')]=!0x1),_0x3ce7df&&this[_0x2b97('0x16')]['ui']['focusTracker'][_0x2b97('0xa')]&&(this['_addAnnotationToBalloon'](_0x3ce7df,!0x0),_0x3ce7df[_0x2b97('0x15')]=!0x0),_0x3ce7df||this[_0x2b97('0x17')]([]),this['activeAnnotation']=_0x3ce7df);}[_0x2b97('0x1d')](_0x223f3e){this[_0x2b97('0x6')]=_0x223f3e;const _0x4db9dc=this['editor'][_0x2b97('0x1b')][_0x2b97('0xe')](_0x116dd7),_0x3414c1=this[_0x2b97('0x31')];if(this[_0x2b97('0x34')])throw new _0x19e256(_0x2b97('0x7'),this);if(_0x4db9dc[_0x2b97('0x11')]!==this['editor'])throw new _0x19e256('inlineannotations-not-allowed-with-context',this);const _0x30195e=this['editor'][_0x2b97('0x1b')][_0x2b97('0xe')](_0x2b97('0x20'));this['listenTo'](_0x30195e,_0x2b97('0x36'),function(){const _0x38307e=_0x30195e['getOrderedSelectedAnnotations']({'activeAnnotation':this['activeAnnotation'],'annotations':this[_0x2b97('0x6')]});this[_0x2b97('0x17')](_0x38307e),this[_0x2b97('0x33')](_0x38307e[0x0]||null);}[_0x2b97('0x2d')](this)),this[_0x2b97('0xc')](_0x30195e,_0x2b97('0x13'),(_0xaa46a,{isAnnotationTracked:_0x235fee})=>{this[_0x2b97('0x37')]&&_0x235fee(this[_0x2b97('0x37')])&&(this['_setSelectedAnnotations']([]),this[_0x2b97('0x33')](null));}),this[_0x2b97('0xc')](this[_0x2b97('0x16')]['ui'][_0x2b97('0xf')],_0x2b97('0x39'),(_0x56d4fc,_0x3d731f,_0x466761)=>{_0x466761||this['setActiveAnnotation'](null);}),this[_0x2b97('0xc')](_0x223f3e,'remove',(_0x4e084d,_0x2b33fc)=>{this[_0x2b97('0x2')](_0x2b33fc),_0x2b33fc===this[_0x2b97('0x37')]&&this['setActiveAnnotation'](null);}),this[_0x2b97('0xc')](_0x3414c1,_0x2b97('0x38'),(_0x2f05ed,_0x529951,_0x49271e,_0x587372)=>{if(_0x587372&&this[_0x2b97('0xd')](_0x587372),!_0x49271e||!_0x223f3e[_0x2b97('0x1f')](_0x49271e))return;const _0x25580c=_0x223f3e['getByView'](_0x49271e);this['listenTo'](_0x49271e,_0x2b97('0x1e'),()=>{_0x3414c1[_0x2b97('0x3c')]();}),this[_0x2b97('0xc')](_0x49271e,_0x2b97('0x3a'),()=>{this['_manuallyClosed'][_0x2b97('0x2e')](_0x25580c),this['_removeAnnotationFromBalloon'](_0x25580c),this[_0x2b97('0x16')][_0x2b97('0x3')][_0x2b97('0x8')]['focus']();}),this['activeAnnotation']!==_0x25580c&&this[_0x2b97('0x33')](_0x25580c);}),this[_0x2b97('0xc')](this[_0x2b97('0x16')]['ui'],_0x2b97('0x35'),()=>{_0x3414c1['visibleView']&&(_0x223f3e[_0x2b97('0x1f')](_0x3414c1[_0x2b97('0x1a')])&&_0x3414c1['updatePosition']());}),this[_0x2b97('0xc')](this['editor'][_0x2b97('0x3')][_0x2b97('0x8')][_0x2b97('0x12')],'mousedown',()=>{this[_0x2b97('0x2b')]['clear']();}),this[_0x2b97('0x16')][_0x2b97('0x3')][_0x2b97('0x8')][_0x2b97('0x12')][_0x2b97('0x18')][_0x2b97('0x3d')]&&this[_0x2b97('0x16')][_0x2b97('0x3')]['view'][_0x2b97('0x9')](),this['isAttached']=!0x0;}[_0x2b97('0x29')](){if(!this[_0x2b97('0x34')])throw new _0x19e256(_0x2b97('0x32'),this);this[_0x2b97('0x33')](null);for(const _0x5b1952 of this[_0x2b97('0x14')])this[_0x2b97('0x2')](_0x5b1952);this['stopListening'](),this[_0x2b97('0x34')]=!0x1,this['annotations']=null;}[_0x2b97('0x28')](){this[_0x2b97('0x34')]&&this[_0x2b97('0x29')]();}[_0x2b97('0x17')](_0x326acd){const _0x4c8501=this['_selectedAnnotations'];for(const _0x4851f1 of _0x4c8501)_0x326acd[_0x2b97('0x27')](_0x4851f1)||this['_manuallyClosed'][_0x2b97('0x5')](_0x4851f1);for(const _0x131d66 of this[_0x2b97('0x6')])_0x326acd[_0x2b97('0x27')](_0x131d66)||this['_removeAnnotationFromBalloon'](_0x131d66);if(this['editor']['ui']['focusTracker'][_0x2b97('0xa')])for(const _0x8890c7 of _0x326acd)this[_0x2b97('0x2f')](_0x8890c7);this['_selectedAnnotations']=_0x326acd;}[_0x2b97('0x2f')](_0x3b9d27,_0xcd10dd){this[_0x2b97('0x2b')][_0x2b97('0x21')](_0x3b9d27)||(this[_0x2b97('0x14')]['has'](_0x3b9d27)||this[_0x2b97('0x31')][_0x2b97('0x25')](_0x3b9d27['view'])||(this[_0x2b97('0x14')]['add'](_0x3b9d27),this[_0x2b97('0x31')][_0x2b97('0x2e')]({'stackId':_0x3b9d27[_0x2b97('0x8')]['id'],'view':_0x3b9d27[_0x2b97('0x8')],'position':{'target':()=>_0x3b9d27['target']||_0x3b9d27[_0x2b97('0x26')]||document[_0x2b97('0x1c')]()[_0x2b97('0xb')](0x0)}})),_0xcd10dd&&this[_0x2b97('0x31')]['showStack'](_0x3b9d27[_0x2b97('0x8')]['id']));}[_0x2b97('0x2')](_0x5488f5){this[_0x2b97('0x14')][_0x2b97('0x21')](_0x5488f5)&&this['_balloon'][_0x2b97('0x25')](_0x5488f5[_0x2b97('0x8')])&&(this[_0x2b97('0x14')][_0x2b97('0x5')](_0x5488f5),this[_0x2b97('0x31')][_0x2b97('0x2a')](_0x5488f5['view']));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4109=['bodyCollection','_detachListeners','isVisible','_refreshPositioning','preventClosingBalloon','EditorAnnotations','length','_integrateWithEditorAnnotations','Esc','blur','keyCode','_attachToContainer','_detachFromContainer','context','has','refresh','_updateBalloonPosition','first','execute','mousedown','_hideBalloon','isAttached','view','change:container','remove','off','southArrowNorth','from','resize','editors','element','_throttledRefreshPositioning','pin','detach','get','addEventListener','getSidebarItemView','unpin','_showBalloon','register','narrowSidebar','detachFromDom','rearrange','focus','cancel','stop','setActiveAnnotation','_domEmitter','clear','delete','narrowsidebar-attach-already-attached','_attachListeners','locale','_setSelectedAnnotations','_editorAnnotations','_annotations','_selectedAnnotations','getByView','set','hasDomSelection','removeEventListener','_destroyEditorAnnotationsIntegration','values','includes','uiUpdate','refreshPositioning','add','attach','type','init','listenTo','attachToDom','northArrowSouthWest','_annotationToNarrowView','set:container','target','plugins','activeAnnotation','destroy','isDirty','northArrowSouth','stopListening','content','_manuallyClosedAnnotationViews','pluginName','getOrderedSelectedAnnotations','balloonPanelView','bind','contains'];(function(_0x2b08ca,_0x4109ef){const _0x149e60=function(_0x47c522){while(--_0x47c522){_0x2b08ca['push'](_0x2b08ca['shift']());}};_0x149e60(++_0x4109ef);}(_0x4109,0x118));const _0x149e=function(_0x2b08ca,_0x4109ef){_0x2b08ca=_0x2b08ca-0x0;let _0x149e60=_0x4109[_0x2b08ca];return _0x149e60;};import{ContextPlugin as _0x41d2a7}from'ckeditor5/src/core';import _0x25ca17 from'./annotationsuis';import _0x3730a4 from'./sidebar';import _0xddd155 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x344a29,BodyCollection as _0x394ed0}from'ckeditor5/src/ui';import{CKEditorError as _0x2a189d,DomEmitterMixin as _0xbe4cda,keyCodes as _0x20d6be,Collection as _0x2da181}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x26e246}from'lodash-es';export default class s extends _0x41d2a7{static get['requires'](){return[_0x3730a4,_0x25ca17];}static get[_0x149e('0x47')](){return'NarrowSidebar';}constructor(_0x20a24b){super(_0x20a24b),this[_0x149e('0x8')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this[_0x149e('0x22')]=Object['create'](_0xbe4cda),this['_annotationToNarrowView']=new Map(),this[_0x149e('0x2d')](_0x149e('0x40'),null),this['_annotations']=null,this[_0x149e('0x2b')]=[],this['_editorAnnotations']=new _0x2da181(),this['_throttledRefreshPositioning']=_0x26e246(()=>{this[_0x149e('0x4f')]();},0x190,{'leading':!0x1});}[_0x149e('0x38')](){this[_0x149e('0x0')][_0x149e('0x3f')][_0x149e('0x15')](_0x25ca17)[_0x149e('0x1a')](_0x149e('0x1b'),this),this[_0x149e('0x4c')]=new _0x394ed0(this[_0x149e('0x0')][_0x149e('0x27')]),this[_0x149e('0x49')]=new _0x344a29(this[_0x149e('0x0')][_0x149e('0x27')]),this['bodyCollection'][_0x149e('0x3a')](),this['bodyCollection'][_0x149e('0x35')](this['balloonPanelView']);}[_0x149e('0x36')](_0x1c4ee3){this[_0x149e('0x2a')]=_0x1c4ee3;const _0x3146e2=this['context'][_0x149e('0x3f')][_0x149e('0x15')](_0x3730a4),_0x3b539d=this['balloonPanelView'];if(_0x3146e2[_0x149e('0x2a')]=_0x1c4ee3,this['isAttached'])throw new _0x2a189d(_0x149e('0x25'),this);this[_0x149e('0x8')]=!0x0,this[_0x149e('0x39')](_0x3146e2,_0x149e('0x3d'),()=>{this[_0x149e('0x14')](),this[_0x149e('0x39')](_0x3146e2,_0x149e('0xa'),_0x1e5241=>{_0x1e5241[_0x149e('0xc')](),this[_0x149e('0x36')](_0x1c4ee3);});}),_0x3146e2[_0x149e('0x57')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x4603f4=_0x38e9df=>{const _0x504c28=new _0xddd155(this[_0x149e('0x0')][_0x149e('0x27')]);_0x3146e2['addAnnotation'](_0x38e9df,_0x504c28),this[_0x149e('0x3c')][_0x149e('0x2d')](_0x38e9df,_0x504c28),_0x504c28[_0x149e('0x4a')](_0x149e('0x42'),'annotationType','number')['to'](_0x38e9df['view'],_0x149e('0x42'),_0x149e('0x37'),_0x149e('0x52')),_0x504c28['on'](_0x149e('0x5'),()=>{this[_0x149e('0x46')][_0x149e('0x23')](),_0x3b539d[_0x149e('0x45')][_0x149e('0x4')]!==_0x38e9df[_0x149e('0x9')]?(this[_0x149e('0x19')](_0x38e9df),_0x38e9df[_0x149e('0x9')][_0x149e('0x11')][_0x149e('0x1e')](),this[_0x149e('0x21')](_0x38e9df)):this[_0x149e('0x21')](null);});};for(const _0x357fc9 of _0x1c4ee3)_0x4603f4(_0x357fc9);this[_0x149e('0x39')](_0x1c4ee3,_0x149e('0x35'),(_0x3e133b,_0x194e73)=>{_0x4603f4(_0x194e73);}),this['listenTo'](_0x1c4ee3,_0x149e('0xb'),(_0x49f730,_0x31d7d4,_0x26ad97)=>{this[_0x149e('0x3c')][_0x149e('0x15')](_0x31d7d4)[_0x149e('0x41')](),this[_0x149e('0x3c')][_0x149e('0x24')](_0x31d7d4),_0x3146e2[_0x149e('0x1d')]({'removedAnnotation':_0x31d7d4,'previousAnnotation':_0x1c4ee3[_0x149e('0x15')](_0x26ad97-0x1),'nextAnnotation':_0x1c4ee3[_0x149e('0x15')](_0x26ad97+0x1)}),_0x31d7d4===this[_0x149e('0x40')]&&this[_0x149e('0x21')](null);},{'priority':'low'}),this['listenTo'](_0x1c4ee3,_0x149e('0x1e'),(_0x548029,_0x35351c)=>{this['setActiveAnnotation'](_0x35351c);}),this[_0x149e('0x39')](_0x1c4ee3,_0x149e('0x55'),()=>{this[_0x149e('0x21')](null);}),this[_0x149e('0x22')]['listenTo'](document,'keydown',(_0x281091,_0x454dcc)=>{_0x454dcc[_0x149e('0x56')]===_0x20d6be['esc']&&_0x3b539d[_0x149e('0x4e')]&&(this['_manuallyClosedAnnotationViews'][_0x149e('0x35')](_0x3b539d[_0x149e('0x45')][_0x149e('0x4')]),this[_0x149e('0x7')](),_0x454dcc['stopPropagation'](),_0x454dcc['preventDefault']());}),this[_0x149e('0x22')]['listenTo'](document,_0x149e('0x6'),(_0x5c8b83,_0x2050d7)=>{const _0x480aab=_0x2050d7[_0x149e('0x3e')];_0x3b539d[_0x149e('0x4e')]&&_0x3b539d[_0x149e('0x11')][_0x149e('0x4b')](_0x480aab)||_0x3146e2[_0x149e('0x9')]['element'][_0x149e('0x4b')](_0x480aab)||_0x5c8b83[_0x149e('0x50')]||(this[_0x149e('0x46')][_0x149e('0x23')](),this[_0x149e('0x7')](),this[_0x149e('0x21')](null));});const _0x2b42e2=this[_0x149e('0x0')]['editors']?this[_0x149e('0x0')][_0x149e('0x10')]:new _0x2da181([this[_0x149e('0x0')]]);for(const _0x4f5ae3 of _0x2b42e2)this['_integrateWithEditorAnnotations'](_0x4f5ae3);this['listenTo'](_0x2b42e2,_0x149e('0x35'),(_0x222a5e,_0x18cb84)=>{this['listenTo'](_0x18cb84,'ready',()=>{this[_0x149e('0x53')](_0x18cb84);});}),this[_0x149e('0x39')](_0x2b42e2,_0x149e('0xb'),(_0x59d793,_0x58b7fd)=>{_0x58b7fd[_0x149e('0x3f')]['has'](_0x149e('0x51'))&&this[_0x149e('0x30')](_0x58b7fd[_0x149e('0x3f')][_0x149e('0x15')](_0x149e('0x51')));}),window[_0x149e('0x16')](_0x149e('0xf'),this[_0x149e('0x12')]),this[_0x149e('0x4f')]();}['setActiveAnnotation'](_0x28f6b8){if(_0x28f6b8===this[_0x149e('0x40')])return;const _0x2eac12=this[_0x149e('0x0')]['plugins']['get']('Sidebar');if(_0x2eac12[_0x149e('0x2')]({'blurredAnnotation':this['activeAnnotation'],'activatedAnnotation':_0x28f6b8,'disableAnimationOnActivatedAnnotation':!0x0}),_0x28f6b8)_0x2eac12[_0x149e('0x17')](_0x28f6b8)?this[_0x149e('0x19')](_0x28f6b8):this[_0x149e('0x7')]();else this[_0x149e('0x7')]();this[_0x149e('0x40')]=_0x28f6b8;}['detach'](){if(!this[_0x149e('0x8')])throw new _0x2a189d('narrowsidebar-detach-not-attached',this);this['setActiveAnnotation'](null);const _0x17c60b=this[_0x149e('0x0')][_0x149e('0x3f')]['get']('Sidebar');this[_0x149e('0x7')](),Array[_0x149e('0xe')](this[_0x149e('0x3c')][_0x149e('0x31')](),_0x396d0e=>_0x396d0e[_0x149e('0x41')]()),this[_0x149e('0x3c')]['clear'](),_0x17c60b[_0x149e('0x58')](this[_0x149e('0x2a')]),this[_0x149e('0x44')](),this[_0x149e('0x22')][_0x149e('0x44')](),this['stopListening'](this[_0x149e('0x0')][_0x149e('0x10')]);for(const _0x57076b of Array['from'](this['_editorAnnotations']))this[_0x149e('0x30')](_0x57076b);window[_0x149e('0x2f')](_0x149e('0xf'),this['_throttledRefreshPositioning']),this[_0x149e('0x12')][_0x149e('0x1f')](),this[_0x149e('0x2b')]=[],this['isAttached']=!0x1,this[_0x149e('0x2a')]=null;}[_0x149e('0x41')](){this[_0x149e('0x8')]&&this[_0x149e('0x14')](),this[_0x149e('0x4c')][_0x149e('0x1c')]();}[_0x149e('0x53')](_0x40a17f){const _0x1a5c1b=_0x40a17f[_0x149e('0x3f')][_0x149e('0x15')](_0x149e('0x51')),_0x29634d=this[_0x149e('0x0')]['plugins'][_0x149e('0x15')](_0x3730a4),_0x1ed67f=this[_0x149e('0x2a')],_0x31f84c=this['balloonPanelView'],_0x3de6cc=()=>{const _0x5969e4=_0x1a5c1b[_0x149e('0x48')]({'activeAnnotation':this[_0x149e('0x40')],'annotations':this[_0x149e('0x2a')]});this[_0x149e('0x28')](_0x5969e4),this['setActiveAnnotation'](_0x5969e4[0x0]||null);};this[_0x149e('0x39')](_0x1a5c1b,_0x149e('0x2'),_0x3de6cc),this['listenTo'](_0x1a5c1b,_0x149e('0x55'),(_0xb4f5a8,{isAnnotationTracked:_0x4033ab})=>{this[_0x149e('0x40')]&&_0x4033ab(this[_0x149e('0x40')])&&(this[_0x149e('0x28')]([]),this[_0x149e('0x21')](null));}),this[_0x149e('0x39')](_0x1a5c1b,_0x149e('0x33'),()=>{this['_throttledRefreshPositioning']();}),this['listenTo'](_0x1ed67f,_0x149e('0x55'),_0x358abf=>{_0x1a5c1b['hasDomSelection']()&&_0x358abf[_0x149e('0x20')]();},{'priority':'high'}),this[_0x149e('0x22')]['listenTo'](document,_0x149e('0x6'),(_0x53d272,_0xa64762)=>{const _0x1a9a36=_0xa64762[_0x149e('0x3e')];_0x31f84c['isVisible']&&_0x31f84c[_0x149e('0x11')][_0x149e('0x4b')](_0x1a9a36)||_0x29634d[_0x149e('0x9')][_0x149e('0x11')][_0x149e('0x4b')](_0x1a9a36)||this['activeAnnotation']&&_0x1a5c1b[_0x149e('0x2e')]()&&(_0x3de6cc(),_0x53d272[_0x149e('0x50')]=!0x0);},{'priority':'high'}),this[_0x149e('0x29')]['add'](_0x1a5c1b);}[_0x149e('0x30')](_0x2f2da3){_0x2f2da3&&(this[_0x149e('0x44')](_0x2f2da3),this[_0x149e('0x29')][_0x149e('0xb')](_0x2f2da3));}[_0x149e('0x28')](_0x4d5959){for(const _0x5b0f21 of this[_0x149e('0x2b')])_0x4d5959[_0x149e('0x32')](_0x5b0f21)||this['_manuallyClosedAnnotationViews'][_0x149e('0x24')](_0x5b0f21[_0x149e('0x9')]);this[_0x149e('0x2b')]=_0x4d5959;}['_refreshPositioning'](){const _0x5086aa=this[_0x149e('0x49')];this['_annotations'][_0x149e('0x34')](),_0x5086aa[_0x149e('0x4e')]&&this[_0x149e('0x3')]();}[_0x149e('0x19')](_0x14cabe){if(this[_0x149e('0x46')][_0x149e('0x1')](_0x14cabe[_0x149e('0x9')]))return;const _0x5bcf79=this[_0x149e('0x49')]['content'][_0x149e('0x4')];_0x5bcf79!==_0x14cabe[_0x149e('0x9')]?(_0x5bcf79&&this[_0x149e('0x4d')](_0x5bcf79),this['_attachListeners'](_0x14cabe[_0x149e('0x9')]),this[_0x149e('0x49')]['content'][_0x149e('0x23')](),this[_0x149e('0x49')][_0x149e('0x45')][_0x149e('0x35')](_0x14cabe['view']),this[_0x149e('0x3')]()):this[_0x149e('0x3')]();}[_0x149e('0x3')](){const _0x423ad5=this['balloonPanelView'][_0x149e('0x45')][_0x149e('0x4')],_0x141e2b=this[_0x149e('0x2a')][_0x149e('0x2c')](_0x423ad5);if(!this[_0x149e('0x3c')][_0x149e('0x1')](_0x141e2b))return;const _0x5a683e=this[_0x149e('0x3c')][_0x149e('0x15')](_0x141e2b)[_0x149e('0x11')],_0x2ff870=function(){const _0x32b428=_0x344a29['defaultPositions'];return[_0x32b428['southArrowNorthEast'],_0x32b428['northArrowSouthEast'],_0x32b428[_0x149e('0xd')],_0x32b428[_0x149e('0x43')],_0x32b428['southArrowNorthWest'],_0x32b428[_0x149e('0x3b')]];}();this[_0x149e('0x49')][_0x149e('0x13')]({'target':_0x5a683e,'positions':_0x2ff870});}[_0x149e('0x7')](){const _0x2618b0=this[_0x149e('0x49')],_0x4488d9=_0x2618b0[_0x149e('0x45')][_0x149e('0x4')];_0x4488d9&&(this[_0x149e('0x4d')](_0x4488d9),_0x2618b0[_0x149e('0x18')](),_0x2618b0['content'][_0x149e('0x23')]());}[_0x149e('0x26')](_0x38d527){this[_0x149e('0x39')](_0x38d527,'change:height',()=>this[_0x149e('0x3')]()),this['listenTo'](_0x38d527,_0x149e('0x54'),(_0x58342e,_0x375260)=>{this[_0x149e('0x46')]['add'](_0x38d527),this[_0x149e('0x7')](),_0x375260();});}[_0x149e('0x4d')](_0x409a70){this['stopListening'](_0x409a70);}}
23
+ const _0x4305=['create','_attachListeners','blur','_setSelectedAnnotations','add','refresh','clear','set:container','type','pluginName','locale','northArrowSouthEast','focus','narrowSidebar','attach','southArrowNorthEast','preventDefault','values','first','stopPropagation','detachFromDom','_editorAnnotations','delete','low','balloonPanelView','includes','element','annotations','requires','off','change:container','pin','_selectedAnnotations','removeEventListener','EditorAnnotations','activeAnnotation','_annotationToNarrowView','getSidebarItemView','_manuallyClosedAnnotationViews','_domEmitter','_hideBalloon','rearrange','high','register','_showBalloon','_integrateWithEditorAnnotations','northArrowSouthWest','addAnnotation','cancel','execute','preventClosingBalloon','isVisible','Sidebar','isAttached','esc','has','Esc','getByView','hasDomSelection','_throttledRefreshPositioning','defaultPositions','listenTo','_refreshPositioning','annotationType','refreshPositioning','southArrowNorth','number','getOrderedSelectedAnnotations','uiUpdate','_attachToContainer','stopListening','mousedown','isDirty','_detachListeners','content','_destroyEditorAnnotationsIntegration','view','length','resize','change:height','bodyCollection','remove','context','detach','set','destroy','target','editors','narrowsidebar-detach-not-attached','from','_updateBalloonPosition','get','ck-sidebar--narrow','unpin','contains','southArrowNorthWest','setActiveAnnotation','_annotations','plugins'];(function(_0x546ae9,_0x4305d0){const _0x3b8630=function(_0x565051){while(--_0x565051){_0x546ae9['push'](_0x546ae9['shift']());}};_0x3b8630(++_0x4305d0);}(_0x4305,0x1c6));const _0x3b86=function(_0x546ae9,_0x4305d0){_0x546ae9=_0x546ae9-0x0;let _0x3b8630=_0x4305[_0x546ae9];return _0x3b8630;};import{ContextPlugin as _0x4435ab}from'ckeditor5/src/core';import _0xd71489 from'./annotationsuis';import _0x34fd7c from'./sidebar';import _0x51b7d7 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x6b225,BodyCollection as _0x44e203}from'ckeditor5/src/ui';import{CKEditorError as _0x3a2f29,DomEmitterMixin as _0x49ebe4,keyCodes as _0x26eaee,Collection as _0x59100f}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{throttle as _0x540086}from'lodash-es';export default class s extends _0x4435ab{static get[_0x3b86('0x45')](){return[_0x34fd7c,_0xd71489];}static get[_0x3b86('0x32')](){return'NarrowSidebar';}constructor(_0x1d06ca){super(_0x1d06ca),this[_0x3b86('0x5e')]=!0x1,this[_0x3b86('0x4f')]=new Set(),this['_domEmitter']=Object[_0x3b86('0x29')](_0x49ebe4),this[_0x3b86('0x4d')]=new Map(),this[_0x3b86('0x1a')]('activeAnnotation',null),this[_0x3b86('0x44')]=null,this[_0x3b86('0x49')]=[],this[_0x3b86('0x3e')]=new _0x59100f(),this[_0x3b86('0x1')]=_0x540086(()=>{this[_0x3b86('0x4')]();},0x190,{'leading':!0x1});}['init'](){this[_0x3b86('0x18')]['plugins']['get'](_0xd71489)[_0x3b86('0x54')](_0x3b86('0x36'),this),this[_0x3b86('0x16')]=new _0x44e203(this['context'][_0x3b86('0x33')]),this[_0x3b86('0x41')]=new _0x6b225(this['context']['locale']),this[_0x3b86('0x16')]['attachToDom'](),this[_0x3b86('0x16')][_0x3b86('0x2d')](this[_0x3b86('0x41')]);}[_0x3b86('0x37')](_0x27333a){this[_0x3b86('0x44')]=_0x27333a;const _0x3530f6=this[_0x3b86('0x18')][_0x3b86('0x28')]['get'](_0x34fd7c),_0x118e57=this[_0x3b86('0x41')];if(_0x3530f6[_0x3b86('0x27')]=_0x27333a,this['isAttached'])throw new _0x3a2f29('narrowsidebar-attach-already-attached',this);this[_0x3b86('0x5e')]=!0x0,this[_0x3b86('0x3')](_0x3530f6,_0x3b86('0x30'),()=>{this[_0x3b86('0x19')](),this[_0x3b86('0x3')](_0x3530f6,_0x3b86('0x47'),_0x1cdc6f=>{_0x1cdc6f[_0x3b86('0x46')](),this[_0x3b86('0x37')](_0x27333a);});}),_0x3530f6[_0x3b86('0xb')]({'viewClass':_0x3b86('0x22'),'spaceBetweenItems':0x5});const _0x572516=_0x4b4a17=>{const _0x4bf1e7=new _0x51b7d7(this[_0x3b86('0x18')][_0x3b86('0x33')]);_0x3530f6[_0x3b86('0x58')](_0x4b4a17,_0x4bf1e7),this[_0x3b86('0x4d')][_0x3b86('0x1a')](_0x4b4a17,_0x4bf1e7),_0x4bf1e7['bind'](_0x3b86('0xe'),_0x3b86('0x5'),_0x3b86('0x8'))['to'](_0x4b4a17[_0x3b86('0x12')],_0x3b86('0xe'),_0x3b86('0x31'),_0x3b86('0x13')),_0x4bf1e7['on'](_0x3b86('0x5a'),()=>{this[_0x3b86('0x4f')][_0x3b86('0x2f')](),_0x118e57[_0x3b86('0x10')][_0x3b86('0x3b')]!==_0x4b4a17[_0x3b86('0x12')]?(this[_0x3b86('0x55')](_0x4b4a17),_0x4b4a17[_0x3b86('0x12')]['element'][_0x3b86('0x35')](),this['setActiveAnnotation'](_0x4b4a17)):this[_0x3b86('0x26')](null);});};for(const _0x46000b of _0x27333a)_0x572516(_0x46000b);this[_0x3b86('0x3')](_0x27333a,_0x3b86('0x2d'),(_0x4a72a5,_0x4060eb)=>{_0x572516(_0x4060eb);}),this[_0x3b86('0x3')](_0x27333a,_0x3b86('0x17'),(_0x1d4dde,_0x452e5b,_0x21ae02)=>{this[_0x3b86('0x4d')][_0x3b86('0x21')](_0x452e5b)[_0x3b86('0x1b')](),this[_0x3b86('0x4d')][_0x3b86('0x3f')](_0x452e5b),_0x3530f6[_0x3b86('0x52')]({'removedAnnotation':_0x452e5b,'previousAnnotation':_0x27333a['get'](_0x21ae02-0x1),'nextAnnotation':_0x27333a['get'](_0x21ae02+0x1)}),_0x452e5b===this[_0x3b86('0x4c')]&&this[_0x3b86('0x26')](null);},{'priority':_0x3b86('0x40')}),this[_0x3b86('0x3')](_0x27333a,_0x3b86('0x35'),(_0x59f293,_0x344b22)=>{this['setActiveAnnotation'](_0x344b22);}),this[_0x3b86('0x3')](_0x27333a,_0x3b86('0x2b'),()=>{this['setActiveAnnotation'](null);}),this[_0x3b86('0x50')][_0x3b86('0x3')](document,'keydown',(_0x2c68e9,_0x4dd3b3)=>{_0x4dd3b3['keyCode']===_0x26eaee[_0x3b86('0x5f')]&&_0x118e57['isVisible']&&(this[_0x3b86('0x4f')][_0x3b86('0x2d')](_0x118e57[_0x3b86('0x10')]['first']),this[_0x3b86('0x51')](),_0x4dd3b3[_0x3b86('0x3c')](),_0x4dd3b3[_0x3b86('0x39')]());}),this[_0x3b86('0x50')][_0x3b86('0x3')](document,_0x3b86('0xd'),(_0x49ae11,_0x2499ab)=>{const _0x81769a=_0x2499ab[_0x3b86('0x1c')];_0x118e57['isVisible']&&_0x118e57[_0x3b86('0x43')][_0x3b86('0x24')](_0x81769a)||_0x3530f6[_0x3b86('0x12')][_0x3b86('0x43')][_0x3b86('0x24')](_0x81769a)||_0x49ae11[_0x3b86('0x5b')]||(this[_0x3b86('0x4f')][_0x3b86('0x2f')](),this[_0x3b86('0x51')](),this[_0x3b86('0x26')](null));});const _0x46d03d=this[_0x3b86('0x18')][_0x3b86('0x1d')]?this[_0x3b86('0x18')][_0x3b86('0x1d')]:new _0x59100f([this[_0x3b86('0x18')]]);for(const _0x9e120f of _0x46d03d)this[_0x3b86('0x56')](_0x9e120f);this[_0x3b86('0x3')](_0x46d03d,_0x3b86('0x2d'),(_0x2acd2a,_0x2210ce)=>{this['listenTo'](_0x2210ce,'ready',()=>{this['_integrateWithEditorAnnotations'](_0x2210ce);});}),this[_0x3b86('0x3')](_0x46d03d,_0x3b86('0x17'),(_0x3e12a5,_0x489550)=>{_0x489550['plugins'][_0x3b86('0x60')](_0x3b86('0x4b'))&&this[_0x3b86('0x11')](_0x489550['plugins'][_0x3b86('0x21')](_0x3b86('0x4b')));}),window['addEventListener'](_0x3b86('0x14'),this['_throttledRefreshPositioning']),this[_0x3b86('0x4')]();}[_0x3b86('0x26')](_0x222df6){if(_0x222df6===this[_0x3b86('0x4c')])return;const _0x1063ab=this['context'][_0x3b86('0x28')][_0x3b86('0x21')](_0x3b86('0x5d'));if(_0x1063ab[_0x3b86('0x2e')]({'blurredAnnotation':this[_0x3b86('0x4c')],'activatedAnnotation':_0x222df6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x222df6)_0x1063ab[_0x3b86('0x4e')](_0x222df6)?this[_0x3b86('0x55')](_0x222df6):this[_0x3b86('0x51')]();else this[_0x3b86('0x51')]();this[_0x3b86('0x4c')]=_0x222df6;}[_0x3b86('0x19')](){if(!this[_0x3b86('0x5e')])throw new _0x3a2f29(_0x3b86('0x1e'),this);this[_0x3b86('0x26')](null);const _0x47c637=this[_0x3b86('0x18')][_0x3b86('0x28')][_0x3b86('0x21')](_0x3b86('0x5d'));this['_hideBalloon'](),Array[_0x3b86('0x1f')](this[_0x3b86('0x4d')][_0x3b86('0x3a')](),_0x372019=>_0x372019['destroy']()),this[_0x3b86('0x4d')]['clear'](),_0x47c637['_detachFromContainer'](this[_0x3b86('0x44')]),this[_0x3b86('0xc')](),this[_0x3b86('0x50')][_0x3b86('0xc')](),this[_0x3b86('0xc')](this[_0x3b86('0x18')]['editors']);for(const _0x45c23c of Array['from'](this[_0x3b86('0x3e')]))this[_0x3b86('0x11')](_0x45c23c);window[_0x3b86('0x4a')](_0x3b86('0x14'),this[_0x3b86('0x1')]),this['_throttledRefreshPositioning'][_0x3b86('0x59')](),this[_0x3b86('0x49')]=[],this['isAttached']=!0x1,this[_0x3b86('0x44')]=null;}[_0x3b86('0x1b')](){this[_0x3b86('0x5e')]&&this['detach'](),this[_0x3b86('0x16')][_0x3b86('0x3d')]();}[_0x3b86('0x56')](_0x645250){const _0xd3842=_0x645250[_0x3b86('0x28')][_0x3b86('0x21')](_0x3b86('0x4b')),_0x36f8f2=this['context']['plugins'][_0x3b86('0x21')](_0x34fd7c),_0x49b7d1=this[_0x3b86('0x44')],_0x45af26=this[_0x3b86('0x41')],_0x193a05=()=>{const _0xa3d2fa=_0xd3842[_0x3b86('0x9')]({'activeAnnotation':this[_0x3b86('0x4c')],'annotations':this['annotations']});this[_0x3b86('0x2c')](_0xa3d2fa),this[_0x3b86('0x26')](_0xa3d2fa[0x0]||null);};this[_0x3b86('0x3')](_0xd3842,_0x3b86('0x2e'),_0x193a05),this[_0x3b86('0x3')](_0xd3842,'blur',(_0x5980d9,{isAnnotationTracked:_0x21f138})=>{this[_0x3b86('0x4c')]&&_0x21f138(this[_0x3b86('0x4c')])&&(this[_0x3b86('0x2c')]([]),this['setActiveAnnotation'](null));}),this[_0x3b86('0x3')](_0xd3842,_0x3b86('0xa'),()=>{this[_0x3b86('0x1')]();}),this['listenTo'](_0x49b7d1,'blur',_0x5c0f81=>{_0xd3842[_0x3b86('0x0')]()&&_0x5c0f81['stop']();},{'priority':_0x3b86('0x53')}),this[_0x3b86('0x50')][_0x3b86('0x3')](document,'mousedown',(_0x9d5452,_0x2d856a)=>{const _0x451adb=_0x2d856a[_0x3b86('0x1c')];_0x45af26[_0x3b86('0x5c')]&&_0x45af26[_0x3b86('0x43')][_0x3b86('0x24')](_0x451adb)||_0x36f8f2[_0x3b86('0x12')][_0x3b86('0x43')]['contains'](_0x451adb)||this[_0x3b86('0x4c')]&&_0xd3842[_0x3b86('0x0')]()&&(_0x193a05(),_0x9d5452[_0x3b86('0x5b')]=!0x0);},{'priority':'high'}),this['_editorAnnotations'][_0x3b86('0x2d')](_0xd3842);}[_0x3b86('0x11')](_0x2eafae){_0x2eafae&&(this[_0x3b86('0xc')](_0x2eafae),this[_0x3b86('0x3e')]['remove'](_0x2eafae));}[_0x3b86('0x2c')](_0x48e00f){for(const _0x33a5b6 of this[_0x3b86('0x49')])_0x48e00f[_0x3b86('0x42')](_0x33a5b6)||this['_manuallyClosedAnnotationViews']['delete'](_0x33a5b6['view']);this['_selectedAnnotations']=_0x48e00f;}[_0x3b86('0x4')](){const _0x59838a=this['balloonPanelView'];this[_0x3b86('0x44')][_0x3b86('0x6')](),_0x59838a[_0x3b86('0x5c')]&&this['_updateBalloonPosition']();}[_0x3b86('0x55')](_0x2e1281){if(this[_0x3b86('0x4f')]['has'](_0x2e1281['view']))return;const _0x165066=this[_0x3b86('0x41')][_0x3b86('0x10')]['first'];_0x165066!==_0x2e1281[_0x3b86('0x12')]?(_0x165066&&this[_0x3b86('0xf')](_0x165066),this['_attachListeners'](_0x2e1281[_0x3b86('0x12')]),this[_0x3b86('0x41')][_0x3b86('0x10')][_0x3b86('0x2f')](),this[_0x3b86('0x41')]['content']['add'](_0x2e1281[_0x3b86('0x12')]),this[_0x3b86('0x20')]()):this[_0x3b86('0x20')]();}['_updateBalloonPosition'](){const _0x2c4db5=this[_0x3b86('0x41')][_0x3b86('0x10')][_0x3b86('0x3b')],_0x1718a4=this[_0x3b86('0x44')][_0x3b86('0x62')](_0x2c4db5);if(!this[_0x3b86('0x4d')]['has'](_0x1718a4))return;const _0x259211=this['_annotationToNarrowView']['get'](_0x1718a4)[_0x3b86('0x43')],_0x1eef1b=function(){const _0x14695d=_0x6b225[_0x3b86('0x2')];return[_0x14695d[_0x3b86('0x38')],_0x14695d[_0x3b86('0x34')],_0x14695d[_0x3b86('0x7')],_0x14695d['northArrowSouth'],_0x14695d[_0x3b86('0x25')],_0x14695d[_0x3b86('0x57')]];}();this[_0x3b86('0x41')][_0x3b86('0x48')]({'target':_0x259211,'positions':_0x1eef1b});}['_hideBalloon'](){const _0x5e5549=this[_0x3b86('0x41')],_0x2a535e=_0x5e5549[_0x3b86('0x10')][_0x3b86('0x3b')];_0x2a535e&&(this[_0x3b86('0xf')](_0x2a535e),_0x5e5549[_0x3b86('0x23')](),_0x5e5549[_0x3b86('0x10')]['clear']());}[_0x3b86('0x2a')](_0x29ed26){this['listenTo'](_0x29ed26,_0x3b86('0x15'),()=>this[_0x3b86('0x20')]()),this[_0x3b86('0x3')](_0x29ed26,_0x3b86('0x61'),(_0xe46ae3,_0xffa9fa)=>{this[_0x3b86('0x4f')][_0x3b86('0x2d')](_0x29ed26),this['_hideBalloon'](),_0xffa9fa();});}[_0x3b86('0xf')](_0x569c40){this['stopListening'](_0x569c40);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4eea=['_detachFromContainer','addAnnotation','destroy','_getItemBefore','render','height','content','minHeight','listenTo','define','add','getSidebarItemView','_getTargetTop','getIndex','isAnimationDisabled','_getMaxAvailableTop','view','bottom','pluginName','_alignBeforeItem','isActive','_destroySidebarItemView','_spaceBetweenItems','stopListening','list','delete','_setItemTop','target','sidebar-setcontainer-invalid-element','_sidebarItemViewToAnnotation','_targetTop','class','rearrange','refresh','context','config','change:bottom','_annotations','_annotationToSidebarItemView','init','sidebar-attachtocontainer-missing-container','remove','_updateLastItem','sidebar.preventScrollOutOfView','_createSidebarView','locale','appendChild','_alignToTargetRect','Sidebar','_alignAfterItem','set','container','sidebar.container','get','setContainer','updateHeight','max','top','_activeAnnotation','element','_attachToContainer','_lastItem','targetRect','length','_getItemAfter'];(function(_0x3ae4af,_0x4eea32){const _0x3ee09d=function(_0x15aab5){while(--_0x15aab5){_0x3ae4af['push'](_0x3ae4af['shift']());}};_0x3ee09d(++_0x4eea32);}(_0x4eea,0x15b));const _0x3ee0=function(_0x3ae4af,_0x4eea32){_0x3ae4af=_0x3ae4af-0x0;let _0x3ee09d=_0x4eea[_0x3ae4af];return _0x3ee09d;};import{ContextPlugin as _0x68dfe1}from'ckeditor5/src/core';import _0x51e552 from'./view/sidebarview';import _0x25479c from'./view/sidebaritemview';import{Rect as _0x58211e,CKEditorError as _0x12c62f}from'ckeditor5/src/utils';import{isElement as _0x54a130,throttle as _0x34f717}from'lodash-es';export default class it extends _0x68dfe1{static get[_0x3ee0('0x3d')](){return _0x3ee0('0x1a');}constructor(_0x41dbad){super(_0x41dbad),this[_0x3ee0('0x1c')](_0x3ee0('0x27')),this[_0x3ee0('0x3b')]=this[_0x3ee0('0x16')](),this[_0x3ee0('0x1c')](_0x3ee0('0x1d'),null),this[_0x3ee0('0x0')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3ee0('0x10')]=new Map(),this[_0x3ee0('0xc')][_0x3ee0('0xd')][_0x3ee0('0x34')](_0x3ee0('0x15'),!0x1),this[_0x3ee0('0xf')]=null,this[_0x3ee0('0x24')]=null;}[_0x3ee0('0x11')](){const _0xe5e9df=this['context'][_0x3ee0('0xd')]['get'](_0x3ee0('0x1e'));_0xe5e9df&&this['setContainer'](_0xe5e9df);}[_0x3ee0('0x20')](_0x40e5f4){if(!_0x54a130(_0x40e5f4))throw new _0x12c62f(_0x3ee0('0x6'));this[_0x3ee0('0x1d')]=_0x40e5f4;}[_0x3ee0('0x26')]({viewClass:_0x52a4d9='',spaceBetweenItems:_0x17ed67=0x19}={}){if(!_0x54a130(this['container']))throw new _0x12c62f(_0x3ee0('0x12'),this);this[_0x3ee0('0x1d')][_0x3ee0('0x18')](this[_0x3ee0('0x3b')]['element']),this[_0x3ee0('0x3b')]['class']=_0x52a4d9,this[_0x3ee0('0x0')]=_0x17ed67;}[_0x3ee0('0xa')]({removedAnnotation:_0x10e1af,previousAnnotation:_0x55aadb,nextAnnotation:_0x454736}){const _0xdde4b3=this[_0x3ee0('0x36')](_0x10e1af);this[_0x3ee0('0x3b')]['list'][_0x3ee0('0x13')](_0xdde4b3),this[_0x3ee0('0x40')](_0x10e1af),_0x55aadb&&this[_0x3ee0('0x19')](this[_0x3ee0('0x36')](_0x55aadb)),_0x454736&&this['_alignToTargetRect'](this[_0x3ee0('0x36')](_0x454736)),this[_0x3ee0('0x14')]();}[_0x3ee0('0xb')]({blurredAnnotation:_0x3e0441,activatedAnnotation:_0xc7966d,disableAnimationOnActivatedAnnotation:_0xa5e066}){if(this['_activeAnnotation']=_0xc7966d,_0x3e0441){_0x3e0441[_0x3ee0('0x3f')]=!0x1;const _0x385766=this[_0x3ee0('0x36')](_0x3e0441);_0x385766&&_0xa5e066&&(_0x385766[_0x3ee0('0x39')]=!0x1);}if(_0xc7966d){const _0x59b1b2=this[_0x3ee0('0x36')](_0xc7966d);_0x59b1b2&&(_0xc7966d[_0x3ee0('0x3f')]=!0x0,_0xa5e066&&(_0x59b1b2[_0x3ee0('0x39')]=!0x0,_0x59b1b2[_0x3ee0('0x23')]+=0x1),this[_0x3ee0('0x19')](_0x59b1b2));}}[_0x3ee0('0x2b')](_0x4b1f35){this[_0x3ee0('0x1')](),this[_0x3ee0('0x3b')][_0x3ee0('0x25')][_0x3ee0('0x13')]();for(const _0x371891 of _0x4b1f35)this[_0x3ee0('0x40')](_0x371891);this[_0x3ee0('0x3b')][_0x3ee0('0x2')]['clear'](),this['view'][_0x3ee0('0x9')]='',this['_lastItem']=null;}[_0x3ee0('0x2c')](_0x319d22,_0x3836c3){_0x3836c3||(_0x3836c3=_0x319d22['view']);const _0x39eecc=new _0x25479c(this[_0x3ee0('0xc')][_0x3ee0('0x17')]);this['_sidebarItemViewToAnnotation'][_0x3ee0('0x1c')](_0x39eecc,_0x319d22),this[_0x3ee0('0x10')]['set'](_0x319d22,_0x39eecc),_0x39eecc['content'][_0x3ee0('0x35')](_0x3836c3),this[_0x3ee0('0x19')](_0x39eecc),this[_0x3ee0('0x33')](_0x319d22['view'],'change:targetRect',()=>{const _0x42a51b=this[_0x3ee0('0x37')](_0x39eecc);_0x39eecc[_0x3ee0('0x8')]!=_0x42a51b&&(_0x39eecc[_0x3ee0('0x8')]=_0x42a51b,this[_0x3ee0('0x4')](_0x39eecc,_0x42a51b));}),this['listenTo'](_0x39eecc,'change:top',_0x34f717(()=>{if(!_0x39eecc[_0x3ee0('0x31')][_0x3ee0('0x29')])return;const _0x5e69b7=this['_getItemBefore'](_0x39eecc);if(!_0x5e69b7)return;const _0x218afc=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x5e69b7),_0x5e71ed=this[_0x3ee0('0x24')];_0x5e71ed&&_0x5e71ed===_0x218afc?this[_0x3ee0('0x1b')](_0x5e69b7,_0x39eecc):this['_alignBeforeItem'](_0x39eecc,_0x5e69b7);},0xa,{'leading':!0x1})),this[_0x3ee0('0x33')](_0x39eecc,_0x3ee0('0xe'),_0x34f717(()=>{if(!_0x39eecc[_0x3ee0('0x31')][_0x3ee0('0x29')])return;const _0x32c47b=this[_0x3ee0('0x2a')](_0x39eecc);if(!_0x32c47b)return;const _0x59c6e9=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x32c47b),_0x26067e=this['context'][_0x3ee0('0xd')][_0x3ee0('0x1f')](_0x3ee0('0x15')),_0x14e459=this[_0x3ee0('0x24')];_0x14e459&&_0x14e459===_0x59c6e9&&_0x26067e?(this[_0x3ee0('0x3e')](_0x32c47b,_0x39eecc),this[_0x3ee0('0x1b')](_0x39eecc,_0x32c47b)):_0x14e459&&_0x14e459===_0x59c6e9?this[_0x3ee0('0x3e')](_0x32c47b,_0x39eecc):this[_0x3ee0('0x1b')](_0x39eecc,_0x32c47b);},0xa,{'leading':!0x1}));const _0x196184=this[_0x3ee0('0x2e')](_0x39eecc);if(_0x196184)this[_0x3ee0('0x1b')](_0x196184,_0x39eecc)||this[_0x3ee0('0x19')](_0x39eecc);else this[_0x3ee0('0x19')](_0x39eecc);return this[_0x3ee0('0x14')](),this['view'][_0x3ee0('0x2')][_0x3ee0('0x35')](_0x39eecc),_0x39eecc;}[_0x3ee0('0x36')](_0x2b7e83){return this[_0x3ee0('0x10')][_0x3ee0('0x1f')](_0x2b7e83);}[_0x3ee0('0x2d')](){this[_0x3ee0('0x3b')][_0x3ee0('0x2d')]();}[_0x3ee0('0x40')](_0x16182c){const _0x7b6795=this[_0x3ee0('0x36')](_0x16182c);this['stopListening'](_0x7b6795),this[_0x3ee0('0x1')](_0x16182c[_0x3ee0('0x3b')]),_0x7b6795[_0x3ee0('0x2d')](),this[_0x3ee0('0x10')][_0x3ee0('0x3')](_0x16182c),this['_sidebarItemViewToAnnotation'][_0x3ee0('0x3')](_0x7b6795);}['_createSidebarView'](){const _0x58d6eb=new _0x51e552(this[_0x3ee0('0xc')][_0x3ee0('0x17')]);return _0x58d6eb[_0x3ee0('0x2f')](),this['on']('change:_lastItem',(_0x497f81,_0x4a0e92,_0x566c8b,_0xa99dc9)=>{_0xa99dc9&&_0x58d6eb['unbind'](_0x3ee0('0x32')),_0x566c8b?_0x58d6eb['bind']('minHeight')['to'](_0x566c8b,_0x3ee0('0x3c')):_0x58d6eb[_0x3ee0('0x32')]=null;}),_0x58d6eb;}['_updateLastItem'](){this['_lastItem']=this['getSidebarItemView'](this[_0x3ee0('0xf')]['last']);}[_0x3ee0('0x2e')](_0x42e376){const _0x2ef8db=this['_sidebarItemViewToAnnotation'][_0x3ee0('0x1f')](_0x42e376),_0x1a6767=this[_0x3ee0('0xf')][_0x3ee0('0x1f')](this[_0x3ee0('0xf')]['getIndex'](_0x2ef8db)-0x1);return _0x1a6767&&this[_0x3ee0('0x36')](_0x1a6767);}[_0x3ee0('0x2a')](_0x1a0b25){const _0x387dab=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x1a0b25),_0x44fab4=this[_0x3ee0('0xf')][_0x3ee0('0x1f')](this[_0x3ee0('0xf')][_0x3ee0('0x38')](_0x387dab)+0x1);return _0x44fab4&&this['getSidebarItemView'](_0x44fab4);}[_0x3ee0('0x3e')](_0x1a9db9,_0x51c35e){_0x1a9db9['updateHeight']();const _0x514790=lt(_0x51c35e[_0x3ee0('0x3c')]+this[_0x3ee0('0x0')],_0x1a9db9[_0x3ee0('0x23')]);return!!_0x514790&&(this[_0x3ee0('0x4')](_0x51c35e,_0x51c35e['top']-_0x514790),!0x0);}[_0x3ee0('0x1b')](_0x3e12d3,_0x3d287d){_0x3e12d3[_0x3ee0('0x21')]();const _0x4d09d1=lt(_0x3e12d3[_0x3ee0('0x3c')]+this[_0x3ee0('0x0')],_0x3d287d['top']);return!!_0x4d09d1&&(this['_setItemTop'](_0x3d287d,_0x3d287d[_0x3ee0('0x23')]+_0x4d09d1,!0x1),!0x0);}[_0x3ee0('0x19')](_0x4a00b9){const _0x5d6591=this[_0x3ee0('0x7')][_0x3ee0('0x1f')](_0x4a00b9);if(!_0x5d6591||!_0x5d6591[_0x3ee0('0x5')])return;const _0x52ec68=this[_0x3ee0('0x37')](_0x4a00b9);this[_0x3ee0('0x4')](_0x4a00b9,_0x52ec68);}[_0x3ee0('0x37')](_0x48ff99){const _0x366983=this['_sidebarItemViewToAnnotation']['get'](_0x48ff99);if(null===_0x366983[_0x3ee0('0x28')])return 0x0;if(_0x366983['target']instanceof _0x58211e)return _0x366983[_0x3ee0('0x28')][_0x3ee0('0x23')];{const _0x5ee56b=new _0x58211e(this[_0x3ee0('0x3b')][_0x3ee0('0x25')])[_0x3ee0('0x23')];return _0x366983[_0x3ee0('0x28')][_0x3ee0('0x23')]-_0x5ee56b;}}[_0x3ee0('0x4')](_0x1593f6,_0x20dc09,_0x4f6385=this[_0x3ee0('0xc')][_0x3ee0('0xd')][_0x3ee0('0x1f')](_0x3ee0('0x15'))){_0x4f6385&&(_0x20dc09=Math[_0x3ee0('0x22')](_0x20dc09,this[_0x3ee0('0x3a')](_0x1593f6))),_0x1593f6[_0x3ee0('0x23')]=_0x20dc09;}[_0x3ee0('0x3a')](_0x47b95c){let _0xb404bb=this[_0x3ee0('0x2e')](_0x47b95c),_0x56044=0x0;for(;_0xb404bb;)_0xb404bb[_0x3ee0('0x21')](),_0x56044+=this[_0x3ee0('0x0')]+_0xb404bb[_0x3ee0('0x30')],_0xb404bb=this[_0x3ee0('0x2e')](_0xb404bb);return _0x56044;}}function lt(_0x12bdb5,_0x2f68f3){return Math[_0x3ee0('0x22')](_0x12bdb5-_0x2f68f3,0x0);}
23
+ const _0x2c6f=['_createSidebarView','change:_lastItem','class','_setItemTop','_alignAfterItem','_detachFromContainer','_alignToTargetRect','_attachToContainer','targetRect','define','get','pluginName','isAnimationDisabled','_targetTop','isActive','bottom','change:targetRect','bind','destroy','listenTo','_getItemAfter','sidebar-setcontainer-invalid-element','content','_getMaxAvailableTop','_sidebarItemViewToAnnotation','appendChild','sidebar.preventScrollOutOfView','change:top','clear','length','_spaceBetweenItems','Sidebar','_annotationToSidebarItemView','view','locale','minHeight','_alignBeforeItem','unbind','last','_destroySidebarItemView','add','target','context','setContainer','element','stopListening','_getTargetTop','_getItemBefore','config','_activeAnnotation','top','rearrange','container','_lastItem','sidebar.container','_updateLastItem','addAnnotation','getIndex','remove','_annotations','refresh','updateHeight','init','list','getSidebarItemView','set','render','max'];(function(_0x419ec9,_0x2c6fd5){const _0x8dce05=function(_0x143eb9){while(--_0x143eb9){_0x419ec9['push'](_0x419ec9['shift']());}};_0x8dce05(++_0x2c6fd5);}(_0x2c6f,0x177));const _0x8dce=function(_0x419ec9,_0x2c6fd5){_0x419ec9=_0x419ec9-0x0;let _0x8dce05=_0x2c6f[_0x419ec9];return _0x8dce05;};import{ContextPlugin as _0x44c3fe}from'ckeditor5/src/core';import _0x50da3b from'./view/sidebarview';import _0x1c4c84 from'./view/sidebaritemview';import{Rect as _0x4ba800,CKEditorError as _0x2cd1d8}from'ckeditor5/src/utils';import{isElement as _0x15bbcd,throttle as _0x1e3127}from'lodash-es';export default class b extends _0x44c3fe{static get[_0x8dce('0x2c')](){return _0x8dce('0x40');}constructor(_0x24594c){super(_0x24594c),this[_0x8dce('0x1e')](_0x8dce('0x12')),this['view']=this['_createSidebarView'](),this['set']('container',null),this[_0x8dce('0x3f')]=0x19,this[_0x8dce('0x39')]=new Map(),this[_0x8dce('0x41')]=new Map(),this[_0x8dce('0x7')][_0x8dce('0xd')][_0x8dce('0x2a')](_0x8dce('0x3b'),!0x1),this[_0x8dce('0x18')]=null,this[_0x8dce('0xe')]=null;}[_0x8dce('0x1b')](){const _0x351e08=this['context']['config']['get'](_0x8dce('0x13'));_0x351e08&&this[_0x8dce('0x8')](_0x351e08);}['setContainer'](_0xf7c01a){if(!_0x15bbcd(_0xf7c01a))throw new _0x2cd1d8(_0x8dce('0x36'));this[_0x8dce('0x11')]=_0xf7c01a;}[_0x8dce('0x28')]({viewClass:_0x4d7384='',spaceBetweenItems:_0x9eabcf=0x19}={}){if(!_0x15bbcd(this[_0x8dce('0x11')]))throw new _0x2cd1d8('sidebar-attachtocontainer-missing-container',this);this[_0x8dce('0x11')][_0x8dce('0x3a')](this[_0x8dce('0x42')][_0x8dce('0x9')]),this[_0x8dce('0x42')][_0x8dce('0x23')]=_0x4d7384,this[_0x8dce('0x3f')]=_0x9eabcf;}[_0x8dce('0x10')]({removedAnnotation:_0x244431,previousAnnotation:_0x4bc9d4,nextAnnotation:_0x4f0b75}){const _0x16a47d=this[_0x8dce('0x1d')](_0x244431);this[_0x8dce('0x42')][_0x8dce('0x1c')][_0x8dce('0x17')](_0x16a47d),this['_destroySidebarItemView'](_0x244431),_0x4bc9d4&&this[_0x8dce('0x27')](this[_0x8dce('0x1d')](_0x4bc9d4)),_0x4f0b75&&this[_0x8dce('0x27')](this[_0x8dce('0x1d')](_0x4f0b75)),this[_0x8dce('0x14')]();}[_0x8dce('0x19')]({blurredAnnotation:_0x59999d,activatedAnnotation:_0x32230e,disableAnimationOnActivatedAnnotation:_0x3a164f}){if(this[_0x8dce('0xe')]=_0x32230e,_0x59999d){_0x59999d[_0x8dce('0x2f')]=!0x1;const _0x572476=this[_0x8dce('0x1d')](_0x59999d);_0x572476&&_0x3a164f&&(_0x572476[_0x8dce('0x2d')]=!0x1);}if(_0x32230e){const _0x452655=this[_0x8dce('0x1d')](_0x32230e);_0x452655&&(_0x32230e[_0x8dce('0x2f')]=!0x0,_0x3a164f&&(_0x452655[_0x8dce('0x2d')]=!0x0,_0x452655['top']+=0x1),this[_0x8dce('0x27')](_0x452655));}}[_0x8dce('0x26')](_0x2a51e1){this[_0x8dce('0xa')](),this[_0x8dce('0x42')]['element'][_0x8dce('0x17')]();for(const _0x4f964b of _0x2a51e1)this[_0x8dce('0x4')](_0x4f964b);this[_0x8dce('0x42')][_0x8dce('0x1c')][_0x8dce('0x3d')](),this[_0x8dce('0x42')][_0x8dce('0x23')]='',this[_0x8dce('0x12')]=null;}[_0x8dce('0x15')](_0x46729d,_0x45a45b){_0x45a45b||(_0x45a45b=_0x46729d['view']);const _0x5a8e93=new _0x1c4c84(this[_0x8dce('0x7')][_0x8dce('0x43')]);this[_0x8dce('0x39')]['set'](_0x5a8e93,_0x46729d),this[_0x8dce('0x41')][_0x8dce('0x1e')](_0x46729d,_0x5a8e93),_0x5a8e93[_0x8dce('0x37')]['add'](_0x45a45b),this[_0x8dce('0x27')](_0x5a8e93),this[_0x8dce('0x34')](_0x46729d[_0x8dce('0x42')],_0x8dce('0x31'),()=>{const _0x1526d6=this[_0x8dce('0xb')](_0x5a8e93);_0x5a8e93[_0x8dce('0x2e')]!=_0x1526d6&&(_0x5a8e93[_0x8dce('0x2e')]=_0x1526d6,this[_0x8dce('0x24')](_0x5a8e93,_0x1526d6));}),this[_0x8dce('0x34')](_0x5a8e93,_0x8dce('0x3c'),_0x1e3127(()=>{if(!_0x5a8e93['content'][_0x8dce('0x3e')])return;const _0x3698b5=this['_getItemBefore'](_0x5a8e93);if(!_0x3698b5)return;const _0x1ac776=this[_0x8dce('0x39')]['get'](_0x3698b5),_0x12c1cd=this[_0x8dce('0xe')];_0x12c1cd&&_0x12c1cd===_0x1ac776?this[_0x8dce('0x25')](_0x3698b5,_0x5a8e93):this['_alignBeforeItem'](_0x5a8e93,_0x3698b5);},0xa,{'leading':!0x1})),this[_0x8dce('0x34')](_0x5a8e93,'change:bottom',_0x1e3127(()=>{if(!_0x5a8e93[_0x8dce('0x37')]['length'])return;const _0x14b2ea=this[_0x8dce('0x35')](_0x5a8e93);if(!_0x14b2ea)return;const _0x580e6f=this[_0x8dce('0x39')][_0x8dce('0x2b')](_0x14b2ea),_0x5f4e7b=this[_0x8dce('0x7')][_0x8dce('0xd')]['get']('sidebar.preventScrollOutOfView'),_0x2f66e9=this[_0x8dce('0xe')];_0x2f66e9&&_0x2f66e9===_0x580e6f&&_0x5f4e7b?(this[_0x8dce('0x1')](_0x14b2ea,_0x5a8e93),this['_alignAfterItem'](_0x5a8e93,_0x14b2ea)):_0x2f66e9&&_0x2f66e9===_0x580e6f?this['_alignBeforeItem'](_0x14b2ea,_0x5a8e93):this[_0x8dce('0x25')](_0x5a8e93,_0x14b2ea);},0xa,{'leading':!0x1}));const _0x5aca5b=this[_0x8dce('0xc')](_0x5a8e93);if(_0x5aca5b)this['_alignAfterItem'](_0x5aca5b,_0x5a8e93)||this[_0x8dce('0x27')](_0x5a8e93);else this['_alignToTargetRect'](_0x5a8e93);return this[_0x8dce('0x14')](),this[_0x8dce('0x42')][_0x8dce('0x1c')][_0x8dce('0x5')](_0x5a8e93),_0x5a8e93;}[_0x8dce('0x1d')](_0x146620){return this[_0x8dce('0x41')][_0x8dce('0x2b')](_0x146620);}[_0x8dce('0x33')](){this['view']['destroy']();}[_0x8dce('0x4')](_0x45754f){const _0x4ef7c1=this[_0x8dce('0x1d')](_0x45754f);this[_0x8dce('0xa')](_0x4ef7c1),this[_0x8dce('0xa')](_0x45754f[_0x8dce('0x42')]),_0x4ef7c1[_0x8dce('0x33')](),this['_annotationToSidebarItemView']['delete'](_0x45754f),this[_0x8dce('0x39')]['delete'](_0x4ef7c1);}[_0x8dce('0x21')](){const _0x2aef05=new _0x50da3b(this[_0x8dce('0x7')][_0x8dce('0x43')]);return _0x2aef05[_0x8dce('0x1f')](),this['on'](_0x8dce('0x22'),(_0x2528ee,_0x4b4252,_0x46fb7f,_0x5427b7)=>{_0x5427b7&&_0x2aef05[_0x8dce('0x2')](_0x8dce('0x0')),_0x46fb7f?_0x2aef05[_0x8dce('0x32')]('minHeight')['to'](_0x46fb7f,_0x8dce('0x30')):_0x2aef05[_0x8dce('0x0')]=null;}),_0x2aef05;}[_0x8dce('0x14')](){this[_0x8dce('0x12')]=this['getSidebarItemView'](this[_0x8dce('0x18')][_0x8dce('0x3')]);}[_0x8dce('0xc')](_0x160a7e){const _0x4e1e67=this['_sidebarItemViewToAnnotation'][_0x8dce('0x2b')](_0x160a7e),_0x2bfe1b=this[_0x8dce('0x18')][_0x8dce('0x2b')](this[_0x8dce('0x18')]['getIndex'](_0x4e1e67)-0x1);return _0x2bfe1b&&this[_0x8dce('0x1d')](_0x2bfe1b);}[_0x8dce('0x35')](_0x1e997c){const _0x1dfde5=this[_0x8dce('0x39')]['get'](_0x1e997c),_0x6e0c46=this[_0x8dce('0x18')][_0x8dce('0x2b')](this[_0x8dce('0x18')][_0x8dce('0x16')](_0x1dfde5)+0x1);return _0x6e0c46&&this['getSidebarItemView'](_0x6e0c46);}[_0x8dce('0x1')](_0x5bbff5,_0x10364d){_0x5bbff5[_0x8dce('0x1a')]();const _0x56aa55=H(_0x10364d[_0x8dce('0x30')]+this[_0x8dce('0x3f')],_0x5bbff5[_0x8dce('0xf')]);return!!_0x56aa55&&(this[_0x8dce('0x24')](_0x10364d,_0x10364d['top']-_0x56aa55),!0x0);}['_alignAfterItem'](_0x5d5752,_0xb25062){_0x5d5752[_0x8dce('0x1a')]();const _0xbbf17=H(_0x5d5752[_0x8dce('0x30')]+this[_0x8dce('0x3f')],_0xb25062[_0x8dce('0xf')]);return!!_0xbbf17&&(this['_setItemTop'](_0xb25062,_0xb25062['top']+_0xbbf17,!0x1),!0x0);}['_alignToTargetRect'](_0x1648ff){const _0x20753e=this[_0x8dce('0x39')]['get'](_0x1648ff);if(!_0x20753e||!_0x20753e['target'])return;const _0x392bae=this[_0x8dce('0xb')](_0x1648ff);this[_0x8dce('0x24')](_0x1648ff,_0x392bae);}[_0x8dce('0xb')](_0x247331){const _0x5c1384=this['_sidebarItemViewToAnnotation']['get'](_0x247331);if(null===_0x5c1384[_0x8dce('0x29')])return 0x0;if(_0x5c1384[_0x8dce('0x6')]instanceof _0x4ba800)return _0x5c1384[_0x8dce('0x29')][_0x8dce('0xf')];{const _0x24a063=new _0x4ba800(this[_0x8dce('0x42')]['element'])[_0x8dce('0xf')];return _0x5c1384[_0x8dce('0x29')][_0x8dce('0xf')]-_0x24a063;}}[_0x8dce('0x24')](_0x4cbb4e,_0x24d448,_0x1bb2e8=this[_0x8dce('0x7')][_0x8dce('0xd')][_0x8dce('0x2b')](_0x8dce('0x3b'))){_0x1bb2e8&&(_0x24d448=Math[_0x8dce('0x20')](_0x24d448,this[_0x8dce('0x38')](_0x4cbb4e))),_0x4cbb4e[_0x8dce('0xf')]=_0x24d448;}[_0x8dce('0x38')](_0x36802b){let _0x1805b6=this['_getItemBefore'](_0x36802b),_0x55bfc7=0x0;for(;_0x1805b6;)_0x1805b6[_0x8dce('0x1a')](),_0x55bfc7+=this[_0x8dce('0x3f')]+_0x1805b6['height'],_0x1805b6=this[_0x8dce('0xc')](_0x1805b6);return _0x55bfc7;}}function H(_0x39c735,_0x9a280e){return Math[_0x8dce('0x20')](_0x39c735-_0x9a280e,0x0);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5660=['isDirty','setTemplate','ck-annotation-counter','ck-annotation-counter__badge--edit-mode','span','ck-annotation-counter__badge--','icon','bindTemplate','number','...','ck-annotation-counter__badge','children','set','annotationType','counterView','_badge'];(function(_0x4e77b1,_0x5660d4){const _0xeb2b7d=function(_0x51cec7){while(--_0x51cec7){_0x4e77b1['push'](_0x4e77b1['shift']());}};_0xeb2b7d(++_0x5660d4);}(_0x5660,0x1ad));const _0xeb2b=function(_0x4e77b1,_0x5660d4){_0x4e77b1=_0x4e77b1-0x0;let _0xeb2b7d=_0x5660[_0x4e77b1];return _0xeb2b7d;};import{ButtonView as _0x3e25bf,View as _0x343d94}from'ckeditor5/src/ui';import _0x32c20a from'../../../theme/icons/add-comment.svg';export default class st extends _0x3e25bf{constructor(_0x53007f){super(_0x53007f);const _0x25088a=this[_0xeb2b('0xa')];this['set'](_0xeb2b('0x3'),!0x1),this[_0xeb2b('0xf')](_0xeb2b('0xb'),0x0),this['bind'](_0xeb2b('0x2'))['to'](this,_0xeb2b('0x3'),this,_0xeb2b('0xb'),(_0x3e3120,_0x2adb3a)=>_0x3e3120?_0xeb2b('0xc'):_0x2adb3a),this[_0xeb2b('0xf')](_0xeb2b('0x0'),''),this[_0xeb2b('0x9')]=_0x32c20a,this['extendTemplate']({'attributes':{'class':[_0xeb2b('0x5')]}}),this[_0xeb2b('0x1')]=new _0x343d94(),this[_0xeb2b('0x1')][_0xeb2b('0x4')]({'tag':_0xeb2b('0x7'),'attributes':{'class':[_0xeb2b('0xd'),_0x25088a['to'](_0xeb2b('0x0'),_0x32f22e=>_0xeb2b('0x8')+_0x32f22e),_0x25088a['if'](_0xeb2b('0x3'),_0xeb2b('0x6'))]},'children':[{'text':_0x25088a['to']('_badge')}]}),this[_0xeb2b('0xe')]['add'](this[_0xeb2b('0x1')]);}}
23
+ const _0x3112=['add','span','isDirty','setTemplate','ck-annotation-counter','_badge','ck-annotation-counter__badge--edit-mode','icon','children','bindTemplate','number','annotationType','set','bind','...','counterView'];(function(_0x5e7df6,_0x311209){const _0x4be03b=function(_0x5bd0d9){while(--_0x5bd0d9){_0x5e7df6['push'](_0x5e7df6['shift']());}};_0x4be03b(++_0x311209);}(_0x3112,0x1f1));const _0x4be0=function(_0x5e7df6,_0x311209){_0x5e7df6=_0x5e7df6-0x0;let _0x4be03b=_0x3112[_0x5e7df6];return _0x4be03b;};import{ButtonView as _0xa6e7fb,View as _0x45fa88}from'ckeditor5/src/ui';import _0x11f045 from'../../../theme/icons/add-comment.svg';export default class B extends _0xa6e7fb{constructor(_0x5cc624){super(_0x5cc624);const _0x251be7=this[_0x4be0('0x8')];this[_0x4be0('0xb')](_0x4be0('0x1'),!0x1),this[_0x4be0('0xb')]('number',0x0),this[_0x4be0('0xc')](_0x4be0('0x4'))['to'](this,_0x4be0('0x1'),this,_0x4be0('0x9'),(_0x922c08,_0xd10d06)=>_0x922c08?_0x4be0('0xd'):_0xd10d06),this['set']('annotationType',''),this[_0x4be0('0x6')]=_0x11f045,this['extendTemplate']({'attributes':{'class':[_0x4be0('0x3')]}}),this['counterView']=new _0x45fa88(),this[_0x4be0('0xe')][_0x4be0('0x2')]({'tag':_0x4be0('0x0'),'attributes':{'class':['ck-annotation-counter__badge',_0x251be7['to'](_0x4be0('0xa'),_0x4037ff=>'ck-annotation-counter__badge--'+_0x4037ff),_0x251be7['if'](_0x4be0('0x1'),_0x4be0('0x5'))]},'children':[{'text':_0x251be7['to']('_badge')}]}),this[_0x4be0('0x7')][_0x4be0('0xf')](this[_0x4be0('0xe')]);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4978=['keystrokes','clear','ck-annotation-wrapper--active','type','isActive','setTemplate','isDirty','focus','set','listenTo','clientHeight','focusTracker','Esc','detach','length','div','element','add','fire','_mutationObserver','destroy','ck-rounded-corners','render','content','height','bindTemplate','targetRect','attach','_updateHeight'];(function(_0x42c95a,_0x49788e){const _0x223e85=function(_0x5ae1a5){while(--_0x5ae1a5){_0x42c95a['push'](_0x42c95a['shift']());}};_0x223e85(++_0x49788e);}(_0x4978,0x17c));const _0x223e=function(_0x42c95a,_0x49788e){_0x42c95a=_0x42c95a-0x0;let _0x223e85=_0x4978[_0x42c95a];return _0x223e85;};import{View as _0x146a39}from'ckeditor5/src/ui';import{FocusTracker as _0x4c4409,KeystrokeHandler as _0x1254e7,uid as _0x25b69b}from'ckeditor5/src/utils';import _0x39d89a from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class S extends _0x146a39{constructor(_0x102757,_0x46c650){super(_0x102757),this['id']=_0x25b69b(),this[_0x223e('0x8')]=new _0x4c4409(),this[_0x223e('0x1a')]=new _0x1254e7(),this[_0x223e('0x1a')][_0x223e('0x5')](_0x223e('0x9'),(_0x5b60df,_0x5d500e)=>this[_0x223e('0xf')]('Esc',_0x5d500e)),this['set'](_0x223e('0x17'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0x223e('0x5')](_0x223e('0x15'),0x0),this['set'](_0x223e('0x1'),!0x1),this['set'](_0x223e('0x3'),!0x1),this[_0x223e('0x5')](_0x223e('0xb'),0x0),this[_0x223e('0x5')](_0x223e('0x0'),''),this['_mutationObserver']=_0x39d89a(()=>this[_0x223e('0x19')]()),this[_0x223e('0x14')]=this['createCollection'](),this[_0x223e('0x14')][_0x223e('0xe')](_0x46c650),this['mainView']=_0x46c650;const _0x555d10=this[_0x223e('0x16')];this[_0x223e('0x2')]({'tag':_0x223e('0xc'),'attributes':{'class':['ck','ck-annotation-wrapper',_0x223e('0x12'),_0x555d10['if'](_0x223e('0x1'),_0x223e('0x1c'))],'tabindex':-0x1},'children':this[_0x223e('0x14')]});}[_0x223e('0x13')](){super[_0x223e('0x13')](),this[_0x223e('0x8')][_0x223e('0xe')](this['element']),this[_0x223e('0x1a')][_0x223e('0x6')](this['element']),this[_0x223e('0x10')][_0x223e('0x18')](this[_0x223e('0xd')]);}[_0x223e('0x11')](){this[_0x223e('0x14')][_0x223e('0x1b')](),this['keystrokes'][_0x223e('0x11')](),this[_0x223e('0x8')][_0x223e('0x11')](),this[_0x223e('0x10')][_0x223e('0xa')](),super[_0x223e('0x11')]();}[_0x223e('0x4')](){this[_0x223e('0xd')][_0x223e('0x4')]();}[_0x223e('0x19')](){const _0x2f7c5b=this['element'][_0x223e('0x7')];_0x2f7c5b&&(this[_0x223e('0x15')]=_0x2f7c5b);}}
23
+ const _0x1b3f=['clientHeight','div','focus','render','_mutationObserver','attach','listenTo','detach','setTemplate','bindTemplate','content','focusTracker','ck-rounded-corners','Esc','add','set','isActive','type','height','targetRect','ck-annotation-wrapper','destroy','mainView','element','keystrokes','isDirty','fire','_updateHeight'];(function(_0x5b69d2,_0x1b3fcc){const _0xc29f1=function(_0x11cc00){while(--_0x11cc00){_0x5b69d2['push'](_0x5b69d2['shift']());}};_0xc29f1(++_0x1b3fcc);}(_0x1b3f,0x1e4));const _0xc29f=function(_0x5b69d2,_0x1b3fcc){_0x5b69d2=_0x5b69d2-0x0;let _0xc29f1=_0x1b3f[_0x5b69d2];return _0xc29f1;};import{View as _0x49b6a8}from'ckeditor5/src/ui';import{FocusTracker as _0x2c98bb,KeystrokeHandler as _0x46b0d3,uid as _0x2a9a72}from'ckeditor5/src/utils';import _0x3c0a39 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class v extends _0x49b6a8{constructor(_0x12316f,_0x206b5d){super(_0x12316f),this['id']=_0x2a9a72(),this[_0xc29f('0x3')]=new _0x2c98bb(),this['keystrokes']=new _0x46b0d3(),this[_0xc29f('0x10')][_0xc29f('0x7')]('Esc',(_0x3ccec7,_0x9cb5e7)=>this[_0xc29f('0x12')](_0xc29f('0x5'),_0x9cb5e7)),this['set'](_0xc29f('0xb'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this[_0xc29f('0x7')](_0xc29f('0xa'),0x0),this[_0xc29f('0x7')](_0xc29f('0x8'),!0x1),this[_0xc29f('0x7')](_0xc29f('0x11'),!0x1),this['set']('length',0x0),this['set'](_0xc29f('0x9'),''),this['_mutationObserver']=_0x3c0a39(()=>this[_0xc29f('0x13')]()),this[_0xc29f('0x2')]=this['createCollection'](),this[_0xc29f('0x2')][_0xc29f('0x6')](_0x206b5d),this[_0xc29f('0xe')]=_0x206b5d;const _0x4d4fa0=this[_0xc29f('0x1')];this[_0xc29f('0x0')]({'tag':_0xc29f('0x15'),'attributes':{'class':['ck',_0xc29f('0xc'),_0xc29f('0x4'),_0x4d4fa0['if'](_0xc29f('0x8'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this[_0xc29f('0x2')]});}[_0xc29f('0x17')](){super[_0xc29f('0x17')](),this['focusTracker'][_0xc29f('0x6')](this[_0xc29f('0xf')]),this[_0xc29f('0x10')][_0xc29f('0x1a')](this[_0xc29f('0xf')]),this['_mutationObserver'][_0xc29f('0x19')](this[_0xc29f('0xf')]);}['destroy'](){this[_0xc29f('0x2')]['clear'](),this[_0xc29f('0x10')]['destroy'](),this[_0xc29f('0x3')][_0xc29f('0xd')](),this[_0xc29f('0x18')][_0xc29f('0x1b')](),super[_0xc29f('0xd')]();}['focus'](){this['element'][_0xc29f('0x16')]();}[_0xc29f('0x13')](){const _0x1f238d=this[_0xc29f('0xf')][_0xc29f('0x14')];_0x1f238d&&(this[_0xc29f('0xa')]=_0x1f238d);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x180e=['createCollection','clientHeight','set','bind','updateHeight','render','setTemplate','div','ck-sidebar-item--no-animation','_targetTop','destroy','height','bindTemplate','_mutationObserver','element','bottom','content','top','attach','detach','clear','isAnimationDisabled'];(function(_0x206dfd,_0x180e23){const _0x4b01c5=function(_0x47274b){while(--_0x47274b){_0x206dfd['push'](_0x206dfd['shift']());}};_0x4b01c5(++_0x180e23);}(_0x180e,0xec));const _0x4b01=function(_0x206dfd,_0x180e23){_0x206dfd=_0x206dfd-0x0;let _0x4b01c5=_0x180e[_0x206dfd];return _0x4b01c5;};import{View as _0x1933e7}from'ckeditor5/src/ui';import{toUnit as _0x5926c5}from'ckeditor5/src/utils';import _0x3570d7 from'../../utils/createmutationobserver';const ft=_0x5926c5('px');export default class ct extends _0x1933e7{constructor(_0x325e8d){super(_0x325e8d),this[_0x4b01('0x8')](_0x4b01('0x1')),this[_0x4b01('0x8')]('height',0x0),this[_0x4b01('0x9')](_0x4b01('0x15'))['to'](this,'top',this,_0x4b01('0x11'),(_0xc56dee,_0x12d122)=>(_0xc56dee||0x0)+_0x12d122),this[_0x4b01('0x8')]('isAnimationDisabled',!0x1),this['_mutationObserver']=_0x3570d7(()=>this['updateHeight']()),this[_0x4b01('0xf')]=null,this[_0x4b01('0x0')]=this[_0x4b01('0x6')]();const _0x289be2=this[_0x4b01('0x12')];this[_0x4b01('0xc')]({'tag':_0x4b01('0xd'),'attributes':{'class':['ck-sidebar-item',_0x289be2['to'](_0x4b01('0x5'),_0x2cfc3d=>_0x2cfc3d?_0x4b01('0xe'):'')],'style':{'top':_0x289be2['to'](_0x4b01('0x1'),ft)}},'children':this[_0x4b01('0x0')]});}[_0x4b01('0xb')](){super[_0x4b01('0xb')](),this[_0x4b01('0x13')][_0x4b01('0x2')](this[_0x4b01('0x14')]);}[_0x4b01('0xa')](){const _0x176bfd=this[_0x4b01('0x14')][_0x4b01('0x7')];_0x176bfd&&(this['height']=_0x176bfd);}[_0x4b01('0x10')](){this[_0x4b01('0x0')][_0x4b01('0x4')](),this[_0x4b01('0x13')][_0x4b01('0x3')](),super['destroy']();}}
23
+ const _0x39f1=['updateHeight','_mutationObserver','bottom','clientHeight','bind','render','content','createCollection','div','element','ck-sidebar-item','ck-sidebar-item--no-animation','height','top','isAnimationDisabled','detach','set','clear'];(function(_0x1b0939,_0x39f181){const _0x51c06a=function(_0x61f0f1){while(--_0x61f0f1){_0x1b0939['push'](_0x1b0939['shift']());}};_0x51c06a(++_0x39f181);}(_0x39f1,0xd5));const _0x51c0=function(_0x1b0939,_0x39f181){_0x1b0939=_0x1b0939-0x0;let _0x51c06a=_0x39f1[_0x1b0939];return _0x51c06a;};import{View as _0x4a4ba2}from'ckeditor5/src/ui';import{toUnit as _0x1e68c4}from'ckeditor5/src/utils';import _0x2f46cb from'../../utils/createmutationobserver';const ft=_0x1e68c4('px');export default class C extends _0x4a4ba2{constructor(_0x2538d1){super(_0x2538d1),this[_0x51c0('0x1')]('top'),this[_0x51c0('0x1')](_0x51c0('0xf'),0x0),this[_0x51c0('0x7')](_0x51c0('0x5'))['to'](this,_0x51c0('0x10'),this,'height',(_0xea4f90,_0x4760ec)=>(_0xea4f90||0x0)+_0x4760ec),this[_0x51c0('0x1')](_0x51c0('0x11'),!0x1),this[_0x51c0('0x4')]=_0x2f46cb(()=>this[_0x51c0('0x3')]()),this['_targetTop']=null,this['content']=this[_0x51c0('0xa')]();const _0x4668eb=this['bindTemplate'];this['setTemplate']({'tag':_0x51c0('0xb'),'attributes':{'class':[_0x51c0('0xd'),_0x4668eb['to'](_0x51c0('0x11'),_0xb8ee0=>_0xb8ee0?_0x51c0('0xe'):'')],'style':{'top':_0x4668eb['to'](_0x51c0('0x10'),ft)}},'children':this[_0x51c0('0x9')]});}[_0x51c0('0x8')](){super[_0x51c0('0x8')](),this['_mutationObserver']['attach'](this[_0x51c0('0xc')]);}['updateHeight'](){const _0xd0fb91=this[_0x51c0('0xc')][_0x51c0('0x6')];_0xd0fb91&&(this[_0x51c0('0xf')]=_0xd0fb91);}['destroy'](){this[_0x51c0('0x9')][_0x51c0('0x2')](),this['_mutationObserver'][_0x51c0('0x0')](),super['destroy']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x300b=['class','list','ck-sidebar','createCollection','minHeight','setTemplate','set'];(function(_0x2e453f,_0x300b24){const _0x10c099=function(_0x41ba89){while(--_0x41ba89){_0x2e453f['push'](_0x2e453f['shift']());}};_0x10c099(++_0x300b24);}(_0x300b,0x126));const _0x10c0=function(_0x2e453f,_0x300b24){_0x2e453f=_0x2e453f-0x0;let _0x10c099=_0x300b[_0x2e453f];return _0x10c099;};import{View as _0x43ae25}from'ckeditor5/src/ui';import{toUnit as _0x12c1a3}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x12c1a3('px');export default class at extends _0x43ae25{constructor(_0x1cc185){super(_0x1cc185);const _0x5a2b4b=this['bindTemplate'];this[_0x10c0('0x6')](_0x10c0('0x4'),0x0),this[_0x10c0('0x6')](_0x10c0('0x0'),''),this[_0x10c0('0x1')]=this[_0x10c0('0x3')](),this[_0x10c0('0x5')]({'tag':'div','attributes':{'class':['ck',_0x10c0('0x2'),'ck-reset',_0x5a2b4b['to'](_0x10c0('0x0'))],'style':{'minHeight':_0x5a2b4b['to'](_0x10c0('0x4'),_0x358f96=>_0x358f96?ft(_0x358f96+0xa):null)}},'children':this[_0x10c0('0x1')]});}}
23
+ const _0x45c5=['set','div','setTemplate','createCollection','minHeight','ck-reset','list','ck-sidebar'];(function(_0x547b9f,_0x45c5cb){const _0x56814f=function(_0x345fa8){while(--_0x345fa8){_0x547b9f['push'](_0x547b9f['shift']());}};_0x56814f(++_0x45c5cb);}(_0x45c5,0x1c7));const _0x5681=function(_0x547b9f,_0x45c5cb){_0x547b9f=_0x547b9f-0x0;let _0x56814f=_0x45c5[_0x547b9f];return _0x56814f;};import{View as _0x1018b4}from'ckeditor5/src/ui';import{toUnit as _0x349eec}from'ckeditor5/src/utils';import'../../../theme/sidebar.css';const ft=_0x349eec('px');export default class T extends _0x1018b4{constructor(_0x4dc248){super(_0x4dc248);const _0x40db8a=this['bindTemplate'];this[_0x5681('0x1')](_0x5681('0x5'),0x0),this[_0x5681('0x1')]('class',''),this[_0x5681('0x7')]=this[_0x5681('0x4')](),this[_0x5681('0x3')]({'tag':_0x5681('0x2'),'attributes':{'class':['ck',_0x5681('0x0'),_0x5681('0x6'),_0x40db8a['to']('class')],'style':{'minHeight':_0x40db8a['to'](_0x5681('0x5'),_0x19c578=>_0x19c578?ft(_0x19c578+0xa):null)}},'children':this[_0x5681('0x7')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1c09=['from','_integrateWithEditorAnnotations','plugins','addEventListener','focus','ready','rearrange','WideSidebar','blur','editors','add','_detachFromContainer','wideSidebar','stopListening','hasDomSelection','set:container','register','set','context','init','widesidebar-detach-not-attached','refresh','has','switchTo','removeEventListener','_annotations','_editorAnnotations','addAnnotation','high','activeAnnotation','stop','cancel','setActiveAnnotation','Sidebar','isAttached','change:container','pluginName','listenTo','resize','remove','attach','widesidebar-attach-already-attached','updateTargetRect','uiUpdate','off','EditorAnnotations','requires','detach','_destroyEditorAnnotationsIntegration','refreshPositioning','_throttledPositioningRefresh','ck-sidebar--wide','getOrderedSelectedAnnotations','get'];(function(_0x49e85b,_0x1c090b){const _0x159278=function(_0x8dacd7){while(--_0x8dacd7){_0x49e85b['push'](_0x49e85b['shift']());}};_0x159278(++_0x1c090b);}(_0x1c09,0x19a));const _0x1592=function(_0x49e85b,_0x1c090b){_0x49e85b=_0x49e85b-0x0;let _0x159278=_0x1c09[_0x49e85b];return _0x159278;};import{ContextPlugin as _0x511b34}from'ckeditor5/src/core';import _0x58ba6a from'./annotationsuis';import _0x17ca9a from'./sidebar';import{CKEditorError as _0x3b9337,Collection as _0x13dde0}from'ckeditor5/src/utils';import{throttle as _0x1b46fd}from'lodash-es';export default class i extends _0x511b34{static get[_0x1592('0xe')](){return[_0x17ca9a,_0x58ba6a];}static get[_0x1592('0x4')](){return _0x1592('0x1d');}constructor(_0x4d4e15){super(_0x4d4e15),this[_0x1592('0x2')]=!0x1,this[_0x1592('0x27')](_0x1592('0x33'),null),this[_0x1592('0x2f')]=null,this[_0x1592('0x30')]=new _0x13dde0(),this[_0x1592('0x12')]=_0x1b46fd(()=>{this['_annotations']['refreshPositioning']();},0x190,{'leading':!0x1});}[_0x1592('0x29')](){const _0x3a1b56=this[_0x1592('0x28')][_0x1592('0x18')]['get'](_0x58ba6a),_0xaf092b=this[_0x1592('0x28')][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0x3a1b56[_0x1592('0x26')](_0x1592('0x22'),this),_0xaf092b['container']&&_0x3a1b56[_0x1592('0x2d')](_0x1592('0x22'));}[_0x1592('0x0')](_0x33cd04){if(_0x33cd04===this[_0x1592('0x33')])return;const _0x2acbfa=this[_0x1592('0x28')][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0x2acbfa['_activeAnnotation']=_0x33cd04;const _0x2928d7=this['activeAnnotation'];this[_0x1592('0x33')]=_0x33cd04,_0x2acbfa[_0x1592('0x2b')]({'blurredAnnotation':_0x2928d7,'activatedAnnotation':this['activeAnnotation']});}['attach'](_0x525b45){this['_annotations']=_0x525b45;const _0xce7d7d=this[_0x1592('0x28')][_0x1592('0x18')]['get'](_0x1592('0x1'));if(_0xce7d7d[_0x1592('0x2f')]=_0x525b45,this[_0x1592('0x2')])throw new _0x3b9337(_0x1592('0x9'),this);this[_0x1592('0x2')]=!0x0,this['listenTo'](_0xce7d7d,_0x1592('0x25'),()=>{this[_0x1592('0xf')](),this[_0x1592('0x5')](_0xce7d7d,_0x1592('0x3'),_0x470b93=>{_0x470b93[_0x1592('0xc')](),this[_0x1592('0x8')](_0x525b45);});}),_0xce7d7d['_attachToContainer']({'viewClass':_0x1592('0x13')});const _0x493c0c=_0xe918dd=>{_0xe918dd[_0x1592('0xa')](),_0xce7d7d[_0x1592('0x31')](_0xe918dd);};for(const _0x2404a3 of _0x525b45)_0x493c0c(_0x2404a3);this['listenTo'](_0x525b45,'add',(_0x1f0b75,_0x24908a)=>{_0x493c0c(_0x24908a);}),this['listenTo'](_0x525b45,_0x1592('0x7'),(_0xde60ab,_0x3e8ac9,_0xb558d9)=>{_0xce7d7d[_0x1592('0x1c')]({'removedAnnotation':_0x3e8ac9,'previousAnnotation':_0x525b45[_0x1592('0x15')](_0xb558d9-0x1),'nextAnnotation':_0x525b45[_0x1592('0x15')](_0xb558d9+0x1)}),_0x3e8ac9===this['activeAnnotation']&&this[_0x1592('0x0')](null);},{'priority':_0x1592('0x32')}),this[_0x1592('0x5')](_0x525b45,_0x1592('0x1a'),(_0x517bc9,_0x8b97a5)=>{this[_0x1592('0x0')](_0x8b97a5);}),this[_0x1592('0x5')](_0x525b45,'blur',()=>{this[_0x1592('0x0')](null);});const _0x2ab434=this[_0x1592('0x28')][_0x1592('0x1f')]?this[_0x1592('0x28')][_0x1592('0x1f')]:new _0x13dde0([this['context']]);for(const _0xa43372 of _0x2ab434)this[_0x1592('0x17')](_0xa43372);this[_0x1592('0x5')](_0x2ab434,'add',(_0x4747d0,_0x57675b)=>{this[_0x1592('0x5')](_0x57675b,_0x1592('0x1b'),()=>{this['_integrateWithEditorAnnotations'](_0x57675b);});}),this[_0x1592('0x5')](_0x2ab434,_0x1592('0x7'),(_0x3b313e,_0x34a714)=>{_0x34a714[_0x1592('0x18')][_0x1592('0x2c')]('EditorAnnotations')&&this[_0x1592('0x10')](_0x34a714[_0x1592('0x18')][_0x1592('0x15')]('EditorAnnotations'));}),window[_0x1592('0x19')](_0x1592('0x6'),this[_0x1592('0x12')]),this['_annotations'][_0x1592('0x11')]();}[_0x1592('0xf')](){if(!this['isAttached'])throw new _0x3b9337(_0x1592('0x2a'),this);this[_0x1592('0x0')](null);const _0xbc81c4=this['context'][_0x1592('0x18')][_0x1592('0x15')](_0x17ca9a);_0xbc81c4[_0x1592('0x21')](this[_0x1592('0x2f')]),this[_0x1592('0x23')](_0xbc81c4),this[_0x1592('0x23')](this['_annotations']),this['stopListening'](this[_0x1592('0x28')][_0x1592('0x1f')]);for(const _0x3a5e87 of Array[_0x1592('0x16')](this[_0x1592('0x30')]))this[_0x1592('0x10')](_0x3a5e87);window[_0x1592('0x2e')]('resize',this['_throttledPositioningRefresh']),this[_0x1592('0x12')][_0x1592('0x35')](),this[_0x1592('0x33')]=null,this[_0x1592('0x2')]=!0x1;}['destroy'](){this[_0x1592('0x2')]&&this[_0x1592('0xf')]();}[_0x1592('0x17')](_0x57e869){const _0x33505f=_0x57e869['plugins'][_0x1592('0x15')](_0x1592('0xd'));if(!_0x33505f)return;const _0x240285=()=>{const _0xe8f660=_0x33505f[_0x1592('0x14')]({'annotations':this[_0x1592('0x2f')],'activeAnnotation':this[_0x1592('0x33')]});this[_0x1592('0x0')](_0xe8f660[0x0]||null);};this[_0x1592('0x5')](_0x33505f,_0x1592('0x2b'),_0x240285),this['listenTo'](_0x33505f,_0x1592('0x1e'),(_0x410e73,{isAnnotationTracked:_0x367cba})=>{this[_0x1592('0x33')]&&_0x367cba(this[_0x1592('0x33')])&&this['setActiveAnnotation'](null);}),this['listenTo'](_0x33505f,_0x1592('0xb'),()=>{this[_0x1592('0x2f')][_0x1592('0x11')]();}),this[_0x1592('0x5')](this['_annotations'],_0x1592('0x1e'),_0x19992a=>{_0x33505f[_0x1592('0x24')]()&&(_0x240285(),_0x19992a[_0x1592('0x34')]());},{'priority':'high'}),this['_editorAnnotations'][_0x1592('0x20')](_0x33505f);}['_destroyEditorAnnotationsIntegration'](_0x6bb4d6){_0x6bb4d6&&(this[_0x1592('0x23')](_0x6bb4d6),this[_0x1592('0x30')][_0x1592('0x7')](_0x6bb4d6));}}
23
+ const _0x1782=['attach','setActiveAnnotation','remove','listenTo','EditorAnnotations','switchTo','_activeAnnotation','_throttledPositioningRefresh','isAttached','refreshPositioning','rearrange','wideSidebar','stop','uiUpdate','addEventListener','high','removeEventListener','off','stopListening','editors','add','register','context','init','cancel','set','pluginName','resize','blur','focus','activeAnnotation','_destroyEditorAnnotationsIntegration','plugins','_editorAnnotations','updateTargetRect','refresh','get','change:container','_integrateWithEditorAnnotations','annotations','from','destroy','detach','Sidebar','ready','requires','_attachToContainer'];(function(_0xcb76c4,_0x178252){const _0x4084b3=function(_0x1d80c9){while(--_0x1d80c9){_0xcb76c4['push'](_0xcb76c4['shift']());}};_0x4084b3(++_0x178252);}(_0x1782,0x99));const _0x4084=function(_0xcb76c4,_0x178252){_0xcb76c4=_0xcb76c4-0x0;let _0x4084b3=_0x1782[_0xcb76c4];return _0x4084b3;};import{ContextPlugin as _0x245eac}from'ckeditor5/src/core';import _0x41b5d0 from'./annotationsuis';import _0x264eaf from'./sidebar';import{CKEditorError as _0x1861fc,Collection as _0x22b6f0}from'ckeditor5/src/utils';import{throttle as _0x42b599}from'lodash-es';export default class i extends _0x245eac{static get[_0x4084('0x21')](){return[_0x264eaf,_0x41b5d0];}static get[_0x4084('0xe')](){return'WideSidebar';}constructor(_0xe3992e){super(_0xe3992e),this[_0x4084('0x2b')]=!0x1,this[_0x4084('0xd')](_0x4084('0x12'),null),this[_0x4084('0x1b')]=null,this[_0x4084('0x15')]=new _0x22b6f0(),this[_0x4084('0x2a')]=_0x42b599(()=>{this['annotations'][_0x4084('0x2c')]();},0x190,{'leading':!0x1});}[_0x4084('0xb')](){const _0x20bb28=this[_0x4084('0xa')][_0x4084('0x14')][_0x4084('0x18')](_0x41b5d0),_0x59fc75=this[_0x4084('0xa')][_0x4084('0x14')][_0x4084('0x18')](_0x264eaf);_0x20bb28[_0x4084('0x9')](_0x4084('0x2e'),this),_0x59fc75['container']&&_0x20bb28[_0x4084('0x28')](_0x4084('0x2e'));}[_0x4084('0x24')](_0x2c3416){if(_0x2c3416===this[_0x4084('0x12')])return;const _0x2d9ecb=this[_0x4084('0xa')][_0x4084('0x14')][_0x4084('0x18')](_0x264eaf);_0x2d9ecb[_0x4084('0x29')]=_0x2c3416;const _0x4b8605=this[_0x4084('0x12')];this[_0x4084('0x12')]=_0x2c3416,_0x2d9ecb[_0x4084('0x17')]({'blurredAnnotation':_0x4b8605,'activatedAnnotation':this[_0x4084('0x12')]});}[_0x4084('0x23')](_0x23cc20){this['annotations']=_0x23cc20;const _0x1397bb=this[_0x4084('0xa')][_0x4084('0x14')]['get'](_0x4084('0x1f'));if(_0x1397bb['_annotations']=_0x23cc20,this[_0x4084('0x2b')])throw new _0x1861fc('widesidebar-attach-already-attached',this);this[_0x4084('0x2b')]=!0x0,this[_0x4084('0x26')](_0x1397bb,'set:container',()=>{this['detach'](),this['listenTo'](_0x1397bb,_0x4084('0x19'),_0x50e52a=>{_0x50e52a[_0x4084('0x5')](),this[_0x4084('0x23')](_0x23cc20);});}),_0x1397bb[_0x4084('0x22')]({'viewClass':'ck-sidebar--wide'});const _0x30dfe5=_0x3e6e4d=>{_0x3e6e4d[_0x4084('0x16')](),_0x1397bb['addAnnotation'](_0x3e6e4d);};for(const _0x42b42f of _0x23cc20)_0x30dfe5(_0x42b42f);this[_0x4084('0x26')](_0x23cc20,'add',(_0x5eb09b,_0x1a89d9)=>{_0x30dfe5(_0x1a89d9);}),this[_0x4084('0x26')](_0x23cc20,'remove',(_0x2298a4,_0x5c6b0a,_0xcf7dfc)=>{_0x1397bb[_0x4084('0x2d')]({'removedAnnotation':_0x5c6b0a,'previousAnnotation':_0x23cc20[_0x4084('0x18')](_0xcf7dfc-0x1),'nextAnnotation':_0x23cc20['get'](_0xcf7dfc+0x1)}),_0x5c6b0a===this[_0x4084('0x12')]&&this[_0x4084('0x24')](null);},{'priority':_0x4084('0x3')}),this[_0x4084('0x26')](_0x23cc20,_0x4084('0x11'),(_0x3cc787,_0x733927)=>{this['setActiveAnnotation'](_0x733927);}),this['listenTo'](_0x23cc20,_0x4084('0x10'),()=>{this[_0x4084('0x24')](null);});const _0x5687b8=this[_0x4084('0xa')]['editors']?this[_0x4084('0xa')][_0x4084('0x7')]:new _0x22b6f0([this[_0x4084('0xa')]]);for(const _0x4723f7 of _0x5687b8)this[_0x4084('0x1a')](_0x4723f7);this[_0x4084('0x26')](_0x5687b8,_0x4084('0x8'),(_0x440893,_0x44a22a)=>{this[_0x4084('0x26')](_0x44a22a,_0x4084('0x20'),()=>{this[_0x4084('0x1a')](_0x44a22a);});}),this['listenTo'](_0x5687b8,_0x4084('0x25'),(_0x996e75,_0x52deab)=>{_0x52deab[_0x4084('0x14')]['has'](_0x4084('0x27'))&&this['_destroyEditorAnnotationsIntegration'](_0x52deab[_0x4084('0x14')][_0x4084('0x18')]('EditorAnnotations'));}),window[_0x4084('0x2')](_0x4084('0xf'),this[_0x4084('0x2a')]),this[_0x4084('0x1b')][_0x4084('0x2c')]();}[_0x4084('0x1e')](){if(!this[_0x4084('0x2b')])throw new _0x1861fc('widesidebar-detach-not-attached',this);this[_0x4084('0x24')](null);const _0x29ff6a=this[_0x4084('0xa')][_0x4084('0x14')]['get'](_0x264eaf);_0x29ff6a['_detachFromContainer'](this[_0x4084('0x1b')]),this[_0x4084('0x6')](_0x29ff6a),this['stopListening'](this[_0x4084('0x1b')]),this[_0x4084('0x6')](this[_0x4084('0xa')][_0x4084('0x7')]);for(const _0x678a2d of Array[_0x4084('0x1c')](this['_editorAnnotations']))this[_0x4084('0x13')](_0x678a2d);window[_0x4084('0x4')]('resize',this[_0x4084('0x2a')]),this['_throttledPositioningRefresh'][_0x4084('0xc')](),this[_0x4084('0x12')]=null,this[_0x4084('0x2b')]=!0x1,this[_0x4084('0x1b')]=null;}[_0x4084('0x1d')](){this[_0x4084('0x2b')]&&this['detach']();}['_integrateWithEditorAnnotations'](_0x511b9a){const _0x42d84e=_0x511b9a[_0x4084('0x14')]['get'](_0x4084('0x27'));if(!_0x42d84e)return;const _0x50996c=()=>{const _0x57cfd7=_0x42d84e['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this['activeAnnotation']});this[_0x4084('0x24')](_0x57cfd7[0x0]||null);};this[_0x4084('0x26')](_0x42d84e,_0x4084('0x17'),_0x50996c),this[_0x4084('0x26')](_0x42d84e,'blur',(_0x24b8ed,{isAnnotationTracked:_0x462ee2})=>{this[_0x4084('0x12')]&&_0x462ee2(this[_0x4084('0x12')])&&this[_0x4084('0x24')](null);}),this[_0x4084('0x26')](_0x42d84e,_0x4084('0x1'),()=>{this[_0x4084('0x1b')][_0x4084('0x2c')]();}),this['listenTo'](this['annotations'],'blur',_0x1d4844=>{_0x42d84e['hasDomSelection']()&&(_0x50996c(),_0x1d4844[_0x4084('0x0')]());},{'priority':_0x4084('0x3')}),this[_0x4084('0x15')][_0x4084('0x8')](_0x42d84e);}[_0x4084('0x13')](_0x1e2082){_0x1e2082&&(this['stopListening'](_0x1e2082),this[_0x4084('0x15')][_0x4084('0x25')](_0x1e2082));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x54b8=['document','getRanges','start','end','refresh','item','selection','getLastMatchingPosition','push','addMarker','isEnabled','textProxy','change','schema','comment:','_itemIsContent','createRange','execute','model','_hasContent','_trimToContent','isObject','editor','element'];(function(_0x4e027b,_0x54b85b){const _0x40464a=function(_0x804e2a){while(--_0x804e2a){_0x4e027b['push'](_0x4e027b['shift']());}};_0x40464a(++_0x54b85b);}(_0x54b8,0x1ac));const _0x4046=function(_0x4e027b,_0x54b85b){_0x4e027b=_0x4e027b-0x0;let _0x40464a=_0x54b8[_0x4e027b];return _0x40464a;};import{Command as _0xb1ec13}from'ckeditor5/src/core';import{uid as _0x96c094}from'ckeditor5/src/utils';export default class d extends _0xb1ec13{[_0x4046('0x8')](){const _0x44928f=this[_0x4046('0x2')][_0x4046('0x16')]['document'][_0x4046('0xa')];for(const _0x7d0eaf of _0x44928f['getRanges']())if(this['_hasContent'](_0x7d0eaf))return void(this[_0x4046('0xe')]=!0x0);this[_0x4046('0xe')]=!0x1;}[_0x4046('0x15')]({threadId:_0x1d03a6=_0x96c094()}={}){const _0x1e1799=this[_0x4046('0x2')][_0x4046('0x16')],_0x562990=[];for(const _0x4edd42 of _0x1e1799[_0x4046('0x4')][_0x4046('0xa')][_0x4046('0x5')]())this[_0x4046('0x17')](_0x4edd42)&&_0x562990[_0x4046('0xc')](this[_0x4046('0x0')](_0x4edd42));_0x1e1799[_0x4046('0x10')](_0x273063=>{for(const _0x1163cf of _0x562990){const _0x1ca667=_0x96c094()['substr'](0x1,0x5),_0x45e88c=_0x4046('0x12')+_0x1d03a6+':'+_0x1ca667;_0x273063[_0x4046('0xd')](_0x45e88c,{'range':_0x1163cf,'usingOperation':!0x1,'affectData':!0x1});}});}[_0x4046('0x17')](_0x4e3cda){for(const _0x2001bd of _0x4e3cda['getItems']())if(this['_itemIsContent'](_0x2001bd))return!0x0;return!0x1;}[_0x4046('0x13')](_0x54aee3){return _0x54aee3['is'](_0x4046('0xf'))||this[_0x4046('0x2')][_0x4046('0x16')][_0x4046('0x11')][_0x4046('0x1')](_0x54aee3)&&!_0x54aee3['is'](_0x4046('0x3'),'tableCell');}[_0x4046('0x0')](_0x324004){const _0x4aa6ff=_0x1a4481=>!this['_itemIsContent'](_0x1a4481[_0x4046('0x9')]),_0x5756c8=_0x324004[_0x4046('0x6')][_0x4046('0xb')](_0x4aa6ff),_0x16deb8=_0x324004[_0x4046('0x7')]['getLastMatchingPosition'](_0x4aa6ff,{'direction':'backward'});return this[_0x4046('0x2')][_0x4046('0x16')][_0x4046('0x14')](_0x5756c8,_0x16deb8);}}
23
+ const _0x1d76=['element','_itemIsContent','isEnabled','refresh','getLastMatchingPosition','editor','comment:','schema','tableCell','_hasContent','getRanges','model','textProxy','document','_trimToContent','change','item','backward','start','push','execute','createRange','selection','isObject'];(function(_0x2f6738,_0x1d76ca){const _0x326199=function(_0x5342c9){while(--_0x5342c9){_0x2f6738['push'](_0x2f6738['shift']());}};_0x326199(++_0x1d76ca);}(_0x1d76,0x12b));const _0x3261=function(_0x2f6738,_0x1d76ca){_0x2f6738=_0x2f6738-0x0;let _0x326199=_0x1d76[_0x2f6738];return _0x326199;};import{Command as _0xfc3f2}from'ckeditor5/src/core';import{uid as _0x54df5a}from'ckeditor5/src/utils';export default class j extends _0xfc3f2{[_0x3261('0x10')](){const _0x2904e4=this[_0x3261('0x12')]['model'][_0x3261('0x2')][_0x3261('0xb')];for(const _0x348afc of _0x2904e4[_0x3261('0x17')]())if(this[_0x3261('0x16')](_0x348afc))return void(this[_0x3261('0xf')]=!0x0);this['isEnabled']=!0x1;}[_0x3261('0x9')]({threadId:_0x12f62c=_0x54df5a()}={}){const _0x3ccb39=this[_0x3261('0x12')]['model'],_0x34bdb8=[];for(const _0x476655 of _0x3ccb39[_0x3261('0x2')][_0x3261('0xb')][_0x3261('0x17')]())this[_0x3261('0x16')](_0x476655)&&_0x34bdb8[_0x3261('0x8')](this[_0x3261('0x3')](_0x476655));_0x3ccb39[_0x3261('0x4')](_0x327df9=>{for(const _0x4bc463 of _0x34bdb8){const _0x301046=_0x54df5a()['substr'](0x1,0x5),_0x371c10=_0x3261('0x13')+_0x12f62c+':'+_0x301046;_0x327df9['addMarker'](_0x371c10,{'range':_0x4bc463,'usingOperation':!0x1,'affectData':!0x1});}});}['_hasContent'](_0x52f4c0){for(const _0xa6ba2e of _0x52f4c0['getItems']())if(this[_0x3261('0xe')](_0xa6ba2e))return!0x0;return!0x1;}['_itemIsContent'](_0x57e6bd){return _0x57e6bd['is'](_0x3261('0x1'))||this[_0x3261('0x12')]['model'][_0x3261('0x14')][_0x3261('0xc')](_0x57e6bd)&&!_0x57e6bd['is'](_0x3261('0xd'),_0x3261('0x15'));}[_0x3261('0x3')](_0x3cb286){const _0x562e87=_0x418046=>!this[_0x3261('0xe')](_0x418046[_0x3261('0x5')]),_0x18ec76=_0x3cb286[_0x3261('0x7')][_0x3261('0x11')](_0x562e87),_0x2a9596=_0x3cb286['end'][_0x3261('0x11')](_0x562e87,{'direction':_0x3261('0x6')});return this[_0x3261('0x12')][_0x3261('0x0')][_0x3261('0xa')](_0x18ec76,_0x2a9596);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x8627=['left','view','registerPostFixer','markers','split','createElement','length','document','ck-comment-marker','destroyed','_attachedThreads','affectsData','comment:','activeMarker','isObject','updateMarker','model','rootName','destroy','fetchCommentThread','state','isThreadsLoadingPaused','pluginName','getAllMarkersForId','$graveyard','start','elementToElement','from','editor','has','CommentsRepository','dataToMarker','ck-comment-marker--active','change','ready','markerName','switchReadOnly','requires','editingDowncast','_initializeMarkerConverters','_attachThreadToMarker','hasMarkerForId','createRange','end','config','then','listenTo','upcast','set','add','change:isReadOnly','delete','newRange','_threads','push','once','name','_handleMarkerAddAndRemove','addCommentThread','managedUsingOperations','isCollapsed','editing','removeMarker','getMarkersGroup','root','createPositionBefore','data','isEqual','markerToData','getWalker','_detachCommentThread','hasContent','get','conversion','top','addComment','high','low','getCommentThread','plugins','for','getAttribute','markerToHighlight','hasCommentThread','change:activeMarker','text','getCommentThreads','openNewCommentThread','reconvertMarker','getChangedMarkers','collaboration.channelId','stop','CommentsEditing','comment'];(function(_0x254eab,_0x862765){const _0x3cb2ef=function(_0x21210e){while(--_0x21210e){_0x254eab['push'](_0x254eab['shift']());}};_0x3cb2ef(++_0x862765);}(_0x8627,0x100));const _0x3cb2=function(_0x254eab,_0x862765){_0x254eab=_0x254eab-0x0;let _0x3cb2ef=_0x8627[_0x254eab];return _0x3cb2ef;};import{Plugin as _0x34e8d3}from'ckeditor5/src/core';import{Rect as _0x2d58dc}from'ckeditor5/src/utils';import _0x37fc1e from'./commentsrepository';import _0x32519e from'./addcommentthreadcommand';import{getMarkerDomElement as _0x589f3f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2f0adf from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0x34e8d3{static get[_0x3cb2('0x3f')](){return[_0x37fc1e,_0x2f0adf];}static get[_0x3cb2('0x30')](){return _0x3cb2('0x18');}constructor(_0x2f378b){super(_0x2f378b),this[_0x3cb2('0x4a')](_0x3cb2('0x2f'),!0x0),_0x2f378b[_0x3cb2('0x5c')][_0x3cb2('0x51')](_0x3cb2('0x3c'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0x3cb2('0x27'),null),this['on'](_0x3cb2('0x10'),(_0x129487,_0x38de5c,_0x160043,_0x31f6a3)=>{_0x2f378b[_0x3cb2('0x2a')][_0x3cb2('0x3b')](()=>{if(_0x160043){const {id:_0x5ca7c4}=k(_0x160043),_0x56688b=this['getAllMarkersForId'](_0x5ca7c4);for(const _0x2a3728 of _0x56688b)_0x2f378b['editing'][_0x3cb2('0x14')](_0x2a3728);}if(_0x31f6a3){const {id:_0x3919f7}=k(_0x31f6a3),_0x3d3b1d=this[_0x3cb2('0x31')](_0x3919f7);for(const _0x3a531b of _0x3d3b1d)_0x2f378b[_0x3cb2('0x57')][_0x3cb2('0x14')](_0x3a531b);}});}),this[_0x3cb2('0x24')]=new Set();}['init'](){const _0x4bcca5=this[_0x3cb2('0x36')],_0x135844=_0x4bcca5[_0x3cb2('0xb')][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x37b1e9=_0x4bcca5[_0x3cb2('0x46')][_0x3cb2('0x4')](_0x3cb2('0x16'));_0x4bcca5['commands'][_0x3cb2('0x4b')](_0x3cb2('0x54'),new _0x32519e(_0x4bcca5)),this[_0x3cb2('0x48')](_0x4bcca5,_0x3cb2('0x4c'),(_0x27a3c6,_0x4e938c,_0x37f969)=>{_0x135844[_0x3cb2('0x3e')](_0x37f969,_0x4bcca5['config'][_0x3cb2('0x4')]('collaboration.channelId'));}),this[_0x3cb2('0x48')](_0x135844,g('removeCommentThread',_0x37b1e9),(_0x4533e0,{threadId:_0x296609})=>{_0x4bcca5[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x23f5e3=>{for(const _0x56f0b6 of this['getAllMarkersForId'](_0x296609))_0x23f5e3['removeMarker'](_0x56f0b6);});const _0x8bf635=_0x135844[_0x3cb2('0xa')](_0x296609);_0x135844[_0x3cb2('0xf')](_0x296609)&&!_0x8bf635[_0x3cb2('0x20')]||_0x4533e0[_0x3cb2('0x17')]();},{'priority':_0x3cb2('0x8')}),this[_0x3cb2('0x48')](_0x135844,g(_0x3cb2('0x7'),_0x37b1e9),(_0x438346,{threadId:_0xe3663d,isFromAdapter:_0x206faf})=>{const _0x4b6a89=this[_0x3cb2('0x31')](_0xe3663d);if(_0x206faf||0x0==_0x4b6a89[_0x3cb2('0x20')]||!_0x135844[_0x3cb2('0xf')](_0xe3663d))return;0x1===_0x135844['getCommentThread'](_0xe3663d)[_0x3cb2('0x20')]&&_0x4bcca5[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x263c2e=>{for(const _0x52c6da of _0x4b6a89)_0x263c2e[_0x3cb2('0x29')](_0x52c6da,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':'low'}),this['_initializeMarkerConverters'](),this['_handleMarkerAddAndRemove']();}[_0x3cb2('0x2c')](){const _0x2ee4aa=this[_0x3cb2('0x36')]['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x334b9a=this['editor'][_0x3cb2('0x46')][_0x3cb2('0x4')](_0x3cb2('0x16'));for(const _0x4b9ab3 of _0x2ee4aa[_0x3cb2('0x12')]({'channelId':_0x334b9a}))_0x2ee4aa[_0x3cb2('0x2')](_0x4b9ab3['id']),_0x2ee4aa[_0x3cb2('0x4f')]['delete'](_0x4b9ab3['id']);super[_0x3cb2('0x2c')]();}[_0x3cb2('0x43')](_0x45a99f){return this[_0x3cb2('0x31')](_0x45a99f)['length']>0x0;}[_0x3cb2('0x31')](_0x586c5a){const _0x109f9f=this[_0x3cb2('0x36')][_0x3cb2('0x2a')][_0x3cb2('0x1d')]['get'](_0x3cb2('0x26')+_0x586c5a);return _0x109f9f?[_0x109f9f]:Array[_0x3cb2('0x35')](this[_0x3cb2('0x36')]['model']['markers'][_0x3cb2('0x59')](_0x3cb2('0x26')+_0x586c5a));}[_0x3cb2('0x41')](){const _0x371177=this[_0x3cb2('0x36')];_0x371177[_0x3cb2('0x5')][_0x3cb2('0xc')](_0x3cb2('0x40'))[_0x3cb2('0xe')]({'model':'comment','view':_0x2cc780=>{const {id:_0x46ac5e}=k(_0x2cc780[_0x3cb2('0x3d')]),_0x1f0c4c=[_0x3cb2('0x22')];return this[_0x3cb2('0x27')]&&k(this[_0x3cb2('0x27')])['id']===_0x46ac5e&&_0x1f0c4c[_0x3cb2('0x50')](_0x3cb2('0x3a')),{'classes':_0x1f0c4c,'attributes':{'data-comment':_0x46ac5e}};}}),_0x371177[_0x3cb2('0x5')][_0x3cb2('0xc')]('dataDowncast')[_0x3cb2('0x0')]({'model':_0x3cb2('0x19'),'view':_0x159b69=>{const _0x18099c=_0x371177[_0x3cb2('0x2a')][_0x3cb2('0x1d')][_0x3cb2('0x4')](_0x159b69),{id:_0x21f6b0,part:_0x5dc2af}=k(_0x159b69);return _0x18099c&&!_0x18099c[_0x3cb2('0x25')]?null:{'group':_0x3cb2('0x19'),'name':_0x5dc2af?_0x21f6b0+':'+_0x5dc2af:_0x21f6b0};}}),_0x371177[_0x3cb2('0x5')]['for'](_0x3cb2('0x49'))[_0x3cb2('0x34')]({'view':{'name':_0x3cb2('0x19'),'attribute':{'id':/^\w/}},'model':(_0x4afaa9,{writer:_0x25a5ae})=>_0x25a5ae[_0x3cb2('0x1f')]('$marker',{'data-name':_0x3cb2('0x26')+_0x4afaa9[_0x3cb2('0xd')]('id')})}),_0x371177['conversion']['for'](_0x3cb2('0x49'))[_0x3cb2('0x39')]({'view':_0x3cb2('0x19')});}[_0x3cb2('0x53')](){const _0x254a48=this[_0x3cb2('0x36')],_0x20e65c=_0x254a48['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0xd6c207=new Set();_0x254a48['model'][_0x3cb2('0x21')][_0x3cb2('0x1c')](_0xf6e2b8=>{let _0xb0dd81=!0x1;for(const {name:_0x5206c1,data:_0xe92ee9}of _0x254a48[_0x3cb2('0x2a')][_0x3cb2('0x21')]['differ'][_0x3cb2('0x15')]()){const {group:_0x5c0dcd,id:_0x1a2f2c}=k(_0x5206c1);let _0x46ef07=_0xe92ee9[_0x3cb2('0x4e')];if(_0x3cb2('0x19')!==_0x5c0dcd||!_0x46ef07)continue;const _0x59ac37=_0x3cb2('0x32')===_0x46ef07[_0x3cb2('0x5a')][_0x3cb2('0x2b')];_0x59ac37||(_0x46ef07=y(_0x46ef07,_0x254a48[_0x3cb2('0x2a')]),!_0x46ef07||_0x46ef07[_0x3cb2('0x5d')](_0xe92ee9[_0x3cb2('0x4e')]))?!_0x46ef07||!_0x254a48['model'][_0x3cb2('0x3')](_0x46ef07)||this[_0x3cb2('0x24')][_0x3cb2('0x37')](_0x1a2f2c)&&_0x59ac37?(_0xf6e2b8[_0x3cb2('0x58')](_0x5206c1),_0xb0dd81=!0x0):_0x59ac37||(this[_0x3cb2('0x2f')]?_0xd6c207[_0x3cb2('0x4b')](_0x1a2f2c):this[_0x3cb2('0x42')](_0x1a2f2c)):(_0xf6e2b8[_0x3cb2('0x29')](_0x5206c1,{'range':_0x46ef07}),_0xb0dd81=!0x0);}return _0xb0dd81;}),this['on']('change:isThreadsLoadingPaused',(_0x193919,_0x2edbd5,_0x46b5db)=>{if(!_0x46b5db&&_0xd6c207['size'])for(const _0xbb6cc4 of _0xd6c207)this[_0x3cb2('0x42')](_0xbb6cc4),_0xd6c207[_0x3cb2('0x4d')](_0xbb6cc4);}),this[_0x3cb2('0x48')](_0x254a48[_0x3cb2('0x2a')][_0x3cb2('0x1d')],'update:comment',(_0xaa2536,_0xcec9ab,_0x165637,_0x730d37)=>{if(_0x730d37)return;const {id:_0x369486}=k(_0xcec9ab[_0x3cb2('0x52')]),_0x394006=_0x254a48[_0x3cb2('0xb')][_0x3cb2('0x4')](_0x3cb2('0x38'))[_0x3cb2('0xa')](_0x369486);_0xd6c207['delete'](_0x369486),_0x394006&&!this['hasMarkerForId'](_0x369486)&&(this['_attachedThreads'][_0x3cb2('0x4d')](_0x369486),_0x20e65c[_0x3cb2('0x2')](_0x369486));});}['_attachThreadToMarker'](_0x350b9b){if(this['_attachedThreads'][_0x3cb2('0x37')](_0x350b9b))return;this[_0x3cb2('0x24')][_0x3cb2('0x4b')](_0x350b9b);const _0x3b3808=this[_0x3cb2('0x36')],_0xcb0816=_0x3b3808['plugins'][_0x3cb2('0x4')](_0x3cb2('0x38')),_0x184e29=_0x3b3808['config']['get'](_0x3cb2('0x16')),_0x3c2655=()=>{const _0x49b413=this[_0x3cb2('0x31')](_0x350b9b);if(0x0==_0x49b413['length'])return null;const _0x22a1fc=_0x49b413['map'](_0x36b4b7=>_0x589f3f(_0x3b3808[_0x3cb2('0x57')],_0x36b4b7));return _0x22a1fc['sort']((_0x16b786,_0x3441f0)=>{const _0x3710c4=new _0x2d58dc(_0x16b786),_0x57de1f=new _0x2d58dc(_0x3441f0),_0x55a13a=_0x3710c4[_0x3cb2('0x6')]-_0x57de1f['top'];return 0x0==_0x55a13a?_0x3710c4[_0x3cb2('0x1a')]-_0x57de1f[_0x3cb2('0x1a')]:_0x55a13a;}),_0x22a1fc[0x0];};!this[_0x3cb2('0x31')](_0x350b9b)[0x0][_0x3cb2('0x55')]?_0x3b3808[_0x3cb2('0x57')][_0x3cb2('0x1b')][_0x3cb2('0x51')]('render',()=>{_0xcb0816[_0x3cb2('0x13')]({'channelId':_0x184e29,'threadId':_0x350b9b,'target':_0x3c2655});},{'priority':_0x3cb2('0x9')}):_0xcb0816[_0x3cb2('0x2d')]({'channelId':_0x184e29,'threadId':_0x350b9b})[_0x3cb2('0x47')](_0x471c8d=>{if(_0x3cb2('0x23')!==_0x3b3808[_0x3cb2('0x2e')]){if(_0x471c8d)_0x471c8d['attachTo'](_0x3c2655);else{const _0x3f09e1=this['getAllMarkersForId'](_0x350b9b);_0x3b3808[_0x3cb2('0x2a')][_0x3cb2('0x3b')](_0x32d507=>{for(const _0x83cf2e of _0x3f09e1)_0x32d507[_0x3cb2('0x58')](_0x83cf2e);});}}});}}function g(_0xfe698,_0x29cae9){return _0x29cae9?_0xfe698+':'+_0x29cae9:_0xfe698;}function k(_0x19cabe){const _0x457808=_0x19cabe[_0x3cb2('0x1e')](':');return{'group':_0x457808[0x0],'id':_0x457808[0x1],'part':_0x457808[0x2]};}function y(_0x324943,_0x51c759){const _0x166928=_0x51c759['schema'],_0x5c0d20=_0x51c759[_0x3cb2('0x44')](_0x324943[_0x3cb2('0x33')]);for(const _0x22a5e8 of _0x324943[_0x3cb2('0x1')]()){const {type:_0x37ac65,item:_0x45dbce,nextPosition:_0x12367a}=_0x22a5e8;if(_0x3cb2('0x11')===_0x37ac65||_0x166928[_0x3cb2('0x28')](_0x45dbce)){const _0x5ed87e=_0x51c759[_0x3cb2('0x5b')](_0x45dbce);_0x5c0d20[_0x3cb2('0x56')]&&(_0x5c0d20[_0x3cb2('0x33')]=_0x5ed87e),_0x5c0d20[_0x3cb2('0x45')]=_0x12367a;}}return _0x5c0d20[_0x3cb2('0x56')]?null:_0x5c0d20;}
23
+ const _0x4c77=['CommentsRepository','isCollapsed','push','once','elementToElement','isEqual','hasMarkerForId','markerToHighlight','pluginName','plugins','addComment','hasContent','attachTo','init','_attachedThreads','map','has','getCommentThread','view','model','addCommentThread','change:isReadOnly','removeMarker','editingDowncast','root','high','CommentsEditing','config','differ','start','$graveyard','low','markerName','dataToMarker','state','sort','removeCommentThread','getWalker','end','update:comment','document','getAllMarkersForId','getCommentThreads','set','rootName','change','_detachCommentThread','newRange','get','text','comment','createRange','_attachThreadToMarker','left','isThreadsLoadingPaused','registerPostFixer','for','hasCommentThread','stop','add','render','split','openNewCommentThread','upcast','destroy','comment:','conversion','change:activeMarker','markerToData','reconvertMarker','_initializeMarkerConverters','updateMarker','commands','requires','fetchCommentThread','ck-comment-marker','destroyed','dataDowncast','editing','length','ck-comment-marker--active','delete','activeMarker','data','collaboration.channelId','getMarkersGroup','managedUsingOperations','ready','editor','listenTo','getAttribute','markers','_handleMarkerAddAndRemove'];(function(_0x48008e,_0x4c778e){const _0xff57fc=function(_0x254c7a){while(--_0x254c7a){_0x48008e['push'](_0x48008e['shift']());}};_0xff57fc(++_0x4c778e);}(_0x4c77,0x192));const _0xff57=function(_0x48008e,_0x4c778e){_0x48008e=_0x48008e-0x0;let _0xff57fc=_0x4c77[_0x48008e];return _0xff57fc;};import{Plugin as _0xf173eb}from'ckeditor5/src/core';import{Rect as _0x454123}from'ckeditor5/src/utils';import _0xcd1e3b from'./commentsrepository';import _0x3c7533 from'./addcommentthreadcommand';import{getMarkerDomElement as _0x3fc495}from'ckeditor5-collaboration/src/collaboration-core';import _0x47b79a from'./integrations/commentsrestrictededitingmode';import'../../theme/commentmarker.css';export default class r extends _0xf173eb{static get[_0xff57('0x2b')](){return[_0xcd1e3b,_0x47b79a];}static get[_0xff57('0x47')](){return _0xff57('0x59');}constructor(_0x4bcef8){super(_0x4bcef8),this[_0xff57('0xd')]('isThreadsLoadingPaused',!0x0),_0x4bcef8[_0xff57('0x35')][_0xff57('0x42')](_0xff57('0x39'),()=>this['isThreadsLoadingPaused']=!0x1),this['set'](_0xff57('0x34'),null),this['on'](_0xff57('0x25'),(_0x27c56a,_0x36a52e,_0x4c268c,_0x599d3f)=>{_0x4bcef8[_0xff57('0x52')][_0xff57('0xf')](()=>{if(_0x4c268c){const {id:_0x24659f}=G(_0x4c268c),_0x3e32b4=this[_0xff57('0xb')](_0x24659f);for(const _0x246067 of _0x3e32b4)_0x4bcef8['editing'][_0xff57('0x27')](_0x246067);}if(_0x599d3f){const {id:_0x3228f2}=G(_0x599d3f),_0x1cbc25=this[_0xff57('0xb')](_0x3228f2);for(const _0x452680 of _0x1cbc25)_0x4bcef8[_0xff57('0x30')]['reconvertMarker'](_0x452680);}});}),this[_0xff57('0x4d')]=new Set();}[_0xff57('0x4c')](){const _0x92b5d=this['editor'],_0x186ef0=_0x92b5d[_0xff57('0x48')][_0xff57('0x12')](_0xff57('0x3f')),_0x586ec1=_0x92b5d[_0xff57('0x5a')][_0xff57('0x12')](_0xff57('0x36'));_0x92b5d[_0xff57('0x2a')][_0xff57('0x1d')](_0xff57('0x53'),new _0x3c7533(_0x92b5d)),this[_0xff57('0x3b')](_0x92b5d,_0xff57('0x54'),(_0x4abb46,_0x34cbe1,_0x2fa26b)=>{_0x186ef0['switchReadOnly'](_0x2fa26b,_0x92b5d['config'][_0xff57('0x12')](_0xff57('0x36')));}),this['listenTo'](_0x186ef0,q(_0xff57('0x6'),_0x586ec1),(_0x4dd7f5,{threadId:_0x3b004b})=>{_0x92b5d[_0xff57('0x52')][_0xff57('0xf')](_0x55b6f8=>{for(const _0x484b6b of this[_0xff57('0xb')](_0x3b004b))_0x55b6f8['removeMarker'](_0x484b6b);});const _0x5f0e89=_0x186ef0[_0xff57('0x50')](_0x3b004b);_0x186ef0[_0xff57('0x1b')](_0x3b004b)&&!_0x5f0e89[_0xff57('0x31')]||_0x4dd7f5[_0xff57('0x1c')]();},{'priority':_0xff57('0x58')}),this[_0xff57('0x3b')](_0x186ef0,q(_0xff57('0x49'),_0x586ec1),(_0x2d1471,{threadId:_0x5d722c,isFromAdapter:_0x2ed425})=>{const _0x2ec8e9=this[_0xff57('0xb')](_0x5d722c);if(_0x2ed425||0x0==_0x2ec8e9['length']||!_0x186ef0[_0xff57('0x1b')](_0x5d722c))return;0x1===_0x186ef0[_0xff57('0x50')](_0x5d722c)['length']&&_0x92b5d[_0xff57('0x52')][_0xff57('0xf')](_0x909577=>{for(const _0x243622 of _0x2ec8e9)_0x909577[_0xff57('0x29')](_0x243622,{'usingOperation':!0x0,'affectsData':!0x0});});},{'priority':_0xff57('0x1')}),this[_0xff57('0x28')](),this[_0xff57('0x3e')]();}[_0xff57('0x22')](){const _0x8d8a71=this[_0xff57('0x3a')][_0xff57('0x48')]['get'](_0xff57('0x3f')),_0x4fb5cd=this[_0xff57('0x3a')][_0xff57('0x5a')][_0xff57('0x12')]('collaboration.channelId');for(const _0x20d9a5 of _0x8d8a71[_0xff57('0xc')]({'channelId':_0x4fb5cd}))_0x8d8a71[_0xff57('0x10')](_0x20d9a5['id']),_0x8d8a71['_threads'][_0xff57('0x33')](_0x20d9a5['id']);super[_0xff57('0x22')]();}[_0xff57('0x45')](_0x42cd45){return this[_0xff57('0xb')](_0x42cd45)[_0xff57('0x31')]>0x0;}['getAllMarkersForId'](_0x1c7211){const _0x2e9009=this[_0xff57('0x3a')][_0xff57('0x52')][_0xff57('0x3d')][_0xff57('0x12')](_0xff57('0x23')+_0x1c7211);return _0x2e9009?[_0x2e9009]:Array['from'](this['editor'][_0xff57('0x52')][_0xff57('0x3d')][_0xff57('0x37')](_0xff57('0x23')+_0x1c7211));}[_0xff57('0x28')](){const _0x5bf04a=this[_0xff57('0x3a')];_0x5bf04a[_0xff57('0x24')]['for'](_0xff57('0x56'))[_0xff57('0x46')]({'model':_0xff57('0x14'),'view':_0x154584=>{const {id:_0x40f271}=G(_0x154584[_0xff57('0x2')]),_0x4ca9f4=[_0xff57('0x2d')];return this[_0xff57('0x34')]&&G(this[_0xff57('0x34')])['id']===_0x40f271&&_0x4ca9f4[_0xff57('0x41')](_0xff57('0x32')),{'classes':_0x4ca9f4,'attributes':{'data-comment':_0x40f271}};}}),_0x5bf04a[_0xff57('0x24')][_0xff57('0x1a')](_0xff57('0x2f'))[_0xff57('0x26')]({'model':_0xff57('0x14'),'view':_0x3553df=>{const _0x1e9fb4=_0x5bf04a['model']['markers'][_0xff57('0x12')](_0x3553df),{id:_0x110b51,part:_0x4459e7}=G(_0x3553df);return _0x1e9fb4&&!_0x1e9fb4['affectsData']?null:{'group':'comment','name':_0x4459e7?_0x110b51+':'+_0x4459e7:_0x110b51};}}),_0x5bf04a['conversion'][_0xff57('0x1a')]('upcast')[_0xff57('0x43')]({'view':{'name':_0xff57('0x14'),'attribute':{'id':/^\w/}},'model':(_0x1a9519,{writer:_0x3c9140})=>_0x3c9140['createElement']('$marker',{'data-name':'comment:'+_0x1a9519[_0xff57('0x3c')]('id')})}),_0x5bf04a[_0xff57('0x24')][_0xff57('0x1a')](_0xff57('0x21'))[_0xff57('0x3')]({'view':_0xff57('0x14')});}[_0xff57('0x3e')](){const _0x1fcb7d=this[_0xff57('0x3a')],_0x4048ad=_0x1fcb7d[_0xff57('0x48')][_0xff57('0x12')](_0xff57('0x3f')),_0x10306e=new Set();_0x1fcb7d[_0xff57('0x52')][_0xff57('0xa')][_0xff57('0x19')](_0x565cea=>{let _0x3fd238=!0x1;for(const {name:_0x57df4b,data:_0x411bc1}of _0x1fcb7d[_0xff57('0x52')][_0xff57('0xa')][_0xff57('0x5b')]['getChangedMarkers']()){const {group:_0x197298,id:_0x4d440e}=G(_0x57df4b);let _0x3d6ae5=_0x411bc1[_0xff57('0x11')];if(_0xff57('0x14')!==_0x197298||!_0x3d6ae5)continue;const _0x2600c7=_0xff57('0x0')===_0x3d6ae5[_0xff57('0x57')][_0xff57('0xe')];_0x2600c7||(_0x3d6ae5=J(_0x3d6ae5,_0x1fcb7d['model']),!_0x3d6ae5||_0x3d6ae5[_0xff57('0x44')](_0x411bc1[_0xff57('0x11')]))?!_0x3d6ae5||!_0x1fcb7d[_0xff57('0x52')][_0xff57('0x4a')](_0x3d6ae5)||this[_0xff57('0x4d')][_0xff57('0x4f')](_0x4d440e)&&_0x2600c7?(_0x565cea[_0xff57('0x55')](_0x57df4b),_0x3fd238=!0x0):_0x2600c7||(this[_0xff57('0x18')]?_0x10306e['add'](_0x4d440e):this['_attachThreadToMarker'](_0x4d440e)):(_0x565cea['updateMarker'](_0x57df4b,{'range':_0x3d6ae5}),_0x3fd238=!0x0);}return _0x3fd238;}),this['on']('change:isThreadsLoadingPaused',(_0x24e271,_0x150d2b,_0x3c9b39)=>{if(!_0x3c9b39&&_0x10306e['size'])for(const _0x85a335 of _0x10306e)this[_0xff57('0x16')](_0x85a335),_0x10306e[_0xff57('0x33')](_0x85a335);}),this['listenTo'](_0x1fcb7d[_0xff57('0x52')]['markers'],_0xff57('0x9'),(_0x255676,_0x887a1b,_0x3a0f34,_0x270fc7)=>{if(_0x270fc7)return;const {id:_0x16e924}=G(_0x887a1b['name']),_0x5225a1=_0x1fcb7d[_0xff57('0x48')][_0xff57('0x12')](_0xff57('0x3f'))[_0xff57('0x50')](_0x16e924);_0x10306e['delete'](_0x16e924),_0x5225a1&&!this['hasMarkerForId'](_0x16e924)&&(this['_attachedThreads']['delete'](_0x16e924),_0x4048ad[_0xff57('0x10')](_0x16e924));});}[_0xff57('0x16')](_0x3ad586){if(this['_attachedThreads'][_0xff57('0x4f')](_0x3ad586))return;this[_0xff57('0x4d')][_0xff57('0x1d')](_0x3ad586);const _0x26595f=this[_0xff57('0x3a')],_0x91a29f=_0x26595f['plugins']['get'](_0xff57('0x3f')),_0x458a6f=_0x26595f['config']['get']('collaboration.channelId'),_0x25df64=()=>{const _0x320165=this[_0xff57('0xb')](_0x3ad586);if(0x0==_0x320165['length'])return null;const _0x4a9a4d=_0x320165[_0xff57('0x4e')](_0x1e53e0=>_0x3fc495(_0x26595f[_0xff57('0x30')],_0x1e53e0));return _0x4a9a4d[_0xff57('0x5')]((_0x435c85,_0x47ad85)=>{const _0x2768c2=new _0x454123(_0x435c85),_0x15b75f=new _0x454123(_0x47ad85),_0x276f1b=_0x2768c2['top']-_0x15b75f['top'];return 0x0==_0x276f1b?_0x2768c2[_0xff57('0x17')]-_0x15b75f[_0xff57('0x17')]:_0x276f1b;}),_0x4a9a4d[0x0];};!this[_0xff57('0xb')](_0x3ad586)[0x0][_0xff57('0x38')]?_0x26595f['editing'][_0xff57('0x51')]['once'](_0xff57('0x1e'),()=>{_0x91a29f[_0xff57('0x20')]({'channelId':_0x458a6f,'threadId':_0x3ad586,'target':_0x25df64});},{'priority':_0xff57('0x1')}):_0x91a29f[_0xff57('0x2c')]({'channelId':_0x458a6f,'threadId':_0x3ad586})['then'](_0x1673ba=>{if(_0xff57('0x2e')!==_0x26595f[_0xff57('0x4')]){if(_0x1673ba)_0x1673ba[_0xff57('0x4b')](_0x25df64);else{const _0x604c1c=this[_0xff57('0xb')](_0x3ad586);_0x26595f['model'][_0xff57('0xf')](_0x2ebcb1=>{for(const _0x3f94e9 of _0x604c1c)_0x2ebcb1[_0xff57('0x55')](_0x3f94e9);});}}});}}function q(_0x422989,_0x10b24e){return _0x10b24e?_0x422989+':'+_0x10b24e:_0x422989;}function G(_0x5d21f1){const _0x16c9f6=_0x5d21f1[_0xff57('0x1f')](':');return{'group':_0x16c9f6[0x0],'id':_0x16c9f6[0x1],'part':_0x16c9f6[0x2]};}function J(_0x4907c6,_0x3b31f1){const _0x495cc6=_0x3b31f1['schema'],_0x284f37=_0x3b31f1[_0xff57('0x15')](_0x4907c6[_0xff57('0x5c')]);for(const _0x56b1ac of _0x4907c6[_0xff57('0x7')]()){const {type:_0x471e5d,item:_0x4bd54c,nextPosition:_0x4ae2c8}=_0x56b1ac;if(_0xff57('0x13')===_0x471e5d||_0x495cc6['isObject'](_0x4bd54c)){const _0x4c7d2d=_0x3b31f1['createPositionBefore'](_0x4bd54c);_0x284f37[_0xff57('0x40')]&&(_0x284f37[_0xff57('0x5c')]=_0x4c7d2d),_0x284f37[_0xff57('0x8')]=_0x4ae2c8;}}return _0x284f37[_0xff57('0x40')]?null:_0x284f37;}