@ckeditor/ckeditor5-comments 0.0.0-nightly-20231107.0 → 0.0.0-nightly-20231108.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 (43) hide show
  1. package/build/comments.js +1 -1
  2. package/lang/contexts.json +2 -0
  3. package/package.json +3 -3
  4. package/src/annotations/annotation.js +1 -1
  5. package/src/annotations/annotationcollection.js +1 -1
  6. package/src/annotations/annotations.js +1 -1
  7. package/src/annotations/annotationsuis.js +1 -1
  8. package/src/annotations/editorannotations.js +1 -1
  9. package/src/annotations/inlineannotations.js +1 -1
  10. package/src/annotations/narrowsidebar.js +1 -1
  11. package/src/annotations/sidebar.js +1 -1
  12. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  13. package/src/annotations/view/annotationview.js +1 -1
  14. package/src/annotations/view/sidebaritemview.js +1 -1
  15. package/src/annotations/view/sidebarview.js +1 -1
  16. package/src/annotations/widesidebar.js +1 -1
  17. package/src/comments/addcommentthreadcommand.js +1 -1
  18. package/src/comments/commentsarchive.js +1 -1
  19. package/src/comments/commentsarchiveui.js +1 -1
  20. package/src/comments/commentsediting.js +1 -1
  21. package/src/comments/commentsrepository.js +1 -1
  22. package/src/comments/commentsui.js +1 -1
  23. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  24. package/src/comments/integrations/importword.js +1 -1
  25. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  26. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  27. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  28. package/src/comments/ui/commentthreadcontroller.js +1 -1
  29. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  30. package/src/comments/ui/view/basecommentview.js +1 -1
  31. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  32. package/src/comments/ui/view/commentcontentview.js +1 -1
  33. package/src/comments/ui/view/commentinputview.js +1 -1
  34. package/src/comments/ui/view/commentsarchiveview.js +1 -1
  35. package/src/comments/ui/view/commentslistview.js +1 -1
  36. package/src/comments/ui/view/commentthreadheaderview.js +1 -1
  37. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  38. package/src/comments/ui/view/commentthreadview.js +1 -1
  39. package/src/comments/ui/view/commentview.js +1 -1
  40. package/src/comments.js +1 -1
  41. package/src/commentsonly.js +1 -1
  42. package/src/utils/common-translations.js +1 -1
  43. package/src/utils/createmutationobserver.js +1 -1
@@ -15,6 +15,8 @@
15
15
  "Delete comment thread?": "The confirmation message shown after pressing the delete comment thread button.",
16
16
  "Marked as resolved": "A message informing that the comment has been resolved",
17
17
  "Comment": "The tooltip for the comment toolbar button and the button that submits a comment thread.",
18
+ "ENTER_COMMENT_ANNOUNCEMENT": "A message read out by assistive technologies the moment the user selection moves into a comment.",
19
+ "LEAVE_COMMENT_ANNOUNCEMENT": "A message read out by assistive technologies the moment the user selection leaves a comment.",
18
20
  "PENDING_ACTION_COMMENT_THREAD": "The label for an alert shown when closing the editor with an unsaved comment change.",
19
21
  "EXTERNAL_COMMENT": "The additional information that comments comes from external source.",
20
22
  "EXTERNAL_IMPORT_WORD_COMMENT": "The additional information that comments comes from imported Word file.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-comments",
3
- "version": "0.0.0-nightly-20231107.0",
3
+ "version": "0.0.0-nightly-20231108.0",
4
4
  "description": "Collaborative comments feature for CKEditor 5.",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "CKSource (http://cksource.com/)",
@@ -43,8 +43,8 @@
43
43
  "CHANGELOG.md"
44
44
  ],
45
45
  "dependencies": {
46
- "ckeditor5": "0.0.0-nightly-20231107.0",
47
- "ckeditor5-collaboration": "0.0.0-nightly-20231107.0",
46
+ "ckeditor5": "0.0.0-nightly-20231108.0",
47
+ "ckeditor5-collaboration": "0.0.0-nightly-20231108.0",
48
48
  "lodash-es": "4.17.21"
49
49
  },
50
50
  "types": "src/index.d.ts",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5e98=['isActive','_id','_target','updateTargetRect','annotation-invalid-target','function','type','isArray','object','stopListening','getClientRects','_getNormalizedTarget','focusableElements','set','item','focusTracker','targetRect','length','innerView','_type','remove','add','view','clear','every','isVisible','target','render','element','_assertCorrectTarget','offsetParent','mainView'];(function(_0x488e95,_0x5e9889){const _0x9ce3de=function(_0x4eda96){while(--_0x4eda96){_0x488e95['push'](_0x488e95['shift']());}};_0x9ce3de(++_0x5e9889);}(_0x5e98,0x195));const _0x9ce3=function(_0x488e95,_0x5e9889){_0x488e95=_0x488e95-0x0;let _0x9ce3de=_0x5e98[_0x488e95];return _0x9ce3de;};import{CKEditorError as _0x1b4af3,Rect as _0x278cbe,Collection as _0x5a1561,ObservableMixin as _0x150cd3}from'ckeditor5/src/utils';export default class d extends _0x150cd3(){constructor({view:_0x1c36cf,target:_0x4a9bd6,type:_0x4eb1c2,isVisible:_0x4f2c6a=!0x0}){super(),this[_0x9ce3('0x1')]=_0x1c36cf,this[_0x9ce3('0x1')]['element']||this[_0x9ce3('0x1')][_0x9ce3('0x6')](),this[_0x9ce3('0x1e')]=_0x4eb1c2,this['_target']=_0x4a9bd6,d[_0x9ce3('0x8')](this[_0x9ce3('0x16')]()),this[_0x9ce3('0x17')]=new _0x5a1561([this[_0x9ce3('0x1')][_0x9ce3('0x7')]],{'idProperty':_0x9ce3('0xc')}),this[_0x9ce3('0x17')]['on']('add',(_0x4466a6,_0x27bd57)=>{this[_0x9ce3('0x1')]['focusTracker'][_0x9ce3('0x0')](_0x27bd57);}),this['focusableElements']['on'](_0x9ce3('0x1f'),(_0x3a00b8,_0x4f26a3)=>{this[_0x9ce3('0x1')][_0x9ce3('0x1a')]['remove'](_0x4f26a3);}),this[_0x9ce3('0x18')]('isVisible',_0x4f2c6a);}get[_0x9ce3('0x11')](){return'function'==typeof this['_type']?this['_type']():this[_0x9ce3('0x1e')];}get[_0x9ce3('0x1d')](){return this[_0x9ce3('0x1')][_0x9ce3('0xa')];}get[_0x9ce3('0x5')](){const _0x120509=this['_getNormalizedTarget']();return d[_0x9ce3('0x8')](_0x120509),_0x120509;}get[_0x9ce3('0x1b')](){const _0x137557=this[_0x9ce3('0x5')];if(null===_0x137557)return null;if(_0x137557 instanceof _0x278cbe)return _0x137557;const _0x45b34a=_0x137557['filter'](_0x3f5d86=>function(_0x1e3930){const _0x5e53ac=_0x1e3930[_0x9ce3('0x9')];if(_0x5e53ac)return!0x0;const _0x6c19d3=_0x1e3930[_0x9ce3('0x15')]()[_0x9ce3('0x19')](0x0);return!!_0x6c19d3;}(_0x3f5d86));return 0x0===_0x45b34a[_0x9ce3('0x1c')]?null:new _0x278cbe(_0x45b34a[0x0]['getClientRects']()['item'](0x0));}get['isActive'](){return this[_0x9ce3('0x1')]['isActive'];}set[_0x9ce3('0xb')](_0x28e81c){this[_0x9ce3('0x1')][_0x9ce3('0xb')]=_0x28e81c,this[_0x9ce3('0x1')][_0x9ce3('0xa')][_0x9ce3('0xb')]=_0x28e81c;}[_0x9ce3('0xe')](){this[_0x9ce3('0x1')][_0x9ce3('0x1b')]=this['targetRect'];}['destroy'](){this[_0x9ce3('0x17')][_0x9ce3('0x14')](),this[_0x9ce3('0x17')][_0x9ce3('0x2')](),this[_0x9ce3('0x14')]();}['refreshVisibility'](){this[_0x9ce3('0x4')]=!!this['targetRect'];}static['_assertCorrectTarget'](_0x213954){if(!(null===_0x213954||_0x213954 instanceof _0x278cbe||Array[_0x9ce3('0x12')](_0x213954)&&_0x213954[_0x9ce3('0x3')](_0x2a8c7e=>y(_0x2a8c7e))))throw new _0x1b4af3(_0x9ce3('0xf'),null,{'target':_0x213954});}[_0x9ce3('0x16')](){const _0x8e2c7b=_0x9ce3('0x10')==typeof this[_0x9ce3('0xd')]?this[_0x9ce3('0xd')]():this[_0x9ce3('0xd')];return y(_0x8e2c7b)?[_0x8e2c7b]:_0x8e2c7b;}}function y(_0x29bc49){return null!==_0x29bc49&&_0x9ce3('0x13')==typeof _0x29bc49&&'nodeType'in _0x29bc49&&0x1===_0x29bc49['nodeType'];}
