@ckeditor/ckeditor5-comments 41.0.0 → 41.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) 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
  43. package/theme/annotation.css +4 -0
  44. package/theme/commentthread.css +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "41.0.0",
3
+ "version": "41.1.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/)",
@@ -44,8 +44,8 @@
44
44
  "CHANGELOG.md"
45
45
  ],
46
46
  "dependencies": {
47
- "ckeditor5": "41.0.0",
48
- "ckeditor5-collaboration": "41.0.0",
47
+ "ckeditor5": "41.1.0",
48
+ "ckeditor5-collaboration": "41.1.0",
49
49
  "lodash-es": "4.17.21"
50
50
  },
51
51
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x173e=['isVisible','_getNormalizedTarget','offsetParent','view','innerView','filter','stopListening','destroy','element','nodeType','isActive','annotation-invalid-target','render','targetRect','_target','_type','mainView','item','function','refreshVisibility','type','add','length','clear','target','updateTargetRect','_assertCorrectTarget','getClientRects','remove','focusableElements'];(function(_0x3b36c7,_0x173e5a){const _0x1ad8c6=function(_0x5024a7){while(--_0x5024a7){_0x3b36c7['push'](_0x3b36c7['shift']());}};_0x1ad8c6(++_0x173e5a);}(_0x173e,0x73));const _0x1ad8=function(_0x3b36c7,_0x173e5a){_0x3b36c7=_0x3b36c7-0x0;let _0x1ad8c6=_0x173e[_0x3b36c7];return _0x1ad8c6;};import{CKEditorError as _0x53208d,Rect as _0x4fc943,Collection as _0x27d3bd,ObservableMixin as _0x4ecd74}from'ckeditor5/src/utils.js';export default class d extends _0x4ecd74(){constructor({view:_0x57f543,target:_0x1a6f48,type:_0x89f46b,isVisible:_0x14370d=!0x0}){super(),this[_0x1ad8('0x8')]=_0x57f543,this[_0x1ad8('0x8')][_0x1ad8('0xd')]||this[_0x1ad8('0x8')][_0x1ad8('0x11')](),this[_0x1ad8('0x14')]=_0x89f46b,this[_0x1ad8('0x13')]=_0x1a6f48,d[_0x1ad8('0x1')](this[_0x1ad8('0x6')]()),this[_0x1ad8('0x4')]=new _0x27d3bd([this[_0x1ad8('0x8')][_0x1ad8('0xd')]],{'idProperty':'_id'}),this[_0x1ad8('0x4')]['on'](_0x1ad8('0x1a'),(_0x4fd34d,_0x4c120e)=>{this['view']['focusTracker'][_0x1ad8('0x1a')](_0x4c120e);}),this[_0x1ad8('0x4')]['on'](_0x1ad8('0x3'),(_0x4cc586,_0x5e00ce)=>{this['view']['focusTracker'][_0x1ad8('0x3')](_0x5e00ce);}),this['set'](_0x1ad8('0x5'),_0x14370d);}get[_0x1ad8('0x19')](){return _0x1ad8('0x17')==typeof this[_0x1ad8('0x14')]?this[_0x1ad8('0x14')]():this[_0x1ad8('0x14')];}get[_0x1ad8('0x9')](){return this[_0x1ad8('0x8')][_0x1ad8('0x15')];}get[_0x1ad8('0x1d')](){const _0x530bb4=this[_0x1ad8('0x6')]();return d[_0x1ad8('0x1')](_0x530bb4),_0x530bb4;}get[_0x1ad8('0x12')](){const _0x358253=this[_0x1ad8('0x1d')];if(null===_0x358253)return null;if(_0x358253 instanceof _0x4fc943)return _0x358253;const _0x5ede0b=_0x358253[_0x1ad8('0xa')](_0x239bc0=>function(_0x723d38){const _0x92a120=_0x723d38[_0x1ad8('0x7')];if(_0x92a120)return!0x0;const _0x3bb887=_0x723d38[_0x1ad8('0x2')]()[_0x1ad8('0x16')](0x0);return!!_0x3bb887;}(_0x239bc0));return 0x0===_0x5ede0b[_0x1ad8('0x1b')]?null:new _0x4fc943(_0x5ede0b[0x0][_0x1ad8('0x2')]()[_0x1ad8('0x16')](0x0));}get['isActive'](){return this[_0x1ad8('0x8')][_0x1ad8('0xf')];}set['isActive'](_0x5b8a21){this[_0x1ad8('0x8')][_0x1ad8('0xf')]=_0x5b8a21,this[_0x1ad8('0x8')]['mainView'][_0x1ad8('0xf')]=_0x5b8a21;}[_0x1ad8('0x0')](){this[_0x1ad8('0x8')][_0x1ad8('0x12')]=this[_0x1ad8('0x12')];}[_0x1ad8('0xc')](){this[_0x1ad8('0x4')]['stopListening'](),this['focusableElements'][_0x1ad8('0x1c')](),this[_0x1ad8('0xb')]();}[_0x1ad8('0x18')](){this[_0x1ad8('0x5')]=!!this['targetRect'];}static['_assertCorrectTarget'](_0x5b2ba0){if(!(null===_0x5b2ba0||_0x5b2ba0 instanceof _0x4fc943||Array['isArray'](_0x5b2ba0)&&_0x5b2ba0['every'](_0x4c5f80=>y(_0x4c5f80))))throw new _0x53208d(_0x1ad8('0x10'),null,{'target':_0x5b2ba0});}[_0x1ad8('0x6')](){const _0x560f9b=_0x1ad8('0x17')==typeof this[_0x1ad8('0x13')]?this['_target']():this[_0x1ad8('0x13')];return y(_0x560f9b)?[_0x560f9b]:_0x560f9b;}}function y(_0x157ebb){return null!==_0x157ebb&&'object'==typeof _0x157ebb&&'nodeType'in _0x157ebb&&0x1===_0x157ebb[_0x1ad8('0xe')];}
23
+ const _0x109e=['destroy','isArray','annotation-invalid-target','stopListening','_type','_assertCorrectTarget','mainView','filter','view','offsetParent','isVisible','updateTargetRect','targetRect','add','render','item','target','_getNormalizedTarget','isActive','every','_target','getClientRects','focusableElements','nodeType','clear','element','remove','length','type','focusTracker','_id','object','function'];(function(_0x46a0bc,_0x109eac){const _0x498f1f=function(_0xb6f844){while(--_0xb6f844){_0x46a0bc['push'](_0x46a0bc['shift']());}};_0x498f1f(++_0x109eac);}(_0x109e,0x18c));const _0x498f=function(_0x46a0bc,_0x109eac){_0x46a0bc=_0x46a0bc-0x0;let _0x498f1f=_0x109e[_0x46a0bc];return _0x498f1f;};import{CKEditorError as _0x19bc25,Rect as _0x2ed40d,Collection as _0x350759,ObservableMixin as _0x153515}from'ckeditor5/src/utils.js';export default class d extends _0x153515(){constructor({view:_0x3d2052,target:_0x58d594,type:_0x26a3bc,isVisible:_0x4ccd32=!0x0}){super(),this[_0x498f('0x8')]=_0x3d2052,this[_0x498f('0x8')][_0x498f('0x19')]||this[_0x498f('0x8')][_0x498f('0xe')](),this['_type']=_0x26a3bc,this['_target']=_0x58d594,d[_0x498f('0x5')](this[_0x498f('0x11')]()),this[_0x498f('0x16')]=new _0x350759([this[_0x498f('0x8')]['element']],{'idProperty':_0x498f('0x1e')}),this[_0x498f('0x16')]['on']('add',(_0xcdd776,_0x37fcba)=>{this['view'][_0x498f('0x1d')][_0x498f('0xd')](_0x37fcba);}),this[_0x498f('0x16')]['on'](_0x498f('0x1a'),(_0x45b1fe,_0x2382bf)=>{this[_0x498f('0x8')][_0x498f('0x1d')][_0x498f('0x1a')](_0x2382bf);}),this['set'](_0x498f('0xa'),_0x4ccd32);}get[_0x498f('0x1c')](){return _0x498f('0x20')==typeof this[_0x498f('0x4')]?this[_0x498f('0x4')]():this['_type'];}get['innerView'](){return this[_0x498f('0x8')][_0x498f('0x6')];}get[_0x498f('0x10')](){const _0x330851=this[_0x498f('0x11')]();return d['_assertCorrectTarget'](_0x330851),_0x330851;}get[_0x498f('0xc')](){const _0x3128ff=this[_0x498f('0x10')];if(null===_0x3128ff)return null;if(_0x3128ff instanceof _0x2ed40d)return _0x3128ff;const _0x35bade=_0x3128ff[_0x498f('0x7')](_0x5503ce=>function(_0x49dad4){const _0xc0c2f6=_0x49dad4[_0x498f('0x9')];if(_0xc0c2f6)return!0x0;const _0x571e4f=_0x49dad4[_0x498f('0x15')]()['item'](0x0);return!!_0x571e4f;}(_0x5503ce));return 0x0===_0x35bade[_0x498f('0x1b')]?null:new _0x2ed40d(_0x35bade[0x0][_0x498f('0x15')]()[_0x498f('0xf')](0x0));}get[_0x498f('0x12')](){return this['view'][_0x498f('0x12')];}set[_0x498f('0x12')](_0xc3dfb1){this[_0x498f('0x8')][_0x498f('0x12')]=_0xc3dfb1,this[_0x498f('0x8')][_0x498f('0x6')]['isActive']=_0xc3dfb1;}[_0x498f('0xb')](){this[_0x498f('0x8')][_0x498f('0xc')]=this[_0x498f('0xc')];}[_0x498f('0x0')](){this['focusableElements'][_0x498f('0x3')](),this['focusableElements'][_0x498f('0x18')](),this[_0x498f('0x3')]();}['refreshVisibility'](){this[_0x498f('0xa')]=!!this[_0x498f('0xc')];}static[_0x498f('0x5')](_0x442a45){if(!(null===_0x442a45||_0x442a45 instanceof _0x2ed40d||Array[_0x498f('0x1')](_0x442a45)&&_0x442a45[_0x498f('0x13')](_0x1fdc7b=>y(_0x1fdc7b))))throw new _0x19bc25(_0x498f('0x2'),null,{'target':_0x442a45});}[_0x498f('0x11')](){const _0x58f52e=_0x498f('0x20')==typeof this[_0x498f('0x14')]?this[_0x498f('0x14')]():this[_0x498f('0x14')];return y(_0x58f52e)?[_0x58f52e]:_0x58f52e;}}function y(_0x4ce374){return null!==_0x4ce374&&_0x498f('0x1f')==typeof _0x4ce374&&_0x498f('0x17')in _0x4ce374&&0x1===_0x4ce374[_0x498f('0x17')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x144f=['listenTo','getByView','fire','annotationcollection-not-existing-item','remove','blur','top','isFocused','_innerViewToAnnotation','has','_focusTracker','_viewToAnnotation','innerView','destroy','add','getByInnerView','length','_sort','stopListening','get','sort','change:isFocused','focusTracker','delete','focus','clear','targetRect','_getOrderInContent','view','set','left','focusableElements'];(function(_0x172f04,_0x144fb2){const _0x3d33a9=function(_0x1ce6ca){while(--_0x1ce6ca){_0x172f04['push'](_0x172f04['shift']());}};_0x3d33a9(++_0x144fb2);}(_0x144f,0xc5));const _0x3d33=function(_0x172f04,_0x144fb2){_0x172f04=_0x172f04-0x0;let _0x3d33a9=_0x144f[_0x172f04];return _0x3d33a9;};import{CKEditorError as _0x571da8,Collection as _0x35ed74,FocusTracker as _0x2fa088}from'ckeditor5/src/utils.js';export default class x extends _0x35ed74{constructor(_0x992921=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x3d33('0x6')]=new Map(),this[_0x3d33('0x5')]=new _0x2fa088(),this['_focusTracker']['on'](_0x3d33('0x10'),(_0x208cd7,_0x432464,_0x3286a4)=>{_0x3286a4||this[_0x3d33('0x1d')](_0x3d33('0x0'));});for(const _0x1fe578 of _0x992921)this[_0x3d33('0x9')](_0x1fe578);}get[_0x3d33('0x2')](){return this[_0x3d33('0x5')][_0x3d33('0x2')];}[_0x3d33('0x9')](_0x4f0941){if(this[_0x3d33('0x4')](_0x4f0941))throw new _0x571da8('annotationcollection-duplicated-item',null);this[_0x3d33('0x3')][_0x3d33('0x18')](_0x4f0941[_0x3d33('0x7')],_0x4f0941),this[_0x3d33('0x6')][_0x3d33('0x18')](_0x4f0941[_0x3d33('0x17')],_0x4f0941);for(const _0x19119b of _0x4f0941[_0x3d33('0x1a')])this['_focusTracker'][_0x3d33('0x9')](_0x19119b);this['listenTo'](_0x4f0941[_0x3d33('0x1a')],_0x3d33('0x9'),(_0x39ffc1,_0xfb85cc)=>{this['_focusTracker'][_0x3d33('0x9')](_0xfb85cc);}),this[_0x3d33('0x1b')](_0x4f0941[_0x3d33('0x1a')],_0x3d33('0x1f'),(_0x137037,_0xc3ad9)=>{this[_0x3d33('0x5')][_0x3d33('0x1f')](_0xc3ad9);}),this[_0x3d33('0x1b')](_0x4f0941['view'][_0x3d33('0x11')],_0x3d33('0x10'),(_0x56c8ca,_0x313ae4,_0x3aacbd)=>{_0x3aacbd&&this[_0x3d33('0x1d')](_0x3d33('0x13'),_0x4f0941);}),_0x4f0941['updateTargetRect']();const _0x1eaf5d=this['_getOrderInContent'](_0x4f0941[_0x3d33('0x17')][_0x3d33('0x15')]);return super[_0x3d33('0x9')](_0x4f0941,_0x1eaf5d);}['remove'](_0x38cb85){if(!this[_0x3d33('0x4')](_0x38cb85))throw new _0x571da8(_0x3d33('0x1e'),null);this[_0x3d33('0xd')](_0x38cb85[_0x3d33('0x17')]['focusTracker']),this[_0x3d33('0xd')](_0x38cb85[_0x3d33('0x1a')]);for(const _0x3ae7cc of _0x38cb85[_0x3d33('0x1a')])this[_0x3d33('0x5')][_0x3d33('0x1f')](_0x3ae7cc);return this[_0x3d33('0x6')][_0x3d33('0x12')](_0x38cb85[_0x3d33('0x17')]),this[_0x3d33('0x3')]['delete'](_0x38cb85[_0x3d33('0x7')]),super[_0x3d33('0x1f')](_0x38cb85);}[_0x3d33('0xa')](_0x234f8c){return this[_0x3d33('0x3')][_0x3d33('0xe')](_0x234f8c);}[_0x3d33('0x1c')](_0x43fcaa){return this[_0x3d33('0x6')]['get'](_0x43fcaa);}[_0x3d33('0x8')](){super[_0x3d33('0x14')](),this['stopListening'](),this[_0x3d33('0x3')]['clear'](),this[_0x3d33('0x6')][_0x3d33('0x14')](),this['_focusTracker']['destroy']();}['refreshPositioning'](){for(const _0x2f9643 of this)_0x2f9643['updateTargetRect']();this[_0x3d33('0xc')]();}[_0x3d33('0xc')](){const _0xb61b44=Array['from'](this)[_0x3d33('0xf')]((_0x12ca37,_0x556a21)=>v(_0x12ca37[_0x3d33('0x17')][_0x3d33('0x15')],_0x556a21['view']['targetRect']));for(let _0x14c827=_0xb61b44[_0x3d33('0xb')]-0x1;_0x14c827>0x0;_0x14c827--){const _0x18211b=_0xb61b44[_0x14c827];_0x14c827!==this['getIndex'](_0x18211b)&&(this['remove'](_0x18211b),this[_0x3d33('0x9')](_0x18211b));}}[_0x3d33('0x16')](_0x37e108){let _0x22347f=0x0;if(!_0x37e108)return this[_0x3d33('0xb')];for(const _0x5a31c6 of this){const _0x370e40=_0x5a31c6[_0x3d33('0x17')][_0x3d33('0x15')];if(_0x370e40){if(v(_0x37e108,_0x370e40)<0x0)return _0x22347f;_0x22347f++;}}return _0x22347f;}}export function bindAnnotationCollections({source:_0x379334,target:_0x541ebc,filter:_0x2bb11b}){for(const _0xc926c of _0x379334)_0x2bb11b(_0xc926c)&&_0x541ebc[_0x3d33('0x9')](_0xc926c);_0x541ebc[_0x3d33('0x1b')](_0x379334,_0x3d33('0x9'),(_0x35bef8,_0x41b169)=>{_0x2bb11b(_0x41b169)&&_0x541ebc[_0x3d33('0x9')](_0x41b169);}),_0x541ebc[_0x3d33('0x1b')](_0x379334,_0x3d33('0x1f'),(_0x354850,_0x1f4002)=>{_0x541ebc[_0x3d33('0x4')](_0x1f4002)&&_0x541ebc['remove'](_0x1f4002);});}function v(_0x846719,_0x4cbf39){if(null===_0x846719&&null===_0x4cbf39)return 0x0;if(null===_0x846719)return-0x1;if(null===_0x4cbf39)return 0x1;const _0x1c4814=_0x846719['top']-_0x4cbf39[_0x3d33('0x1')];return 0x0==_0x1c4814?_0x846719['left']-_0x4cbf39[_0x3d33('0x19')]:_0x1c4814;}
23
+ const _0x36d2=['focusTracker','getIndex','left','innerView','blur','updateTargetRect','_focusTracker','delete','focusableElements','destroy','getByInnerView','add','length','_getOrderInContent','targetRect','annotationcollection-not-existing-item','refreshPositioning','change:isFocused','_innerViewToAnnotation','sort','listenTo','annotationcollection-duplicated-item','get','stopListening','isFocused','set','_sort','has','remove','_viewToAnnotation','fire','clear','view','from','top'];(function(_0x1d4d26,_0x36d250){const _0x29b06b=function(_0x55e32a){while(--_0x55e32a){_0x1d4d26['push'](_0x1d4d26['shift']());}};_0x29b06b(++_0x36d250);}(_0x36d2,0xdf));const _0x29b0=function(_0x1d4d26,_0x36d250){_0x1d4d26=_0x1d4d26-0x0;let _0x29b06b=_0x36d2[_0x1d4d26];return _0x29b06b;};import{CKEditorError as _0x57284f,Collection as _0x49aaa4,FocusTracker as _0x2b5702}from'ckeditor5/src/utils.js';export default class x extends _0x49aaa4{constructor(_0x217eaa=[]){super(),this[_0x29b0('0x5')]=new Map(),this[_0x29b0('0x10')]=new Map(),this['_focusTracker']=new _0x2b5702(),this['_focusTracker']['on'](_0x29b0('0x4'),(_0x205743,_0x489815,_0x579934)=>{_0x579934||this[_0x29b0('0x11')](_0x29b0('0x1a'));});for(const _0x5ec4e7 of _0x217eaa)this[_0x29b0('0x21')](_0x5ec4e7);}get[_0x29b0('0xb')](){return this[_0x29b0('0x1c')][_0x29b0('0xb')];}[_0x29b0('0x21')](_0x3e2448){if(this[_0x29b0('0xe')](_0x3e2448))throw new _0x57284f(_0x29b0('0x8'),null);this[_0x29b0('0x5')][_0x29b0('0xc')](_0x3e2448[_0x29b0('0x19')],_0x3e2448),this['_viewToAnnotation'][_0x29b0('0xc')](_0x3e2448[_0x29b0('0x13')],_0x3e2448);for(const _0x4d8a36 of _0x3e2448['focusableElements'])this[_0x29b0('0x1c')][_0x29b0('0x21')](_0x4d8a36);this[_0x29b0('0x7')](_0x3e2448[_0x29b0('0x1e')],'add',(_0x19e975,_0x4789a6)=>{this[_0x29b0('0x1c')]['add'](_0x4789a6);}),this[_0x29b0('0x7')](_0x3e2448[_0x29b0('0x1e')],'remove',(_0x55b051,_0x38069c)=>{this[_0x29b0('0x1c')]['remove'](_0x38069c);}),this['listenTo'](_0x3e2448[_0x29b0('0x13')][_0x29b0('0x16')],_0x29b0('0x4'),(_0x429a41,_0x4e33ab,_0x2adeb0)=>{_0x2adeb0&&this[_0x29b0('0x11')]('focus',_0x3e2448);}),_0x3e2448[_0x29b0('0x1b')]();const _0x122402=this[_0x29b0('0x0')](_0x3e2448['view'][_0x29b0('0x1')]);return super['add'](_0x3e2448,_0x122402);}['remove'](_0x5c7dcd){if(!this[_0x29b0('0xe')](_0x5c7dcd))throw new _0x57284f(_0x29b0('0x2'),null);this[_0x29b0('0xa')](_0x5c7dcd[_0x29b0('0x13')][_0x29b0('0x16')]),this[_0x29b0('0xa')](_0x5c7dcd[_0x29b0('0x1e')]);for(const _0x18632f of _0x5c7dcd['focusableElements'])this[_0x29b0('0x1c')]['remove'](_0x18632f);return this[_0x29b0('0x10')][_0x29b0('0x1d')](_0x5c7dcd[_0x29b0('0x13')]),this[_0x29b0('0x5')]['delete'](_0x5c7dcd[_0x29b0('0x19')]),super[_0x29b0('0xf')](_0x5c7dcd);}[_0x29b0('0x20')](_0xdbb88a){return this[_0x29b0('0x5')][_0x29b0('0x9')](_0xdbb88a);}['getByView'](_0x2ad585){return this[_0x29b0('0x10')]['get'](_0x2ad585);}[_0x29b0('0x1f')](){super[_0x29b0('0x12')](),this[_0x29b0('0xa')](),this[_0x29b0('0x5')][_0x29b0('0x12')](),this['_viewToAnnotation'][_0x29b0('0x12')](),this[_0x29b0('0x1c')][_0x29b0('0x1f')]();}[_0x29b0('0x3')](){for(const _0xe8e8fc of this)_0xe8e8fc[_0x29b0('0x1b')]();this[_0x29b0('0xd')]();}[_0x29b0('0xd')](){const _0x28153e=Array[_0x29b0('0x14')](this)[_0x29b0('0x6')]((_0x22beb4,_0x19256a)=>v(_0x22beb4[_0x29b0('0x13')][_0x29b0('0x1')],_0x19256a[_0x29b0('0x13')][_0x29b0('0x1')]));for(let _0x1628d7=_0x28153e[_0x29b0('0x22')]-0x1;_0x1628d7>0x0;_0x1628d7--){const _0x3e2b9a=_0x28153e[_0x1628d7];_0x1628d7!==this[_0x29b0('0x17')](_0x3e2b9a)&&(this[_0x29b0('0xf')](_0x3e2b9a),this[_0x29b0('0x21')](_0x3e2b9a));}}[_0x29b0('0x0')](_0x29cb10){let _0x285756=0x0;if(!_0x29cb10)return this['length'];for(const _0x967327 of this){const _0x544717=_0x967327[_0x29b0('0x13')][_0x29b0('0x1')];if(_0x544717){if(v(_0x29cb10,_0x544717)<0x0)return _0x285756;_0x285756++;}}return _0x285756;}}export function bindAnnotationCollections({source:_0x3dbe1a,target:_0x31f12d,filter:_0xf585bd}){for(const _0x19d806 of _0x3dbe1a)_0xf585bd(_0x19d806)&&_0x31f12d[_0x29b0('0x21')](_0x19d806);_0x31f12d[_0x29b0('0x7')](_0x3dbe1a,'add',(_0x192325,_0x19647d)=>{_0xf585bd(_0x19647d)&&_0x31f12d[_0x29b0('0x21')](_0x19647d);}),_0x31f12d['listenTo'](_0x3dbe1a,_0x29b0('0xf'),(_0x55c6a2,_0x5434ba)=>{_0x31f12d[_0x29b0('0xe')](_0x5434ba)&&_0x31f12d[_0x29b0('0xf')](_0x5434ba);});}function v(_0x1ebc79,_0x549e07){if(null===_0x1ebc79&&null===_0x549e07)return 0x0;if(null===_0x1ebc79)return-0x1;if(null===_0x549e07)return 0x1;const _0xae6194=_0x1ebc79['top']-_0x549e07[_0x29b0('0x15')];return 0x0==_0xae6194?_0x1ebc79['left']-_0x549e07[_0x29b0('0x18')]:_0xae6194;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x19a2=['fire','refreshPositioning','isVisible','focusTracker','has','_visibleAnnotations','getByInnerView','remove','activate','refreshVisibility','change:isVisible','_removeActiveAnnotation','element','activeAnnotations','createAnnotationView','listenTo','collection','_activateAnnotation','Annotations','view','stopListening','_bindAnnotationsToVisibleAnnotations','destroy','add','source','deactivateAll','createAnnotation'];(function(_0x34a802,_0x19a2e2){const _0x54a0e1=function(_0x22b74f){while(--_0x22b74f){_0x34a802['push'](_0x34a802['shift']());}};_0x54a0e1(++_0x19a2e2);}(_0x19a2,0x141));const _0x54a0=function(_0x34a802,_0x19a2e2){_0x34a802=_0x34a802-0x0;let _0x54a0e1=_0x19a2[_0x34a802];return _0x54a0e1;};import{ContextPlugin as _0x19ab2b}from'ckeditor5/src/core.js';import _0x272284 from'./annotation.js';import _0x4c7194 from'./annotationcollection.js';import _0xc4fa75 from'./view/annotationview.js';export default class b extends _0x19ab2b{static get['pluginName'](){return _0x54a0('0x15');}constructor(_0x2011c5){super(_0x2011c5),this['collection']=new _0x4c7194(),this[_0x54a0('0x8')]=new _0x4c7194(),this['set'](_0x54a0('0x10'),new Set()),this[_0x54a0('0x18')]();}[_0x54a0('0x1a')](_0x3994e8){this['collection']['add'](_0x3994e8);}[_0x54a0('0xa')](_0x46fcfb){this[_0x54a0('0x13')][_0x54a0('0xa')](_0x46fcfb),_0x46fcfb[_0x54a0('0x19')]();}[_0x54a0('0xc')](){for(const _0x3484bc of this[_0x54a0('0x13')])_0x3484bc[_0x54a0('0xc')]();}['refreshPositioning'](){this[_0x54a0('0x8')][_0x54a0('0x4')]();}[_0x54a0('0x9')](_0x3bf507){return this['collection'][_0x54a0('0x9')](_0x3bf507);}[_0x54a0('0x1')](){this[_0x54a0('0x3')]('_deactivateAllAnnotations');}[_0x54a0('0x19')](){for(const _0x25ccd1 of this[_0x54a0('0x13')])_0x25ccd1[_0x54a0('0x19')]();this['_visibleAnnotations'][_0x54a0('0x19')](),this['collection'][_0x54a0('0x19')](),super['destroy']();}[_0x54a0('0xb')](_0x495b68){this[_0x54a0('0x3')](_0x54a0('0x14'),_0x495b68);}[_0x54a0('0x2')](_0x1864c5){return new _0x272284(_0x1864c5);}[_0x54a0('0x11')](_0x292e01,_0x297f14){return new _0xc4fa75(_0x292e01,_0x297f14);}['_addActiveAnnotation'](_0x2f5a02){const _0x13da36=new Set(this[_0x54a0('0x10')]);_0x13da36['add'](_0x2f5a02),this[_0x54a0('0x10')]=_0x13da36;}[_0x54a0('0xe')](_0x3e9694){const _0x200191=new Set(this['activeAnnotations']);_0x200191['delete'](_0x3e9694),this[_0x54a0('0x10')]=_0x200191;}[_0x54a0('0x18')](){const _0x27a9cc=this[_0x54a0('0x13')],_0x4e57f0=this[_0x54a0('0x8')];function _0x3b2167(_0x68d66b){const _0x385234=_0x68d66b[_0x54a0('0x0')];_0x385234['isVisible']&&!_0x4e57f0[_0x54a0('0x7')](_0x385234)?_0x4e57f0[_0x54a0('0x1a')](_0x385234):!_0x385234[_0x54a0('0x5')]&&_0x4e57f0[_0x54a0('0x7')](_0x385234)&&_0x4e57f0[_0x54a0('0xa')](_0x385234),_0x385234[_0x54a0('0x16')][_0x54a0('0x6')][_0x54a0('0xa')](_0x385234[_0x54a0('0x16')][_0x54a0('0xf')]),_0x385234[_0x54a0('0x16')][_0x54a0('0x6')]['add'](_0x385234[_0x54a0('0x16')][_0x54a0('0xf')]);}this[_0x54a0('0x12')](_0x27a9cc,_0x54a0('0x1a'),(_0x429004,_0x4e250f)=>{_0x4e250f['isVisible']&&_0x4e57f0['add'](_0x4e250f),this[_0x54a0('0x12')](_0x4e250f,_0x54a0('0xd'),_0x3b2167);}),this[_0x54a0('0x12')](_0x27a9cc,'remove',(_0xd94467,_0x4e7cd4)=>{_0x4e57f0['has'](_0x4e7cd4)&&_0x4e57f0[_0x54a0('0xa')](_0x4e7cd4),this[_0x54a0('0x17')](_0x4e7cd4,_0x54a0('0xd'),_0x3b2167);});}}
23
+ const _0x267b=['_bindAnnotationsToVisibleAnnotations','activeAnnotations','set','stopListening','createAnnotationView','getByInnerView','collection','source','pluginName','activate','fire','destroy','refreshPositioning','element','focusTracker','deactivateAll','createAnnotation','add','_activateAnnotation','_deactivateAllAnnotations','isVisible','change:isVisible','listenTo','has','remove','_visibleAnnotations','refreshVisibility','view','_addActiveAnnotation'];(function(_0x5882d3,_0x267b3c){const _0x216930=function(_0x1e2bee){while(--_0x1e2bee){_0x5882d3['push'](_0x5882d3['shift']());}};_0x216930(++_0x267b3c);}(_0x267b,0x1d8));const _0x2169=function(_0x5882d3,_0x267b3c){_0x5882d3=_0x5882d3-0x0;let _0x216930=_0x267b[_0x5882d3];return _0x216930;};import{ContextPlugin as _0xfe1013}from'ckeditor5/src/core.js';import _0x453fdf from'./annotation.js';import _0x3cd295 from'./annotationcollection.js';import _0x4244ee from'./view/annotationview.js';export default class b extends _0xfe1013{static get[_0x2169('0x0')](){return'Annotations';}constructor(_0x3faa8a){super(_0x3faa8a),this[_0x2169('0x1b')]=new _0x3cd295(),this['_visibleAnnotations']=new _0x3cd295(),this[_0x2169('0x17')](_0x2169('0x16'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}['add'](_0x15ab00){this[_0x2169('0x1b')][_0x2169('0x9')](_0x15ab00);}[_0x2169('0x10')](_0x5919d0){this[_0x2169('0x1b')][_0x2169('0x10')](_0x5919d0),_0x5919d0['destroy']();}[_0x2169('0x12')](){for(const _0x2248e7 of this[_0x2169('0x1b')])_0x2248e7[_0x2169('0x12')]();}['refreshPositioning'](){this[_0x2169('0x11')][_0x2169('0x4')]();}['getByInnerView'](_0xcc06b7){return this[_0x2169('0x1b')][_0x2169('0x1a')](_0xcc06b7);}[_0x2169('0x7')](){this[_0x2169('0x2')](_0x2169('0xb'));}[_0x2169('0x3')](){for(const _0x51c52d of this[_0x2169('0x1b')])_0x51c52d[_0x2169('0x3')]();this[_0x2169('0x11')][_0x2169('0x3')](),this[_0x2169('0x1b')][_0x2169('0x3')](),super['destroy']();}[_0x2169('0x1')](_0x24d0ea){this['fire'](_0x2169('0xa'),_0x24d0ea);}[_0x2169('0x8')](_0x431ec3){return new _0x453fdf(_0x431ec3);}[_0x2169('0x19')](_0x2de991,_0x373fe7){return new _0x4244ee(_0x2de991,_0x373fe7);}[_0x2169('0x14')](_0x44a1d3){const _0x81b2eb=new Set(this[_0x2169('0x16')]);_0x81b2eb['add'](_0x44a1d3),this[_0x2169('0x16')]=_0x81b2eb;}['_removeActiveAnnotation'](_0x5cb436){const _0x4c46fd=new Set(this[_0x2169('0x16')]);_0x4c46fd['delete'](_0x5cb436),this['activeAnnotations']=_0x4c46fd;}[_0x2169('0x15')](){const _0x19fd62=this[_0x2169('0x1b')],_0x1a42c3=this[_0x2169('0x11')];function _0x35a73b(_0x44b6a2){const _0x47dbd7=_0x44b6a2[_0x2169('0x1c')];_0x47dbd7[_0x2169('0xc')]&&!_0x1a42c3[_0x2169('0xf')](_0x47dbd7)?_0x1a42c3['add'](_0x47dbd7):!_0x47dbd7[_0x2169('0xc')]&&_0x1a42c3['has'](_0x47dbd7)&&_0x1a42c3[_0x2169('0x10')](_0x47dbd7),_0x47dbd7[_0x2169('0x13')][_0x2169('0x6')][_0x2169('0x10')](_0x47dbd7[_0x2169('0x13')][_0x2169('0x5')]),_0x47dbd7[_0x2169('0x13')][_0x2169('0x6')][_0x2169('0x9')](_0x47dbd7[_0x2169('0x13')][_0x2169('0x5')]);}this[_0x2169('0xe')](_0x19fd62,_0x2169('0x9'),(_0x30869f,_0x841ad4)=>{_0x841ad4['isVisible']&&_0x1a42c3['add'](_0x841ad4),this[_0x2169('0xe')](_0x841ad4,_0x2169('0xd'),_0x35a73b);}),this[_0x2169('0xe')](_0x19fd62,'remove',(_0x47f6aa,_0x369220)=>{_0x1a42c3[_0x2169('0xf')](_0x369220)&&_0x1a42c3[_0x2169('0x10')](_0x369220),this[_0x2169('0x18')](_0x369220,_0x2169('0xd'),_0x35a73b);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29ab=['context','find','type','length','activate','set','_removeActiveAnnotation','delete','listenTo','_assertAnnotationDoesNotBelongToMultipleUIs','annotationsuis-register-invalid-interface','_uis','deactivate','register','function','deactivateAll','push','destroy','_uisData','activeUIs','get','filter','annotationsuis-missing-ui','switchTo','pluginName','change:activeAnnotation','_setSelectedAnnotations','detach','_addActiveAnnotation','requires','_visibleAnnotations','refilterAnnotations','add','attach','setActiveAnnotation','annotationsuis-register-already-registered','size','remove','from','collection','plugins','has'];(function(_0x20b86f,_0x29ab05){const _0x476d44=function(_0x5d92d2){while(--_0x5d92d2){_0x20b86f['push'](_0x20b86f['shift']());}};_0x476d44(++_0x29ab05);}(_0x29ab,0xed));const _0x476d=function(_0x20b86f,_0x29ab05){_0x20b86f=_0x20b86f-0x0;let _0x476d44=_0x29ab[_0x20b86f];return _0x476d44;};import{ContextPlugin as _0xdf4e48}from'ckeditor5/src/core.js';import{CKEditorError as _0x26eb3d}from'ckeditor5/src/utils.js';import _0x503867,{bindAnnotationCollections as _0x444311}from'./annotationcollection.js';import _0x35ab0b from'./annotations.js';export default class j extends _0xdf4e48{static get[_0x476d('0x2')](){return[_0x35ab0b];}static get[_0x476d('0x27')](){return'AnnotationsUIs';}constructor(_0x2fea17){super(_0x2fea17),this['activeUIs']=new Set(),this[_0x476d('0x1a')]=new Map(),this[_0x476d('0x21')]=new Map();}['init'](){const _0x30eca1=this['context']['plugins'][_0x476d('0x23')](_0x35ab0b);this[_0x476d('0x17')](_0x30eca1,'_activateAnnotation',(_0x782d2,_0x13825d)=>{for(const _0x3f415e of this['activeUIs']){const _0x439320=this[_0x476d('0x1a')]['get'](_0x3f415e);(0x0,this[_0x476d('0x21')]['get'](_0x3f415e)[_0x476d('0x24')])(_0x13825d)&&_0x439320['setActiveAnnotation'](_0x13825d);}}),this[_0x476d('0x17')](_0x30eca1,'_deactivateAllAnnotations',()=>{for(const _0x5c6a53 of this['activeUIs']){this[_0x476d('0x1a')][_0x476d('0x23')](_0x5c6a53)['setActiveAnnotation'](null);}}),this[_0x476d('0x17')](_0x30eca1[_0x476d('0x3')],_0x476d('0x5'),(_0x3bd5b1,_0x1138d6)=>{this[_0x476d('0x18')](_0x1138d6);});}['hasActive'](){return this[_0x476d('0x22')][_0x476d('0x9')]>0x0;}['isActive'](_0x1b54db){return this[_0x476d('0x22')][_0x476d('0xe')](_0x1b54db);}[_0x476d('0x13')](_0x48ab3b,_0x5bbecd=()=>!0x0){const _0x51a3f3=this['context'][_0x476d('0xd')][_0x476d('0x23')](_0x35ab0b);if(!this[_0x476d('0x1a')][_0x476d('0xe')](_0x48ab3b))throw new _0x26eb3d(_0x476d('0x25'),this,{'uiName':_0x48ab3b});this['isActive'](_0x48ab3b)&&this[_0x476d('0x1b')](_0x48ab3b),this[_0x476d('0x22')][_0x476d('0x5')](_0x48ab3b);const _0x2c82d5=new _0x503867(),_0x595a4a=_0x51a3f3[_0x476d('0x3')];_0x444311({'source':_0x595a4a,'target':_0x2c82d5,'filter':_0x5bbecd}),this[_0x476d('0x21')]['set'](_0x48ab3b,{'collection':_0x2c82d5,'filter':_0x5bbecd});const _0x598e9a=this[_0x476d('0x1a')][_0x476d('0x23')](_0x48ab3b);_0x598e9a[_0x476d('0x6')](_0x2c82d5),this[_0x476d('0x17')](_0x598e9a,_0x476d('0x28'),(_0x54fba2,_0x404477,_0x53b9f8,_0xcde575)=>{_0xcde575&&_0x51a3f3[_0x476d('0x15')](_0xcde575),_0x53b9f8&&_0x51a3f3[_0x476d('0x1')](_0x53b9f8);});}[_0x476d('0x1b')](_0x4efb3b){if(this[_0x476d('0x22')]['delete'](_0x4efb3b),!this[_0x476d('0x1a')]['has'](_0x4efb3b))throw new _0x26eb3d(_0x476d('0x25'),this,{'uiName':_0x4efb3b});const _0x1d1595=this[_0x476d('0x1a')][_0x476d('0x23')](_0x4efb3b);_0x1d1595[_0x476d('0x0')](),this['stopListening'](_0x1d1595),this[_0x476d('0x21')]['get'](_0x4efb3b)[_0x476d('0xc')]['destroy'](),this[_0x476d('0x21')][_0x476d('0x16')](_0x4efb3b);}[_0x476d('0x26')](_0x16d24c){if(!this['_uis']['has'](_0x16d24c))throw new _0x26eb3d(_0x476d('0x25'),this,{'uiName':_0x16d24c});const _0x13a25c=this[_0x476d('0xf')][_0x476d('0xd')][_0x476d('0x23')](_0x35ab0b),_0x3aee7b=Array[_0x476d('0xb')](_0x13a25c['activeAnnotations'])[0x0]||null;this['deactivateAll'](),this['activate'](_0x16d24c);const _0x4fa77d=this[_0x476d('0x1a')]['get'](_0x16d24c);_0x4fa77d['setActiveAnnotation'](_0x3aee7b),_0x4fa77d[_0x476d('0x29')]&&_0x3aee7b&&_0x4fa77d[_0x476d('0x29')]([_0x3aee7b]);}[_0x476d('0x1e')](){for(const _0x5a591b of this[_0x476d('0x22')])this[_0x476d('0x1b')](_0x5a591b);}[_0x476d('0x1c')](_0x2d631b,_0x3aa24f){if(this['_uis'][_0x476d('0xe')](_0x2d631b))throw new _0x26eb3d(_0x476d('0x8'));if(_0x476d('0x1d')!=typeof _0x3aa24f[_0x476d('0x6')]||_0x476d('0x1d')!=typeof _0x3aa24f[_0x476d('0x0')]||_0x476d('0x1d')!=typeof _0x3aa24f[_0x476d('0x7')])throw new _0x26eb3d(_0x476d('0x19'),null);this[_0x476d('0x1a')][_0x476d('0x14')](_0x2d631b,_0x3aa24f);}[_0x476d('0x4')](){const _0x1a5c5e=this['context'][_0x476d('0xd')][_0x476d('0x23')](_0x35ab0b)[_0x476d('0xc')],_0x41a6d2=new Map(),_0x4f3a02=Array[_0x476d('0xb')](this[_0x476d('0x22')]);for(const _0x3866ce of this[_0x476d('0x22')]){const _0x4bd52f=this[_0x476d('0x21')][_0x476d('0x23')](_0x3866ce)[_0x476d('0xc')];for(const _0x5c810a of _0x4bd52f)_0x41a6d2[_0x476d('0x14')](_0x5c810a,_0x3866ce);}for(const _0x4d72c8 of _0x1a5c5e){const _0x4b8ee7=_0x41a6d2['get'](_0x4d72c8);this[_0x476d('0x18')](_0x4d72c8);const _0x555337=_0x4f3a02[_0x476d('0x10')](_0x3209a7=>this[_0x476d('0x21')][_0x476d('0x23')](_0x3209a7)['filter'](_0x4d72c8));_0x4b8ee7!==_0x555337&&(_0x4b8ee7&&this[_0x476d('0x21')][_0x476d('0x23')](_0x4b8ee7)[_0x476d('0xc')][_0x476d('0xa')](_0x4d72c8),_0x555337&&this['_uisData'][_0x476d('0x23')](_0x555337)[_0x476d('0xc')]['add'](_0x4d72c8));}}[_0x476d('0x20')](){this[_0x476d('0x1e')](),super['destroy']();}[_0x476d('0x18')](_0x53ba6a){const _0x272bc4=[];for(const _0x1195ce of this[_0x476d('0x22')]){(0x0,this[_0x476d('0x21')][_0x476d('0x23')](_0x1195ce)[_0x476d('0x24')])(_0x53ba6a)&&_0x272bc4[_0x476d('0x1f')](_0x1195ce);}if(_0x272bc4[_0x476d('0x12')]>0x1)throw new _0x26eb3d('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x272bc4,'annotationType':_0x53ba6a[_0x476d('0x11')]});}}
23
+ const _0x41b6=['collection','_visibleAnnotations','_removeActiveAnnotation','_assertAnnotationDoesNotBelongToMultipleUIs','activate','add','attach','annotationsuis-annotation-mismatch','find','_uis','detach','listenTo','from','filter','remove','change:activeAnnotation','isActive','activeUIs','destroy','push','deactivateAll','_addActiveAnnotation','_setSelectedAnnotations','delete','hasActive','register','stopListening','setActiveAnnotation','AnnotationsUIs','context','switchTo','get','has','init','set','_activateAnnotation','_uisData','function','_deactivateAllAnnotations','type','plugins','deactivate','activeAnnotations','annotationsuis-missing-ui'];(function(_0x4d77eb,_0x41b67a){const _0x17f635=function(_0x217354){while(--_0x217354){_0x4d77eb['push'](_0x4d77eb['shift']());}};_0x17f635(++_0x41b67a);}(_0x41b6,0x1a9));const _0x17f6=function(_0x4d77eb,_0x41b67a){_0x4d77eb=_0x4d77eb-0x0;let _0x17f635=_0x41b6[_0x4d77eb];return _0x17f635;};import{ContextPlugin as _0x49a866}from'ckeditor5/src/core.js';import{CKEditorError as _0x3539a4}from'ckeditor5/src/utils.js';import _0x4dd8b2,{bindAnnotationCollections as _0xbe23fd}from'./annotationcollection.js';import _0x106ebf from'./annotations.js';export default class j extends _0x49a866{static get['requires'](){return[_0x106ebf];}static get['pluginName'](){return _0x17f6('0x2b');}constructor(_0x4e3e74){super(_0x4e3e74),this[_0x17f6('0x20')]=new Set(),this[_0x17f6('0x18')]=new Map(),this[_0x17f6('0x7')]=new Map();}[_0x17f6('0x4')](){const _0xd39175=this[_0x17f6('0x0')]['plugins'][_0x17f6('0x2')](_0x106ebf);this[_0x17f6('0x1a')](_0xd39175,_0x17f6('0x6'),(_0x25d599,_0x13d44d)=>{for(const _0x43d356 of this[_0x17f6('0x20')]){const _0x270d3b=this[_0x17f6('0x18')][_0x17f6('0x2')](_0x43d356);(0x0,this[_0x17f6('0x7')][_0x17f6('0x2')](_0x43d356)['filter'])(_0x13d44d)&&_0x270d3b[_0x17f6('0x2a')](_0x13d44d);}}),this[_0x17f6('0x1a')](_0xd39175,_0x17f6('0x9'),()=>{for(const _0x1f341f of this['activeUIs']){this[_0x17f6('0x18')][_0x17f6('0x2')](_0x1f341f)['setActiveAnnotation'](null);}}),this[_0x17f6('0x1a')](_0xd39175[_0x17f6('0x10')],_0x17f6('0x14'),(_0x529757,_0x22a5e5)=>{this[_0x17f6('0x12')](_0x22a5e5);});}[_0x17f6('0x27')](){return this[_0x17f6('0x20')]['size']>0x0;}['isActive'](_0x70eb38){return this[_0x17f6('0x20')][_0x17f6('0x3')](_0x70eb38);}[_0x17f6('0x13')](_0x191b65,_0x1aa98a=()=>!0x0){const _0xb3f6df=this[_0x17f6('0x0')][_0x17f6('0xb')][_0x17f6('0x2')](_0x106ebf);if(!this[_0x17f6('0x18')][_0x17f6('0x3')](_0x191b65))throw new _0x3539a4(_0x17f6('0xe'),this,{'uiName':_0x191b65});this[_0x17f6('0x1f')](_0x191b65)&&this['deactivate'](_0x191b65),this['activeUIs'][_0x17f6('0x14')](_0x191b65);const _0x31cdfe=new _0x4dd8b2(),_0x15f4cf=_0xb3f6df[_0x17f6('0x10')];_0xbe23fd({'source':_0x15f4cf,'target':_0x31cdfe,'filter':_0x1aa98a}),this[_0x17f6('0x7')][_0x17f6('0x5')](_0x191b65,{'collection':_0x31cdfe,'filter':_0x1aa98a});const _0x3ab273=this[_0x17f6('0x18')][_0x17f6('0x2')](_0x191b65);_0x3ab273[_0x17f6('0x15')](_0x31cdfe),this[_0x17f6('0x1a')](_0x3ab273,_0x17f6('0x1e'),(_0x297c00,_0x1f2a59,_0x9aa215,_0x14065b)=>{_0x14065b&&_0xb3f6df[_0x17f6('0x11')](_0x14065b),_0x9aa215&&_0xb3f6df[_0x17f6('0x24')](_0x9aa215);});}[_0x17f6('0xc')](_0x5a0d2f){if(this[_0x17f6('0x20')][_0x17f6('0x26')](_0x5a0d2f),!this['_uis'][_0x17f6('0x3')](_0x5a0d2f))throw new _0x3539a4(_0x17f6('0xe'),this,{'uiName':_0x5a0d2f});const _0x5a807a=this['_uis'][_0x17f6('0x2')](_0x5a0d2f);_0x5a807a[_0x17f6('0x19')](),this[_0x17f6('0x29')](_0x5a807a),this[_0x17f6('0x7')]['get'](_0x5a0d2f)['collection'][_0x17f6('0x21')](),this['_uisData']['delete'](_0x5a0d2f);}[_0x17f6('0x1')](_0x47aab3){if(!this[_0x17f6('0x18')][_0x17f6('0x3')](_0x47aab3))throw new _0x3539a4(_0x17f6('0xe'),this,{'uiName':_0x47aab3});const _0x423236=this[_0x17f6('0x0')][_0x17f6('0xb')][_0x17f6('0x2')](_0x106ebf),_0x160951=Array[_0x17f6('0x1b')](_0x423236[_0x17f6('0xd')])[0x0]||null;this['deactivateAll'](),this[_0x17f6('0x13')](_0x47aab3);const _0x10cd1c=this[_0x17f6('0x18')]['get'](_0x47aab3);_0x10cd1c[_0x17f6('0x2a')](_0x160951),_0x10cd1c[_0x17f6('0x25')]&&_0x160951&&_0x10cd1c[_0x17f6('0x25')]([_0x160951]);}[_0x17f6('0x23')](){for(const _0x3e6753 of this[_0x17f6('0x20')])this[_0x17f6('0xc')](_0x3e6753);}[_0x17f6('0x28')](_0x4182ae,_0x3f7f2a){if(this[_0x17f6('0x18')][_0x17f6('0x3')](_0x4182ae))throw new _0x3539a4('annotationsuis-register-already-registered');if(_0x17f6('0x8')!=typeof _0x3f7f2a[_0x17f6('0x15')]||_0x17f6('0x8')!=typeof _0x3f7f2a[_0x17f6('0x19')]||_0x17f6('0x8')!=typeof _0x3f7f2a['setActiveAnnotation'])throw new _0x3539a4('annotationsuis-register-invalid-interface',null);this['_uis']['set'](_0x4182ae,_0x3f7f2a);}['refilterAnnotations'](){const _0xcff963=this[_0x17f6('0x0')]['plugins'][_0x17f6('0x2')](_0x106ebf)['collection'],_0x69e746=new Map(),_0x4d63a1=Array['from'](this[_0x17f6('0x20')]);for(const _0x446585 of this['activeUIs']){const _0x10c07a=this[_0x17f6('0x7')]['get'](_0x446585)[_0x17f6('0xf')];for(const _0x447ef4 of _0x10c07a)_0x69e746[_0x17f6('0x5')](_0x447ef4,_0x446585);}for(const _0x329bff of _0xcff963){const _0x466f48=_0x69e746[_0x17f6('0x2')](_0x329bff);this[_0x17f6('0x12')](_0x329bff);const _0x5f4277=_0x4d63a1[_0x17f6('0x17')](_0x487a7a=>this['_uisData']['get'](_0x487a7a)[_0x17f6('0x1c')](_0x329bff));_0x466f48!==_0x5f4277&&(_0x466f48&&this[_0x17f6('0x7')][_0x17f6('0x2')](_0x466f48)[_0x17f6('0xf')][_0x17f6('0x1d')](_0x329bff),_0x5f4277&&this['_uisData'][_0x17f6('0x2')](_0x5f4277)['collection'][_0x17f6('0x14')](_0x329bff));}}[_0x17f6('0x21')](){this['deactivateAll'](),super[_0x17f6('0x21')]();}[_0x17f6('0x12')](_0x2251f1){const _0x1aff67=[];for(const _0x26426a of this['activeUIs']){(0x0,this['_uisData'][_0x17f6('0x2')](_0x26426a)['filter'])(_0x2251f1)&&_0x1aff67[_0x17f6('0x22')](_0x26426a);}if(_0x1aff67['length']>0x1)throw new _0x3539a4(_0x17f6('0x16'),null,{'matchedUIs':_0x1aff67,'annotationType':_0x2251f1[_0x17f6('0xa')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xdd6d=['blur','set','fire','isCollapsed','remove','refreshSelectedViews','change:isFocused','listenTo','cancel','hasDomSelection','containsRange','isEqual','annotation','editing','editor','uiUpdate','refresh','selection','_editorAnnotationsData','getOrderedSelectedAnnotations','sort','document','add','update','range','directChange','isReadOnly','innerView','_editorAnnotations','element','EditorAnnotations','get','getByInnerView','has','requires','view','model','_dataCollectors','collection','focusTracker','addSourceCollector','pluginName','editorannotations-invalid-source-callback','init','change:range','getRanges'];(function(_0x86d3e4,_0xdd6dcf){const _0x18462b=function(_0x21c2bd){while(--_0x21c2bd){_0x86d3e4['push'](_0x86d3e4['shift']());}};_0x18462b(++_0xdd6dcf);}(_0xdd6d,0x87));const _0x1846=function(_0x86d3e4,_0xdd6dcf){_0x86d3e4=_0x86d3e4-0x0;let _0x18462b=_0xdd6d[_0x86d3e4];return _0x18462b;};import{Plugin as _0x26b331}from'ckeditor5/src/core.js';import{CKEditorError as _0x5e2158}from'ckeditor5/src/utils.js';import{debounce as _0x1e4996}from'lodash-es';import _0x534d21 from'./annotations.js';export default class k extends _0x26b331{static get[_0x1846('0x25')](){return[_0x534d21];}static get[_0x1846('0x2c')](){return _0x1846('0x21');}constructor(_0x398050){super(_0x398050),this['_dataCollectors']=new Set(),this['_editorAnnotations']=new Set();}[_0x1846('0x0')](){const _0x1167ba=this[_0x1846('0x11')],_0x1a06c1=_0x1167ba[_0x1846('0x27')][_0x1846('0x18')]['selection'],_0x5b1e93=_0x1e4996(()=>this[_0x1846('0x8')](),0xa);_0x1a06c1['on'](_0x1846('0x1'),(_0x2b28e7,_0x5727c3)=>{_0x5727c3[_0x1846('0x1c')]&&(_0x5b1e93[_0x1846('0xb')](),this[_0x1846('0x8')]());}),this[_0x1846('0xa')](_0x1167ba[_0x1846('0x10')]['view']['document'],_0x1846('0x9'),(_0x8f03a2,_0x26861f,_0x3330)=>{_0x3330&&_0x5b1e93();}),this[_0x1846('0xa')](_0x1167ba['ui'][_0x1846('0x2a')],_0x1846('0x9'),(_0x48abdf,_0x4fb235,_0x613d7f)=>{_0x613d7f||_0x1167ba[_0x1846('0x1d')]||this[_0x1846('0x5')](_0x1846('0x3'),{'isAnnotationTracked':_0x5bb4f4=>this[_0x1846('0x15')][_0x1846('0x24')](_0x5bb4f4[_0x1846('0x1e')])});}),this[_0x1846('0xa')](this[_0x1846('0x11')]['ui'],_0x1846('0x1a'),()=>this[_0x1846('0x5')](_0x1846('0x12')));}['registerAnnotation'](_0x5c1aa1){if(this[_0x1846('0x1f')]['has'](_0x5c1aa1[_0x1846('0x26')]))return;this[_0x1846('0x1f')][_0x1846('0x19')](_0x5c1aa1[_0x1846('0x26')]),this[_0x1846('0x11')]['ui']['focusTracker'][_0x1846('0x19')](_0x5c1aa1[_0x1846('0x26')][_0x1846('0x20')]);const _0x24e807=this[_0x1846('0x11')]['plugins'][_0x1846('0x22')](_0x534d21);this[_0x1846('0xa')](_0x24e807[_0x1846('0x29')],_0x1846('0x7'),(_0x1ffc62,_0x16a6b5)=>{this[_0x1846('0x11')]['ui']['focusTracker'][_0x1846('0x7')](_0x16a6b5['view'][_0x1846('0x20')]),this[_0x1846('0x1f')]['delete'](_0x16a6b5[_0x1846('0x26')]);});}[_0x1846('0xc')](){return this[_0x1846('0x11')][_0x1846('0x10')][_0x1846('0x26')][_0x1846('0xc')];}[_0x1846('0x2b')](_0x54abd3){if('function'!=typeof _0x54abd3)throw new _0x5e2158(_0x1846('0x2d'));this[_0x1846('0x28')][_0x1846('0x19')](_0x54abd3);}['refreshSelectedViews'](){this['fire'](_0x1846('0x13'));}[_0x1846('0x16')]({activeAnnotation:_0x44f4e3,annotations:_0x5a274f}){const _0x4f891d=[],_0x535872=this[_0x1846('0x11')][_0x1846('0x27')][_0x1846('0x18')][_0x1846('0x14')],_0x343fc8=Array['from'](_0x535872[_0x1846('0x2')]());for(const [_0xcf87bc,_0x39bfc5]of this[_0x1846('0x15')]){const _0x411bc5=_0xcb811f(_0x39bfc5),_0x5ac696=_0x5a274f[_0x1846('0x23')](_0xcf87bc);_0x411bc5&&_0x5ac696&&_0x4f891d['push']({'annotation':_0x5ac696,'range':_0x411bc5});}function _0xcb811f(_0x441fb7){for(const _0x47316a of _0x441fb7)for(const _0x28678c of _0x343fc8)if(_0x47316a['containsRange'](_0x28678c,!_0x535872[_0x1846('0x6')]))return _0x47316a;return null;}return _0x4f891d[_0x1846('0x17')]((_0x43b404,_0x399e11)=>{const _0x21bd60=_0x43b404[_0x1846('0x1b')],_0x368929=_0x399e11['range'];if(!_0x21bd60[_0x1846('0xe')](_0x368929)){if(_0x21bd60['containsRange'](_0x368929,!0x0))return 0x1;if(_0x368929[_0x1846('0xd')](_0x21bd60,!0x0))return-0x1;}return _0x43b404[_0x1846('0xf')]==_0x44f4e3?-0x1:_0x399e11['annotation']==_0x44f4e3?0x1:0x0;})['map'](_0x4a6f54=>_0x4a6f54[_0x1846('0xf')]);}get[_0x1846('0x15')](){const _0x4212f4=new Map();for(const _0x327636 of Array['from'](this['_dataCollectors']))for(const [_0x4e0412,_0x385dce]of _0x327636())_0x4212f4[_0x1846('0x4')](_0x4e0412,_0x385dce);return _0x4212f4;}}
23
+ const _0x5234=['delete','model','isReadOnly','getRanges','_editorAnnotationsData','registerAnnotation','cancel','push','_dataCollectors','annotation','requires','refreshSelectedViews','isEqual','remove','from','_editorAnnotations','selection','editor','element','isCollapsed','containsRange','map','collection','get','focusTracker','has','blur','view','getOrderedSelectedAnnotations','init','pluginName','directChange','fire','addSourceCollector','function','listenTo','add','editing','update','document','hasDomSelection','change:range','change:isFocused'];(function(_0x207e67,_0x523480){const _0x212f6e=function(_0xf3473b){while(--_0xf3473b){_0x207e67['push'](_0x207e67['shift']());}};_0x212f6e(++_0x523480);}(_0x5234,0xec));const _0x212f=function(_0x207e67,_0x523480){_0x207e67=_0x207e67-0x0;let _0x212f6e=_0x5234[_0x207e67];return _0x212f6e;};import{Plugin as _0x372de3}from'ckeditor5/src/core.js';import{CKEditorError as _0xcbee8b}from'ckeditor5/src/utils.js';import{debounce as _0x28b127}from'lodash-es';import _0x1ecf18 from'./annotations.js';export default class k extends _0x372de3{static get[_0x212f('0x20')](){return[_0x1ecf18];}static get[_0x212f('0x9')](){return'EditorAnnotations';}constructor(_0xfe05d6){super(_0xfe05d6),this['_dataCollectors']=new Set(),this[_0x212f('0x25')]=new Set();}[_0x212f('0x8')](){const _0x4f59b0=this[_0x212f('0x27')],_0x2a23ac=_0x4f59b0[_0x212f('0x17')][_0x212f('0x12')]['selection'],_0x2a2c4d=_0x28b127(()=>this[_0x212f('0x21')](),0xa);_0x2a23ac['on'](_0x212f('0x14'),(_0x4e8d75,_0x1aa0d3)=>{_0x1aa0d3[_0x212f('0xa')]&&(_0x2a2c4d[_0x212f('0x1c')](),this[_0x212f('0x21')]());}),this['listenTo'](_0x4f59b0[_0x212f('0x10')][_0x212f('0x6')][_0x212f('0x12')],_0x212f('0x15'),(_0x6af1ee,_0xd79798,_0x18750a)=>{_0x18750a&&_0x2a2c4d();}),this['listenTo'](_0x4f59b0['ui']['focusTracker'],'change:isFocused',(_0x4f5d4d,_0x48d42b,_0x1d2293)=>{_0x1d2293||_0x4f59b0[_0x212f('0x18')]||this[_0x212f('0xb')](_0x212f('0x5'),{'isAnnotationTracked':_0x302ad2=>this[_0x212f('0x1a')][_0x212f('0x4')](_0x302ad2['innerView'])});}),this['listenTo'](this['editor']['ui'],_0x212f('0x11'),()=>this[_0x212f('0xb')]('uiUpdate'));}[_0x212f('0x1b')](_0x32444e){if(this[_0x212f('0x25')][_0x212f('0x4')](_0x32444e['view']))return;this[_0x212f('0x25')]['add'](_0x32444e[_0x212f('0x6')]),this[_0x212f('0x27')]['ui'][_0x212f('0x3')][_0x212f('0xf')](_0x32444e[_0x212f('0x6')][_0x212f('0x28')]);const _0x1261d7=this[_0x212f('0x27')]['plugins'][_0x212f('0x2')](_0x1ecf18);this[_0x212f('0xe')](_0x1261d7[_0x212f('0x1')],_0x212f('0x23'),(_0x80fd3e,_0x36218b)=>{this[_0x212f('0x27')]['ui']['focusTracker'][_0x212f('0x23')](_0x36218b[_0x212f('0x6')]['element']),this[_0x212f('0x25')][_0x212f('0x16')](_0x36218b['view']);});}[_0x212f('0x13')](){return this[_0x212f('0x27')][_0x212f('0x10')][_0x212f('0x6')][_0x212f('0x13')];}[_0x212f('0xc')](_0x43bbcf){if(_0x212f('0xd')!=typeof _0x43bbcf)throw new _0xcbee8b('editorannotations-invalid-source-callback');this[_0x212f('0x1e')][_0x212f('0xf')](_0x43bbcf);}[_0x212f('0x21')](){this['fire']('refresh');}[_0x212f('0x7')]({activeAnnotation:_0x1a3339,annotations:_0x4623ea}){const _0x4b955c=[],_0x1953b5=this[_0x212f('0x27')]['model'][_0x212f('0x12')][_0x212f('0x26')],_0x4e46b3=Array[_0x212f('0x24')](_0x1953b5[_0x212f('0x19')]());for(const [_0x49934f,_0x5a0fd5]of this['_editorAnnotationsData']){const _0x2c5975=_0x1083ed(_0x5a0fd5),_0x289ca4=_0x4623ea['getByInnerView'](_0x49934f);_0x2c5975&&_0x289ca4&&_0x4b955c[_0x212f('0x1d')]({'annotation':_0x289ca4,'range':_0x2c5975});}function _0x1083ed(_0x22f0b2){for(const _0x3ce17a of _0x22f0b2)for(const _0xe01491 of _0x4e46b3)if(_0x3ce17a[_0x212f('0x2a')](_0xe01491,!_0x1953b5[_0x212f('0x29')]))return _0x3ce17a;return null;}return _0x4b955c['sort']((_0x4eec96,_0x4a7eef)=>{const _0x500b24=_0x4eec96['range'],_0x520d8c=_0x4a7eef['range'];if(!_0x500b24[_0x212f('0x22')](_0x520d8c)){if(_0x500b24['containsRange'](_0x520d8c,!0x0))return 0x1;if(_0x520d8c['containsRange'](_0x500b24,!0x0))return-0x1;}return _0x4eec96[_0x212f('0x1f')]==_0x1a3339?-0x1:_0x4a7eef[_0x212f('0x1f')]==_0x1a3339?0x1:0x0;})[_0x212f('0x0')](_0x1ffe0c=>_0x1ffe0c[_0x212f('0x1f')]);}get['_editorAnnotationsData'](){const _0x24d2d9=new Map();for(const _0x29b4d7 of Array[_0x212f('0x24')](this[_0x212f('0x1e')]))for(const [_0x249808,_0x3360c1]of _0x29b4d7())_0x24d2d9['set'](_0x249808,_0x3360c1);return _0x24d2d9;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3586=['destroy','domConverter','annotations','activeAnnotation','top','right','hasView','_selectedAnnotations','_forceRefresh','clear','showStack','stopListening','isAttached','_manuallyClosed','getFirstRange','remove','focus','isFocused','left','update','hasActive','_setSelectedAnnotations','collapse','isActive','Esc','editableElement','push','afterInit','every','inlineannotations-detach-not-attached','includes','selection','setActiveAnnotation','attach','document','getClientRects','has','visibleView','mousedown','inline','addObserver','width','add','register','focusTracker','editing','change:visibleView','context','viewRangeToDom','inlineannotations-attach-already-attached','delete','_closeAnnotation','_addedAnnotations','listenTo','editor','target','_getBalloonTargetForAnnotation','updatePosition','plugins','getByView','_removeAnnotationFromBalloon','get','_balloon','view','_addAnnotationToBalloon','set','blur','change:isFocused','detach','inlineannotations-not-allowed-with-context','bottom'];(function(_0x336a9c,_0x358667){const _0x5d1c91=function(_0x18b999){while(--_0x18b999){_0x336a9c['push'](_0x336a9c['shift']());}};_0x5d1c91(++_0x358667);}(_0x3586,0x13c));const _0x5d1c=function(_0x336a9c,_0x358667){_0x336a9c=_0x336a9c-0x0;let _0x5d1c91=_0x3586[_0x336a9c];return _0x5d1c91;};import{Plugin as _0x24933c}from'ckeditor5/src/core.js';import _0x224c74 from'./annotationsuis.js';import _0x3a7dd9 from'./editorannotations.js';import{ContextualBalloon as _0x3e76bd}from'ckeditor5/src/ui.js';import{MouseObserver as _0xb89697}from'ckeditor5/src/engine.js';import{CKEditorError as _0x117704,Rect as _0x4326a4}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x24933c{static get['requires'](){return[_0x3a7dd9,_0x3e76bd,_0x224c74];}static get['pluginName'](){return'InlineAnnotations';}constructor(_0x314098){super(_0x314098),_0x314098[_0x5d1c('0xd')][_0x5d1c('0x1f')][_0x5d1c('0x8')](_0xb89697),this['isAttached']=!0x1,this[_0x5d1c('0x21')](_0x5d1c('0x2a'),null),this[_0x5d1c('0x29')]=null,this['_manuallyClosed']=new Set(),this[_0x5d1c('0x1e')]=_0x314098[_0x5d1c('0x1a')][_0x5d1c('0x1d')](_0x3e76bd),this[_0x5d1c('0x14')]=new Set(),this['_selectedAnnotations']=[],this[_0x5d1c('0x2f')]=!0x1;}['init'](){const _0x102cf5=this[_0x5d1c('0x16')]['plugins'][_0x5d1c('0x1d')](_0x224c74);_0x102cf5[_0x5d1c('0xf')]===this['editor']&&(_0x102cf5[_0x5d1c('0xb')]('inline',this),this[_0x5d1c('0x16')]['keystrokes'][_0x5d1c('0x21')]('Esc',(_0x1e2bc7,_0x55187c)=>{const _0x1f4c90=this[_0x5d1c('0x1e')];if(this['isAttached']&&_0x1f4c90[_0x5d1c('0x5')]){const _0x2c4a17=this[_0x5d1c('0x29')][_0x5d1c('0x1b')](_0x1f4c90[_0x5d1c('0x5')]);_0x2c4a17&&this[_0x5d1c('0x13')](_0x2c4a17),_0x55187c();}}));}[_0x5d1c('0x42')](){const _0x193922=this[_0x5d1c('0x16')][_0x5d1c('0x1a')]['get'](_0x224c74);_0x193922[_0x5d1c('0xf')]===this[_0x5d1c('0x16')]&&(_0x193922[_0x5d1c('0x3b')]()||_0x193922['switchTo'](_0x5d1c('0x7')));}[_0x5d1c('0x0')](_0x1725d0){_0x1725d0!==this[_0x5d1c('0x2a')]&&(this[_0x5d1c('0x2a')]&&(this['activeAnnotation'][_0x5d1c('0x3e')]=!0x1),_0x1725d0&&this[_0x5d1c('0x16')]['ui'][_0x5d1c('0xc')][_0x5d1c('0x38')]&&(this[_0x5d1c('0x29')][_0x5d1c('0x4')](_0x1725d0)&&this[_0x5d1c('0x20')](_0x1725d0,!0x0),_0x1725d0[_0x5d1c('0x3e')]=!0x0),_0x1725d0||this[_0x5d1c('0x3c')]([]),this[_0x5d1c('0x2a')]=_0x1725d0);}[_0x5d1c('0x1')](_0x2b5a4a){this['annotations']=_0x2b5a4a;const _0x3b9f37=this[_0x5d1c('0x16')]['plugins'][_0x5d1c('0x1d')](_0x224c74),_0x3c387b=this[_0x5d1c('0x1e')];if(this[_0x5d1c('0x33')])throw new _0x117704(_0x5d1c('0x11'),this);if(_0x3b9f37[_0x5d1c('0xf')]!==this[_0x5d1c('0x16')])throw new _0x117704(_0x5d1c('0x25'),this);const _0x2eea50=this['editor']['plugins'][_0x5d1c('0x1d')](_0x3a7dd9);this[_0x5d1c('0x15')](_0x2eea50,'refresh',()=>{const _0x2f98ae=_0x2eea50['getOrderedSelectedAnnotations']({'annotations':this[_0x5d1c('0x29')],'activeAnnotation':this[_0x5d1c('0x2a')]});var _0x14bdd6,_0x75a66c;!this[_0x5d1c('0x2f')]&&(_0x14bdd6=_0x2f98ae,_0x75a66c=this[_0x5d1c('0x2e')],_0x14bdd6['length']===_0x75a66c['length']&&_0x14bdd6[_0x5d1c('0x43')](_0x2f9d9f=>_0x75a66c[_0x5d1c('0x45')](_0x2f9d9f)))||(this['_forceRefresh']=!0x1,this['_setSelectedAnnotations'](_0x2f98ae),this[_0x5d1c('0x0')](_0x2f98ae[0x0]||null));}),this[_0x5d1c('0x15')](_0x2eea50,_0x5d1c('0x22'),(_0x50e2d2,{isAnnotationTracked:_0x24204b})=>{this[_0x5d1c('0x2a')]&&_0x24204b(this[_0x5d1c('0x2a')])&&(this[_0x5d1c('0x3c')]([]),this[_0x5d1c('0x0')](null));}),this[_0x5d1c('0x15')](this[_0x5d1c('0x16')]['ui'][_0x5d1c('0xc')],_0x5d1c('0x23'),(_0x510e08,_0x28f486,_0x44b467)=>{_0x44b467||this[_0x5d1c('0x0')](null);}),this['listenTo'](_0x2b5a4a,_0x5d1c('0x36'),(_0x5ee9bd,_0x42530e)=>{this[_0x5d1c('0x1c')](_0x42530e),_0x42530e===this[_0x5d1c('0x2a')]&&this[_0x5d1c('0x0')](null);}),this['listenTo'](_0x3c387b,_0x5d1c('0xe'),(_0x4e12d9,_0x773e1b,_0x5ef74f,_0x81eda3)=>{_0x81eda3&&this[_0x5d1c('0x32')](_0x81eda3);const _0x967751=_0x2b5a4a[_0x5d1c('0x1b')](_0x5ef74f);_0x5ef74f&&_0x967751&&(this[_0x5d1c('0x15')](_0x5ef74f,'change:height',()=>{_0x3c387b['updatePosition']();}),this[_0x5d1c('0x15')](_0x5ef74f,_0x5d1c('0x3f'),()=>{this['_closeAnnotation'](_0x967751),this[_0x5d1c('0x16')][_0x5d1c('0xd')]['view'][_0x5d1c('0x37')]();}),this[_0x5d1c('0x2a')]!==_0x967751&&this[_0x5d1c('0x0')](_0x967751));}),this[_0x5d1c('0x15')](this[_0x5d1c('0x16')]['ui'],_0x5d1c('0x3a'),()=>{_0x3c387b[_0x5d1c('0x5')]&&(_0x2b5a4a[_0x5d1c('0x1b')](_0x3c387b['visibleView'])&&_0x3c387b[_0x5d1c('0x19')]());}),this['listenTo'](this[_0x5d1c('0x16')][_0x5d1c('0xd')][_0x5d1c('0x1f')][_0x5d1c('0x2')],_0x5d1c('0x6'),()=>{this['_forceRefresh']=!0x0,this[_0x5d1c('0x34')][_0x5d1c('0x30')]();}),this['editor'][_0x5d1c('0xd')]['view'][_0x5d1c('0x2')][_0x5d1c('0x46')][_0x5d1c('0x40')]&&this[_0x5d1c('0x16')][_0x5d1c('0xd')][_0x5d1c('0x1f')][_0x5d1c('0x37')](),this[_0x5d1c('0x33')]=!0x0;}[_0x5d1c('0x24')](){if(!this[_0x5d1c('0x33')])throw new _0x117704(_0x5d1c('0x44'),this);this[_0x5d1c('0x0')](null);for(const _0x4581f5 of this[_0x5d1c('0x14')])this[_0x5d1c('0x1c')](_0x4581f5);this[_0x5d1c('0x32')](),this[_0x5d1c('0x33')]=!0x1,this[_0x5d1c('0x29')]=null;}[_0x5d1c('0x27')](){this[_0x5d1c('0x33')]&&this['detach']();}[_0x5d1c('0x3c')](_0x4aeb74){for(const _0x1097e3 of this[_0x5d1c('0x2e')])_0x4aeb74[_0x5d1c('0x45')](_0x1097e3)||this['_manuallyClosed']['delete'](_0x1097e3);for(const _0x46550f of this['annotations'])_0x4aeb74['includes'](_0x46550f)||this['_removeAnnotationFromBalloon'](_0x46550f);if(this[_0x5d1c('0x16')]['ui'][_0x5d1c('0xc')][_0x5d1c('0x38')])for(const _0x186b0f of _0x4aeb74)this[_0x5d1c('0x20')](_0x186b0f);this[_0x5d1c('0x2e')]=_0x4aeb74;}[_0x5d1c('0x20')](_0x16035d,_0xa01b20=!0x1){this[_0x5d1c('0x34')]['has'](_0x16035d)||(this['_addedAnnotations']['has'](_0x16035d)||this[_0x5d1c('0x1e')][_0x5d1c('0x2d')](_0x16035d['view'])||(this[_0x5d1c('0x14')]['add'](_0x16035d),this['_balloon']['add']({'stackId':_0x16035d['view']['id'],'view':_0x16035d[_0x5d1c('0x1f')],'position':{'target':()=>this[_0x5d1c('0x18')](_0x16035d)}})),_0xa01b20&&this[_0x5d1c('0x1e')][_0x5d1c('0x31')](_0x16035d['view']['id']));}[_0x5d1c('0x18')](_0x56fbf9){const _0xee9f63=_0x56fbf9[_0x5d1c('0x17')],_0x1fab4f=this[_0x5d1c('0x16')][_0x5d1c('0xd')][_0x5d1c('0x1f')],_0x30ebfc=_0x1fab4f['document'][_0x5d1c('0x46')][_0x5d1c('0x35')](),_0x18fd94=_0x1fab4f[_0x5d1c('0x28')][_0x5d1c('0x10')](_0x30ebfc);if(_0x18fd94[_0x5d1c('0x3d')](!0x0),_0xee9f63){if(_0xee9f63 instanceof _0x4326a4)return _0xee9f63;let _0x3f934b=[];for(const _0x5e983a of _0xee9f63)_0x3f934b[_0x5d1c('0x41')](...(_0xe9bb1=_0x5e983a[_0x5d1c('0x3')](),Array['from'](_0xe9bb1)['map'](DOMRect['fromRect'])));_0x3f934b=function(_0x1f56f4){const _0x4154e5=[];let _0x88af54=_0x1f56f4[0x0];for(let _0x3c7f29=0x1;_0x3c7f29<_0x1f56f4['length'];_0x3c7f29++)F(_0x88af54,_0x1f56f4[_0x3c7f29])?_0x88af54[_0x5d1c('0x9')]+=_0x1f56f4[_0x3c7f29][_0x5d1c('0x9')]:(_0x4154e5['push'](_0x88af54),_0x88af54=_0x1f56f4[_0x3c7f29]);return _0x4154e5[_0x5d1c('0x41')](_0x88af54),_0x4154e5;}(_0x3f934b);const _0x33c6af=_0x18fd94['getBoundingClientRect']();return _0x3f934b['find'](_0x4f8592=>_0x4f8592[_0x5d1c('0x2b')]<=_0x33c6af[_0x5d1c('0x2b')]&&_0x4f8592[_0x5d1c('0x26')]>=_0x33c6af[_0x5d1c('0x26')]&&_0x4f8592[_0x5d1c('0x39')]<=_0x33c6af[_0x5d1c('0x39')]&&_0x4f8592[_0x5d1c('0x2c')]>=_0x33c6af[_0x5d1c('0x2c')])||_0x3f934b[0x0];}var _0xe9bb1;return _0x56fbf9['targetRect']||_0x18fd94;}[_0x5d1c('0x1c')](_0x21f6b5){this['_addedAnnotations'][_0x5d1c('0x4')](_0x21f6b5)&&this[_0x5d1c('0x1e')][_0x5d1c('0x2d')](_0x21f6b5[_0x5d1c('0x1f')])&&(this[_0x5d1c('0x14')][_0x5d1c('0x12')](_0x21f6b5),this[_0x5d1c('0x1e')][_0x5d1c('0x36')](_0x21f6b5['view']));}[_0x5d1c('0x13')](_0x2956a9){this[_0x5d1c('0x34')][_0x5d1c('0xa')](_0x2956a9),this[_0x5d1c('0x1c')](_0x2956a9);}}function F(_0x4f7012,_0x5f039c){return _0x4f7012['top']===_0x5f039c[_0x5d1c('0x2b')]&&_0x4f7012[_0x5d1c('0x26')]===_0x5f039c['bottom']&&_0x4f7012['right']===_0x5f039c[_0x5d1c('0x39')];}
23
+ const _0x4b54=['inlineannotations-attach-already-attached','setActiveAnnotation','right','updatePosition','length','stopListening','getByView','_removeAnnotationFromBalloon','init','editor','focusTracker','push','isFocused','getClientRects','update','_setSelectedAnnotations','getBoundingClientRect','_manuallyClosed','hasView','Esc','left','blur','addObserver','viewRangeToDom','find','annotations','inlineannotations-detach-not-attached','clear','_selectedAnnotations','visibleView','mousedown','has','destroy','plugins','afterInit','isActive','keystrokes','_addedAnnotations','_closeAnnotation','editableElement','attach','isAttached','context','_forceRefresh','listenTo','requires','switchTo','get','focus','targetRect','_addAnnotationToBalloon','inline','document','from','InlineAnnotations','width','selection','add','_balloon','set','editing','bottom','includes','register','collapse','delete','remove','activeAnnotation','view','top','target'];(function(_0x41fd9d,_0x4b54b8){const _0x5d82c3=function(_0x559dd6){while(--_0x559dd6){_0x41fd9d['push'](_0x41fd9d['shift']());}};_0x5d82c3(++_0x4b54b8);}(_0x4b54,0x179));const _0x5d82=function(_0x41fd9d,_0x4b54b8){_0x41fd9d=_0x41fd9d-0x0;let _0x5d82c3=_0x4b54[_0x41fd9d];return _0x5d82c3;};import{Plugin as _0x424f45}from'ckeditor5/src/core.js';import _0x52b44d from'./annotationsuis.js';import _0x5af9e3 from'./editorannotations.js';import{ContextualBalloon as _0x29abf3}from'ckeditor5/src/ui.js';import{MouseObserver as _0x35deab}from'ckeditor5/src/engine.js';import{CKEditorError as _0x5244fc,Rect as _0x175c7c}from'ckeditor5/src/utils.js';import'./../../theme/annotation-inline.css';export default class c extends _0x424f45{static get[_0x5d82('0x17')](){return[_0x5af9e3,_0x29abf3,_0x52b44d];}static get['pluginName'](){return _0x5d82('0x20');}constructor(_0x3dcefa){super(_0x3dcefa),_0x3dcefa['editing'][_0x5d82('0x2e')][_0x5d82('0x0')](_0x35deab),this[_0x5d82('0x13')]=!0x1,this[_0x5d82('0x25')](_0x5d82('0x2d'),null),this[_0x5d82('0x3')]=null,this[_0x5d82('0x42')]=new Set(),this['_balloon']=_0x3dcefa['plugins']['get'](_0x29abf3),this[_0x5d82('0xf')]=new Set(),this['_selectedAnnotations']=[],this[_0x5d82('0x15')]=!0x1;}[_0x5d82('0x39')](){const _0x5c0e0a=this[_0x5d82('0x3a')]['plugins']['get'](_0x52b44d);_0x5c0e0a[_0x5d82('0x14')]===this[_0x5d82('0x3a')]&&(_0x5c0e0a[_0x5d82('0x29')](_0x5d82('0x1d'),this),this[_0x5d82('0x3a')][_0x5d82('0xe')][_0x5d82('0x25')](_0x5d82('0x44'),(_0x3493a3,_0x50a129)=>{const _0x41f5bc=this['_balloon'];if(this['isAttached']&&_0x41f5bc[_0x5d82('0x7')]){const _0x131a42=this[_0x5d82('0x3')][_0x5d82('0x37')](_0x41f5bc[_0x5d82('0x7')]);_0x131a42&&this[_0x5d82('0x10')](_0x131a42),_0x50a129();}}));}[_0x5d82('0xc')](){const _0x15fc95=this[_0x5d82('0x3a')][_0x5d82('0xb')][_0x5d82('0x19')](_0x52b44d);_0x15fc95[_0x5d82('0x14')]===this[_0x5d82('0x3a')]&&(_0x15fc95['hasActive']()||_0x15fc95[_0x5d82('0x18')](_0x5d82('0x1d')));}[_0x5d82('0x32')](_0x3cef9c){_0x3cef9c!==this[_0x5d82('0x2d')]&&(this[_0x5d82('0x2d')]&&(this[_0x5d82('0x2d')][_0x5d82('0xd')]=!0x1),_0x3cef9c&&this[_0x5d82('0x3a')]['ui'][_0x5d82('0x3b')]['isFocused']&&(this[_0x5d82('0x3')][_0x5d82('0x9')](_0x3cef9c)&&this['_addAnnotationToBalloon'](_0x3cef9c,!0x0),_0x3cef9c[_0x5d82('0xd')]=!0x0),_0x3cef9c||this[_0x5d82('0x40')]([]),this[_0x5d82('0x2d')]=_0x3cef9c);}[_0x5d82('0x12')](_0x1f65ca){this[_0x5d82('0x3')]=_0x1f65ca;const _0x4610b2=this[_0x5d82('0x3a')]['plugins']['get'](_0x52b44d),_0x54bd45=this['_balloon'];if(this['isAttached'])throw new _0x5244fc(_0x5d82('0x31'),this);if(_0x4610b2['context']!==this[_0x5d82('0x3a')])throw new _0x5244fc('inlineannotations-not-allowed-with-context',this);const _0x3c44b5=this['editor'][_0x5d82('0xb')][_0x5d82('0x19')](_0x5af9e3);this[_0x5d82('0x16')](_0x3c44b5,'refresh',()=>{const _0x3bd889=_0x3c44b5['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x5d82('0x2d')]});var _0x221244,_0x5af112;!this[_0x5d82('0x15')]&&(_0x221244=_0x3bd889,_0x5af112=this['_selectedAnnotations'],_0x221244[_0x5d82('0x35')]===_0x5af112[_0x5d82('0x35')]&&_0x221244['every'](_0x3f8ee0=>_0x5af112['includes'](_0x3f8ee0)))||(this[_0x5d82('0x15')]=!0x1,this[_0x5d82('0x40')](_0x3bd889),this[_0x5d82('0x32')](_0x3bd889[0x0]||null));}),this[_0x5d82('0x16')](_0x3c44b5,_0x5d82('0x46'),(_0x5e2cc0,{isAnnotationTracked:_0x2b9c38})=>{this[_0x5d82('0x2d')]&&_0x2b9c38(this[_0x5d82('0x2d')])&&(this[_0x5d82('0x40')]([]),this['setActiveAnnotation'](null));}),this['listenTo'](this[_0x5d82('0x3a')]['ui']['focusTracker'],'change:isFocused',(_0x1c80fb,_0x2b2ebb,_0x424d1d)=>{_0x424d1d||this[_0x5d82('0x32')](null);}),this[_0x5d82('0x16')](_0x1f65ca,_0x5d82('0x2c'),(_0x40d9c0,_0xa917c5)=>{this[_0x5d82('0x38')](_0xa917c5),_0xa917c5===this[_0x5d82('0x2d')]&&this[_0x5d82('0x32')](null);}),this[_0x5d82('0x16')](_0x54bd45,'change:visibleView',(_0x534306,_0x232b68,_0x36d4c7,_0x198335)=>{_0x198335&&this['stopListening'](_0x198335);const _0x4aea9b=_0x1f65ca[_0x5d82('0x37')](_0x36d4c7);_0x36d4c7&&_0x4aea9b&&(this['listenTo'](_0x36d4c7,'change:height',()=>{_0x54bd45['updatePosition']();}),this[_0x5d82('0x16')](_0x36d4c7,'Esc',()=>{this['_closeAnnotation'](_0x4aea9b),this[_0x5d82('0x3a')][_0x5d82('0x26')]['view']['focus']();}),this[_0x5d82('0x2d')]!==_0x4aea9b&&this[_0x5d82('0x32')](_0x4aea9b));}),this['listenTo'](this[_0x5d82('0x3a')]['ui'],_0x5d82('0x3f'),()=>{_0x54bd45[_0x5d82('0x7')]&&(_0x1f65ca[_0x5d82('0x37')](_0x54bd45[_0x5d82('0x7')])&&_0x54bd45[_0x5d82('0x34')]());}),this['listenTo'](this[_0x5d82('0x3a')][_0x5d82('0x26')][_0x5d82('0x2e')]['document'],_0x5d82('0x8'),()=>{this[_0x5d82('0x15')]=!0x0,this[_0x5d82('0x42')][_0x5d82('0x5')]();}),this[_0x5d82('0x3a')][_0x5d82('0x26')][_0x5d82('0x2e')][_0x5d82('0x1e')][_0x5d82('0x22')][_0x5d82('0x11')]&&this['editor']['editing'][_0x5d82('0x2e')][_0x5d82('0x1a')](),this[_0x5d82('0x13')]=!0x0;}['detach'](){if(!this[_0x5d82('0x13')])throw new _0x5244fc(_0x5d82('0x4'),this);this[_0x5d82('0x32')](null);for(const _0x5e4c20 of this[_0x5d82('0xf')])this['_removeAnnotationFromBalloon'](_0x5e4c20);this[_0x5d82('0x36')](),this['isAttached']=!0x1,this[_0x5d82('0x3')]=null;}[_0x5d82('0xa')](){this['isAttached']&&this['detach']();}[_0x5d82('0x40')](_0x107958){for(const _0x45503a of this[_0x5d82('0x6')])_0x107958[_0x5d82('0x28')](_0x45503a)||this['_manuallyClosed'][_0x5d82('0x2b')](_0x45503a);for(const _0x12a132 of this[_0x5d82('0x3')])_0x107958[_0x5d82('0x28')](_0x12a132)||this['_removeAnnotationFromBalloon'](_0x12a132);if(this['editor']['ui'][_0x5d82('0x3b')][_0x5d82('0x3d')])for(const _0x28278e of _0x107958)this[_0x5d82('0x1c')](_0x28278e);this[_0x5d82('0x6')]=_0x107958;}['_addAnnotationToBalloon'](_0x113b75,_0x3f1c2b=!0x1){this[_0x5d82('0x42')]['has'](_0x113b75)||(this[_0x5d82('0xf')][_0x5d82('0x9')](_0x113b75)||this[_0x5d82('0x24')][_0x5d82('0x43')](_0x113b75[_0x5d82('0x2e')])||(this[_0x5d82('0xf')][_0x5d82('0x23')](_0x113b75),this[_0x5d82('0x24')][_0x5d82('0x23')]({'stackId':_0x113b75[_0x5d82('0x2e')]['id'],'view':_0x113b75[_0x5d82('0x2e')],'position':{'target':()=>this['_getBalloonTargetForAnnotation'](_0x113b75)}})),_0x3f1c2b&&this['_balloon']['showStack'](_0x113b75[_0x5d82('0x2e')]['id']));}['_getBalloonTargetForAnnotation'](_0x4172ae){const _0x44221b=_0x4172ae[_0x5d82('0x30')],_0x349f49=this['editor'][_0x5d82('0x26')][_0x5d82('0x2e')],_0x134e38=_0x349f49['document'][_0x5d82('0x22')]['getFirstRange'](),_0x21e594=_0x349f49['domConverter'][_0x5d82('0x1')](_0x134e38);if(_0x21e594[_0x5d82('0x2a')](!0x0),_0x44221b){if(_0x44221b instanceof _0x175c7c)return _0x44221b;let _0x111efa=[];for(const _0x235d32 of _0x44221b)_0x111efa[_0x5d82('0x3c')](...(_0x363dec=_0x235d32[_0x5d82('0x3e')](),Array[_0x5d82('0x1f')](_0x363dec)['map'](DOMRect['fromRect'])));_0x111efa=function(_0x5ac571){const _0x4b04da=[];let _0x569f0e=_0x5ac571[0x0];for(let _0x5cd73c=0x1;_0x5cd73c<_0x5ac571[_0x5d82('0x35')];_0x5cd73c++)F(_0x569f0e,_0x5ac571[_0x5cd73c])?_0x569f0e[_0x5d82('0x21')]+=_0x5ac571[_0x5cd73c][_0x5d82('0x21')]:(_0x4b04da[_0x5d82('0x3c')](_0x569f0e),_0x569f0e=_0x5ac571[_0x5cd73c]);return _0x4b04da[_0x5d82('0x3c')](_0x569f0e),_0x4b04da;}(_0x111efa);const _0x51dccb=_0x21e594[_0x5d82('0x41')]();return _0x111efa[_0x5d82('0x2')](_0x2258a6=>_0x2258a6[_0x5d82('0x2f')]<=_0x51dccb[_0x5d82('0x2f')]&&_0x2258a6[_0x5d82('0x27')]>=_0x51dccb[_0x5d82('0x27')]&&_0x2258a6[_0x5d82('0x45')]<=_0x51dccb['left']&&_0x2258a6[_0x5d82('0x33')]>=_0x51dccb[_0x5d82('0x33')])||_0x111efa[0x0];}var _0x363dec;return _0x4172ae[_0x5d82('0x1b')]||_0x21e594;}[_0x5d82('0x38')](_0x2288fc){this[_0x5d82('0xf')][_0x5d82('0x9')](_0x2288fc)&&this[_0x5d82('0x24')][_0x5d82('0x43')](_0x2288fc[_0x5d82('0x2e')])&&(this['_addedAnnotations']['delete'](_0x2288fc),this[_0x5d82('0x24')][_0x5d82('0x2c')](_0x2288fc[_0x5d82('0x2e')]));}[_0x5d82('0x10')](_0x1f1efc){this[_0x5d82('0x42')][_0x5d82('0x23')](_0x1f1efc),this[_0x5d82('0x38')](_0x1f1efc);}}function F(_0x2075c3,_0x24857b){return _0x2075c3[_0x5d82('0x2f')]===_0x24857b[_0x5d82('0x2f')]&&_0x2075c3[_0x5d82('0x27')]===_0x24857b[_0x5d82('0x27')]&&_0x2075c3[_0x5d82('0x33')]===_0x24857b[_0x5d82('0x45')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5180=['_hideBalloon','resize','_destroyEditorAnnotationsIntegration','set','preventClosingBalloon','view','getSidebarItemView','editors','esc','hasDomSelection','_detachFromContainer','init','refreshPositioning','NarrowSidebar','remove','_updateBalloonPosition','contains','attachToDom','clear','_manuallyClosedAnnotationViews','southArrowNorth','detach','from','addAnnotation','set:container','first','southArrowNorthWest','_attachToContainer','isAttached','EditorAnnotations','values','ck-sidebar--narrow','_detachListeners','southArrowNorthEast','change:height','annotationType','off','removeEventListener','_editorAnnotations','unpin','high','stop','_setSelectedAnnotations','includes','length','content','pluginName','_domEmitter','change:container','find','mousedown','context','northArrowSouthWest','execute','destroy','annotations','Esc','_selectedAnnotations','locale','plugins','_refreshPositioning','_attachListeners','element','isDirty','_annotationToNarrowView','activeAnnotation','balloonPanelView','target','_showBalloon','northArrowSouth','stopListening','_refreshPositioningDebounced','bodyCollection','get','add','refresh','_integrateWithEditorAnnotations','attach','addEventListener','focus','rearrange','has','isVisible','bind','northArrowSouthEast','stopPropagation','detachFromDom','listenTo','blur','setActiveAnnotation'];(function(_0x161a93,_0x518045){const _0x5cc000=function(_0x3d1c94){while(--_0x3d1c94){_0x161a93['push'](_0x161a93['shift']());}};_0x5cc000(++_0x518045);}(_0x5180,0xc0));const _0x5cc0=function(_0x161a93,_0x518045){_0x161a93=_0x161a93-0x0;let _0x5cc000=_0x5180[_0x161a93];return _0x5cc000;};import{ContextPlugin as _0x354483,Context as _0x11da49}from'ckeditor5/src/core.js';import _0x51c439 from'./annotationsuis.js';import _0x1ff32b from'./sidebar.js';import _0x2a9b67 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x4b2369,BodyCollection as _0x401def}from'ckeditor5/src/ui.js';import{CKEditorError as _0xa53ea9,DomEmitterMixin as _0x349dd7,keyCodes as _0x562c6c,Collection as _0x423911}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x1ed349}from'lodash-es';import _0x547e2b from'./editorannotations.js';export default class i extends _0x354483{static get['requires'](){return[_0x1ff32b,_0x51c439];}static get[_0x5cc0('0x22')](){return _0x5cc0('0x1');}constructor(_0x55bf78){super(_0x55bf78),this['isAttached']=!0x1,this[_0x5cc0('0x7')]=new Set(),this[_0x5cc0('0x23')]=Object['create'](_0x349dd7),this[_0x5cc0('0x34')]=new Map(),this['set'](_0x5cc0('0x35'),null),this[_0x5cc0('0x2b')]=null,this[_0x5cc0('0x2d')]=[],this[_0x5cc0('0x1a')]=new _0x423911(),this[_0x5cc0('0x3b')]=_0x1ed349(()=>{this[_0x5cc0('0x30')]();},0xfa,{'leading':!0x1});}[_0x5cc0('0x59')](){this[_0x5cc0('0x27')][_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x51c439)['register']('narrowSidebar',this),this['bodyCollection']=new _0x401def(this['context']['locale']),this['balloonPanelView']=new _0x4b2369(this[_0x5cc0('0x27')]['locale']),this[_0x5cc0('0x3c')][_0x5cc0('0x5')](),this[_0x5cc0('0x3c')]['add'](this['balloonPanelView']);}[_0x5cc0('0x41')](_0x4235b4){this['annotations']=_0x4235b4;const _0x10eead=this[_0x5cc0('0x27')]['plugins'][_0x5cc0('0x3d')](_0x1ff32b),_0x34a7eb=this[_0x5cc0('0x36')];if(_0x10eead['_annotations']=_0x4235b4,this[_0x5cc0('0x10')])throw new _0xa53ea9('narrowsidebar-attach-already-attached',this);this[_0x5cc0('0x10')]=!0x0,this[_0x5cc0('0x4b')](_0x10eead,_0x5cc0('0xc'),()=>{this[_0x5cc0('0x9')](),this[_0x5cc0('0x4b')](_0x10eead,_0x5cc0('0x24'),_0x431e8d=>{_0x431e8d[_0x5cc0('0x18')](),this[_0x5cc0('0x41')](_0x4235b4);});}),_0x10eead[_0x5cc0('0xf')]({'viewClass':_0x5cc0('0x13'),'spaceBetweenItems':0x5});const _0x1821c1=_0xce2e2c=>{const _0x22cc43=new _0x2a9b67(this[_0x5cc0('0x27')][_0x5cc0('0x2e')]);_0x10eead[_0x5cc0('0xb')](_0xce2e2c,_0x22cc43),this[_0x5cc0('0x34')][_0x5cc0('0x51')](_0xce2e2c,_0x22cc43),_0x22cc43[_0x5cc0('0x47')]('isDirty',_0x5cc0('0x17'),'number')['to'](_0xce2e2c[_0x5cc0('0x53')],_0x5cc0('0x33'),'type',_0x5cc0('0x20')),_0x22cc43['on'](_0x5cc0('0x29'),()=>{this[_0x5cc0('0x7')]['clear'](),_0x34a7eb['content'][_0x5cc0('0xd')]!==_0xce2e2c[_0x5cc0('0x53')]?(this[_0x5cc0('0x38')](_0xce2e2c),_0xce2e2c[_0x5cc0('0x53')]['element']['focus'](),this[_0x5cc0('0x4d')](_0xce2e2c)):this[_0x5cc0('0x4d')](null);});};for(const _0x1c7434 of _0x4235b4)_0x1821c1(_0x1c7434);this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x3e'),(_0x2072b6,_0x89e7f1)=>{_0x1821c1(_0x89e7f1);}),this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x2'),(_0x28a64d,_0xdbb326,_0xa79d69)=>{this[_0x5cc0('0x34')][_0x5cc0('0x3d')](_0xdbb326)[_0x5cc0('0x2a')](),this[_0x5cc0('0x34')]['delete'](_0xdbb326),_0x10eead[_0x5cc0('0x44')]({'removedAnnotation':_0xdbb326,'previousAnnotation':_0x4235b4[_0x5cc0('0x3d')](_0xa79d69-0x1),'nextAnnotation':_0x4235b4[_0x5cc0('0x3d')](_0xa79d69+0x1)}),_0xdbb326===this[_0x5cc0('0x35')]&&this[_0x5cc0('0x4d')](null);},{'priority':'low'}),this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x43'),(_0x530b97,_0x2464fd)=>{this[_0x5cc0('0x4d')](_0x2464fd);}),this[_0x5cc0('0x4b')](_0x4235b4,_0x5cc0('0x4c'),()=>{this['setActiveAnnotation'](null);}),this[_0x5cc0('0x23')][_0x5cc0('0x4b')](document,'keydown',(_0x487103,_0x1bb677)=>{_0x1bb677['keyCode']===_0x562c6c[_0x5cc0('0x56')]&&_0x34a7eb[_0x5cc0('0x46')]&&(this[_0x5cc0('0x7')][_0x5cc0('0x3e')](_0x34a7eb[_0x5cc0('0x21')]['first']),this[_0x5cc0('0x4e')](),_0x1bb677[_0x5cc0('0x49')](),_0x1bb677['preventDefault']());}),this[_0x5cc0('0x23')][_0x5cc0('0x4b')](document,_0x5cc0('0x26'),(_0x2f74dd,_0x24103c)=>{const _0x1a32f7=_0x24103c[_0x5cc0('0x37')];_0x34a7eb[_0x5cc0('0x46')]&&_0x34a7eb[_0x5cc0('0x32')][_0x5cc0('0x4')](_0x1a32f7)||_0x10eead[_0x5cc0('0x53')][_0x5cc0('0x32')][_0x5cc0('0x4')](_0x1a32f7)||_0x2f74dd[_0x5cc0('0x52')]||this['activeAnnotation']&&this[_0x5cc0('0x35')]['focusableElements'][_0x5cc0('0x25')](_0x2d042d=>_0x2d042d[_0x5cc0('0x4')](_0x1a32f7))||(this[_0x5cc0('0x7')][_0x5cc0('0x6')](),this[_0x5cc0('0x4e')](),this['setActiveAnnotation'](null));});const _0x4bc74a=this[_0x5cc0('0x27')]instanceof _0x11da49?this['context'][_0x5cc0('0x55')]:new _0x423911([this['context']]);for(const _0x496b8a of _0x4bc74a)this[_0x5cc0('0x40')](_0x496b8a);this['listenTo'](_0x4bc74a,'add',(_0x32c039,_0x182637)=>{this[_0x5cc0('0x4b')](_0x182637,'ready',()=>{this[_0x5cc0('0x40')](_0x182637);});}),this[_0x5cc0('0x4b')](_0x4bc74a,_0x5cc0('0x2'),(_0x2e3a4a,_0x316c94)=>{_0x316c94[_0x5cc0('0x2f')][_0x5cc0('0x45')]('EditorAnnotations')&&this['_destroyEditorAnnotationsIntegration'](_0x316c94['plugins'][_0x5cc0('0x3d')](_0x5cc0('0x11')));}),window[_0x5cc0('0x42')](_0x5cc0('0x4f'),this[_0x5cc0('0x3b')]),this[_0x5cc0('0x30')]();}[_0x5cc0('0x4d')](_0x16c574){if(_0x16c574===this[_0x5cc0('0x35')])return;const _0x3e8ed9=this[_0x5cc0('0x27')][_0x5cc0('0x2f')]['get'](_0x1ff32b);if(_0x3e8ed9[_0x5cc0('0x3f')]({'blurredAnnotation':this[_0x5cc0('0x35')],'activatedAnnotation':_0x16c574,'disableAnimationOnActivatedAnnotation':!0x0}),_0x16c574)_0x3e8ed9[_0x5cc0('0x54')](_0x16c574)?this[_0x5cc0('0x38')](_0x16c574):this[_0x5cc0('0x4e')]();else this[_0x5cc0('0x4e')]();this[_0x5cc0('0x35')]=_0x16c574;}['detach'](){if(!this[_0x5cc0('0x10')])throw new _0xa53ea9('narrowsidebar-detach-not-attached',this);this[_0x5cc0('0x4d')](null);const _0x1d9709=this[_0x5cc0('0x27')][_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x1ff32b);this['_hideBalloon'](),Array[_0x5cc0('0xa')](this[_0x5cc0('0x34')][_0x5cc0('0x12')](),_0x1b6501=>_0x1b6501[_0x5cc0('0x2a')]()),this[_0x5cc0('0x34')]['clear'](),_0x1d9709[_0x5cc0('0x58')](this[_0x5cc0('0x2b')]),this[_0x5cc0('0x3a')](),this[_0x5cc0('0x23')][_0x5cc0('0x3a')](),this[_0x5cc0('0x27')]instanceof _0x11da49&&this[_0x5cc0('0x3a')](this['context'][_0x5cc0('0x55')]);for(const _0x5b7067 of Array[_0x5cc0('0xa')](this['_editorAnnotations']))this[_0x5cc0('0x50')](_0x5b7067);window[_0x5cc0('0x19')](_0x5cc0('0x4f'),this[_0x5cc0('0x3b')]),this[_0x5cc0('0x3b')]['cancel'](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this['annotations']=null;}[_0x5cc0('0x2a')](){this[_0x5cc0('0x10')]&&this[_0x5cc0('0x9')](),this['bodyCollection'][_0x5cc0('0x4a')]();}[_0x5cc0('0x40')](_0x32bc11){const _0x27429d=_0x32bc11[_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x547e2b),_0x1dc96c=this['context'][_0x5cc0('0x2f')][_0x5cc0('0x3d')](_0x1ff32b),_0x45101b=this['annotations'],_0x16850f=this[_0x5cc0('0x36')],_0x4350fd=()=>{const _0x1528ad=_0x27429d['getOrderedSelectedAnnotations']({'annotations':this['annotations'],'activeAnnotation':this[_0x5cc0('0x35')]});this[_0x5cc0('0x1e')](_0x1528ad),this[_0x5cc0('0x4d')](_0x1528ad[0x0]||null);};this['listenTo'](_0x27429d,_0x5cc0('0x3f'),_0x4350fd),this['listenTo'](_0x27429d,_0x5cc0('0x4c'),(_0xa8edb5,{isAnnotationTracked:_0x12dd58})=>{this[_0x5cc0('0x35')]&&_0x12dd58(this[_0x5cc0('0x35')])&&(this[_0x5cc0('0x1e')]([]),this[_0x5cc0('0x4d')](null));}),this[_0x5cc0('0x4b')](_0x27429d,'uiUpdate',()=>{this['_refreshPositioningDebounced']();}),this[_0x5cc0('0x4b')](_0x45101b,'blur',_0x57a829=>{_0x27429d[_0x5cc0('0x57')]()&&_0x57a829[_0x5cc0('0x1d')]();},{'priority':_0x5cc0('0x1c')}),this[_0x5cc0('0x4b')](this[_0x5cc0('0x23')],_0x5cc0('0x26'),(_0x22574c,_0x41f34f)=>{const _0x301320=_0x41f34f[_0x5cc0('0x37')];_0x16850f['isVisible']&&_0x16850f[_0x5cc0('0x32')][_0x5cc0('0x4')](_0x301320)||_0x1dc96c[_0x5cc0('0x53')]['element'][_0x5cc0('0x4')](_0x301320)||this[_0x5cc0('0x35')]&&_0x27429d[_0x5cc0('0x57')]()&&(_0x4350fd(),_0x22574c['preventClosingBalloon']=!0x0);},{'priority':_0x5cc0('0x1c')}),this[_0x5cc0('0x1a')][_0x5cc0('0x3e')](_0x27429d);}['_destroyEditorAnnotationsIntegration'](_0x587268){_0x587268&&(this['stopListening'](_0x587268),this[_0x5cc0('0x1a')]['remove'](_0x587268));}[_0x5cc0('0x1e')](_0x3beb7f){for(const _0x3b6d2f of this[_0x5cc0('0x2d')])_0x3beb7f[_0x5cc0('0x1f')](_0x3b6d2f)||this[_0x5cc0('0x7')]['delete'](_0x3b6d2f['view']);this['_selectedAnnotations']=_0x3beb7f;}[_0x5cc0('0x30')](){const _0x1f4fb8=this[_0x5cc0('0x36')];this[_0x5cc0('0x2b')][_0x5cc0('0x0')](),_0x1f4fb8[_0x5cc0('0x46')]&&this[_0x5cc0('0x3')]();}[_0x5cc0('0x38')](_0x5da3bb){if(this[_0x5cc0('0x7')][_0x5cc0('0x45')](_0x5da3bb[_0x5cc0('0x53')]))return;const _0x221b3d=this['balloonPanelView'][_0x5cc0('0x21')]['first'];_0x221b3d!==_0x5da3bb['view']?(_0x221b3d&&this[_0x5cc0('0x14')](_0x221b3d),this['_attachListeners'](_0x5da3bb['view']),this[_0x5cc0('0x36')][_0x5cc0('0x21')][_0x5cc0('0x6')](),this[_0x5cc0('0x36')][_0x5cc0('0x21')][_0x5cc0('0x3e')](_0x5da3bb[_0x5cc0('0x53')]),this[_0x5cc0('0x3')]()):this[_0x5cc0('0x3')]();}['_updateBalloonPosition'](){const _0xbfa073=this[_0x5cc0('0x36')]['content'][_0x5cc0('0xd')],_0x3e46b3=_0xbfa073&&this[_0x5cc0('0x2b')]['getByView'](_0xbfa073);if(!_0x3e46b3||!this[_0x5cc0('0x34')]['has'](_0x3e46b3))return;const _0x38e0a0=this[_0x5cc0('0x34')][_0x5cc0('0x3d')](_0x3e46b3)['element'],_0x1afec7=function(){const _0x4ffde1=_0x4b2369['defaultPositions'];return[_0x4ffde1[_0x5cc0('0x15')],_0x4ffde1[_0x5cc0('0x48')],_0x4ffde1[_0x5cc0('0x8')],_0x4ffde1[_0x5cc0('0x39')],_0x4ffde1[_0x5cc0('0xe')],_0x4ffde1[_0x5cc0('0x28')]];}();this[_0x5cc0('0x36')]['pin']({'target':_0x38e0a0,'positions':_0x1afec7});}[_0x5cc0('0x4e')](){const _0x467e42=this[_0x5cc0('0x36')],_0x10df99=_0x467e42[_0x5cc0('0x21')][_0x5cc0('0xd')];_0x10df99&&(this[_0x5cc0('0x14')](_0x10df99),_0x467e42[_0x5cc0('0x1b')](),_0x467e42[_0x5cc0('0x21')][_0x5cc0('0x6')]());}[_0x5cc0('0x31')](_0x6049df){this[_0x5cc0('0x4b')](_0x6049df,_0x5cc0('0x16'),()=>this[_0x5cc0('0x3')]()),this['listenTo'](_0x6049df,_0x5cc0('0x2c'),(_0x537433,_0x1ac591)=>{this[_0x5cc0('0x7')]['add'](_0x6049df),this[_0x5cc0('0x4e')](),_0x1ac591();});}['_detachListeners'](_0x3ddc21){this[_0x5cc0('0x3a')](_0x3ddc21);}}
23
+ const _0x2f07=['_annotations','_setSelectedAnnotations','balloonPanelView','addEventListener','_attachListeners','element','execute','mousedown','_showBalloon','context','setActiveAnnotation','set','_refreshPositioning','annotations','length','_selectedAnnotations','addAnnotation','southArrowNorth','has','stopPropagation','getByView','find','_editorAnnotations','editors','northArrowSouthWest','get','narrowSidebar','hasDomSelection','create','EditorAnnotations','change:height','view','isAttached','pluginName','high','focusableElements','bind','_updateBalloonPosition','focus','from','add','delete','northArrowSouthEast','attachToDom','_detachListeners','isVisible','_integrateWithEditorAnnotations','cancel','narrowsidebar-attach-already-attached','listenTo','includes','content','removeEventListener','plugins','Esc','first','bodyCollection','getSidebarItemView','blur','uiUpdate','_domEmitter','stop','activeAnnotation','preventClosingBalloon','unpin','stopListening','remove','attach','detach','_destroyEditorAnnotationsIntegration','_detachFromContainer','keydown','off','getOrderedSelectedAnnotations','clear','isDirty','_refreshPositioningDebounced','type','rearrange','locale','annotationType','_manuallyClosedAnnotationViews','_hideBalloon','_annotationToNarrowView','refresh','destroy','northArrowSouth','contains','southArrowNorthWest'];(function(_0x5989ba,_0x2f07cc){const _0x3fdf0d=function(_0x48d5ec){while(--_0x48d5ec){_0x5989ba['push'](_0x5989ba['shift']());}};_0x3fdf0d(++_0x2f07cc);}(_0x2f07,0x1dc));const _0x3fdf=function(_0x5989ba,_0x2f07cc){_0x5989ba=_0x5989ba-0x0;let _0x3fdf0d=_0x2f07[_0x5989ba];return _0x3fdf0d;};import{ContextPlugin as _0x25c751,Context as _0x50a52f}from'ckeditor5/src/core.js';import _0x3d5dc3 from'./annotationsuis.js';import _0x4b8423 from'./sidebar.js';import _0x5debf8 from'./view/annotationcounterbuttonview.js';import{BalloonPanelView as _0x15d68b,BodyCollection as _0x13b213}from'ckeditor5/src/ui.js';import{CKEditorError as _0x15dff,DomEmitterMixin as _0x390176,keyCodes as _0x1ba893,Collection as _0x2387c9}from'ckeditor5/src/utils.js';import'../../theme/sidebar-narrow.css';import{debounce as _0x2c0230}from'lodash-es';import _0x20e517 from'./editorannotations.js';export default class i extends _0x25c751{static get['requires'](){return[_0x4b8423,_0x3d5dc3];}static get[_0x3fdf('0x2')](){return'NarrowSidebar';}constructor(_0x4b1f38){super(_0x4b1f38),this[_0x3fdf('0x1')]=!0x1,this[_0x3fdf('0x32')]=new Set(),this[_0x3fdf('0x1d')]=Object[_0x3fdf('0x56')](_0x390176),this[_0x3fdf('0x34')]=new Map(),this[_0x3fdf('0x45')](_0x3fdf('0x1f'),null),this[_0x3fdf('0x47')]=null,this['_selectedAnnotations']=[],this['_editorAnnotations']=new _0x2387c9(),this['_refreshPositioningDebounced']=_0x2c0230(()=>{this[_0x3fdf('0x46')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x3fdf('0x43')][_0x3fdf('0x16')]['get'](_0x3d5dc3)['register'](_0x3fdf('0x54'),this),this['bodyCollection']=new _0x13b213(this[_0x3fdf('0x43')][_0x3fdf('0x30')]),this[_0x3fdf('0x3c')]=new _0x15d68b(this[_0x3fdf('0x43')][_0x3fdf('0x30')]),this[_0x3fdf('0x19')][_0x3fdf('0xc')](),this[_0x3fdf('0x19')][_0x3fdf('0x9')](this[_0x3fdf('0x3c')]);}['attach'](_0x3649f0){this[_0x3fdf('0x47')]=_0x3649f0;const _0x10db49=this[_0x3fdf('0x43')][_0x3fdf('0x16')][_0x3fdf('0x53')](_0x4b8423),_0x100212=this[_0x3fdf('0x3c')];if(_0x10db49[_0x3fdf('0x3a')]=_0x3649f0,this[_0x3fdf('0x1')])throw new _0x15dff(_0x3fdf('0x11'),this);this['isAttached']=!0x0,this['listenTo'](_0x10db49,'set:container',()=>{this['detach'](),this[_0x3fdf('0x12')](_0x10db49,'change:container',_0x48195d=>{_0x48195d[_0x3fdf('0x29')](),this[_0x3fdf('0x24')](_0x3649f0);});}),_0x10db49['_attachToContainer']({'viewClass':'ck-sidebar--narrow','spaceBetweenItems':0x5});const _0x32d645=_0x20fab1=>{const _0x57f345=new _0x5debf8(this['context'][_0x3fdf('0x30')]);_0x10db49[_0x3fdf('0x4a')](_0x20fab1,_0x57f345),this[_0x3fdf('0x34')][_0x3fdf('0x45')](_0x20fab1,_0x57f345),_0x57f345[_0x3fdf('0x5')](_0x3fdf('0x2c'),_0x3fdf('0x31'),'number')['to'](_0x20fab1[_0x3fdf('0x0')],_0x3fdf('0x2c'),_0x3fdf('0x2e'),_0x3fdf('0x48')),_0x57f345['on'](_0x3fdf('0x40'),()=>{this[_0x3fdf('0x32')][_0x3fdf('0x2b')](),_0x100212['content'][_0x3fdf('0x18')]!==_0x20fab1['view']?(this[_0x3fdf('0x42')](_0x20fab1),_0x20fab1[_0x3fdf('0x0')]['element']['focus'](),this['setActiveAnnotation'](_0x20fab1)):this[_0x3fdf('0x44')](null);});};for(const _0x2b2503 of _0x3649f0)_0x32d645(_0x2b2503);this[_0x3fdf('0x12')](_0x3649f0,_0x3fdf('0x9'),(_0x715e61,_0x304a3e)=>{_0x32d645(_0x304a3e);}),this[_0x3fdf('0x12')](_0x3649f0,_0x3fdf('0x23'),(_0x1a5b8f,_0x150cdf,_0x15414b)=>{this[_0x3fdf('0x34')]['get'](_0x150cdf)[_0x3fdf('0x36')](),this['_annotationToNarrowView'][_0x3fdf('0xa')](_0x150cdf),_0x10db49[_0x3fdf('0x2f')]({'removedAnnotation':_0x150cdf,'previousAnnotation':_0x3649f0['get'](_0x15414b-0x1),'nextAnnotation':_0x3649f0[_0x3fdf('0x53')](_0x15414b+0x1)}),_0x150cdf===this['activeAnnotation']&&this['setActiveAnnotation'](null);},{'priority':'low'}),this['listenTo'](_0x3649f0,_0x3fdf('0x7'),(_0x3a329c,_0x41d061)=>{this[_0x3fdf('0x44')](_0x41d061);}),this[_0x3fdf('0x12')](_0x3649f0,_0x3fdf('0x1b'),()=>{this[_0x3fdf('0x44')](null);}),this[_0x3fdf('0x1d')][_0x3fdf('0x12')](document,_0x3fdf('0x28'),(_0x278326,_0x3939f2)=>{_0x3939f2['keyCode']===_0x1ba893['esc']&&_0x100212['isVisible']&&(this['_manuallyClosedAnnotationViews'][_0x3fdf('0x9')](_0x100212['content'][_0x3fdf('0x18')]),this[_0x3fdf('0x33')](),_0x3939f2[_0x3fdf('0x4d')](),_0x3939f2['preventDefault']());}),this[_0x3fdf('0x1d')]['listenTo'](document,_0x3fdf('0x41'),(_0x17af90,_0x47e4f2)=>{const _0x10902b=_0x47e4f2['target'];_0x100212['isVisible']&&_0x100212[_0x3fdf('0x3f')][_0x3fdf('0x38')](_0x10902b)||_0x10db49[_0x3fdf('0x0')][_0x3fdf('0x3f')][_0x3fdf('0x38')](_0x10902b)||_0x17af90[_0x3fdf('0x20')]||this[_0x3fdf('0x1f')]&&this[_0x3fdf('0x1f')][_0x3fdf('0x4')][_0x3fdf('0x4f')](_0x29bb99=>_0x29bb99['contains'](_0x10902b))||(this['_manuallyClosedAnnotationViews'][_0x3fdf('0x2b')](),this[_0x3fdf('0x33')](),this['setActiveAnnotation'](null));});const _0x4b6210=this['context']instanceof _0x50a52f?this['context'][_0x3fdf('0x51')]:new _0x2387c9([this[_0x3fdf('0x43')]]);for(const _0x2ab291 of _0x4b6210)this['_integrateWithEditorAnnotations'](_0x2ab291);this[_0x3fdf('0x12')](_0x4b6210,'add',(_0x12c0ec,_0x2b7a76)=>{this[_0x3fdf('0x12')](_0x2b7a76,'ready',()=>{this[_0x3fdf('0xf')](_0x2b7a76);});}),this[_0x3fdf('0x12')](_0x4b6210,_0x3fdf('0x23'),(_0x2b6eac,_0x25cfa7)=>{_0x25cfa7[_0x3fdf('0x16')][_0x3fdf('0x4c')](_0x3fdf('0x57'))&&this[_0x3fdf('0x26')](_0x25cfa7[_0x3fdf('0x16')][_0x3fdf('0x53')](_0x3fdf('0x57')));}),window[_0x3fdf('0x3d')]('resize',this[_0x3fdf('0x2d')]),this['_refreshPositioning']();}[_0x3fdf('0x44')](_0x54dfce){if(_0x54dfce===this['activeAnnotation'])return;const _0x5b3674=this[_0x3fdf('0x43')]['plugins']['get'](_0x4b8423);if(_0x5b3674[_0x3fdf('0x35')]({'blurredAnnotation':this[_0x3fdf('0x1f')],'activatedAnnotation':_0x54dfce,'disableAnimationOnActivatedAnnotation':!0x0}),_0x54dfce)_0x5b3674[_0x3fdf('0x1a')](_0x54dfce)?this[_0x3fdf('0x42')](_0x54dfce):this[_0x3fdf('0x33')]();else this[_0x3fdf('0x33')]();this[_0x3fdf('0x1f')]=_0x54dfce;}[_0x3fdf('0x25')](){if(!this['isAttached'])throw new _0x15dff('narrowsidebar-detach-not-attached',this);this[_0x3fdf('0x44')](null);const _0x1e99b5=this[_0x3fdf('0x43')][_0x3fdf('0x16')]['get'](_0x4b8423);this['_hideBalloon'](),Array[_0x3fdf('0x8')](this[_0x3fdf('0x34')]['values'](),_0x3918db=>_0x3918db['destroy']()),this[_0x3fdf('0x34')][_0x3fdf('0x2b')](),_0x1e99b5[_0x3fdf('0x27')](this['annotations']),this['stopListening'](),this[_0x3fdf('0x1d')][_0x3fdf('0x22')](),this[_0x3fdf('0x43')]instanceof _0x50a52f&&this[_0x3fdf('0x22')](this[_0x3fdf('0x43')][_0x3fdf('0x51')]);for(const _0x475e6c of Array['from'](this['_editorAnnotations']))this[_0x3fdf('0x26')](_0x475e6c);window[_0x3fdf('0x15')]('resize',this[_0x3fdf('0x2d')]),this[_0x3fdf('0x2d')][_0x3fdf('0x10')](),this[_0x3fdf('0x49')]=[],this[_0x3fdf('0x1')]=!0x1,this['annotations']=null;}[_0x3fdf('0x36')](){this[_0x3fdf('0x1')]&&this[_0x3fdf('0x25')](),this['bodyCollection']['detachFromDom']();}[_0x3fdf('0xf')](_0x1639f0){const _0xafbf32=_0x1639f0[_0x3fdf('0x16')][_0x3fdf('0x53')](_0x20e517),_0x38a541=this[_0x3fdf('0x43')]['plugins'][_0x3fdf('0x53')](_0x4b8423),_0x376492=this[_0x3fdf('0x47')],_0x1e7108=this[_0x3fdf('0x3c')],_0x4437ef=()=>{const _0x985469=_0xafbf32[_0x3fdf('0x2a')]({'annotations':this[_0x3fdf('0x47')],'activeAnnotation':this['activeAnnotation']});this['_setSelectedAnnotations'](_0x985469),this[_0x3fdf('0x44')](_0x985469[0x0]||null);};this['listenTo'](_0xafbf32,_0x3fdf('0x35'),_0x4437ef),this['listenTo'](_0xafbf32,_0x3fdf('0x1b'),(_0xe793a,{isAnnotationTracked:_0x465c84})=>{this[_0x3fdf('0x1f')]&&_0x465c84(this['activeAnnotation'])&&(this[_0x3fdf('0x3b')]([]),this[_0x3fdf('0x44')](null));}),this['listenTo'](_0xafbf32,_0x3fdf('0x1c'),()=>{this[_0x3fdf('0x2d')]();}),this[_0x3fdf('0x12')](_0x376492,_0x3fdf('0x1b'),_0x2def82=>{_0xafbf32[_0x3fdf('0x55')]()&&_0x2def82[_0x3fdf('0x1e')]();},{'priority':'high'}),this[_0x3fdf('0x12')](this[_0x3fdf('0x1d')],_0x3fdf('0x41'),(_0x2debe9,_0xcf599c)=>{const _0x4d0046=_0xcf599c['target'];_0x1e7108[_0x3fdf('0xe')]&&_0x1e7108[_0x3fdf('0x3f')]['contains'](_0x4d0046)||_0x38a541[_0x3fdf('0x0')][_0x3fdf('0x3f')][_0x3fdf('0x38')](_0x4d0046)||this['activeAnnotation']&&_0xafbf32[_0x3fdf('0x55')]()&&(_0x4437ef(),_0x2debe9[_0x3fdf('0x20')]=!0x0);},{'priority':_0x3fdf('0x3')}),this[_0x3fdf('0x50')][_0x3fdf('0x9')](_0xafbf32);}[_0x3fdf('0x26')](_0x51a4db){_0x51a4db&&(this[_0x3fdf('0x22')](_0x51a4db),this[_0x3fdf('0x50')][_0x3fdf('0x23')](_0x51a4db));}['_setSelectedAnnotations'](_0x3a6e50){for(const _0x22f0d5 of this[_0x3fdf('0x49')])_0x3a6e50[_0x3fdf('0x13')](_0x22f0d5)||this[_0x3fdf('0x32')][_0x3fdf('0xa')](_0x22f0d5[_0x3fdf('0x0')]);this[_0x3fdf('0x49')]=_0x3a6e50;}[_0x3fdf('0x46')](){const _0x19eb44=this['balloonPanelView'];this['annotations']['refreshPositioning'](),_0x19eb44[_0x3fdf('0xe')]&&this[_0x3fdf('0x6')]();}['_showBalloon'](_0x48b94f){if(this[_0x3fdf('0x32')][_0x3fdf('0x4c')](_0x48b94f['view']))return;const _0x384923=this['balloonPanelView'][_0x3fdf('0x14')][_0x3fdf('0x18')];_0x384923!==_0x48b94f[_0x3fdf('0x0')]?(_0x384923&&this[_0x3fdf('0xd')](_0x384923),this[_0x3fdf('0x3e')](_0x48b94f[_0x3fdf('0x0')]),this['balloonPanelView'][_0x3fdf('0x14')][_0x3fdf('0x2b')](),this[_0x3fdf('0x3c')]['content'][_0x3fdf('0x9')](_0x48b94f[_0x3fdf('0x0')]),this[_0x3fdf('0x6')]()):this[_0x3fdf('0x6')]();}[_0x3fdf('0x6')](){const _0x46ccf0=this[_0x3fdf('0x3c')][_0x3fdf('0x14')]['first'],_0x50e983=_0x46ccf0&&this[_0x3fdf('0x47')][_0x3fdf('0x4e')](_0x46ccf0);if(!_0x50e983||!this['_annotationToNarrowView'][_0x3fdf('0x4c')](_0x50e983))return;const _0x2debcc=this[_0x3fdf('0x34')][_0x3fdf('0x53')](_0x50e983)[_0x3fdf('0x3f')],_0x29e589=function(){const _0x5beb64=_0x15d68b['defaultPositions'];return[_0x5beb64['southArrowNorthEast'],_0x5beb64[_0x3fdf('0xb')],_0x5beb64[_0x3fdf('0x4b')],_0x5beb64[_0x3fdf('0x37')],_0x5beb64[_0x3fdf('0x39')],_0x5beb64[_0x3fdf('0x52')]];}();this[_0x3fdf('0x3c')]['pin']({'target':_0x2debcc,'positions':_0x29e589});}[_0x3fdf('0x33')](){const _0x4951d0=this[_0x3fdf('0x3c')],_0x1b63e5=_0x4951d0[_0x3fdf('0x14')][_0x3fdf('0x18')];_0x1b63e5&&(this[_0x3fdf('0xd')](_0x1b63e5),_0x4951d0[_0x3fdf('0x21')](),_0x4951d0['content'][_0x3fdf('0x2b')]());}['_attachListeners'](_0x161b5a){this[_0x3fdf('0x12')](_0x161b5a,_0x3fdf('0x58'),()=>this[_0x3fdf('0x6')]()),this['listenTo'](_0x161b5a,_0x3fdf('0x17'),(_0x28666c,_0xe28cc6)=>{this[_0x3fdf('0x32')]['add'](_0x161b5a),this[_0x3fdf('0x33')](),_0xe28cc6();});}['_detachListeners'](_0x539522){this[_0x3fdf('0x22')](_0x539522);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7236=['_sidebarItemViewToAnnotation','stopListening','_targetTop','_getItemAfter','_lastItem','context','_getTargetTop','view','sidebar-attachtocontainer-missing-container','_detachFromContainer','element','isAnimationDisabled','targetRect','_activeAnnotation','class','config','pluginName','listenTo','updateHeight','max','target','rearrange','init','define','unbind','_destroySidebarItemView','_createSidebarView','_setItemTop','length','sidebar.container','_recalculate','addAnnotation','change:top','bottom','push','bind','_getMaxAvailableTop','isActive','_attachToContainer','appendChild','top','last','getSidebarItemView','remove','_alignForTopChange','_alignBeforeItem','_annotations','Sidebar','add','_updateLastItem','locale','sidebar.preventScrollOutOfView','_alignForBottomChange','_annotationToSidebarItemView','delete','refresh','object','minHeight','_recalculateBuffer','setContainer','list','_spaceBetweenItems','content','_alignAfterItem','get','container','_getItemBefore','_alignToTargetRect','set','change:targetRect'];(function(_0x19422b,_0x7236c5){const _0x3641a4=function(_0x5aa0c5){while(--_0x5aa0c5){_0x19422b['push'](_0x19422b['shift']());}};_0x3641a4(++_0x7236c5);}(_0x7236,0xce));const _0x3641=function(_0x19422b,_0x7236c5){_0x19422b=_0x19422b-0x0;let _0x3641a4=_0x7236[_0x19422b];return _0x3641a4;};import{ContextPlugin as _0x2213e1}from'ckeditor5/src/core.js';import{Rect as _0x1e130b,CKEditorError as _0x207042}from'ckeditor5/src/utils.js';import _0x30bccf from'./view/sidebarview.js';import _0x4ea60b from'./view/sidebaritemview.js';export default class z extends _0x2213e1{static get[_0x3641('0x14')](){return _0x3641('0x33');}constructor(_0x2dab22){super(_0x2dab22),this[_0x3641('0x2')](_0x3641('0x8'),void 0x0),this[_0x3641('0xb')]=this[_0x3641('0x1e')](),this[_0x3641('0x2')](_0x3641('0x45'),null),this[_0x3641('0x41')]=0x19,this['_sidebarItemViewToAnnotation']=new Map(),this[_0x3641('0x39')]=new Map(),this['context'][_0x3641('0x13')][_0x3641('0x1b')](_0x3641('0x37'),!0x1),this['_annotations']=null,this[_0x3641('0x11')]=null,this[_0x3641('0x3e')]=[];}[_0x3641('0x1a')](){const _0x144fd3=this[_0x3641('0x9')][_0x3641('0x13')][_0x3641('0x44')](_0x3641('0x21'));_0x144fd3&&this[_0x3641('0x3f')](_0x144fd3);}[_0x3641('0x3f')](_0xc9d342){if(!y(_0xc9d342))throw new _0x207042('sidebar-setcontainer-invalid-element');this[_0x3641('0x45')]=_0xc9d342;}[_0x3641('0x2a')]({viewClass:_0x19a42b='',spaceBetweenItems:_0x362804=0x19}={}){if(!y(this[_0x3641('0x45')]))throw new _0x207042(_0x3641('0xc'),this);this['container'][_0x3641('0x2b')](this[_0x3641('0xb')][_0x3641('0xe')]),this[_0x3641('0xb')][_0x3641('0x12')]=_0x19a42b,this[_0x3641('0x41')]=_0x362804;}[_0x3641('0x19')]({removedAnnotation:_0x431a86,previousAnnotation:_0x5376d5,nextAnnotation:_0x223ca7}){const _0x45b867=this[_0x3641('0x2e')](_0x431a86);this['view'][_0x3641('0x40')][_0x3641('0x2f')](_0x45b867),this[_0x3641('0x1d')](_0x431a86),_0x5376d5&&this[_0x3641('0x1')](this['getSidebarItemView'](_0x5376d5)),_0x223ca7&&this[_0x3641('0x1')](this[_0x3641('0x2e')](_0x223ca7)),this[_0x3641('0x35')]();}[_0x3641('0x3b')]({blurredAnnotation:_0x42e0dc,activatedAnnotation:_0x20c386,disableAnimationOnActivatedAnnotation:_0x2689bc}){if(this[_0x3641('0x11')]=_0x20c386,_0x42e0dc){_0x42e0dc[_0x3641('0x29')]=!0x1;const _0x108dce=this[_0x3641('0x2e')](_0x42e0dc);_0x108dce&&_0x2689bc&&(_0x108dce[_0x3641('0xf')]=!0x1);}if(_0x20c386){const _0x46b449=this[_0x3641('0x2e')](_0x20c386);_0x46b449&&(_0x20c386[_0x3641('0x29')]=!0x0,_0x2689bc&&(_0x46b449[_0x3641('0xf')]=!0x0,_0x46b449['top']+=0x1),this['_alignToTargetRect'](_0x46b449));}}[_0x3641('0xd')](_0x46d393){if(this[_0x3641('0xb')]['element'][_0x3641('0x2f')](),_0x46d393)for(const _0x1bdf64 of _0x46d393)this[_0x3641('0x1d')](_0x1bdf64);this['view']['list']['clear'](),this[_0x3641('0xb')][_0x3641('0x12')]='',this['_lastItem']=null;}[_0x3641('0x23')](_0x34e656,_0x32f010){_0x32f010||(_0x32f010=_0x34e656[_0x3641('0xb')]);const _0x1bc975=new _0x4ea60b(this[_0x3641('0x9')][_0x3641('0x36')]);this[_0x3641('0x4')][_0x3641('0x2')](_0x1bc975,_0x34e656),this[_0x3641('0x39')][_0x3641('0x2')](_0x34e656,_0x1bc975),_0x1bc975[_0x3641('0x42')]['add'](_0x32f010),this[_0x3641('0x15')](_0x34e656[_0x3641('0xb')],_0x3641('0x3'),(_0xb25dcc,_0x41c8f2,_0x2bfb9e)=>{const _0x3ee14f=this[_0x3641('0xa')](_0x34e656,_0x2bfb9e);_0x1bc975['_targetTop']!=_0x3ee14f&&(_0x1bc975[_0x3641('0x6')]=_0x3ee14f,this[_0x3641('0x1f')](_0x1bc975,_0x3ee14f));}),this['listenTo'](_0x1bc975,_0x3641('0x24'),()=>{this['_recalculate'](_0x1bc975,_0x3641('0x2c'));}),this[_0x3641('0x15')](_0x1bc975,'change:bottom',()=>{this[_0x3641('0x22')](_0x1bc975,'bottom');}),this[_0x3641('0x1')](_0x1bc975);const _0x45aca4=this['_getItemBefore'](_0x1bc975);if(_0x45aca4)this[_0x3641('0x43')](_0x45aca4,_0x1bc975)||this[_0x3641('0x1')](_0x1bc975);else this['_alignToTargetRect'](_0x1bc975);return this['_updateLastItem'](),this[_0x3641('0xb')][_0x3641('0x40')][_0x3641('0x34')](_0x1bc975),_0x1bc975;}[_0x3641('0x30')](_0xaf087d){if(!_0xaf087d['content']['length'])return;const _0x2aacdb=this[_0x3641('0x0')](_0xaf087d);if(!_0x2aacdb)return;const _0x329ff5=this['_sidebarItemViewToAnnotation'][_0x3641('0x44')](_0x2aacdb),_0x3dc3a2=this[_0x3641('0x11')];_0x3dc3a2&&_0x3dc3a2===_0x329ff5?this[_0x3641('0x43')](_0x2aacdb,_0xaf087d):this['_alignBeforeItem'](_0xaf087d,_0x2aacdb);}[_0x3641('0x38')](_0xf977ac){if(!_0xf977ac[_0x3641('0x42')]['length'])return;const _0x276eb5=this['_getItemAfter'](_0xf977ac);if(!_0x276eb5)return;const _0x222355=this[_0x3641('0x4')]['get'](_0x276eb5),_0x56f864=this[_0x3641('0x9')][_0x3641('0x13')][_0x3641('0x44')](_0x3641('0x37')),_0x3d9fb3=this[_0x3641('0x11')];_0x3d9fb3&&_0x3d9fb3===_0x222355&&_0x56f864?(this['_alignBeforeItem'](_0x276eb5,_0xf977ac),this['_alignAfterItem'](_0xf977ac,_0x276eb5)):_0x3d9fb3&&_0x3d9fb3===_0x222355?this[_0x3641('0x31')](_0x276eb5,_0xf977ac):this[_0x3641('0x43')](_0xf977ac,_0x276eb5);}[_0x3641('0x22')](_0x38008a,_0x2a05ed){0x0===this['_recalculateBuffer'][_0x3641('0x20')]&&setTimeout(()=>{for(const {sidebarItemView:_0x514fe9,changedProp:_0x40e8f9}of this['_recalculateBuffer'])_0x3641('0x2c')===_0x40e8f9?this[_0x3641('0x30')](_0x514fe9):this[_0x3641('0x38')](_0x514fe9);this[_0x3641('0x3e')]=[];},0xa),this[_0x3641('0x3e')][_0x3641('0x26')]({'sidebarItemView':_0x38008a,'changedProp':_0x2a05ed});}[_0x3641('0x2e')](_0x58278e){return this['_annotationToSidebarItemView'][_0x3641('0x44')](_0x58278e);}['destroy'](){this[_0x3641('0x5')](),this[_0x3641('0xb')]['destroy']();}[_0x3641('0x1d')](_0x5d0277){const _0xbd05dd=this[_0x3641('0x2e')](_0x5d0277);this[_0x3641('0x5')](_0xbd05dd),this[_0x3641('0x5')](_0x5d0277[_0x3641('0xb')]),_0xbd05dd['destroy'](),this[_0x3641('0x39')][_0x3641('0x3a')](_0x5d0277),this['_sidebarItemViewToAnnotation'][_0x3641('0x3a')](_0xbd05dd);}[_0x3641('0x1e')](){const _0x4c5081=new _0x30bccf(this['context'][_0x3641('0x36')]);return _0x4c5081['render'](),this['on']('change:_lastItem',(_0x3535e5,_0x5aa5fa,_0x389d5b,_0x3c3181)=>{_0x3c3181&&_0x4c5081[_0x3641('0x1c')](_0x3641('0x3d')),_0x389d5b?_0x4c5081[_0x3641('0x27')]('minHeight')['to'](_0x389d5b,'bottom'):_0x4c5081[_0x3641('0x3d')]=null;}),_0x4c5081;}[_0x3641('0x35')](){var _0x36b102;this['_lastItem']=(null===(_0x36b102=this[_0x3641('0x32')])||void 0x0===_0x36b102?void 0x0:_0x36b102[_0x3641('0x2d')])?this[_0x3641('0x2e')](this[_0x3641('0x32')][_0x3641('0x2d')]):null;}['_getItemBefore'](_0x8c9b1){var _0x5d255c;const _0x2b579c=this[_0x3641('0x4')][_0x3641('0x44')](_0x8c9b1),_0x2eda34=_0x2b579c&&(null===(_0x5d255c=this['_annotations'])||void 0x0===_0x5d255c?void 0x0:_0x5d255c['get'](this['_annotations']['getIndex'](_0x2b579c)-0x1));return _0x2eda34&&this['getSidebarItemView'](_0x2eda34)||null;}[_0x3641('0x7')](_0x1111f5){var _0x3c43ef;const _0x1501ad=this[_0x3641('0x4')][_0x3641('0x44')](_0x1111f5),_0x3beb21=_0x1501ad&&(null===(_0x3c43ef=this[_0x3641('0x32')])||void 0x0===_0x3c43ef?void 0x0:_0x3c43ef[_0x3641('0x44')](this['_annotations']['getIndex'](_0x1501ad)+0x1));return _0x3beb21&&this['getSidebarItemView'](_0x3beb21)||null;}[_0x3641('0x31')](_0x1074f8,_0x39220e){_0x1074f8['updateHeight']();const _0x38bbd3=M(_0x39220e[_0x3641('0x25')]+this[_0x3641('0x41')],_0x1074f8[_0x3641('0x2c')]);return!!_0x38bbd3&&(this['_setItemTop'](_0x39220e,_0x39220e['top']-_0x38bbd3),!0x0);}[_0x3641('0x43')](_0x22a94f,_0x5f2782){_0x22a94f[_0x3641('0x16')]();const _0x31cdae=M(_0x22a94f[_0x3641('0x25')]+this[_0x3641('0x41')],_0x5f2782[_0x3641('0x2c')]);return!!_0x31cdae&&(this[_0x3641('0x1f')](_0x5f2782,_0x5f2782[_0x3641('0x2c')]+_0x31cdae,!0x1),!0x0);}[_0x3641('0x1')](_0x52345e){const _0x2233d8=this[_0x3641('0x4')]['get'](_0x52345e);if(!_0x2233d8||!_0x2233d8[_0x3641('0x18')]||!_0x2233d8[_0x3641('0x10')])return;const _0x31e996=this['_getTargetTop'](_0x2233d8,_0x2233d8[_0x3641('0x10')]);this[_0x3641('0x1f')](_0x52345e,_0x31e996);}['_getTargetTop'](_0x5080f5,_0xf67b20){if(null===_0xf67b20)return 0x0;if(_0x5080f5[_0x3641('0x18')]instanceof _0x1e130b)return _0xf67b20[_0x3641('0x2c')];{const _0x370112=new _0x1e130b(this[_0x3641('0xb')][_0x3641('0xe')])[_0x3641('0x2c')];return _0xf67b20[_0x3641('0x2c')]-_0x370112;}}['_setItemTop'](_0xc99b7a,_0x31e660,_0x47192d=this[_0x3641('0x9')][_0x3641('0x13')]['get'](_0x3641('0x37'))){_0x47192d&&(_0x31e660=Math[_0x3641('0x17')](_0x31e660,this[_0x3641('0x28')](_0xc99b7a))),_0xc99b7a[_0x3641('0x2c')]=_0x31e660;}[_0x3641('0x28')](_0xcb2e07){let _0x59fc23=this['_getItemBefore'](_0xcb2e07),_0x57e12f=0x0;for(;_0x59fc23;)_0x59fc23[_0x3641('0x16')](),_0x57e12f+=this['_spaceBetweenItems']+_0x59fc23['height'],_0x59fc23=this[_0x3641('0x0')](_0x59fc23);return _0x57e12f;}}function M(_0x7050d5,_0x5039ba){return Math[_0x3641('0x17')](_0x7050d5-_0x5039ba,0x0);}function y(_0xdc3d55){return null!==_0xdc3d55&&_0x3641('0x3c')==typeof _0xdc3d55&&0x1===_0xdc3d55['nodeType'];}
23
+ const _0x25a6=['list','_annotations','change:targetRect','_spaceBetweenItems','change:_lastItem','top','destroy','nodeType','define','_targetTop','_getItemAfter','_alignAfterItem','height','_recalculateBuffer','_createSidebarView','remove','rearrange','delete','last','max','view','add','_activeAnnotation','context','appendChild','_destroySidebarItemView','_sidebarItemViewToAnnotation','_setItemTop','_getItemBefore','sidebar-setcontainer-invalid-element','updateHeight','_alignForTopChange','_alignToTargetRect','bottom','change:bottom','refresh','_alignBeforeItem','bind','container','init','unbind','content','set','stopListening','isAnimationDisabled','minHeight','listenTo','sidebar.container','change:top','_lastItem','_detachFromContainer','_getTargetTop','targetRect','locale','render','config','_annotationToSidebarItemView','object','_getMaxAvailableTop','_recalculate','clear','isActive','element','_alignForBottomChange','Sidebar','getSidebarItemView','setContainer','push','_updateLastItem','get','target','sidebar.preventScrollOutOfView','getIndex','length','addAnnotation'];(function(_0x56519c,_0x25a6ae){const _0x4af417=function(_0x15c03f){while(--_0x15c03f){_0x56519c['push'](_0x56519c['shift']());}};_0x4af417(++_0x25a6ae);}(_0x25a6,0x1ce));const _0x4af4=function(_0x56519c,_0x25a6ae){_0x56519c=_0x56519c-0x0;let _0x4af417=_0x25a6[_0x56519c];return _0x4af417;};import{ContextPlugin as _0x3a579b}from'ckeditor5/src/core.js';import{Rect as _0x2439f7,CKEditorError as _0x5acfcd}from'ckeditor5/src/utils.js';import _0x3441ec from'./view/sidebarview.js';import _0x18fd9e from'./view/sidebaritemview.js';export default class z extends _0x3a579b{static get['pluginName'](){return _0x4af4('0x34');}constructor(_0x145ee1){super(_0x145ee1),this[_0x4af4('0x1e')](_0x4af4('0x25'),void 0x0),this[_0x4af4('0x8')]=this[_0x4af4('0x2')](),this['set'](_0x4af4('0x1a'),null),this['_spaceBetweenItems']=0x19,this[_0x4af4('0xe')]=new Map(),this[_0x4af4('0x2c')]=new Map(),this[_0x4af4('0xb')][_0x4af4('0x2b')][_0x4af4('0x47')](_0x4af4('0x3b'),!0x1),this[_0x4af4('0x40')]=null,this['_activeAnnotation']=null,this['_recalculateBuffer']=[];}[_0x4af4('0x1b')](){const _0xc899a0=this[_0x4af4('0xb')]['config'][_0x4af4('0x39')](_0x4af4('0x23'));_0xc899a0&&this['setContainer'](_0xc899a0);}[_0x4af4('0x36')](_0xa7d060){if(!y(_0xa7d060))throw new _0x5acfcd(_0x4af4('0x11'));this[_0x4af4('0x1a')]=_0xa7d060;}['_attachToContainer']({viewClass:_0x13a67c='',spaceBetweenItems:_0x3c5d86=0x19}={}){if(!y(this[_0x4af4('0x1a')]))throw new _0x5acfcd('sidebar-attachtocontainer-missing-container',this);this[_0x4af4('0x1a')][_0x4af4('0xc')](this['view'][_0x4af4('0x32')]),this[_0x4af4('0x8')]['class']=_0x13a67c,this['_spaceBetweenItems']=_0x3c5d86;}[_0x4af4('0x4')]({removedAnnotation:_0x54ebf1,previousAnnotation:_0x9c8329,nextAnnotation:_0x268f90}){const _0x5c3490=this[_0x4af4('0x35')](_0x54ebf1);this[_0x4af4('0x8')]['list'][_0x4af4('0x3')](_0x5c3490),this['_destroySidebarItemView'](_0x54ebf1),_0x9c8329&&this[_0x4af4('0x14')](this[_0x4af4('0x35')](_0x9c8329)),_0x268f90&&this[_0x4af4('0x14')](this[_0x4af4('0x35')](_0x268f90)),this['_updateLastItem']();}[_0x4af4('0x17')]({blurredAnnotation:_0x5d1bd8,activatedAnnotation:_0x5a91b7,disableAnimationOnActivatedAnnotation:_0x36649e}){if(this[_0x4af4('0xa')]=_0x5a91b7,_0x5d1bd8){_0x5d1bd8[_0x4af4('0x31')]=!0x1;const _0x287d15=this['getSidebarItemView'](_0x5d1bd8);_0x287d15&&_0x36649e&&(_0x287d15[_0x4af4('0x20')]=!0x1);}if(_0x5a91b7){const _0x318755=this[_0x4af4('0x35')](_0x5a91b7);_0x318755&&(_0x5a91b7[_0x4af4('0x31')]=!0x0,_0x36649e&&(_0x318755['isAnimationDisabled']=!0x0,_0x318755['top']+=0x1),this[_0x4af4('0x14')](_0x318755));}}[_0x4af4('0x26')](_0x4ac8a3){if(this['view'][_0x4af4('0x32')][_0x4af4('0x3')](),_0x4ac8a3)for(const _0x60f05e of _0x4ac8a3)this[_0x4af4('0xd')](_0x60f05e);this[_0x4af4('0x8')]['list'][_0x4af4('0x30')](),this[_0x4af4('0x8')]['class']='',this['_lastItem']=null;}[_0x4af4('0x3e')](_0x71ec64,_0x37513b){_0x37513b||(_0x37513b=_0x71ec64[_0x4af4('0x8')]);const _0x29d0ca=new _0x18fd9e(this[_0x4af4('0xb')][_0x4af4('0x29')]);this[_0x4af4('0xe')]['set'](_0x29d0ca,_0x71ec64),this[_0x4af4('0x2c')][_0x4af4('0x1e')](_0x71ec64,_0x29d0ca),_0x29d0ca[_0x4af4('0x1d')][_0x4af4('0x9')](_0x37513b),this[_0x4af4('0x22')](_0x71ec64[_0x4af4('0x8')],_0x4af4('0x41'),(_0x3f04e8,_0x263cdd,_0x535b27)=>{const _0x5c451b=this[_0x4af4('0x27')](_0x71ec64,_0x535b27);_0x29d0ca[_0x4af4('0x48')]!=_0x5c451b&&(_0x29d0ca[_0x4af4('0x48')]=_0x5c451b,this['_setItemTop'](_0x29d0ca,_0x5c451b));}),this[_0x4af4('0x22')](_0x29d0ca,_0x4af4('0x24'),()=>{this[_0x4af4('0x2f')](_0x29d0ca,_0x4af4('0x44'));}),this[_0x4af4('0x22')](_0x29d0ca,_0x4af4('0x16'),()=>{this['_recalculate'](_0x29d0ca,_0x4af4('0x15'));}),this['_alignToTargetRect'](_0x29d0ca);const _0x3daa99=this[_0x4af4('0x10')](_0x29d0ca);if(_0x3daa99)this[_0x4af4('0x4a')](_0x3daa99,_0x29d0ca)||this[_0x4af4('0x14')](_0x29d0ca);else this[_0x4af4('0x14')](_0x29d0ca);return this[_0x4af4('0x38')](),this['view'][_0x4af4('0x3f')]['add'](_0x29d0ca),_0x29d0ca;}[_0x4af4('0x13')](_0x2d00d7){if(!_0x2d00d7[_0x4af4('0x1d')][_0x4af4('0x3d')])return;const _0x2b4eda=this[_0x4af4('0x10')](_0x2d00d7);if(!_0x2b4eda)return;const _0x338034=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x2b4eda),_0x156460=this[_0x4af4('0xa')];_0x156460&&_0x156460===_0x338034?this['_alignAfterItem'](_0x2b4eda,_0x2d00d7):this[_0x4af4('0x18')](_0x2d00d7,_0x2b4eda);}['_alignForBottomChange'](_0x1de1d3){if(!_0x1de1d3[_0x4af4('0x1d')][_0x4af4('0x3d')])return;const _0x5dc726=this[_0x4af4('0x49')](_0x1de1d3);if(!_0x5dc726)return;const _0xfd634a=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x5dc726),_0x3dbe2d=this[_0x4af4('0xb')][_0x4af4('0x2b')][_0x4af4('0x39')]('sidebar.preventScrollOutOfView'),_0x4d8e49=this[_0x4af4('0xa')];_0x4d8e49&&_0x4d8e49===_0xfd634a&&_0x3dbe2d?(this[_0x4af4('0x18')](_0x5dc726,_0x1de1d3),this['_alignAfterItem'](_0x1de1d3,_0x5dc726)):_0x4d8e49&&_0x4d8e49===_0xfd634a?this[_0x4af4('0x18')](_0x5dc726,_0x1de1d3):this[_0x4af4('0x4a')](_0x1de1d3,_0x5dc726);}['_recalculate'](_0x32ddc4,_0x29444d){0x0===this['_recalculateBuffer'][_0x4af4('0x3d')]&&setTimeout(()=>{for(const {sidebarItemView:_0x3aca60,changedProp:_0x1fd6a0}of this[_0x4af4('0x1')])_0x4af4('0x44')===_0x1fd6a0?this[_0x4af4('0x13')](_0x3aca60):this[_0x4af4('0x33')](_0x3aca60);this[_0x4af4('0x1')]=[];},0xa),this[_0x4af4('0x1')][_0x4af4('0x37')]({'sidebarItemView':_0x32ddc4,'changedProp':_0x29444d});}[_0x4af4('0x35')](_0xd7cafa){return this['_annotationToSidebarItemView'][_0x4af4('0x39')](_0xd7cafa);}[_0x4af4('0x45')](){this[_0x4af4('0x1f')](),this[_0x4af4('0x8')][_0x4af4('0x45')]();}[_0x4af4('0xd')](_0x26df93){const _0x1ceb1=this[_0x4af4('0x35')](_0x26df93);this['stopListening'](_0x1ceb1),this[_0x4af4('0x1f')](_0x26df93[_0x4af4('0x8')]),_0x1ceb1[_0x4af4('0x45')](),this[_0x4af4('0x2c')]['delete'](_0x26df93),this[_0x4af4('0xe')][_0x4af4('0x5')](_0x1ceb1);}['_createSidebarView'](){const _0x5597c4=new _0x3441ec(this[_0x4af4('0xb')]['locale']);return _0x5597c4[_0x4af4('0x2a')](),this['on'](_0x4af4('0x43'),(_0x29dfb3,_0x90c88c,_0x38c8ce,_0x36d0d9)=>{_0x36d0d9&&_0x5597c4[_0x4af4('0x1c')](_0x4af4('0x21')),_0x38c8ce?_0x5597c4[_0x4af4('0x19')](_0x4af4('0x21'))['to'](_0x38c8ce,_0x4af4('0x15')):_0x5597c4[_0x4af4('0x21')]=null;}),_0x5597c4;}[_0x4af4('0x38')](){var _0x193ece;this[_0x4af4('0x25')]=(null===(_0x193ece=this[_0x4af4('0x40')])||void 0x0===_0x193ece?void 0x0:_0x193ece[_0x4af4('0x6')])?this[_0x4af4('0x35')](this[_0x4af4('0x40')]['last']):null;}[_0x4af4('0x10')](_0x2f4334){var _0x17f4b4;const _0xa0d47e=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x2f4334),_0x24e445=_0xa0d47e&&(null===(_0x17f4b4=this[_0x4af4('0x40')])||void 0x0===_0x17f4b4?void 0x0:_0x17f4b4[_0x4af4('0x39')](this[_0x4af4('0x40')][_0x4af4('0x3c')](_0xa0d47e)-0x1));return _0x24e445&&this[_0x4af4('0x35')](_0x24e445)||null;}[_0x4af4('0x49')](_0x5e797b){var _0x4940ff;const _0x154841=this[_0x4af4('0xe')]['get'](_0x5e797b),_0x1e57ae=_0x154841&&(null===(_0x4940ff=this[_0x4af4('0x40')])||void 0x0===_0x4940ff?void 0x0:_0x4940ff['get'](this[_0x4af4('0x40')][_0x4af4('0x3c')](_0x154841)+0x1));return _0x1e57ae&&this[_0x4af4('0x35')](_0x1e57ae)||null;}[_0x4af4('0x18')](_0x54eaa6,_0x35c065){_0x54eaa6[_0x4af4('0x12')]();const _0x543787=M(_0x35c065[_0x4af4('0x15')]+this[_0x4af4('0x42')],_0x54eaa6[_0x4af4('0x44')]);return!!_0x543787&&(this[_0x4af4('0xf')](_0x35c065,_0x35c065[_0x4af4('0x44')]-_0x543787),!0x0);}['_alignAfterItem'](_0x21a1f4,_0x32296d){_0x21a1f4[_0x4af4('0x12')]();const _0x49ac04=M(_0x21a1f4[_0x4af4('0x15')]+this['_spaceBetweenItems'],_0x32296d['top']);return!!_0x49ac04&&(this[_0x4af4('0xf')](_0x32296d,_0x32296d[_0x4af4('0x44')]+_0x49ac04,!0x1),!0x0);}['_alignToTargetRect'](_0x59f320){const _0xba5ff2=this[_0x4af4('0xe')][_0x4af4('0x39')](_0x59f320);if(!_0xba5ff2||!_0xba5ff2[_0x4af4('0x3a')]||!_0xba5ff2[_0x4af4('0x28')])return;const _0x14f823=this['_getTargetTop'](_0xba5ff2,_0xba5ff2[_0x4af4('0x28')]);this['_setItemTop'](_0x59f320,_0x14f823);}[_0x4af4('0x27')](_0x41d701,_0x14732f){if(null===_0x14732f)return 0x0;if(_0x41d701['target']instanceof _0x2439f7)return _0x14732f[_0x4af4('0x44')];{const _0x5c37c9=new _0x2439f7(this[_0x4af4('0x8')][_0x4af4('0x32')])[_0x4af4('0x44')];return _0x14732f[_0x4af4('0x44')]-_0x5c37c9;}}[_0x4af4('0xf')](_0x1cd56e,_0x83c00,_0x1e0e0c=this['context'][_0x4af4('0x2b')]['get'](_0x4af4('0x3b'))){_0x1e0e0c&&(_0x83c00=Math['max'](_0x83c00,this[_0x4af4('0x2e')](_0x1cd56e))),_0x1cd56e['top']=_0x83c00;}[_0x4af4('0x2e')](_0x128e0b){let _0x5d9e1c=this['_getItemBefore'](_0x128e0b),_0x300e19=0x0;for(;_0x5d9e1c;)_0x5d9e1c[_0x4af4('0x12')](),_0x300e19+=this['_spaceBetweenItems']+_0x5d9e1c[_0x4af4('0x0')],_0x5d9e1c=this['_getItemBefore'](_0x5d9e1c);return _0x300e19;}}function M(_0x38bfac,_0x10bd08){return Math[_0x4af4('0x7')](_0x38bfac-_0x10bd08,0x0);}function y(_0x47e34e){return null!==_0x47e34e&&_0x4af4('0x2d')==typeof _0x47e34e&&0x1===_0x47e34e[_0x4af4('0x46')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd926=['ck-annotation-counter','counterView','bindTemplate','isDirty','number','span','extendTemplate','ck-annotation-counter__badge--','bind','ck-annotation-counter__badge--edit-mode','setTemplate','add','children','_badge','icon','...'];(function(_0x34d53e,_0xd92676){const _0x2ddfcd=function(_0x574b21){while(--_0x574b21){_0x34d53e['push'](_0x34d53e['shift']());}};_0x2ddfcd(++_0xd92676);}(_0xd926,0x142));const _0x2ddf=function(_0x34d53e,_0xd92676){_0x34d53e=_0x34d53e-0x0;let _0x2ddfcd=_0xd926[_0x34d53e];return _0x2ddfcd;};import{ButtonView as _0x525de9,View as _0x46d5b6}from'ckeditor5/src/ui.js';import _0x3e8815 from'../../../theme/icons/add-comment.svg';export default class D extends _0x525de9{constructor(_0x445e22){super(_0x445e22);const _0x3cb3df=this[_0x2ddf('0x0')];this['set'](_0x2ddf('0x1'),!0x1),this['set'](_0x2ddf('0x2'),0x0),this[_0x2ddf('0x6')](_0x2ddf('0xb'))['to'](this,_0x2ddf('0x1'),this,_0x2ddf('0x2'),(_0x5d9c38,_0x5e6234)=>_0x5d9c38?_0x2ddf('0xd'):_0x5e6234['toString']()),this['set']('annotationType',''),this[_0x2ddf('0xc')]=_0x3e8815,this[_0x2ddf('0x4')]({'attributes':{'class':[_0x2ddf('0xe')]}}),this['counterView']=new _0x46d5b6(),this[_0x2ddf('0xf')][_0x2ddf('0x8')]({'tag':_0x2ddf('0x3'),'attributes':{'class':['ck-annotation-counter__badge',_0x3cb3df['to']('annotationType',_0x12ec35=>_0x2ddf('0x5')+_0x12ec35),_0x3cb3df['if'](_0x2ddf('0x1'),_0x2ddf('0x7'))]},'children':[{'text':_0x3cb3df['to'](_0x2ddf('0xb'))}]}),this[_0x2ddf('0xa')][_0x2ddf('0x9')](this['counterView']);}}
23
+ const _0x2298=['isDirty','number','children','set','setTemplate','counterView','ck-annotation-counter__badge--edit-mode','ck-annotation-counter','ck-annotation-counter__badge--','icon','_badge','bindTemplate','annotationType','...'];(function(_0x5d2686,_0x2298d1){const _0x5312fb=function(_0x2d146b){while(--_0x2d146b){_0x5d2686['push'](_0x5d2686['shift']());}};_0x5312fb(++_0x2298d1);}(_0x2298,0x1eb));const _0x5312=function(_0x5d2686,_0x2298d1){_0x5d2686=_0x5d2686-0x0;let _0x5312fb=_0x2298[_0x5d2686];return _0x5312fb;};import{ButtonView as _0x36e74f,View as _0x30c59a}from'ckeditor5/src/ui.js';import _0x254c57 from'../../../theme/icons/add-comment.svg';export default class D extends _0x36e74f{constructor(_0xc9b88c){super(_0xc9b88c);const _0x4d93ce=this[_0x5312('0xa')];this[_0x5312('0x2')](_0x5312('0xd'),!0x1),this[_0x5312('0x2')](_0x5312('0x0'),0x0),this['bind'](_0x5312('0x9'))['to'](this,_0x5312('0xd'),this,_0x5312('0x0'),(_0x2fa9a1,_0x250c50)=>_0x2fa9a1?_0x5312('0xc'):_0x250c50['toString']()),this[_0x5312('0x2')](_0x5312('0xb'),''),this[_0x5312('0x8')]=_0x254c57,this['extendTemplate']({'attributes':{'class':[_0x5312('0x6')]}}),this[_0x5312('0x4')]=new _0x30c59a(),this['counterView'][_0x5312('0x3')]({'tag':'span','attributes':{'class':['ck-annotation-counter__badge',_0x4d93ce['to'](_0x5312('0xb'),_0x59bf5a=>_0x5312('0x7')+_0x59bf5a),_0x4d93ce['if'](_0x5312('0xd'),_0x5312('0x5'))]},'children':[{'text':_0x4d93ce['to'](_0x5312('0x9'))}]}),this[_0x5312('0x1')]['add'](this[_0x5312('0x4')]);}}