@ckeditor/ckeditor5-comments 0.0.0-nightly-20230913.0 → 0.0.0-nightly-20230914.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 (42) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsarchive.js +1 -1
  18. package/src/comments/commentsarchiveui.js +1 -1
  19. package/src/comments/commentsediting.js +1 -1
  20. package/src/comments/commentsrepository.js +1 -1
  21. package/src/comments/commentsui.js +1 -1
  22. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  23. package/src/comments/integrations/importword.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  27. package/src/comments/ui/commentthreadcontroller.js +1 -1
  28. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  29. package/src/comments/ui/view/basecommentview.js +1 -1
  30. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  31. package/src/comments/ui/view/commentcontentview.js +1 -1
  32. package/src/comments/ui/view/commentinputview.js +1 -1
  33. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  34. package/src/comments/ui/view/commentslistview.js +1 -1
  35. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  36. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  37. package/src/comments/ui/view/commentthreadview.js +1 -1
  38. package/src/comments/ui/view/commentview.js +1 -1
  39. package/src/comments.js +1 -1
  40. package/src/commentsonly.js +1 -1
  41. package/src/utils/common-translations.js +1 -1
  42. package/src/utils/createmutationobserver.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "0.0.0-nightly-20230913.0",
3
+ "version": "0.0.0-nightly-20230914.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20230913.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20230913.0",
46
+ "ckeditor5": "0.0.0-nightly-20230914.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20230914.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x21ac=['destroy','offsetParent','_assertCorrectTarget','annotation-invalid-target','_target','_getNormalizedTarget','mainView','innerView','focusableElements','_id','clear','length','render','view','function','_type','nodeType','target','item','element','every','isActive','refreshVisibility','focusTracker','add','remove','stopListening','getClientRects','updateTargetRect','object','filter','targetRect','isVisible'];(function(_0x22ec2a,_0x21ac1e){const _0x182ce4=function(_0xbf128f){while(--_0xbf128f){_0x22ec2a['push'](_0x22ec2a['shift']());}};_0x182ce4(++_0x21ac1e);}(_0x21ac,0x6d));const _0x182c=function(_0x22ec2a,_0x21ac1e){_0x22ec2a=_0x22ec2a-0x0;let _0x182ce4=_0x21ac[_0x22ec2a];return _0x182ce4;};import{CKEditorError as _0x49154f,Rect as _0x2a64da,Collection as _0x4bd585,ObservableMixin as _0x17b965}from'ckeditor5/src/utils';export default class d extends _0x17b965(){constructor({view:_0x458652,target:_0xf23ccb,type:_0x324ea2,isVisible:_0x17b89f=!0x0}){super(),this[_0x182c('0x3')]=_0x458652,this[_0x182c('0x3')][_0x182c('0x9')]||this[_0x182c('0x3')][_0x182c('0x2')](),this['_type']=_0x324ea2,this[_0x182c('0x1b')]=_0xf23ccb,d[_0x182c('0x19')](this[_0x182c('0x1c')]()),this[_0x182c('0x1f')]=new _0x4bd585([this[_0x182c('0x3')][_0x182c('0x9')]],{'idProperty':_0x182c('0x20')}),this[_0x182c('0x1f')]['on'](_0x182c('0xe'),(_0x299b19,_0x89d6a8)=>{this[_0x182c('0x3')][_0x182c('0xd')][_0x182c('0xe')](_0x89d6a8);}),this['focusableElements']['on'](_0x182c('0xf'),(_0x3b03cc,_0x4eacd5)=>{this[_0x182c('0x3')][_0x182c('0xd')][_0x182c('0xf')](_0x4eacd5);}),this['set'](_0x182c('0x16'),_0x17b89f);}get['type'](){return _0x182c('0x4')==typeof this[_0x182c('0x5')]?this[_0x182c('0x5')]():this[_0x182c('0x5')];}get[_0x182c('0x1e')](){return this[_0x182c('0x3')]['mainView'];}get[_0x182c('0x7')](){const _0x3e0eb5=this['_getNormalizedTarget']();return d[_0x182c('0x19')](_0x3e0eb5),_0x3e0eb5;}get['targetRect'](){const _0x11cb35=this[_0x182c('0x7')];if(null===_0x11cb35)return null;if(_0x11cb35 instanceof _0x2a64da)return _0x11cb35;const _0x1d34e9=_0x11cb35[_0x182c('0x14')](_0x38c125=>function(_0xd98c13){const _0x2616d9=_0xd98c13[_0x182c('0x18')];if(_0x2616d9)return!0x0;const _0x2b3410=_0xd98c13[_0x182c('0x11')]()[_0x182c('0x8')](0x0);return!!_0x2b3410;}(_0x38c125));return 0x0===_0x1d34e9[_0x182c('0x1')]?null:new _0x2a64da(_0x1d34e9[0x0][_0x182c('0x11')]()['item'](0x0));}get['isActive'](){return this[_0x182c('0x3')]['isActive'];}set[_0x182c('0xb')](_0x4cc26b){this[_0x182c('0x3')]['isActive']=_0x4cc26b,this[_0x182c('0x3')][_0x182c('0x1d')][_0x182c('0xb')]=_0x4cc26b;}[_0x182c('0x12')](){this[_0x182c('0x3')][_0x182c('0x15')]=this[_0x182c('0x15')];}[_0x182c('0x17')](){this['focusableElements'][_0x182c('0x10')](),this[_0x182c('0x1f')][_0x182c('0x0')](),this[_0x182c('0x10')]();}[_0x182c('0xc')](){this[_0x182c('0x16')]=!!this[_0x182c('0x15')];}static['_assertCorrectTarget'](_0x1f7080){if(!(null===_0x1f7080||_0x1f7080 instanceof _0x2a64da||Array['isArray'](_0x1f7080)&&_0x1f7080[_0x182c('0xa')](_0x12873d=>y(_0x12873d))))throw new _0x49154f(_0x182c('0x1a'),null,{'target':_0x1f7080});}[_0x182c('0x1c')](){const _0x41daf9='function'==typeof this[_0x182c('0x1b')]?this[_0x182c('0x1b')]():this['_target'];return y(_0x41daf9)?[_0x41daf9]:_0x41daf9;}}function y(_0x386846){return null!==_0x386846&&_0x182c('0x13')==typeof _0x386846&&_0x182c('0x6')in _0x386846&&0x1===_0x386846[_0x182c('0x6')];}
23
+ const _0x10a0=['mainView','_assertCorrectTarget','remove','add','innerView','object','isArray','_type','target','offsetParent','view','_target','focusableElements','item','clear','focusTracker','stopListening','targetRect','function','nodeType','getClientRects','_id','isActive','isVisible','_getNormalizedTarget','filter','length','destroy','render','annotation-invalid-target'];(function(_0x3908e1,_0x10a0d6){const _0x340f51=function(_0x15b649){while(--_0x15b649){_0x3908e1['push'](_0x3908e1['shift']());}};_0x340f51(++_0x10a0d6);}(_0x10a0,0x153));const _0x340f=function(_0x3908e1,_0x10a0d6){_0x3908e1=_0x3908e1-0x0;let _0x340f51=_0x10a0[_0x3908e1];return _0x340f51;};import{CKEditorError as _0x2d63cd,Rect as _0x5f0483,Collection as _0x11c5e7,ObservableMixin as _0x4784fe}from'ckeditor5/src/utils';export default class d extends _0x4784fe(){constructor({view:_0x438b12,target:_0x1398bd,type:_0x20dff4,isVisible:_0x5b9c2e=!0x0}){super(),this[_0x340f('0x1')]=_0x438b12,this[_0x340f('0x1')]['element']||this[_0x340f('0x1')][_0x340f('0x13')](),this[_0x340f('0x1c')]=_0x20dff4,this['_target']=_0x1398bd,d['_assertCorrectTarget'](this['_getNormalizedTarget']()),this[_0x340f('0x3')]=new _0x11c5e7([this['view']['element']],{'idProperty':_0x340f('0xc')}),this['focusableElements']['on'](_0x340f('0x18'),(_0xcb3246,_0xcb289a)=>{this[_0x340f('0x1')][_0x340f('0x6')][_0x340f('0x18')](_0xcb289a);}),this['focusableElements']['on'](_0x340f('0x17'),(_0x590fd1,_0x2611ff)=>{this[_0x340f('0x1')][_0x340f('0x6')][_0x340f('0x17')](_0x2611ff);}),this['set']('isVisible',_0x5b9c2e);}get['type'](){return _0x340f('0x9')==typeof this['_type']?this[_0x340f('0x1c')]():this['_type'];}get[_0x340f('0x19')](){return this[_0x340f('0x1')][_0x340f('0x15')];}get[_0x340f('0x1d')](){const _0x56e0e2=this[_0x340f('0xf')]();return d[_0x340f('0x16')](_0x56e0e2),_0x56e0e2;}get['targetRect'](){const _0x18b381=this[_0x340f('0x1d')];if(null===_0x18b381)return null;if(_0x18b381 instanceof _0x5f0483)return _0x18b381;const _0x4099a2=_0x18b381[_0x340f('0x10')](_0x4767a1=>function(_0x154f50){const _0x5004cc=_0x154f50[_0x340f('0x0')];if(_0x5004cc)return!0x0;const _0x4a5113=_0x154f50[_0x340f('0xb')]()[_0x340f('0x4')](0x0);return!!_0x4a5113;}(_0x4767a1));return 0x0===_0x4099a2[_0x340f('0x11')]?null:new _0x5f0483(_0x4099a2[0x0]['getClientRects']()['item'](0x0));}get[_0x340f('0xd')](){return this[_0x340f('0x1')]['isActive'];}set[_0x340f('0xd')](_0x1ae726){this[_0x340f('0x1')][_0x340f('0xd')]=_0x1ae726,this[_0x340f('0x1')][_0x340f('0x15')][_0x340f('0xd')]=_0x1ae726;}['updateTargetRect'](){this[_0x340f('0x1')][_0x340f('0x8')]=this[_0x340f('0x8')];}[_0x340f('0x12')](){this[_0x340f('0x3')][_0x340f('0x7')](),this['focusableElements'][_0x340f('0x5')](),this['stopListening']();}['refreshVisibility'](){this[_0x340f('0xe')]=!!this[_0x340f('0x8')];}static[_0x340f('0x16')](_0x58a181){if(!(null===_0x58a181||_0x58a181 instanceof _0x5f0483||Array[_0x340f('0x1b')](_0x58a181)&&_0x58a181['every'](_0x2e22c4=>y(_0x2e22c4))))throw new _0x2d63cd(_0x340f('0x14'),null,{'target':_0x58a181});}['_getNormalizedTarget'](){const _0x1cfefb=_0x340f('0x9')==typeof this[_0x340f('0x2')]?this[_0x340f('0x2')]():this[_0x340f('0x2')];return y(_0x1cfefb)?[_0x1cfefb]:_0x1cfefb;}}function y(_0x5d9cbc){return null!==_0x5d9cbc&&_0x340f('0x1a')==typeof _0x5d9cbc&&_0x340f('0xa')in _0x5d9cbc&&0x1===_0x5d9cbc[_0x340f('0xa')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x100c=['clear','targetRect','length','view','get','has','innerView','top','change:isFocused','focusableElements','isFocused','blur','_sort','left','focusTracker','_focusTracker','_innerViewToAnnotation','from','getByView','_getOrderInContent','set','refreshPositioning','annotationcollection-duplicated-item','delete','annotationcollection-not-existing-item','fire','stopListening','destroy','getByInnerView','_viewToAnnotation','updateTargetRect','remove','add','listenTo'];(function(_0x30afbe,_0x100c1e){const _0x334c3e=function(_0x423597){while(--_0x423597){_0x30afbe['push'](_0x30afbe['shift']());}};_0x334c3e(++_0x100c1e);}(_0x100c,0x130));const _0x334c=function(_0x30afbe,_0x100c1e){_0x30afbe=_0x30afbe-0x0;let _0x334c3e=_0x100c[_0x30afbe];return _0x334c3e;};import{CKEditorError as _0xfa9830,Collection as _0x3a3d87,FocusTracker as _0x42a161}from'ckeditor5/src/utils';export default class x extends _0x3a3d87{constructor(_0x514bb3=[]){super(),this[_0x334c('0x12')]=new Map(),this['_viewToAnnotation']=new Map(),this['_focusTracker']=new _0x42a161(),this['_focusTracker']['on']('change:isFocused',(_0x16f219,_0x4170b7,_0xc8eab0)=>{_0xc8eab0||this[_0x334c('0x1b')](_0x334c('0xd'));});for(const _0x375a94 of _0x514bb3)this[_0x334c('0x0')](_0x375a94);}get[_0x334c('0xc')](){return this[_0x334c('0x11')]['isFocused'];}['add'](_0x1fd4f7){if(this['has'](_0x1fd4f7))throw new _0xfa9830(_0x334c('0x18'),null);this['_innerViewToAnnotation'][_0x334c('0x16')](_0x1fd4f7[_0x334c('0x8')],_0x1fd4f7),this[_0x334c('0x1f')][_0x334c('0x16')](_0x1fd4f7[_0x334c('0x5')],_0x1fd4f7);for(const _0x56616a of _0x1fd4f7[_0x334c('0xb')])this[_0x334c('0x11')][_0x334c('0x0')](_0x56616a);this[_0x334c('0x1')](_0x1fd4f7[_0x334c('0xb')],_0x334c('0x0'),(_0x2eadcd,_0x3737df)=>{this[_0x334c('0x11')][_0x334c('0x0')](_0x3737df);}),this['listenTo'](_0x1fd4f7[_0x334c('0xb')],'remove',(_0x3aec68,_0x2e8035)=>{this[_0x334c('0x11')][_0x334c('0x21')](_0x2e8035);}),this[_0x334c('0x1')](_0x1fd4f7[_0x334c('0x5')][_0x334c('0x10')],_0x334c('0xa'),(_0x4de351,_0x42f8b5,_0x3909ac)=>{_0x3909ac&&this[_0x334c('0x1b')]('focus',_0x1fd4f7);}),_0x1fd4f7[_0x334c('0x20')]();const _0x10a026=this[_0x334c('0x15')](_0x1fd4f7[_0x334c('0x5')][_0x334c('0x3')]);return super['add'](_0x1fd4f7,_0x10a026);}[_0x334c('0x21')](_0x5b270f){if(!this[_0x334c('0x7')](_0x5b270f))throw new _0xfa9830(_0x334c('0x1a'),null);this[_0x334c('0x1c')](_0x5b270f[_0x334c('0x5')][_0x334c('0x10')]),this[_0x334c('0x1c')](_0x5b270f[_0x334c('0xb')]);for(const _0x24fd67 of _0x5b270f[_0x334c('0xb')])this[_0x334c('0x11')][_0x334c('0x21')](_0x24fd67);return this[_0x334c('0x1f')][_0x334c('0x19')](_0x5b270f['view']),this[_0x334c('0x12')][_0x334c('0x19')](_0x5b270f[_0x334c('0x8')]),super['remove'](_0x5b270f);}[_0x334c('0x1e')](_0x22129e){return this[_0x334c('0x12')][_0x334c('0x6')](_0x22129e);}[_0x334c('0x14')](_0x108a64){return this[_0x334c('0x1f')]['get'](_0x108a64);}[_0x334c('0x1d')](){super[_0x334c('0x2')](),this[_0x334c('0x1c')](),this[_0x334c('0x12')][_0x334c('0x2')](),this['_viewToAnnotation']['clear'](),this[_0x334c('0x11')][_0x334c('0x1d')]();}[_0x334c('0x17')](){for(const _0x49c353 of this)_0x49c353[_0x334c('0x20')]();this[_0x334c('0xe')]();}[_0x334c('0xe')](){const _0x50b71e=Array[_0x334c('0x13')](this)['sort']((_0x4c2e6e,_0x1137df)=>v(_0x4c2e6e['view']['targetRect'],_0x1137df[_0x334c('0x5')]['targetRect']));for(let _0x4c6e17=_0x50b71e[_0x334c('0x4')]-0x1;_0x4c6e17>0x0;_0x4c6e17--){const _0x42f5f6=_0x50b71e[_0x4c6e17];_0x4c6e17!==this['getIndex'](_0x42f5f6)&&(this[_0x334c('0x21')](_0x42f5f6),this[_0x334c('0x0')](_0x42f5f6));}}['_getOrderInContent'](_0x30ea12){let _0x45bf8b=0x0;if(!_0x30ea12)return this[_0x334c('0x4')];for(const _0x563529 of this){const _0x3d0b33=_0x563529[_0x334c('0x5')]['targetRect'];if(_0x3d0b33){if(v(_0x30ea12,_0x3d0b33)<0x0)return _0x45bf8b;_0x45bf8b++;}}return _0x45bf8b;}}export function bindAnnotationCollections({source:_0xa448cb,target:_0x54296e,filter:_0x294834}){for(const _0x251e54 of _0xa448cb)_0x294834(_0x251e54)&&_0x54296e[_0x334c('0x0')](_0x251e54);_0x54296e[_0x334c('0x1')](_0xa448cb,_0x334c('0x0'),(_0x38de04,_0x28c267)=>{_0x294834(_0x28c267)&&_0x54296e[_0x334c('0x0')](_0x28c267);}),_0x54296e[_0x334c('0x1')](_0xa448cb,_0x334c('0x21'),(_0x29735c,_0x3990b3)=>{_0x54296e[_0x334c('0x7')](_0x3990b3)&&_0x54296e[_0x334c('0x21')](_0x3990b3);});}function v(_0x2b4997,_0x24a828){if(null===_0x2b4997&&null===_0x24a828)return 0x0;if(null===_0x2b4997)return-0x1;if(null===_0x24a828)return 0x1;const _0x11bfd2=_0x2b4997[_0x334c('0x9')]-_0x24a828[_0x334c('0x9')];return 0x0==_0x11bfd2?_0x2b4997['left']-_0x24a828[_0x334c('0xf')]:_0x11bfd2;}
23
+ const _0x1e15=['change:isFocused','clear','annotationcollection-duplicated-item','destroy','focusableElements','_sort','innerView','_focusTracker','getIndex','getByInnerView','get','stopListening','delete','focus','remove','_innerViewToAnnotation','add','view','left','listenTo','_getOrderInContent','set','top','fire','targetRect','length','updateTargetRect','from','_viewToAnnotation','has','focusTracker','blur'];(function(_0x47e122,_0x1e1526){const _0xb74c54=function(_0x28da7d){while(--_0x28da7d){_0x47e122['push'](_0x47e122['shift']());}};_0xb74c54(++_0x1e1526);}(_0x1e15,0x192));const _0xb74c=function(_0x47e122,_0x1e1526){_0x47e122=_0x47e122-0x0;let _0xb74c54=_0x1e15[_0x47e122];return _0xb74c54;};import{CKEditorError as _0x3542b7,Collection as _0x5516e7,FocusTracker as _0x527df9}from'ckeditor5/src/utils';export default class x extends _0x5516e7{constructor(_0x20ab68=[]){super(),this[_0xb74c('0x1d')]=new Map(),this['_viewToAnnotation']=new Map(),this[_0xb74c('0x15')]=new _0x527df9(),this[_0xb74c('0x15')]['on'](_0xb74c('0xe'),(_0xb17e40,_0x370848,_0x119518)=>{_0x119518||this[_0xb74c('0x5')](_0xb74c('0xd'));});for(const _0x2c8334 of _0x20ab68)this[_0xb74c('0x1e')](_0x2c8334);}get['isFocused'](){return this[_0xb74c('0x15')]['isFocused'];}['add'](_0x3bf299){if(this['has'](_0x3bf299))throw new _0x3542b7(_0xb74c('0x10'),null);this[_0xb74c('0x1d')][_0xb74c('0x3')](_0x3bf299[_0xb74c('0x14')],_0x3bf299),this['_viewToAnnotation'][_0xb74c('0x3')](_0x3bf299[_0xb74c('0x1f')],_0x3bf299);for(const _0x1ca38f of _0x3bf299[_0xb74c('0x12')])this[_0xb74c('0x15')][_0xb74c('0x1e')](_0x1ca38f);this[_0xb74c('0x1')](_0x3bf299[_0xb74c('0x12')],_0xb74c('0x1e'),(_0x35feb2,_0xdc8ae6)=>{this['_focusTracker'][_0xb74c('0x1e')](_0xdc8ae6);}),this[_0xb74c('0x1')](_0x3bf299[_0xb74c('0x12')],_0xb74c('0x1c'),(_0x23a293,_0x2b31d8)=>{this['_focusTracker']['remove'](_0x2b31d8);}),this[_0xb74c('0x1')](_0x3bf299[_0xb74c('0x1f')][_0xb74c('0xc')],_0xb74c('0xe'),(_0x1eb1dc,_0x22b3a4,_0x4eef30)=>{_0x4eef30&&this['fire'](_0xb74c('0x1b'),_0x3bf299);}),_0x3bf299[_0xb74c('0x8')]();const _0x5a0231=this['_getOrderInContent'](_0x3bf299[_0xb74c('0x1f')][_0xb74c('0x6')]);return super[_0xb74c('0x1e')](_0x3bf299,_0x5a0231);}['remove'](_0xee5b3d){if(!this[_0xb74c('0xb')](_0xee5b3d))throw new _0x3542b7('annotationcollection-not-existing-item',null);this[_0xb74c('0x19')](_0xee5b3d[_0xb74c('0x1f')][_0xb74c('0xc')]),this['stopListening'](_0xee5b3d[_0xb74c('0x12')]);for(const _0x609a4e of _0xee5b3d[_0xb74c('0x12')])this[_0xb74c('0x15')]['remove'](_0x609a4e);return this[_0xb74c('0xa')][_0xb74c('0x1a')](_0xee5b3d[_0xb74c('0x1f')]),this[_0xb74c('0x1d')]['delete'](_0xee5b3d['innerView']),super[_0xb74c('0x1c')](_0xee5b3d);}[_0xb74c('0x17')](_0x39c965){return this[_0xb74c('0x1d')][_0xb74c('0x18')](_0x39c965);}['getByView'](_0x339e12){return this[_0xb74c('0xa')]['get'](_0x339e12);}['destroy'](){super[_0xb74c('0xf')](),this['stopListening'](),this[_0xb74c('0x1d')][_0xb74c('0xf')](),this[_0xb74c('0xa')][_0xb74c('0xf')](),this[_0xb74c('0x15')][_0xb74c('0x11')]();}['refreshPositioning'](){for(const _0x134b23 of this)_0x134b23['updateTargetRect']();this[_0xb74c('0x13')]();}['_sort'](){const _0xb6998a=Array[_0xb74c('0x9')](this)['sort']((_0x14e040,_0x7d0f77)=>v(_0x14e040['view'][_0xb74c('0x6')],_0x7d0f77[_0xb74c('0x1f')][_0xb74c('0x6')]));for(let _0x1b702d=_0xb6998a[_0xb74c('0x7')]-0x1;_0x1b702d>0x0;_0x1b702d--){const _0x21ed0b=_0xb6998a[_0x1b702d];_0x1b702d!==this[_0xb74c('0x16')](_0x21ed0b)&&(this[_0xb74c('0x1c')](_0x21ed0b),this[_0xb74c('0x1e')](_0x21ed0b));}}[_0xb74c('0x2')](_0x663da2){let _0x89982=0x0;if(!_0x663da2)return this['length'];for(const _0x3e416b of this){const _0xcec191=_0x3e416b[_0xb74c('0x1f')]['targetRect'];if(_0xcec191){if(v(_0x663da2,_0xcec191)<0x0)return _0x89982;_0x89982++;}}return _0x89982;}}export function bindAnnotationCollections({source:_0x4d610b,target:_0x8f7e51,filter:_0x4b4161}){for(const _0x4966bc of _0x4d610b)_0x4b4161(_0x4966bc)&&_0x8f7e51[_0xb74c('0x1e')](_0x4966bc);_0x8f7e51['listenTo'](_0x4d610b,_0xb74c('0x1e'),(_0x31a0b6,_0xab00da)=>{_0x4b4161(_0xab00da)&&_0x8f7e51[_0xb74c('0x1e')](_0xab00da);}),_0x8f7e51['listenTo'](_0x4d610b,_0xb74c('0x1c'),(_0x54a4e0,_0x23adeb)=>{_0x8f7e51[_0xb74c('0xb')](_0x23adeb)&&_0x8f7e51[_0xb74c('0x1c')](_0x23adeb);});}function v(_0xa77edf,_0x153ec1){if(null===_0xa77edf&&null===_0x153ec1)return 0x0;if(null===_0xa77edf)return-0x1;if(null===_0x153ec1)return 0x1;const _0x464566=_0xa77edf[_0xb74c('0x4')]-_0x153ec1[_0xb74c('0x4')];return 0x0==_0x464566?_0xa77edf[_0xb74c('0x0')]-_0x153ec1[_0xb74c('0x0')]:_0x464566;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x141c=['activeAnnotations','fire','element','getByInnerView','set','Annotations','view','_removeActiveAnnotation','createAnnotationView','listenTo','isVisible','_activateAnnotation','source','focusTracker','_deactivateAllAnnotations','change:isVisible','pluginName','collection','destroy','_visibleAnnotations','refreshVisibility','delete','createAnnotation','refreshPositioning','add','deactivateAll','remove','_bindAnnotationsToVisibleAnnotations','stopListening','has'];(function(_0x404871,_0x141c56){const _0x5d6e4b=function(_0x3fc547){while(--_0x3fc547){_0x404871['push'](_0x404871['shift']());}};_0x5d6e4b(++_0x141c56);}(_0x141c,0x172));const _0x5d6e=function(_0x404871,_0x141c56){_0x404871=_0x404871-0x0;let _0x5d6e4b=_0x141c[_0x404871];return _0x5d6e4b;};import{ContextPlugin as _0x24a870}from'ckeditor5/src/core';import _0x1ab0ed from'./annotation';import _0x4b74bf from'./annotationcollection';import _0x2dfc6e from'./view/annotationview';export default class b extends _0x24a870{static get[_0x5d6e('0x6')](){return _0x5d6e('0x19');}constructor(_0x2c425f){super(_0x2c425f),this[_0x5d6e('0x7')]=new _0x4b74bf(),this[_0x5d6e('0x9')]=new _0x4b74bf(),this[_0x5d6e('0x18')](_0x5d6e('0x14'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x5d6e('0xe')](_0x14aa53){this['collection'][_0x5d6e('0xe')](_0x14aa53);}[_0x5d6e('0x10')](_0x245a2b){this[_0x5d6e('0x7')]['remove'](_0x245a2b),_0x245a2b[_0x5d6e('0x8')]();}[_0x5d6e('0xa')](){for(const _0xaa0d0a of this[_0x5d6e('0x7')])_0xaa0d0a['refreshVisibility']();}[_0x5d6e('0xd')](){this[_0x5d6e('0x9')][_0x5d6e('0xd')]();}[_0x5d6e('0x17')](_0x594c94){return this['collection']['getByInnerView'](_0x594c94);}[_0x5d6e('0xf')](){this[_0x5d6e('0x15')](_0x5d6e('0x4'));}['destroy'](){for(const _0x3be715 of this[_0x5d6e('0x7')])_0x3be715['destroy']();this[_0x5d6e('0x9')][_0x5d6e('0x8')](),this['collection'][_0x5d6e('0x8')](),super['destroy']();}['activate'](_0x5b7c69){this[_0x5d6e('0x15')](_0x5d6e('0x1'),_0x5b7c69);}[_0x5d6e('0xc')](_0x525894){return new _0x1ab0ed(_0x525894);}[_0x5d6e('0x1c')](_0x1d34c5,_0xe66999){return new _0x2dfc6e(_0x1d34c5,_0xe66999);}['_addActiveAnnotation'](_0x57305f){const _0xe40f38=new Set(this[_0x5d6e('0x14')]);_0xe40f38[_0x5d6e('0xe')](_0x57305f),this[_0x5d6e('0x14')]=_0xe40f38;}[_0x5d6e('0x1b')](_0x5b3b0e){const _0x2f4bba=new Set(this[_0x5d6e('0x14')]);_0x2f4bba[_0x5d6e('0xb')](_0x5b3b0e),this[_0x5d6e('0x14')]=_0x2f4bba;}[_0x5d6e('0x11')](){const _0x1eb22e=this[_0x5d6e('0x7')],_0x540af9=this[_0x5d6e('0x9')];function _0x10eae3(_0x6b222f){const _0x4450ed=_0x6b222f[_0x5d6e('0x2')];_0x4450ed[_0x5d6e('0x0')]&&!_0x540af9['has'](_0x4450ed)?_0x540af9[_0x5d6e('0xe')](_0x4450ed):!_0x4450ed['isVisible']&&_0x540af9[_0x5d6e('0x13')](_0x4450ed)&&_0x540af9[_0x5d6e('0x10')](_0x4450ed),_0x4450ed[_0x5d6e('0x1a')][_0x5d6e('0x3')][_0x5d6e('0x10')](_0x4450ed['view'][_0x5d6e('0x16')]),_0x4450ed[_0x5d6e('0x1a')][_0x5d6e('0x3')][_0x5d6e('0xe')](_0x4450ed[_0x5d6e('0x1a')][_0x5d6e('0x16')]);}this[_0x5d6e('0x1d')](_0x1eb22e,_0x5d6e('0xe'),(_0x1a3e99,_0x26121c)=>{_0x26121c[_0x5d6e('0x0')]&&_0x540af9[_0x5d6e('0xe')](_0x26121c),this[_0x5d6e('0x1d')](_0x26121c,_0x5d6e('0x5'),_0x10eae3);}),this[_0x5d6e('0x1d')](_0x1eb22e,_0x5d6e('0x10'),(_0x329e6b,_0x3771db)=>{_0x540af9['has'](_0x3771db)&&_0x540af9[_0x5d6e('0x10')](_0x3771db),this[_0x5d6e('0x12')](_0x3771db,_0x5d6e('0x5'),_0x10eae3);});}}
23
+ const _0x41ee=['collection','_deactivateAllAnnotations','_addActiveAnnotation','createAnnotation','delete','_activateAnnotation','_removeActiveAnnotation','_bindAnnotationsToVisibleAnnotations','add','view','source','remove','stopListening','element','_visibleAnnotations','set','change:isVisible','pluginName','isVisible','has','focusTracker','createAnnotationView','Annotations','refreshVisibility','activeAnnotations','listenTo','getByInnerView','destroy'];(function(_0x29ee23,_0x41ee83){const _0x20bdb6=function(_0xdf67f1){while(--_0xdf67f1){_0x29ee23['push'](_0x29ee23['shift']());}};_0x20bdb6(++_0x41ee83);}(_0x41ee,0x114));const _0x20bd=function(_0x29ee23,_0x41ee83){_0x29ee23=_0x29ee23-0x0;let _0x20bdb6=_0x41ee[_0x29ee23];return _0x20bdb6;};import{ContextPlugin as _0x2ef794}from'ckeditor5/src/core';import _0x725e28 from'./annotation';import _0x2aa093 from'./annotationcollection';import _0x2db3aa from'./view/annotationview';export default class b extends _0x2ef794{static get[_0x20bd('0x15')](){return _0x20bd('0x1a');}constructor(_0x47dae7){super(_0x47dae7),this['collection']=new _0x2aa093(),this['_visibleAnnotations']=new _0x2aa093(),this[_0x20bd('0x13')](_0x20bd('0x0'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x20bd('0xc')](_0x2131f3){this[_0x20bd('0x4')][_0x20bd('0xc')](_0x2131f3);}[_0x20bd('0xf')](_0x2947a1){this[_0x20bd('0x4')][_0x20bd('0xf')](_0x2947a1),_0x2947a1[_0x20bd('0x3')]();}[_0x20bd('0x1b')](){for(const _0x2e8d8e of this[_0x20bd('0x4')])_0x2e8d8e[_0x20bd('0x1b')]();}['refreshPositioning'](){this[_0x20bd('0x12')]['refreshPositioning']();}[_0x20bd('0x2')](_0x5086c9){return this['collection']['getByInnerView'](_0x5086c9);}['deactivateAll'](){this['fire'](_0x20bd('0x5'));}[_0x20bd('0x3')](){for(const _0x3ad00c of this[_0x20bd('0x4')])_0x3ad00c[_0x20bd('0x3')]();this[_0x20bd('0x12')]['destroy'](),this[_0x20bd('0x4')][_0x20bd('0x3')](),super[_0x20bd('0x3')]();}['activate'](_0x41c482){this['fire'](_0x20bd('0x9'),_0x41c482);}[_0x20bd('0x7')](_0x501945){return new _0x725e28(_0x501945);}[_0x20bd('0x19')](_0x4600f0,_0x3ca06a){return new _0x2db3aa(_0x4600f0,_0x3ca06a);}[_0x20bd('0x6')](_0x5a082d){const _0x54e37f=new Set(this[_0x20bd('0x0')]);_0x54e37f[_0x20bd('0xc')](_0x5a082d),this[_0x20bd('0x0')]=_0x54e37f;}[_0x20bd('0xa')](_0x1de9b9){const _0x27689b=new Set(this[_0x20bd('0x0')]);_0x27689b[_0x20bd('0x8')](_0x1de9b9),this[_0x20bd('0x0')]=_0x27689b;}[_0x20bd('0xb')](){const _0x13c479=this[_0x20bd('0x4')],_0x6c152a=this[_0x20bd('0x12')];function _0x411310(_0x18d48c){const _0xcdccf0=_0x18d48c[_0x20bd('0xe')];_0xcdccf0[_0x20bd('0x16')]&&!_0x6c152a[_0x20bd('0x17')](_0xcdccf0)?_0x6c152a[_0x20bd('0xc')](_0xcdccf0):!_0xcdccf0[_0x20bd('0x16')]&&_0x6c152a[_0x20bd('0x17')](_0xcdccf0)&&_0x6c152a[_0x20bd('0xf')](_0xcdccf0),_0xcdccf0['view'][_0x20bd('0x18')][_0x20bd('0xf')](_0xcdccf0[_0x20bd('0xd')][_0x20bd('0x11')]),_0xcdccf0['view'][_0x20bd('0x18')]['add'](_0xcdccf0[_0x20bd('0xd')][_0x20bd('0x11')]);}this[_0x20bd('0x1')](_0x13c479,_0x20bd('0xc'),(_0x138afc,_0x4c3358)=>{_0x4c3358[_0x20bd('0x16')]&&_0x6c152a[_0x20bd('0xc')](_0x4c3358),this[_0x20bd('0x1')](_0x4c3358,_0x20bd('0x14'),_0x411310);}),this[_0x20bd('0x1')](_0x13c479,'remove',(_0x23dce6,_0x56e791)=>{_0x6c152a[_0x20bd('0x17')](_0x56e791)&&_0x6c152a[_0x20bd('0xf')](_0x56e791),this[_0x20bd('0x10')](_0x56e791,'change:isVisible',_0x411310);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x18ce=['_uis','_activateAnnotation','annotationsuis-annotation-mismatch','refilterAnnotations','plugins','register','function','detach','push','set','activate','annotationsuis-register-already-registered','AnnotationsUIs','has','_visibleAnnotations','type','remove','stopListening','change:activeAnnotation','from','context','_assertAnnotationDoesNotBelongToMultipleUIs','deactivateAll','destroy','add','delete','filter','_removeActiveAnnotation','pluginName','annotationsuis-register-invalid-interface','switchTo','_uisData','listenTo','find','collection','size','activeUIs','deactivate','setActiveAnnotation','get','attach','hasActive','annotationsuis-missing-ui','isActive'];(function(_0x3ceec7,_0x18ceff){const _0x4fc3df=function(_0x1b179e){while(--_0x1b179e){_0x3ceec7['push'](_0x3ceec7['shift']());}};_0x4fc3df(++_0x18ceff);}(_0x18ce,0x164));const _0x4fc3=function(_0x3ceec7,_0x18ceff){_0x3ceec7=_0x3ceec7-0x0;let _0x4fc3df=_0x18ce[_0x3ceec7];return _0x4fc3df;};import{ContextPlugin as _0x3dd35d}from'ckeditor5/src/core';import{CKEditorError as _0xef07ad}from'ckeditor5/src/utils';import _0x55e160,{bindAnnotationCollections as _0x539ac7}from'./annotationcollection';import _0x332424 from'./annotations';export default class M extends _0x3dd35d{static get['requires'](){return[_0x332424];}static get[_0x4fc3('0x18')](){return _0x4fc3('0x8');}constructor(_0x2abbe3){super(_0x2abbe3),this['activeUIs']=new Set(),this[_0x4fc3('0x28')]=new Map(),this[_0x4fc3('0x1b')]=new Map();}['init'](){const _0x2a7f77=this[_0x4fc3('0x10')][_0x4fc3('0x0')]['get'](_0x332424);this[_0x4fc3('0x1c')](_0x2a7f77,_0x4fc3('0x29'),(_0x34d851,_0x17fe9a)=>{for(const _0x260cfd of this[_0x4fc3('0x20')]){const _0x58896b=this[_0x4fc3('0x28')][_0x4fc3('0x23')](_0x260cfd);(0x0,this['_uisData']['get'](_0x260cfd)[_0x4fc3('0x16')])(_0x17fe9a)&&_0x58896b['setActiveAnnotation'](_0x17fe9a);}}),this['listenTo'](_0x2a7f77,'_deactivateAllAnnotations',()=>{for(const _0x324b12 of this[_0x4fc3('0x20')]){this[_0x4fc3('0x28')][_0x4fc3('0x23')](_0x324b12)[_0x4fc3('0x22')](null);}}),this[_0x4fc3('0x1c')](_0x2a7f77[_0x4fc3('0xa')],'add',(_0x1d661b,_0xf2f212)=>{this[_0x4fc3('0x11')](_0xf2f212);});}[_0x4fc3('0x25')](){return this['activeUIs'][_0x4fc3('0x1f')]>0x0;}[_0x4fc3('0x27')](_0x896f77){return this['activeUIs']['has'](_0x896f77);}['activate'](_0x18a437,_0x4fb17f=()=>!0x0){const _0x39aa6b=this[_0x4fc3('0x10')]['plugins']['get'](_0x332424);if(!this['_uis'][_0x4fc3('0x9')](_0x18a437))throw new _0xef07ad(_0x4fc3('0x26'),this,{'uiName':_0x18a437});this[_0x4fc3('0x27')](_0x18a437)&&this[_0x4fc3('0x21')](_0x18a437),this['activeUIs'][_0x4fc3('0x14')](_0x18a437);const _0x5cb932=new _0x55e160(),_0x399b41=_0x39aa6b['_visibleAnnotations'];_0x539ac7({'source':_0x399b41,'target':_0x5cb932,'filter':_0x4fb17f}),this[_0x4fc3('0x1b')][_0x4fc3('0x5')](_0x18a437,{'collection':_0x5cb932,'filter':_0x4fb17f});const _0x44c05c=this[_0x4fc3('0x28')][_0x4fc3('0x23')](_0x18a437);_0x44c05c[_0x4fc3('0x24')](_0x5cb932),this[_0x4fc3('0x1c')](_0x44c05c,_0x4fc3('0xe'),(_0x457512,_0x21d469,_0x41d37e,_0x3da762)=>{_0x3da762&&_0x39aa6b[_0x4fc3('0x17')](_0x3da762),_0x41d37e&&_0x39aa6b['_addActiveAnnotation'](_0x41d37e);});}['deactivate'](_0xd71982){if(this[_0x4fc3('0x20')][_0x4fc3('0x15')](_0xd71982),!this['_uis'][_0x4fc3('0x9')](_0xd71982))throw new _0xef07ad('annotationsuis-missing-ui',this,{'uiName':_0xd71982});const _0x1d268f=this[_0x4fc3('0x28')][_0x4fc3('0x23')](_0xd71982);_0x1d268f['detach'](),this[_0x4fc3('0xd')](_0x1d268f),this[_0x4fc3('0x1b')][_0x4fc3('0x23')](_0xd71982)[_0x4fc3('0x1e')]['destroy'](),this[_0x4fc3('0x1b')][_0x4fc3('0x15')](_0xd71982);}[_0x4fc3('0x1a')](_0x13ce6e){if(!this[_0x4fc3('0x28')][_0x4fc3('0x9')](_0x13ce6e))throw new _0xef07ad('annotationsuis-missing-ui',this,{'uiName':_0x13ce6e});const _0x503028=this['context'][_0x4fc3('0x0')][_0x4fc3('0x23')](_0x332424),_0x24fed1=Array[_0x4fc3('0xf')](_0x503028['activeAnnotations'])[0x0]||null;this[_0x4fc3('0x12')](),this[_0x4fc3('0x6')](_0x13ce6e);const _0x28db9b=this[_0x4fc3('0x28')][_0x4fc3('0x23')](_0x13ce6e);_0x28db9b[_0x4fc3('0x22')](_0x24fed1),_0x28db9b['_setSelectedAnnotations']&&_0x24fed1&&_0x28db9b['_setSelectedAnnotations']([_0x24fed1]);}['deactivateAll'](){for(const _0x4bec22 of this[_0x4fc3('0x20')])this[_0x4fc3('0x21')](_0x4bec22);}[_0x4fc3('0x1')](_0x468ab6,_0x5509f5){if(this[_0x4fc3('0x28')]['has'](_0x468ab6))throw new _0xef07ad(_0x4fc3('0x7'));if(_0x4fc3('0x2')!=typeof _0x5509f5['attach']||'function'!=typeof _0x5509f5[_0x4fc3('0x3')]||_0x4fc3('0x2')!=typeof _0x5509f5[_0x4fc3('0x22')])throw new _0xef07ad(_0x4fc3('0x19'),null);this[_0x4fc3('0x28')]['set'](_0x468ab6,_0x5509f5);}[_0x4fc3('0x2b')](){const _0x20cba2=this['context'][_0x4fc3('0x0')]['get'](_0x332424)[_0x4fc3('0x1e')],_0x1fd0d0=new Map(),_0x47e7b7=Array[_0x4fc3('0xf')](this[_0x4fc3('0x20')]);for(const _0x16efdf of this[_0x4fc3('0x20')]){const _0x411977=this['_uisData']['get'](_0x16efdf)['collection'];for(const _0x33058c of _0x411977)_0x1fd0d0['set'](_0x33058c,_0x16efdf);}for(const _0x1ccb1a of _0x20cba2){const _0x5c1b14=_0x1fd0d0[_0x4fc3('0x23')](_0x1ccb1a);this[_0x4fc3('0x11')](_0x1ccb1a);const _0x2143af=_0x47e7b7[_0x4fc3('0x1d')](_0x489f64=>this[_0x4fc3('0x1b')][_0x4fc3('0x23')](_0x489f64)[_0x4fc3('0x16')](_0x1ccb1a));_0x5c1b14!==_0x2143af&&(_0x5c1b14&&this[_0x4fc3('0x1b')][_0x4fc3('0x23')](_0x5c1b14)[_0x4fc3('0x1e')][_0x4fc3('0xc')](_0x1ccb1a),_0x2143af&&this['_uisData'][_0x4fc3('0x23')](_0x2143af)[_0x4fc3('0x1e')][_0x4fc3('0x14')](_0x1ccb1a));}}[_0x4fc3('0x13')](){this[_0x4fc3('0x12')](),super[_0x4fc3('0x13')]();}[_0x4fc3('0x11')](_0x497177){const _0x2fc6c7=[];for(const _0x5d9fec of this[_0x4fc3('0x20')]){(0x0,this[_0x4fc3('0x1b')][_0x4fc3('0x23')](_0x5d9fec)[_0x4fc3('0x16')])(_0x497177)&&_0x2fc6c7[_0x4fc3('0x4')](_0x5d9fec);}if(_0x2fc6c7['length']>0x1)throw new _0xef07ad(_0x4fc3('0x2a'),null,{'matchedUIs':_0x2fc6c7,'annotationType':_0x497177[_0x4fc3('0xb')]});}}
23
+ const _0x2f8d=['register','setActiveAnnotation','deactivateAll','context','_addActiveAnnotation','delete','set','deactivate','_assertAnnotationDoesNotBelongToMultipleUIs','activate','from','remove','stopListening','function','_uisData','size','_uis','_deactivateAllAnnotations','push','filter','get','annotationsuis-register-already-registered','plugins','annotationsuis-register-invalid-interface','init','collection','annotationsuis-missing-ui','activeUIs','isActive','_visibleAnnotations','_activateAnnotation','has','hasActive','type','annotationsuis-annotation-mismatch','_setSelectedAnnotations','attach','refilterAnnotations','AnnotationsUIs','listenTo','detach','change:activeAnnotation','_removeActiveAnnotation','destroy','add'];(function(_0x348b53,_0x2f8d8a){const _0x477801=function(_0x37a223){while(--_0x37a223){_0x348b53['push'](_0x348b53['shift']());}};_0x477801(++_0x2f8d8a);}(_0x2f8d,0x140));const _0x4778=function(_0x348b53,_0x2f8d8a){_0x348b53=_0x348b53-0x0;let _0x477801=_0x2f8d[_0x348b53];return _0x477801;};import{ContextPlugin as _0x7388a4}from'ckeditor5/src/core';import{CKEditorError as _0xafda51}from'ckeditor5/src/utils';import _0x44ed39,{bindAnnotationCollections as _0x9f0fac}from'./annotationcollection';import _0x33f8ac from'./annotations';export default class M extends _0x7388a4{static get['requires'](){return[_0x33f8ac];}static get['pluginName'](){return _0x4778('0x21');}constructor(_0x4dfeea){super(_0x4dfeea),this[_0x4778('0x16')]=new Set(),this[_0x4778('0xb')]=new Map(),this['_uisData']=new Map();}[_0x4778('0x13')](){const _0xac0026=this[_0x4778('0x2b')][_0x4778('0x11')][_0x4778('0xf')](_0x33f8ac);this[_0x4778('0x22')](_0xac0026,_0x4778('0x19'),(_0x1bf821,_0x2e3a39)=>{for(const _0x384f9f of this[_0x4778('0x16')]){const _0x791cb4=this[_0x4778('0xb')][_0x4778('0xf')](_0x384f9f);(0x0,this[_0x4778('0x9')][_0x4778('0xf')](_0x384f9f)['filter'])(_0x2e3a39)&&_0x791cb4[_0x4778('0x29')](_0x2e3a39);}}),this[_0x4778('0x22')](_0xac0026,_0x4778('0xc'),()=>{for(const _0x2f80a4 of this[_0x4778('0x16')]){this[_0x4778('0xb')][_0x4778('0xf')](_0x2f80a4)[_0x4778('0x29')](null);}}),this[_0x4778('0x22')](_0xac0026['_visibleAnnotations'],_0x4778('0x27'),(_0x511b60,_0x589d19)=>{this[_0x4778('0x3')](_0x589d19);});}[_0x4778('0x1b')](){return this['activeUIs'][_0x4778('0xa')]>0x0;}[_0x4778('0x17')](_0x114ecd){return this[_0x4778('0x16')][_0x4778('0x1a')](_0x114ecd);}[_0x4778('0x4')](_0x2398dd,_0x26652a=()=>!0x0){const _0x2a9da1=this[_0x4778('0x2b')][_0x4778('0x11')]['get'](_0x33f8ac);if(!this[_0x4778('0xb')]['has'](_0x2398dd))throw new _0xafda51(_0x4778('0x15'),this,{'uiName':_0x2398dd});this[_0x4778('0x17')](_0x2398dd)&&this['deactivate'](_0x2398dd),this[_0x4778('0x16')][_0x4778('0x27')](_0x2398dd);const _0x5ca82c=new _0x44ed39(),_0x3c9b6f=_0x2a9da1[_0x4778('0x18')];_0x9f0fac({'source':_0x3c9b6f,'target':_0x5ca82c,'filter':_0x26652a}),this[_0x4778('0x9')][_0x4778('0x1')](_0x2398dd,{'collection':_0x5ca82c,'filter':_0x26652a});const _0x277eda=this[_0x4778('0xb')][_0x4778('0xf')](_0x2398dd);_0x277eda['attach'](_0x5ca82c),this['listenTo'](_0x277eda,_0x4778('0x24'),(_0x41bb38,_0x54ffc0,_0x4c3984,_0x4d3902)=>{_0x4d3902&&_0x2a9da1[_0x4778('0x25')](_0x4d3902),_0x4c3984&&_0x2a9da1[_0x4778('0x2c')](_0x4c3984);});}[_0x4778('0x2')](_0x4cf679){if(this[_0x4778('0x16')][_0x4778('0x0')](_0x4cf679),!this['_uis']['has'](_0x4cf679))throw new _0xafda51(_0x4778('0x15'),this,{'uiName':_0x4cf679});const _0x42821c=this[_0x4778('0xb')]['get'](_0x4cf679);_0x42821c[_0x4778('0x23')](),this[_0x4778('0x7')](_0x42821c),this['_uisData'][_0x4778('0xf')](_0x4cf679)['collection'][_0x4778('0x26')](),this['_uisData'][_0x4778('0x0')](_0x4cf679);}['switchTo'](_0x1e1e9f){if(!this[_0x4778('0xb')]['has'](_0x1e1e9f))throw new _0xafda51('annotationsuis-missing-ui',this,{'uiName':_0x1e1e9f});const _0x2dadd7=this[_0x4778('0x2b')][_0x4778('0x11')]['get'](_0x33f8ac),_0x3cb592=Array[_0x4778('0x5')](_0x2dadd7['activeAnnotations'])[0x0]||null;this[_0x4778('0x2a')](),this['activate'](_0x1e1e9f);const _0x3bd64b=this[_0x4778('0xb')][_0x4778('0xf')](_0x1e1e9f);_0x3bd64b['setActiveAnnotation'](_0x3cb592),_0x3bd64b['_setSelectedAnnotations']&&_0x3cb592&&_0x3bd64b[_0x4778('0x1e')]([_0x3cb592]);}[_0x4778('0x2a')](){for(const _0x5e3c26 of this[_0x4778('0x16')])this[_0x4778('0x2')](_0x5e3c26);}[_0x4778('0x28')](_0x362513,_0x599b97){if(this[_0x4778('0xb')][_0x4778('0x1a')](_0x362513))throw new _0xafda51(_0x4778('0x10'));if(_0x4778('0x8')!=typeof _0x599b97[_0x4778('0x1f')]||_0x4778('0x8')!=typeof _0x599b97['detach']||_0x4778('0x8')!=typeof _0x599b97[_0x4778('0x29')])throw new _0xafda51(_0x4778('0x12'),null);this[_0x4778('0xb')][_0x4778('0x1')](_0x362513,_0x599b97);}[_0x4778('0x20')](){const _0x1158cc=this[_0x4778('0x2b')]['plugins'][_0x4778('0xf')](_0x33f8ac)['collection'],_0x59117e=new Map(),_0x301b67=Array[_0x4778('0x5')](this['activeUIs']);for(const _0x2072b8 of this[_0x4778('0x16')]){const _0x387835=this[_0x4778('0x9')][_0x4778('0xf')](_0x2072b8)[_0x4778('0x14')];for(const _0x447557 of _0x387835)_0x59117e[_0x4778('0x1')](_0x447557,_0x2072b8);}for(const _0x4ab1a9 of _0x1158cc){const _0x41620a=_0x59117e[_0x4778('0xf')](_0x4ab1a9);this[_0x4778('0x3')](_0x4ab1a9);const _0x39bb10=_0x301b67['find'](_0x24beed=>this[_0x4778('0x9')]['get'](_0x24beed)['filter'](_0x4ab1a9));_0x41620a!==_0x39bb10&&(_0x41620a&&this[_0x4778('0x9')][_0x4778('0xf')](_0x41620a)['collection'][_0x4778('0x6')](_0x4ab1a9),_0x39bb10&&this[_0x4778('0x9')]['get'](_0x39bb10)[_0x4778('0x14')][_0x4778('0x27')](_0x4ab1a9));}}['destroy'](){this[_0x4778('0x2a')](),super[_0x4778('0x26')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2c4e7f){const _0x17bff7=[];for(const _0x4f76af of this['activeUIs']){(0x0,this[_0x4778('0x9')][_0x4778('0xf')](_0x4f76af)[_0x4778('0xe')])(_0x2c4e7f)&&_0x17bff7[_0x4778('0xd')](_0x4f76af);}if(_0x17bff7['length']>0x1)throw new _0xafda51(_0x4778('0x1d'),null,{'matchedUIs':_0x17bff7,'annotationType':_0x2c4e7f[_0x4778('0x1c')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x30f1=['containsRange','hasDomSelection','requires','collection','fire','init','remove','selection','add','_editorAnnotationsData','editor','cancel','listenTo','editing','document','from','focusTracker','isEqual','registerAnnotation','_editorAnnotations','sort','uiUpdate','map','change:range','get','getOrderedSelectedAnnotations','EditorAnnotations','element','change:isFocused','pluginName','isCollapsed','isReadOnly','range','model','addSourceCollector','annotation','set','plugins','editorannotations-invalid-source-callback','_dataCollectors','view','refreshSelectedViews','delete'];(function(_0x2f2b2b,_0x30f1eb){const _0x545583=function(_0x4bf4ad){while(--_0x4bf4ad){_0x2f2b2b['push'](_0x2f2b2b['shift']());}};_0x545583(++_0x30f1eb);}(_0x30f1,0x12a));const _0x5455=function(_0x2f2b2b,_0x30f1eb){_0x2f2b2b=_0x2f2b2b-0x0;let _0x545583=_0x30f1[_0x2f2b2b];return _0x545583;};import{Plugin as _0x5cc5b1}from'ckeditor5/src/core';import{CKEditorError as _0x247fb2}from'ckeditor5/src/utils';import{debounce as _0x589c59}from'lodash-es';import _0x50d1f1 from'./annotations';export default class k extends _0x5cc5b1{static get[_0x5455('0x5')](){return[_0x50d1f1];}static get[_0x5455('0x20')](){return _0x5455('0x1d');}constructor(_0x43e25d){super(_0x43e25d),this['_dataCollectors']=new Set(),this[_0x5455('0x16')]=new Set();}[_0x5455('0x8')](){const _0x318be1=this[_0x5455('0xd')],_0x48bacb=_0x318be1[_0x5455('0x24')][_0x5455('0x11')]['selection'],_0xdd8ba8=_0x589c59(()=>this[_0x5455('0x1')](),0xa);_0x48bacb['on'](_0x5455('0x1a'),(_0x1b2626,_0x3ab411)=>{_0x3ab411['directChange']&&(_0xdd8ba8[_0x5455('0xe')](),this['refreshSelectedViews']());}),this[_0x5455('0xf')](_0x318be1[_0x5455('0x10')][_0x5455('0x0')][_0x5455('0x11')],'change:isFocused',(_0x17ea72,_0x58d5b9,_0x2c7c48)=>{_0x2c7c48&&_0xdd8ba8();}),this[_0x5455('0xf')](_0x318be1['ui']['focusTracker'],_0x5455('0x1f'),(_0x53de9b,_0x2a9563,_0x160e88)=>{_0x160e88||_0x318be1[_0x5455('0x22')]||this['fire']('blur',{'isAnnotationTracked':_0x56657c=>this['_editorAnnotationsData']['has'](_0x56657c['innerView'])});}),this[_0x5455('0xf')](this[_0x5455('0xd')]['ui'],'update',()=>this[_0x5455('0x7')](_0x5455('0x18')));}[_0x5455('0x15')](_0x4794a7){if(this[_0x5455('0x16')]['has'](_0x4794a7[_0x5455('0x0')]))return;this['_editorAnnotations'][_0x5455('0xb')](_0x4794a7['view']),this[_0x5455('0xd')]['ui'][_0x5455('0x13')]['add'](_0x4794a7[_0x5455('0x0')][_0x5455('0x1e')]);const _0x3bbc72=this[_0x5455('0xd')][_0x5455('0x28')][_0x5455('0x1b')](_0x50d1f1);this[_0x5455('0xf')](_0x3bbc72[_0x5455('0x6')],_0x5455('0x9'),(_0xab2e57,_0x3ac012)=>{this[_0x5455('0xd')]['ui'][_0x5455('0x13')][_0x5455('0x9')](_0x3ac012[_0x5455('0x0')][_0x5455('0x1e')]),this[_0x5455('0x16')][_0x5455('0x2')](_0x3ac012[_0x5455('0x0')]);});}[_0x5455('0x4')](){return this[_0x5455('0xd')][_0x5455('0x10')][_0x5455('0x0')]['hasDomSelection'];}[_0x5455('0x25')](_0x743ef5){if('function'!=typeof _0x743ef5)throw new _0x247fb2(_0x5455('0x29'));this[_0x5455('0x2a')]['add'](_0x743ef5);}[_0x5455('0x1')](){this[_0x5455('0x7')]('refresh');}[_0x5455('0x1c')]({activeAnnotation:_0x2a79a6,annotations:_0x2bdbbf}){const _0x4c4741=[],_0x1b08dc=this[_0x5455('0xd')][_0x5455('0x24')]['document'][_0x5455('0xa')],_0x84900a=Array[_0x5455('0x12')](_0x1b08dc['getRanges']());for(const [_0x1cc20b,_0x565da2]of this['_editorAnnotationsData']){const _0x23f471=_0xa043a6(_0x565da2),_0x2d2d08=_0x2bdbbf['getByInnerView'](_0x1cc20b);_0x23f471&&_0x2d2d08&&_0x4c4741['push']({'annotation':_0x2d2d08,'range':_0x23f471});}function _0xa043a6(_0x4a00a5){for(const _0x23bedf of _0x4a00a5)for(const _0x10942d of _0x84900a)if(_0x23bedf['containsRange'](_0x10942d,!_0x1b08dc[_0x5455('0x21')]))return _0x23bedf;return null;}return _0x4c4741[_0x5455('0x17')]((_0x39ef57,_0x30bfde)=>{const _0x1f3e51=_0x39ef57[_0x5455('0x23')],_0x5ea2bf=_0x30bfde['range'];if(!_0x1f3e51[_0x5455('0x14')](_0x5ea2bf)){if(_0x1f3e51[_0x5455('0x3')](_0x5ea2bf,!0x0))return 0x1;if(_0x5ea2bf[_0x5455('0x3')](_0x1f3e51,!0x0))return-0x1;}return _0x39ef57['annotation']==_0x2a79a6?-0x1:_0x30bfde[_0x5455('0x26')]==_0x2a79a6?0x1:0x0;})[_0x5455('0x19')](_0x55d5c7=>_0x55d5c7[_0x5455('0x26')]);}get[_0x5455('0xc')](){const _0x2099de=new Map();for(const _0x5a9671 of Array[_0x5455('0x12')](this['_dataCollectors']))for(const [_0x449ad7,_0x25d2cc]of _0x5a9671())_0x2099de[_0x5455('0x27')](_0x449ad7,_0x25d2cc);return _0x2099de;}}
23
+ const _0xef09=['fire','_dataCollectors','get','blur','getRanges','collection','uiUpdate','function','editing','addSourceCollector','selection','containsRange','push','focusTracker','editor','isEqual','getOrderedSelectedAnnotations','directChange','map','has','pluginName','set','delete','refreshSelectedViews','innerView','_editorAnnotations','view','isReadOnly','add','from','requires','element','EditorAnnotations','model','isCollapsed','document','range','listenTo','annotation','sort','_editorAnnotationsData','remove','refresh'];(function(_0x2935b5,_0xef0997){const _0x15fcbd=function(_0x519cbb){while(--_0x519cbb){_0x2935b5['push'](_0x2935b5['shift']());}};_0x15fcbd(++_0xef0997);}(_0xef09,0x111));const _0x15fc=function(_0x2935b5,_0xef0997){_0x2935b5=_0x2935b5-0x0;let _0x15fcbd=_0xef09[_0x2935b5];return _0x15fcbd;};import{Plugin as _0x2909de}from'ckeditor5/src/core';import{CKEditorError as _0x233742}from'ckeditor5/src/utils';import{debounce as _0x2f1867}from'lodash-es';import _0x2d0a04 from'./annotations';export default class k extends _0x2909de{static get[_0x15fc('0xf')](){return[_0x2d0a04];}static get[_0x15fc('0x5')](){return _0x15fc('0x11');}constructor(_0x54cfc9){super(_0x54cfc9),this[_0x15fc('0x1d')]=new Set(),this[_0x15fc('0xa')]=new Set();}['init'](){const _0x5554df=this[_0x15fc('0x2a')],_0x1ac455=_0x5554df[_0x15fc('0x12')][_0x15fc('0x14')][_0x15fc('0x26')],_0x1cc393=_0x2f1867(()=>this[_0x15fc('0x8')](),0xa);_0x1ac455['on']('change:range',(_0x596dc2,_0x32b53c)=>{_0x32b53c[_0x15fc('0x2')]&&(_0x1cc393['cancel'](),this['refreshSelectedViews']());}),this['listenTo'](_0x5554df[_0x15fc('0x24')][_0x15fc('0xb')]['document'],'change:isFocused',(_0x5e3ff0,_0x19e936,_0x2ebb73)=>{_0x2ebb73&&_0x1cc393();}),this['listenTo'](_0x5554df['ui'][_0x15fc('0x29')],'change:isFocused',(_0x492b62,_0x469ce7,_0x1994d7)=>{_0x1994d7||_0x5554df[_0x15fc('0xc')]||this[_0x15fc('0x1c')](_0x15fc('0x1f'),{'isAnnotationTracked':_0x595df6=>this[_0x15fc('0x19')][_0x15fc('0x4')](_0x595df6[_0x15fc('0x9')])});}),this[_0x15fc('0x16')](this[_0x15fc('0x2a')]['ui'],'update',()=>this[_0x15fc('0x1c')](_0x15fc('0x22')));}['registerAnnotation'](_0x25962d){if(this[_0x15fc('0xa')][_0x15fc('0x4')](_0x25962d[_0x15fc('0xb')]))return;this[_0x15fc('0xa')][_0x15fc('0xd')](_0x25962d['view']),this[_0x15fc('0x2a')]['ui'][_0x15fc('0x29')]['add'](_0x25962d[_0x15fc('0xb')][_0x15fc('0x10')]);const _0x3c059c=this[_0x15fc('0x2a')]['plugins'][_0x15fc('0x1e')](_0x2d0a04);this['listenTo'](_0x3c059c[_0x15fc('0x21')],'remove',(_0x4a290e,_0x1a9076)=>{this[_0x15fc('0x2a')]['ui'][_0x15fc('0x29')][_0x15fc('0x1a')](_0x1a9076[_0x15fc('0xb')][_0x15fc('0x10')]),this['_editorAnnotations'][_0x15fc('0x7')](_0x1a9076[_0x15fc('0xb')]);});}['hasDomSelection'](){return this[_0x15fc('0x2a')]['editing'][_0x15fc('0xb')]['hasDomSelection'];}[_0x15fc('0x25')](_0x1772e7){if(_0x15fc('0x23')!=typeof _0x1772e7)throw new _0x233742('editorannotations-invalid-source-callback');this[_0x15fc('0x1d')][_0x15fc('0xd')](_0x1772e7);}['refreshSelectedViews'](){this[_0x15fc('0x1c')](_0x15fc('0x1b'));}[_0x15fc('0x1')]({activeAnnotation:_0x4ce4ae,annotations:_0x1add79}){const _0x125437=[],_0x138f01=this['editor']['model'][_0x15fc('0x14')]['selection'],_0x46499d=Array[_0x15fc('0xe')](_0x138f01[_0x15fc('0x20')]());for(const [_0x3dc7ec,_0x40f979]of this[_0x15fc('0x19')]){const _0x2525eb=_0x43e91b(_0x40f979),_0x169688=_0x1add79['getByInnerView'](_0x3dc7ec);_0x2525eb&&_0x169688&&_0x125437[_0x15fc('0x28')]({'annotation':_0x169688,'range':_0x2525eb});}function _0x43e91b(_0x171dab){for(const _0x29274b of _0x171dab)for(const _0x28f7c7 of _0x46499d)if(_0x29274b[_0x15fc('0x27')](_0x28f7c7,!_0x138f01[_0x15fc('0x13')]))return _0x29274b;return null;}return _0x125437[_0x15fc('0x18')]((_0x3d7268,_0x1cce1b)=>{const _0x232215=_0x3d7268['range'],_0x56442b=_0x1cce1b[_0x15fc('0x15')];if(!_0x232215[_0x15fc('0x0')](_0x56442b)){if(_0x232215['containsRange'](_0x56442b,!0x0))return 0x1;if(_0x56442b[_0x15fc('0x27')](_0x232215,!0x0))return-0x1;}return _0x3d7268[_0x15fc('0x17')]==_0x4ce4ae?-0x1:_0x1cce1b[_0x15fc('0x17')]==_0x4ce4ae?0x1:0x0;})[_0x15fc('0x3')](_0x1126c1=>_0x1126c1[_0x15fc('0x17')]);}get[_0x15fc('0x19')](){const _0x451b88=new Map();for(const _0x4db70d of Array['from'](this[_0x15fc('0x1d')]))for(const [_0x8c32f6,_0x5edf26]of _0x4db70d())_0x451b88[_0x15fc('0x6')](_0x8c32f6,_0x5edf26);return _0x451b88;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4fb1=['visibleView','getBoundingClientRect','_balloon','isAttached','view','_addedAnnotations','focusTracker','afterInit','InlineAnnotations','target','every','change:isFocused','showStack','editing','find','hasActive','collapse','isActive','setActiveAnnotation','Esc','_manuallyClosed','length','isFocused','_closeAnnotation','from','attach','requires','addObserver','focus','add','stopListening','detach','width','_forceRefresh','_addAnnotationToBalloon','plugins','get','document','blur','context','_setSelectedAnnotations','right','getOrderedSelectedAnnotations','set','bottom','editableElement','editor','clear','remove','fromRect','_getBalloonTargetForAnnotation','hasView','getByView','top','annotations','push','mousedown','_removeAnnotationFromBalloon','includes','map','targetRect','inlineannotations-detach-not-attached','pluginName','listenTo','inlineannotations-attach-already-attached','_selectedAnnotations','has','left','selection','delete','domConverter','switchTo','register','inlineannotations-not-allowed-with-context','activeAnnotation','inline','change:visibleView'];(function(_0x1fa433,_0x4fb157){const _0x658d23=function(_0x5f0898){while(--_0x5f0898){_0x1fa433['push'](_0x1fa433['shift']());}};_0x658d23(++_0x4fb157);}(_0x4fb1,0xe9));const _0x658d=function(_0x1fa433,_0x4fb157){_0x1fa433=_0x1fa433-0x0;let _0x658d23=_0x4fb1[_0x1fa433];return _0x658d23;};import{Plugin as _0x2c54c1}from'ckeditor5/src/core';import _0x526fea from'./annotationsuis';import _0x30f34f from'./editorannotations';import{ContextualBalloon as _0x3d5c71}from'ckeditor5/src/ui';import{MouseObserver as _0x181f4e}from'ckeditor5/src/engine';import{CKEditorError as _0x3bdfd1,Rect as _0x177d11}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x2c54c1{static get[_0x658d('0x18')](){return[_0x30f34f,_0x3d5c71,_0x526fea];}static get[_0x658d('0x3c')](){return _0x658d('0x6');}constructor(_0x585ec9){super(_0x585ec9),_0x585ec9['editing'][_0x658d('0x2')][_0x658d('0x19')](_0x181f4e),this[_0x658d('0x1')]=!0x1,this[_0x658d('0x29')]('activeAnnotation',null),this[_0x658d('0x34')]=null,this[_0x658d('0x12')]=new Set(),this[_0x658d('0x0')]=_0x585ec9[_0x658d('0x21')][_0x658d('0x22')](_0x3d5c71),this[_0x658d('0x3')]=new Set(),this['_selectedAnnotations']=[],this[_0x658d('0x1f')]=!0x1;}['init'](){const _0x3e07e7=this[_0x658d('0x2c')][_0x658d('0x21')]['get'](_0x526fea);_0x3e07e7[_0x658d('0x25')]===this[_0x658d('0x2c')]&&(_0x3e07e7[_0x658d('0x46')](_0x658d('0x49'),this),this[_0x658d('0x2c')]['keystrokes'][_0x658d('0x29')]('Esc',(_0x44ff26,_0x22663c)=>{const _0x145dcb=this[_0x658d('0x0')];if(this[_0x658d('0x1')]&&_0x145dcb[_0x658d('0x4b')]){const _0x3f5737=this[_0x658d('0x34')][_0x658d('0x32')](_0x145dcb[_0x658d('0x4b')]);_0x3f5737&&this[_0x658d('0x15')](_0x3f5737),_0x22663c();}}));}[_0x658d('0x5')](){const _0x40ee9b=this[_0x658d('0x2c')][_0x658d('0x21')][_0x658d('0x22')](_0x526fea);_0x40ee9b[_0x658d('0x25')]===this[_0x658d('0x2c')]&&(_0x40ee9b[_0x658d('0xd')]()||_0x40ee9b[_0x658d('0x45')](_0x658d('0x49')));}[_0x658d('0x10')](_0x85ec4f){_0x85ec4f!==this[_0x658d('0x48')]&&(this[_0x658d('0x48')]&&(this[_0x658d('0x48')][_0x658d('0xf')]=!0x1),_0x85ec4f&&this[_0x658d('0x2c')]['ui'][_0x658d('0x4')][_0x658d('0x14')]&&(this[_0x658d('0x34')][_0x658d('0x40')](_0x85ec4f)&&this[_0x658d('0x20')](_0x85ec4f,!0x0),_0x85ec4f[_0x658d('0xf')]=!0x0),_0x85ec4f||this[_0x658d('0x26')]([]),this[_0x658d('0x48')]=_0x85ec4f);}[_0x658d('0x17')](_0x3d9339){this['annotations']=_0x3d9339;const _0x524946=this['editor'][_0x658d('0x21')][_0x658d('0x22')](_0x526fea),_0x2621bf=this[_0x658d('0x0')];if(this[_0x658d('0x1')])throw new _0x3bdfd1(_0x658d('0x3e'),this);if(_0x524946['context']!==this[_0x658d('0x2c')])throw new _0x3bdfd1(_0x658d('0x47'),this);const _0x13125a=this['editor'][_0x658d('0x21')][_0x658d('0x22')](_0x30f34f);this['listenTo'](_0x13125a,'refresh',()=>{const _0xff9b2f=_0x13125a[_0x658d('0x28')]({'annotations':this['annotations'],'activeAnnotation':this[_0x658d('0x48')]});var _0x37d600,_0x5c5ced;!this[_0x658d('0x1f')]&&(_0x37d600=_0xff9b2f,_0x5c5ced=this[_0x658d('0x3f')],_0x37d600[_0x658d('0x13')]===_0x5c5ced[_0x658d('0x13')]&&_0x37d600[_0x658d('0x8')](_0x21a967=>_0x5c5ced[_0x658d('0x38')](_0x21a967)))||(this[_0x658d('0x1f')]=!0x1,this['_setSelectedAnnotations'](_0xff9b2f),this[_0x658d('0x10')](_0xff9b2f[0x0]||null));}),this[_0x658d('0x3d')](_0x13125a,_0x658d('0x24'),(_0x367fdd,{isAnnotationTracked:_0x2e67c7})=>{this['activeAnnotation']&&_0x2e67c7(this[_0x658d('0x48')])&&(this[_0x658d('0x26')]([]),this[_0x658d('0x10')](null));}),this[_0x658d('0x3d')](this[_0x658d('0x2c')]['ui'][_0x658d('0x4')],_0x658d('0x9'),(_0x3b55e7,_0x2c6358,_0x104d9b)=>{_0x104d9b||this['setActiveAnnotation'](null);}),this[_0x658d('0x3d')](_0x3d9339,_0x658d('0x2e'),(_0x95f7d0,_0x333821)=>{this[_0x658d('0x37')](_0x333821),_0x333821===this[_0x658d('0x48')]&&this[_0x658d('0x10')](null);}),this[_0x658d('0x3d')](_0x2621bf,_0x658d('0x4a'),(_0x2d3d46,_0x33298d,_0x1cf42e,_0x3fba58)=>{_0x3fba58&&this[_0x658d('0x1c')](_0x3fba58);const _0x5b8062=_0x3d9339[_0x658d('0x32')](_0x1cf42e);_0x1cf42e&&_0x5b8062&&(this['listenTo'](_0x1cf42e,'change:height',()=>{_0x2621bf['updatePosition']();}),this['listenTo'](_0x1cf42e,_0x658d('0x11'),()=>{this['_closeAnnotation'](_0x5b8062),this['editor'][_0x658d('0xb')]['view'][_0x658d('0x1a')]();}),this[_0x658d('0x48')]!==_0x5b8062&&this[_0x658d('0x10')](_0x5b8062));}),this[_0x658d('0x3d')](this['editor']['ui'],'update',()=>{_0x2621bf[_0x658d('0x4b')]&&(_0x3d9339['getByView'](_0x2621bf['visibleView'])&&_0x2621bf['updatePosition']());}),this[_0x658d('0x3d')](this['editor']['editing'][_0x658d('0x2')]['document'],_0x658d('0x36'),()=>{this[_0x658d('0x1f')]=!0x0,this[_0x658d('0x12')][_0x658d('0x2d')]();}),this[_0x658d('0x2c')][_0x658d('0xb')][_0x658d('0x2')][_0x658d('0x23')][_0x658d('0x42')][_0x658d('0x2b')]&&this[_0x658d('0x2c')][_0x658d('0xb')][_0x658d('0x2')]['focus'](),this[_0x658d('0x1')]=!0x0;}['detach'](){if(!this[_0x658d('0x1')])throw new _0x3bdfd1(_0x658d('0x3b'),this);this[_0x658d('0x10')](null);for(const _0x362385 of this[_0x658d('0x3')])this[_0x658d('0x37')](_0x362385);this[_0x658d('0x1c')](),this[_0x658d('0x1')]=!0x1,this['annotations']=null;}['destroy'](){this[_0x658d('0x1')]&&this[_0x658d('0x1d')]();}[_0x658d('0x26')](_0xccb8b1){for(const _0x2fff41 of this['_selectedAnnotations'])_0xccb8b1['includes'](_0x2fff41)||this[_0x658d('0x12')][_0x658d('0x43')](_0x2fff41);for(const _0x25d4aa of this[_0x658d('0x34')])_0xccb8b1[_0x658d('0x38')](_0x25d4aa)||this[_0x658d('0x37')](_0x25d4aa);if(this[_0x658d('0x2c')]['ui'][_0x658d('0x4')]['isFocused'])for(const _0x5e21c9 of _0xccb8b1)this[_0x658d('0x20')](_0x5e21c9);this[_0x658d('0x3f')]=_0xccb8b1;}[_0x658d('0x20')](_0xa91ed3,_0x584d3b=!0x1){this[_0x658d('0x12')][_0x658d('0x40')](_0xa91ed3)||(this[_0x658d('0x3')][_0x658d('0x40')](_0xa91ed3)||this[_0x658d('0x0')]['hasView'](_0xa91ed3[_0x658d('0x2')])||(this[_0x658d('0x3')]['add'](_0xa91ed3),this['_balloon'][_0x658d('0x1b')]({'stackId':_0xa91ed3[_0x658d('0x2')]['id'],'view':_0xa91ed3['view'],'position':{'target':()=>this[_0x658d('0x30')](_0xa91ed3)}})),_0x584d3b&&this[_0x658d('0x0')][_0x658d('0xa')](_0xa91ed3[_0x658d('0x2')]['id']));}['_getBalloonTargetForAnnotation'](_0x1a6b87){const _0x5605c0=_0x1a6b87[_0x658d('0x7')],_0x5f0786=this['editor']['editing'][_0x658d('0x2')],_0x4a4dc5=_0x5f0786[_0x658d('0x23')][_0x658d('0x42')]['getFirstRange'](),_0x3a7df0=_0x5f0786[_0x658d('0x44')]['viewRangeToDom'](_0x4a4dc5);if(_0x3a7df0[_0x658d('0xe')](!0x0),_0x5605c0){if(_0x5605c0 instanceof _0x177d11)return _0x5605c0;let _0xcc96e5=[];for(const _0x2f13dc of _0x5605c0)_0xcc96e5[_0x658d('0x35')](...(_0x3e8a8c=_0x2f13dc['getClientRects'](),Array[_0x658d('0x16')](_0x3e8a8c)[_0x658d('0x39')](DOMRect[_0x658d('0x2f')])));_0xcc96e5=function(_0x3f03a2){const _0x32b9a3=[];let _0x54fd50=_0x3f03a2[0x0];for(let _0x34b004=0x1;_0x34b004<_0x3f03a2[_0x658d('0x13')];_0x34b004++)F(_0x54fd50,_0x3f03a2[_0x34b004])?_0x54fd50[_0x658d('0x1e')]+=_0x3f03a2[_0x34b004]['width']:(_0x32b9a3[_0x658d('0x35')](_0x54fd50),_0x54fd50=_0x3f03a2[_0x34b004]);return _0x32b9a3[_0x658d('0x35')](_0x54fd50),_0x32b9a3;}(_0xcc96e5);const _0x1728c9=_0x3a7df0[_0x658d('0x4c')]();return _0xcc96e5[_0x658d('0xc')](_0x1e39f1=>_0x1e39f1[_0x658d('0x33')]<=_0x1728c9[_0x658d('0x33')]&&_0x1e39f1[_0x658d('0x2a')]>=_0x1728c9[_0x658d('0x2a')]&&_0x1e39f1[_0x658d('0x41')]<=_0x1728c9[_0x658d('0x41')]&&_0x1e39f1[_0x658d('0x27')]>=_0x1728c9['right'])||_0xcc96e5[0x0];}var _0x3e8a8c;return _0x1a6b87[_0x658d('0x3a')]||_0x3a7df0;}[_0x658d('0x37')](_0x363fde){this[_0x658d('0x3')][_0x658d('0x40')](_0x363fde)&&this[_0x658d('0x0')][_0x658d('0x31')](_0x363fde[_0x658d('0x2')])&&(this['_addedAnnotations'][_0x658d('0x43')](_0x363fde),this[_0x658d('0x0')][_0x658d('0x2e')](_0x363fde['view']));}['_closeAnnotation'](_0x199e36){this['_manuallyClosed'][_0x658d('0x1b')](_0x199e36),this[_0x658d('0x37')](_0x199e36);}}function F(_0x9ed634,_0x2d6f0e){return _0x9ed634[_0x658d('0x33')]===_0x2d6f0e[_0x658d('0x33')]&&_0x9ed634[_0x658d('0x2a')]===_0x2d6f0e[_0x658d('0x2a')]&&_0x9ed634['right']===_0x2d6f0e['left'];}
23
+ const _0x2089=['document','_manuallyClosed','visibleView','register','right','hasActive','remove','showStack','isAttached','push','selection','_selectedAnnotations','top','update','get','inlineannotations-detach-not-attached','map','from','detach','pluginName','activeAnnotation','width','editing','target','blur','_removeAnnotationFromBalloon','destroy','every','mousedown','InlineAnnotations','inlineannotations-not-allowed-with-context','view','domConverter','inline','setActiveAnnotation','delete','_setSelectedAnnotations','_addedAnnotations','inlineannotations-attach-already-attached','requires','_addAnnotationToBalloon','includes','change:visibleView','refresh','afterInit','plugins','_getBalloonTargetForAnnotation','getOrderedSelectedAnnotations','bottom','context','set','left','add','viewRangeToDom','listenTo','updatePosition','collapse','keystrokes','has','addObserver','clear','hasView','change:isFocused','getFirstRange','change:height','length','_closeAnnotation','_balloon','getByView','focus','getClientRects','isActive','focusTracker','editor','init','annotations','_forceRefresh'];(function(_0x10d21f,_0x208993){const _0x555fff=function(_0x3dd656){while(--_0x3dd656){_0x10d21f['push'](_0x10d21f['shift']());}};_0x555fff(++_0x208993);}(_0x2089,0xaa));const _0x555f=function(_0x10d21f,_0x208993){_0x10d21f=_0x10d21f-0x0;let _0x555fff=_0x2089[_0x10d21f];return _0x555fff;};import{Plugin as _0xc3634a}from'ckeditor5/src/core';import _0x46765a from'./annotationsuis';import _0x2ed452 from'./editorannotations';import{ContextualBalloon as _0xa48b5a}from'ckeditor5/src/ui';import{MouseObserver as _0x445703}from'ckeditor5/src/engine';import{CKEditorError as _0x5f000b,Rect as _0x2150dd}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0xc3634a{static get[_0x555f('0x17')](){return[_0x2ed452,_0xa48b5a,_0x46765a];}static get[_0x555f('0x3')](){return _0x555f('0xd');}constructor(_0x4f9395){super(_0x4f9395),_0x4f9395[_0x555f('0x6')]['view'][_0x555f('0x2b')](_0x445703),this[_0x555f('0x45')]=!0x1,this[_0x555f('0x22')](_0x555f('0x4'),null),this['annotations']=null,this[_0x555f('0x3e')]=new Set(),this[_0x555f('0x33')]=_0x4f9395['plugins'][_0x555f('0x4b')](_0xa48b5a),this[_0x555f('0x15')]=new Set(),this['_selectedAnnotations']=[],this[_0x555f('0x3c')]=!0x1;}[_0x555f('0x3a')](){const _0x1bbc65=this[_0x555f('0x39')][_0x555f('0x1d')][_0x555f('0x4b')](_0x46765a);_0x1bbc65[_0x555f('0x21')]===this[_0x555f('0x39')]&&(_0x1bbc65[_0x555f('0x40')](_0x555f('0x11'),this),this[_0x555f('0x39')][_0x555f('0x29')][_0x555f('0x22')]('Esc',(_0x509399,_0x3f1ee2)=>{const _0x59b604=this[_0x555f('0x33')];if(this[_0x555f('0x45')]&&_0x59b604[_0x555f('0x3f')]){const _0x1b8356=this[_0x555f('0x3b')][_0x555f('0x34')](_0x59b604[_0x555f('0x3f')]);_0x1b8356&&this[_0x555f('0x32')](_0x1b8356),_0x3f1ee2();}}));}[_0x555f('0x1c')](){const _0x5cba50=this[_0x555f('0x39')][_0x555f('0x1d')][_0x555f('0x4b')](_0x46765a);_0x5cba50[_0x555f('0x21')]===this[_0x555f('0x39')]&&(_0x5cba50[_0x555f('0x42')]()||_0x5cba50['switchTo']('inline'));}[_0x555f('0x12')](_0x5acbc4){_0x5acbc4!==this['activeAnnotation']&&(this['activeAnnotation']&&(this[_0x555f('0x4')][_0x555f('0x37')]=!0x1),_0x5acbc4&&this['editor']['ui']['focusTracker']['isFocused']&&(this[_0x555f('0x3b')]['has'](_0x5acbc4)&&this['_addAnnotationToBalloon'](_0x5acbc4,!0x0),_0x5acbc4[_0x555f('0x37')]=!0x0),_0x5acbc4||this[_0x555f('0x14')]([]),this[_0x555f('0x4')]=_0x5acbc4);}['attach'](_0x116004){this[_0x555f('0x3b')]=_0x116004;const _0x381c98=this['editor'][_0x555f('0x1d')][_0x555f('0x4b')](_0x46765a),_0x5d2a45=this[_0x555f('0x33')];if(this[_0x555f('0x45')])throw new _0x5f000b(_0x555f('0x16'),this);if(_0x381c98[_0x555f('0x21')]!==this[_0x555f('0x39')])throw new _0x5f000b(_0x555f('0xe'),this);const _0x4199a8=this['editor'][_0x555f('0x1d')][_0x555f('0x4b')](_0x2ed452);this[_0x555f('0x26')](_0x4199a8,_0x555f('0x1b'),()=>{const _0x185ce9=_0x4199a8[_0x555f('0x1f')]({'annotations':this[_0x555f('0x3b')],'activeAnnotation':this[_0x555f('0x4')]});var _0x226ad6,_0x4ec6db;!this['_forceRefresh']&&(_0x226ad6=_0x185ce9,_0x4ec6db=this[_0x555f('0x48')],_0x226ad6[_0x555f('0x31')]===_0x4ec6db[_0x555f('0x31')]&&_0x226ad6[_0x555f('0xb')](_0x1cbce0=>_0x4ec6db['includes'](_0x1cbce0)))||(this['_forceRefresh']=!0x1,this[_0x555f('0x14')](_0x185ce9),this[_0x555f('0x12')](_0x185ce9[0x0]||null));}),this[_0x555f('0x26')](_0x4199a8,_0x555f('0x8'),(_0x1ec17d,{isAnnotationTracked:_0x20c6c2})=>{this[_0x555f('0x4')]&&_0x20c6c2(this[_0x555f('0x4')])&&(this[_0x555f('0x14')]([]),this[_0x555f('0x12')](null));}),this[_0x555f('0x26')](this[_0x555f('0x39')]['ui'][_0x555f('0x38')],_0x555f('0x2e'),(_0x17b504,_0x135039,_0x5cb816)=>{_0x5cb816||this[_0x555f('0x12')](null);}),this['listenTo'](_0x116004,'remove',(_0x1a6ad7,_0x18eb02)=>{this[_0x555f('0x9')](_0x18eb02),_0x18eb02===this[_0x555f('0x4')]&&this['setActiveAnnotation'](null);}),this[_0x555f('0x26')](_0x5d2a45,_0x555f('0x1a'),(_0x1e227d,_0x23b432,_0x2bc73e,_0x5cf27d)=>{_0x5cf27d&&this['stopListening'](_0x5cf27d);const _0x52bdfe=_0x116004['getByView'](_0x2bc73e);_0x2bc73e&&_0x52bdfe&&(this['listenTo'](_0x2bc73e,_0x555f('0x30'),()=>{_0x5d2a45[_0x555f('0x27')]();}),this[_0x555f('0x26')](_0x2bc73e,'Esc',()=>{this[_0x555f('0x32')](_0x52bdfe),this[_0x555f('0x39')][_0x555f('0x6')][_0x555f('0xf')][_0x555f('0x35')]();}),this['activeAnnotation']!==_0x52bdfe&&this[_0x555f('0x12')](_0x52bdfe));}),this[_0x555f('0x26')](this[_0x555f('0x39')]['ui'],_0x555f('0x4a'),()=>{_0x5d2a45[_0x555f('0x3f')]&&(_0x116004['getByView'](_0x5d2a45[_0x555f('0x3f')])&&_0x5d2a45['updatePosition']());}),this[_0x555f('0x26')](this[_0x555f('0x39')][_0x555f('0x6')][_0x555f('0xf')][_0x555f('0x3d')],_0x555f('0xc'),()=>{this[_0x555f('0x3c')]=!0x0,this[_0x555f('0x3e')][_0x555f('0x2c')]();}),this[_0x555f('0x39')]['editing'][_0x555f('0xf')][_0x555f('0x3d')][_0x555f('0x47')]['editableElement']&&this[_0x555f('0x39')][_0x555f('0x6')][_0x555f('0xf')][_0x555f('0x35')](),this[_0x555f('0x45')]=!0x0;}[_0x555f('0x2')](){if(!this[_0x555f('0x45')])throw new _0x5f000b(_0x555f('0x4c'),this);this['setActiveAnnotation'](null);for(const _0x18a1f1 of this['_addedAnnotations'])this[_0x555f('0x9')](_0x18a1f1);this['stopListening'](),this[_0x555f('0x45')]=!0x1,this[_0x555f('0x3b')]=null;}[_0x555f('0xa')](){this['isAttached']&&this['detach']();}[_0x555f('0x14')](_0x468416){for(const _0x4e7f33 of this[_0x555f('0x48')])_0x468416[_0x555f('0x19')](_0x4e7f33)||this[_0x555f('0x3e')][_0x555f('0x13')](_0x4e7f33);for(const _0x141084 of this[_0x555f('0x3b')])_0x468416[_0x555f('0x19')](_0x141084)||this[_0x555f('0x9')](_0x141084);if(this['editor']['ui'][_0x555f('0x38')]['isFocused'])for(const _0xbc6063 of _0x468416)this[_0x555f('0x18')](_0xbc6063);this['_selectedAnnotations']=_0x468416;}['_addAnnotationToBalloon'](_0xa71191,_0x13be5a=!0x1){this[_0x555f('0x3e')][_0x555f('0x2a')](_0xa71191)||(this[_0x555f('0x15')][_0x555f('0x2a')](_0xa71191)||this[_0x555f('0x33')][_0x555f('0x2d')](_0xa71191[_0x555f('0xf')])||(this['_addedAnnotations'][_0x555f('0x24')](_0xa71191),this['_balloon'][_0x555f('0x24')]({'stackId':_0xa71191['view']['id'],'view':_0xa71191[_0x555f('0xf')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0xa71191)}})),_0x13be5a&&this[_0x555f('0x33')][_0x555f('0x44')](_0xa71191[_0x555f('0xf')]['id']));}[_0x555f('0x1e')](_0x56e9e9){const _0x6a0f9=_0x56e9e9[_0x555f('0x7')],_0x28d94b=this[_0x555f('0x39')][_0x555f('0x6')][_0x555f('0xf')],_0x396c8e=_0x28d94b[_0x555f('0x3d')][_0x555f('0x47')][_0x555f('0x2f')](),_0x5b3313=_0x28d94b[_0x555f('0x10')][_0x555f('0x25')](_0x396c8e);if(_0x5b3313[_0x555f('0x28')](!0x0),_0x6a0f9){if(_0x6a0f9 instanceof _0x2150dd)return _0x6a0f9;let _0x304e15=[];for(const _0x5566f8 of _0x6a0f9)_0x304e15[_0x555f('0x46')](...(_0x1da362=_0x5566f8[_0x555f('0x36')](),Array[_0x555f('0x1')](_0x1da362)[_0x555f('0x0')](DOMRect['fromRect'])));_0x304e15=function(_0x30e489){const _0x29f9e1=[];let _0x42a8ca=_0x30e489[0x0];for(let _0x1129c8=0x1;_0x1129c8<_0x30e489[_0x555f('0x31')];_0x1129c8++)F(_0x42a8ca,_0x30e489[_0x1129c8])?_0x42a8ca[_0x555f('0x5')]+=_0x30e489[_0x1129c8][_0x555f('0x5')]:(_0x29f9e1[_0x555f('0x46')](_0x42a8ca),_0x42a8ca=_0x30e489[_0x1129c8]);return _0x29f9e1[_0x555f('0x46')](_0x42a8ca),_0x29f9e1;}(_0x304e15);const _0xd015f5=_0x5b3313['getBoundingClientRect']();return _0x304e15['find'](_0x560d99=>_0x560d99[_0x555f('0x49')]<=_0xd015f5[_0x555f('0x49')]&&_0x560d99['bottom']>=_0xd015f5[_0x555f('0x20')]&&_0x560d99[_0x555f('0x23')]<=_0xd015f5[_0x555f('0x23')]&&_0x560d99[_0x555f('0x41')]>=_0xd015f5[_0x555f('0x41')])||_0x304e15[0x0];}var _0x1da362;return _0x56e9e9['targetRect']||_0x5b3313;}[_0x555f('0x9')](_0x11d204){this['_addedAnnotations'][_0x555f('0x2a')](_0x11d204)&&this[_0x555f('0x33')][_0x555f('0x2d')](_0x11d204[_0x555f('0xf')])&&(this[_0x555f('0x15')][_0x555f('0x13')](_0x11d204),this[_0x555f('0x33')][_0x555f('0x43')](_0x11d204['view']));}[_0x555f('0x32')](_0x4a5407){this['_manuallyClosed'][_0x555f('0x24')](_0x4a5407),this['_removeAnnotationFromBalloon'](_0x4a5407);}}function F(_0x131851,_0x2a3235){return _0x131851['top']===_0x2a3235[_0x555f('0x49')]&&_0x131851[_0x555f('0x20')]===_0x2a3235['bottom']&&_0x131851['right']===_0x2a3235[_0x555f('0x23')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4305=['_domEmitter','element','refreshPositioning','_detachFromContainer','find','plugins','off','length','remove','blur','balloonPanelView','_manuallyClosedAnnotationViews','Esc','refresh','addEventListener','editors','set','getByView','setActiveAnnotation','type','preventDefault','clear','stop','northArrowSouthEast','_editorAnnotations','getOrderedSelectedAnnotations','resize','change:container','high','preventClosingBalloon','_annotations','keydown','_selectedAnnotations','_destroyEditorAnnotationsIntegration','keyCode','activeAnnotation','_refreshPositioningDebounced','southArrowNorth','_setSelectedAnnotations','includes','view','context','hasDomSelection','get','stopPropagation','narrowsidebar-attach-already-attached','ready','change:height','destroy','isAttached','content','_integrateWithEditorAnnotations','attach','from','annotations','_detachListeners','execute','narrowsidebar-detach-not-attached','target','register','cancel','locale','pluginName','pin','rearrange','annotationType','_hideBalloon','detach','southArrowNorthWest','EditorAnnotations','_refreshPositioning','_showBalloon','low','requires','has','listenTo','northArrowSouthWest','_updateBalloonPosition','isVisible','values','delete','add','init','focus','bodyCollection','attachToDom','contains','_annotationToNarrowView','northArrowSouth','uiUpdate','removeEventListener','ck-sidebar--narrow','stopListening','first','number','_attachListeners','southArrowNorthEast'];(function(_0x33cd5e,_0x4305c0){const _0x26f935=function(_0x576bf3){while(--_0x576bf3){_0x33cd5e['push'](_0x33cd5e['shift']());}};_0x26f935(++_0x4305c0);}(_0x4305,0x13d));const _0x26f9=function(_0x33cd5e,_0x4305c0){_0x33cd5e=_0x33cd5e-0x0;let _0x26f935=_0x4305[_0x33cd5e];return _0x26f935;};import{ContextPlugin as _0x4e4ef7,Context as _0x55dd71}from'ckeditor5/src/core';import _0xfdb399 from'./annotationsuis';import _0x4b321f from'./sidebar';import _0x20dcf6 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x197e2a,BodyCollection as _0x47a0cf}from'ckeditor5/src/ui';import{CKEditorError as _0x5dd69d,DomEmitterMixin as _0x32336c,keyCodes as _0xdf8c02,Collection as _0x21c513}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x504534}from'lodash-es';import _0x2fffe9 from'./editorannotations';export default class s extends _0x4e4ef7{static get[_0x26f9('0x2f')](){return[_0x4b321f,_0xfdb399];}static get[_0x26f9('0x24')](){return'NarrowSidebar';}constructor(_0x83ab70){super(_0x83ab70),this[_0x26f9('0x17')]=!0x1,this[_0x26f9('0x52')]=new Set(),this[_0x26f9('0x47')]=Object['create'](_0x32336c),this[_0x26f9('0x3d')]=new Map(),this[_0x26f9('0x57')](_0x26f9('0x9'),null),this[_0x26f9('0x1c')]=null,this[_0x26f9('0x6')]=[],this[_0x26f9('0x5f')]=new _0x21c513(),this[_0x26f9('0xa')]=_0x504534(()=>{this[_0x26f9('0x2c')]();},0xfa,{'leading':!0x1});}[_0x26f9('0x38')](){this[_0x26f9('0xf')]['plugins'][_0x26f9('0x11')](_0xfdb399)[_0x26f9('0x21')]('narrowSidebar',this),this['bodyCollection']=new _0x47a0cf(this[_0x26f9('0xf')][_0x26f9('0x23')]),this[_0x26f9('0x51')]=new _0x197e2a(this[_0x26f9('0xf')][_0x26f9('0x23')]),this[_0x26f9('0x3a')][_0x26f9('0x3b')](),this['bodyCollection']['add'](this['balloonPanelView']);}[_0x26f9('0x1a')](_0x2c130d){this[_0x26f9('0x1c')]=_0x2c130d;const _0x2ad7bd=this[_0x26f9('0xf')][_0x26f9('0x4c')][_0x26f9('0x11')](_0x4b321f),_0x487d91=this[_0x26f9('0x51')];if(_0x2ad7bd[_0x26f9('0x4')]=_0x2c130d,this[_0x26f9('0x17')])throw new _0x5dd69d(_0x26f9('0x13'),this);this[_0x26f9('0x17')]=!0x0,this[_0x26f9('0x31')](_0x2ad7bd,'set:container',()=>{this['detach'](),this[_0x26f9('0x31')](_0x2ad7bd,_0x26f9('0x1'),_0x28f7d3=>{_0x28f7d3[_0x26f9('0x4d')](),this[_0x26f9('0x1a')](_0x2c130d);});}),_0x2ad7bd['_attachToContainer']({'viewClass':_0x26f9('0x41'),'spaceBetweenItems':0x5});const _0x1d8f03=_0x173e77=>{const _0x2c6ee7=new _0x20dcf6(this[_0x26f9('0xf')][_0x26f9('0x23')]);_0x2ad7bd['addAnnotation'](_0x173e77,_0x2c6ee7),this['_annotationToNarrowView'][_0x26f9('0x57')](_0x173e77,_0x2c6ee7),_0x2c6ee7['bind']('isDirty',_0x26f9('0x27'),_0x26f9('0x44'))['to'](_0x173e77[_0x26f9('0xe')],'isDirty',_0x26f9('0x5a'),_0x26f9('0x4e')),_0x2c6ee7['on'](_0x26f9('0x1e'),()=>{this[_0x26f9('0x52')]['clear'](),_0x487d91[_0x26f9('0x18')][_0x26f9('0x43')]!==_0x173e77[_0x26f9('0xe')]?(this[_0x26f9('0x2d')](_0x173e77),_0x173e77[_0x26f9('0xe')]['element'][_0x26f9('0x39')](),this[_0x26f9('0x59')](_0x173e77)):this['setActiveAnnotation'](null);});};for(const _0xac49d4 of _0x2c130d)_0x1d8f03(_0xac49d4);this[_0x26f9('0x31')](_0x2c130d,_0x26f9('0x37'),(_0x51e463,_0x439bae)=>{_0x1d8f03(_0x439bae);}),this[_0x26f9('0x31')](_0x2c130d,'remove',(_0x4de4f0,_0x142a3d,_0x2eb61d)=>{this['_annotationToNarrowView'][_0x26f9('0x11')](_0x142a3d)[_0x26f9('0x16')](),this[_0x26f9('0x3d')][_0x26f9('0x36')](_0x142a3d),_0x2ad7bd[_0x26f9('0x26')]({'removedAnnotation':_0x142a3d,'previousAnnotation':_0x2c130d[_0x26f9('0x11')](_0x2eb61d-0x1),'nextAnnotation':_0x2c130d[_0x26f9('0x11')](_0x2eb61d+0x1)}),_0x142a3d===this[_0x26f9('0x9')]&&this['setActiveAnnotation'](null);},{'priority':_0x26f9('0x2e')}),this[_0x26f9('0x31')](_0x2c130d,_0x26f9('0x39'),(_0x859511,_0x26c176)=>{this[_0x26f9('0x59')](_0x26c176);}),this[_0x26f9('0x31')](_0x2c130d,_0x26f9('0x50'),()=>{this['setActiveAnnotation'](null);}),this[_0x26f9('0x47')][_0x26f9('0x31')](document,_0x26f9('0x5'),(_0x4a8af1,_0x368930)=>{_0x368930[_0x26f9('0x8')]===_0xdf8c02['esc']&&_0x487d91[_0x26f9('0x34')]&&(this[_0x26f9('0x52')][_0x26f9('0x37')](_0x487d91[_0x26f9('0x18')][_0x26f9('0x43')]),this[_0x26f9('0x28')](),_0x368930[_0x26f9('0x12')](),_0x368930[_0x26f9('0x5b')]());}),this[_0x26f9('0x47')]['listenTo'](document,'mousedown',(_0x5e2257,_0x57e94b)=>{const _0x388123=_0x57e94b[_0x26f9('0x20')];_0x487d91['isVisible']&&_0x487d91['element'][_0x26f9('0x3c')](_0x388123)||_0x2ad7bd[_0x26f9('0xe')][_0x26f9('0x48')]['contains'](_0x388123)||_0x5e2257['preventClosingBalloon']||this['activeAnnotation']&&this['activeAnnotation']['focusableElements'][_0x26f9('0x4b')](_0x2176bf=>_0x2176bf[_0x26f9('0x3c')](_0x388123))||(this['_manuallyClosedAnnotationViews'][_0x26f9('0x5c')](),this[_0x26f9('0x28')](),this[_0x26f9('0x59')](null));});const _0x5dadbf=this[_0x26f9('0xf')]instanceof _0x55dd71?this[_0x26f9('0xf')][_0x26f9('0x56')]:new _0x21c513([this[_0x26f9('0xf')]]);for(const _0xaccb4f of _0x5dadbf)this[_0x26f9('0x19')](_0xaccb4f);this[_0x26f9('0x31')](_0x5dadbf,_0x26f9('0x37'),(_0x58804a,_0x2195df)=>{this[_0x26f9('0x31')](_0x2195df,_0x26f9('0x14'),()=>{this['_integrateWithEditorAnnotations'](_0x2195df);});}),this[_0x26f9('0x31')](_0x5dadbf,_0x26f9('0x4f'),(_0x500aa0,_0x28388c)=>{_0x28388c['plugins'][_0x26f9('0x30')](_0x26f9('0x2b'))&&this[_0x26f9('0x7')](_0x28388c[_0x26f9('0x4c')]['get']('EditorAnnotations'));}),window[_0x26f9('0x55')](_0x26f9('0x0'),this[_0x26f9('0xa')]),this[_0x26f9('0x2c')]();}['setActiveAnnotation'](_0x2992d6){if(_0x2992d6===this[_0x26f9('0x9')])return;const _0x2554a7=this[_0x26f9('0xf')][_0x26f9('0x4c')][_0x26f9('0x11')](_0x4b321f);if(_0x2554a7[_0x26f9('0x54')]({'blurredAnnotation':this[_0x26f9('0x9')],'activatedAnnotation':_0x2992d6,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2992d6)_0x2554a7['getSidebarItemView'](_0x2992d6)?this[_0x26f9('0x2d')](_0x2992d6):this[_0x26f9('0x28')]();else this[_0x26f9('0x28')]();this[_0x26f9('0x9')]=_0x2992d6;}[_0x26f9('0x29')](){if(!this['isAttached'])throw new _0x5dd69d(_0x26f9('0x1f'),this);this[_0x26f9('0x59')](null);const _0x299bb5=this[_0x26f9('0xf')][_0x26f9('0x4c')][_0x26f9('0x11')](_0x4b321f);this[_0x26f9('0x28')](),Array[_0x26f9('0x1b')](this[_0x26f9('0x3d')][_0x26f9('0x35')](),_0x2b7f40=>_0x2b7f40[_0x26f9('0x16')]()),this[_0x26f9('0x3d')][_0x26f9('0x5c')](),_0x299bb5[_0x26f9('0x4a')](this[_0x26f9('0x1c')]),this['stopListening'](),this[_0x26f9('0x47')]['stopListening'](),this[_0x26f9('0xf')]instanceof _0x55dd71&&this[_0x26f9('0x42')](this[_0x26f9('0xf')]['editors']);for(const _0x366be2 of Array[_0x26f9('0x1b')](this[_0x26f9('0x5f')]))this['_destroyEditorAnnotationsIntegration'](_0x366be2);window[_0x26f9('0x40')](_0x26f9('0x0'),this[_0x26f9('0xa')]),this[_0x26f9('0xa')][_0x26f9('0x22')](),this[_0x26f9('0x6')]=[],this[_0x26f9('0x17')]=!0x1,this[_0x26f9('0x1c')]=null;}[_0x26f9('0x16')](){this[_0x26f9('0x17')]&&this[_0x26f9('0x29')](),this[_0x26f9('0x3a')]['detachFromDom']();}['_integrateWithEditorAnnotations'](_0x34fa65){const _0x4243ee=_0x34fa65[_0x26f9('0x4c')][_0x26f9('0x11')](_0x2fffe9),_0x52b70b=this[_0x26f9('0xf')][_0x26f9('0x4c')]['get'](_0x4b321f),_0x520724=this[_0x26f9('0x1c')],_0x1eea17=this[_0x26f9('0x51')],_0xd5539f=()=>{const _0x3b3e8a=_0x4243ee[_0x26f9('0x60')]({'annotations':this[_0x26f9('0x1c')],'activeAnnotation':this[_0x26f9('0x9')]});this['_setSelectedAnnotations'](_0x3b3e8a),this[_0x26f9('0x59')](_0x3b3e8a[0x0]||null);};this['listenTo'](_0x4243ee,_0x26f9('0x54'),_0xd5539f),this['listenTo'](_0x4243ee,_0x26f9('0x50'),(_0x4350d9,{isAnnotationTracked:_0x46c275})=>{this[_0x26f9('0x9')]&&_0x46c275(this[_0x26f9('0x9')])&&(this[_0x26f9('0xc')]([]),this[_0x26f9('0x59')](null));}),this[_0x26f9('0x31')](_0x4243ee,_0x26f9('0x3f'),()=>{this[_0x26f9('0xa')]();}),this['listenTo'](_0x520724,'blur',_0x3039aa=>{_0x4243ee[_0x26f9('0x10')]()&&_0x3039aa[_0x26f9('0x5d')]();},{'priority':_0x26f9('0x2')}),this['listenTo'](this[_0x26f9('0x47')],'mousedown',(_0x391e59,_0x339a9e)=>{const _0x3d7475=_0x339a9e[_0x26f9('0x20')];_0x1eea17[_0x26f9('0x34')]&&_0x1eea17[_0x26f9('0x48')]['contains'](_0x3d7475)||_0x52b70b[_0x26f9('0xe')][_0x26f9('0x48')][_0x26f9('0x3c')](_0x3d7475)||this[_0x26f9('0x9')]&&_0x4243ee[_0x26f9('0x10')]()&&(_0xd5539f(),_0x391e59[_0x26f9('0x3')]=!0x0);},{'priority':_0x26f9('0x2')}),this[_0x26f9('0x5f')][_0x26f9('0x37')](_0x4243ee);}[_0x26f9('0x7')](_0x457b0b){_0x457b0b&&(this[_0x26f9('0x42')](_0x457b0b),this[_0x26f9('0x5f')][_0x26f9('0x4f')](_0x457b0b));}[_0x26f9('0xc')](_0xeec31b){for(const _0x301f1c of this[_0x26f9('0x6')])_0xeec31b[_0x26f9('0xd')](_0x301f1c)||this[_0x26f9('0x52')][_0x26f9('0x36')](_0x301f1c[_0x26f9('0xe')]);this['_selectedAnnotations']=_0xeec31b;}[_0x26f9('0x2c')](){const _0x3f95e2=this['balloonPanelView'];this[_0x26f9('0x1c')][_0x26f9('0x49')](),_0x3f95e2[_0x26f9('0x34')]&&this[_0x26f9('0x33')]();}[_0x26f9('0x2d')](_0x3839f4){if(this[_0x26f9('0x52')]['has'](_0x3839f4[_0x26f9('0xe')]))return;const _0x652ead=this['balloonPanelView'][_0x26f9('0x18')][_0x26f9('0x43')];_0x652ead!==_0x3839f4[_0x26f9('0xe')]?(_0x652ead&&this[_0x26f9('0x1d')](_0x652ead),this[_0x26f9('0x45')](_0x3839f4['view']),this[_0x26f9('0x51')]['content'][_0x26f9('0x5c')](),this['balloonPanelView']['content'][_0x26f9('0x37')](_0x3839f4[_0x26f9('0xe')]),this[_0x26f9('0x33')]()):this['_updateBalloonPosition']();}[_0x26f9('0x33')](){const _0x50612a=this[_0x26f9('0x51')][_0x26f9('0x18')][_0x26f9('0x43')],_0x39270b=_0x50612a&&this[_0x26f9('0x1c')][_0x26f9('0x58')](_0x50612a);if(!_0x39270b||!this[_0x26f9('0x3d')][_0x26f9('0x30')](_0x39270b))return;const _0x2ad00b=this[_0x26f9('0x3d')][_0x26f9('0x11')](_0x39270b)[_0x26f9('0x48')],_0x3d2a54=function(){const _0x3b0717=_0x197e2a['defaultPositions'];return[_0x3b0717[_0x26f9('0x46')],_0x3b0717[_0x26f9('0x5e')],_0x3b0717[_0x26f9('0xb')],_0x3b0717[_0x26f9('0x3e')],_0x3b0717[_0x26f9('0x2a')],_0x3b0717[_0x26f9('0x32')]];}();this[_0x26f9('0x51')][_0x26f9('0x25')]({'target':_0x2ad00b,'positions':_0x3d2a54});}[_0x26f9('0x28')](){const _0x6b33c7=this[_0x26f9('0x51')],_0x32731a=_0x6b33c7['content'][_0x26f9('0x43')];_0x32731a&&(this[_0x26f9('0x1d')](_0x32731a),_0x6b33c7['unpin'](),_0x6b33c7[_0x26f9('0x18')]['clear']());}[_0x26f9('0x45')](_0xe757f5){this[_0x26f9('0x31')](_0xe757f5,_0x26f9('0x15'),()=>this[_0x26f9('0x33')]()),this['listenTo'](_0xe757f5,_0x26f9('0x53'),(_0x37b8b4,_0x3285a7)=>{this[_0x26f9('0x52')][_0x26f9('0x37')](_0xe757f5),this['_hideBalloon'](),_0x3285a7();});}[_0x26f9('0x1d')](_0x12aff0){this[_0x26f9('0x42')](_0x12aff0);}}
23
+ const _0x38b3=['focus','_editorAnnotations','_annotationToNarrowView','EditorAnnotations','change:height','activeAnnotation','bodyCollection','setActiveAnnotation','contains','includes','blur','attach','pin','_hideBalloon','set','register','has','listenTo','_destroyEditorAnnotationsIntegration','_updateBalloonPosition','init','detach','refreshPositioning','resize','Esc','stop','clear','low','add','northArrowSouthEast','getOrderedSelectedAnnotations','narrowSidebar','destroy','_manuallyClosedAnnotationViews','narrowsidebar-detach-not-attached','set:container','_selectedAnnotations','cancel','get','rearrange','addEventListener','_detachListeners','_setSelectedAnnotations','annotationType','annotations','_attachToContainer','attachToDom','southArrowNorth','context','refresh','bind','_domEmitter','preventDefault','isAttached','hasDomSelection','content','_refreshPositioningDebounced','first','element','locale','isDirty','execute','off','plugins','getByView','delete','preventClosingBalloon','southArrowNorthEast','keydown','defaultPositions','_refreshPositioning','mousedown','view','southArrowNorthWest','target','_detachFromContainer','isVisible','remove','balloonPanelView','detachFromDom','_integrateWithEditorAnnotations','values','length','stopListening','change:container','_attachListeners','ready','NarrowSidebar','number','requires','from','focusableElements','editors','keyCode'];(function(_0x325f08,_0x38b3dc){const _0x42959d=function(_0x3e9409){while(--_0x3e9409){_0x325f08['push'](_0x325f08['shift']());}};_0x42959d(++_0x38b3dc);}(_0x38b3,0x137));const _0x4295=function(_0x325f08,_0x38b3dc){_0x325f08=_0x325f08-0x0;let _0x42959d=_0x38b3[_0x325f08];return _0x42959d;};import{ContextPlugin as _0x4c3c0c,Context as _0x5bbeb7}from'ckeditor5/src/core';import _0x2a61b4 from'./annotationsuis';import _0x221b57 from'./sidebar';import _0x324b8d from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x43b2c0,BodyCollection as _0x4922a6}from'ckeditor5/src/ui';import{CKEditorError as _0x5d1076,DomEmitterMixin as _0x59b009,keyCodes as _0x190012,Collection as _0x2b41ea}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x809a02}from'lodash-es';import _0x183cff from'./editorannotations';export default class s extends _0x4c3c0c{static get[_0x4295('0x3c')](){return[_0x221b57,_0x2a61b4];}static get['pluginName'](){return _0x4295('0x3a');}constructor(_0x56aeac){super(_0x56aeac),this[_0x4295('0x18')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x59b009),this['_annotationToNarrowView']=new Map(),this[_0x4295('0x4f')](_0x4295('0x46'),null),this['annotations']=null,this[_0x4295('0x7')]=[],this[_0x4295('0x42')]=new _0x2b41ea(),this[_0x4295('0x1b')]=_0x809a02(()=>{this[_0x4295('0x29')]();},0xfa,{'leading':!0x1});}[_0x4295('0x55')](){this[_0x4295('0x13')][_0x4295('0x22')][_0x4295('0x9')](_0x2a61b4)[_0x4295('0x50')](_0x4295('0x2'),this),this['bodyCollection']=new _0x4922a6(this[_0x4295('0x13')]['locale']),this[_0x4295('0x31')]=new _0x43b2c0(this[_0x4295('0x13')][_0x4295('0x1e')]),this[_0x4295('0x47')][_0x4295('0x11')](),this[_0x4295('0x47')][_0x4295('0x5d')](this['balloonPanelView']);}[_0x4295('0x4c')](_0xea1cd6){this[_0x4295('0xf')]=_0xea1cd6;const _0x33178b=this[_0x4295('0x13')][_0x4295('0x22')][_0x4295('0x9')](_0x221b57),_0x58a8cb=this[_0x4295('0x31')];if(_0x33178b['_annotations']=_0xea1cd6,this[_0x4295('0x18')])throw new _0x5d1076('narrowsidebar-attach-already-attached',this);this['isAttached']=!0x0,this[_0x4295('0x52')](_0x33178b,_0x4295('0x6'),()=>{this[_0x4295('0x56')](),this[_0x4295('0x52')](_0x33178b,_0x4295('0x37'),_0x21048b=>{_0x21048b[_0x4295('0x21')](),this[_0x4295('0x4c')](_0xea1cd6);});}),_0x33178b[_0x4295('0x10')]({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x28312e=_0x38cdc8=>{const _0x690a07=new _0x324b8d(this[_0x4295('0x13')][_0x4295('0x1e')]);_0x33178b['addAnnotation'](_0x38cdc8,_0x690a07),this[_0x4295('0x43')][_0x4295('0x4f')](_0x38cdc8,_0x690a07),_0x690a07[_0x4295('0x15')](_0x4295('0x1f'),_0x4295('0xe'),_0x4295('0x3b'))['to'](_0x38cdc8[_0x4295('0x2b')],_0x4295('0x1f'),'type',_0x4295('0x35')),_0x690a07['on'](_0x4295('0x20'),()=>{this[_0x4295('0x4')][_0x4295('0x5b')](),_0x58a8cb['content'][_0x4295('0x1c')]!==_0x38cdc8['view']?(this['_showBalloon'](_0x38cdc8),_0x38cdc8['view'][_0x4295('0x1d')][_0x4295('0x41')](),this[_0x4295('0x48')](_0x38cdc8)):this['setActiveAnnotation'](null);});};for(const _0x2e245b of _0xea1cd6)_0x28312e(_0x2e245b);this['listenTo'](_0xea1cd6,_0x4295('0x5d'),(_0x156482,_0x113d76)=>{_0x28312e(_0x113d76);}),this[_0x4295('0x52')](_0xea1cd6,_0x4295('0x30'),(_0x18b1ca,_0x30bdf6,_0x56bda3)=>{this[_0x4295('0x43')][_0x4295('0x9')](_0x30bdf6)[_0x4295('0x3')](),this[_0x4295('0x43')][_0x4295('0x24')](_0x30bdf6),_0x33178b[_0x4295('0xa')]({'removedAnnotation':_0x30bdf6,'previousAnnotation':_0xea1cd6['get'](_0x56bda3-0x1),'nextAnnotation':_0xea1cd6[_0x4295('0x9')](_0x56bda3+0x1)}),_0x30bdf6===this[_0x4295('0x46')]&&this[_0x4295('0x48')](null);},{'priority':_0x4295('0x5c')}),this[_0x4295('0x52')](_0xea1cd6,_0x4295('0x41'),(_0x3d42ec,_0x3e530e)=>{this['setActiveAnnotation'](_0x3e530e);}),this[_0x4295('0x52')](_0xea1cd6,_0x4295('0x4b'),()=>{this['setActiveAnnotation'](null);}),this[_0x4295('0x16')][_0x4295('0x52')](document,_0x4295('0x27'),(_0x308b47,_0x322f2b)=>{_0x322f2b[_0x4295('0x40')]===_0x190012['esc']&&_0x58a8cb[_0x4295('0x2f')]&&(this['_manuallyClosedAnnotationViews'][_0x4295('0x5d')](_0x58a8cb[_0x4295('0x1a')][_0x4295('0x1c')]),this[_0x4295('0x4e')](),_0x322f2b['stopPropagation'](),_0x322f2b[_0x4295('0x17')]());}),this[_0x4295('0x16')][_0x4295('0x52')](document,_0x4295('0x2a'),(_0x59b5b5,_0x190acb)=>{const _0x554a18=_0x190acb['target'];_0x58a8cb['isVisible']&&_0x58a8cb[_0x4295('0x1d')][_0x4295('0x49')](_0x554a18)||_0x33178b[_0x4295('0x2b')][_0x4295('0x1d')][_0x4295('0x49')](_0x554a18)||_0x59b5b5[_0x4295('0x25')]||this[_0x4295('0x46')]&&this['activeAnnotation'][_0x4295('0x3e')]['find'](_0x3bde75=>_0x3bde75[_0x4295('0x49')](_0x554a18))||(this[_0x4295('0x4')][_0x4295('0x5b')](),this[_0x4295('0x4e')](),this[_0x4295('0x48')](null));});const _0x21e406=this['context']instanceof _0x5bbeb7?this[_0x4295('0x13')]['editors']:new _0x2b41ea([this['context']]);for(const _0x17e254 of _0x21e406)this[_0x4295('0x33')](_0x17e254);this[_0x4295('0x52')](_0x21e406,'add',(_0x147ba0,_0x3841f1)=>{this[_0x4295('0x52')](_0x3841f1,_0x4295('0x39'),()=>{this[_0x4295('0x33')](_0x3841f1);});}),this[_0x4295('0x52')](_0x21e406,_0x4295('0x30'),(_0x3ea9aa,_0x528292)=>{_0x528292[_0x4295('0x22')][_0x4295('0x51')](_0x4295('0x44'))&&this[_0x4295('0x53')](_0x528292[_0x4295('0x22')][_0x4295('0x9')](_0x4295('0x44')));}),window[_0x4295('0xb')]('resize',this[_0x4295('0x1b')]),this[_0x4295('0x29')]();}[_0x4295('0x48')](_0x4d3b67){if(_0x4d3b67===this[_0x4295('0x46')])return;const _0x3a4d47=this[_0x4295('0x13')][_0x4295('0x22')]['get'](_0x221b57);if(_0x3a4d47[_0x4295('0x14')]({'blurredAnnotation':this[_0x4295('0x46')],'activatedAnnotation':_0x4d3b67,'disableAnimationOnActivatedAnnotation':!0x0}),_0x4d3b67)_0x3a4d47['getSidebarItemView'](_0x4d3b67)?this['_showBalloon'](_0x4d3b67):this[_0x4295('0x4e')]();else this[_0x4295('0x4e')]();this[_0x4295('0x46')]=_0x4d3b67;}[_0x4295('0x56')](){if(!this[_0x4295('0x18')])throw new _0x5d1076(_0x4295('0x5'),this);this[_0x4295('0x48')](null);const _0x47fa57=this[_0x4295('0x13')][_0x4295('0x22')][_0x4295('0x9')](_0x221b57);this[_0x4295('0x4e')](),Array[_0x4295('0x3d')](this[_0x4295('0x43')][_0x4295('0x34')](),_0x9384e2=>_0x9384e2['destroy']()),this[_0x4295('0x43')][_0x4295('0x5b')](),_0x47fa57[_0x4295('0x2e')](this[_0x4295('0xf')]),this[_0x4295('0x36')](),this[_0x4295('0x16')]['stopListening'](),this[_0x4295('0x13')]instanceof _0x5bbeb7&&this[_0x4295('0x36')](this[_0x4295('0x13')][_0x4295('0x3f')]);for(const _0x2aad1d of Array[_0x4295('0x3d')](this['_editorAnnotations']))this[_0x4295('0x53')](_0x2aad1d);window['removeEventListener'](_0x4295('0x58'),this['_refreshPositioningDebounced']),this[_0x4295('0x1b')][_0x4295('0x8')](),this[_0x4295('0x7')]=[],this[_0x4295('0x18')]=!0x1,this[_0x4295('0xf')]=null;}['destroy'](){this[_0x4295('0x18')]&&this[_0x4295('0x56')](),this['bodyCollection'][_0x4295('0x32')]();}[_0x4295('0x33')](_0x3d9298){const _0x583bdf=_0x3d9298[_0x4295('0x22')][_0x4295('0x9')](_0x183cff),_0x56ea4c=this[_0x4295('0x13')][_0x4295('0x22')][_0x4295('0x9')](_0x221b57),_0x2cf901=this[_0x4295('0xf')],_0x42dd64=this[_0x4295('0x31')],_0x5a6649=()=>{const _0x41c8e2=_0x583bdf[_0x4295('0x1')]({'annotations':this[_0x4295('0xf')],'activeAnnotation':this[_0x4295('0x46')]});this[_0x4295('0xd')](_0x41c8e2),this[_0x4295('0x48')](_0x41c8e2[0x0]||null);};this['listenTo'](_0x583bdf,'refresh',_0x5a6649),this[_0x4295('0x52')](_0x583bdf,_0x4295('0x4b'),(_0x4bee64,{isAnnotationTracked:_0x3da401})=>{this['activeAnnotation']&&_0x3da401(this[_0x4295('0x46')])&&(this[_0x4295('0xd')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](_0x583bdf,'uiUpdate',()=>{this[_0x4295('0x1b')]();}),this[_0x4295('0x52')](_0x2cf901,_0x4295('0x4b'),_0x1c934f=>{_0x583bdf[_0x4295('0x19')]()&&_0x1c934f[_0x4295('0x5a')]();},{'priority':'high'}),this['listenTo'](this['_domEmitter'],_0x4295('0x2a'),(_0x568bb5,_0x142251)=>{const _0x5d4c09=_0x142251[_0x4295('0x2d')];_0x42dd64['isVisible']&&_0x42dd64[_0x4295('0x1d')][_0x4295('0x49')](_0x5d4c09)||_0x56ea4c[_0x4295('0x2b')][_0x4295('0x1d')][_0x4295('0x49')](_0x5d4c09)||this[_0x4295('0x46')]&&_0x583bdf[_0x4295('0x19')]()&&(_0x5a6649(),_0x568bb5[_0x4295('0x25')]=!0x0);},{'priority':'high'}),this['_editorAnnotations']['add'](_0x583bdf);}[_0x4295('0x53')](_0x5e7f78){_0x5e7f78&&(this[_0x4295('0x36')](_0x5e7f78),this[_0x4295('0x42')][_0x4295('0x30')](_0x5e7f78));}['_setSelectedAnnotations'](_0x4cd6aa){for(const _0x4a9991 of this[_0x4295('0x7')])_0x4cd6aa[_0x4295('0x4a')](_0x4a9991)||this['_manuallyClosedAnnotationViews'][_0x4295('0x24')](_0x4a9991['view']);this[_0x4295('0x7')]=_0x4cd6aa;}[_0x4295('0x29')](){const _0x1f44de=this[_0x4295('0x31')];this[_0x4295('0xf')][_0x4295('0x57')](),_0x1f44de[_0x4295('0x2f')]&&this[_0x4295('0x54')]();}['_showBalloon'](_0x57ab06){if(this[_0x4295('0x4')]['has'](_0x57ab06[_0x4295('0x2b')]))return;const _0x3ffbfa=this[_0x4295('0x31')]['content'][_0x4295('0x1c')];_0x3ffbfa!==_0x57ab06['view']?(_0x3ffbfa&&this['_detachListeners'](_0x3ffbfa),this[_0x4295('0x38')](_0x57ab06['view']),this[_0x4295('0x31')][_0x4295('0x1a')][_0x4295('0x5b')](),this[_0x4295('0x31')]['content'][_0x4295('0x5d')](_0x57ab06[_0x4295('0x2b')]),this[_0x4295('0x54')]()):this[_0x4295('0x54')]();}['_updateBalloonPosition'](){const _0x523410=this[_0x4295('0x31')]['content'][_0x4295('0x1c')],_0x5d5f88=_0x523410&&this[_0x4295('0xf')][_0x4295('0x23')](_0x523410);if(!_0x5d5f88||!this[_0x4295('0x43')][_0x4295('0x51')](_0x5d5f88))return;const _0x3c9038=this[_0x4295('0x43')]['get'](_0x5d5f88)[_0x4295('0x1d')],_0x7abfe7=function(){const _0x1a3185=_0x43b2c0[_0x4295('0x28')];return[_0x1a3185[_0x4295('0x26')],_0x1a3185[_0x4295('0x0')],_0x1a3185[_0x4295('0x12')],_0x1a3185['northArrowSouth'],_0x1a3185[_0x4295('0x2c')],_0x1a3185['northArrowSouthWest']];}();this[_0x4295('0x31')][_0x4295('0x4d')]({'target':_0x3c9038,'positions':_0x7abfe7});}['_hideBalloon'](){const _0x5c6421=this[_0x4295('0x31')],_0x1aff3d=_0x5c6421[_0x4295('0x1a')][_0x4295('0x1c')];_0x1aff3d&&(this[_0x4295('0xc')](_0x1aff3d),_0x5c6421['unpin'](),_0x5c6421[_0x4295('0x1a')][_0x4295('0x5b')]());}[_0x4295('0x38')](_0x1d1b15){this['listenTo'](_0x1d1b15,_0x4295('0x45'),()=>this['_updateBalloonPosition']()),this[_0x4295('0x52')](_0x1d1b15,_0x4295('0x59'),(_0x2aaa9b,_0x558550)=>{this[_0x4295('0x4')][_0x4295('0x5d')](_0x1d1b15),this[_0x4295('0x4e')](),_0x558550();});}[_0x4295('0xc')](_0x89e53f){this['stopListening'](_0x89e53f);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x57bc=['unbind','content','context','_activeAnnotation','sidebar-attachtocontainer-missing-container','minHeight','bind','Sidebar','sidebar-setcontainer-invalid-element','class','_recalculate','add','_createSidebarView','_annotations','change:bottom','getIndex','_destroySidebarItemView','view','listenTo','bottom','last','delete','target','_targetTop','_annotationToSidebarItemView','isAnimationDisabled','render','max','define','_getTargetTop','list','_attachToContainer','_setItemTop','object','_spaceBetweenItems','change:_lastItem','_recalculateBuffer','stopListening','clear','length','change:top','_sidebarItemViewToAnnotation','_alignBeforeItem','locale','init','push','get','config','_getItemBefore','_lastItem','sidebar.preventScrollOutOfView','updateHeight','_alignForTopChange','_updateLastItem','getSidebarItemView','top','remove','_getItemAfter','_alignForBottomChange','destroy','set','setContainer','element','rearrange','addAnnotation','_alignAfterItem','isActive','container'];(function(_0x7e4833,_0x57bc89){const _0x310f28=function(_0x16610f){while(--_0x16610f){_0x7e4833['push'](_0x7e4833['shift']());}};_0x310f28(++_0x57bc89);}(_0x57bc,0x85));const _0x310f=function(_0x7e4833,_0x57bc89){_0x7e4833=_0x7e4833-0x0;let _0x310f28=_0x57bc[_0x7e4833];return _0x310f28;};import{ContextPlugin as _0x189ad6}from'ckeditor5/src/core';import{Rect as _0x5e43c7,CKEditorError as _0x2c725b}from'ckeditor5/src/utils';import _0x28fafc from'./view/sidebarview';import _0x103a9b from'./view/sidebaritemview';export default class z extends _0x189ad6{static get['pluginName'](){return _0x310f('0xa');}constructor(_0x359a52){super(_0x359a52),this[_0x310f('0x3f')]('_lastItem',void 0x0),this[_0x310f('0x14')]=this[_0x310f('0xf')](),this[_0x310f('0x3f')]('container',null),this[_0x310f('0x25')]=0x19,this[_0x310f('0x2c')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this['context'][_0x310f('0x32')][_0x310f('0x1f')](_0x310f('0x35'),!0x1),this[_0x310f('0x10')]=null,this[_0x310f('0x6')]=null,this[_0x310f('0x27')]=[];}[_0x310f('0x2f')](){const _0x3e24a9=this[_0x310f('0x5')][_0x310f('0x32')][_0x310f('0x31')]('sidebar.container');_0x3e24a9&&this[_0x310f('0x40')](_0x3e24a9);}[_0x310f('0x40')](_0x5ac23a){if(!y(_0x5ac23a))throw new _0x2c725b(_0x310f('0xb'));this[_0x310f('0x2')]=_0x5ac23a;}[_0x310f('0x22')]({viewClass:_0x3d2ac7='',spaceBetweenItems:_0xabbc1c=0x19}={}){if(!y(this[_0x310f('0x2')]))throw new _0x2c725b(_0x310f('0x7'),this);this[_0x310f('0x2')]['appendChild'](this['view']['element']),this['view'][_0x310f('0xc')]=_0x3d2ac7,this[_0x310f('0x25')]=_0xabbc1c;}[_0x310f('0x42')]({removedAnnotation:_0x18e5f5,previousAnnotation:_0x11720a,nextAnnotation:_0x1f77a8}){const _0x45973c=this['getSidebarItemView'](_0x18e5f5);this[_0x310f('0x14')][_0x310f('0x21')][_0x310f('0x3b')](_0x45973c),this[_0x310f('0x13')](_0x18e5f5),_0x11720a&&this['_alignToTargetRect'](this[_0x310f('0x39')](_0x11720a)),_0x1f77a8&&this['_alignToTargetRect'](this[_0x310f('0x39')](_0x1f77a8)),this[_0x310f('0x38')]();}['refresh']({blurredAnnotation:_0x21746c,activatedAnnotation:_0x2cab24,disableAnimationOnActivatedAnnotation:_0x4911cb}){if(this[_0x310f('0x6')]=_0x2cab24,_0x21746c){_0x21746c[_0x310f('0x1')]=!0x1;const _0x34895a=this['getSidebarItemView'](_0x21746c);_0x34895a&&_0x4911cb&&(_0x34895a[_0x310f('0x1c')]=!0x1);}if(_0x2cab24){const _0x3005cb=this['getSidebarItemView'](_0x2cab24);_0x3005cb&&(_0x2cab24[_0x310f('0x1')]=!0x0,_0x4911cb&&(_0x3005cb['isAnimationDisabled']=!0x0,_0x3005cb['top']+=0x1),this['_alignToTargetRect'](_0x3005cb));}}['_detachFromContainer'](_0x5f2b5d){if(this[_0x310f('0x14')][_0x310f('0x41')][_0x310f('0x3b')](),_0x5f2b5d)for(const _0x54679f of _0x5f2b5d)this[_0x310f('0x13')](_0x54679f);this[_0x310f('0x14')][_0x310f('0x21')][_0x310f('0x29')](),this[_0x310f('0x14')][_0x310f('0xc')]='',this[_0x310f('0x34')]=null;}[_0x310f('0x43')](_0x46f998,_0x248bea){_0x248bea||(_0x248bea=_0x46f998[_0x310f('0x14')]);const _0x458816=new _0x103a9b(this['context'][_0x310f('0x2e')]);this[_0x310f('0x2c')][_0x310f('0x3f')](_0x458816,_0x46f998),this[_0x310f('0x1b')]['set'](_0x46f998,_0x458816),_0x458816[_0x310f('0x4')][_0x310f('0xe')](_0x248bea),this[_0x310f('0x15')](_0x46f998[_0x310f('0x14')],'change:targetRect',(_0x380158,_0x5c9422,_0x3f9a91)=>{const _0x23ccad=this[_0x310f('0x20')](_0x46f998,_0x3f9a91);_0x458816[_0x310f('0x1a')]!=_0x23ccad&&(_0x458816[_0x310f('0x1a')]=_0x23ccad,this[_0x310f('0x23')](_0x458816,_0x23ccad));}),this[_0x310f('0x15')](_0x458816,_0x310f('0x2b'),()=>{this['_recalculate'](_0x458816,_0x310f('0x3a'));}),this[_0x310f('0x15')](_0x458816,_0x310f('0x11'),()=>{this[_0x310f('0xd')](_0x458816,_0x310f('0x16'));}),this['_alignToTargetRect'](_0x458816);const _0x1b2dc4=this[_0x310f('0x33')](_0x458816);if(_0x1b2dc4)this[_0x310f('0x0')](_0x1b2dc4,_0x458816)||this['_alignToTargetRect'](_0x458816);else this['_alignToTargetRect'](_0x458816);return this[_0x310f('0x38')](),this[_0x310f('0x14')][_0x310f('0x21')][_0x310f('0xe')](_0x458816),_0x458816;}['_alignForTopChange'](_0x4d3823){if(!_0x4d3823[_0x310f('0x4')]['length'])return;const _0x511dde=this[_0x310f('0x33')](_0x4d3823);if(!_0x511dde)return;const _0x11facc=this[_0x310f('0x2c')]['get'](_0x511dde),_0x4ea4ee=this['_activeAnnotation'];_0x4ea4ee&&_0x4ea4ee===_0x11facc?this[_0x310f('0x0')](_0x511dde,_0x4d3823):this[_0x310f('0x2d')](_0x4d3823,_0x511dde);}[_0x310f('0x3d')](_0x53559c){if(!_0x53559c[_0x310f('0x4')][_0x310f('0x2a')])return;const _0x2115e8=this[_0x310f('0x3c')](_0x53559c);if(!_0x2115e8)return;const _0x21ef2f=this[_0x310f('0x2c')][_0x310f('0x31')](_0x2115e8),_0x1cf946=this[_0x310f('0x5')][_0x310f('0x32')]['get'](_0x310f('0x35')),_0x1eaa2a=this[_0x310f('0x6')];_0x1eaa2a&&_0x1eaa2a===_0x21ef2f&&_0x1cf946?(this[_0x310f('0x2d')](_0x2115e8,_0x53559c),this['_alignAfterItem'](_0x53559c,_0x2115e8)):_0x1eaa2a&&_0x1eaa2a===_0x21ef2f?this[_0x310f('0x2d')](_0x2115e8,_0x53559c):this['_alignAfterItem'](_0x53559c,_0x2115e8);}[_0x310f('0xd')](_0x3b8101,_0x59f7bd){0x0===this[_0x310f('0x27')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x3c1ad8,changedProp:_0x291d61}of this[_0x310f('0x27')])_0x310f('0x3a')===_0x291d61?this[_0x310f('0x37')](_0x3c1ad8):this['_alignForBottomChange'](_0x3c1ad8);this[_0x310f('0x27')]=[];},0xa),this[_0x310f('0x27')][_0x310f('0x30')]({'sidebarItemView':_0x3b8101,'changedProp':_0x59f7bd});}[_0x310f('0x39')](_0x5a0043){return this[_0x310f('0x1b')][_0x310f('0x31')](_0x5a0043);}[_0x310f('0x3e')](){this[_0x310f('0x28')](),this[_0x310f('0x14')][_0x310f('0x3e')]();}[_0x310f('0x13')](_0x2cf80e){const _0x176a87=this[_0x310f('0x39')](_0x2cf80e);this[_0x310f('0x28')](_0x176a87),this[_0x310f('0x28')](_0x2cf80e['view']),_0x176a87[_0x310f('0x3e')](),this[_0x310f('0x1b')][_0x310f('0x18')](_0x2cf80e),this['_sidebarItemViewToAnnotation'][_0x310f('0x18')](_0x176a87);}[_0x310f('0xf')](){const _0x30bdc5=new _0x28fafc(this[_0x310f('0x5')][_0x310f('0x2e')]);return _0x30bdc5[_0x310f('0x1d')](),this['on'](_0x310f('0x26'),(_0x24c0d8,_0x14e315,_0x254f8c,_0x2cd8e6)=>{_0x2cd8e6&&_0x30bdc5[_0x310f('0x3')](_0x310f('0x8')),_0x254f8c?_0x30bdc5[_0x310f('0x9')](_0x310f('0x8'))['to'](_0x254f8c,_0x310f('0x16')):_0x30bdc5[_0x310f('0x8')]=null;}),_0x30bdc5;}['_updateLastItem'](){var _0x355388;this[_0x310f('0x34')]=(null===(_0x355388=this[_0x310f('0x10')])||void 0x0===_0x355388?void 0x0:_0x355388[_0x310f('0x17')])?this[_0x310f('0x39')](this[_0x310f('0x10')][_0x310f('0x17')]):null;}[_0x310f('0x33')](_0x48fe79){var _0x51a2cf;const _0x175c19=this['_sidebarItemViewToAnnotation'][_0x310f('0x31')](_0x48fe79),_0x4c9b6e=_0x175c19&&(null===(_0x51a2cf=this[_0x310f('0x10')])||void 0x0===_0x51a2cf?void 0x0:_0x51a2cf[_0x310f('0x31')](this[_0x310f('0x10')]['getIndex'](_0x175c19)-0x1));return _0x4c9b6e&&this['getSidebarItemView'](_0x4c9b6e)||null;}['_getItemAfter'](_0x2d04c8){var _0x292a0e;const _0x42bb9a=this['_sidebarItemViewToAnnotation'][_0x310f('0x31')](_0x2d04c8),_0x3c820e=_0x42bb9a&&(null===(_0x292a0e=this['_annotations'])||void 0x0===_0x292a0e?void 0x0:_0x292a0e[_0x310f('0x31')](this[_0x310f('0x10')][_0x310f('0x12')](_0x42bb9a)+0x1));return _0x3c820e&&this[_0x310f('0x39')](_0x3c820e)||null;}[_0x310f('0x2d')](_0x14a015,_0x5d0c60){_0x14a015[_0x310f('0x36')]();const _0x560136=H(_0x5d0c60[_0x310f('0x16')]+this['_spaceBetweenItems'],_0x14a015[_0x310f('0x3a')]);return!!_0x560136&&(this[_0x310f('0x23')](_0x5d0c60,_0x5d0c60[_0x310f('0x3a')]-_0x560136),!0x0);}[_0x310f('0x0')](_0x57a370,_0x22c474){_0x57a370[_0x310f('0x36')]();const _0x29c962=H(_0x57a370[_0x310f('0x16')]+this[_0x310f('0x25')],_0x22c474['top']);return!!_0x29c962&&(this[_0x310f('0x23')](_0x22c474,_0x22c474['top']+_0x29c962,!0x1),!0x0);}['_alignToTargetRect'](_0x46e059){const _0x581b65=this[_0x310f('0x2c')][_0x310f('0x31')](_0x46e059);if(!_0x581b65||!_0x581b65[_0x310f('0x19')]||!_0x581b65['targetRect'])return;const _0x54419b=this['_getTargetTop'](_0x581b65,_0x581b65['targetRect']);this[_0x310f('0x23')](_0x46e059,_0x54419b);}[_0x310f('0x20')](_0x8dbaab,_0x1f42a8){if(null===_0x1f42a8)return 0x0;if(_0x8dbaab['target']instanceof _0x5e43c7)return _0x1f42a8[_0x310f('0x3a')];{const _0x46f211=new _0x5e43c7(this[_0x310f('0x14')]['element'])[_0x310f('0x3a')];return _0x1f42a8[_0x310f('0x3a')]-_0x46f211;}}['_setItemTop'](_0x1c18fc,_0x34b873,_0x17200a=this['context'][_0x310f('0x32')][_0x310f('0x31')](_0x310f('0x35'))){_0x17200a&&(_0x34b873=Math[_0x310f('0x1e')](_0x34b873,this['_getMaxAvailableTop'](_0x1c18fc))),_0x1c18fc[_0x310f('0x3a')]=_0x34b873;}['_getMaxAvailableTop'](_0x46a687){let _0x487c7c=this[_0x310f('0x33')](_0x46a687),_0xec23ec=0x0;for(;_0x487c7c;)_0x487c7c[_0x310f('0x36')](),_0xec23ec+=this[_0x310f('0x25')]+_0x487c7c['height'],_0x487c7c=this[_0x310f('0x33')](_0x487c7c);return _0xec23ec;}}function H(_0x2c1224,_0xed06eb){return Math['max'](_0x2c1224-_0xed06eb,0x0);}function y(_0x3c2355){return null!==_0x3c2355&&_0x310f('0x24')==typeof _0x3c2355&&0x1===_0x3c2355['nodeType'];}
23
+ const _0x2f9b=['_alignForTopChange','_updateLastItem','change:_lastItem','set','push','updateHeight','change:targetRect','max','object','_spaceBetweenItems','_recalculateBuffer','pluginName','targetRect','minHeight','isActive','locale','add','isAnimationDisabled','get','listenTo','container','_createSidebarView','config','last','delete','sidebar-setcontainer-invalid-element','nodeType','getIndex','element','_detachFromContainer','_getItemBefore','appendChild','bind','length','init','getSidebarItemView','_lastItem','_getTargetTop','render','_targetTop','_getItemAfter','_alignToTargetRect','sidebar.container','_setItemTop','height','_activeAnnotation','_alignAfterItem','_annotationToSidebarItemView','bottom','sidebar.preventScrollOutOfView','context','refresh','top','setContainer','stopListening','remove','rearrange','_alignForBottomChange','sidebar-attachtocontainer-missing-container','_destroySidebarItemView','target','view','_recalculate','_getMaxAvailableTop','_annotations','define','content','Sidebar','addAnnotation','destroy','_sidebarItemViewToAnnotation','list','class'];(function(_0x373a0a,_0x2f9b4c){const _0xdc44c8=function(_0xa6e087){while(--_0xa6e087){_0x373a0a['push'](_0x373a0a['shift']());}};_0xdc44c8(++_0x2f9b4c);}(_0x2f9b,0x14c));const _0xdc44=function(_0x373a0a,_0x2f9b4c){_0x373a0a=_0x373a0a-0x0;let _0xdc44c8=_0x2f9b[_0x373a0a];return _0xdc44c8;};import{ContextPlugin as _0x3ca118}from'ckeditor5/src/core';import{Rect as _0x178bb9,CKEditorError as _0x14531f}from'ckeditor5/src/utils';import _0x3c182c from'./view/sidebarview';import _0x1167ab from'./view/sidebaritemview';export default class z extends _0x3ca118{static get[_0xdc44('0x2c')](){return _0xdc44('0x1b');}constructor(_0xe232c8){super(_0xe232c8),this['set'](_0xdc44('0x45'),void 0x0),this[_0xdc44('0x15')]=this[_0xdc44('0x36')](),this[_0xdc44('0x24')]('container',null),this[_0xdc44('0x2a')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0xdc44('0x7')]=new Map(),this['context'][_0xdc44('0x37')][_0xdc44('0x19')](_0xdc44('0x9'),!0x1),this[_0xdc44('0x18')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0xdc44('0x43')](){const _0x264cea=this[_0xdc44('0xa')][_0xdc44('0x37')][_0xdc44('0x33')](_0xdc44('0x2'));_0x264cea&&this[_0xdc44('0xd')](_0x264cea);}[_0xdc44('0xd')](_0x2df812){if(!y(_0x2df812))throw new _0x14531f(_0xdc44('0x3a'));this[_0xdc44('0x35')]=_0x2df812;}['_attachToContainer']({viewClass:_0xf1f317='',spaceBetweenItems:_0x521889=0x19}={}){if(!y(this[_0xdc44('0x35')]))throw new _0x14531f(_0xdc44('0x12'),this);this['container'][_0xdc44('0x40')](this[_0xdc44('0x15')][_0xdc44('0x3d')]),this['view'][_0xdc44('0x20')]=_0xf1f317,this[_0xdc44('0x2a')]=_0x521889;}[_0xdc44('0x10')]({removedAnnotation:_0xd6014a,previousAnnotation:_0x476600,nextAnnotation:_0x48985f}){const _0x2a284b=this[_0xdc44('0x44')](_0xd6014a);this[_0xdc44('0x15')][_0xdc44('0x1f')][_0xdc44('0xf')](_0x2a284b),this[_0xdc44('0x13')](_0xd6014a),_0x476600&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x476600)),_0x48985f&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x48985f)),this[_0xdc44('0x22')]();}[_0xdc44('0xb')]({blurredAnnotation:_0x3b1c7f,activatedAnnotation:_0x41a30a,disableAnimationOnActivatedAnnotation:_0x5ac1ad}){if(this[_0xdc44('0x5')]=_0x41a30a,_0x3b1c7f){_0x3b1c7f[_0xdc44('0x2f')]=!0x1;const _0x4c755f=this[_0xdc44('0x44')](_0x3b1c7f);_0x4c755f&&_0x5ac1ad&&(_0x4c755f[_0xdc44('0x32')]=!0x1);}if(_0x41a30a){const _0x42c008=this[_0xdc44('0x44')](_0x41a30a);_0x42c008&&(_0x41a30a[_0xdc44('0x2f')]=!0x0,_0x5ac1ad&&(_0x42c008[_0xdc44('0x32')]=!0x0,_0x42c008['top']+=0x1),this[_0xdc44('0x1')](_0x42c008));}}[_0xdc44('0x3e')](_0x32e58b){if(this[_0xdc44('0x15')][_0xdc44('0x3d')][_0xdc44('0xf')](),_0x32e58b)for(const _0x2563af of _0x32e58b)this['_destroySidebarItemView'](_0x2563af);this[_0xdc44('0x15')]['list']['clear'](),this['view']['class']='',this['_lastItem']=null;}[_0xdc44('0x1c')](_0x38f1fa,_0x400e45){_0x400e45||(_0x400e45=_0x38f1fa[_0xdc44('0x15')]);const _0x4e8532=new _0x1167ab(this['context']['locale']);this[_0xdc44('0x1e')][_0xdc44('0x24')](_0x4e8532,_0x38f1fa),this[_0xdc44('0x7')][_0xdc44('0x24')](_0x38f1fa,_0x4e8532),_0x4e8532[_0xdc44('0x1a')][_0xdc44('0x31')](_0x400e45),this[_0xdc44('0x34')](_0x38f1fa[_0xdc44('0x15')],_0xdc44('0x27'),(_0x3ab07a,_0xf9a7ad,_0x2cae56)=>{const _0x492357=this[_0xdc44('0x46')](_0x38f1fa,_0x2cae56);_0x4e8532[_0xdc44('0x48')]!=_0x492357&&(_0x4e8532['_targetTop']=_0x492357,this[_0xdc44('0x3')](_0x4e8532,_0x492357));}),this[_0xdc44('0x34')](_0x4e8532,'change:top',()=>{this[_0xdc44('0x16')](_0x4e8532,_0xdc44('0xc'));}),this['listenTo'](_0x4e8532,'change:bottom',()=>{this['_recalculate'](_0x4e8532,_0xdc44('0x8'));}),this[_0xdc44('0x1')](_0x4e8532);const _0x34f062=this[_0xdc44('0x3f')](_0x4e8532);if(_0x34f062)this[_0xdc44('0x6')](_0x34f062,_0x4e8532)||this[_0xdc44('0x1')](_0x4e8532);else this['_alignToTargetRect'](_0x4e8532);return this[_0xdc44('0x22')](),this[_0xdc44('0x15')][_0xdc44('0x1f')]['add'](_0x4e8532),_0x4e8532;}[_0xdc44('0x21')](_0x77274c){if(!_0x77274c[_0xdc44('0x1a')][_0xdc44('0x42')])return;const _0x143904=this[_0xdc44('0x3f')](_0x77274c);if(!_0x143904)return;const _0x40342e=this['_sidebarItemViewToAnnotation'][_0xdc44('0x33')](_0x143904),_0x462040=this[_0xdc44('0x5')];_0x462040&&_0x462040===_0x40342e?this['_alignAfterItem'](_0x143904,_0x77274c):this['_alignBeforeItem'](_0x77274c,_0x143904);}[_0xdc44('0x11')](_0x1243a0){if(!_0x1243a0[_0xdc44('0x1a')]['length'])return;const _0x51a5c4=this[_0xdc44('0x0')](_0x1243a0);if(!_0x51a5c4)return;const _0x1a6a63=this['_sidebarItemViewToAnnotation'][_0xdc44('0x33')](_0x51a5c4),_0x333f34=this[_0xdc44('0xa')][_0xdc44('0x37')][_0xdc44('0x33')](_0xdc44('0x9')),_0x235814=this[_0xdc44('0x5')];_0x235814&&_0x235814===_0x1a6a63&&_0x333f34?(this['_alignBeforeItem'](_0x51a5c4,_0x1243a0),this[_0xdc44('0x6')](_0x1243a0,_0x51a5c4)):_0x235814&&_0x235814===_0x1a6a63?this['_alignBeforeItem'](_0x51a5c4,_0x1243a0):this['_alignAfterItem'](_0x1243a0,_0x51a5c4);}[_0xdc44('0x16')](_0x475d96,_0xe2edef){0x0===this[_0xdc44('0x2b')][_0xdc44('0x42')]&&setTimeout(()=>{for(const {sidebarItemView:_0x2dc468,changedProp:_0x153c53}of this[_0xdc44('0x2b')])_0xdc44('0xc')===_0x153c53?this[_0xdc44('0x21')](_0x2dc468):this['_alignForBottomChange'](_0x2dc468);this[_0xdc44('0x2b')]=[];},0xa),this[_0xdc44('0x2b')][_0xdc44('0x25')]({'sidebarItemView':_0x475d96,'changedProp':_0xe2edef});}[_0xdc44('0x44')](_0x32eb8d){return this['_annotationToSidebarItemView']['get'](_0x32eb8d);}[_0xdc44('0x1d')](){this[_0xdc44('0xe')](),this[_0xdc44('0x15')][_0xdc44('0x1d')]();}['_destroySidebarItemView'](_0xf28608){const _0x110e03=this[_0xdc44('0x44')](_0xf28608);this[_0xdc44('0xe')](_0x110e03),this[_0xdc44('0xe')](_0xf28608[_0xdc44('0x15')]),_0x110e03[_0xdc44('0x1d')](),this['_annotationToSidebarItemView'][_0xdc44('0x39')](_0xf28608),this['_sidebarItemViewToAnnotation'][_0xdc44('0x39')](_0x110e03);}[_0xdc44('0x36')](){const _0x127cec=new _0x3c182c(this[_0xdc44('0xa')][_0xdc44('0x30')]);return _0x127cec[_0xdc44('0x47')](),this['on'](_0xdc44('0x23'),(_0x4d2261,_0x32b9f7,_0x1cd53f,_0x52ae2e)=>{_0x52ae2e&&_0x127cec['unbind'](_0xdc44('0x2e')),_0x1cd53f?_0x127cec[_0xdc44('0x41')](_0xdc44('0x2e'))['to'](_0x1cd53f,_0xdc44('0x8')):_0x127cec[_0xdc44('0x2e')]=null;}),_0x127cec;}[_0xdc44('0x22')](){var _0x4adfdb;this['_lastItem']=(null===(_0x4adfdb=this[_0xdc44('0x18')])||void 0x0===_0x4adfdb?void 0x0:_0x4adfdb[_0xdc44('0x38')])?this[_0xdc44('0x44')](this[_0xdc44('0x18')]['last']):null;}['_getItemBefore'](_0x10b128){var _0x387e3f;const _0x36c194=this['_sidebarItemViewToAnnotation'][_0xdc44('0x33')](_0x10b128),_0x435267=_0x36c194&&(null===(_0x387e3f=this[_0xdc44('0x18')])||void 0x0===_0x387e3f?void 0x0:_0x387e3f[_0xdc44('0x33')](this[_0xdc44('0x18')][_0xdc44('0x3c')](_0x36c194)-0x1));return _0x435267&&this[_0xdc44('0x44')](_0x435267)||null;}['_getItemAfter'](_0x2665ad){var _0x5dc8ef;const _0x429b11=this['_sidebarItemViewToAnnotation'][_0xdc44('0x33')](_0x2665ad),_0x1af3b5=_0x429b11&&(null===(_0x5dc8ef=this[_0xdc44('0x18')])||void 0x0===_0x5dc8ef?void 0x0:_0x5dc8ef['get'](this[_0xdc44('0x18')][_0xdc44('0x3c')](_0x429b11)+0x1));return _0x1af3b5&&this[_0xdc44('0x44')](_0x1af3b5)||null;}['_alignBeforeItem'](_0x30d1d6,_0x8e7c14){_0x30d1d6['updateHeight']();const _0x5c5d53=H(_0x8e7c14[_0xdc44('0x8')]+this[_0xdc44('0x2a')],_0x30d1d6[_0xdc44('0xc')]);return!!_0x5c5d53&&(this['_setItemTop'](_0x8e7c14,_0x8e7c14[_0xdc44('0xc')]-_0x5c5d53),!0x0);}[_0xdc44('0x6')](_0x5a3948,_0x17e7b4){_0x5a3948[_0xdc44('0x26')]();const _0xb14963=H(_0x5a3948[_0xdc44('0x8')]+this[_0xdc44('0x2a')],_0x17e7b4[_0xdc44('0xc')]);return!!_0xb14963&&(this['_setItemTop'](_0x17e7b4,_0x17e7b4[_0xdc44('0xc')]+_0xb14963,!0x1),!0x0);}[_0xdc44('0x1')](_0x196a34){const _0x16d77e=this[_0xdc44('0x1e')][_0xdc44('0x33')](_0x196a34);if(!_0x16d77e||!_0x16d77e[_0xdc44('0x14')]||!_0x16d77e[_0xdc44('0x2d')])return;const _0x3db3b1=this[_0xdc44('0x46')](_0x16d77e,_0x16d77e[_0xdc44('0x2d')]);this['_setItemTop'](_0x196a34,_0x3db3b1);}['_getTargetTop'](_0x5ef6fd,_0x497600){if(null===_0x497600)return 0x0;if(_0x5ef6fd[_0xdc44('0x14')]instanceof _0x178bb9)return _0x497600['top'];{const _0x326960=new _0x178bb9(this[_0xdc44('0x15')]['element'])[_0xdc44('0xc')];return _0x497600['top']-_0x326960;}}[_0xdc44('0x3')](_0x17c4e2,_0x228ff4,_0x545923=this['context'][_0xdc44('0x37')][_0xdc44('0x33')]('sidebar.preventScrollOutOfView')){_0x545923&&(_0x228ff4=Math['max'](_0x228ff4,this['_getMaxAvailableTop'](_0x17c4e2))),_0x17c4e2['top']=_0x228ff4;}[_0xdc44('0x17')](_0x56a0a8){let _0x373342=this[_0xdc44('0x3f')](_0x56a0a8),_0x1a5be5=0x0;for(;_0x373342;)_0x373342[_0xdc44('0x26')](),_0x1a5be5+=this[_0xdc44('0x2a')]+_0x373342[_0xdc44('0x4')],_0x373342=this['_getItemBefore'](_0x373342);return _0x1a5be5;}}function H(_0x3704a4,_0x23540f){return Math[_0xdc44('0x28')](_0x3704a4-_0x23540f,0x0);}function y(_0x4bd1d3){return null!==_0x4bd1d3&&_0xdc44('0x29')==typeof _0x4bd1d3&&0x1===_0x4bd1d3[_0xdc44('0x3b')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5467=['add','bind','extendTemplate','counterView','isDirty','set','number','ck-annotation-counter__badge--','annotationType','toString','ck-annotation-counter__badge--edit-mode','_badge','setTemplate','span','...'];(function(_0x55cf27,_0x5467a3){const _0x44bb3a=function(_0x9ad1a0){while(--_0x9ad1a0){_0x55cf27['push'](_0x55cf27['shift']());}};_0x44bb3a(++_0x5467a3);}(_0x5467,0x1cc));const _0x44bb=function(_0x55cf27,_0x5467a3){_0x55cf27=_0x55cf27-0x0;let _0x44bb3a=_0x5467[_0x55cf27];return _0x44bb3a;};import{ButtonView as _0x5962ac,View as _0x50a255}from'ckeditor5/src/ui';import _0x11b598 from'../../../theme/icons/add-comment.svg';export default class D extends _0x5962ac{constructor(_0x184eb0){super(_0x184eb0);const _0x39de8c=this['bindTemplate'];this[_0x44bb('0xa')]('isDirty',!0x1),this[_0x44bb('0xa')]('number',0x0),this[_0x44bb('0x6')](_0x44bb('0x1'))['to'](this,_0x44bb('0x9'),this,_0x44bb('0xb'),(_0x501e08,_0x1b8a15)=>_0x501e08?_0x44bb('0x4'):_0x1b8a15[_0x44bb('0xe')]()),this['set']('annotationType',''),this['icon']=_0x11b598,this[_0x44bb('0x7')]({'attributes':{'class':['ck-annotation-counter']}}),this[_0x44bb('0x8')]=new _0x50a255(),this[_0x44bb('0x8')][_0x44bb('0x2')]({'tag':_0x44bb('0x3'),'attributes':{'class':['ck-annotation-counter__badge',_0x39de8c['to'](_0x44bb('0xd'),_0x3dd307=>_0x44bb('0xc')+_0x3dd307),_0x39de8c['if']('isDirty',_0x44bb('0x0'))]},'children':[{'text':_0x39de8c['to'](_0x44bb('0x1'))}]}),this['children'][_0x44bb('0x5')](this[_0x44bb('0x8')]);}}
23
+ const _0x415f=['bindTemplate','children','span','ck-annotation-counter','counterView','extendTemplate','isDirty','annotationType','ck-annotation-counter__badge--','add','set','ck-annotation-counter__badge--edit-mode','setTemplate','...','ck-annotation-counter__badge','_badge','number','toString','icon','bind'];(function(_0x2a095d,_0x415f75){const _0x594409=function(_0x21485d){while(--_0x21485d){_0x2a095d['push'](_0x2a095d['shift']());}};_0x594409(++_0x415f75);}(_0x415f,0x114));const _0x5944=function(_0x2a095d,_0x415f75){_0x2a095d=_0x2a095d-0x0;let _0x594409=_0x415f[_0x2a095d];return _0x594409;};import{ButtonView as _0x26d48a,View as _0xa2043d}from'ckeditor5/src/ui';import _0x49c31b from'../../../theme/icons/add-comment.svg';export default class D extends _0x26d48a{constructor(_0x4f6d10){super(_0x4f6d10);const _0x60f908=this[_0x5944('0x4')];this[_0x5944('0xe')](_0x5944('0xa'),!0x1),this[_0x5944('0xe')](_0x5944('0x0'),0x0),this[_0x5944('0x3')](_0x5944('0x13'))['to'](this,'isDirty',this,'number',(_0x3f98ae,_0x331f33)=>_0x3f98ae?_0x5944('0x11'):_0x331f33[_0x5944('0x1')]()),this[_0x5944('0xe')]('annotationType',''),this[_0x5944('0x2')]=_0x49c31b,this[_0x5944('0x9')]({'attributes':{'class':[_0x5944('0x7')]}}),this[_0x5944('0x8')]=new _0xa2043d(),this[_0x5944('0x8')][_0x5944('0x10')]({'tag':_0x5944('0x6'),'attributes':{'class':[_0x5944('0x12'),_0x60f908['to'](_0x5944('0xb'),_0x397edc=>_0x5944('0xc')+_0x397edc),_0x60f908['if'](_0x5944('0xa'),_0x5944('0xf'))]},'children':[{'text':_0x60f908['to']('_badge')}]}),this[_0x5944('0x5')][_0x5944('0xd')](this['counterView']);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x56aa=['length','ck-rounded-corners','isDirty','createCollection','content','element','add','clientHeight','isActive','_mutationObserver','type','render','_updateHeight','keystrokes','focusTracker','clear','ck-annotation-wrapper--active','height','destroy','focus','mainView','targetRect','bindTemplate','set'];(function(_0x438cee,_0x56aa06){const _0x1a2101=function(_0x500f18){while(--_0x500f18){_0x438cee['push'](_0x438cee['shift']());}};_0x1a2101(++_0x56aa06);}(_0x56aa,0x180));const _0x1a21=function(_0x438cee,_0x56aa06){_0x438cee=_0x438cee-0x0;let _0x1a2101=_0x56aa[_0x438cee];return _0x1a2101;};import{View as _0x498772}from'ckeditor5/src/ui';import{FocusTracker as _0x28e574,KeystrokeHandler as _0x477c68,uid as _0x5e6395}from'ckeditor5/src/utils';import _0x418cb2 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x498772{constructor(_0x56111d,_0x5c5e16){super(_0x56111d),this['id']=_0x5e6395(),this['focusTracker']=new _0x28e574(),this['keystrokes']=new _0x477c68(),this[_0x1a21('0xd')][_0x1a21('0x17')]('Esc',(_0x230e55,_0x33a6ef)=>this['fire']('Esc',_0x33a6ef)),this[_0x1a21('0x17')](_0x1a21('0x15'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x1a21('0x11'),0x0),this[_0x1a21('0x17')](_0x1a21('0x8'),!0x1),this['set'](_0x1a21('0x2'),!0x1),this['set'](_0x1a21('0x0'),0x0),this[_0x1a21('0x17')](_0x1a21('0xa'),''),this['_mutationObserver']=_0x418cb2(()=>this['_updateHeight']()),this[_0x1a21('0x4')]=this[_0x1a21('0x3')](),this[_0x1a21('0x4')][_0x1a21('0x6')](_0x5c5e16),this[_0x1a21('0x14')]=_0x5c5e16;const _0x5a7d7d=this[_0x1a21('0x16')];this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-annotation-wrapper',_0x1a21('0x1'),_0x5a7d7d['if'](_0x1a21('0x8'),_0x1a21('0x10'))],'tabindex':-0x1},'children':this[_0x1a21('0x4')]});}[_0x1a21('0xb')](){super[_0x1a21('0xb')](),this['focusTracker'][_0x1a21('0x6')](this[_0x1a21('0x5')]),this[_0x1a21('0xd')]['listenTo'](this[_0x1a21('0x5')]),this[_0x1a21('0x9')]['attach'](this[_0x1a21('0x5')]);}[_0x1a21('0x12')](){this[_0x1a21('0x4')][_0x1a21('0xf')](),this[_0x1a21('0xd')]['destroy'](),this[_0x1a21('0xe')][_0x1a21('0x12')](),this['_mutationObserver']['detach'](),super[_0x1a21('0x12')]();}[_0x1a21('0x13')](){this['element'][_0x1a21('0x13')]();}[_0x1a21('0xc')](){const _0x3da19f=this[_0x1a21('0x5')][_0x1a21('0x7')];_0x3da19f&&(this['height']=_0x3da19f);}}
23
+ const _0x2f8b=['element','set','content','clientHeight','focusTracker','targetRect','listenTo','attach','type','isDirty','_mutationObserver','clear','add','focus','Esc','div','detach','isActive','length','keystrokes','destroy','render','_updateHeight','ck-annotation-wrapper','setTemplate','ck-rounded-corners','height'];(function(_0x3c3d38,_0x2f8b28){const _0x498a91=function(_0x154850){while(--_0x154850){_0x3c3d38['push'](_0x3c3d38['shift']());}};_0x498a91(++_0x2f8b28);}(_0x2f8b,0x161));const _0x498a=function(_0x3c3d38,_0x2f8b28){_0x3c3d38=_0x3c3d38-0x0;let _0x498a91=_0x2f8b[_0x3c3d38];return _0x498a91;};import{View as _0x1df173}from'ckeditor5/src/ui';import{FocusTracker as _0x231e05,KeystrokeHandler as _0xcd75b3,uid as _0x2c3d72}from'ckeditor5/src/utils';import _0x3e6f23 from'../../utils/createmutationobserver';import'../../../theme/annotation.css';export default class V extends _0x1df173{constructor(_0x2b5a9a,_0x14251e){super(_0x2b5a9a),this['id']=_0x2c3d72(),this[_0x498a('0x2')]=new _0x231e05(),this[_0x498a('0x11')]=new _0xcd75b3(),this[_0x498a('0x11')][_0x498a('0x1a')](_0x498a('0xc'),(_0x219499,_0x24c427)=>this['fire']('Esc',_0x24c427)),this[_0x498a('0x1a')](_0x498a('0x3'),{'top':0x0,'right':0x0,'bottom':0x0,'left':0x0}),this['set'](_0x498a('0x18'),0x0),this[_0x498a('0x1a')](_0x498a('0xf'),!0x1),this[_0x498a('0x1a')](_0x498a('0x7'),!0x1),this['set'](_0x498a('0x10'),0x0),this[_0x498a('0x1a')](_0x498a('0x6'),''),this['_mutationObserver']=_0x3e6f23(()=>this['_updateHeight']()),this[_0x498a('0x0')]=this['createCollection'](),this[_0x498a('0x0')][_0x498a('0xa')](_0x14251e),this['mainView']=_0x14251e;const _0x5acce5=this['bindTemplate'];this[_0x498a('0x16')]({'tag':_0x498a('0xd'),'attributes':{'class':['ck',_0x498a('0x15'),_0x498a('0x17'),_0x5acce5['if'](_0x498a('0xf'),'ck-annotation-wrapper--active')],'tabindex':-0x1},'children':this['content']});}[_0x498a('0x13')](){super['render'](),this[_0x498a('0x2')][_0x498a('0xa')](this['element']),this[_0x498a('0x11')][_0x498a('0x4')](this['element']),this[_0x498a('0x8')][_0x498a('0x5')](this[_0x498a('0x19')]);}[_0x498a('0x12')](){this[_0x498a('0x0')][_0x498a('0x9')](),this[_0x498a('0x11')][_0x498a('0x12')](),this['focusTracker'][_0x498a('0x12')](),this['_mutationObserver'][_0x498a('0xe')](),super[_0x498a('0x12')]();}[_0x498a('0xb')](){this[_0x498a('0x19')]['focus']();}[_0x498a('0x14')](){const _0x1040bf=this[_0x498a('0x19')][_0x498a('0x1')];_0x1040bf&&(this[_0x498a('0x18')]=_0x1040bf);}}