23
+ const _0x3cdf=['item','_type','destroy','focusTracker','add','target','isActive','annotation-invalid-target','_target','remove','element','_assertCorrectTarget','type','isArray','isVisible','stopListening','_getNormalizedTarget','mainView','render','getClientRects','set','filter','view','function','focusableElements','offsetParent','targetRect','object'];(function(_0x4549dc,_0x3cdffc){const _0x23e769=function(_0xd4e228){while(--_0xd4e228){_0x4549dc['push'](_0x4549dc['shift']());}};_0x23e769(++_0x3cdffc);}(_0x3cdf,0x187));const _0x23e7=function(_0x4549dc,_0x3cdffc){_0x4549dc=_0x4549dc-0x0;let _0x23e769=_0x3cdf[_0x4549dc];return _0x23e769;};import{CKEditorError as _0x142636,Rect as _0x3e4b9,Collection as _0x23d03f,ObservableMixin as _0x1c9683}from'ckeditor5/src/utils';export default class d extends _0x1c9683(){constructor({view:_0x4f71a2,target:_0xc75823,type:_0x28a2ae,isVisible:_0x2322b6=!0x0}){super(),this[_0x23e7('0x17')]=_0x4f71a2,this[_0x23e7('0x17')][_0x23e7('0xb')]||this[_0x23e7('0x17')][_0x23e7('0x13')](),this[_0x23e7('0x2')]=_0x28a2ae,this[_0x23e7('0x9')]=_0xc75823,d[_0x23e7('0xc')](this['_getNormalizedTarget']()),this[_0x23e7('0x19')]=new _0x23d03f([this['view'][_0x23e7('0xb')]],{'idProperty':'_id'}),this[_0x23e7('0x19')]['on'](_0x23e7('0x5'),(_0x2b91c5,_0x30bd56)=>{this[_0x23e7('0x17')][_0x23e7('0x4')][_0x23e7('0x5')](_0x30bd56);}),this[_0x23e7('0x19')]['on'](_0x23e7('0xa'),(_0xd0d590,_0x57eefb)=>{this[_0x23e7('0x17')][_0x23e7('0x4')][_0x23e7('0xa')](_0x57eefb);}),this[_0x23e7('0x15')](_0x23e7('0xf'),_0x2322b6);}get[_0x23e7('0xd')](){return _0x23e7('0x18')==typeof this[_0x23e7('0x2')]?this[_0x23e7('0x2')]():this[_0x23e7('0x2')];}get['innerView'](){return this[_0x23e7('0x17')][_0x23e7('0x12')];}get[_0x23e7('0x6')](){const _0x27f66d=this[_0x23e7('0x11')]();return d[_0x23e7('0xc')](_0x27f66d),_0x27f66d;}get['targetRect'](){const _0x147b48=this[_0x23e7('0x6')];if(null===_0x147b48)return null;if(_0x147b48 instanceof _0x3e4b9)return _0x147b48;const _0x3627cb=_0x147b48[_0x23e7('0x16')](_0x43b392=>function(_0xc757b3){const _0x2c6240=_0xc757b3[_0x23e7('0x1a')];if(_0x2c6240)return!0x0;const _0x5ddc53=_0xc757b3[_0x23e7('0x14')]()[_0x23e7('0x1')](0x0);return!!_0x5ddc53;}(_0x43b392));return 0x0===_0x3627cb['length']?null:new _0x3e4b9(_0x3627cb[0x0][_0x23e7('0x14')]()['item'](0x0));}get[_0x23e7('0x7')](){return this[_0x23e7('0x17')][_0x23e7('0x7')];}set[_0x23e7('0x7')](_0x57cdc2){this['view'][_0x23e7('0x7')]=_0x57cdc2,this[_0x23e7('0x17')][_0x23e7('0x12')]['isActive']=_0x57cdc2;}['updateTargetRect'](){this[_0x23e7('0x17')][_0x23e7('0x1b')]=this['targetRect'];}[_0x23e7('0x3')](){this[_0x23e7('0x19')]['stopListening'](),this['focusableElements']['clear'](),this[_0x23e7('0x10')]();}['refreshVisibility'](){this[_0x23e7('0xf')]=!!this[_0x23e7('0x1b')];}static[_0x23e7('0xc')](_0x4371b2){if(!(null===_0x4371b2||_0x4371b2 instanceof _0x3e4b9||Array[_0x23e7('0xe')](_0x4371b2)&&_0x4371b2['every'](_0x3bd997=>y(_0x3bd997))))throw new _0x142636(_0x23e7('0x8'),null,{'target':_0x4371b2});}[_0x23e7('0x11')](){const _0x51c1e9=_0x23e7('0x18')==typeof this[_0x23e7('0x9')]?this[_0x23e7('0x9')]():this[_0x23e7('0x9')];return y(_0x51c1e9)?[_0x51c1e9]:_0x51c1e9;}}function y(_0x3276e9){return null!==_0x3276e9&&_0x23e7('0x0')==typeof _0x3276e9&&'nodeType'in _0x3276e9&&0x1===_0x3276e9['nodeType'];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1664=['listenTo','getIndex','set','targetRect','refreshPositioning','get','_sort','focusTracker','from','delete','clear','_innerViewToAnnotation','innerView','_getOrderInContent','annotationcollection-not-existing-item','left','fire','destroy','blur','_focusTracker','isFocused','focusableElements','sort','add','stopListening','remove','has','updateTargetRect','focus','view','getByView','getByInnerView','_viewToAnnotation','top','change:isFocused','length'];(function(_0x2d9b97,_0x16643a){const _0x1b6132=function(_0xb8160d){while(--_0xb8160d){_0x2d9b97['push'](_0x2d9b97['shift']());}};_0x1b6132(++_0x16643a);}(_0x1664,0x123));const _0x1b61=function(_0x2d9b97,_0x16643a){_0x2d9b97=_0x2d9b97-0x0;let _0x1b6132=_0x1664[_0x2d9b97];return _0x1b6132;};import{CKEditorError as _0x41e4ca,Collection as _0xccc0ec,FocusTracker as _0x32bd77}from'ckeditor5/src/utils';export default class x extends _0xccc0ec{constructor(_0xbd6cd9=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x1b61('0x1d')]=new Map(),this[_0x1b61('0x10')]=new _0x32bd77(),this[_0x1b61('0x10')]['on'](_0x1b61('0x1f'),(_0x44a57a,_0x4ce70a,_0x467e5a)=>{_0x467e5a||this[_0x1b61('0xd')](_0x1b61('0xf'));});for(const _0x485476 of _0xbd6cd9)this['add'](_0x485476);}get[_0x1b61('0x11')](){return this[_0x1b61('0x10')][_0x1b61('0x11')];}[_0x1b61('0x14')](_0x56d9a4){if(this[_0x1b61('0x17')](_0x56d9a4))throw new _0x41e4ca('annotationcollection-duplicated-item',null);this[_0x1b61('0x8')][_0x1b61('0x23')](_0x56d9a4[_0x1b61('0x9')],_0x56d9a4),this[_0x1b61('0x1d')][_0x1b61('0x23')](_0x56d9a4['view'],_0x56d9a4);for(const _0x3e85c8 of _0x56d9a4[_0x1b61('0x12')])this['_focusTracker'][_0x1b61('0x14')](_0x3e85c8);this[_0x1b61('0x21')](_0x56d9a4[_0x1b61('0x12')],_0x1b61('0x14'),(_0x14351f,_0x147ca5)=>{this[_0x1b61('0x10')][_0x1b61('0x14')](_0x147ca5);}),this[_0x1b61('0x21')](_0x56d9a4[_0x1b61('0x12')],'remove',(_0x6d4403,_0x558dc2)=>{this['_focusTracker'][_0x1b61('0x16')](_0x558dc2);}),this[_0x1b61('0x21')](_0x56d9a4[_0x1b61('0x1a')][_0x1b61('0x4')],_0x1b61('0x1f'),(_0x3f8591,_0x5873b3,_0x31a470)=>{_0x31a470&&this[_0x1b61('0xd')](_0x1b61('0x19'),_0x56d9a4);}),_0x56d9a4[_0x1b61('0x18')]();const _0x52003b=this[_0x1b61('0xa')](_0x56d9a4[_0x1b61('0x1a')][_0x1b61('0x0')]);return super[_0x1b61('0x14')](_0x56d9a4,_0x52003b);}['remove'](_0x6dd5e5){if(!this[_0x1b61('0x17')](_0x6dd5e5))throw new _0x41e4ca(_0x1b61('0xb'),null);this[_0x1b61('0x15')](_0x6dd5e5['view'][_0x1b61('0x4')]),this[_0x1b61('0x15')](_0x6dd5e5[_0x1b61('0x12')]);for(const _0x48cf72 of _0x6dd5e5['focusableElements'])this[_0x1b61('0x10')][_0x1b61('0x16')](_0x48cf72);return this[_0x1b61('0x1d')][_0x1b61('0x6')](_0x6dd5e5[_0x1b61('0x1a')]),this['_innerViewToAnnotation']['delete'](_0x6dd5e5[_0x1b61('0x9')]),super['remove'](_0x6dd5e5);}[_0x1b61('0x1c')](_0x228a04){return this[_0x1b61('0x8')][_0x1b61('0x2')](_0x228a04);}[_0x1b61('0x1b')](_0x1d2549){return this[_0x1b61('0x1d')][_0x1b61('0x2')](_0x1d2549);}[_0x1b61('0xe')](){super[_0x1b61('0x7')](),this[_0x1b61('0x15')](),this['_innerViewToAnnotation'][_0x1b61('0x7')](),this[_0x1b61('0x1d')][_0x1b61('0x7')](),this[_0x1b61('0x10')][_0x1b61('0xe')]();}[_0x1b61('0x1')](){for(const _0x3194cb of this)_0x3194cb[_0x1b61('0x18')]();this[_0x1b61('0x3')]();}[_0x1b61('0x3')](){const _0x36450a=Array[_0x1b61('0x5')](this)[_0x1b61('0x13')]((_0x2bf52d,_0x3f496d)=>v(_0x2bf52d['view'][_0x1b61('0x0')],_0x3f496d[_0x1b61('0x1a')]['targetRect']));for(let _0x2ad80c=_0x36450a[_0x1b61('0x20')]-0x1;_0x2ad80c>0x0;_0x2ad80c--){const _0x45ecf2=_0x36450a[_0x2ad80c];_0x2ad80c!==this[_0x1b61('0x22')](_0x45ecf2)&&(this[_0x1b61('0x16')](_0x45ecf2),this[_0x1b61('0x14')](_0x45ecf2));}}[_0x1b61('0xa')](_0x5b4863){let _0x1184be=0x0;if(!_0x5b4863)return this['length'];for(const _0x21d6e4 of this){const _0xb3accb=_0x21d6e4[_0x1b61('0x1a')][_0x1b61('0x0')];if(_0xb3accb){if(v(_0x5b4863,_0xb3accb)<0x0)return _0x1184be;_0x1184be++;}}return _0x1184be;}}export function bindAnnotationCollections({source:_0x2228ce,target:_0x2b49cd,filter:_0x47d1c7}){for(const _0x4d7f39 of _0x2228ce)_0x47d1c7(_0x4d7f39)&&_0x2b49cd[_0x1b61('0x14')](_0x4d7f39);_0x2b49cd[_0x1b61('0x21')](_0x2228ce,'add',(_0x31b818,_0x295b7a)=>{_0x47d1c7(_0x295b7a)&&_0x2b49cd[_0x1b61('0x14')](_0x295b7a);}),_0x2b49cd[_0x1b61('0x21')](_0x2228ce,'remove',(_0x4527de,_0x3b2a3f)=>{_0x2b49cd[_0x1b61('0x17')](_0x3b2a3f)&&_0x2b49cd['remove'](_0x3b2a3f);});}function v(_0x1c8f42,_0x9d5b72){if(null===_0x1c8f42&&null===_0x9d5b72)return 0x0;if(null===_0x1c8f42)return-0x1;if(null===_0x9d5b72)return 0x1;const _0xcc049c=_0x1c8f42[_0x1b61('0x1e')]-_0x9d5b72[_0x1b61('0x1e')];return 0x0==_0xcc049c?_0x1c8f42[_0x1b61('0xc')]-_0x9d5b72['left']:_0xcc049c;}
23
+ const _0x15a4=['set','updateTargetRect','get','getIndex','annotationcollection-duplicated-item','destroy','stopListening','_getOrderInContent','getByView','_sort','has','listenTo','length','innerView','from','change:isFocused','top','_innerViewToAnnotation','_focusTracker','delete','_viewToAnnotation','focus','annotationcollection-not-existing-item','view','focusableElements','focusTracker','remove','isFocused','fire','clear','add','targetRect'];(function(_0xbc019f,_0x15a497){const _0x102c61=function(_0x7e944f){while(--_0x7e944f){_0xbc019f['push'](_0xbc019f['shift']());}};_0x102c61(++_0x15a497);}(_0x15a4,0x95));const _0x102c=function(_0xbc019f,_0x15a497){_0xbc019f=_0xbc019f-0x0;let _0x102c61=_0x15a4[_0xbc019f];return _0x102c61;};import{CKEditorError as _0x4d2df6,Collection as _0x248c32,FocusTracker as _0x2a84c1}from'ckeditor5/src/utils';export default class x extends _0x248c32{constructor(_0xc44b85=[]){super(),this['_innerViewToAnnotation']=new Map(),this[_0x102c('0x1f')]=new Map(),this[_0x102c('0x1d')]=new _0x2a84c1(),this[_0x102c('0x1d')]['on'](_0x102c('0x1a'),(_0x49214c,_0x27176e,_0x181b12)=>{_0x181b12||this[_0x102c('0x7')]('blur');});for(const _0x2e5ebe of _0xc44b85)this['add'](_0x2e5ebe);}get[_0x102c('0x6')](){return this[_0x102c('0x1d')][_0x102c('0x6')];}[_0x102c('0x9')](_0x4b4426){if(this[_0x102c('0x15')](_0x4b4426))throw new _0x4d2df6(_0x102c('0xf'),null);this[_0x102c('0x1c')][_0x102c('0xb')](_0x4b4426['innerView'],_0x4b4426),this[_0x102c('0x1f')][_0x102c('0xb')](_0x4b4426[_0x102c('0x2')],_0x4b4426);for(const _0x20062c of _0x4b4426['focusableElements'])this['_focusTracker'][_0x102c('0x9')](_0x20062c);this['listenTo'](_0x4b4426[_0x102c('0x3')],_0x102c('0x9'),(_0x2b81f4,_0x44b89b)=>{this[_0x102c('0x1d')][_0x102c('0x9')](_0x44b89b);}),this[_0x102c('0x16')](_0x4b4426[_0x102c('0x3')],_0x102c('0x5'),(_0xc3ed81,_0x17dcac)=>{this['_focusTracker'][_0x102c('0x5')](_0x17dcac);}),this[_0x102c('0x16')](_0x4b4426[_0x102c('0x2')][_0x102c('0x4')],'change:isFocused',(_0x831879,_0x2de9b9,_0x46b3cb)=>{_0x46b3cb&&this['fire'](_0x102c('0x0'),_0x4b4426);}),_0x4b4426[_0x102c('0xc')]();const _0x3e08e2=this[_0x102c('0x12')](_0x4b4426[_0x102c('0x2')][_0x102c('0xa')]);return super['add'](_0x4b4426,_0x3e08e2);}[_0x102c('0x5')](_0x5253c5){if(!this[_0x102c('0x15')](_0x5253c5))throw new _0x4d2df6(_0x102c('0x1'),null);this[_0x102c('0x11')](_0x5253c5[_0x102c('0x2')]['focusTracker']),this['stopListening'](_0x5253c5[_0x102c('0x3')]);for(const _0x1c0ced of _0x5253c5['focusableElements'])this['_focusTracker'][_0x102c('0x5')](_0x1c0ced);return this['_viewToAnnotation'][_0x102c('0x1e')](_0x5253c5[_0x102c('0x2')]),this[_0x102c('0x1c')][_0x102c('0x1e')](_0x5253c5[_0x102c('0x18')]),super['remove'](_0x5253c5);}['getByInnerView'](_0x44e6af){return this[_0x102c('0x1c')]['get'](_0x44e6af);}[_0x102c('0x13')](_0x469dae){return this['_viewToAnnotation'][_0x102c('0xd')](_0x469dae);}['destroy'](){super['clear'](),this[_0x102c('0x11')](),this[_0x102c('0x1c')][_0x102c('0x8')](),this[_0x102c('0x1f')][_0x102c('0x8')](),this['_focusTracker'][_0x102c('0x10')]();}['refreshPositioning'](){for(const _0x18c090 of this)_0x18c090[_0x102c('0xc')]();this[_0x102c('0x14')]();}[_0x102c('0x14')](){const _0x22e13f=Array[_0x102c('0x19')](this)['sort']((_0x540287,_0x3c9912)=>v(_0x540287['view'][_0x102c('0xa')],_0x3c9912[_0x102c('0x2')][_0x102c('0xa')]));for(let _0x3a7f55=_0x22e13f[_0x102c('0x17')]-0x1;_0x3a7f55>0x0;_0x3a7f55--){const _0x4a642d=_0x22e13f[_0x3a7f55];_0x3a7f55!==this[_0x102c('0xe')](_0x4a642d)&&(this[_0x102c('0x5')](_0x4a642d),this['add'](_0x4a642d));}}[_0x102c('0x12')](_0x16db59){let _0x2cf4e0=0x0;if(!_0x16db59)return this['length'];for(const _0x5df71a of this){const _0x28b97e=_0x5df71a['view'][_0x102c('0xa')];if(_0x28b97e){if(v(_0x16db59,_0x28b97e)<0x0)return _0x2cf4e0;_0x2cf4e0++;}}return _0x2cf4e0;}}export function bindAnnotationCollections({source:_0x22264a,target:_0xdac2de,filter:_0x2ff36f}){for(const _0x41d386 of _0x22264a)_0x2ff36f(_0x41d386)&&_0xdac2de[_0x102c('0x9')](_0x41d386);_0xdac2de[_0x102c('0x16')](_0x22264a,'add',(_0x4b35c8,_0x2bea95)=>{_0x2ff36f(_0x2bea95)&&_0xdac2de[_0x102c('0x9')](_0x2bea95);}),_0xdac2de[_0x102c('0x16')](_0x22264a,_0x102c('0x5'),(_0x1a78cf,_0x40ed0d)=>{_0xdac2de[_0x102c('0x15')](_0x40ed0d)&&_0xdac2de[_0x102c('0x5')](_0x40ed0d);});}function v(_0x23d308,_0x321b87){if(null===_0x23d308&&null===_0x321b87)return 0x0;if(null===_0x23d308)return-0x1;if(null===_0x321b87)return 0x1;const _0x5bc612=_0x23d308[_0x102c('0x1b')]-_0x321b87[_0x102c('0x1b')];return 0x0==_0x5bc612?_0x23d308['left']-_0x321b87['left']:_0x5bc612;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd195=['element','getByInnerView','Annotations','isVisible','_removeActiveAnnotation','has','activeAnnotations','_addActiveAnnotation','listenTo','createAnnotation','_deactivateAllAnnotations','remove','_bindAnnotationsToVisibleAnnotations','deactivateAll','stopListening','view','collection','activate','add','fire','source','destroy','refreshPositioning','set','_activateAnnotation','_visibleAnnotations','createAnnotationView','refreshVisibility','focusTracker','change:isVisible'];(function(_0x183ae3,_0xd19589){const _0x2f86ba=function(_0x223789){while(--_0x223789){_0x183ae3['push'](_0x183ae3['shift']());}};_0x2f86ba(++_0xd19589);}(_0xd195,0xc9));const _0x2f86=function(_0x183ae3,_0xd19589){_0x183ae3=_0x183ae3-0x0;let _0x2f86ba=_0xd195[_0x183ae3];return _0x2f86ba;};import{ContextPlugin as _0x3dcc9e}from'ckeditor5/src/core';import _0x49447b from'./annotation';import _0x3500ca from'./annotationcollection';import _0xdd3ee1 from'./view/annotationview';export default class b extends _0x3dcc9e{static get['pluginName'](){return _0x2f86('0xb');}constructor(_0x300637){super(_0x300637),this['collection']=new _0x3500ca(),this[_0x2f86('0x4')]=new _0x3500ca(),this[_0x2f86('0x2')](_0x2f86('0xf'),new Set()),this[_0x2f86('0x15')]();}['add'](_0x3be6a8){this['collection'][_0x2f86('0x1b')](_0x3be6a8);}[_0x2f86('0x14')](_0x2dd320){this[_0x2f86('0x19')][_0x2f86('0x14')](_0x2dd320),_0x2dd320[_0x2f86('0x0')]();}['refreshVisibility'](){for(const _0x1d714c of this[_0x2f86('0x19')])_0x1d714c[_0x2f86('0x6')]();}[_0x2f86('0x1')](){this[_0x2f86('0x4')]['refreshPositioning']();}[_0x2f86('0xa')](_0x4ae8ef){return this[_0x2f86('0x19')][_0x2f86('0xa')](_0x4ae8ef);}[_0x2f86('0x16')](){this['fire'](_0x2f86('0x13'));}['destroy'](){for(const _0x58e7e2 of this[_0x2f86('0x19')])_0x58e7e2['destroy']();this['_visibleAnnotations'][_0x2f86('0x0')](),this[_0x2f86('0x19')][_0x2f86('0x0')](),super[_0x2f86('0x0')]();}[_0x2f86('0x1a')](_0x44cad9){this[_0x2f86('0x1c')](_0x2f86('0x3'),_0x44cad9);}[_0x2f86('0x12')](_0x259031){return new _0x49447b(_0x259031);}[_0x2f86('0x5')](_0x38cc2d,_0x3a9fa3){return new _0xdd3ee1(_0x38cc2d,_0x3a9fa3);}[_0x2f86('0x10')](_0x274ac9){const _0x347d6f=new Set(this['activeAnnotations']);_0x347d6f[_0x2f86('0x1b')](_0x274ac9),this[_0x2f86('0xf')]=_0x347d6f;}[_0x2f86('0xd')](_0x46dc50){const _0x59c630=new Set(this['activeAnnotations']);_0x59c630['delete'](_0x46dc50),this[_0x2f86('0xf')]=_0x59c630;}['_bindAnnotationsToVisibleAnnotations'](){const _0x4e4972=this[_0x2f86('0x19')],_0x115e5c=this['_visibleAnnotations'];function _0xb17d77(_0x3423ad){const _0xdc2a92=_0x3423ad[_0x2f86('0x1d')];_0xdc2a92[_0x2f86('0xc')]&&!_0x115e5c[_0x2f86('0xe')](_0xdc2a92)?_0x115e5c['add'](_0xdc2a92):!_0xdc2a92[_0x2f86('0xc')]&&_0x115e5c['has'](_0xdc2a92)&&_0x115e5c[_0x2f86('0x14')](_0xdc2a92),_0xdc2a92[_0x2f86('0x18')][_0x2f86('0x7')]['remove'](_0xdc2a92[_0x2f86('0x18')][_0x2f86('0x9')]),_0xdc2a92[_0x2f86('0x18')]['focusTracker'][_0x2f86('0x1b')](_0xdc2a92[_0x2f86('0x18')][_0x2f86('0x9')]);}this[_0x2f86('0x11')](_0x4e4972,_0x2f86('0x1b'),(_0x7210dc,_0x1b76da)=>{_0x1b76da[_0x2f86('0xc')]&&_0x115e5c[_0x2f86('0x1b')](_0x1b76da),this['listenTo'](_0x1b76da,_0x2f86('0x8'),_0xb17d77);}),this[_0x2f86('0x11')](_0x4e4972,_0x2f86('0x14'),(_0x22fe24,_0xe095c8)=>{_0x115e5c[_0x2f86('0xe')](_0xe095c8)&&_0x115e5c[_0x2f86('0x14')](_0xe095c8),this[_0x2f86('0x17')](_0xe095c8,_0x2f86('0x8'),_0xb17d77);});}}
23
+ const _0x5cc8=['listenTo','_removeActiveAnnotation','collection','_addActiveAnnotation','createAnnotationView','createAnnotation','activeAnnotations','has','_visibleAnnotations','refreshPositioning','element','deactivateAll','activate','destroy','focusTracker','remove','isVisible','delete','_deactivateAllAnnotations','fire','view','change:isVisible','add','getByInnerView','source'];(function(_0x2831a9,_0x5cc8f1){const _0x38b916=function(_0x24220c){while(--_0x24220c){_0x2831a9['push'](_0x2831a9['shift']());}};_0x38b916(++_0x5cc8f1);}(_0x5cc8,0x10c));const _0x38b9=function(_0x2831a9,_0x5cc8f1){_0x2831a9=_0x2831a9-0x0;let _0x38b916=_0x5cc8[_0x2831a9];return _0x38b916;};import{ContextPlugin as _0x436c79}from'ckeditor5/src/core';import _0x3e137d from'./annotation';import _0x4035be from'./annotationcollection';import _0x3ad7ff from'./view/annotationview';export default class b extends _0x436c79{static get['pluginName'](){return'Annotations';}constructor(_0x5ec1fc){super(_0x5ec1fc),this[_0x38b9('0x9')]=new _0x4035be(),this[_0x38b9('0xf')]=new _0x4035be(),this['set'](_0x38b9('0xd'),new Set()),this['_bindAnnotationsToVisibleAnnotations']();}[_0x38b9('0x4')](_0x4d62bc){this[_0x38b9('0x9')]['add'](_0x4d62bc);}[_0x38b9('0x16')](_0x34587b){this[_0x38b9('0x9')]['remove'](_0x34587b),_0x34587b[_0x38b9('0x14')]();}['refreshVisibility'](){for(const _0x2cb5e4 of this[_0x38b9('0x9')])_0x2cb5e4['refreshVisibility']();}[_0x38b9('0x10')](){this['_visibleAnnotations']['refreshPositioning']();}[_0x38b9('0x5')](_0x576f5b){return this[_0x38b9('0x9')][_0x38b9('0x5')](_0x576f5b);}[_0x38b9('0x12')](){this[_0x38b9('0x1')](_0x38b9('0x0'));}[_0x38b9('0x14')](){for(const _0x104397 of this[_0x38b9('0x9')])_0x104397[_0x38b9('0x14')]();this[_0x38b9('0xf')][_0x38b9('0x14')](),this[_0x38b9('0x9')][_0x38b9('0x14')](),super['destroy']();}[_0x38b9('0x13')](_0x4817d1){this[_0x38b9('0x1')]('_activateAnnotation',_0x4817d1);}[_0x38b9('0xc')](_0x3bf864){return new _0x3e137d(_0x3bf864);}[_0x38b9('0xb')](_0x77ec9f,_0x8fdc20){return new _0x3ad7ff(_0x77ec9f,_0x8fdc20);}[_0x38b9('0xa')](_0x448a0e){const _0x3541f8=new Set(this[_0x38b9('0xd')]);_0x3541f8[_0x38b9('0x4')](_0x448a0e),this[_0x38b9('0xd')]=_0x3541f8;}[_0x38b9('0x8')](_0x206003){const _0x3649cd=new Set(this['activeAnnotations']);_0x3649cd[_0x38b9('0x18')](_0x206003),this['activeAnnotations']=_0x3649cd;}['_bindAnnotationsToVisibleAnnotations'](){const _0x3c7fd9=this[_0x38b9('0x9')],_0x2431fd=this[_0x38b9('0xf')];function _0x57787c(_0x132d2a){const _0x42e281=_0x132d2a[_0x38b9('0x6')];_0x42e281[_0x38b9('0x17')]&&!_0x2431fd['has'](_0x42e281)?_0x2431fd[_0x38b9('0x4')](_0x42e281):!_0x42e281[_0x38b9('0x17')]&&_0x2431fd[_0x38b9('0xe')](_0x42e281)&&_0x2431fd['remove'](_0x42e281),_0x42e281[_0x38b9('0x2')]['focusTracker'][_0x38b9('0x16')](_0x42e281[_0x38b9('0x2')]['element']),_0x42e281['view'][_0x38b9('0x15')]['add'](_0x42e281[_0x38b9('0x2')][_0x38b9('0x11')]);}this[_0x38b9('0x7')](_0x3c7fd9,'add',(_0x9b669,_0x349104)=>{_0x349104[_0x38b9('0x17')]&&_0x2431fd[_0x38b9('0x4')](_0x349104),this[_0x38b9('0x7')](_0x349104,_0x38b9('0x3'),_0x57787c);}),this[_0x38b9('0x7')](_0x3c7fd9,_0x38b9('0x16'),(_0x3bb859,_0x1d3c27)=>{_0x2431fd[_0x38b9('0xe')](_0x1d3c27)&&_0x2431fd[_0x38b9('0x16')](_0x1d3c27),this['stopListening'](_0x1d3c27,_0x38b9('0x3'),_0x57787c);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1684=['detach','AnnotationsUIs','set','init','type','annotationsuis-annotation-mismatch','activeAnnotations','_addActiveAnnotation','filter','function','pluginName','get','attach','switchTo','hasActive','_setSelectedAnnotations','stopListening','plugins','delete','_visibleAnnotations','add','push','context','_uisData','isActive','register','deactivate','destroy','activeUIs','deactivateAll','annotationsuis-missing-ui','from','activate','refilterAnnotations','listenTo','_deactivateAllAnnotations','has','_removeActiveAnnotation','collection','size','setActiveAnnotation','_uis'];(function(_0x23f1a9,_0x168455){const _0x4cf765=function(_0x5790ee){while(--_0x5790ee){_0x23f1a9['push'](_0x23f1a9['shift']());}};_0x4cf765(++_0x168455);}(_0x1684,0xfb));const _0x4cf7=function(_0x23f1a9,_0x168455){_0x23f1a9=_0x23f1a9-0x0;let _0x4cf765=_0x1684[_0x23f1a9];return _0x4cf765;};import{ContextPlugin as _0x7f39e}from'ckeditor5/src/core';import{CKEditorError as _0x24bf4b}from'ckeditor5/src/utils';import _0x221475,{bindAnnotationCollections as _0x41d533}from'./annotationcollection';import _0x212ac5 from'./annotations';export default class M extends _0x7f39e{static get['requires'](){return[_0x212ac5];}static get[_0x4cf7('0xb')](){return _0x4cf7('0x2');}constructor(_0x4a57a2){super(_0x4a57a2),this[_0x4cf7('0x1d')]=new Set(),this[_0x4cf7('0x0')]=new Map(),this[_0x4cf7('0x18')]=new Map();}[_0x4cf7('0x4')](){const _0x359723=this[_0x4cf7('0x17')][_0x4cf7('0x12')][_0x4cf7('0xc')](_0x212ac5);this[_0x4cf7('0x23')](_0x359723,'_activateAnnotation',(_0x312f43,_0x33ebf1)=>{for(const _0x4d574e of this[_0x4cf7('0x1d')]){const _0x51a68f=this[_0x4cf7('0x0')]['get'](_0x4d574e);(0x0,this[_0x4cf7('0x18')]['get'](_0x4d574e)[_0x4cf7('0x9')])(_0x33ebf1)&&_0x51a68f['setActiveAnnotation'](_0x33ebf1);}}),this[_0x4cf7('0x23')](_0x359723,_0x4cf7('0x24'),()=>{for(const _0x53811b of this[_0x4cf7('0x1d')]){this[_0x4cf7('0x0')][_0x4cf7('0xc')](_0x53811b)[_0x4cf7('0x29')](null);}}),this[_0x4cf7('0x23')](_0x359723[_0x4cf7('0x14')],_0x4cf7('0x15'),(_0x3bde23,_0x50608b)=>{this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x50608b);});}[_0x4cf7('0xf')](){return this['activeUIs'][_0x4cf7('0x28')]>0x0;}[_0x4cf7('0x19')](_0x1511a7){return this[_0x4cf7('0x1d')][_0x4cf7('0x25')](_0x1511a7);}[_0x4cf7('0x21')](_0x10c3e1,_0x93a7d7=()=>!0x0){const _0x136271=this['context'][_0x4cf7('0x12')]['get'](_0x212ac5);if(!this[_0x4cf7('0x0')][_0x4cf7('0x25')](_0x10c3e1))throw new _0x24bf4b(_0x4cf7('0x1f'),this,{'uiName':_0x10c3e1});this[_0x4cf7('0x19')](_0x10c3e1)&&this[_0x4cf7('0x1b')](_0x10c3e1),this[_0x4cf7('0x1d')]['add'](_0x10c3e1);const _0x523f23=new _0x221475(),_0x16f372=_0x136271[_0x4cf7('0x14')];_0x41d533({'source':_0x16f372,'target':_0x523f23,'filter':_0x93a7d7}),this[_0x4cf7('0x18')][_0x4cf7('0x3')](_0x10c3e1,{'collection':_0x523f23,'filter':_0x93a7d7});const _0x2e9b26=this[_0x4cf7('0x0')][_0x4cf7('0xc')](_0x10c3e1);_0x2e9b26[_0x4cf7('0xd')](_0x523f23),this[_0x4cf7('0x23')](_0x2e9b26,'change:activeAnnotation',(_0xd2e7eb,_0x3ab2a1,_0xe3883e,_0x506f67)=>{_0x506f67&&_0x136271[_0x4cf7('0x26')](_0x506f67),_0xe3883e&&_0x136271[_0x4cf7('0x8')](_0xe3883e);});}[_0x4cf7('0x1b')](_0x465dcd){if(this['activeUIs'][_0x4cf7('0x13')](_0x465dcd),!this[_0x4cf7('0x0')][_0x4cf7('0x25')](_0x465dcd))throw new _0x24bf4b(_0x4cf7('0x1f'),this,{'uiName':_0x465dcd});const _0x5cf951=this[_0x4cf7('0x0')][_0x4cf7('0xc')](_0x465dcd);_0x5cf951[_0x4cf7('0x1')](),this[_0x4cf7('0x11')](_0x5cf951),this[_0x4cf7('0x18')][_0x4cf7('0xc')](_0x465dcd)['collection'][_0x4cf7('0x1c')](),this[_0x4cf7('0x18')][_0x4cf7('0x13')](_0x465dcd);}[_0x4cf7('0xe')](_0x1cb76b){if(!this[_0x4cf7('0x0')][_0x4cf7('0x25')](_0x1cb76b))throw new _0x24bf4b(_0x4cf7('0x1f'),this,{'uiName':_0x1cb76b});const _0x5c7c21=this[_0x4cf7('0x17')][_0x4cf7('0x12')][_0x4cf7('0xc')](_0x212ac5),_0x5d5212=Array[_0x4cf7('0x20')](_0x5c7c21[_0x4cf7('0x7')])[0x0]||null;this[_0x4cf7('0x1e')](),this[_0x4cf7('0x21')](_0x1cb76b);const _0xd795f5=this[_0x4cf7('0x0')][_0x4cf7('0xc')](_0x1cb76b);_0xd795f5[_0x4cf7('0x29')](_0x5d5212),_0xd795f5[_0x4cf7('0x10')]&&_0x5d5212&&_0xd795f5[_0x4cf7('0x10')]([_0x5d5212]);}[_0x4cf7('0x1e')](){for(const _0x21c6c0 of this[_0x4cf7('0x1d')])this[_0x4cf7('0x1b')](_0x21c6c0);}[_0x4cf7('0x1a')](_0x521980,_0x58848c){if(this[_0x4cf7('0x0')][_0x4cf7('0x25')](_0x521980))throw new _0x24bf4b('annotationsuis-register-already-registered');if(_0x4cf7('0xa')!=typeof _0x58848c[_0x4cf7('0xd')]||_0x4cf7('0xa')!=typeof _0x58848c[_0x4cf7('0x1')]||_0x4cf7('0xa')!=typeof _0x58848c['setActiveAnnotation'])throw new _0x24bf4b('annotationsuis-register-invalid-interface',null);this[_0x4cf7('0x0')]['set'](_0x521980,_0x58848c);}[_0x4cf7('0x22')](){const _0x4264e0=this[_0x4cf7('0x17')]['plugins'][_0x4cf7('0xc')](_0x212ac5)[_0x4cf7('0x27')],_0x47e1c1=new Map(),_0x53d0c7=Array[_0x4cf7('0x20')](this[_0x4cf7('0x1d')]);for(const _0x18c56e of this[_0x4cf7('0x1d')]){const _0x4ca727=this['_uisData']['get'](_0x18c56e)[_0x4cf7('0x27')];for(const _0x5d4019 of _0x4ca727)_0x47e1c1[_0x4cf7('0x3')](_0x5d4019,_0x18c56e);}for(const _0x264f15 of _0x4264e0){const _0x3fd139=_0x47e1c1[_0x4cf7('0xc')](_0x264f15);this['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x264f15);const _0x22caf5=_0x53d0c7['find'](_0x365814=>this[_0x4cf7('0x18')]['get'](_0x365814)[_0x4cf7('0x9')](_0x264f15));_0x3fd139!==_0x22caf5&&(_0x3fd139&&this[_0x4cf7('0x18')][_0x4cf7('0xc')](_0x3fd139)[_0x4cf7('0x27')]['remove'](_0x264f15),_0x22caf5&&this[_0x4cf7('0x18')][_0x4cf7('0xc')](_0x22caf5)[_0x4cf7('0x27')][_0x4cf7('0x15')](_0x264f15));}}[_0x4cf7('0x1c')](){this[_0x4cf7('0x1e')](),super[_0x4cf7('0x1c')]();}['_assertAnnotationDoesNotBelongToMultipleUIs'](_0x2a27f5){const _0x294d92=[];for(const _0xf11638 of this[_0x4cf7('0x1d')]){(0x0,this[_0x4cf7('0x18')][_0x4cf7('0xc')](_0xf11638)[_0x4cf7('0x9')])(_0x2a27f5)&&_0x294d92[_0x4cf7('0x16')](_0xf11638);}if(_0x294d92['length']>0x1)throw new _0x24bf4b(_0x4cf7('0x6'),null,{'matchedUIs':_0x294d92,'annotationType':_0x2a27f5[_0x4cf7('0x5')]});}}
23
+ const _0x4e79=['detach','activeUIs','_uis','change:activeAnnotation','push','isActive','_visibleAnnotations','refilterAnnotations','deactivateAll','annotationsuis-register-invalid-interface','context','type','register','hasActive','remove','destroy','_uisData','activate','stopListening','find','_assertAnnotationDoesNotBelongToMultipleUIs','setActiveAnnotation','plugins','AnnotationsUIs','delete','deactivate','_activateAnnotation','_setSelectedAnnotations','filter','collection','has','requires','get','from','listenTo','annotationsuis-missing-ui','size','pluginName','attach','function','_removeActiveAnnotation','add'];(function(_0x4f890f,_0x4e7939){const _0x1a925a=function(_0x40dabf){while(--_0x40dabf){_0x4f890f['push'](_0x4f890f['shift']());}};_0x1a925a(++_0x4e7939);}(_0x4e79,0x1b2));const _0x1a92=function(_0x4f890f,_0x4e7939){_0x4f890f=_0x4f890f-0x0;let _0x1a925a=_0x4e79[_0x4f890f];return _0x1a925a;};import{ContextPlugin as _0x302e57}from'ckeditor5/src/core';import{CKEditorError as _0x2c3cd7}from'ckeditor5/src/utils';import _0x3424e6,{bindAnnotationCollections as _0x24f7e4}from'./annotationcollection';import _0x3b30a3 from'./annotations';export default class M extends _0x302e57{static get[_0x1a92('0x11')](){return[_0x3b30a3];}static get[_0x1a92('0x17')](){return _0x1a92('0x9');}constructor(_0x4058bd){super(_0x4058bd),this[_0x1a92('0x1d')]=new Set(),this['_uis']=new Map(),this[_0x1a92('0x2')]=new Map();}['init'](){const _0x57081a=this['context'][_0x1a92('0x8')]['get'](_0x3b30a3);this[_0x1a92('0x14')](_0x57081a,_0x1a92('0xc'),(_0x362205,_0x4fced3)=>{for(const _0x314fd9 of this[_0x1a92('0x1d')]){const _0x1675c2=this['_uis'][_0x1a92('0x12')](_0x314fd9);(0x0,this[_0x1a92('0x2')][_0x1a92('0x12')](_0x314fd9)[_0x1a92('0xe')])(_0x4fced3)&&_0x1675c2['setActiveAnnotation'](_0x4fced3);}}),this['listenTo'](_0x57081a,'_deactivateAllAnnotations',()=>{for(const _0x24bf6c of this['activeUIs']){this[_0x1a92('0x1e')]['get'](_0x24bf6c)[_0x1a92('0x7')](null);}}),this[_0x1a92('0x14')](_0x57081a['_visibleAnnotations'],_0x1a92('0x1b'),(_0x2c7cc4,_0x501940)=>{this[_0x1a92('0x6')](_0x501940);});}[_0x1a92('0x29')](){return this[_0x1a92('0x1d')][_0x1a92('0x16')]>0x0;}[_0x1a92('0x21')](_0x36d3d0){return this['activeUIs'][_0x1a92('0x10')](_0x36d3d0);}[_0x1a92('0x3')](_0x1cbb87,_0x590279=()=>!0x0){const _0x327550=this['context']['plugins']['get'](_0x3b30a3);if(!this['_uis'][_0x1a92('0x10')](_0x1cbb87))throw new _0x2c3cd7(_0x1a92('0x15'),this,{'uiName':_0x1cbb87});this[_0x1a92('0x21')](_0x1cbb87)&&this[_0x1a92('0xb')](_0x1cbb87),this[_0x1a92('0x1d')][_0x1a92('0x1b')](_0x1cbb87);const _0x1c6e3d=new _0x3424e6(),_0x1aac34=_0x327550[_0x1a92('0x22')];_0x24f7e4({'source':_0x1aac34,'target':_0x1c6e3d,'filter':_0x590279}),this[_0x1a92('0x2')]['set'](_0x1cbb87,{'collection':_0x1c6e3d,'filter':_0x590279});const _0x544a2d=this[_0x1a92('0x1e')][_0x1a92('0x12')](_0x1cbb87);_0x544a2d[_0x1a92('0x18')](_0x1c6e3d),this[_0x1a92('0x14')](_0x544a2d,_0x1a92('0x1f'),(_0x440a68,_0x5c0f38,_0xdd170c,_0x9b74b4)=>{_0x9b74b4&&_0x327550[_0x1a92('0x1a')](_0x9b74b4),_0xdd170c&&_0x327550['_addActiveAnnotation'](_0xdd170c);});}[_0x1a92('0xb')](_0x3f06ea){if(this[_0x1a92('0x1d')][_0x1a92('0xa')](_0x3f06ea),!this[_0x1a92('0x1e')][_0x1a92('0x10')](_0x3f06ea))throw new _0x2c3cd7('annotationsuis-missing-ui',this,{'uiName':_0x3f06ea});const _0x1faf0d=this[_0x1a92('0x1e')][_0x1a92('0x12')](_0x3f06ea);_0x1faf0d['detach'](),this[_0x1a92('0x4')](_0x1faf0d),this['_uisData'][_0x1a92('0x12')](_0x3f06ea)[_0x1a92('0xf')][_0x1a92('0x1')](),this[_0x1a92('0x2')][_0x1a92('0xa')](_0x3f06ea);}['switchTo'](_0x21fa88){if(!this[_0x1a92('0x1e')]['has'](_0x21fa88))throw new _0x2c3cd7('annotationsuis-missing-ui',this,{'uiName':_0x21fa88});const _0x5de419=this[_0x1a92('0x26')][_0x1a92('0x8')][_0x1a92('0x12')](_0x3b30a3),_0x25d23a=Array[_0x1a92('0x13')](_0x5de419['activeAnnotations'])[0x0]||null;this[_0x1a92('0x24')](),this[_0x1a92('0x3')](_0x21fa88);const _0x208fb3=this[_0x1a92('0x1e')][_0x1a92('0x12')](_0x21fa88);_0x208fb3[_0x1a92('0x7')](_0x25d23a),_0x208fb3[_0x1a92('0xd')]&&_0x25d23a&&_0x208fb3[_0x1a92('0xd')]([_0x25d23a]);}[_0x1a92('0x24')](){for(const _0x561e34 of this[_0x1a92('0x1d')])this['deactivate'](_0x561e34);}[_0x1a92('0x28')](_0x59529e,_0x5ddbcf){if(this[_0x1a92('0x1e')][_0x1a92('0x10')](_0x59529e))throw new _0x2c3cd7('annotationsuis-register-already-registered');if(_0x1a92('0x19')!=typeof _0x5ddbcf[_0x1a92('0x18')]||_0x1a92('0x19')!=typeof _0x5ddbcf[_0x1a92('0x1c')]||_0x1a92('0x19')!=typeof _0x5ddbcf[_0x1a92('0x7')])throw new _0x2c3cd7(_0x1a92('0x25'),null);this[_0x1a92('0x1e')]['set'](_0x59529e,_0x5ddbcf);}[_0x1a92('0x23')](){const _0x41a73f=this[_0x1a92('0x26')]['plugins']['get'](_0x3b30a3)['collection'],_0x2f8f37=new Map(),_0x72c63d=Array['from'](this[_0x1a92('0x1d')]);for(const _0x129197 of this['activeUIs']){const _0x3f118d=this[_0x1a92('0x2')]['get'](_0x129197)[_0x1a92('0xf')];for(const _0x1a969e of _0x3f118d)_0x2f8f37['set'](_0x1a969e,_0x129197);}for(const _0x977de3 of _0x41a73f){const _0x3e446d=_0x2f8f37[_0x1a92('0x12')](_0x977de3);this[_0x1a92('0x6')](_0x977de3);const _0x11da4d=_0x72c63d[_0x1a92('0x5')](_0x4d2215=>this['_uisData'][_0x1a92('0x12')](_0x4d2215)['filter'](_0x977de3));_0x3e446d!==_0x11da4d&&(_0x3e446d&&this['_uisData'][_0x1a92('0x12')](_0x3e446d)[_0x1a92('0xf')][_0x1a92('0x0')](_0x977de3),_0x11da4d&&this[_0x1a92('0x2')][_0x1a92('0x12')](_0x11da4d)[_0x1a92('0xf')][_0x1a92('0x1b')](_0x977de3));}}[_0x1a92('0x1')](){this[_0x1a92('0x24')](),super[_0x1a92('0x1')]();}[_0x1a92('0x6')](_0x22c464){const _0x532bfe=[];for(const _0xa5071d of this[_0x1a92('0x1d')]){(0x0,this[_0x1a92('0x2')][_0x1a92('0x12')](_0xa5071d)[_0x1a92('0xe')])(_0x22c464)&&_0x532bfe[_0x1a92('0x20')](_0xa5071d);}if(_0x532bfe['length']>0x1)throw new _0x2c3cd7('annotationsuis-annotation-mismatch',null,{'matchedUIs':_0x532bfe,'annotationType':_0x22c464[_0x1a92('0x27')]});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x34db=['init','blur','_editorAnnotations','change:isFocused','uiUpdate','getByInnerView','registerAnnotation','getOrderedSelectedAnnotations','plugins','range','containsRange','_editorAnnotationsData','function','change:range','from','annotation','innerView','editor','remove','EditorAnnotations','element','update','editing','selection','add','getRanges','has','isReadOnly','document','get','refreshSelectedViews','set','fire','hasDomSelection','_dataCollectors','listenTo','isCollapsed','focusTracker','view','isEqual','delete','map','model','editorannotations-invalid-source-callback','sort','addSourceCollector'];(function(_0x38b538,_0x34db56){const _0x29c86b=function(_0x3e78f1){while(--_0x3e78f1){_0x38b538['push'](_0x38b538['shift']());}};_0x29c86b(++_0x34db56);}(_0x34db,0x152));const _0x29c8=function(_0x38b538,_0x34db56){_0x38b538=_0x38b538-0x0;let _0x29c86b=_0x34db[_0x38b538];return _0x29c86b;};import{Plugin as _0x2b6588}from'ckeditor5/src/core';import{CKEditorError as _0x4a0051}from'ckeditor5/src/utils';import{debounce as _0x3da2a8}from'lodash-es';import _0x4be768 from'./annotations';export default class k extends _0x2b6588{static get['requires'](){return[_0x4be768];}static get['pluginName'](){return _0x29c8('0x3');}constructor(_0x39534c){super(_0x39534c),this['_dataCollectors']=new Set(),this[_0x29c8('0x20')]=new Set();}[_0x29c8('0x1e')](){const _0x39ff06=this[_0x29c8('0x1')],_0x5e63c4=_0x39ff06['model'][_0x29c8('0xc')][_0x29c8('0x7')],_0x54968e=_0x3da2a8(()=>this['refreshSelectedViews'](),0xa);_0x5e63c4['on'](_0x29c8('0x2b'),(_0x320310,_0xbbc2fa)=>{_0xbbc2fa['directChange']&&(_0x54968e['cancel'](),this[_0x29c8('0xe')]());}),this[_0x29c8('0x13')](_0x39ff06['editing']['view'][_0x29c8('0xc')],_0x29c8('0x21'),(_0x19aabf,_0x250bb3,_0x1ee3f5)=>{_0x1ee3f5&&_0x54968e();}),this['listenTo'](_0x39ff06['ui']['focusTracker'],_0x29c8('0x21'),(_0x3fed49,_0x185977,_0x2bdb00)=>{_0x2bdb00||_0x39ff06[_0x29c8('0xb')]||this[_0x29c8('0x10')](_0x29c8('0x1f'),{'isAnnotationTracked':_0x50e7d2=>this['_editorAnnotationsData'][_0x29c8('0xa')](_0x50e7d2[_0x29c8('0x0')])});}),this['listenTo'](this[_0x29c8('0x1')]['ui'],_0x29c8('0x5'),()=>this[_0x29c8('0x10')](_0x29c8('0x22')));}[_0x29c8('0x24')](_0x268b34){if(this['_editorAnnotations'][_0x29c8('0xa')](_0x268b34[_0x29c8('0x16')]))return;this[_0x29c8('0x20')][_0x29c8('0x8')](_0x268b34[_0x29c8('0x16')]),this['editor']['ui'][_0x29c8('0x15')][_0x29c8('0x8')](_0x268b34['view'][_0x29c8('0x4')]);const _0x2c5bbe=this[_0x29c8('0x1')][_0x29c8('0x26')][_0x29c8('0xd')](_0x4be768);this['listenTo'](_0x2c5bbe['collection'],'remove',(_0x323186,_0x7e9da1)=>{this[_0x29c8('0x1')]['ui'][_0x29c8('0x15')][_0x29c8('0x2')](_0x7e9da1['view'][_0x29c8('0x4')]),this[_0x29c8('0x20')][_0x29c8('0x18')](_0x7e9da1[_0x29c8('0x16')]);});}[_0x29c8('0x11')](){return this['editor'][_0x29c8('0x6')][_0x29c8('0x16')][_0x29c8('0x11')];}[_0x29c8('0x1d')](_0x513be5){if(_0x29c8('0x2a')!=typeof _0x513be5)throw new _0x4a0051(_0x29c8('0x1b'));this[_0x29c8('0x12')][_0x29c8('0x8')](_0x513be5);}['refreshSelectedViews'](){this[_0x29c8('0x10')]('refresh');}[_0x29c8('0x25')]({activeAnnotation:_0x36bf1a,annotations:_0x10935d}){const _0xa6b14b=[],_0x1dd359=this[_0x29c8('0x1')][_0x29c8('0x1a')][_0x29c8('0xc')][_0x29c8('0x7')],_0x385344=Array[_0x29c8('0x2c')](_0x1dd359[_0x29c8('0x9')]());for(const [_0x45d357,_0x46bd9a]of this[_0x29c8('0x29')]){const _0x16aac0=_0x314151(_0x46bd9a),_0x49b0f4=_0x10935d[_0x29c8('0x23')](_0x45d357);_0x16aac0&&_0x49b0f4&&_0xa6b14b['push']({'annotation':_0x49b0f4,'range':_0x16aac0});}function _0x314151(_0x4fdddc){for(const _0x1144ec of _0x4fdddc)for(const _0x54b992 of _0x385344)if(_0x1144ec[_0x29c8('0x28')](_0x54b992,!_0x1dd359[_0x29c8('0x14')]))return _0x1144ec;return null;}return _0xa6b14b[_0x29c8('0x1c')]((_0x504d84,_0x8f648d)=>{const _0x3f1cf3=_0x504d84['range'],_0x34b62a=_0x8f648d[_0x29c8('0x27')];if(!_0x3f1cf3[_0x29c8('0x17')](_0x34b62a)){if(_0x3f1cf3[_0x29c8('0x28')](_0x34b62a,!0x0))return 0x1;if(_0x34b62a[_0x29c8('0x28')](_0x3f1cf3,!0x0))return-0x1;}return _0x504d84[_0x29c8('0x2d')]==_0x36bf1a?-0x1:_0x8f648d[_0x29c8('0x2d')]==_0x36bf1a?0x1:0x0;})[_0x29c8('0x19')](_0x57ba8b=>_0x57ba8b[_0x29c8('0x2d')]);}get[_0x29c8('0x29')](){const _0x22f3d7=new Map();for(const _0x3db556 of Array[_0x29c8('0x2c')](this[_0x29c8('0x12')]))for(const [_0x134131,_0x516879]of _0x3db556())_0x22f3d7[_0x29c8('0xf')](_0x134131,_0x516879);return _0x22f3d7;}}
23
+ const _0x163c=['has','element','_editorAnnotations','getOrderedSelectedAnnotations','pluginName','uiUpdate','set','view','push','directChange','map','change:range','editing','addSourceCollector','selection','EditorAnnotations','sort','fire','blur','registerAnnotation','range','getByInnerView','document','from','_editorAnnotationsData','editor','refreshSelectedViews','change:isFocused','isCollapsed','remove','innerView','focusTracker','requires','getRanges','init','isReadOnly','collection','delete','annotation','listenTo','update','plugins','cancel','containsRange','hasDomSelection','add','function'];(function(_0x391b54,_0x163c13){const _0x4f961e=function(_0x4eef13){while(--_0x4eef13){_0x391b54['push'](_0x391b54['shift']());}};_0x4f961e(++_0x163c13);}(_0x163c,0x154));const _0x4f96=function(_0x391b54,_0x163c13){_0x391b54=_0x391b54-0x0;let _0x4f961e=_0x163c[_0x391b54];return _0x4f961e;};import{Plugin as _0x1827ba}from'ckeditor5/src/core';import{CKEditorError as _0x3427a2}from'ckeditor5/src/utils';import{debounce as _0x57faaf}from'lodash-es';import _0x1d888b from'./annotations';export default class k extends _0x1827ba{static get[_0x4f96('0x15')](){return[_0x1d888b];}static get[_0x4f96('0x28')](){return _0x4f96('0x4');}constructor(_0x55fcbf){super(_0x55fcbf),this['_dataCollectors']=new Set(),this[_0x4f96('0x26')]=new Set();}[_0x4f96('0x17')](){const _0x2e799d=this[_0x4f96('0xe')],_0x7467f1=_0x2e799d['model'][_0x4f96('0xb')][_0x4f96('0x3')],_0x2be00e=_0x57faaf(()=>this[_0x4f96('0xf')](),0xa);_0x7467f1['on'](_0x4f96('0x0'),(_0x486c58,_0x12ca9b)=>{_0x12ca9b[_0x4f96('0x2d')]&&(_0x2be00e[_0x4f96('0x1f')](),this['refreshSelectedViews']());}),this[_0x4f96('0x1c')](_0x2e799d[_0x4f96('0x1')][_0x4f96('0x2b')]['document'],_0x4f96('0x10'),(_0x1e7621,_0x11b6f6,_0x15970c)=>{_0x15970c&&_0x2be00e();}),this['listenTo'](_0x2e799d['ui'][_0x4f96('0x14')],_0x4f96('0x10'),(_0x3fef2d,_0x10ac64,_0x59608a)=>{_0x59608a||_0x2e799d[_0x4f96('0x18')]||this[_0x4f96('0x6')](_0x4f96('0x7'),{'isAnnotationTracked':_0x100869=>this[_0x4f96('0xd')][_0x4f96('0x24')](_0x100869[_0x4f96('0x13')])});}),this[_0x4f96('0x1c')](this[_0x4f96('0xe')]['ui'],_0x4f96('0x1d'),()=>this[_0x4f96('0x6')](_0x4f96('0x29')));}[_0x4f96('0x8')](_0x4041a7){if(this[_0x4f96('0x26')]['has'](_0x4041a7[_0x4f96('0x2b')]))return;this[_0x4f96('0x26')][_0x4f96('0x22')](_0x4041a7[_0x4f96('0x2b')]),this[_0x4f96('0xe')]['ui'][_0x4f96('0x14')][_0x4f96('0x22')](_0x4041a7[_0x4f96('0x2b')][_0x4f96('0x25')]);const _0x58a0b6=this[_0x4f96('0xe')][_0x4f96('0x1e')]['get'](_0x1d888b);this[_0x4f96('0x1c')](_0x58a0b6[_0x4f96('0x19')],_0x4f96('0x12'),(_0x279eeb,_0xd8baa6)=>{this['editor']['ui']['focusTracker']['remove'](_0xd8baa6['view'][_0x4f96('0x25')]),this[_0x4f96('0x26')][_0x4f96('0x1a')](_0xd8baa6[_0x4f96('0x2b')]);});}['hasDomSelection'](){return this[_0x4f96('0xe')][_0x4f96('0x1')]['view'][_0x4f96('0x21')];}[_0x4f96('0x2')](_0x2d0b5c){if(_0x4f96('0x23')!=typeof _0x2d0b5c)throw new _0x3427a2('editorannotations-invalid-source-callback');this['_dataCollectors'][_0x4f96('0x22')](_0x2d0b5c);}[_0x4f96('0xf')](){this[_0x4f96('0x6')]('refresh');}[_0x4f96('0x27')]({activeAnnotation:_0x4d5c24,annotations:_0x22bda1}){const _0x47eec4=[],_0x2523b8=this[_0x4f96('0xe')]['model'][_0x4f96('0xb')][_0x4f96('0x3')],_0x4a0d87=Array[_0x4f96('0xc')](_0x2523b8[_0x4f96('0x16')]());for(const [_0x84015f,_0x9816ab]of this[_0x4f96('0xd')]){const _0x48b97c=_0x1d3bcc(_0x9816ab),_0x23f5b2=_0x22bda1[_0x4f96('0xa')](_0x84015f);_0x48b97c&&_0x23f5b2&&_0x47eec4[_0x4f96('0x2c')]({'annotation':_0x23f5b2,'range':_0x48b97c});}function _0x1d3bcc(_0x4fb817){for(const _0x34125d of _0x4fb817)for(const _0x3636c9 of _0x4a0d87)if(_0x34125d[_0x4f96('0x20')](_0x3636c9,!_0x2523b8[_0x4f96('0x11')]))return _0x34125d;return null;}return _0x47eec4[_0x4f96('0x5')]((_0x49f9f3,_0x21551a)=>{const _0x10b387=_0x49f9f3[_0x4f96('0x9')],_0x4b9740=_0x21551a[_0x4f96('0x9')];if(!_0x10b387['isEqual'](_0x4b9740)){if(_0x10b387[_0x4f96('0x20')](_0x4b9740,!0x0))return 0x1;if(_0x4b9740[_0x4f96('0x20')](_0x10b387,!0x0))return-0x1;}return _0x49f9f3[_0x4f96('0x1b')]==_0x4d5c24?-0x1:_0x21551a[_0x4f96('0x1b')]==_0x4d5c24?0x1:0x0;})[_0x4f96('0x2e')](_0x11568f=>_0x11568f[_0x4f96('0x1b')]);}get[_0x4f96('0xd')](){const _0x2956af=new Map();for(const _0xca6a5c of Array[_0x4f96('0xc')](this['_dataCollectors']))for(const [_0x4a2348,_0x5f4919]of _0xca6a5c())_0x2956af[_0x4f96('0x2a')](_0x4a2348,_0x5f4919);return _0x2956af;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x121e=['change:visibleView','from','refresh','afterInit','_manuallyClosed','InlineAnnotations','listenTo','_setSelectedAnnotations','getClientRects','activeAnnotation','has','register','inline','_getBalloonTargetForAnnotation','hasView','editableElement','_addAnnotationToBalloon','getFirstRange','hasActive','getByView','updatePosition','editor','find','isActive','_balloon','getOrderedSelectedAnnotations','showStack','document','_selectedAnnotations','focus','attach','inlineannotations-attach-already-attached','top','_addedAnnotations','requires','_removeAnnotationFromBalloon','context','add','set','selection','isFocused','visibleView','width','includes','destroy','plugins','init','detach','clear','inlineannotations-not-allowed-with-context','bottom','pluginName','switchTo','blur','right','get','change:isFocused','_forceRefresh','target','focusTracker','left','Esc','setActiveAnnotation','isAttached','collapse','view','stopListening','targetRect','annotations','delete','inlineannotations-detach-not-attached','editing','remove','push','_closeAnnotation','length','addObserver'];(function(_0x23a355,_0x121e24){const _0x1b5bd5=function(_0x3e95fa){while(--_0x3e95fa){_0x23a355['push'](_0x23a355['shift']());}};_0x1b5bd5(++_0x121e24);}(_0x121e,0xf9));const _0x1b5b=function(_0x23a355,_0x121e24){_0x23a355=_0x23a355-0x0;let _0x1b5bd5=_0x121e[_0x23a355];return _0x1b5bd5;};import{Plugin as _0x3fb5a5}from'ckeditor5/src/core';import _0x26c81e from'./annotationsuis';import _0x26c513 from'./editorannotations';import{ContextualBalloon as _0x2a54cc}from'ckeditor5/src/ui';import{MouseObserver as _0x4b9dbd}from'ckeditor5/src/engine';import{CKEditorError as _0x1d34fd,Rect as _0x33913d}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x3fb5a5{static get[_0x1b5b('0x10')](){return[_0x26c513,_0x2a54cc,_0x26c81e];}static get[_0x1b5b('0x21')](){return _0x1b5b('0x40');}constructor(_0x5e6644){super(_0x5e6644),_0x5e6644[_0x1b5b('0x35')]['view'][_0x1b5b('0x3a')](_0x4b9dbd),this['isAttached']=!0x1,this[_0x1b5b('0x14')](_0x1b5b('0x44'),null),this[_0x1b5b('0x32')]=null,this[_0x1b5b('0x3f')]=new Set(),this[_0x1b5b('0x6')]=_0x5e6644[_0x1b5b('0x1b')][_0x1b5b('0x25')](_0x2a54cc),this['_addedAnnotations']=new Set(),this[_0x1b5b('0xa')]=[],this[_0x1b5b('0x27')]=!0x1;}[_0x1b5b('0x1c')](){const _0x1348a9=this['editor'][_0x1b5b('0x1b')][_0x1b5b('0x25')](_0x26c81e);_0x1348a9['context']===this[_0x1b5b('0x3')]&&(_0x1348a9[_0x1b5b('0x46')](_0x1b5b('0x47'),this),this['editor']['keystrokes']['set'](_0x1b5b('0x2b'),(_0x588ff6,_0x40f9d1)=>{const _0x2cc17d=this[_0x1b5b('0x6')];if(this['isAttached']&&_0x2cc17d[_0x1b5b('0x17')]){const _0x52c294=this[_0x1b5b('0x32')][_0x1b5b('0x1')](_0x2cc17d[_0x1b5b('0x17')]);_0x52c294&&this[_0x1b5b('0x38')](_0x52c294),_0x40f9d1();}}));}[_0x1b5b('0x3e')](){const _0x451501=this[_0x1b5b('0x3')][_0x1b5b('0x1b')][_0x1b5b('0x25')](_0x26c81e);_0x451501[_0x1b5b('0x12')]===this[_0x1b5b('0x3')]&&(_0x451501[_0x1b5b('0x0')]()||_0x451501[_0x1b5b('0x22')](_0x1b5b('0x47')));}['setActiveAnnotation'](_0x175ec5){_0x175ec5!==this[_0x1b5b('0x44')]&&(this[_0x1b5b('0x44')]&&(this[_0x1b5b('0x44')][_0x1b5b('0x5')]=!0x1),_0x175ec5&&this[_0x1b5b('0x3')]['ui'][_0x1b5b('0x29')]['isFocused']&&(this[_0x1b5b('0x32')]['has'](_0x175ec5)&&this[_0x1b5b('0x4b')](_0x175ec5,!0x0),_0x175ec5[_0x1b5b('0x5')]=!0x0),_0x175ec5||this[_0x1b5b('0x42')]([]),this['activeAnnotation']=_0x175ec5);}[_0x1b5b('0xc')](_0x30ec10){this[_0x1b5b('0x32')]=_0x30ec10;const _0x38834f=this['editor'][_0x1b5b('0x1b')][_0x1b5b('0x25')](_0x26c81e),_0x397a2c=this[_0x1b5b('0x6')];if(this['isAttached'])throw new _0x1d34fd(_0x1b5b('0xd'),this);if(_0x38834f[_0x1b5b('0x12')]!==this['editor'])throw new _0x1d34fd(_0x1b5b('0x1f'),this);const _0x21f765=this['editor']['plugins'][_0x1b5b('0x25')](_0x26c513);this[_0x1b5b('0x41')](_0x21f765,_0x1b5b('0x3d'),()=>{const _0x5a6e3a=_0x21f765[_0x1b5b('0x7')]({'annotations':this['annotations'],'activeAnnotation':this[_0x1b5b('0x44')]});var _0x12506d,_0x566853;!this[_0x1b5b('0x27')]&&(_0x12506d=_0x5a6e3a,_0x566853=this[_0x1b5b('0xa')],_0x12506d[_0x1b5b('0x39')]===_0x566853[_0x1b5b('0x39')]&&_0x12506d['every'](_0x5375bd=>_0x566853[_0x1b5b('0x19')](_0x5375bd)))||(this[_0x1b5b('0x27')]=!0x1,this[_0x1b5b('0x42')](_0x5a6e3a),this[_0x1b5b('0x2c')](_0x5a6e3a[0x0]||null));}),this[_0x1b5b('0x41')](_0x21f765,_0x1b5b('0x23'),(_0x9dbc37,{isAnnotationTracked:_0x5ceb47})=>{this[_0x1b5b('0x44')]&&_0x5ceb47(this[_0x1b5b('0x44')])&&(this[_0x1b5b('0x42')]([]),this[_0x1b5b('0x2c')](null));}),this[_0x1b5b('0x41')](this[_0x1b5b('0x3')]['ui'][_0x1b5b('0x29')],_0x1b5b('0x26'),(_0x35a16e,_0x537364,_0x45771c)=>{_0x45771c||this[_0x1b5b('0x2c')](null);}),this[_0x1b5b('0x41')](_0x30ec10,_0x1b5b('0x36'),(_0x9cd900,_0xf0b3a1)=>{this[_0x1b5b('0x11')](_0xf0b3a1),_0xf0b3a1===this['activeAnnotation']&&this['setActiveAnnotation'](null);}),this[_0x1b5b('0x41')](_0x397a2c,_0x1b5b('0x3b'),(_0x12e64a,_0x5cf640,_0x5c7907,_0x10fb09)=>{_0x10fb09&&this[_0x1b5b('0x30')](_0x10fb09);const _0x19fe49=_0x30ec10[_0x1b5b('0x1')](_0x5c7907);_0x5c7907&&_0x19fe49&&(this[_0x1b5b('0x41')](_0x5c7907,'change:height',()=>{_0x397a2c[_0x1b5b('0x2')]();}),this['listenTo'](_0x5c7907,_0x1b5b('0x2b'),()=>{this[_0x1b5b('0x38')](_0x19fe49),this[_0x1b5b('0x3')][_0x1b5b('0x35')]['view']['focus']();}),this[_0x1b5b('0x44')]!==_0x19fe49&&this['setActiveAnnotation'](_0x19fe49));}),this[_0x1b5b('0x41')](this['editor']['ui'],'update',()=>{_0x397a2c['visibleView']&&(_0x30ec10[_0x1b5b('0x1')](_0x397a2c[_0x1b5b('0x17')])&&_0x397a2c['updatePosition']());}),this[_0x1b5b('0x41')](this[_0x1b5b('0x3')][_0x1b5b('0x35')][_0x1b5b('0x2f')][_0x1b5b('0x9')],'mousedown',()=>{this['_forceRefresh']=!0x0,this[_0x1b5b('0x3f')][_0x1b5b('0x1e')]();}),this['editor'][_0x1b5b('0x35')]['view'][_0x1b5b('0x9')][_0x1b5b('0x15')][_0x1b5b('0x4a')]&&this[_0x1b5b('0x3')][_0x1b5b('0x35')][_0x1b5b('0x2f')][_0x1b5b('0xb')](),this['isAttached']=!0x0;}[_0x1b5b('0x1d')](){if(!this[_0x1b5b('0x2d')])throw new _0x1d34fd(_0x1b5b('0x34'),this);this[_0x1b5b('0x2c')](null);for(const _0x174b6a of this[_0x1b5b('0xf')])this[_0x1b5b('0x11')](_0x174b6a);this[_0x1b5b('0x30')](),this[_0x1b5b('0x2d')]=!0x1,this[_0x1b5b('0x32')]=null;}[_0x1b5b('0x1a')](){this[_0x1b5b('0x2d')]&&this[_0x1b5b('0x1d')]();}[_0x1b5b('0x42')](_0x1c524b){for(const _0x54a702 of this['_selectedAnnotations'])_0x1c524b[_0x1b5b('0x19')](_0x54a702)||this[_0x1b5b('0x3f')]['delete'](_0x54a702);for(const _0x1dc35e of this[_0x1b5b('0x32')])_0x1c524b['includes'](_0x1dc35e)||this['_removeAnnotationFromBalloon'](_0x1dc35e);if(this['editor']['ui'][_0x1b5b('0x29')][_0x1b5b('0x16')])for(const _0x23ca61 of _0x1c524b)this[_0x1b5b('0x4b')](_0x23ca61);this[_0x1b5b('0xa')]=_0x1c524b;}[_0x1b5b('0x4b')](_0x5d3b6f,_0x27b837=!0x1){this[_0x1b5b('0x3f')][_0x1b5b('0x45')](_0x5d3b6f)||(this['_addedAnnotations'][_0x1b5b('0x45')](_0x5d3b6f)||this[_0x1b5b('0x6')][_0x1b5b('0x49')](_0x5d3b6f[_0x1b5b('0x2f')])||(this[_0x1b5b('0xf')][_0x1b5b('0x13')](_0x5d3b6f),this[_0x1b5b('0x6')]['add']({'stackId':_0x5d3b6f[_0x1b5b('0x2f')]['id'],'view':_0x5d3b6f[_0x1b5b('0x2f')],'position':{'target':()=>this[_0x1b5b('0x48')](_0x5d3b6f)}})),_0x27b837&&this[_0x1b5b('0x6')][_0x1b5b('0x8')](_0x5d3b6f['view']['id']));}[_0x1b5b('0x48')](_0x26e0f6){const _0x4ff681=_0x26e0f6[_0x1b5b('0x28')],_0xea675d=this[_0x1b5b('0x3')]['editing'][_0x1b5b('0x2f')],_0x4dc72f=_0xea675d['document'][_0x1b5b('0x15')][_0x1b5b('0x4c')](),_0x171872=_0xea675d['domConverter']['viewRangeToDom'](_0x4dc72f);if(_0x171872[_0x1b5b('0x2e')](!0x0),_0x4ff681){if(_0x4ff681 instanceof _0x33913d)return _0x4ff681;let _0xa728c=[];for(const _0x1ada1e of _0x4ff681)_0xa728c[_0x1b5b('0x37')](...(_0x19c734=_0x1ada1e[_0x1b5b('0x43')](),Array[_0x1b5b('0x3c')](_0x19c734)['map'](DOMRect['fromRect'])));_0xa728c=function(_0x218499){const _0x34b64f=[];let _0x47a704=_0x218499[0x0];for(let _0x58c5f8=0x1;_0x58c5f8<_0x218499[_0x1b5b('0x39')];_0x58c5f8++)F(_0x47a704,_0x218499[_0x58c5f8])?_0x47a704['width']+=_0x218499[_0x58c5f8][_0x1b5b('0x18')]:(_0x34b64f['push'](_0x47a704),_0x47a704=_0x218499[_0x58c5f8]);return _0x34b64f['push'](_0x47a704),_0x34b64f;}(_0xa728c);const _0x2879be=_0x171872['getBoundingClientRect']();return _0xa728c[_0x1b5b('0x4')](_0x233177=>_0x233177['top']<=_0x2879be[_0x1b5b('0xe')]&&_0x233177[_0x1b5b('0x20')]>=_0x2879be[_0x1b5b('0x20')]&&_0x233177[_0x1b5b('0x2a')]<=_0x2879be[_0x1b5b('0x2a')]&&_0x233177[_0x1b5b('0x24')]>=_0x2879be[_0x1b5b('0x24')])||_0xa728c[0x0];}var _0x19c734;return _0x26e0f6[_0x1b5b('0x31')]||_0x171872;}['_removeAnnotationFromBalloon'](_0x96f5e9){this['_addedAnnotations'][_0x1b5b('0x45')](_0x96f5e9)&&this[_0x1b5b('0x6')][_0x1b5b('0x49')](_0x96f5e9[_0x1b5b('0x2f')])&&(this[_0x1b5b('0xf')][_0x1b5b('0x33')](_0x96f5e9),this['_balloon'][_0x1b5b('0x36')](_0x96f5e9[_0x1b5b('0x2f')]));}[_0x1b5b('0x38')](_0x4bc7bc){this[_0x1b5b('0x3f')][_0x1b5b('0x13')](_0x4bc7bc),this[_0x1b5b('0x11')](_0x4bc7bc);}}function F(_0xdc5c05,_0x5baa75){return _0xdc5c05[_0x1b5b('0xe')]===_0x5baa75['top']&&_0xdc5c05[_0x1b5b('0x20')]===_0x5baa75[_0x1b5b('0x20')]&&_0xdc5c05['right']===_0x5baa75[_0x1b5b('0x2a')];}
23
+ const _0xe361=['listenTo','init','collapse','keystrokes','updatePosition','pluginName','focusTracker','inlineannotations-attach-already-attached','inlineannotations-not-allowed-with-context','register','_removeAnnotationFromBalloon','document','width','bottom','getClientRects','push','add','mousedown','top','afterInit','from','getBoundingClientRect','setActiveAnnotation','showStack','editing','has','change:height','plugins','context','editableElement','getOrderedSelectedAnnotations','visibleView','find','_addAnnotationToBalloon','switchTo','InlineAnnotations','blur','inline','inlineannotations-detach-not-attached','domConverter','detach','delete','isFocused','isAttached','every','right','change:isFocused','stopListening','editor','addObserver','_selectedAnnotations','_setSelectedAnnotations','Esc','_closeAnnotation','annotations','focus','map','_addedAnnotations','get','set','destroy','_manuallyClosed','left','includes','hasView','clear','isActive','activeAnnotation','length','remove','attach','_forceRefresh','selection','getFirstRange','change:visibleView','_balloon','view','_getBalloonTargetForAnnotation','targetRect','target','getByView','requires'];(function(_0x155382,_0xe361aa){const _0x163861=function(_0x4db589){while(--_0x4db589){_0x155382['push'](_0x155382['shift']());}};_0x163861(++_0xe361aa);}(_0xe361,0xbd));const _0x1638=function(_0x155382,_0xe361aa){_0x155382=_0x155382-0x0;let _0x163861=_0xe361[_0x155382];return _0x163861;};import{Plugin as _0x5cfb8e}from'ckeditor5/src/core';import _0x1daefd from'./annotationsuis';import _0x20efa7 from'./editorannotations';import{ContextualBalloon as _0x11fd85}from'ckeditor5/src/ui';import{MouseObserver as _0x417ab2}from'ckeditor5/src/engine';import{CKEditorError as _0x33c876,Rect as _0x539b7f}from'ckeditor5/src/utils';import'./../../theme/annotation-inline.css';export default class c extends _0x5cfb8e{static get[_0x1638('0x38')](){return[_0x20efa7,_0x11fd85,_0x1daefd];}static get[_0x1638('0x3e')](){return _0x1638('0xa');}constructor(_0x884e38){super(_0x884e38),_0x884e38[_0x1638('0x51')][_0x1638('0x33')][_0x1638('0x18')](_0x417ab2),this[_0x1638('0x12')]=!0x1,this[_0x1638('0x22')](_0x1638('0x2a'),null),this[_0x1638('0x1d')]=null,this[_0x1638('0x24')]=new Set(),this[_0x1638('0x32')]=_0x884e38[_0x1638('0x2')][_0x1638('0x21')](_0x11fd85),this[_0x1638('0x20')]=new Set(),this[_0x1638('0x19')]=[],this['_forceRefresh']=!0x1;}[_0x1638('0x3a')](){const _0x248b18=this[_0x1638('0x17')][_0x1638('0x2')][_0x1638('0x21')](_0x1daefd);_0x248b18[_0x1638('0x3')]===this[_0x1638('0x17')]&&(_0x248b18[_0x1638('0x42')](_0x1638('0xc'),this),this['editor'][_0x1638('0x3c')]['set'](_0x1638('0x1b'),(_0x2e2916,_0x308d8d)=>{const _0x43d61c=this[_0x1638('0x32')];if(this[_0x1638('0x12')]&&_0x43d61c['visibleView']){const _0x12df36=this[_0x1638('0x1d')][_0x1638('0x37')](_0x43d61c[_0x1638('0x6')]);_0x12df36&&this[_0x1638('0x1c')](_0x12df36),_0x308d8d();}}));}[_0x1638('0x4c')](){const _0x5d1e62=this[_0x1638('0x17')]['plugins']['get'](_0x1daefd);_0x5d1e62[_0x1638('0x3')]===this[_0x1638('0x17')]&&(_0x5d1e62['hasActive']()||_0x5d1e62[_0x1638('0x9')]('inline'));}['setActiveAnnotation'](_0x31d42a){_0x31d42a!==this[_0x1638('0x2a')]&&(this[_0x1638('0x2a')]&&(this[_0x1638('0x2a')][_0x1638('0x29')]=!0x1),_0x31d42a&&this[_0x1638('0x17')]['ui'][_0x1638('0x3f')]['isFocused']&&(this[_0x1638('0x1d')][_0x1638('0x0')](_0x31d42a)&&this['_addAnnotationToBalloon'](_0x31d42a,!0x0),_0x31d42a['isActive']=!0x0),_0x31d42a||this[_0x1638('0x1a')]([]),this[_0x1638('0x2a')]=_0x31d42a);}[_0x1638('0x2d')](_0x2aa459){this[_0x1638('0x1d')]=_0x2aa459;const _0x2b509b=this[_0x1638('0x17')][_0x1638('0x2')]['get'](_0x1daefd),_0x4c2fa8=this['_balloon'];if(this[_0x1638('0x12')])throw new _0x33c876(_0x1638('0x40'),this);if(_0x2b509b[_0x1638('0x3')]!==this[_0x1638('0x17')])throw new _0x33c876(_0x1638('0x41'),this);const _0x3cbb33=this[_0x1638('0x17')][_0x1638('0x2')][_0x1638('0x21')](_0x20efa7);this[_0x1638('0x39')](_0x3cbb33,'refresh',()=>{const _0x51820e=_0x3cbb33[_0x1638('0x5')]({'annotations':this['annotations'],'activeAnnotation':this[_0x1638('0x2a')]});var _0x802d40,_0x57eae5;!this['_forceRefresh']&&(_0x802d40=_0x51820e,_0x57eae5=this[_0x1638('0x19')],_0x802d40[_0x1638('0x2b')]===_0x57eae5[_0x1638('0x2b')]&&_0x802d40[_0x1638('0x13')](_0x27cb51=>_0x57eae5[_0x1638('0x26')](_0x27cb51)))||(this[_0x1638('0x2e')]=!0x1,this['_setSelectedAnnotations'](_0x51820e),this[_0x1638('0x4f')](_0x51820e[0x0]||null));}),this[_0x1638('0x39')](_0x3cbb33,_0x1638('0xb'),(_0x45573f,{isAnnotationTracked:_0x11e311})=>{this[_0x1638('0x2a')]&&_0x11e311(this[_0x1638('0x2a')])&&(this[_0x1638('0x1a')]([]),this[_0x1638('0x4f')](null));}),this[_0x1638('0x39')](this[_0x1638('0x17')]['ui'][_0x1638('0x3f')],_0x1638('0x15'),(_0x5038a8,_0x47e0b6,_0x4f7525)=>{_0x4f7525||this[_0x1638('0x4f')](null);}),this[_0x1638('0x39')](_0x2aa459,_0x1638('0x2c'),(_0x29c228,_0x33a686)=>{this['_removeAnnotationFromBalloon'](_0x33a686),_0x33a686===this[_0x1638('0x2a')]&&this['setActiveAnnotation'](null);}),this[_0x1638('0x39')](_0x4c2fa8,_0x1638('0x31'),(_0x2d20b7,_0x334fa9,_0x413696,_0x49b0fe)=>{_0x49b0fe&&this[_0x1638('0x16')](_0x49b0fe);const _0x200d64=_0x2aa459['getByView'](_0x413696);_0x413696&&_0x200d64&&(this['listenTo'](_0x413696,_0x1638('0x1'),()=>{_0x4c2fa8[_0x1638('0x3d')]();}),this['listenTo'](_0x413696,_0x1638('0x1b'),()=>{this[_0x1638('0x1c')](_0x200d64),this[_0x1638('0x17')][_0x1638('0x51')]['view'][_0x1638('0x1e')]();}),this['activeAnnotation']!==_0x200d64&&this[_0x1638('0x4f')](_0x200d64));}),this['listenTo'](this[_0x1638('0x17')]['ui'],'update',()=>{_0x4c2fa8[_0x1638('0x6')]&&(_0x2aa459['getByView'](_0x4c2fa8['visibleView'])&&_0x4c2fa8[_0x1638('0x3d')]());}),this[_0x1638('0x39')](this[_0x1638('0x17')][_0x1638('0x51')][_0x1638('0x33')][_0x1638('0x44')],_0x1638('0x4a'),()=>{this[_0x1638('0x2e')]=!0x0,this['_manuallyClosed'][_0x1638('0x28')]();}),this[_0x1638('0x17')]['editing'][_0x1638('0x33')][_0x1638('0x44')][_0x1638('0x2f')][_0x1638('0x4')]&&this[_0x1638('0x17')][_0x1638('0x51')][_0x1638('0x33')][_0x1638('0x1e')](),this['isAttached']=!0x0;}['detach'](){if(!this[_0x1638('0x12')])throw new _0x33c876(_0x1638('0xd'),this);this[_0x1638('0x4f')](null);for(const _0x115299 of this[_0x1638('0x20')])this['_removeAnnotationFromBalloon'](_0x115299);this['stopListening'](),this[_0x1638('0x12')]=!0x1,this[_0x1638('0x1d')]=null;}[_0x1638('0x23')](){this[_0x1638('0x12')]&&this[_0x1638('0xf')]();}[_0x1638('0x1a')](_0x318c50){for(const _0xd4080e of this[_0x1638('0x19')])_0x318c50[_0x1638('0x26')](_0xd4080e)||this[_0x1638('0x24')][_0x1638('0x10')](_0xd4080e);for(const _0x3c827e of this[_0x1638('0x1d')])_0x318c50['includes'](_0x3c827e)||this[_0x1638('0x43')](_0x3c827e);if(this[_0x1638('0x17')]['ui'][_0x1638('0x3f')][_0x1638('0x11')])for(const _0x5b01ea of _0x318c50)this[_0x1638('0x8')](_0x5b01ea);this[_0x1638('0x19')]=_0x318c50;}['_addAnnotationToBalloon'](_0x4bb5de,_0x22d1dc=!0x1){this[_0x1638('0x24')][_0x1638('0x0')](_0x4bb5de)||(this['_addedAnnotations'][_0x1638('0x0')](_0x4bb5de)||this[_0x1638('0x32')][_0x1638('0x27')](_0x4bb5de[_0x1638('0x33')])||(this[_0x1638('0x20')][_0x1638('0x49')](_0x4bb5de),this[_0x1638('0x32')][_0x1638('0x49')]({'stackId':_0x4bb5de['view']['id'],'view':_0x4bb5de[_0x1638('0x33')],'position':{'target':()=>this[_0x1638('0x34')](_0x4bb5de)}})),_0x22d1dc&&this[_0x1638('0x32')][_0x1638('0x50')](_0x4bb5de[_0x1638('0x33')]['id']));}['_getBalloonTargetForAnnotation'](_0x5da3fb){const _0x4e7798=_0x5da3fb[_0x1638('0x36')],_0x3a18e1=this['editor'][_0x1638('0x51')][_0x1638('0x33')],_0x2b7647=_0x3a18e1[_0x1638('0x44')][_0x1638('0x2f')][_0x1638('0x30')](),_0x31013a=_0x3a18e1[_0x1638('0xe')]['viewRangeToDom'](_0x2b7647);if(_0x31013a[_0x1638('0x3b')](!0x0),_0x4e7798){if(_0x4e7798 instanceof _0x539b7f)return _0x4e7798;let _0xcd409b=[];for(const _0x299890 of _0x4e7798)_0xcd409b[_0x1638('0x48')](...(_0x2f21ab=_0x299890[_0x1638('0x47')](),Array[_0x1638('0x4d')](_0x2f21ab)[_0x1638('0x1f')](DOMRect['fromRect'])));_0xcd409b=function(_0xa81f94){const _0x17abac=[];let _0x25488f=_0xa81f94[0x0];for(let _0x568692=0x1;_0x568692<_0xa81f94[_0x1638('0x2b')];_0x568692++)F(_0x25488f,_0xa81f94[_0x568692])?_0x25488f['width']+=_0xa81f94[_0x568692][_0x1638('0x45')]:(_0x17abac['push'](_0x25488f),_0x25488f=_0xa81f94[_0x568692]);return _0x17abac[_0x1638('0x48')](_0x25488f),_0x17abac;}(_0xcd409b);const _0x109ae0=_0x31013a[_0x1638('0x4e')]();return _0xcd409b[_0x1638('0x7')](_0x40e4dd=>_0x40e4dd[_0x1638('0x4b')]<=_0x109ae0['top']&&_0x40e4dd[_0x1638('0x46')]>=_0x109ae0[_0x1638('0x46')]&&_0x40e4dd[_0x1638('0x25')]<=_0x109ae0[_0x1638('0x25')]&&_0x40e4dd[_0x1638('0x14')]>=_0x109ae0[_0x1638('0x14')])||_0xcd409b[0x0];}var _0x2f21ab;return _0x5da3fb[_0x1638('0x35')]||_0x31013a;}[_0x1638('0x43')](_0x41f341){this[_0x1638('0x20')][_0x1638('0x0')](_0x41f341)&&this['_balloon'][_0x1638('0x27')](_0x41f341[_0x1638('0x33')])&&(this['_addedAnnotations'][_0x1638('0x10')](_0x41f341),this[_0x1638('0x32')][_0x1638('0x2c')](_0x41f341[_0x1638('0x33')]));}[_0x1638('0x1c')](_0x180206){this[_0x1638('0x24')]['add'](_0x180206),this['_removeAnnotationFromBalloon'](_0x180206);}}function F(_0xac85f5,_0x43cd79){return _0xac85f5[_0x1638('0x4b')]===_0x43cd79['top']&&_0xac85f5['bottom']===_0x43cd79[_0x1638('0x46')]&&_0xac85f5[_0x1638('0x14')]===_0x43cd79[_0x1638('0x25')];}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x12d0=['mousedown','getSidebarItemView','view','delete','_attachListeners','narrowSidebar','content','_integrateWithEditorAnnotations','ck-sidebar--narrow','add','NarrowSidebar','high','_refreshPositioning','resize','includes','_domEmitter','stopListening','southArrowNorthEast','refresh','_detachFromContainer','_setSelectedAnnotations','isVisible','_annotationToNarrowView','locale','execute','northArrowSouthWest','attach','detachFromDom','narrowsidebar-attach-already-attached','cancel','northArrowSouth','focus','length','_detachListeners','target','detach','register','stopPropagation','change:container','bodyCollection','blur','refreshPositioning','has','get','activeAnnotation','balloonPanelView','northArrowSouthEast','plugins','_refreshPositioningDebounced','pin','attachToDom','EditorAnnotations','clear','remove','keyCode','set:container','off','_updateBalloonPosition','requires','_attachToContainer','hasDomSelection','southArrowNorth','contains','from','element','unpin','editors','set','_selectedAnnotations','annotationType','create','listenTo','annotations','find','preventClosingBalloon','_showBalloon','_editorAnnotations','isAttached','_manuallyClosedAnnotationViews','focusableElements','stop','ready','getByView','_annotations','setActiveAnnotation','type','preventDefault','isDirty','narrowsidebar-detach-not-attached','_hideBalloon','_destroyEditorAnnotationsIntegration','southArrowNorthWest','first','low','uiUpdate','change:height','esc','addAnnotation','destroy','context'];(function(_0x164ab7,_0x12d0b8){const _0x1483fd=function(_0x3b323f){while(--_0x3b323f){_0x164ab7['push'](_0x164ab7['shift']());}};_0x1483fd(++_0x12d0b8);}(_0x12d0,0xc1));const _0x1483=function(_0x164ab7,_0x12d0b8){_0x164ab7=_0x164ab7-0x0;let _0x1483fd=_0x12d0[_0x164ab7];return _0x1483fd;};import{ContextPlugin as _0x5ca395,Context as _0x174b07}from'ckeditor5/src/core';import _0x517bc2 from'./annotationsuis';import _0x4ac170 from'./sidebar';import _0x5b093f from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0xc5f4b5,BodyCollection as _0x48e75a}from'ckeditor5/src/ui';import{CKEditorError as _0x2492b9,DomEmitterMixin as _0x455c8e,keyCodes as _0x22b592,Collection as _0x23e873}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x452575}from'lodash-es';import _0x284c7a from'./editorannotations';export default class s extends _0x5ca395{static get[_0x1483('0x41')](){return[_0x4ac170,_0x517bc2];}static get['pluginName'](){return _0x1483('0x11');}constructor(_0x401aac){super(_0x401aac),this[_0x1483('0x54')]=!0x1,this[_0x1483('0x55')]=new Set(),this['_domEmitter']=Object[_0x1483('0x4d')](_0x455c8e),this[_0x1483('0x1d')]=new Map(),this[_0x1483('0x4a')](_0x1483('0x33'),null),this[_0x1483('0x4f')]=null,this[_0x1483('0x4b')]=[],this[_0x1483('0x53')]=new _0x23e873(),this[_0x1483('0x37')]=_0x452575(()=>{this[_0x1483('0x13')]();},0xfa,{'leading':!0x1});}['init'](){this[_0x1483('0x6')]['plugins']['get'](_0x517bc2)[_0x1483('0x2b')](_0x1483('0xc'),this),this[_0x1483('0x2e')]=new _0x48e75a(this[_0x1483('0x6')][_0x1483('0x1e')]),this[_0x1483('0x34')]=new _0xc5f4b5(this[_0x1483('0x6')]['locale']),this[_0x1483('0x2e')][_0x1483('0x39')](),this['bodyCollection'][_0x1483('0x10')](this[_0x1483('0x34')]);}[_0x1483('0x21')](_0x2a2f77){this[_0x1483('0x4f')]=_0x2a2f77;const _0xf9867d=this[_0x1483('0x6')][_0x1483('0x36')][_0x1483('0x32')](_0x4ac170),_0x57da6b=this[_0x1483('0x34')];if(_0xf9867d[_0x1483('0x5a')]=_0x2a2f77,this['isAttached'])throw new _0x2492b9(_0x1483('0x23'),this);this[_0x1483('0x54')]=!0x0,this[_0x1483('0x4e')](_0xf9867d,_0x1483('0x3e'),()=>{this[_0x1483('0x2a')](),this[_0x1483('0x4e')](_0xf9867d,_0x1483('0x2d'),_0x5384ea=>{_0x5384ea[_0x1483('0x3f')](),this[_0x1483('0x21')](_0x2a2f77);});}),_0xf9867d[_0x1483('0x42')]({'viewClass':_0x1483('0xf'),'spaceBetweenItems':0x5});const _0x13c51a=_0x44994b=>{const _0xbf277b=new _0x5b093f(this[_0x1483('0x6')][_0x1483('0x1e')]);_0xf9867d[_0x1483('0x4')](_0x44994b,_0xbf277b),this['_annotationToNarrowView']['set'](_0x44994b,_0xbf277b),_0xbf277b['bind'](_0x1483('0x5e'),_0x1483('0x4c'),'number')['to'](_0x44994b[_0x1483('0x9')],_0x1483('0x5e'),_0x1483('0x5c'),_0x1483('0x27')),_0xbf277b['on'](_0x1483('0x1f'),()=>{this['_manuallyClosedAnnotationViews'][_0x1483('0x3b')](),_0x57da6b['content'][_0x1483('0x63')]!==_0x44994b[_0x1483('0x9')]?(this['_showBalloon'](_0x44994b),_0x44994b[_0x1483('0x9')]['element']['focus'](),this[_0x1483('0x5b')](_0x44994b)):this[_0x1483('0x5b')](null);});};for(const _0x2625d0 of _0x2a2f77)_0x13c51a(_0x2625d0);this[_0x1483('0x4e')](_0x2a2f77,_0x1483('0x10'),(_0x2a6b47,_0xf21a7c)=>{_0x13c51a(_0xf21a7c);}),this[_0x1483('0x4e')](_0x2a2f77,_0x1483('0x3c'),(_0x347c02,_0x120f31,_0x2772e6)=>{this[_0x1483('0x1d')][_0x1483('0x32')](_0x120f31)[_0x1483('0x5')](),this[_0x1483('0x1d')][_0x1483('0xa')](_0x120f31),_0xf9867d['rearrange']({'removedAnnotation':_0x120f31,'previousAnnotation':_0x2a2f77[_0x1483('0x32')](_0x2772e6-0x1),'nextAnnotation':_0x2a2f77[_0x1483('0x32')](_0x2772e6+0x1)}),_0x120f31===this[_0x1483('0x33')]&&this[_0x1483('0x5b')](null);},{'priority':_0x1483('0x0')}),this[_0x1483('0x4e')](_0x2a2f77,_0x1483('0x26'),(_0x34f700,_0x37ac26)=>{this[_0x1483('0x5b')](_0x37ac26);}),this[_0x1483('0x4e')](_0x2a2f77,_0x1483('0x2f'),()=>{this['setActiveAnnotation'](null);}),this[_0x1483('0x16')][_0x1483('0x4e')](document,'keydown',(_0x3c3bdd,_0x3e3e11)=>{_0x3e3e11[_0x1483('0x3d')]===_0x22b592[_0x1483('0x3')]&&_0x57da6b['isVisible']&&(this[_0x1483('0x55')][_0x1483('0x10')](_0x57da6b[_0x1483('0xd')][_0x1483('0x63')]),this[_0x1483('0x60')](),_0x3e3e11[_0x1483('0x2c')](),_0x3e3e11[_0x1483('0x5d')]());}),this[_0x1483('0x16')]['listenTo'](document,_0x1483('0x7'),(_0x5af55d,_0x200b25)=>{const _0x46aa2c=_0x200b25[_0x1483('0x29')];_0x57da6b[_0x1483('0x1c')]&&_0x57da6b[_0x1483('0x47')]['contains'](_0x46aa2c)||_0xf9867d['view'][_0x1483('0x47')][_0x1483('0x45')](_0x46aa2c)||_0x5af55d['preventClosingBalloon']||this[_0x1483('0x33')]&&this[_0x1483('0x33')][_0x1483('0x56')][_0x1483('0x50')](_0x1085f5=>_0x1085f5[_0x1483('0x45')](_0x46aa2c))||(this[_0x1483('0x55')]['clear'](),this[_0x1483('0x60')](),this[_0x1483('0x5b')](null));});const _0x2c0642=this['context']instanceof _0x174b07?this[_0x1483('0x6')]['editors']:new _0x23e873([this[_0x1483('0x6')]]);for(const _0x5e25b5 of _0x2c0642)this[_0x1483('0xe')](_0x5e25b5);this[_0x1483('0x4e')](_0x2c0642,_0x1483('0x10'),(_0x4248f4,_0x5c9164)=>{this['listenTo'](_0x5c9164,_0x1483('0x58'),()=>{this[_0x1483('0xe')](_0x5c9164);});}),this[_0x1483('0x4e')](_0x2c0642,_0x1483('0x3c'),(_0x1f7229,_0x4785b2)=>{_0x4785b2[_0x1483('0x36')][_0x1483('0x31')](_0x1483('0x3a'))&&this[_0x1483('0x61')](_0x4785b2[_0x1483('0x36')][_0x1483('0x32')](_0x1483('0x3a')));}),window['addEventListener'](_0x1483('0x14'),this[_0x1483('0x37')]),this[_0x1483('0x13')]();}[_0x1483('0x5b')](_0x2f93de){if(_0x2f93de===this[_0x1483('0x33')])return;const _0x4631a5=this['context'][_0x1483('0x36')][_0x1483('0x32')](_0x4ac170);if(_0x4631a5['refresh']({'blurredAnnotation':this[_0x1483('0x33')],'activatedAnnotation':_0x2f93de,'disableAnimationOnActivatedAnnotation':!0x0}),_0x2f93de)_0x4631a5[_0x1483('0x8')](_0x2f93de)?this[_0x1483('0x52')](_0x2f93de):this[_0x1483('0x60')]();else this['_hideBalloon']();this[_0x1483('0x33')]=_0x2f93de;}[_0x1483('0x2a')](){if(!this[_0x1483('0x54')])throw new _0x2492b9(_0x1483('0x5f'),this);this[_0x1483('0x5b')](null);const _0x5365f0=this[_0x1483('0x6')][_0x1483('0x36')]['get'](_0x4ac170);this['_hideBalloon'](),Array[_0x1483('0x46')](this[_0x1483('0x1d')]['values'](),_0x2fe6b1=>_0x2fe6b1['destroy']()),this['_annotationToNarrowView'][_0x1483('0x3b')](),_0x5365f0[_0x1483('0x1a')](this['annotations']),this[_0x1483('0x17')](),this[_0x1483('0x16')][_0x1483('0x17')](),this['context']instanceof _0x174b07&&this[_0x1483('0x17')](this['context'][_0x1483('0x49')]);for(const _0xcc69d1 of Array[_0x1483('0x46')](this[_0x1483('0x53')]))this[_0x1483('0x61')](_0xcc69d1);window['removeEventListener'](_0x1483('0x14'),this[_0x1483('0x37')]),this[_0x1483('0x37')][_0x1483('0x24')](),this['_selectedAnnotations']=[],this[_0x1483('0x54')]=!0x1,this[_0x1483('0x4f')]=null;}['destroy'](){this[_0x1483('0x54')]&&this[_0x1483('0x2a')](),this[_0x1483('0x2e')][_0x1483('0x22')]();}['_integrateWithEditorAnnotations'](_0x512f1a){const _0x473587=_0x512f1a[_0x1483('0x36')]['get'](_0x284c7a),_0x13fd15=this[_0x1483('0x6')][_0x1483('0x36')][_0x1483('0x32')](_0x4ac170),_0x4c9ed6=this[_0x1483('0x4f')],_0x3132f6=this['balloonPanelView'],_0x2a677b=()=>{const _0x55f43a=_0x473587['getOrderedSelectedAnnotations']({'annotations':this[_0x1483('0x4f')],'activeAnnotation':this['activeAnnotation']});this[_0x1483('0x1b')](_0x55f43a),this[_0x1483('0x5b')](_0x55f43a[0x0]||null);};this['listenTo'](_0x473587,_0x1483('0x19'),_0x2a677b),this[_0x1483('0x4e')](_0x473587,_0x1483('0x2f'),(_0x437a71,{isAnnotationTracked:_0x4d59dc})=>{this['activeAnnotation']&&_0x4d59dc(this[_0x1483('0x33')])&&(this['_setSelectedAnnotations']([]),this[_0x1483('0x5b')](null));}),this[_0x1483('0x4e')](_0x473587,_0x1483('0x1'),()=>{this[_0x1483('0x37')]();}),this[_0x1483('0x4e')](_0x4c9ed6,'blur',_0x429638=>{_0x473587[_0x1483('0x43')]()&&_0x429638[_0x1483('0x57')]();},{'priority':_0x1483('0x12')}),this[_0x1483('0x4e')](this['_domEmitter'],'mousedown',(_0x30f73f,_0x4b8c02)=>{const _0x70f9b7=_0x4b8c02[_0x1483('0x29')];_0x3132f6[_0x1483('0x1c')]&&_0x3132f6[_0x1483('0x47')][_0x1483('0x45')](_0x70f9b7)||_0x13fd15['view'][_0x1483('0x47')][_0x1483('0x45')](_0x70f9b7)||this[_0x1483('0x33')]&&_0x473587[_0x1483('0x43')]()&&(_0x2a677b(),_0x30f73f[_0x1483('0x51')]=!0x0);},{'priority':_0x1483('0x12')}),this['_editorAnnotations'][_0x1483('0x10')](_0x473587);}[_0x1483('0x61')](_0x1d5e96){_0x1d5e96&&(this[_0x1483('0x17')](_0x1d5e96),this[_0x1483('0x53')][_0x1483('0x3c')](_0x1d5e96));}[_0x1483('0x1b')](_0x21dc93){for(const _0x76bb88 of this[_0x1483('0x4b')])_0x21dc93[_0x1483('0x15')](_0x76bb88)||this['_manuallyClosedAnnotationViews'][_0x1483('0xa')](_0x76bb88[_0x1483('0x9')]);this[_0x1483('0x4b')]=_0x21dc93;}[_0x1483('0x13')](){const _0x3ff302=this[_0x1483('0x34')];this[_0x1483('0x4f')][_0x1483('0x30')](),_0x3ff302[_0x1483('0x1c')]&&this[_0x1483('0x40')]();}['_showBalloon'](_0x53d094){if(this[_0x1483('0x55')]['has'](_0x53d094[_0x1483('0x9')]))return;const _0x509d90=this['balloonPanelView'][_0x1483('0xd')]['first'];_0x509d90!==_0x53d094[_0x1483('0x9')]?(_0x509d90&&this[_0x1483('0x28')](_0x509d90),this[_0x1483('0xb')](_0x53d094[_0x1483('0x9')]),this[_0x1483('0x34')][_0x1483('0xd')][_0x1483('0x3b')](),this[_0x1483('0x34')]['content']['add'](_0x53d094['view']),this[_0x1483('0x40')]()):this[_0x1483('0x40')]();}['_updateBalloonPosition'](){const _0x52838c=this[_0x1483('0x34')][_0x1483('0xd')][_0x1483('0x63')],_0x2f6032=_0x52838c&&this[_0x1483('0x4f')][_0x1483('0x59')](_0x52838c);if(!_0x2f6032||!this[_0x1483('0x1d')]['has'](_0x2f6032))return;const _0x596fbe=this[_0x1483('0x1d')][_0x1483('0x32')](_0x2f6032)[_0x1483('0x47')],_0x41f4bd=function(){const _0xbca53a=_0xc5f4b5['defaultPositions'];return[_0xbca53a[_0x1483('0x18')],_0xbca53a[_0x1483('0x35')],_0xbca53a[_0x1483('0x44')],_0xbca53a[_0x1483('0x25')],_0xbca53a[_0x1483('0x62')],_0xbca53a[_0x1483('0x20')]];}();this['balloonPanelView'][_0x1483('0x38')]({'target':_0x596fbe,'positions':_0x41f4bd});}[_0x1483('0x60')](){const _0x2cca7a=this['balloonPanelView'],_0x26a1f4=_0x2cca7a[_0x1483('0xd')]['first'];_0x26a1f4&&(this[_0x1483('0x28')](_0x26a1f4),_0x2cca7a[_0x1483('0x48')](),_0x2cca7a[_0x1483('0xd')]['clear']());}[_0x1483('0xb')](_0x13769b){this['listenTo'](_0x13769b,_0x1483('0x2'),()=>this[_0x1483('0x40')]()),this[_0x1483('0x4e')](_0x13769b,'Esc',(_0x2912ce,_0x2569f5)=>{this['_manuallyClosedAnnotationViews']['add'](_0x13769b),this[_0x1483('0x60')](),_0x2569f5();});}[_0x1483('0x28')](_0x371ec2){this[_0x1483('0x17')](_0x371ec2);}}
23
+ const _0x5caf=['addAnnotation','ck-sidebar--narrow','_destroyEditorAnnotationsIntegration','detach','blur','detachFromDom','_refreshPositioningDebounced','annotationType','stop','mousedown','_editorAnnotations','_manuallyClosedAnnotationViews','EditorAnnotations','keydown','remove','preventClosingBalloon','_detachListeners','high','focusableElements','getSidebarItemView','_showBalloon','bind','first','keyCode','_hideBalloon','northArrowSouth','get','removeEventListener','clear','pluginName','type','set','low','target','bodyCollection','activeAnnotation','rearrange','includes','defaultPositions','isDirty','esc','change:height','refreshPositioning','_refreshPositioning','narrowSidebar','hasDomSelection','southArrowNorthWest','context','_attachToContainer','_setSelectedAnnotations','isAttached','ready','set:container','from','cancel','pin','narrowsidebar-attach-already-attached','resize','change:container','refresh','has','register','attach','balloonPanelView','contains','editors','addEventListener','narrowsidebar-detach-not-attached','focus','number','_annotations','delete','_selectedAnnotations','add','init','preventDefault','destroy','northArrowSouthEast','view','plugins','annotations','NarrowSidebar','setActiveAnnotation','_updateBalloonPosition','_domEmitter','southArrowNorth','isVisible','stopListening','element','getOrderedSelectedAnnotations','_integrateWithEditorAnnotations','content','locale','listenTo','Esc','_annotationToNarrowView','requires','stopPropagation','uiUpdate','_attachListeners'];(function(_0x45b72c,_0x5caf22){const _0x2b21b9=function(_0x318d9f){while(--_0x318d9f){_0x45b72c['push'](_0x45b72c['shift']());}};_0x2b21b9(++_0x5caf22);}(_0x5caf,0x189));const _0x2b21=function(_0x45b72c,_0x5caf22){_0x45b72c=_0x45b72c-0x0;let _0x2b21b9=_0x5caf[_0x45b72c];return _0x2b21b9;};import{ContextPlugin as _0x55f7a3,Context as _0x3b6234}from'ckeditor5/src/core';import _0x295066 from'./annotationsuis';import _0x4cfa59 from'./sidebar';import _0x31dd65 from'./view/annotationcounterbuttonview';import{BalloonPanelView as _0x1a95b2,BodyCollection as _0x3f7f47}from'ckeditor5/src/ui';import{CKEditorError as _0x1c1cf4,DomEmitterMixin as _0x390ae0,keyCodes as _0x2ff4ef,Collection as _0x235749}from'ckeditor5/src/utils';import'../../theme/sidebar-narrow.css';import{debounce as _0x40942f}from'lodash-es';import _0x57ec47 from'./editorannotations';export default class s extends _0x55f7a3{static get[_0x2b21('0x3')](){return[_0x4cfa59,_0x295066];}static get[_0x2b21('0x24')](){return _0x2b21('0x58');}constructor(_0x5f2437){super(_0x5f2437),this[_0x2b21('0x39')]=!0x1,this['_manuallyClosedAnnotationViews']=new Set(),this['_domEmitter']=Object['create'](_0x390ae0),this['_annotationToNarrowView']=new Map(),this[_0x2b21('0x26')](_0x2b21('0x2a'),null),this[_0x2b21('0x57')]=null,this['_selectedAnnotations']=[],this[_0x2b21('0x11')]=new _0x235749(),this[_0x2b21('0xd')]=_0x40942f(()=>{this[_0x2b21('0x32')]();},0xfa,{'leading':!0x1});}[_0x2b21('0x51')](){this[_0x2b21('0x36')][_0x2b21('0x56')][_0x2b21('0x21')](_0x295066)[_0x2b21('0x44')](_0x2b21('0x33'),this),this[_0x2b21('0x29')]=new _0x3f7f47(this[_0x2b21('0x36')][_0x2b21('0x63')]),this[_0x2b21('0x46')]=new _0x1a95b2(this['context'][_0x2b21('0x63')]),this[_0x2b21('0x29')]['attachToDom'](),this[_0x2b21('0x29')][_0x2b21('0x50')](this['balloonPanelView']);}[_0x2b21('0x45')](_0x9740c3){this[_0x2b21('0x57')]=_0x9740c3;const _0x41878a=this[_0x2b21('0x36')][_0x2b21('0x56')][_0x2b21('0x21')](_0x4cfa59),_0x5e3d9d=this['balloonPanelView'];if(_0x41878a[_0x2b21('0x4d')]=_0x9740c3,this['isAttached'])throw new _0x1c1cf4(_0x2b21('0x3f'),this);this[_0x2b21('0x39')]=!0x0,this[_0x2b21('0x0')](_0x41878a,_0x2b21('0x3b'),()=>{this[_0x2b21('0xa')](),this[_0x2b21('0x0')](_0x41878a,_0x2b21('0x41'),_0x3debff=>{_0x3debff['off'](),this[_0x2b21('0x45')](_0x9740c3);});}),_0x41878a[_0x2b21('0x37')]({'viewClass':_0x2b21('0x8'),'spaceBetweenItems':0x5});const _0xb5ab0f=_0x592c9e=>{const _0x3efcc6=new _0x31dd65(this[_0x2b21('0x36')]['locale']);_0x41878a[_0x2b21('0x7')](_0x592c9e,_0x3efcc6),this[_0x2b21('0x2')][_0x2b21('0x26')](_0x592c9e,_0x3efcc6),_0x3efcc6[_0x2b21('0x1c')](_0x2b21('0x2e'),_0x2b21('0xe'),_0x2b21('0x4c'))['to'](_0x592c9e['view'],_0x2b21('0x2e'),_0x2b21('0x25'),'length'),_0x3efcc6['on']('execute',()=>{this[_0x2b21('0x12')][_0x2b21('0x23')](),_0x5e3d9d[_0x2b21('0x62')]['first']!==_0x592c9e[_0x2b21('0x55')]?(this['_showBalloon'](_0x592c9e),_0x592c9e[_0x2b21('0x55')]['element'][_0x2b21('0x4b')](),this[_0x2b21('0x59')](_0x592c9e)):this[_0x2b21('0x59')](null);});};for(const _0x1c1005 of _0x9740c3)_0xb5ab0f(_0x1c1005);this[_0x2b21('0x0')](_0x9740c3,_0x2b21('0x50'),(_0x2fb020,_0x1072b3)=>{_0xb5ab0f(_0x1072b3);}),this[_0x2b21('0x0')](_0x9740c3,_0x2b21('0x15'),(_0x41e00c,_0x1509cd,_0x42f1bb)=>{this[_0x2b21('0x2')]['get'](_0x1509cd)[_0x2b21('0x53')](),this[_0x2b21('0x2')]['delete'](_0x1509cd),_0x41878a[_0x2b21('0x2b')]({'removedAnnotation':_0x1509cd,'previousAnnotation':_0x9740c3['get'](_0x42f1bb-0x1),'nextAnnotation':_0x9740c3[_0x2b21('0x21')](_0x42f1bb+0x1)}),_0x1509cd===this[_0x2b21('0x2a')]&&this[_0x2b21('0x59')](null);},{'priority':_0x2b21('0x27')}),this[_0x2b21('0x0')](_0x9740c3,_0x2b21('0x4b'),(_0x2009f6,_0x7d4e31)=>{this['setActiveAnnotation'](_0x7d4e31);}),this[_0x2b21('0x0')](_0x9740c3,'blur',()=>{this[_0x2b21('0x59')](null);}),this['_domEmitter'][_0x2b21('0x0')](document,_0x2b21('0x14'),(_0x2ac397,_0x219723)=>{_0x219723[_0x2b21('0x1e')]===_0x2ff4ef[_0x2b21('0x2f')]&&_0x5e3d9d[_0x2b21('0x5d')]&&(this['_manuallyClosedAnnotationViews'][_0x2b21('0x50')](_0x5e3d9d[_0x2b21('0x62')]['first']),this['_hideBalloon'](),_0x219723[_0x2b21('0x4')](),_0x219723[_0x2b21('0x52')]());}),this[_0x2b21('0x5b')][_0x2b21('0x0')](document,_0x2b21('0x10'),(_0x4770cc,_0x26377d)=>{const _0x41e2d0=_0x26377d[_0x2b21('0x28')];_0x5e3d9d[_0x2b21('0x5d')]&&_0x5e3d9d[_0x2b21('0x5f')][_0x2b21('0x47')](_0x41e2d0)||_0x41878a[_0x2b21('0x55')][_0x2b21('0x5f')][_0x2b21('0x47')](_0x41e2d0)||_0x4770cc[_0x2b21('0x16')]||this[_0x2b21('0x2a')]&&this['activeAnnotation'][_0x2b21('0x19')]['find'](_0x1fe32f=>_0x1fe32f[_0x2b21('0x47')](_0x41e2d0))||(this['_manuallyClosedAnnotationViews']['clear'](),this['_hideBalloon'](),this[_0x2b21('0x59')](null));});const _0x5ac3b3=this[_0x2b21('0x36')]instanceof _0x3b6234?this[_0x2b21('0x36')][_0x2b21('0x48')]:new _0x235749([this[_0x2b21('0x36')]]);for(const _0x36fec5 of _0x5ac3b3)this['_integrateWithEditorAnnotations'](_0x36fec5);this[_0x2b21('0x0')](_0x5ac3b3,'add',(_0x1faca4,_0x385bdc)=>{this[_0x2b21('0x0')](_0x385bdc,_0x2b21('0x3a'),()=>{this[_0x2b21('0x61')](_0x385bdc);});}),this[_0x2b21('0x0')](_0x5ac3b3,_0x2b21('0x15'),(_0x43606e,_0x571f87)=>{_0x571f87[_0x2b21('0x56')][_0x2b21('0x43')](_0x2b21('0x13'))&&this[_0x2b21('0x9')](_0x571f87[_0x2b21('0x56')][_0x2b21('0x21')](_0x2b21('0x13')));}),window[_0x2b21('0x49')](_0x2b21('0x40'),this[_0x2b21('0xd')]),this[_0x2b21('0x32')]();}[_0x2b21('0x59')](_0x433fe2){if(_0x433fe2===this['activeAnnotation'])return;const _0x4903d0=this[_0x2b21('0x36')][_0x2b21('0x56')][_0x2b21('0x21')](_0x4cfa59);if(_0x4903d0[_0x2b21('0x42')]({'blurredAnnotation':this[_0x2b21('0x2a')],'activatedAnnotation':_0x433fe2,'disableAnimationOnActivatedAnnotation':!0x0}),_0x433fe2)_0x4903d0[_0x2b21('0x1a')](_0x433fe2)?this[_0x2b21('0x1b')](_0x433fe2):this[_0x2b21('0x1f')]();else this[_0x2b21('0x1f')]();this[_0x2b21('0x2a')]=_0x433fe2;}['detach'](){if(!this[_0x2b21('0x39')])throw new _0x1c1cf4(_0x2b21('0x4a'),this);this[_0x2b21('0x59')](null);const _0x3cba72=this['context'][_0x2b21('0x56')]['get'](_0x4cfa59);this[_0x2b21('0x1f')](),Array[_0x2b21('0x3c')](this['_annotationToNarrowView']['values'](),_0x3a0cd8=>_0x3a0cd8[_0x2b21('0x53')]()),this[_0x2b21('0x2')][_0x2b21('0x23')](),_0x3cba72['_detachFromContainer'](this[_0x2b21('0x57')]),this[_0x2b21('0x5e')](),this[_0x2b21('0x5b')]['stopListening'](),this[_0x2b21('0x36')]instanceof _0x3b6234&&this[_0x2b21('0x5e')](this[_0x2b21('0x36')][_0x2b21('0x48')]);for(const _0x5d4659 of Array[_0x2b21('0x3c')](this[_0x2b21('0x11')]))this['_destroyEditorAnnotationsIntegration'](_0x5d4659);window[_0x2b21('0x22')](_0x2b21('0x40'),this[_0x2b21('0xd')]),this[_0x2b21('0xd')][_0x2b21('0x3d')](),this['_selectedAnnotations']=[],this['isAttached']=!0x1,this[_0x2b21('0x57')]=null;}[_0x2b21('0x53')](){this[_0x2b21('0x39')]&&this[_0x2b21('0xa')](),this[_0x2b21('0x29')][_0x2b21('0xc')]();}['_integrateWithEditorAnnotations'](_0x5897cb){const _0x387386=_0x5897cb[_0x2b21('0x56')]['get'](_0x57ec47),_0x5c91da=this[_0x2b21('0x36')][_0x2b21('0x56')][_0x2b21('0x21')](_0x4cfa59),_0x214e63=this[_0x2b21('0x57')],_0x33c5ba=this[_0x2b21('0x46')],_0x557f90=()=>{const _0x58c51e=_0x387386[_0x2b21('0x60')]({'annotations':this[_0x2b21('0x57')],'activeAnnotation':this[_0x2b21('0x2a')]});this[_0x2b21('0x38')](_0x58c51e),this[_0x2b21('0x59')](_0x58c51e[0x0]||null);};this[_0x2b21('0x0')](_0x387386,_0x2b21('0x42'),_0x557f90),this[_0x2b21('0x0')](_0x387386,_0x2b21('0xb'),(_0xf83fb3,{isAnnotationTracked:_0x5dc779})=>{this[_0x2b21('0x2a')]&&_0x5dc779(this[_0x2b21('0x2a')])&&(this[_0x2b21('0x38')]([]),this[_0x2b21('0x59')](null));}),this[_0x2b21('0x0')](_0x387386,_0x2b21('0x5'),()=>{this[_0x2b21('0xd')]();}),this[_0x2b21('0x0')](_0x214e63,_0x2b21('0xb'),_0x1d5a7f=>{_0x387386[_0x2b21('0x34')]()&&_0x1d5a7f[_0x2b21('0xf')]();},{'priority':'high'}),this[_0x2b21('0x0')](this['_domEmitter'],_0x2b21('0x10'),(_0xd66e56,_0x23a53f)=>{const _0x17b694=_0x23a53f[_0x2b21('0x28')];_0x33c5ba['isVisible']&&_0x33c5ba[_0x2b21('0x5f')][_0x2b21('0x47')](_0x17b694)||_0x5c91da[_0x2b21('0x55')][_0x2b21('0x5f')][_0x2b21('0x47')](_0x17b694)||this[_0x2b21('0x2a')]&&_0x387386[_0x2b21('0x34')]()&&(_0x557f90(),_0xd66e56['preventClosingBalloon']=!0x0);},{'priority':_0x2b21('0x18')}),this['_editorAnnotations'][_0x2b21('0x50')](_0x387386);}[_0x2b21('0x9')](_0x409de6){_0x409de6&&(this['stopListening'](_0x409de6),this['_editorAnnotations'][_0x2b21('0x15')](_0x409de6));}[_0x2b21('0x38')](_0x29082b){for(const _0x221b9f of this[_0x2b21('0x4f')])_0x29082b[_0x2b21('0x2c')](_0x221b9f)||this[_0x2b21('0x12')][_0x2b21('0x4e')](_0x221b9f[_0x2b21('0x55')]);this[_0x2b21('0x4f')]=_0x29082b;}[_0x2b21('0x32')](){const _0x2d8493=this[_0x2b21('0x46')];this['annotations'][_0x2b21('0x31')](),_0x2d8493['isVisible']&&this[_0x2b21('0x5a')]();}['_showBalloon'](_0x243333){if(this[_0x2b21('0x12')]['has'](_0x243333[_0x2b21('0x55')]))return;const _0x30d051=this[_0x2b21('0x46')][_0x2b21('0x62')][_0x2b21('0x1d')];_0x30d051!==_0x243333[_0x2b21('0x55')]?(_0x30d051&&this[_0x2b21('0x17')](_0x30d051),this[_0x2b21('0x6')](_0x243333['view']),this['balloonPanelView'][_0x2b21('0x62')][_0x2b21('0x23')](),this[_0x2b21('0x46')]['content']['add'](_0x243333[_0x2b21('0x55')]),this[_0x2b21('0x5a')]()):this['_updateBalloonPosition']();}['_updateBalloonPosition'](){const _0x44ee83=this[_0x2b21('0x46')][_0x2b21('0x62')]['first'],_0x4df61b=_0x44ee83&&this[_0x2b21('0x57')]['getByView'](_0x44ee83);if(!_0x4df61b||!this[_0x2b21('0x2')][_0x2b21('0x43')](_0x4df61b))return;const _0xfe92ef=this['_annotationToNarrowView'][_0x2b21('0x21')](_0x4df61b)[_0x2b21('0x5f')],_0x4be428=function(){const _0x11a664=_0x1a95b2[_0x2b21('0x2d')];return[_0x11a664['southArrowNorthEast'],_0x11a664[_0x2b21('0x54')],_0x11a664[_0x2b21('0x5c')],_0x11a664[_0x2b21('0x20')],_0x11a664[_0x2b21('0x35')],_0x11a664['northArrowSouthWest']];}();this[_0x2b21('0x46')][_0x2b21('0x3e')]({'target':_0xfe92ef,'positions':_0x4be428});}['_hideBalloon'](){const _0x5c6f3a=this['balloonPanelView'],_0x353480=_0x5c6f3a[_0x2b21('0x62')][_0x2b21('0x1d')];_0x353480&&(this['_detachListeners'](_0x353480),_0x5c6f3a['unpin'](),_0x5c6f3a[_0x2b21('0x62')]['clear']());}[_0x2b21('0x6')](_0x57e043){this['listenTo'](_0x57e043,_0x2b21('0x30'),()=>this['_updateBalloonPosition']()),this[_0x2b21('0x0')](_0x57e043,_0x2b21('0x1'),(_0x5623d4,_0x929d35)=>{this['_manuallyClosedAnnotationViews'][_0x2b21('0x50')](_0x57e043),this[_0x2b21('0x1f')](),_0x929d35();});}[_0x2b21('0x17')](_0x40f486){this[_0x2b21('0x5e')](_0x40f486);}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x20b8=['get','nodeType','bottom','remove','_alignToTargetRect','_alignBeforeItem','change:_lastItem','pluginName','_createSidebarView','_getTargetTop','list','_destroySidebarItemView','last','_lastItem','class','content','listenTo','object','_getMaxAvailableTop','_setItemTop','addAnnotation','change:targetRect','config','top','_spaceBetweenItems','change:bottom','_annotationToSidebarItemView','_alignAfterItem','targetRect','_sidebarItemViewToAnnotation','change:top','_targetTop','_getItemAfter','isAnimationDisabled','add','_recalculate','_getItemBefore','locale','_annotations','height','setContainer','target','render','delete','_activeAnnotation','appendChild','isActive','minHeight','stopListening','sidebar-setcontainer-invalid-element','_attachToContainer','_recalculateBuffer','Sidebar','set','unbind','getSidebarItemView','_alignForBottomChange','context','_updateLastItem','sidebar.container','max','view','sidebar.preventScrollOutOfView','length','updateHeight','destroy','getIndex','container','element','sidebar-attachtocontainer-missing-container'];(function(_0x171722,_0x20b85e){const _0x1d35b9=function(_0x5b34e5){while(--_0x5b34e5){_0x171722['push'](_0x171722['shift']());}};_0x1d35b9(++_0x20b85e);}(_0x20b8,0xc5));const _0x1d35=function(_0x171722,_0x20b85e){_0x171722=_0x171722-0x0;let _0x1d35b9=_0x20b8[_0x171722];return _0x1d35b9;};import{ContextPlugin as _0x2743ab}from'ckeditor5/src/core';import{Rect as _0x5a659c,CKEditorError as _0x1607b4}from'ckeditor5/src/utils';import _0x66b7c9 from'./view/sidebarview';import _0x466a88 from'./view/sidebaritemview';export default class z extends _0x2743ab{static get[_0x1d35('0x14')](){return _0x1d35('0x41');}constructor(_0x2853bc){super(_0x2853bc),this['set'](_0x1d35('0x1a'),void 0x0),this['view']=this[_0x1d35('0x15')](),this['set'](_0x1d35('0xa'),null),this[_0x1d35('0x25')]=0x19,this[_0x1d35('0x2a')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x1d35('0x0')][_0x1d35('0x23')]['define'](_0x1d35('0x5'),!0x1),this['_annotations']=null,this[_0x1d35('0x39')]=null,this[_0x1d35('0x40')]=[];}['init'](){const _0x3a9bfa=this[_0x1d35('0x0')][_0x1d35('0x23')][_0x1d35('0xd')](_0x1d35('0x2'));_0x3a9bfa&&this[_0x1d35('0x35')](_0x3a9bfa);}[_0x1d35('0x35')](_0x3de806){if(!y(_0x3de806))throw new _0x1607b4(_0x1d35('0x3e'));this['container']=_0x3de806;}[_0x1d35('0x3f')]({viewClass:_0x383b06='',spaceBetweenItems:_0x3b1f86=0x19}={}){if(!y(this[_0x1d35('0xa')]))throw new _0x1607b4(_0x1d35('0xc'),this);this[_0x1d35('0xa')][_0x1d35('0x3a')](this['view'][_0x1d35('0xb')]),this[_0x1d35('0x4')][_0x1d35('0x1b')]=_0x383b06,this['_spaceBetweenItems']=_0x3b1f86;}['rearrange']({removedAnnotation:_0x3fa39c,previousAnnotation:_0x379758,nextAnnotation:_0x24e7cc}){const _0x487a3e=this[_0x1d35('0x44')](_0x3fa39c);this[_0x1d35('0x4')][_0x1d35('0x17')]['remove'](_0x487a3e),this['_destroySidebarItemView'](_0x3fa39c),_0x379758&&this[_0x1d35('0x11')](this['getSidebarItemView'](_0x379758)),_0x24e7cc&&this[_0x1d35('0x11')](this[_0x1d35('0x44')](_0x24e7cc)),this[_0x1d35('0x1')]();}['refresh']({blurredAnnotation:_0x3069a4,activatedAnnotation:_0x457f7c,disableAnimationOnActivatedAnnotation:_0x42b4cd}){if(this[_0x1d35('0x39')]=_0x457f7c,_0x3069a4){_0x3069a4[_0x1d35('0x3b')]=!0x1;const _0x112432=this[_0x1d35('0x44')](_0x3069a4);_0x112432&&_0x42b4cd&&(_0x112432['isAnimationDisabled']=!0x1);}if(_0x457f7c){const _0xe469f=this['getSidebarItemView'](_0x457f7c);_0xe469f&&(_0x457f7c[_0x1d35('0x3b')]=!0x0,_0x42b4cd&&(_0xe469f[_0x1d35('0x2e')]=!0x0,_0xe469f[_0x1d35('0x24')]+=0x1),this[_0x1d35('0x11')](_0xe469f));}}['_detachFromContainer'](_0x233814){if(this[_0x1d35('0x4')][_0x1d35('0xb')][_0x1d35('0x10')](),_0x233814)for(const _0x23d713 of _0x233814)this[_0x1d35('0x18')](_0x23d713);this[_0x1d35('0x4')][_0x1d35('0x17')]['clear'](),this['view'][_0x1d35('0x1b')]='',this[_0x1d35('0x1a')]=null;}[_0x1d35('0x21')](_0x2bdfae,_0x3ba278){_0x3ba278||(_0x3ba278=_0x2bdfae[_0x1d35('0x4')]);const _0x5e3e2f=new _0x466a88(this[_0x1d35('0x0')]['locale']);this['_sidebarItemViewToAnnotation'][_0x1d35('0x42')](_0x5e3e2f,_0x2bdfae),this[_0x1d35('0x27')][_0x1d35('0x42')](_0x2bdfae,_0x5e3e2f),_0x5e3e2f['content'][_0x1d35('0x2f')](_0x3ba278),this[_0x1d35('0x1d')](_0x2bdfae[_0x1d35('0x4')],_0x1d35('0x22'),(_0x398eb9,_0x140412,_0x15f48f)=>{const _0x108e62=this[_0x1d35('0x16')](_0x2bdfae,_0x15f48f);_0x5e3e2f[_0x1d35('0x2c')]!=_0x108e62&&(_0x5e3e2f[_0x1d35('0x2c')]=_0x108e62,this[_0x1d35('0x20')](_0x5e3e2f,_0x108e62));}),this[_0x1d35('0x1d')](_0x5e3e2f,_0x1d35('0x2b'),()=>{this[_0x1d35('0x30')](_0x5e3e2f,_0x1d35('0x24'));}),this['listenTo'](_0x5e3e2f,_0x1d35('0x26'),()=>{this[_0x1d35('0x30')](_0x5e3e2f,_0x1d35('0xf'));}),this[_0x1d35('0x11')](_0x5e3e2f);const _0x1cbbae=this[_0x1d35('0x31')](_0x5e3e2f);if(_0x1cbbae)this[_0x1d35('0x28')](_0x1cbbae,_0x5e3e2f)||this[_0x1d35('0x11')](_0x5e3e2f);else this['_alignToTargetRect'](_0x5e3e2f);return this[_0x1d35('0x1')](),this[_0x1d35('0x4')][_0x1d35('0x17')]['add'](_0x5e3e2f),_0x5e3e2f;}['_alignForTopChange'](_0x4d0d1e){if(!_0x4d0d1e[_0x1d35('0x1c')][_0x1d35('0x6')])return;const _0x3e3dc2=this[_0x1d35('0x31')](_0x4d0d1e);if(!_0x3e3dc2)return;const _0x3bad59=this[_0x1d35('0x2a')][_0x1d35('0xd')](_0x3e3dc2),_0x2ae5a1=this['_activeAnnotation'];_0x2ae5a1&&_0x2ae5a1===_0x3bad59?this[_0x1d35('0x28')](_0x3e3dc2,_0x4d0d1e):this[_0x1d35('0x12')](_0x4d0d1e,_0x3e3dc2);}['_alignForBottomChange'](_0x4faed7){if(!_0x4faed7[_0x1d35('0x1c')][_0x1d35('0x6')])return;const _0x110379=this['_getItemAfter'](_0x4faed7);if(!_0x110379)return;const _0x21da92=this['_sidebarItemViewToAnnotation']['get'](_0x110379),_0x2acbf2=this[_0x1d35('0x0')]['config']['get'](_0x1d35('0x5')),_0x2aac97=this[_0x1d35('0x39')];_0x2aac97&&_0x2aac97===_0x21da92&&_0x2acbf2?(this[_0x1d35('0x12')](_0x110379,_0x4faed7),this[_0x1d35('0x28')](_0x4faed7,_0x110379)):_0x2aac97&&_0x2aac97===_0x21da92?this['_alignBeforeItem'](_0x110379,_0x4faed7):this['_alignAfterItem'](_0x4faed7,_0x110379);}[_0x1d35('0x30')](_0x41dadb,_0x225b51){0x0===this[_0x1d35('0x40')]['length']&&setTimeout(()=>{for(const {sidebarItemView:_0x4f76b8,changedProp:_0x41e4c5}of this['_recalculateBuffer'])_0x1d35('0x24')===_0x41e4c5?this['_alignForTopChange'](_0x4f76b8):this[_0x1d35('0x45')](_0x4f76b8);this[_0x1d35('0x40')]=[];},0xa),this[_0x1d35('0x40')]['push']({'sidebarItemView':_0x41dadb,'changedProp':_0x225b51});}[_0x1d35('0x44')](_0x14743e){return this[_0x1d35('0x27')]['get'](_0x14743e);}[_0x1d35('0x8')](){this[_0x1d35('0x3d')](),this['view']['destroy']();}['_destroySidebarItemView'](_0x22037f){const _0x4092b=this[_0x1d35('0x44')](_0x22037f);this[_0x1d35('0x3d')](_0x4092b),this['stopListening'](_0x22037f[_0x1d35('0x4')]),_0x4092b[_0x1d35('0x8')](),this[_0x1d35('0x27')]['delete'](_0x22037f),this[_0x1d35('0x2a')][_0x1d35('0x38')](_0x4092b);}[_0x1d35('0x15')](){const _0x42b94b=new _0x66b7c9(this[_0x1d35('0x0')][_0x1d35('0x32')]);return _0x42b94b[_0x1d35('0x37')](),this['on'](_0x1d35('0x13'),(_0x4325c8,_0x11158a,_0x4bdbe5,_0x508a17)=>{_0x508a17&&_0x42b94b[_0x1d35('0x43')](_0x1d35('0x3c')),_0x4bdbe5?_0x42b94b['bind'](_0x1d35('0x3c'))['to'](_0x4bdbe5,_0x1d35('0xf')):_0x42b94b[_0x1d35('0x3c')]=null;}),_0x42b94b;}['_updateLastItem'](){var _0x89c292;this[_0x1d35('0x1a')]=(null===(_0x89c292=this[_0x1d35('0x33')])||void 0x0===_0x89c292?void 0x0:_0x89c292[_0x1d35('0x19')])?this[_0x1d35('0x44')](this[_0x1d35('0x33')]['last']):null;}['_getItemBefore'](_0x3aa07c){var _0x5cc786;const _0x572b3e=this['_sidebarItemViewToAnnotation'][_0x1d35('0xd')](_0x3aa07c),_0x13baf4=_0x572b3e&&(null===(_0x5cc786=this[_0x1d35('0x33')])||void 0x0===_0x5cc786?void 0x0:_0x5cc786[_0x1d35('0xd')](this['_annotations']['getIndex'](_0x572b3e)-0x1));return _0x13baf4&&this[_0x1d35('0x44')](_0x13baf4)||null;}[_0x1d35('0x2d')](_0x51bee7){var _0x3ef0b1;const _0x46ada7=this[_0x1d35('0x2a')]['get'](_0x51bee7),_0x5b7e86=_0x46ada7&&(null===(_0x3ef0b1=this[_0x1d35('0x33')])||void 0x0===_0x3ef0b1?void 0x0:_0x3ef0b1[_0x1d35('0xd')](this[_0x1d35('0x33')][_0x1d35('0x9')](_0x46ada7)+0x1));return _0x5b7e86&&this['getSidebarItemView'](_0x5b7e86)||null;}[_0x1d35('0x12')](_0x3a7e38,_0x129dff){_0x3a7e38['updateHeight']();const _0x5c24c7=H(_0x129dff[_0x1d35('0xf')]+this[_0x1d35('0x25')],_0x3a7e38[_0x1d35('0x24')]);return!!_0x5c24c7&&(this[_0x1d35('0x20')](_0x129dff,_0x129dff[_0x1d35('0x24')]-_0x5c24c7),!0x0);}[_0x1d35('0x28')](_0x4b0b0c,_0x21a16e){_0x4b0b0c[_0x1d35('0x7')]();const _0x651b79=H(_0x4b0b0c[_0x1d35('0xf')]+this[_0x1d35('0x25')],_0x21a16e[_0x1d35('0x24')]);return!!_0x651b79&&(this['_setItemTop'](_0x21a16e,_0x21a16e[_0x1d35('0x24')]+_0x651b79,!0x1),!0x0);}['_alignToTargetRect'](_0x1689d6){const _0x5c75fa=this['_sidebarItemViewToAnnotation'][_0x1d35('0xd')](_0x1689d6);if(!_0x5c75fa||!_0x5c75fa[_0x1d35('0x36')]||!_0x5c75fa['targetRect'])return;const _0x135f4e=this['_getTargetTop'](_0x5c75fa,_0x5c75fa[_0x1d35('0x29')]);this[_0x1d35('0x20')](_0x1689d6,_0x135f4e);}[_0x1d35('0x16')](_0x529093,_0x2d06a9){if(null===_0x2d06a9)return 0x0;if(_0x529093['target']instanceof _0x5a659c)return _0x2d06a9[_0x1d35('0x24')];{const _0x4c0d3b=new _0x5a659c(this['view'][_0x1d35('0xb')])[_0x1d35('0x24')];return _0x2d06a9[_0x1d35('0x24')]-_0x4c0d3b;}}[_0x1d35('0x20')](_0x513df6,_0xdaf9cc,_0x3bf026=this['context'][_0x1d35('0x23')]['get']('sidebar.preventScrollOutOfView')){_0x3bf026&&(_0xdaf9cc=Math[_0x1d35('0x3')](_0xdaf9cc,this[_0x1d35('0x1f')](_0x513df6))),_0x513df6[_0x1d35('0x24')]=_0xdaf9cc;}[_0x1d35('0x1f')](_0x4fa87c){let _0x31bea9=this['_getItemBefore'](_0x4fa87c),_0x2d9eee=0x0;for(;_0x31bea9;)_0x31bea9['updateHeight'](),_0x2d9eee+=this[_0x1d35('0x25')]+_0x31bea9[_0x1d35('0x34')],_0x31bea9=this[_0x1d35('0x31')](_0x31bea9);return _0x2d9eee;}}function H(_0x4016cc,_0x5586c7){return Math[_0x1d35('0x3')](_0x4016cc-_0x5586c7,0x0);}function y(_0x806a96){return null!==_0x806a96&&_0x1d35('0x1e')==typeof _0x806a96&&0x1===_0x806a96[_0x1d35('0xe')];}
23
+ const _0x5944=['refresh','_alignForTopChange','element','Sidebar','_updateLastItem','sidebar-attachtocontainer-missing-container','_attachToContainer','_createSidebarView','sidebar-setcontainer-invalid-element','isActive','stopListening','delete','define','_detachFromContainer','_recalculateBuffer','object','_getMaxAvailableTop','list','view','_recalculate','class','_getTargetTop','destroy','change:top','_annotationToSidebarItemView','_alignForBottomChange','_annotations','getSidebarItemView','_getItemBefore','bind','last','rearrange','_lastItem','_getItemAfter','_alignToTargetRect','change:bottom','updateHeight','length','pluginName','_sidebarItemViewToAnnotation','_alignBeforeItem','targetRect','set','bottom','context','_setItemTop','_spaceBetweenItems','push','_destroySidebarItemView','appendChild','content','add','sidebar.preventScrollOutOfView','_activeAnnotation','change:_lastItem','addAnnotation','getIndex','config','setContainer','locale','nodeType','_alignAfterItem','listenTo','max','top','get','minHeight','container','isAnimationDisabled'];(function(_0x42ea21,_0x594461){const _0x3844a3=function(_0x1ad534){while(--_0x1ad534){_0x42ea21['push'](_0x42ea21['shift']());}};_0x3844a3(++_0x594461);}(_0x5944,0x17d));const _0x3844=function(_0x42ea21,_0x594461){_0x42ea21=_0x42ea21-0x0;let _0x3844a3=_0x5944[_0x42ea21];return _0x3844a3;};import{ContextPlugin as _0x3e0678}from'ckeditor5/src/core';import{Rect as _0x10edc9,CKEditorError as _0x18d7cf}from'ckeditor5/src/utils';import _0x87ffe9 from'./view/sidebarview';import _0x1f9d5b from'./view/sidebaritemview';export default class z extends _0x3e0678{static get[_0x3844('0x2')](){return _0x3844('0x24');}constructor(_0x204b11){super(_0x204b11),this[_0x3844('0x6')](_0x3844('0x41'),void 0x0),this[_0x3844('0x33')]=this[_0x3844('0x28')](),this[_0x3844('0x6')](_0x3844('0x1f'),null),this[_0x3844('0xa')]=0x19,this[_0x3844('0x3')]=new Map(),this['_annotationToSidebarItemView']=new Map(),this[_0x3844('0x8')]['config'][_0x3844('0x2d')]('sidebar.preventScrollOutOfView',!0x1),this['_annotations']=null,this[_0x3844('0x11')]=null,this[_0x3844('0x2f')]=[];}['init'](){const _0x450ac1=this[_0x3844('0x8')][_0x3844('0x15')]['get']('sidebar.container');_0x450ac1&&this['setContainer'](_0x450ac1);}[_0x3844('0x16')](_0x5efdba){if(!y(_0x5efdba))throw new _0x18d7cf(_0x3844('0x29'));this['container']=_0x5efdba;}[_0x3844('0x27')]({viewClass:_0x391774='',spaceBetweenItems:_0x11201d=0x19}={}){if(!y(this[_0x3844('0x1f')]))throw new _0x18d7cf(_0x3844('0x26'),this);this[_0x3844('0x1f')][_0x3844('0xd')](this[_0x3844('0x33')]['element']),this[_0x3844('0x33')][_0x3844('0x35')]=_0x391774,this[_0x3844('0xa')]=_0x11201d;}[_0x3844('0x40')]({removedAnnotation:_0x296e7a,previousAnnotation:_0x3b2f28,nextAnnotation:_0x560315}){const _0x339171=this['getSidebarItemView'](_0x296e7a);this['view']['list']['remove'](_0x339171),this[_0x3844('0xc')](_0x296e7a),_0x3b2f28&&this[_0x3844('0x43')](this[_0x3844('0x3c')](_0x3b2f28)),_0x560315&&this['_alignToTargetRect'](this['getSidebarItemView'](_0x560315)),this['_updateLastItem']();}[_0x3844('0x21')]({blurredAnnotation:_0xf4568b,activatedAnnotation:_0x4c430f,disableAnimationOnActivatedAnnotation:_0x148015}){if(this['_activeAnnotation']=_0x4c430f,_0xf4568b){_0xf4568b[_0x3844('0x2a')]=!0x1;const _0x7a905c=this['getSidebarItemView'](_0xf4568b);_0x7a905c&&_0x148015&&(_0x7a905c[_0x3844('0x20')]=!0x1);}if(_0x4c430f){const _0x451408=this[_0x3844('0x3c')](_0x4c430f);_0x451408&&(_0x4c430f[_0x3844('0x2a')]=!0x0,_0x148015&&(_0x451408[_0x3844('0x20')]=!0x0,_0x451408['top']+=0x1),this[_0x3844('0x43')](_0x451408));}}[_0x3844('0x2e')](_0x488847){if(this['view'][_0x3844('0x23')]['remove'](),_0x488847)for(const _0x25df77 of _0x488847)this['_destroySidebarItemView'](_0x25df77);this['view'][_0x3844('0x32')]['clear'](),this['view'][_0x3844('0x35')]='',this[_0x3844('0x41')]=null;}[_0x3844('0x13')](_0x4b0227,_0x11b6d4){_0x11b6d4||(_0x11b6d4=_0x4b0227[_0x3844('0x33')]);const _0x2032eb=new _0x1f9d5b(this[_0x3844('0x8')][_0x3844('0x17')]);this[_0x3844('0x3')][_0x3844('0x6')](_0x2032eb,_0x4b0227),this[_0x3844('0x39')][_0x3844('0x6')](_0x4b0227,_0x2032eb),_0x2032eb[_0x3844('0xe')][_0x3844('0xf')](_0x11b6d4),this[_0x3844('0x1a')](_0x4b0227[_0x3844('0x33')],'change:targetRect',(_0x1488ad,_0x4aa43c,_0x9adc71)=>{const _0x54236e=this[_0x3844('0x36')](_0x4b0227,_0x9adc71);_0x2032eb['_targetTop']!=_0x54236e&&(_0x2032eb['_targetTop']=_0x54236e,this['_setItemTop'](_0x2032eb,_0x54236e));}),this[_0x3844('0x1a')](_0x2032eb,_0x3844('0x38'),()=>{this[_0x3844('0x34')](_0x2032eb,_0x3844('0x1c'));}),this[_0x3844('0x1a')](_0x2032eb,_0x3844('0x44'),()=>{this[_0x3844('0x34')](_0x2032eb,'bottom');}),this['_alignToTargetRect'](_0x2032eb);const _0xafa193=this[_0x3844('0x3d')](_0x2032eb);if(_0xafa193)this[_0x3844('0x19')](_0xafa193,_0x2032eb)||this[_0x3844('0x43')](_0x2032eb);else this['_alignToTargetRect'](_0x2032eb);return this[_0x3844('0x25')](),this['view'][_0x3844('0x32')]['add'](_0x2032eb),_0x2032eb;}[_0x3844('0x22')](_0x28836f){if(!_0x28836f[_0x3844('0xe')][_0x3844('0x1')])return;const _0x5993ea=this[_0x3844('0x3d')](_0x28836f);if(!_0x5993ea)return;const _0x44a49d=this['_sidebarItemViewToAnnotation'][_0x3844('0x1d')](_0x5993ea),_0x103f28=this[_0x3844('0x11')];_0x103f28&&_0x103f28===_0x44a49d?this[_0x3844('0x19')](_0x5993ea,_0x28836f):this[_0x3844('0x4')](_0x28836f,_0x5993ea);}[_0x3844('0x3a')](_0x571e1a){if(!_0x571e1a[_0x3844('0xe')][_0x3844('0x1')])return;const _0x43e98d=this[_0x3844('0x42')](_0x571e1a);if(!_0x43e98d)return;const _0x206a03=this[_0x3844('0x3')][_0x3844('0x1d')](_0x43e98d),_0x670660=this[_0x3844('0x8')][_0x3844('0x15')][_0x3844('0x1d')]('sidebar.preventScrollOutOfView'),_0x402d0d=this[_0x3844('0x11')];_0x402d0d&&_0x402d0d===_0x206a03&&_0x670660?(this[_0x3844('0x4')](_0x43e98d,_0x571e1a),this[_0x3844('0x19')](_0x571e1a,_0x43e98d)):_0x402d0d&&_0x402d0d===_0x206a03?this[_0x3844('0x4')](_0x43e98d,_0x571e1a):this['_alignAfterItem'](_0x571e1a,_0x43e98d);}[_0x3844('0x34')](_0x190470,_0x553d47){0x0===this[_0x3844('0x2f')][_0x3844('0x1')]&&setTimeout(()=>{for(const {sidebarItemView:_0x54a3c3,changedProp:_0x25bc35}of this[_0x3844('0x2f')])_0x3844('0x1c')===_0x25bc35?this[_0x3844('0x22')](_0x54a3c3):this[_0x3844('0x3a')](_0x54a3c3);this[_0x3844('0x2f')]=[];},0xa),this['_recalculateBuffer'][_0x3844('0xb')]({'sidebarItemView':_0x190470,'changedProp':_0x553d47});}[_0x3844('0x3c')](_0x1adbbc){return this[_0x3844('0x39')][_0x3844('0x1d')](_0x1adbbc);}[_0x3844('0x37')](){this[_0x3844('0x2b')](),this[_0x3844('0x33')][_0x3844('0x37')]();}['_destroySidebarItemView'](_0x208518){const _0x25a225=this[_0x3844('0x3c')](_0x208518);this[_0x3844('0x2b')](_0x25a225),this['stopListening'](_0x208518['view']),_0x25a225[_0x3844('0x37')](),this[_0x3844('0x39')][_0x3844('0x2c')](_0x208518),this[_0x3844('0x3')][_0x3844('0x2c')](_0x25a225);}[_0x3844('0x28')](){const _0x4b85fe=new _0x87ffe9(this[_0x3844('0x8')][_0x3844('0x17')]);return _0x4b85fe['render'](),this['on'](_0x3844('0x12'),(_0x4d117d,_0x1de61f,_0xe2716b,_0x5c2472)=>{_0x5c2472&&_0x4b85fe['unbind'](_0x3844('0x1e')),_0xe2716b?_0x4b85fe[_0x3844('0x3e')](_0x3844('0x1e'))['to'](_0xe2716b,_0x3844('0x7')):_0x4b85fe[_0x3844('0x1e')]=null;}),_0x4b85fe;}[_0x3844('0x25')](){var _0x2842d1;this[_0x3844('0x41')]=(null===(_0x2842d1=this[_0x3844('0x3b')])||void 0x0===_0x2842d1?void 0x0:_0x2842d1['last'])?this[_0x3844('0x3c')](this['_annotations'][_0x3844('0x3f')]):null;}['_getItemBefore'](_0x1cf71b){var _0x20e068;const _0x3aea03=this['_sidebarItemViewToAnnotation']['get'](_0x1cf71b),_0x31ed62=_0x3aea03&&(null===(_0x20e068=this[_0x3844('0x3b')])||void 0x0===_0x20e068?void 0x0:_0x20e068[_0x3844('0x1d')](this[_0x3844('0x3b')][_0x3844('0x14')](_0x3aea03)-0x1));return _0x31ed62&&this['getSidebarItemView'](_0x31ed62)||null;}[_0x3844('0x42')](_0x64c1ee){var _0x42cc99;const _0x4818d6=this[_0x3844('0x3')][_0x3844('0x1d')](_0x64c1ee),_0x570a8e=_0x4818d6&&(null===(_0x42cc99=this['_annotations'])||void 0x0===_0x42cc99?void 0x0:_0x42cc99[_0x3844('0x1d')](this['_annotations'][_0x3844('0x14')](_0x4818d6)+0x1));return _0x570a8e&&this['getSidebarItemView'](_0x570a8e)||null;}[_0x3844('0x4')](_0x5cadc9,_0x544646){_0x5cadc9[_0x3844('0x0')]();const _0x544217=H(_0x544646[_0x3844('0x7')]+this[_0x3844('0xa')],_0x5cadc9['top']);return!!_0x544217&&(this['_setItemTop'](_0x544646,_0x544646[_0x3844('0x1c')]-_0x544217),!0x0);}[_0x3844('0x19')](_0x31ce6d,_0x2ca0d1){_0x31ce6d[_0x3844('0x0')]();const _0x9fa560=H(_0x31ce6d['bottom']+this[_0x3844('0xa')],_0x2ca0d1[_0x3844('0x1c')]);return!!_0x9fa560&&(this[_0x3844('0x9')](_0x2ca0d1,_0x2ca0d1[_0x3844('0x1c')]+_0x9fa560,!0x1),!0x0);}[_0x3844('0x43')](_0x34f834){const _0x2464e1=this[_0x3844('0x3')][_0x3844('0x1d')](_0x34f834);if(!_0x2464e1||!_0x2464e1['target']||!_0x2464e1[_0x3844('0x5')])return;const _0x3d6e7e=this[_0x3844('0x36')](_0x2464e1,_0x2464e1[_0x3844('0x5')]);this[_0x3844('0x9')](_0x34f834,_0x3d6e7e);}['_getTargetTop'](_0x245571,_0x338a8c){if(null===_0x338a8c)return 0x0;if(_0x245571['target']instanceof _0x10edc9)return _0x338a8c[_0x3844('0x1c')];{const _0x3eadb0=new _0x10edc9(this[_0x3844('0x33')]['element'])[_0x3844('0x1c')];return _0x338a8c[_0x3844('0x1c')]-_0x3eadb0;}}[_0x3844('0x9')](_0x444fce,_0x552cec,_0x3bcb2d=this[_0x3844('0x8')][_0x3844('0x15')][_0x3844('0x1d')](_0x3844('0x10'))){_0x3bcb2d&&(_0x552cec=Math[_0x3844('0x1b')](_0x552cec,this[_0x3844('0x31')](_0x444fce))),_0x444fce[_0x3844('0x1c')]=_0x552cec;}[_0x3844('0x31')](_0x172ee7){let _0x292e50=this['_getItemBefore'](_0x172ee7),_0x2b6c64=0x0;for(;_0x292e50;)_0x292e50['updateHeight'](),_0x2b6c64+=this[_0x3844('0xa')]+_0x292e50['height'],_0x292e50=this[_0x3844('0x3d')](_0x292e50);return _0x2b6c64;}}function H(_0x4c867a,_0x3a400d){return Math['max'](_0x4c867a-_0x3a400d,0x0);}function y(_0x446e18){return null!==_0x446e18&&_0x3844('0x30')==typeof _0x446e18&&0x1===_0x446e18[_0x3844('0x18')];}